@ctlyst.id/voila-ui 1.62.1 → 1.62.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ Check the render method of \``+_+"`."}return""}}function sn(_){{if(_!==void 0){v
|
|
|
50
50
|
|
|
51
51
|
Check your code at `+V+":"+Q+"."}return""}}var Mn={};function Rn(_){{var V=kn();if(!V){var Q=typeof _=="string"?_:_.displayName||_.name;Q&&(V=`
|
|
52
52
|
|
|
53
|
-
Check the top-level render call using <`+Q+">.")}return V}}function en(_,V){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var Q=Rn(V);if(Mn[Q])return;Mn[Q]=!0;var fe="";_&&_._owner&&_._owner!==ze.current&&(fe=" It was passed a child from "+h(_._owner.type)+"."),_t(_),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,fe),_t(null)}}function tn(_,V){{if(typeof _!="object")return;if(Et(_))for(var Q=0;Q<_.length;Q++){var fe=_[Q];Jt(fe)&&en(fe,V)}else if(Jt(_))_._store&&(_._store.validated=!0);else if(_){var Se=$(_);if(typeof Se=="function"&&Se!==_.entries)for(var Pe=Se.call(_),_e;!(_e=Pe.next()).done;)Jt(_e.value)&&en(_e.value,V)}}}function nn(_){{var V=_.type;if(V==null||typeof V=="string")return;var Q;if(typeof V=="function")Q=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===d))Q=V.propTypes;else return;if(Q){var fe=h(V);st(Q,_.props,"prop",fe,_)}else if(V.PropTypes!==void 0&&!Qt){Qt=!0;var Se=h(V);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function En(_){{for(var V=Object.keys(_.props),Q=0;Q<V.length;Q++){var fe=V[Q];if(fe!=="children"&&fe!=="key"){_t(_),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),_t(null);break}}_.ref!==null&&(_t(_),v("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function fn(_,V,Q,fe,Se,Pe){{var _e=B(_);if(!_e){var we="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(we+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=sn(Se);it?we+=it:we+=kn();var Fe;_===null?Fe="null":Et(_)?Fe="array":_!==void 0&&_.$$typeof===t?(Fe="<"+(h(_.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof _,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,we)}var Be=ve(_,V,Q,Se,Pe);if(Be==null)return Be;if(_e){var Ze=V.children;if(Ze!==void 0)if(fe)if(Et(Ze)){for(var Kt=0;Kt<Ze.length;Kt++)tn(Ze[Kt],_);Object.freeze&&Object.freeze(Ze)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tn(Ze,_)}return _===r?En(Be):nn(Be),Be}}function Wt(_,V,Q){return fn(_,V,Q,!0)}function nr(_,V,Q){return fn(_,V,Q,!1)}var zt=nr,rr=Wt;Vi.Fragment=r,Vi.jsx=zt,Vi.jsxs=rr}()),Vi}process.env.NODE_ENV==="production"?Sc.exports=v0():Sc.exports=m0();var ot=Sc.exports;const g0=e=>{const t="currentColor";return{...e,color:(()=>e.color?Pt.theme.colors[e.color]?Pt.theme.colors[e.color]:e.color:"inherit")(),fill:(e==null?void 0:e.fill)||t,width:(e==null?void 0:e.size)||24,height:(e==null?void 0:e.size)||24}},on=g0,y0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m19.02 6.96-8.62 8.9-5.28-5.27L3 12.71l7.43 7.43 10.74-11.1-2.15-2.08Z",fill:t})})},Rh=y0,b0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M20.3906 6.76232C20.7421 7.11379 20.7421 7.68364 20.3906 8.03511L11.188 17.2377C11.0192 17.4065 10.7903 17.5013 10.5516 17.5013C10.3129 17.5013 10.084 17.4065 9.9152 17.2377L4.6209 11.9434C4.26943 11.5919 4.26943 11.0221 4.62091 10.6706C4.97238 10.3191 5.54223 10.3191 5.8937 10.6706L10.5516 15.3285L19.1178 6.76232C19.4693 6.41085 20.0391 6.41085 20.3906 6.76232Z",fill:t})})},w0=b0,E0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m21.59 9.03-2.12-2.12-6.94 6.94-6.94-6.94-2.12 2.12 9.06 9.06 9.06-9.06Z",fill:t})})},Ca=E0,x0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M13.1364 16.2592C12.7849 16.6106 12.215 16.6106 11.8636 16.2592L4.61805 9.01365C4.26657 8.66217 4.26657 8.09233 4.61805 7.74085C4.96952 7.38938 5.53937 7.38938 5.89084 7.74085L12.5 14.35L19.1091 7.74085C19.4606 7.38938 20.0304 7.38938 20.3819 7.74086C20.7334 8.09233 20.7334 8.66218 20.3819 9.01365L13.1364 16.2592Z",fill:t})})},_0=x0,S0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m16 21.56 2.12-2.12-6.94-6.94 6.94-6.94L16 3.44 6.94 12.5 16 21.56Z",fill:t})})},C0=S0,$0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m3.47 15.97 2.12 2.12 6.94-6.94 6.94 6.94 2.12-2.12-9.06-9.06-9.06 9.06Z",fill:t})})},Oh=$0,T0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M11.8636 7.74084C12.2151 7.38937 12.785 7.38937 13.1364 7.74084L20.382 14.9864C20.7334 15.3378 20.7334 15.9077 20.382 16.2591C20.0305 16.6106 19.4606 16.6106 19.1092 16.2591L12.5 9.65002L5.89089 16.2591C5.53941 16.6106 4.96957 16.6106 4.61809 16.2591C4.26662 15.9077 4.26662 15.3378 4.6181 14.9864L11.8636 7.74084Z",fill:t})})},I0=T0,R0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m21.06 19.44-6.98-6.98 6.9-6.9-2.12-2.12-6.9 6.9-6.82-6.82-2.12 2.12 6.82 6.82-6.9 6.9 2.12 2.12 6.9-6.9 6.98 6.98 2.12-2.12Z",fill:t})})},wu=R0,O0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M4.60857 4.11486C4.96004 3.76339 5.52989 3.76339 5.88136 4.11486L20.3915 18.6249C20.743 18.9764 20.743 19.5462 20.3915 19.8977C20.04 20.2492 19.4702 20.2492 19.1187 19.8977L4.60858 5.38766C4.2571 5.03618 4.2571 4.46634 4.60857 4.11486Z",fill:t}),ot.jsx("path",{d:"M20.3914 4.1148C20.7429 4.46627 20.7429 5.03612 20.3914 5.38759L5.88138 19.8977C5.52991 20.2492 4.96006 20.2492 4.60859 19.8977C4.25711 19.5463 4.25711 18.9764 4.60858 18.6249L19.1186 4.1148C19.4701 3.76333 20.04 3.76333 20.3914 4.1148Z",fill:t})]})},P0=O0,A0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ot.jsx("path",{d:"m16.67 9.21-1.42-1.42-3.27 3.28-3.23-3.24-1.42 1.42 3.24 3.23-3.28 3.27 1.42 1.42 3.27-3.28 3.31 3.32 1.42-1.42-3.32-3.31 3.28-3.27Z",fill:t})]})},D0=A0,N0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ot.jsx("path",{d:"M12 9.62a1.12 1.12 0 1 0 0-2.24 1.12 1.12 0 0 0 0 2.24ZM13 11.5h-2v6h2v-6Z",fill:t})]})},k0=N0,M0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.2449 12C4.2449 11.4477 4.69262 11 5.2449 11L19.7869 11C20.3392 11 20.7869 11.4477 20.7869 12C20.7869 12.5523 20.3392 13 19.7869 13L5.2449 13C4.69262 13 4.2449 12.5523 4.2449 12Z",fill:t})})},j0=M0,L0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m22 21.67-4.86-4.86a8.474 8.474 0 0 0 1.86-5.3c0-4.69-3.81-8.5-8.5-8.5-4.69 0-8.5 3.81-8.5 8.5 0 4.69 3.81 8.5 8.5 8.5 2.01 0 3.85-.7 5.3-1.86l4.86 4.86 1.33-1.33.01-.01ZM10.5 18C6.92 18 4 15.08 4 11.5S6.92 5 10.5 5 17 7.92 17 11.5 14.08 18 10.5 18Z",fill:t})})},F0=L0,V0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M13 11h-2v4h2v-4ZM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:t}),ot.jsx("path",{d:"M12 3 2 21h20L12 3Zm0 4.12L18.6 19H5.4L12 7.12Z",fill:t})]})},B0=V0,H0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm1.37-4.24c-.22.08-.37.27-.37.47v.77h-2v-.77c0-1.06.66-1.98 1.68-2.35.78-.29 1.48-1.15 1.28-2.25-.14-.79-.81-1.46-1.6-1.6a2.003 2.003 0 0 0-2.37 1.97h-2c0-1.18.52-2.3 1.43-3.06.91-.76 2.1-1.08 3.29-.87 1.61.28 2.94 1.61 3.22 3.22.34 1.93-.74 3.81-2.57 4.48l.01-.01Z",fill:t})})},W0=H0,z0=l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(Ob,{className:"accordion-header",id:"vds-accordion-header",children:M.jsxs(Pb,{id:"vds-accordion-trigger",className:$e(d0,t),...n,ref:r,children:[M.jsx(rt,{className:f0,children:e}),M.jsx(Ca,{className:s0,size:24,color:Pt.theme.colors.black})]})}));var U0="_7q2fqh7",Y0={info:"var(--_1qe00b2y)",warning:"var(--_1qe00b211)",neutral:"var(--_1qe00b2c)",error:"var(--_1qe00b214)"},K0=Ke({defaultClassName:"_7q2fqh0",variantClassNames:{variant:{info:"_7q2fqh1",warning:"_7q2fqh2",neutral:"_7q2fqh3",error:"_7q2fqh4"},size:{full:"_7q2fqh5",default:"_7q2fqh6"}},defaultVariants:{variant:"neutral",size:"default"},compoundVariants:[]});const q0=16,Ph=l.forwardRef(({className:e,title:t,children:n,withClose:r,variant:o,size:i,onClose:a,...s},c)=>{const u="div",f=l.useRef(null),[d,m]=l.useState(null),b=(()=>{switch(o){case"error":return D0;case"warning":return B0;default:return k0}})(),y=l.useCallback($=>{$.forEach(E=>{const{height:v}=E.contentRect;m(v>q0)})},[]);return l.useEffect(()=>{const $=f.current;if(!$)return;const E=new ResizeObserver(y);return E.observe($),()=>E.disconnect()},[y]),M.jsxs(u,{ref:c,className:$e(K0({variant:o,size:i}),e),"data-test-id":s["data-test-id"],...s,children:[M.jsxs(Bt,{gap:"$12",alignItems:d?"flex-start":"center",visibility:d===null?"hidden":"visible",children:[M.jsx(rt,{display:"flex",w:Pt.theme.space[24],children:M.jsx(b,{size:24,color:Y0[o||"neutral"]})}),M.jsxs(Ar,{gap:"$4",children:[t&&M.jsx(Xt,{textStyle:"caption",as:"span",fontWeight:"$medium",children:t}),M.jsx(rt,{ref:f,className:U0,children:n})]})]}),r&&M.jsx(Bt,{children:M.jsx(wu,{"data-test-id":"CT_Component-Alert-Close",onClick:a,cursor:"pointer",color:Pt.theme.colors.black,size:16})})]})});Ph.defaultProps={"data-test-id":void 0,title:void 0,withClose:void 0,onClose:void 0};const X0=l.forwardRef((e,t)=>{const{ratio:n=1,style:r,...o}=e;return l.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":""},l.createElement(Ue.div,ae({},o,{ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})))}),Eu=({children:e,...t})=>M.jsx(X0,{...t,children:e});Eu.defaultProps={children:void 0};Eu.displayName="AspectRatio";var G0=Ke({defaultClassName:"_1er7sj40",variantClassNames:{colorScheme:{primary:"_1er7sj41",disabled:"_1er7sj42",yellow:"_1er7sj43",red:"_1er7sj44",blue:"_1er7sj45",neutral:"_1er7sj46"},size:{large:"_1er7sj47 _15r4f4d1oz _15r4f4d1il _15r4f4d15j _15r4f4d1bx",medium:"_1er7sj48 _15r4f4d1op _15r4f4d1ib _15r4f4d15e _15r4f4d1bs",small:"_1er7sj49 _15r4f4d1op _15r4f4d1ib _15r4f4d154 _15r4f4d1bi"},isRounded:{true:"_1er7sj4a",false:"_1er7sj4b"},variant:{primary:"_1er7sj4c",secondary:"_1er7sj4d"}},defaultVariants:{colorScheme:"primary",size:"large",variant:"primary",isRounded:!1},compoundVariants:[[{colorScheme:"primary",variant:"secondary"},"_1er7sj4e"],[{colorScheme:"disabled",variant:"secondary"},"_1er7sj4f"],[{colorScheme:"yellow",variant:"secondary"},"_1er7sj4g"],[{colorScheme:"red",variant:"secondary"},"_1er7sj4h"],[{colorScheme:"blue",variant:"secondary"},"_1er7sj4i"]]});const xu=l.forwardRef(({as:e,children:t,colorScheme:n,size:r,variant:o,isRounded:i,className:a,style:s,...c},u)=>{const f=e||"span";return M.jsx(f,{ref:u,"data-test-id":c["data-test-id"],className:$e(G0({colorScheme:n,variant:o,size:r,isRounded:i}),a),style:s,...c,children:t})});xu.defaultProps={as:"span",colorScheme:"primary",size:"large",children:void 0,"data-test-id":void 0};xu.displayName="Badge";function Ud(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z0(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Cc="dismissableLayer.update",Q0="dismissableLayer.pointerDownOutside",J0="dismissableLayer.focusOutside";let Yd;const Ah=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rs=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,f=l.useContext(Ah),[d,m]=l.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=l.useState({}),y=lt(t,F=>m(F)),$=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=$.indexOf(E),w=d?$.indexOf(d):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,I=w>=v,D=tw(F=>{const k=F.target,B=[...f.branches].some(R=>R.contains(k));!I||B||(i==null||i(F),s==null||s(F),F.defaultPrevented||c==null||c())},p),A=nw(F=>{const k=F.target;[...f.branches].some(R=>R.contains(k))||(a==null||a(F),s==null||s(F),F.defaultPrevented||c==null||c())},p);return Z0(F=>{w===f.layers.size-1&&(o==null||o(F),!F.defaultPrevented&&c&&(F.preventDefault(),c()))},p),l.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Yd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Kd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Yd)}},[d,p,r,f]),l.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Kd())},[d,f]),l.useEffect(()=>{const F=()=>b({});return document.addEventListener(Cc,F),()=>document.removeEventListener(Cc,F)},[]),l.createElement(Ue.div,ae({},u,{ref:y,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,D.onPointerDownCapture)}))}),ew=l.forwardRef((e,t)=>{const n=l.useContext(Ah),r=l.useRef(null),o=lt(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.createElement(Ue.div,ae({},e,{ref:o}))});function tw(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Dh(Q0,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nw(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Dh(J0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kd(){const e=new CustomEvent(Cc);document.dispatchEvent(e)}function Dh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bh(o,i):o.dispatchEvent(i)}const rw=rs,ow=ew;let Hs=0;function Nh(){l.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:qd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:qd()),Hs++,()=>{Hs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Hs--}},[])}function qd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ws="focusScope.autoFocusOnMount",zs="focusScope.autoFocusOnUnmount",Xd={bubbles:!1,cancelable:!0},kh=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),u=ln(o),f=ln(i),d=l.useRef(null),m=lt(t,y=>c(y)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let y=function(w){if(p.paused||!s)return;const T=w.target;s.contains(T)?d.current=T:ar(d.current,{select:!0})},$=function(w){if(p.paused||!s)return;const T=w.relatedTarget;T!==null&&(s.contains(T)||ar(d.current,{select:!0}))},E=function(w){const T=document.activeElement;for(const I of w)I.removedNodes.length>0&&(s!=null&&s.contains(T)||ar(s))};document.addEventListener("focusin",y),document.addEventListener("focusout",$);const v=new MutationObserver(E);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",$),v.disconnect()}}},[r,s,p.paused]),l.useEffect(()=>{if(s){Zd.add(p);const y=document.activeElement;if(!s.contains(y)){const E=new CustomEvent(Ws,Xd);s.addEventListener(Ws,u),s.dispatchEvent(E),E.defaultPrevented||(iw(lw(Mh(s)),{select:!0}),document.activeElement===y&&ar(s))}return()=>{s.removeEventListener(Ws,u),setTimeout(()=>{const E=new CustomEvent(zs,Xd);s.addEventListener(zs,f),s.dispatchEvent(E),E.defaultPrevented||ar(y??document.body,{select:!0}),s.removeEventListener(zs,f),Zd.remove(p)},0)}}},[s,u,f,p]);const b=l.useCallback(y=>{if(!n&&!r||p.paused)return;const $=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,E=document.activeElement;if($&&E){const v=y.currentTarget,[w,T]=aw(v);w&&T?!y.shiftKey&&E===T?(y.preventDefault(),n&&ar(w,{select:!0})):y.shiftKey&&E===w&&(y.preventDefault(),n&&ar(T,{select:!0})):E===v&&y.preventDefault()}},[n,r,p.paused]);return l.createElement(Ue.div,ae({tabIndex:-1},a,{ref:m,onKeyDown:b}))});function iw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ar(r,{select:t}),document.activeElement!==n)return}function aw(e){const t=Mh(e),n=Gd(t,e),r=Gd(t.reverse(),e);return[n,r]}function Mh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gd(e,t){for(const n of e)if(!sw(n,{upTo:t}))return n}function sw(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cw(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cw(e)&&t&&e.select()}}const Zd=uw();function uw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Qd(e,t),e.unshift(t)},remove(t){var n;e=Qd(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Qd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lw(e){return e.filter(t=>t.tagName!=="A")}const dw=["top","right","bottom","left"],vr=Math.min,vn=Math.max,$a=Math.round,Bi=Math.floor,mr=e=>({x:e,y:e}),fw={left:"right",right:"left",bottom:"top",top:"bottom"},pw={start:"end",end:"start"};function $c(e,t,n){return vn(e,vr(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function go(e){return e.split("-")[1]}function _u(e){return e==="x"?"y":"x"}function Su(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(Qn(e))?"y":"x"}function Cu(e){return _u(yo(e))}function hw(e,t,n){n===void 0&&(n=!1);const r=go(e),o=Cu(e),i=Su(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ta(a)),[a,Ta(a)]}function vw(e){const t=Ta(e);return[Tc(e),t,Tc(t)]}function Tc(e){return e.replace(/start|end/g,t=>pw[t])}function mw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function gw(e,t,n,r){const o=go(e);let i=mw(Qn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Tc)))),i}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>fw[t])}function yw(e){return{top:0,right:0,bottom:0,left:0,...e}}function jh(e){return typeof e!="number"?yw(e):{top:e,right:e,bottom:e,left:e}}function Ia(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jd(e,t,n){let{reference:r,floating:o}=e;const i=yo(t),a=Cu(t),s=Su(a),c=Qn(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(go(t)){case"start":p[a]-=m*(n&&u?-1:1);break;case"end":p[a]+=m*(n&&u?-1:1);break}return p}const bw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Jd(u,r,c),m=r,p={},b=0;for(let y=0;y<s.length;y++){const{name:$,fn:E}=s[y],{x:v,y:w,data:T,reset:I}=await E({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=v??f,d=w??d,p={...p,[$]:{...p[$],...T}},I&&b<=50){b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(u=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:f,y:d}=Jd(u,m,c)),y=-1;continue}}return{x:f,y:d,placement:m,strategy:o,middlewareData:p}};async function si(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Zn(t,e),b=jh(p),$=s[m?d==="floating"?"reference":"floating":d],E=Ia(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement($)))==null||n?$:$.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),v=d==="floating"?{...a.floating,x:r,y:o}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:c}):v);return{top:(E.top-I.top+b.top)/T.y,bottom:(I.bottom-E.bottom+b.bottom)/T.y,left:(E.left-I.left+b.left)/T.x,right:(I.right-E.right+b.right)/T.x}}const ef=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:c,padding:u=0}=Zn(e,t)||{};if(c==null)return{};const f=jh(u),d={x:n,y:r},m=Cu(o),p=Su(m),b=await a.getDimensions(c),y=m==="y",$=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[m]-d[m]-i.floating[p],T=d[m]-i.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=I?I[v]:0;(!D||!await(a.isElement==null?void 0:a.isElement(I)))&&(D=s.floating[v]||i.floating[p]);const A=w/2-T/2,F=D/2-b[p]/2-1,k=vr(f[$],F),B=vr(f[E],F),R=k,x=D-b[p]-B,h=D/2-b[p]/2+A,C=$c(R,h,x),j=go(o)!=null&&h!=C&&i.reference[p]/2-(h<R?k:B)-b[p]/2<0?h<R?R-h:x-h:0;return{[m]:d[m]-j,data:{[m]:C,centerOffset:h-C+j}}}}),ww=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...y}=Zn(e,t),$=Qn(r),E=Qn(a)===a,v=await(s.isRTL==null?void 0:s.isRTL(c.floating)),w=d||(E||!b?[Ta(a)]:vw(a));!d&&p!=="none"&&w.push(...gw(a,b,p,v));const T=[a,...w],I=await si(t,y),D=[];let A=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&D.push(I[$]),f){const R=hw(r,i,v);D.push(I[R[0]],I[R[1]])}if(A=[...A,{placement:r,overflows:D}],!D.every(R=>R<=0)){var F,k;const R=(((F=o.flip)==null?void 0:F.index)||0)+1,x=T[R];if(x)return{data:{index:R,overflows:A},reset:{placement:x}};let h=(k=A.filter(C=>C.overflows[0]<=0).sort((C,P)=>C.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!h)switch(m){case"bestFit":{var B;const C=(B=A.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:B[0];C&&(h=C);break}case"initialPlacement":h=a;break}if(r!==h)return{reset:{placement:h}}}return{}}}};function tf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nf(e){return dw.some(t=>e[t]>=0)}const Ew=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zn(e,t);switch(r){case"referenceHidden":{const i=await si(t,{...o,elementContext:"reference"}),a=tf(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:nf(a)}}}case"escaped":{const i=await si(t,{...o,altBoundary:!0}),a=tf(i,n.floating);return{data:{escapedOffsets:a,escaped:nf(a)}}}default:return{}}}}};async function xw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Qn(n),s=go(n),c=yo(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,d=Zn(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof b=="number"&&(p=s==="end"?b*-1:b),c?{x:p*f,y:m*u}:{x:m*u,y:p*f}}const _w=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await xw(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Sw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:$=>{let{x:E,y:v}=$;return{x:E,y:v}}},...c}=Zn(e,t),u={x:n,y:r},f=await si(t,c),d=yo(Qn(o)),m=_u(d);let p=u[m],b=u[d];if(i){const $=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=p+f[$],w=p-f[E];p=$c(v,p,w)}if(a){const $=d==="y"?"top":"left",E=d==="y"?"bottom":"right",v=b+f[$],w=b-f[E];b=$c(v,b,w)}const y=s.fn({...t,[m]:p,[d]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}},Cw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Zn(e,t),f={x:n,y:r},d=yo(o),m=_u(d);let p=f[m],b=f[d];const y=Zn(s,t),$=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=m==="y"?"height":"width",T=i.reference[m]-i.floating[w]+$.mainAxis,I=i.reference[m]+i.reference[w]-$.mainAxis;p<T?p=T:p>I&&(p=I)}if(u){var E,v;const w=m==="y"?"width":"height",T=["top","left"].includes(Qn(o)),I=i.reference[d]-i.floating[w]+(T&&((E=a.offset)==null?void 0:E[d])||0)+(T?0:$.crossAxis),D=i.reference[d]+i.reference[w]+(T?0:((v=a.offset)==null?void 0:v[d])||0)-(T?$.crossAxis:0);b<I?b=I:b>D&&(b=D)}return{[m]:p,[d]:b}}}},$w=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Zn(e,t),c=await si(t,s),u=Qn(n),f=go(n),d=yo(n)==="y",{width:m,height:p}=r.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const $=p-c[b],E=m-c[y],v=!t.middlewareData.shift;let w=$,T=E;if(d){const D=m-c.left-c.right;T=f||v?vr(E,D):D}else{const D=p-c.top-c.bottom;w=f||v?vr($,D):D}if(v&&!f){const D=vn(c.left,0),A=vn(c.right,0),F=vn(c.top,0),k=vn(c.bottom,0);d?T=m-2*(D!==0||A!==0?D+A:vn(c.left,c.right)):w=p-2*(F!==0||k!==0?F+k:vn(c.top,c.bottom))}await a({...t,availableWidth:T,availableHeight:w});const I=await o.getDimensions(i.floating);return m!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function gr(e){return Lh(e)?(e.nodeName||"").toLowerCase():"#document"}function yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Lh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lh(e){return e instanceof Node||e instanceof yn(e).Node}function Jn(e){return e instanceof Element||e instanceof yn(e).Element}function Bn(e){return e instanceof HTMLElement||e instanceof yn(e).HTMLElement}function rf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yn(e).ShadowRoot}function Ci(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Tw(e){return["table","td","th"].includes(gr(e))}function $u(e){const t=Tu(),n=In(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Iw(e){let t=fo(e);for(;Bn(t)&&!os(t);){if($u(t))return t;t=fo(t)}return null}function Tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function os(e){return["html","body","#document"].includes(gr(e))}function In(e){return yn(e).getComputedStyle(e)}function is(e){return Jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fo(e){if(gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rf(e)&&e.host||er(e);return rf(t)?t.host:t}function Fh(e){const t=fo(e);return os(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bn(t)&&Ci(t)?t:Fh(t)}function Ra(e,t){var n;t===void 0&&(t=[]);const r=Fh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yn(r);return o?t.concat(i,i.visualViewport||[],Ci(r)?r:[]):t.concat(r,Ra(r))}function Vh(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=$a(n)!==i||$a(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Iu(e){return Jn(e)?e:e.contextElement}function oo(e){const t=Iu(e);if(!Bn(t))return mr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Vh(t);let a=(i?$a(n.width):n.width)/r,s=(i?$a(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Rw=mr(0);function Bh(e){const t=yn(e);return!Tu()||!t.visualViewport?Rw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ow(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yn(e)?!1:t}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Iu(e);let a=mr(1);t&&(r?Jn(r)&&(a=oo(r)):a=oo(e));const s=Ow(i,n,r)?Bh(i):mr(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const m=yn(i),p=r&&Jn(r)?yn(r):r;let b=m.frameElement;for(;b&&r&&p!==m;){const y=oo(b),$=b.getBoundingClientRect(),E=In(b),v=$.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=$.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,d*=y.y,c+=v,u+=w,b=yn(b).frameElement}}return Ia({width:f,height:d,x:c,y:u})}function Pw(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Bn(n),i=er(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=mr(1);const c=mr(0);if((o||!o&&r!=="fixed")&&((gr(n)!=="body"||Ci(i))&&(a=is(n)),Bn(n))){const u=Mr(n);s=oo(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}}function Aw(e){return Array.from(e.getClientRects())}function Hh(e){return Mr(er(e)).left+is(e).scrollLeft}function Dw(e){const t=er(e),n=is(e),r=e.ownerDocument.body,o=vn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hh(e);const s=-n.scrollTop;return In(r).direction==="rtl"&&(a+=vn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Nw(e,t){const n=yn(e),r=er(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Tu();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function kw(e,t){const n=Mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bn(e)?oo(e):mr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function of(e,t,n){let r;if(t==="viewport")r=Nw(e,n);else if(t==="document")r=Dw(er(e));else if(Jn(t))r=kw(t,n);else{const o=Bh(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ia(r)}function Wh(e,t){const n=fo(e);return n===t||!Jn(n)||os(n)?!1:In(n).position==="fixed"||Wh(n,t)}function Mw(e,t){const n=t.get(e);if(n)return n;let r=Ra(e).filter(s=>Jn(s)&&gr(s)!=="body"),o=null;const i=In(e).position==="fixed";let a=i?fo(e):e;for(;Jn(a)&&!os(a);){const s=In(a),c=$u(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ci(a)&&!c&&Wh(e,a))?r=r.filter(f=>f!==a):o=s,a=fo(a)}return t.set(e,r),r}function jw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Mw(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const d=of(t,f,o);return u.top=vn(d.top,u.top),u.right=vr(d.right,u.right),u.bottom=vr(d.bottom,u.bottom),u.left=vn(d.left,u.left),u},of(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Lw(e){return Vh(e)}function Fw(e,t,n){const r=Bn(t),o=er(t),i=n==="fixed",a=Mr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=mr(0);if(r||!r&&!i)if((gr(t)!=="body"||Ci(o))&&(s=is(t)),r){const u=Mr(t,!0,i,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else o&&(c.x=Hh(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function af(e,t){return!Bn(e)||In(e).position==="fixed"?null:t?t(e):e.offsetParent}function zh(e,t){const n=yn(e);if(!Bn(e))return n;let r=af(e,t);for(;r&&Tw(r)&&In(r).position==="static";)r=af(r,t);return r&&(gr(r)==="html"||gr(r)==="body"&&In(r).position==="static"&&!$u(r))?n:r||Iw(e)||n}const Vw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||zh,i=this.getDimensions;return{reference:Fw(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function Bw(e){return In(e).direction==="rtl"}const Hw={convertOffsetParentRelativeRectToViewportRelativeRect:Pw,getDocumentElement:er,getClippingRect:jw,getOffsetParent:zh,getElementRects:Vw,getClientRects:Aw,getDimensions:Lw,getScale:oo,isElement:Jn,isRTL:Bw};function Ww(e,t){let n=null,r;const o=er(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:d,height:m}=e.getBoundingClientRect();if(s||t(),!d||!m)return;const p=Bi(f),b=Bi(o.clientWidth-(u+d)),y=Bi(o.clientHeight-(f+m)),$=Bi(u),v={rootMargin:-p+"px "+-b+"px "+-y+"px "+-$+"px",threshold:vn(0,vr(1,c))||1};let w=!0;function T(I){const D=I[0].intersectionRatio;if(D!==c){if(!w)return a();D?a(!1,D):r=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(T,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,v)}n.observe(e)}return a(!0),i}function zw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Iu(e),f=o||i?[...u?Ra(u):[],...Ra(t)]:[];f.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const d=u&&s?Ww(u,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(E=>{let[v]=E;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let b,y=c?Mr(e):null;c&&$();function $(){const E=Mr(e);y&&(E.x!==y.x||E.y!==y.y||E.width!==y.width||E.height!==y.height)&&n(),y=E,b=requestAnimationFrame($)}return n(),()=>{f.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const Uw=(e,t,n)=>{const r=new Map,o={platform:Hw,...n},i={...o.platform,_c:r};return bw(e,t,{...o,platform:i})},Yw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ef({element:r.current,padding:o}).fn(n):{}:r?ef({element:r,padding:o}).fn(n):{}}}};var la=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Oa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Oa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sf(e,t){const n=Uh(e);return Math.round(t*n)/n}function cf(e){const t=Oe.useRef(e);return la(()=>{t.current=e}),t}function Kw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=Oe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=Oe.useState(r);Oa(m,r)||p(r);const[b,y]=Oe.useState(null),[$,E]=Oe.useState(null),v=Oe.useCallback(j=>{j!=D.current&&(D.current=j,y(j))},[y]),w=Oe.useCallback(j=>{j!==A.current&&(A.current=j,E(j))},[E]),T=i||b,I=a||$,D=Oe.useRef(null),A=Oe.useRef(null),F=Oe.useRef(f),k=cf(c),B=cf(o),R=Oe.useCallback(()=>{if(!D.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),Uw(D.current,A.current,j).then(H=>{const U={...H,isPositioned:!0};x.current&&!Oa(F.current,U)&&(F.current=U,Hy.flushSync(()=>{d(U)}))})},[m,t,n,B]);la(()=>{u===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[u]);const x=Oe.useRef(!1);la(()=>(x.current=!0,()=>{x.current=!1}),[]),la(()=>{if(T&&(D.current=T),I&&(A.current=I),T&&I){if(k.current)return k.current(T,I,R);R()}},[T,I,R,k]);const h=Oe.useMemo(()=>({reference:D,floating:A,setReference:v,setFloating:w}),[v,w]),C=Oe.useMemo(()=>({reference:T,floating:I}),[T,I]),P=Oe.useMemo(()=>{const j={position:n,left:0,top:0};if(!C.floating)return j;const H=sf(C.floating,f.x),U=sf(C.floating,f.y);return s?{...j,transform:"translate("+H+"px, "+U+"px)",...Uh(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,C.floating,f.x,f.y]);return Oe.useMemo(()=>({...f,update:R,refs:h,elements:C,floatingStyles:P}),[f,R,h,C,P])}const qw=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.createElement(Ue.svg,ae({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Xw=qw;function as(e){const[t,n]=l.useState(void 0);return Gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Yh="Popper",[Kh,ss]=bn(Yh),[Gw,qh]=Kh(Yh),Zw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return l.createElement(Gw,{scope:t,anchor:r,onAnchorChange:o},n)},Qw="PopperAnchor",Jw=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=qh(Qw,n),a=l.useRef(null),s=lt(t,a);return l.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.createElement(Ue.div,ae({},o,{ref:s}))}),Xh="PopperContent",[e1,t1]=Kh(Xh),n1=l.forwardRef((e,t)=>{var n,r,o,i,a,s,c,u;const{__scopePopper:f,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:b=0,arrowPadding:y=0,collisionBoundary:$=[],collisionPadding:E=0,sticky:v="partial",hideWhenDetached:w=!1,avoidCollisions:T=!0,onPlaced:I,...D}=e,A=qh(Xh,f),[F,k]=l.useState(null),B=lt(t,xe=>k(xe)),[R,x]=l.useState(null),h=as(R),C=(n=h==null?void 0:h.width)!==null&&n!==void 0?n:0,P=(r=h==null?void 0:h.height)!==null&&r!==void 0?r:0,j=d+(p!=="center"?"-"+p:""),H=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},U=Array.isArray($)?$:[$],re=U.length>0,W={padding:H,boundary:U.filter(a1),altBoundary:re},{refs:L,floatingStyles:J,placement:Y,isPositioned:K,middlewareData:Z}=Kw({strategy:"fixed",placement:j,whileElementsMounted:zw,elements:{reference:A.anchor},middleware:[_w({mainAxis:m+P,alignmentAxis:b}),T&&Sw({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Cw():void 0,...W}),T&&ww({...W}),$w({...W,apply:({elements:xe,rects:Ee,availableWidth:Ae,availableHeight:Ie})=>{const{width:Le,height:ke}=Ee.reference,st=xe.floating.style;st.setProperty("--radix-popper-available-width",`${Ae}px`),st.setProperty("--radix-popper-available-height",`${Ie}px`),st.setProperty("--radix-popper-anchor-width",`${Le}px`),st.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),R&&Yw({element:R,padding:y}),s1({arrowWidth:C,arrowHeight:P}),w&&Ew({strategy:"referenceHidden"})]}),[ce,z]=Gh(Y),G=ln(I);Gt(()=>{K&&(G==null||G())},[K,G]);const oe=(o=Z.arrow)===null||o===void 0?void 0:o.x,ne=(i=Z.arrow)===null||i===void 0?void 0:i.y,ie=((a=Z.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ee,pe]=l.useState();return Gt(()=>{F&&pe(window.getComputedStyle(F).zIndex)},[F]),l.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(s=Z.transformOrigin)===null||s===void 0?void 0:s.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(e1,{scope:f,placedSide:ce,onArrowChange:x,arrowX:oe,arrowY:ne,shouldHideArrow:ie},l.createElement(Ue.div,ae({"data-side":ce,"data-align":z},D,{ref:B,style:{...D.style,animation:K?void 0:"none",opacity:(u=Z.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),r1="PopperArrow",o1={top:"bottom",right:"left",bottom:"top",left:"right"},i1=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=t1(r1,r),a=o1[i.placedSide];return l.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},l.createElement(Xw,ae({},o,{ref:n,style:{...o.style,display:"block"}})))});function a1(e){return e!==null}const s1=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[b,y]=Gh(s),$={start:"0%",center:"50%",end:"100%"}[y],E=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,v=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let w="",T="";return b==="bottom"?(w=d?$:`${E}px`,T=`${-p}px`):b==="top"?(w=d?$:`${E}px`,T=`${c.floating.height+p}px`):b==="right"?(w=`${-p}px`,T=d?$:`${v}px`):b==="left"&&(w=`${c.floating.width+p}px`,T=d?$:`${v}px`),{data:{x:w,y:T}}}});function Gh(e){const[t,n="center"]=e.split("-");return[t,n]}const Zh=Zw,Qh=Jw,Jh=n1,c1=i1,ev=l.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?mn.createPortal(l.createElement(Ue.div,ae({},o,{ref:t})),r):null}),u1=ev;function cs(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const us=l.forwardRef((e,t)=>l.createElement(Ue.span,ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),l1=us;var d1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Hi=new WeakMap,Wi={},Us=0,tv=function(e){return e&&(e.host||tv(e.parentNode))},f1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},p1=function(e,t,n,r){var o=f1(t,Array.isArray(e)?e:[e]);Wi[n]||(Wi[n]=new WeakMap);var i=Wi[n],a=[],s=new Set,c=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(s.has(m))f(m);else{var p=m.getAttribute(r),b=p!==null&&p!=="false",y=(Ur.get(m)||0)+1,$=(i.get(m)||0)+1;Ur.set(m,y),i.set(m,$),a.push(m),y===1&&b&&Hi.set(m,!0),$===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}})};return f(t),s.clear(),Us++,function(){a.forEach(function(d){var m=Ur.get(d)-1,p=i.get(d)-1;Ur.set(d,m),i.set(d,p),m||(Hi.has(d)||d.removeAttribute(r),Hi.delete(d)),p||d.removeAttribute(n)}),Us--,Us||(Ur=new WeakMap,Ur=new WeakMap,Hi=new WeakMap,Wi={})}},nv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||d1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),p1(r,o,n,"aria-hidden")):function(){return null}},Cn=function(){return Cn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Cn.apply(this,arguments)};function rv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function h1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",fa="width-before-scroll-bar",v1="with-scroll-bars-hidden",m1="--removed-body-scroll-bar-size";function g1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function y1(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function b1(e,t){return y1(t||null,function(n){return e.forEach(function(r){return g1(r,n)})})}function w1(e){return e}function E1(e,t){t===void 0&&(t=w1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function x1(e){e===void 0&&(e={});var t=E1(null);return t.options=Cn({async:!0,ssr:!1},e),t}var ov=function(e){var t=e.sideCar,n=rv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Oe.createElement(r,Cn({},n))};ov.isSideCarExport=!0;function _1(e,t){return e.useMedium(t),ov}var iv=x1(),Ys=function(){},ls=Oe.forwardRef(function(e,t){var n=Oe.useRef(null),r=Oe.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,p=e.noIsolation,b=e.inert,y=e.allowPinchZoom,$=e.as,E=$===void 0?"div":$,v=rv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,T=b1([n,t]),I=Cn(Cn({},v),o);return Oe.createElement(Oe.Fragment,null,f&&Oe.createElement(w,{sideCar:iv,removeScrollBar:u,shards:d,noIsolation:p,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:n}),a?Oe.cloneElement(Oe.Children.only(s),Cn(Cn({},I),{ref:T})):Oe.createElement(E,Cn({},I,{className:c,ref:T}),s))});ls.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ls.classNames={fullWidth:fa,zeroRight:da};var uf,S1=function(){if(uf)return uf;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function C1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=S1();return t&&e.setAttribute("nonce",t),e}function $1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function T1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var I1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=C1())&&($1(t,n),T1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R1=function(){var e=I1();return function(t,n){Oe.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},av=function(){var e=R1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},O1={left:0,top:0,right:0,gap:0},Ks=function(e){return parseInt(e||"",10)||0},P1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ks(n),Ks(r),Ks(o)]},A1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return O1;var t=P1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},D1=av(),N1=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
53
|
+
Check the top-level render call using <`+Q+">.")}return V}}function en(_,V){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var Q=Rn(V);if(Mn[Q])return;Mn[Q]=!0;var fe="";_&&_._owner&&_._owner!==ze.current&&(fe=" It was passed a child from "+h(_._owner.type)+"."),_t(_),v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,fe),_t(null)}}function tn(_,V){{if(typeof _!="object")return;if(Et(_))for(var Q=0;Q<_.length;Q++){var fe=_[Q];Jt(fe)&&en(fe,V)}else if(Jt(_))_._store&&(_._store.validated=!0);else if(_){var Se=$(_);if(typeof Se=="function"&&Se!==_.entries)for(var Pe=Se.call(_),_e;!(_e=Pe.next()).done;)Jt(_e.value)&&en(_e.value,V)}}}function nn(_){{var V=_.type;if(V==null||typeof V=="string")return;var Q;if(typeof V=="function")Q=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===c||V.$$typeof===d))Q=V.propTypes;else return;if(Q){var fe=h(V);st(Q,_.props,"prop",fe,_)}else if(V.PropTypes!==void 0&&!Qt){Qt=!0;var Se=h(V);v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Se||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function En(_){{for(var V=Object.keys(_.props),Q=0;Q<V.length;Q++){var fe=V[Q];if(fe!=="children"&&fe!=="key"){_t(_),v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),_t(null);break}}_.ref!==null&&(_t(_),v("Invalid attribute `ref` supplied to `React.Fragment`."),_t(null))}}function fn(_,V,Q,fe,Se,Pe){{var _e=B(_);if(!_e){var we="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(we+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var it=sn(Se);it?we+=it:we+=kn();var Fe;_===null?Fe="null":Et(_)?Fe="array":_!==void 0&&_.$$typeof===t?(Fe="<"+(h(_.type)||"Unknown")+" />",we=" Did you accidentally export a JSX literal instead of a component?"):Fe=typeof _,v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Fe,we)}var Be=ve(_,V,Q,Se,Pe);if(Be==null)return Be;if(_e){var Ze=V.children;if(Ze!==void 0)if(fe)if(Et(Ze)){for(var Kt=0;Kt<Ze.length;Kt++)tn(Ze[Kt],_);Object.freeze&&Object.freeze(Ze)}else v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else tn(Ze,_)}return _===r?En(Be):nn(Be),Be}}function Wt(_,V,Q){return fn(_,V,Q,!0)}function nr(_,V,Q){return fn(_,V,Q,!1)}var zt=nr,rr=Wt;Vi.Fragment=r,Vi.jsx=zt,Vi.jsxs=rr}()),Vi}process.env.NODE_ENV==="production"?Sc.exports=v0():Sc.exports=m0();var ot=Sc.exports;const g0=e=>{const t="currentColor";return{...e,color:(()=>e.color?Pt.theme.colors[e.color]?Pt.theme.colors[e.color]:e.color:"inherit")(),fill:(e==null?void 0:e.fill)||t,width:(e==null?void 0:e.size)||24,height:(e==null?void 0:e.size)||24}},on=g0,y0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m19.02 6.96-8.62 8.9-5.28-5.27L3 12.71l7.43 7.43 10.74-11.1-2.15-2.08Z",fill:t})})},Rh=y0,b0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M20.3906 6.76232C20.7421 7.11379 20.7421 7.68364 20.3906 8.03511L11.188 17.2377C11.0192 17.4065 10.7903 17.5013 10.5516 17.5013C10.3129 17.5013 10.084 17.4065 9.9152 17.2377L4.6209 11.9434C4.26943 11.5919 4.26943 11.0221 4.62091 10.6706C4.97238 10.3191 5.54223 10.3191 5.8937 10.6706L10.5516 15.3285L19.1178 6.76232C19.4693 6.41085 20.0391 6.41085 20.3906 6.76232Z",fill:t})})},w0=b0,E0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m21.59 9.03-2.12-2.12-6.94 6.94-6.94-6.94-2.12 2.12 9.06 9.06 9.06-9.06Z",fill:t})})},Ca=E0,x0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M13.1364 16.2592C12.7849 16.6106 12.215 16.6106 11.8636 16.2592L4.61805 9.01365C4.26657 8.66217 4.26657 8.09233 4.61805 7.74085C4.96952 7.38938 5.53937 7.38938 5.89084 7.74085L12.5 14.35L19.1091 7.74085C19.4606 7.38938 20.0304 7.38938 20.3819 7.74086C20.7334 8.09233 20.7334 8.66218 20.3819 9.01365L13.1364 16.2592Z",fill:t})})},_0=x0,S0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m16 21.56 2.12-2.12-6.94-6.94 6.94-6.94L16 3.44 6.94 12.5 16 21.56Z",fill:t})})},C0=S0,$0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m3.47 15.97 2.12 2.12 6.94-6.94 6.94 6.94 2.12-2.12-9.06-9.06-9.06 9.06Z",fill:t})})},Oh=$0,T0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M11.8636 7.74084C12.2151 7.38937 12.785 7.38937 13.1364 7.74084L20.382 14.9864C20.7334 15.3378 20.7334 15.9077 20.382 16.2591C20.0305 16.6106 19.4606 16.6106 19.1092 16.2591L12.5 9.65002L5.89089 16.2591C5.53941 16.6106 4.96957 16.6106 4.61809 16.2591C4.26662 15.9077 4.26662 15.3378 4.6181 14.9864L11.8636 7.74084Z",fill:t})})},I0=T0,R0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m21.06 19.44-6.98-6.98 6.9-6.9-2.12-2.12-6.9 6.9-6.82-6.82-2.12 2.12 6.82 6.82-6.9 6.9 2.12 2.12 6.9-6.9 6.98 6.98 2.12-2.12Z",fill:t})})},O0=R0,P0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M4.60857 4.11486C4.96004 3.76339 5.52989 3.76339 5.88136 4.11486L20.3915 18.6249C20.743 18.9764 20.743 19.5462 20.3915 19.8977C20.04 20.2492 19.4702 20.2492 19.1187 19.8977L4.60858 5.38766C4.2571 5.03618 4.2571 4.46634 4.60857 4.11486Z",fill:t}),ot.jsx("path",{d:"M20.3914 4.1148C20.7429 4.46627 20.7429 5.03612 20.3914 5.38759L5.88138 19.8977C5.52991 20.2492 4.96006 20.2492 4.60859 19.8977C4.25711 19.5463 4.25711 18.9764 4.60858 18.6249L19.1186 4.1148C19.4701 3.76333 20.04 3.76333 20.3914 4.1148Z",fill:t})]})},wu=P0,A0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ot.jsx("path",{d:"m16.67 9.21-1.42-1.42-3.27 3.28-3.23-3.24-1.42 1.42 3.24 3.23-3.28 3.27 1.42 1.42 3.27-3.28 3.31 3.32 1.42-1.42-3.32-3.31 3.28-3.27Z",fill:t})]})},D0=A0,N0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8Z",fill:t}),ot.jsx("path",{d:"M12 9.62a1.12 1.12 0 1 0 0-2.24 1.12 1.12 0 0 0 0 2.24ZM13 11.5h-2v6h2v-6Z",fill:t})]})},k0=N0,M0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.2449 12C4.2449 11.4477 4.69262 11 5.2449 11L19.7869 11C20.3392 11 20.7869 11.4477 20.7869 12C20.7869 12.5523 20.3392 13 19.7869 13L5.2449 13C4.69262 13 4.2449 12.5523 4.2449 12Z",fill:t})})},j0=M0,L0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"m22 21.67-4.86-4.86a8.474 8.474 0 0 0 1.86-5.3c0-4.69-3.81-8.5-8.5-8.5-4.69 0-8.5 3.81-8.5 8.5 0 4.69 3.81 8.5 8.5 8.5 2.01 0 3.85-.7 5.3-1.86l4.86 4.86 1.33-1.33.01-.01ZM10.5 18C6.92 18 4 15.08 4 11.5S6.92 5 10.5 5 17 7.92 17 11.5 14.08 18 10.5 18Z",fill:t})})},F0=L0,V0=e=>{const{color:t,...n}=on(e);return ot.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:[ot.jsx("path",{d:"M13 11h-2v4h2v-4ZM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:t}),ot.jsx("path",{d:"M12 3 2 21h20L12 3Zm0 4.12L18.6 19H5.4L12 7.12Z",fill:t})]})},B0=V0,H0=e=>{const{color:t,...n}=on(e);return ot.jsx("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...n,children:ot.jsx("path",{d:"M12 2.5c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10Zm0 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1Zm1.37-4.24c-.22.08-.37.27-.37.47v.77h-2v-.77c0-1.06.66-1.98 1.68-2.35.78-.29 1.48-1.15 1.28-2.25-.14-.79-.81-1.46-1.6-1.6a2.003 2.003 0 0 0-2.37 1.97h-2c0-1.18.52-2.3 1.43-3.06.91-.76 2.1-1.08 3.29-.87 1.61.28 2.94 1.61 3.22 3.22.34 1.93-.74 3.81-2.57 4.48l.01-.01Z",fill:t})})},W0=H0,z0=l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(Ob,{className:"accordion-header",id:"vds-accordion-header",children:M.jsxs(Pb,{id:"vds-accordion-trigger",className:$e(d0,t),...n,ref:r,children:[M.jsx(rt,{className:f0,children:e}),M.jsx(Ca,{className:s0,size:24,color:Pt.theme.colors.black})]})}));var U0="_7q2fqh7",Y0={info:"var(--_1qe00b2y)",warning:"var(--_1qe00b211)",neutral:"var(--_1qe00b2c)",error:"var(--_1qe00b214)"},K0=Ke({defaultClassName:"_7q2fqh0",variantClassNames:{variant:{info:"_7q2fqh1",warning:"_7q2fqh2",neutral:"_7q2fqh3",error:"_7q2fqh4"},size:{full:"_7q2fqh5",default:"_7q2fqh6"}},defaultVariants:{variant:"neutral",size:"default"},compoundVariants:[]});const q0=16,Ph=l.forwardRef(({className:e,title:t,children:n,withClose:r,variant:o,size:i,onClose:a,...s},c)=>{const u="div",f=l.useRef(null),[d,m]=l.useState(null),b=(()=>{switch(o){case"error":return D0;case"warning":return B0;default:return k0}})(),y=l.useCallback($=>{$.forEach(E=>{const{height:v}=E.contentRect;m(v>q0)})},[]);return l.useEffect(()=>{const $=f.current;if(!$)return;const E=new ResizeObserver(y);return E.observe($),()=>E.disconnect()},[y]),M.jsxs(u,{ref:c,className:$e(K0({variant:o,size:i}),e),"data-test-id":s["data-test-id"],...s,children:[M.jsxs(Bt,{gap:"$12",alignItems:d?"flex-start":"center",visibility:d===null?"hidden":"visible",children:[M.jsx(rt,{display:"flex",w:Pt.theme.space[24],children:M.jsx(b,{size:24,color:Y0[o||"neutral"]})}),M.jsxs(Ar,{gap:"$4",children:[t&&M.jsx(Xt,{textStyle:"caption",as:"span",fontWeight:"$medium",children:t}),M.jsx(rt,{ref:f,className:U0,children:n})]})]}),r&&M.jsx(Bt,{children:M.jsx(O0,{"data-test-id":"CT_Component-Alert-Close",onClick:a,cursor:"pointer",color:Pt.theme.colors.black,size:16})})]})});Ph.defaultProps={"data-test-id":void 0,title:void 0,withClose:void 0,onClose:void 0};const X0=l.forwardRef((e,t)=>{const{ratio:n=1,style:r,...o}=e;return l.createElement("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/n}%`},"data-radix-aspect-ratio-wrapper":""},l.createElement(Ue.div,ae({},o,{ref:t,style:{...r,position:"absolute",top:0,right:0,bottom:0,left:0}})))}),Eu=({children:e,...t})=>M.jsx(X0,{...t,children:e});Eu.defaultProps={children:void 0};Eu.displayName="AspectRatio";var G0=Ke({defaultClassName:"_1er7sj40",variantClassNames:{colorScheme:{primary:"_1er7sj41",disabled:"_1er7sj42",yellow:"_1er7sj43",red:"_1er7sj44",blue:"_1er7sj45",neutral:"_1er7sj46"},size:{large:"_1er7sj47 _15r4f4d1oz _15r4f4d1il _15r4f4d15j _15r4f4d1bx",medium:"_1er7sj48 _15r4f4d1op _15r4f4d1ib _15r4f4d15e _15r4f4d1bs",small:"_1er7sj49 _15r4f4d1op _15r4f4d1ib _15r4f4d154 _15r4f4d1bi"},isRounded:{true:"_1er7sj4a",false:"_1er7sj4b"},variant:{primary:"_1er7sj4c",secondary:"_1er7sj4d"}},defaultVariants:{colorScheme:"primary",size:"large",variant:"primary",isRounded:!1},compoundVariants:[[{colorScheme:"primary",variant:"secondary"},"_1er7sj4e"],[{colorScheme:"disabled",variant:"secondary"},"_1er7sj4f"],[{colorScheme:"yellow",variant:"secondary"},"_1er7sj4g"],[{colorScheme:"red",variant:"secondary"},"_1er7sj4h"],[{colorScheme:"blue",variant:"secondary"},"_1er7sj4i"]]});const xu=l.forwardRef(({as:e,children:t,colorScheme:n,size:r,variant:o,isRounded:i,className:a,style:s,...c},u)=>{const f=e||"span";return M.jsx(f,{ref:u,"data-test-id":c["data-test-id"],className:$e(G0({colorScheme:n,variant:o,size:r,isRounded:i}),a),style:s,...c,children:t})});xu.defaultProps={as:"span",colorScheme:"primary",size:"large",children:void 0,"data-test-id":void 0};xu.displayName="Badge";function Ud(e,[t,n]){return Math.min(n,Math.max(t,e))}function Z0(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e);l.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Cc="dismissableLayer.update",Q0="dismissableLayer.pointerDownOutside",J0="dismissableLayer.focusOutside";let Yd;const Ah=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rs=l.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...u}=e,f=l.useContext(Ah),[d,m]=l.useState(null),p=(n=d==null?void 0:d.ownerDocument)!==null&&n!==void 0?n:globalThis==null?void 0:globalThis.document,[,b]=l.useState({}),y=lt(t,F=>m(F)),$=Array.from(f.layers),[E]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),v=$.indexOf(E),w=d?$.indexOf(d):-1,T=f.layersWithOutsidePointerEventsDisabled.size>0,I=w>=v,D=tw(F=>{const k=F.target,B=[...f.branches].some(R=>R.contains(k));!I||B||(i==null||i(F),s==null||s(F),F.defaultPrevented||c==null||c())},p),A=nw(F=>{const k=F.target;[...f.branches].some(R=>R.contains(k))||(a==null||a(F),s==null||s(F),F.defaultPrevented||c==null||c())},p);return Z0(F=>{w===f.layers.size-1&&(o==null||o(F),!F.defaultPrevented&&c&&(F.preventDefault(),c()))},p),l.useEffect(()=>{if(d)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Yd=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(d)),f.layers.add(d),Kd(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Yd)}},[d,p,r,f]),l.useEffect(()=>()=>{d&&(f.layers.delete(d),f.layersWithOutsidePointerEventsDisabled.delete(d),Kd())},[d,f]),l.useEffect(()=>{const F=()=>b({});return document.addEventListener(Cc,F),()=>document.removeEventListener(Cc,F)},[]),l.createElement(Ue.div,ae({},u,{ref:y,style:{pointerEvents:T?I?"auto":"none":void 0,...e.style},onFocusCapture:Ne(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Ne(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Ne(e.onPointerDownCapture,D.onPointerDownCapture)}))}),ew=l.forwardRef((e,t)=>{const n=l.useContext(Ah),r=l.useRef(null),o=lt(t,r);return l.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),l.createElement(Ue.div,ae({},e,{ref:o}))});function tw(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!r.current){let u=function(){Dh(Q0,n,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function nw(e,t=globalThis==null?void 0:globalThis.document){const n=ln(e),r=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!r.current&&Dh(J0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Kd(){const e=new CustomEvent(Cc);document.dispatchEvent(e)}function Dh(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bh(o,i):o.dispatchEvent(i)}const rw=rs,ow=ew;let Hs=0;function Nh(){l.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:qd()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:qd()),Hs++,()=>{Hs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Hs--}},[])}function qd(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const Ws="focusScope.autoFocusOnMount",zs="focusScope.autoFocusOnUnmount",Xd={bubbles:!1,cancelable:!0},kh=l.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),u=ln(o),f=ln(i),d=l.useRef(null),m=lt(t,y=>c(y)),p=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(r){let y=function(w){if(p.paused||!s)return;const T=w.target;s.contains(T)?d.current=T:ar(d.current,{select:!0})},$=function(w){if(p.paused||!s)return;const T=w.relatedTarget;T!==null&&(s.contains(T)||ar(d.current,{select:!0}))},E=function(w){const T=document.activeElement;for(const I of w)I.removedNodes.length>0&&(s!=null&&s.contains(T)||ar(s))};document.addEventListener("focusin",y),document.addEventListener("focusout",$);const v=new MutationObserver(E);return s&&v.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",$),v.disconnect()}}},[r,s,p.paused]),l.useEffect(()=>{if(s){Zd.add(p);const y=document.activeElement;if(!s.contains(y)){const E=new CustomEvent(Ws,Xd);s.addEventListener(Ws,u),s.dispatchEvent(E),E.defaultPrevented||(iw(lw(Mh(s)),{select:!0}),document.activeElement===y&&ar(s))}return()=>{s.removeEventListener(Ws,u),setTimeout(()=>{const E=new CustomEvent(zs,Xd);s.addEventListener(zs,f),s.dispatchEvent(E),E.defaultPrevented||ar(y??document.body,{select:!0}),s.removeEventListener(zs,f),Zd.remove(p)},0)}}},[s,u,f,p]);const b=l.useCallback(y=>{if(!n&&!r||p.paused)return;const $=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,E=document.activeElement;if($&&E){const v=y.currentTarget,[w,T]=aw(v);w&&T?!y.shiftKey&&E===T?(y.preventDefault(),n&&ar(w,{select:!0})):y.shiftKey&&E===w&&(y.preventDefault(),n&&ar(T,{select:!0})):E===v&&y.preventDefault()}},[n,r,p.paused]);return l.createElement(Ue.div,ae({tabIndex:-1},a,{ref:m,onKeyDown:b}))});function iw(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ar(r,{select:t}),document.activeElement!==n)return}function aw(e){const t=Mh(e),n=Gd(t,e),r=Gd(t.reverse(),e);return[n,r]}function Mh(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Gd(e,t){for(const n of e)if(!sw(n,{upTo:t}))return n}function sw(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function cw(e){return e instanceof HTMLInputElement&&"select"in e}function ar(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&cw(e)&&t&&e.select()}}const Zd=uw();function uw(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Qd(e,t),e.unshift(t)},remove(t){var n;e=Qd(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function Qd(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lw(e){return e.filter(t=>t.tagName!=="A")}const dw=["top","right","bottom","left"],vr=Math.min,vn=Math.max,$a=Math.round,Bi=Math.floor,mr=e=>({x:e,y:e}),fw={left:"right",right:"left",bottom:"top",top:"bottom"},pw={start:"end",end:"start"};function $c(e,t,n){return vn(e,vr(t,n))}function Zn(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function go(e){return e.split("-")[1]}function _u(e){return e==="x"?"y":"x"}function Su(e){return e==="y"?"height":"width"}function yo(e){return["top","bottom"].includes(Qn(e))?"y":"x"}function Cu(e){return _u(yo(e))}function hw(e,t,n){n===void 0&&(n=!1);const r=go(e),o=Cu(e),i=Su(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ta(a)),[a,Ta(a)]}function vw(e){const t=Ta(e);return[Tc(e),t,Tc(t)]}function Tc(e){return e.replace(/start|end/g,t=>pw[t])}function mw(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}function gw(e,t,n,r){const o=go(e);let i=mw(Qn(e),n==="start",r);return o&&(i=i.map(a=>a+"-"+o),t&&(i=i.concat(i.map(Tc)))),i}function Ta(e){return e.replace(/left|right|bottom|top/g,t=>fw[t])}function yw(e){return{top:0,right:0,bottom:0,left:0,...e}}function jh(e){return typeof e!="number"?yw(e):{top:e,right:e,bottom:e,left:e}}function Ia(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jd(e,t,n){let{reference:r,floating:o}=e;const i=yo(t),a=Cu(t),s=Su(a),c=Qn(t),u=i==="y",f=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:f,y:r.y-o.height};break;case"bottom":p={x:f,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(go(t)){case"start":p[a]-=m*(n&&u?-1:1);break;case"end":p[a]+=m*(n&&u?-1:1);break}return p}const bw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Jd(u,r,c),m=r,p={},b=0;for(let y=0;y<s.length;y++){const{name:$,fn:E}=s[y],{x:v,y:w,data:T,reset:I}=await E({x:f,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});if(f=v??f,d=w??d,p={...p,[$]:{...p[$],...T}},I&&b<=50){b++,typeof I=="object"&&(I.placement&&(m=I.placement),I.rects&&(u=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:f,y:d}=Jd(u,m,c)),y=-1;continue}}return{x:f,y:d,placement:m,strategy:o,middlewareData:p}};async function si(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=Zn(t,e),b=jh(p),$=s[m?d==="floating"?"reference":"floating":d],E=Ia(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement($)))==null||n?$:$.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:c})),v=d==="floating"?{...a.floating,x:r,y:o}:a.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),T=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ia(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:w,strategy:c}):v);return{top:(E.top-I.top+b.top)/T.y,bottom:(I.bottom-E.bottom+b.bottom)/T.y,left:(E.left-I.left+b.left)/T.x,right:(I.right-E.right+b.right)/T.x}}const ef=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:a,elements:s}=t,{element:c,padding:u=0}=Zn(e,t)||{};if(c==null)return{};const f=jh(u),d={x:n,y:r},m=Cu(o),p=Su(m),b=await a.getDimensions(c),y=m==="y",$=y?"top":"left",E=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=i.reference[p]+i.reference[m]-d[m]-i.floating[p],T=d[m]-i.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let D=I?I[v]:0;(!D||!await(a.isElement==null?void 0:a.isElement(I)))&&(D=s.floating[v]||i.floating[p]);const A=w/2-T/2,F=D/2-b[p]/2-1,k=vr(f[$],F),B=vr(f[E],F),R=k,x=D-b[p]-B,h=D/2-b[p]/2+A,C=$c(R,h,x),j=go(o)!=null&&h!=C&&i.reference[p]/2-(h<R?k:B)-b[p]/2<0?h<R?R-h:x-h:0;return{[m]:d[m]-j,data:{[m]:C,centerOffset:h-C+j}}}}),ww=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:r,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...y}=Zn(e,t),$=Qn(r),E=Qn(a)===a,v=await(s.isRTL==null?void 0:s.isRTL(c.floating)),w=d||(E||!b?[Ta(a)]:vw(a));!d&&p!=="none"&&w.push(...gw(a,b,p,v));const T=[a,...w],I=await si(t,y),D=[];let A=((n=o.flip)==null?void 0:n.overflows)||[];if(u&&D.push(I[$]),f){const R=hw(r,i,v);D.push(I[R[0]],I[R[1]])}if(A=[...A,{placement:r,overflows:D}],!D.every(R=>R<=0)){var F,k;const R=(((F=o.flip)==null?void 0:F.index)||0)+1,x=T[R];if(x)return{data:{index:R,overflows:A},reset:{placement:x}};let h=(k=A.filter(C=>C.overflows[0]<=0).sort((C,P)=>C.overflows[1]-P.overflows[1])[0])==null?void 0:k.placement;if(!h)switch(m){case"bestFit":{var B;const C=(B=A.map(P=>[P.placement,P.overflows.filter(j=>j>0).reduce((j,H)=>j+H,0)]).sort((P,j)=>P[1]-j[1])[0])==null?void 0:B[0];C&&(h=C);break}case"initialPlacement":h=a;break}if(r!==h)return{reset:{placement:h}}}return{}}}};function tf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nf(e){return dw.some(t=>e[t]>=0)}const Ew=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zn(e,t);switch(r){case"referenceHidden":{const i=await si(t,{...o,elementContext:"reference"}),a=tf(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:nf(a)}}}case"escaped":{const i=await si(t,{...o,altBoundary:!0}),a=tf(i,n.floating);return{data:{escapedOffsets:a,escaped:nf(a)}}}default:return{}}}}};async function xw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Qn(n),s=go(n),c=yo(n)==="y",u=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,d=Zn(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&typeof b=="number"&&(p=s==="end"?b*-1:b),c?{x:p*f,y:m*u}:{x:m*u,y:p*f}}const _w=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,o=await xw(t,e);return{x:n+o.x,y:r+o.y,data:o}}}},Sw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:$=>{let{x:E,y:v}=$;return{x:E,y:v}}},...c}=Zn(e,t),u={x:n,y:r},f=await si(t,c),d=yo(Qn(o)),m=_u(d);let p=u[m],b=u[d];if(i){const $=m==="y"?"top":"left",E=m==="y"?"bottom":"right",v=p+f[$],w=p-f[E];p=$c(v,p,w)}if(a){const $=d==="y"?"top":"left",E=d==="y"?"bottom":"right",v=b+f[$],w=b-f[E];b=$c(v,b,w)}const y=s.fn({...t,[m]:p,[d]:b});return{...y,data:{x:y.x-n,y:y.y-r}}}}},Cw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:u=!0}=Zn(e,t),f={x:n,y:r},d=yo(o),m=_u(d);let p=f[m],b=f[d];const y=Zn(s,t),$=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const w=m==="y"?"height":"width",T=i.reference[m]-i.floating[w]+$.mainAxis,I=i.reference[m]+i.reference[w]-$.mainAxis;p<T?p=T:p>I&&(p=I)}if(u){var E,v;const w=m==="y"?"width":"height",T=["top","left"].includes(Qn(o)),I=i.reference[d]-i.floating[w]+(T&&((E=a.offset)==null?void 0:E[d])||0)+(T?0:$.crossAxis),D=i.reference[d]+i.reference[w]+(T?0:((v=a.offset)==null?void 0:v[d])||0)-(T?$.crossAxis:0);b<I?b=I:b>D&&(b=D)}return{[m]:p,[d]:b}}}},$w=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=Zn(e,t),c=await si(t,s),u=Qn(n),f=go(n),d=yo(n)==="y",{width:m,height:p}=r.floating;let b,y;u==="top"||u==="bottom"?(b=u,y=f===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(y=u,b=f==="end"?"top":"bottom");const $=p-c[b],E=m-c[y],v=!t.middlewareData.shift;let w=$,T=E;if(d){const D=m-c.left-c.right;T=f||v?vr(E,D):D}else{const D=p-c.top-c.bottom;w=f||v?vr($,D):D}if(v&&!f){const D=vn(c.left,0),A=vn(c.right,0),F=vn(c.top,0),k=vn(c.bottom,0);d?T=m-2*(D!==0||A!==0?D+A:vn(c.left,c.right)):w=p-2*(F!==0||k!==0?F+k:vn(c.top,c.bottom))}await a({...t,availableWidth:T,availableHeight:w});const I=await o.getDimensions(i.floating);return m!==I.width||p!==I.height?{reset:{rects:!0}}:{}}}};function gr(e){return Lh(e)?(e.nodeName||"").toLowerCase():"#document"}function yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function er(e){var t;return(t=(Lh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lh(e){return e instanceof Node||e instanceof yn(e).Node}function Jn(e){return e instanceof Element||e instanceof yn(e).Element}function Bn(e){return e instanceof HTMLElement||e instanceof yn(e).HTMLElement}function rf(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yn(e).ShadowRoot}function Ci(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=In(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Tw(e){return["table","td","th"].includes(gr(e))}function $u(e){const t=Tu(),n=In(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Iw(e){let t=fo(e);for(;Bn(t)&&!os(t);){if($u(t))return t;t=fo(t)}return null}function Tu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function os(e){return["html","body","#document"].includes(gr(e))}function In(e){return yn(e).getComputedStyle(e)}function is(e){return Jn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fo(e){if(gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||rf(e)&&e.host||er(e);return rf(t)?t.host:t}function Fh(e){const t=fo(e);return os(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bn(t)&&Ci(t)?t:Fh(t)}function Ra(e,t){var n;t===void 0&&(t=[]);const r=Fh(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=yn(r);return o?t.concat(i,i.visualViewport||[],Ci(r)?r:[]):t.concat(r,Ra(r))}function Vh(e){const t=In(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bn(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=$a(n)!==i||$a(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Iu(e){return Jn(e)?e:e.contextElement}function oo(e){const t=Iu(e);if(!Bn(t))return mr(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Vh(t);let a=(i?$a(n.width):n.width)/r,s=(i?$a(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Rw=mr(0);function Bh(e){const t=yn(e);return!Tu()||!t.visualViewport?Rw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ow(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yn(e)?!1:t}function Mr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Iu(e);let a=mr(1);t&&(r?Jn(r)&&(a=oo(r)):a=oo(e));const s=Ow(i,n,r)?Bh(i):mr(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const m=yn(i),p=r&&Jn(r)?yn(r):r;let b=m.frameElement;for(;b&&r&&p!==m;){const y=oo(b),$=b.getBoundingClientRect(),E=In(b),v=$.left+(b.clientLeft+parseFloat(E.paddingLeft))*y.x,w=$.top+(b.clientTop+parseFloat(E.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,d*=y.y,c+=v,u+=w,b=yn(b).frameElement}}return Ia({width:f,height:d,x:c,y:u})}function Pw(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Bn(n),i=er(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s=mr(1);const c=mr(0);if((o||!o&&r!=="fixed")&&((gr(n)!=="body"||Ci(i))&&(a=is(n)),Bn(n))){const u=Mr(n);s=oo(n),c.x=u.x+n.clientLeft,c.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+c.x,y:t.y*s.y-a.scrollTop*s.y+c.y}}function Aw(e){return Array.from(e.getClientRects())}function Hh(e){return Mr(er(e)).left+is(e).scrollLeft}function Dw(e){const t=er(e),n=is(e),r=e.ownerDocument.body,o=vn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=vn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Hh(e);const s=-n.scrollTop;return In(r).direction==="rtl"&&(a+=vn(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}function Nw(e,t){const n=yn(e),r=er(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const u=Tu();(!u||u&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function kw(e,t){const n=Mr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Bn(e)?oo(e):mr(1),a=e.clientWidth*i.x,s=e.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:a,height:s,x:c,y:u}}function of(e,t,n){let r;if(t==="viewport")r=Nw(e,n);else if(t==="document")r=Dw(er(e));else if(Jn(t))r=kw(t,n);else{const o=Bh(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return Ia(r)}function Wh(e,t){const n=fo(e);return n===t||!Jn(n)||os(n)?!1:In(n).position==="fixed"||Wh(n,t)}function Mw(e,t){const n=t.get(e);if(n)return n;let r=Ra(e).filter(s=>Jn(s)&&gr(s)!=="body"),o=null;const i=In(e).position==="fixed";let a=i?fo(e):e;for(;Jn(a)&&!os(a);){const s=In(a),c=$u(a);!c&&s.position==="fixed"&&(o=null),(i?!c&&!o:!c&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Ci(a)&&!c&&Wh(e,a))?r=r.filter(f=>f!==a):o=s,a=fo(a)}return t.set(e,r),r}function jw(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Mw(t,this._c):[].concat(n),r],s=a[0],c=a.reduce((u,f)=>{const d=of(t,f,o);return u.top=vn(d.top,u.top),u.right=vr(d.right,u.right),u.bottom=vr(d.bottom,u.bottom),u.left=vn(d.left,u.left),u},of(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Lw(e){return Vh(e)}function Fw(e,t,n){const r=Bn(t),o=er(t),i=n==="fixed",a=Mr(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=mr(0);if(r||!r&&!i)if((gr(t)!=="body"||Ci(o))&&(s=is(t)),r){const u=Mr(t,!0,i,t);c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}else o&&(c.x=Hh(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function af(e,t){return!Bn(e)||In(e).position==="fixed"?null:t?t(e):e.offsetParent}function zh(e,t){const n=yn(e);if(!Bn(e))return n;let r=af(e,t);for(;r&&Tw(r)&&In(r).position==="static";)r=af(r,t);return r&&(gr(r)==="html"||gr(r)==="body"&&In(r).position==="static"&&!$u(r))?n:r||Iw(e)||n}const Vw=async function(e){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||zh,i=this.getDimensions;return{reference:Fw(t,await o(n),r),floating:{x:0,y:0,...await i(n)}}};function Bw(e){return In(e).direction==="rtl"}const Hw={convertOffsetParentRelativeRectToViewportRelativeRect:Pw,getDocumentElement:er,getClippingRect:jw,getOffsetParent:zh,getElementRects:Vw,getClientRects:Aw,getDimensions:Lw,getScale:oo,isElement:Jn,isRTL:Bw};function Ww(e,t){let n=null,r;const o=er(e);function i(){clearTimeout(r),n&&n.disconnect(),n=null}function a(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const{left:u,top:f,width:d,height:m}=e.getBoundingClientRect();if(s||t(),!d||!m)return;const p=Bi(f),b=Bi(o.clientWidth-(u+d)),y=Bi(o.clientHeight-(f+m)),$=Bi(u),v={rootMargin:-p+"px "+-b+"px "+-y+"px "+-$+"px",threshold:vn(0,vr(1,c))||1};let w=!0;function T(I){const D=I[0].intersectionRatio;if(D!==c){if(!w)return a();D?a(!1,D):r=setTimeout(()=>{a(!1,1e-7)},100)}w=!1}try{n=new IntersectionObserver(T,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,v)}n.observe(e)}return a(!0),i}function zw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Iu(e),f=o||i?[...u?Ra(u):[],...Ra(t)]:[];f.forEach(E=>{o&&E.addEventListener("scroll",n,{passive:!0}),i&&E.addEventListener("resize",n)});const d=u&&s?Ww(u,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(E=>{let[v]=E;v&&v.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{p&&p.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let b,y=c?Mr(e):null;c&&$();function $(){const E=Mr(e);y&&(E.x!==y.x||E.y!==y.y||E.width!==y.width||E.height!==y.height)&&n(),y=E,b=requestAnimationFrame($)}return n(),()=>{f.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),d&&d(),p&&p.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const Uw=(e,t,n)=>{const r=new Map,o={platform:Hw,...n},i={...o.platform,_c:r};return bw(e,t,{...o,platform:i})},Yw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ef({element:r.current,padding:o}).fn(n):{}:r?ef({element:r,padding:o}).fn(n):{}}}};var la=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Oa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!Oa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Oa(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sf(e,t){const n=Uh(e);return Math.round(t*n)/n}function cf(e){const t=Oe.useRef(e);return la(()=>{t.current=e}),t}function Kw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:c,open:u}=e,[f,d]=Oe.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=Oe.useState(r);Oa(m,r)||p(r);const[b,y]=Oe.useState(null),[$,E]=Oe.useState(null),v=Oe.useCallback(j=>{j!=D.current&&(D.current=j,y(j))},[y]),w=Oe.useCallback(j=>{j!==A.current&&(A.current=j,E(j))},[E]),T=i||b,I=a||$,D=Oe.useRef(null),A=Oe.useRef(null),F=Oe.useRef(f),k=cf(c),B=cf(o),R=Oe.useCallback(()=>{if(!D.current||!A.current)return;const j={placement:t,strategy:n,middleware:m};B.current&&(j.platform=B.current),Uw(D.current,A.current,j).then(H=>{const U={...H,isPositioned:!0};x.current&&!Oa(F.current,U)&&(F.current=U,Hy.flushSync(()=>{d(U)}))})},[m,t,n,B]);la(()=>{u===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,d(j=>({...j,isPositioned:!1})))},[u]);const x=Oe.useRef(!1);la(()=>(x.current=!0,()=>{x.current=!1}),[]),la(()=>{if(T&&(D.current=T),I&&(A.current=I),T&&I){if(k.current)return k.current(T,I,R);R()}},[T,I,R,k]);const h=Oe.useMemo(()=>({reference:D,floating:A,setReference:v,setFloating:w}),[v,w]),C=Oe.useMemo(()=>({reference:T,floating:I}),[T,I]),P=Oe.useMemo(()=>{const j={position:n,left:0,top:0};if(!C.floating)return j;const H=sf(C.floating,f.x),U=sf(C.floating,f.y);return s?{...j,transform:"translate("+H+"px, "+U+"px)",...Uh(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:H,top:U}},[n,s,C.floating,f.x,f.y]);return Oe.useMemo(()=>({...f,update:R,refs:h,elements:C,floatingStyles:P}),[f,R,h,C,P])}const qw=l.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return l.createElement(Ue.svg,ae({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:l.createElement("polygon",{points:"0,0 30,0 15,10"}))}),Xw=qw;function as(e){const[t,n]=l.useState(void 0);return Gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,u=Array.isArray(c)?c[0]:c;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;n({width:a,height:s})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Yh="Popper",[Kh,ss]=bn(Yh),[Gw,qh]=Kh(Yh),Zw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=l.useState(null);return l.createElement(Gw,{scope:t,anchor:r,onAnchorChange:o},n)},Qw="PopperAnchor",Jw=l.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=qh(Qw,n),a=l.useRef(null),s=lt(t,a);return l.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:l.createElement(Ue.div,ae({},o,{ref:s}))}),Xh="PopperContent",[e1,t1]=Kh(Xh),n1=l.forwardRef((e,t)=>{var n,r,o,i,a,s,c,u;const{__scopePopper:f,side:d="bottom",sideOffset:m=0,align:p="center",alignOffset:b=0,arrowPadding:y=0,collisionBoundary:$=[],collisionPadding:E=0,sticky:v="partial",hideWhenDetached:w=!1,avoidCollisions:T=!0,onPlaced:I,...D}=e,A=qh(Xh,f),[F,k]=l.useState(null),B=lt(t,xe=>k(xe)),[R,x]=l.useState(null),h=as(R),C=(n=h==null?void 0:h.width)!==null&&n!==void 0?n:0,P=(r=h==null?void 0:h.height)!==null&&r!==void 0?r:0,j=d+(p!=="center"?"-"+p:""),H=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},U=Array.isArray($)?$:[$],re=U.length>0,W={padding:H,boundary:U.filter(a1),altBoundary:re},{refs:L,floatingStyles:J,placement:Y,isPositioned:K,middlewareData:Z}=Kw({strategy:"fixed",placement:j,whileElementsMounted:zw,elements:{reference:A.anchor},middleware:[_w({mainAxis:m+P,alignmentAxis:b}),T&&Sw({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Cw():void 0,...W}),T&&ww({...W}),$w({...W,apply:({elements:xe,rects:Ee,availableWidth:Ae,availableHeight:Ie})=>{const{width:Le,height:ke}=Ee.reference,st=xe.floating.style;st.setProperty("--radix-popper-available-width",`${Ae}px`),st.setProperty("--radix-popper-available-height",`${Ie}px`),st.setProperty("--radix-popper-anchor-width",`${Le}px`),st.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),R&&Yw({element:R,padding:y}),s1({arrowWidth:C,arrowHeight:P}),w&&Ew({strategy:"referenceHidden"})]}),[ce,z]=Gh(Y),G=ln(I);Gt(()=>{K&&(G==null||G())},[K,G]);const oe=(o=Z.arrow)===null||o===void 0?void 0:o.x,ne=(i=Z.arrow)===null||i===void 0?void 0:i.y,ie=((a=Z.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ee,pe]=l.useState();return Gt(()=>{F&&pe(window.getComputedStyle(F).zIndex)},[F]),l.createElement("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(s=Z.transformOrigin)===null||s===void 0?void 0:s.x,(c=Z.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:e.dir},l.createElement(e1,{scope:f,placedSide:ce,onArrowChange:x,arrowX:oe,arrowY:ne,shouldHideArrow:ie},l.createElement(Ue.div,ae({"data-side":ce,"data-align":z},D,{ref:B,style:{...D.style,animation:K?void 0:"none",opacity:(u=Z.hide)!==null&&u!==void 0&&u.referenceHidden?0:void 0}}))))}),r1="PopperArrow",o1={top:"bottom",right:"left",bottom:"top",left:"right"},i1=l.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=t1(r1,r),a=o1[i.placedSide];return l.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},l.createElement(Xw,ae({},o,{ref:n,style:{...o.style,display:"block"}})))});function a1(e){return e!==null}const s1=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,d=((n=u.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=d?0:e.arrowWidth,p=d?0:e.arrowHeight,[b,y]=Gh(s),$={start:"0%",center:"50%",end:"100%"}[y],E=((r=(o=u.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,v=((i=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+p/2;let w="",T="";return b==="bottom"?(w=d?$:`${E}px`,T=`${-p}px`):b==="top"?(w=d?$:`${E}px`,T=`${c.floating.height+p}px`):b==="right"?(w=`${-p}px`,T=d?$:`${v}px`):b==="left"&&(w=`${c.floating.width+p}px`,T=d?$:`${v}px`),{data:{x:w,y:T}}}});function Gh(e){const[t,n="center"]=e.split("-");return[t,n]}const Zh=Zw,Qh=Jw,Jh=n1,c1=i1,ev=l.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?mn.createPortal(l.createElement(Ue.div,ae({},o,{ref:t})),r):null}),u1=ev;function cs(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const us=l.forwardRef((e,t)=>l.createElement(Ue.span,ae({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),l1=us;var d1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ur=new WeakMap,Hi=new WeakMap,Wi={},Us=0,tv=function(e){return e&&(e.host||tv(e.parentNode))},f1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tv(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},p1=function(e,t,n,r){var o=f1(t,Array.isArray(e)?e:[e]);Wi[n]||(Wi[n]=new WeakMap);var i=Wi[n],a=[],s=new Set,c=new Set(o),u=function(d){!d||s.has(d)||(s.add(d),u(d.parentNode))};o.forEach(u);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(m){if(s.has(m))f(m);else{var p=m.getAttribute(r),b=p!==null&&p!=="false",y=(Ur.get(m)||0)+1,$=(i.get(m)||0)+1;Ur.set(m,y),i.set(m,$),a.push(m),y===1&&b&&Hi.set(m,!0),$===1&&m.setAttribute(n,"true"),b||m.setAttribute(r,"true")}})};return f(t),s.clear(),Us++,function(){a.forEach(function(d){var m=Ur.get(d)-1,p=i.get(d)-1;Ur.set(d,m),i.set(d,p),m||(Hi.has(d)||d.removeAttribute(r),Hi.delete(d)),p||d.removeAttribute(n)}),Us--,Us||(Ur=new WeakMap,Ur=new WeakMap,Hi=new WeakMap,Wi={})}},nv=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||d1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),p1(r,o,n,"aria-hidden")):function(){return null}},Cn=function(){return Cn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Cn.apply(this,arguments)};function rv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function h1(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var da="right-scroll-bar-position",fa="width-before-scroll-bar",v1="with-scroll-bars-hidden",m1="--removed-body-scroll-bar-size";function g1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function y1(e,t){var n=l.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}function b1(e,t){return y1(t||null,function(n){return e.forEach(function(r){return g1(r,n)})})}function w1(e){return e}function E1(e,t){t===void 0&&(t=w1);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(s){return i(s)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(i),a=n}var c=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function x1(e){e===void 0&&(e={});var t=E1(null);return t.options=Cn({async:!0,ssr:!1},e),t}var ov=function(e){var t=e.sideCar,n=rv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return Oe.createElement(r,Cn({},n))};ov.isSideCarExport=!0;function _1(e,t){return e.useMedium(t),ov}var iv=x1(),Ys=function(){},ls=Oe.forwardRef(function(e,t){var n=Oe.useRef(null),r=Oe.useState({onScrollCapture:Ys,onWheelCapture:Ys,onTouchMoveCapture:Ys}),o=r[0],i=r[1],a=e.forwardProps,s=e.children,c=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,p=e.noIsolation,b=e.inert,y=e.allowPinchZoom,$=e.as,E=$===void 0?"div":$,v=rv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=m,T=b1([n,t]),I=Cn(Cn({},v),o);return Oe.createElement(Oe.Fragment,null,f&&Oe.createElement(w,{sideCar:iv,removeScrollBar:u,shards:d,noIsolation:p,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:n}),a?Oe.cloneElement(Oe.Children.only(s),Cn(Cn({},I),{ref:T})):Oe.createElement(E,Cn({},I,{className:c,ref:T}),s))});ls.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ls.classNames={fullWidth:fa,zeroRight:da};var uf,S1=function(){if(uf)return uf;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function C1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=S1();return t&&e.setAttribute("nonce",t),e}function $1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function T1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var I1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=C1())&&($1(t,n),T1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R1=function(){var e=I1();return function(t,n){Oe.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},av=function(){var e=R1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},O1={left:0,top:0,right:0,gap:0},Ks=function(e){return parseInt(e||"",10)||0},P1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ks(n),Ks(r),Ks(o)]},A1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return O1;var t=P1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},D1=av(),N1=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),`
|
|
54
54
|
.`.concat(v1,` {
|
|
55
55
|
overflow: hidden `).concat(r,`;
|
|
56
56
|
padding-right: `).concat(s,"px ").concat(r,`;
|
|
@@ -143,7 +143,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
143
143
|
*/var Dm=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Va=Dm.join(","),Nm=typeof Element>"u",Fr=Nm?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ba=!Nm&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Ha=function e(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),i=o===""||o==="true",a=i||n&&t&&e(t.parentNode);return a},IC=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},km=function(t,n,r){if(Ha(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Va));return n&&Fr.call(t,Va)&&o.unshift(t),o=o.filter(r),o},Mm=function e(t,n,r){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!Ha(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),c=s.length?s:a.children,u=e(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:a,candidates:u})}else{var f=Fr.call(a,Va);f&&r.filter(a)&&(n||!t.includes(a))&&o.push(a);var d=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),m=!Ha(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(d&&m){var p=e(d===!0?a.children:d.children,!0,r);r.flatten?o.push.apply(o,p):o.push({scopeParent:a,candidates:p})}else i.unshift.apply(i,a.children)}}return o},jm=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Rr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||IC(t))&&!jm(t)?0:t.tabIndex},RC=function(t,n){var r=Rr(t);return r<0&&n&&!jm(t)?0:r},OC=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Lm=function(t){return t.tagName==="INPUT"},PC=function(t){return Lm(t)&&t.type==="hidden"},AC=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},DC=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},NC=function(t){if(!t.name)return!0;var n=t.form||Ba(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var i=DC(o,t.form);return!i||i===t},kC=function(t){return Lm(t)&&t.type==="radio"},MC=function(t){return kC(t)&&!NC(t)},jC=function(t){var n,r=t&&Ba(t),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==t){var a,s,c;for(i=!!((a=o)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!i&&o;){var u,f,d;r=Ba(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((f=o)!==null&&f!==void 0&&(d=f.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return i},bp=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},LC=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=Fr.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Fr.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var s=t;t;){var c=t.parentElement,u=Ba(t);if(c&&!c.shadowRoot&&o(c)===!0)return bp(t);t.assignedSlot?t=t.assignedSlot:!c&&u!==t.ownerDocument?t=u.host:t=c}t=s}if(jC(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return bp(t);return!1},FC=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Fr.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},Wa=function(t,n){return!(n.disabled||Ha(n)||PC(n)||LC(n,t)||AC(n)||FC(n))},nu=function(t,n){return!(MC(n)||Rr(n)<0||!Wa(t,n))},VC=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},BC=function e(t){var n=[],r=[];return t.forEach(function(o,i){var a=!!o.scopeParent,s=a?o.scopeParent:o,c=RC(s,a),u=a?e(o.candidates):s;c===0?a?n.push.apply(n,u):n.push(s):r.push({documentOrder:i,tabIndex:c,item:o,isScope:a,content:u})}),r.sort(OC).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},HC=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Mm([t],n.includeContainer,{filter:nu.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:VC}):r=km(t,n.includeContainer,nu.bind(null,n)),BC(r)},WC=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Mm([t],n.includeContainer,{filter:Wa.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=km(t,n.includeContainer,Wa.bind(null,n)),r},eo=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Fr.call(t,Va)===!1?!1:nu(n,t)},zC=Dm.concat("iframe").join(","),uc=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Fr.call(t,zC)===!1?!1:Wa(n,t)};/*!
|
|
144
144
|
* focus-trap 7.5.2
|
|
145
145
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
146
|
-
*/function wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ep(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wp(Object(n),!0).forEach(function(r){UC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UC(e,t,n){return t=KC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YC(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KC(e){var t=YC(e,"string");return typeof t=="symbol"?t:String(t)}var xp={activateTrap:function(t,n){if(t.length>0){var r=t[t.length-1];r!==n&&r.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},qC=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},XC=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Jo=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},GC=function(t){return Jo(t)&&!t.shiftKey},ZC=function(t){return Jo(t)&&t.shiftKey},_p=function(t){return setTimeout(t,0)},Sp=function(t,n){var r=-1;return t.every(function(o,i){return n(o)?(r=i,!1):!0}),r},Mo=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,r):t},na=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},QC=[],JC=function(t,n){var r=(n==null?void 0:n.document)||document,o=(n==null?void 0:n.trapStack)||QC,i=Ep({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:GC,isKeyBackward:ZC},n),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,c=function(R,x,h){return R&&R[x]!==void 0?R[x]:i[h||x]},u=function(R,x){var h=typeof(x==null?void 0:x.composedPath)=="function"?x.composedPath():void 0;return a.containerGroups.findIndex(function(C){var P=C.container,j=C.tabbableNodes;return P.contains(R)||(h==null?void 0:h.includes(P))||j.find(function(H){return H===R})})},f=function(R){var x=i[R];if(typeof x=="function"){for(var h=arguments.length,C=new Array(h>1?h-1:0),P=1;P<h;P++)C[P-1]=arguments[P];x=x.apply(void 0,C)}if(x===!0&&(x=void 0),!x){if(x===void 0||x===!1)return x;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var j=x;if(typeof x=="string"&&(j=r.querySelector(x),!j))throw new Error("`".concat(R,"` as selector refers to no known node"));return j},d=function(){var R=f("initialFocus");if(R===!1)return!1;if(R===void 0||!uc(R,i.tabbableOptions))if(u(r.activeElement)>=0)R=r.activeElement;else{var x=a.tabbableGroups[0],h=x&&x.firstTabbableNode;R=h||f("fallbackFocus")}if(!R)throw new Error("Your focus-trap needs to have at least one focusable element");return R},m=function(){if(a.containerGroups=a.containers.map(function(R){var x=HC(R,i.tabbableOptions),h=WC(R,i.tabbableOptions),C=x.length>0?x[0]:void 0,P=x.length>0?x[x.length-1]:void 0,j=h.find(function(re){return eo(re)}),H=h.slice().reverse().find(function(re){return eo(re)}),U=!!x.find(function(re){return Rr(re)>0});return{container:R,tabbableNodes:x,focusableNodes:h,posTabIndexesFound:U,firstTabbableNode:C,lastTabbableNode:P,firstDomTabbableNode:j,lastDomTabbableNode:H,nextTabbableNode:function(W){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=x.indexOf(W);return J<0?L?h.slice(h.indexOf(W)+1).find(function(Y){return eo(Y)}):h.slice(0,h.indexOf(W)).reverse().find(function(Y){return eo(Y)}):x[J+(L?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(R){return R.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(R){return R.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function B(R){if(R!==!1&&R!==r.activeElement){if(!R||!R.focus){B(d());return}R.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=R,qC(R)&&R.select()}},b=function(R){var x=f("setReturnFocus",R);return x||(x===!1?!1:R)},y=function(R){var x=R.target,h=R.event,C=R.isBackward,P=C===void 0?!1:C;x=x||na(h),m();var j=null;if(a.tabbableGroups.length>0){var H=u(x,h),U=H>=0?a.containerGroups[H]:void 0;if(H<0)P?j=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:j=a.tabbableGroups[0].firstTabbableNode;else if(P){var re=Sp(a.tabbableGroups,function(Z){var ce=Z.firstTabbableNode;return x===ce});if(re<0&&(U.container===x||uc(x,i.tabbableOptions)&&!eo(x,i.tabbableOptions)&&!U.nextTabbableNode(x,!1))&&(re=H),re>=0){var W=re===0?a.tabbableGroups.length-1:re-1,L=a.tabbableGroups[W];j=Rr(x)>=0?L.lastTabbableNode:L.lastDomTabbableNode}else Jo(h)||(j=U.nextTabbableNode(x,!1))}else{var J=Sp(a.tabbableGroups,function(Z){var ce=Z.lastTabbableNode;return x===ce});if(J<0&&(U.container===x||uc(x,i.tabbableOptions)&&!eo(x,i.tabbableOptions)&&!U.nextTabbableNode(x))&&(J=H),J>=0){var Y=J===a.tabbableGroups.length-1?0:J+1,K=a.tabbableGroups[Y];j=Rr(x)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else Jo(h)||(j=U.nextTabbableNode(x))}}else j=f("fallbackFocus");return j},$=function(R){var x=na(R);if(!(u(x,R)>=0)){if(Mo(i.clickOutsideDeactivates,R)){s.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Mo(i.allowOutsideClick,R)||R.preventDefault()}},E=function(R){var x=na(R),h=u(x,R)>=0;if(h||x instanceof Document)h&&(a.mostRecentlyFocusedNode=x);else{R.stopImmediatePropagation();var C,P=!0;if(a.mostRecentlyFocusedNode)if(Rr(a.mostRecentlyFocusedNode)>0){var j=u(a.mostRecentlyFocusedNode),H=a.containerGroups[j].tabbableNodes;if(H.length>0){var U=H.findIndex(function(re){return re===a.mostRecentlyFocusedNode});U>=0&&(i.isKeyForward(a.recentNavEvent)?U+1<H.length&&(C=H[U+1],P=!1):U-1>=0&&(C=H[U-1],P=!1))}}else a.containerGroups.some(function(re){return re.tabbableNodes.some(function(W){return Rr(W)>0})})||(P=!1);else P=!1;P&&(C=y({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(C||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=R;var h=y({event:R,isBackward:x});h&&(Jo(R)&&R.preventDefault(),p(h))},w=function(R){if(XC(R)&&Mo(i.escapeDeactivates,R)!==!1){R.preventDefault(),s.deactivate();return}(i.isKeyForward(R)||i.isKeyBackward(R))&&v(R,i.isKeyBackward(R))},T=function(R){var x=na(R);u(x,R)>=0||Mo(i.clickOutsideDeactivates,R)||Mo(i.allowOutsideClick,R)||(R.preventDefault(),R.stopImmediatePropagation())},I=function(){if(a.active)return xp.activateTrap(o,s),a.delayInitialFocusTimer=i.delayInitialFocus?_p(function(){p(d())}):p(d()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",$,{capture:!0,passive:!1}),r.addEventListener("touchstart",$,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),s},D=function(){if(a.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",$,!0),r.removeEventListener("touchstart",$,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",w,!0),s},A=function(R){var x=R.some(function(h){var C=Array.from(h.removedNodes);return C.some(function(P){return P===a.mostRecentlyFocusedNode})});x&&p(d())},F=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(A):void 0,k=function(){F&&(F.disconnect(),a.active&&!a.paused&&a.containers.map(function(R){F.observe(R,{subtree:!0,childList:!0})}))};return s={get active(){return a.active},get paused(){return a.paused},activate:function(R){if(a.active)return this;var x=c(R,"onActivate"),h=c(R,"onPostActivate"),C=c(R,"checkCanFocusTrap");C||m(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,x==null||x();var P=function(){C&&m(),I(),k(),h==null||h()};return C?(C(a.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(R){if(!a.active)return this;var x=Ep({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},R);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,D(),a.active=!1,a.paused=!1,k(),xp.deactivateTrap(o,s);var h=c(x,"onDeactivate"),C=c(x,"onPostDeactivate"),P=c(x,"checkCanReturnFocus"),j=c(x,"returnFocus","returnFocusOnDeactivate");h==null||h();var H=function(){_p(function(){j&&p(b(a.nodeFocusedBeforeActivation)),C==null||C()})};return j&&P?(P(b(a.nodeFocusedBeforeActivation)).then(H,H),this):(H(),this)},pause:function(R){if(a.paused||!a.active)return this;var x=c(R,"onPause"),h=c(R,"onPostPause");return a.paused=!0,x==null||x(),D(),k(),h==null||h(),this},unpause:function(R){if(!a.paused||!a.active)return this;var x=c(R,"onUnpause"),h=c(R,"onPostUnpause");return a.paused=!1,x==null||x(),m(),I(),k(),h==null||h(),this},updateContainerElements:function(R){var x=[].concat(R).filter(Boolean);return a.containers=x.map(function(h){return typeof h=="string"?r.querySelector(h):h}),a.active&&m(),k(),this}},s.updateContainerElements(t),s};function e$({targetRef:e,fallbackRef:t,initialFocusRef:n,enabled:r}){const o=l.useRef({activate:()=>{throw new TypeError("Tried to activate focus trap too early")},deactivate:()=>{}});return l.useDebugValue(r?"Enabled":"Disabled"),l.useEffect(()=>{if(!r){o.current.deactivate(),o.current={activate:()=>{},deactivate:()=>{}};return}const i=t.current,a=JC(e.current,{onActivate:process.env.NODE_ENV!=="production"?()=>{console.log("focus activate")}:void 0,initialFocus:n?()=>(n==null?void 0:n.current)||i:void 0,fallbackFocus:i,escapeDeactivates:!1,clickOutsideDeactivates:!1});let s=!1;o.current={activate:async()=>{s||(s=!0,await a.activate(),await new Promise(c=>setTimeout(()=>c(1),0)))},deactivate:()=>{s&&(s=!1,a.deactivate())}}},[r,t,n,e]),o}const bi=typeof window<"u"?l.useLayoutEffect:l.useEffect;function t$(){const[e,t]=l.useState(!1),[n,r]=l.useState({}),o=l.useCallback(i=>(console.count(`registerReady:${i}`),r(a=>({...a,[i]:!1})),()=>{console.count(`setReady:${i}`),r(a=>({...a,[i]:!0}))}),[]);return l.useEffect(()=>{const i=Object.values(n);if(i.length===0){console.log("nope nothing registered yet");return}const a=i.every(Boolean);console.log("check if we are rready",n,a),a&&(console.warn("ready!"),t(!0))},[n]),{ready:e,registerReady:o}}function n$(){const e=l.useMemo(()=>typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)"):null,[]),t=l.useRef(e==null?void 0:e.matches);return l.useDebugValue(t.current?"reduce":"no-preference"),l.useEffect(()=>{const n=r=>{t.current=r.matches};return e==null||e.addListener(n),()=>e==null?void 0:e.removeListener(n)},[e]),t}function r$(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var ol=!1;if(typeof window<"u"){var Cp={get passive(){ol=!0}};window.addEventListener("testPassive",null,Cp),window.removeEventListener("testPassive",null,Cp)}var Fm=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),fr=[],za=!1,Vm=-1,ei=void 0,ti=void 0,Bm=function(t){return fr.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},Ua=function(t){var n=t||window.event;return Bm(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},o$=function(t){if(ti===void 0){var n=!!t&&t.reserveScrollBarGap===!0,r=window.innerWidth-document.documentElement.clientWidth;n&&r>0&&(ti=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}ei===void 0&&(ei=document.body.style.overflow,document.body.style.overflow="hidden")},i$=function(){ti!==void 0&&(document.body.style.paddingRight=ti,ti=void 0),ei!==void 0&&(document.body.style.overflow=ei,ei=void 0)},a$=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},s$=function(t,n){var r=t.targetTouches[0].clientY-Vm;return Bm(t.target)?!1:n&&n.scrollTop===0&&r>0||a$(n)&&r<0?Ua(t):(t.stopPropagation(),!0)},c$=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!fr.some(function(o){return o.targetElement===t})){var r={targetElement:t,options:n||{}};fr=[].concat(r$(fr),[r]),Fm?(t.ontouchstart=function(o){o.targetTouches.length===1&&(Vm=o.targetTouches[0].clientY)},t.ontouchmove=function(o){o.targetTouches.length===1&&s$(o,t)},za||(document.addEventListener("touchmove",Ua,ol?{passive:!1}:void 0),za=!0)):o$(n)}},u$=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}fr=fr.filter(function(n){return n.targetElement!==t}),Fm?(t.ontouchstart=null,t.ontouchmove=null,za&&fr.length===0&&(document.removeEventListener("touchmove",Ua,ol?{passive:!1}:void 0),za=!1)):fr.length||i$()};function l$({targetRef:e,enabled:t,reserveScrollBarGap:n}){const r=l.useRef({activate:()=>{throw new TypeError("Tried to activate scroll lock too early")},deactivate:()=>{}});return l.useDebugValue(t?"Enabled":"Disabled"),l.useEffect(()=>{if(!t){r.current.deactivate(),r.current={activate:()=>{},deactivate:()=>{}};return}const o=e.current;let i=!1;r.current={activate:()=>{i||(i=!0,c$(o,{allowTouchMove:a=>a.closest("[data-body-scroll-lock-ignore]"),reserveScrollBarGap:n}))},deactivate:()=>{i&&(i=!1,u$(o))}}},[t,e,n]),r}var Dr=[],d$=function(){return Dr.some(function(e){return e.activeTargets.length>0})},f$=function(){return Dr.some(function(e){return e.skippedTargets.length>0})},$p="ResizeObserver loop completed with undelivered notifications.",p$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:$p}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=$p),window.dispatchEvent(e)},wi;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(wi||(wi={}));var Nr=function(e){return Object.freeze(e)},h$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Nr(this)}return e}(),Hm=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Nr(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,c=t.width,u=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),il=function(e){return e instanceof SVGElement&&"getBBox"in e},Wm=function(e){if(il(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Tp=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},v$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ni=typeof window<"u"?window:{},ra=new WeakMap,Ip=/auto|scroll/,m$=/^tb|vertical/,g$=/msie|trident/i.test(ni.navigator&&ni.navigator.userAgent),Ln=function(e){return parseFloat(e||"0")},co=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new h$((n?t:e)||0,(n?e:t)||0)},Rp=Nr({devicePixelContentBoxSize:co(),borderBoxSize:co(),contentBoxSize:co(),contentRect:new Hm(0,0,0,0)}),zm=function(e,t){if(t===void 0&&(t=!1),ra.has(e)&&!t)return ra.get(e);if(Wm(e))return ra.set(e,Rp),Rp;var n=getComputedStyle(e),r=il(e)&&e.ownerSVGElement&&e.getBBox(),o=!g$&&n.boxSizing==="border-box",i=m$.test(n.writingMode||""),a=!r&&Ip.test(n.overflowY||""),s=!r&&Ip.test(n.overflowX||""),c=r?0:Ln(n.paddingTop),u=r?0:Ln(n.paddingRight),f=r?0:Ln(n.paddingBottom),d=r?0:Ln(n.paddingLeft),m=r?0:Ln(n.borderTopWidth),p=r?0:Ln(n.borderRightWidth),b=r?0:Ln(n.borderBottomWidth),y=r?0:Ln(n.borderLeftWidth),$=d+u,E=c+f,v=y+p,w=m+b,T=s?e.offsetHeight-w-e.clientHeight:0,I=a?e.offsetWidth-v-e.clientWidth:0,D=o?$+v:0,A=o?E+w:0,F=r?r.width:Ln(n.width)-D-I,k=r?r.height:Ln(n.height)-A-T,B=F+$+I+v,R=k+E+T+w,x=Nr({devicePixelContentBoxSize:co(Math.round(F*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:co(B,R,i),contentBoxSize:co(F,k,i),contentRect:new Hm(d,c,F,k)});return ra.set(e,x),x},Um=function(e,t,n){var r=zm(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case wi.DEVICE_PIXEL_CONTENT_BOX:return a;case wi.BORDER_BOX:return o;default:return i}},y$=function(){function e(t){var n=zm(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Nr([n.borderBoxSize]),this.contentBoxSize=Nr([n.contentBoxSize]),this.devicePixelContentBoxSize=Nr([n.devicePixelContentBoxSize])}return e}(),Ym=function(e){if(Wm(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},b$=function(){var e=1/0,t=[];Dr.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var f=new y$(u.target),d=Ym(u.target);s.push(f),u.lastReportedSize=Um(u.target,u.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Op=function(e){Dr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Ym(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},w$=function(){var e=0;for(Op(e);d$();)e=b$(),Op(e);return f$()&&p$(),e>0},lc,Km=[],E$=function(){return Km.splice(0).forEach(function(e){return e()})},x$=function(e){if(!lc){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return E$()}).observe(n,r),lc=function(){n.textContent="".concat(t?t--:t++)}}Km.push(e),lc()},_$=function(e){x$(function(){requestAnimationFrame(e)})},wa=0,S$=function(){return!!wa},C$=250,$$={attributes:!0,characterData:!0,childList:!0,subtree:!0},Pp=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ap=function(e){return e===void 0&&(e=0),Date.now()+e},dc=!1,T$=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=C$),!dc){dc=!0;var r=Ap(t);_$(function(){var o=!1;try{o=w$()}finally{if(dc=!1,t=r-Ap(),!S$())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,$$)};document.body?n():ni.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Pp.forEach(function(n){return ni.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Pp.forEach(function(n){return ni.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ru=new T$,Dp=function(e){!wa&&e>0&&ru.start(),wa+=e,!wa&&ru.stop()},I$=function(e){return!il(e)&&!v$(e)&&getComputedStyle(e).display==="inline"},R$=function(){function e(t,n){this.target=t,this.observedBox=n||wi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Um(this.target,this.observedBox,!0);return I$(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),O$=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),oa=new WeakMap,Np=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ia=function(){function e(){}return e.connect=function(t,n){var r=new O$(t,n);oa.set(t,r)},e.observe=function(t,n,r){var o=oa.get(t),i=o.observationTargets.length===0;Np(o.observationTargets,n)<0&&(i&&Dr.push(o),o.observationTargets.push(new R$(n,r&&r.box)),Dp(1),ru.schedule())},e.unobserve=function(t,n){var r=oa.get(t),o=Np(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Dr.splice(Dr.indexOf(r),1),r.observationTargets.splice(o,1),Dp(-1))},e.disconnect=function(t){var n=this,r=oa.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),P$=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ia.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Tp(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ia.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Tp(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ia.unobserve(this,t)},e.prototype.disconnect=function(){ia.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Wo(e,t,n){return e=+e,t=+t,n=+n,t=t===t?t:0,n=n===n?n:0,e===e&&(e=e<=n?e:n,e=e>=t?e:t),e}function Ya(e){const t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}function A$(e,t){const r=[].concat(e).map(Ya).reduce((s,c)=>(s.add(Wo(c,0,t)),s),new Set),o=Array.from(r),i=Math.min(...o);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");const a=Math.max(...o);if(Number.isNaN(a))throw new TypeError("maxSnap is NaN");return{snapPoints:o,minSnap:i,maxSnap:a}}const D$=process.env.NODE_ENV==="development"&&typeof window<"u"?window.location.search==="?debug":!1,N$={box:"border-box"};function fc(e,{label:t,enabled:n,resizeSourceRef:r}){const[o,i]=l.useState(0);l.useDebugValue(`${t}: ${o}`);const a=l.useCallback(s=>{i(s[0].borderBoxSize[0].blockSize),r.current="element"},[r]);return bi(()=>{if(!e.current||!n)return;const s=new P$(a);return s.observe(e.current,N$),()=>s.disconnect()},[e,a,n]),n?o:0}function k$(e,t,n){const r=l.useMemo(()=>t("maxHeight"),[t]),o=window.innerHeight*.75,[i,a]=l.useState(()=>Ya(e)||typeof window<"u"?o:0),s=i>0,c=l.useRef(0);return l.useDebugValue(e?"controlled":"auto"),l.useEffect(()=>{s&&r()},[s,r]),bi(()=>{if(e){a(Ya(e)),n.current="maxheightprop";return}const u=()=>{c.current||(c.current=requestAnimationFrame(()=>{a(o),n.current="window",c.current=0}))};return window.addEventListener("resize",u),a(o),n.current="window",r(),()=>{window.removeEventListener("resize",u),cancelAnimationFrame(c.current)}},[e,r,n,o]),i}function M$({contentRef:e,controlledMaxHeight:t,footerEnabled:n,footerRef:r,headerEnabled:o,headerRef:i,registerReady:a,resizeSourceRef:s,conditions:c}){const u=l.useMemo(()=>a("contentHeight"),[a]),f=k$(t,a,s),d=fc(i,{label:"headerHeight",enabled:o,resizeSourceRef:s}),m=fc(e,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),p=fc(r,{label:"footerHeight",enabled:n,resizeSourceRef:s}),b=c!=null&&c.hasPaddingY?16:0,y=c!=null&&c.hasHeader?0:20,$=c!=null&&c.hasCustomHeader?16:0,E=Math.min(f-d-p,m+b)+(d+y+$)+p;l.useDebugValue(`minHeight: ${E}`);const v=m>0;return l.useEffect(()=>{v&&u()},[v,u]),{maxHeight:f,minHeight:E,headerHeight:d,footerHeight:p}}function j$({contentRef:e,controlledMaxHeight:t,footerEnabled:n,footerRef:r,getSnapPoints:o,headerEnabled:i,headerRef:a,heightRef:s,lastSnapRef:c,ready:u,registerReady:f,resizeSourceRef:d,conditions:m}){const{maxHeight:p,minHeight:b,headerHeight:y,footerHeight:$}=M$({contentRef:e,controlledMaxHeight:t,footerEnabled:n,footerRef:r,headerEnabled:i,headerRef:a,registerReady:f,resizeSourceRef:d,conditions:m}),{snapPoints:E,minSnap:v,maxSnap:w}=A$(u?o({height:s.current,footerHeight:$,headerHeight:y,minHeight:b,maxHeight:p}):[0],p);function T(I){let D;typeof I=="function"?D=I({footerHeight:$,headerHeight:y,height:s.current,minHeight:b,maxHeight:p,snapPoints:E,lastSnap:c.current}):D=I;const A=Ya(D);return E.reduce((F,k)=>Math.abs(k-A)<Math.abs(F-A)?k:F,v)}return l.useDebugValue(`minSnap: ${v}, maxSnap:${w}`),{minSnap:v,maxSnap:w,findSnap:T,maxHeight:p}}function L$(){return CS(()=>({y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}))}function F$({spring:e}){const t=Jr([e.y,e.maxHeight],(s,c)=>`${Math.round(Wo(c-s,0,16))}px`),n=Jr([e.y,e.minSnap,e.maxSnap],(s,c,u)=>`${Wo(s,c,u)}px`),r=Jr([e.y,e.minSnap,e.maxSnap],(s,c,u)=>s<c?`${c-s}px`:s>u?`${u-s}px`:"0px"),o=Jr([e.y,e.maxSnap],(s,c)=>s>=c?Math.ceil(s-c):0),i=Jr([e.y,e.minSnap],(s,c)=>{if(!c)return 0;const u=Math.max(c/2-45,0),f=Math.min(c/2+45,c),d=0,p=(1-d)/(f-u),b=(s-u)*(p+d);return Wo(b,0,1)}),a=Jr([e.y,e.minSnap],(s,c)=>c?Wo(s/c,0,1):0);return{"--rsbs-content-opacity":i,"--rsbs-backdrop-opacity":a,"--rsbs-antigap-scale-y":o,"--rsbs-overlay-translate-y":r,"--rsbs-overlay-rounded":t,"--rsbs-overlay-h":n}}function qt(e=1e3){return new Promise(t=>setTimeout(t,e))}const V$={CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}},kp={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Mp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},B$=({initialState:e})=>e==="OPEN",H$=({initialState:e})=>e==="CLOSED",W$=i_({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:{...kp,...Mp}}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:{...kp,...Mp}}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{...V$},onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[a_({y:(e,{payload:{y:t}})=>t,velocity:(e,{payload:{velocity:t}})=>t,snapSource:(e,{payload:{source:t="custom"}})=>t})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:(e,t)=>{console.log("onOpenCancel",{context:e,event:t})},onSnapCancel:(e,t)=>{console.log("onSnapCancel",{context:e,event:t})},onResizeCancel:(e,t)=>{console.log("onResizeCancel",{context:e,event:t})},onCloseCancel:(e,t)=>{console.log("onCloseCancel",{context:e,event:t})},onOpenEnd:(e,t)=>{console.log("onOpenCancel",{context:e,event:t})},onSnapEnd:(e,t)=>{console.log("onSnapEnd",{context:e,event:t})},onRezizeEnd:(e,t)=>{console.log("onRezizeEnd",{context:e,event:t})}},services:{onSnapStart:async()=>{await qt()},onOpenStart:async()=>{await qt()},onCloseStart:async()=>{await qt()},onResizeStart:async()=>{await qt()},onSnapEnd:async()=>{await qt()},onOpenEnd:async()=>{await qt()},onCloseEnd:async()=>{await qt()},onResizeEnd:async()=>{await qt()},renderVisuallyHidden:async(e,t)=>{console.group("renderVisuallyHidden"),console.log({context:e,event:t}),await qt(),console.groupEnd()},activate:async(e,t)=>{console.group("activate"),console.log({context:e,event:t}),await qt(),console.groupEnd()},deactivate:async(e,t)=>{console.group("deactivate"),console.log({context:e,event:t}),await qt(),console.groupEnd()},openSmoothly:async(e,t)=>{console.group("openSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()},openImmediately:async(e,t)=>{console.group("openImmediately"),console.log({context:e,event:t}),await qt(),console.groupEnd()},snapSmoothly:async(e,t)=>{console.group("snapSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()},resizeSmoothly:async(e,t)=>{console.group("resizeSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()},closeSmoothly:async(e,t)=>{console.group("closeSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()}},guards:{initiallyClosed:H$,initiallyOpen:B$}}),{tension:z$,friction:aa}=cm.default,U$=["closed","opening","open","closing","dragging","snapping","resizing"];function Y$({snapPoints:e,lastSnap:t}){return t??Math.min(...e)}function K$({minHeight:e}){return e}const q$=l.forwardRef(function({children:t,sibling:n,className:r,footer:o,header:i,isOpen:a,initialState:s,lastSnapRef:c,initialFocusRef:u,onClose:f,maxHeight:d,defaultSnap:m=Y$,snapPoints:p=K$,blocking:b=!0,scrollLocking:y=!0,style:$,onSpringStart:E,onSpringCancel:v,onSpringEnd:w,reserveScrollBarGap:T=b,expandOnContentDrag:I=!1,title:D,showClose:A,showBack:F,onBack:k,onCloseWhenClickOutside:B=!0,hasHandleBar:R=!0,"data-test-id":x,padding:h,styles:C,refs:P,...j},H){const{ready:U,registerReady:re}=t$(),W=l.useRef(!1),L=l.useRef(E),J=l.useRef(v),Y=l.useRef(w);l.useEffect(()=>{L.current=E,J.current=v,Y.current=w},[v,E,w]);const[K,Z]=L$(),ce=l.useRef(null),z=l.useRef(null),G=l.useRef(null),oe=l.useRef(null),ne=l.useRef(null),ie=l.useRef(null);l.useImperativeHandle(P==null?void 0:P.body,()=>z.current),l.useImperativeHandle(P==null?void 0:P.content,()=>G.current),l.useImperativeHandle(P==null?void 0:P.header,()=>oe.current),l.useImperativeHandle(P==null?void 0:P.footer,()=>ne.current),l.useImperativeHandle(P==null?void 0:P.overlay,()=>ie.current);const ee=l.useRef(0),pe=l.useRef(),xe=l.useRef(!1),Ee=n$(),{x:Ae="default",y:Ie="default"}=h??{},Le=Ae==="default",ke=Ie==="default",st=l$({targetRef:z,enabled:U&&y,reserveScrollBarGap:T}),We=TC({targetRef:ce,enabled:U&&b}),Et=e$({targetRef:ce,fallbackRef:ie,initialFocusRef:u||void 0,enabled:U&&b&&u!==!1}),{minSnap:Xe,maxSnap:At,maxHeight:Te,findSnap:$t}=j$({contentRef:G,controlledMaxHeight:d,footerEnabled:!!o,footerRef:ne,getSnapPoints:p,headerEnabled:i!==!1,headerRef:oe,heightRef:ee,lastSnapRef:c,ready:U,registerReady:re,resizeSourceRef:pe,conditions:{hasPaddingY:ke,hasHeader:i!==!1,hasCustomHeader:!!i}}),Ge=l.useRef(Te),Tt=l.useRef(Xe),et=l.useRef(At),Dt=l.useRef($t),De=l.useRef(0);bi(()=>{Ge.current=Te,et.current=At,Tt.current=Xe,Dt.current=$t,De.current=$t(m)},[$t,m,Te,At,Xe]);const tt=l.useCallback(({onRest:ve,config:{velocity:ze=1,...Ct}={},..._t})=>new Promise(Qt=>Z({..._t,config:{velocity:ze,...Ct,mass:1,tension:z$,friction:Math.max(aa,aa+(aa-aa*ze))},onRest:(...Jt)=>{Qt(...Jt),ve==null||ve(...Jt)}})),[Z]),[Zt,Lt]=m_(W$,{devTools:D$,actions:{onOpenCancel:l.useCallback(()=>{var ve;return(ve=J.current)==null?void 0:ve.call(J,{type:"OPEN"})},[]),onSnapCancel:l.useCallback(ve=>{var ze;return(ze=J.current)==null?void 0:ze.call(J,{type:"SNAP",source:ve.snapSource})},[]),onCloseCancel:l.useCallback(()=>{var ve;return(ve=J.current)==null?void 0:ve.call(J,{type:"CLOSE"})},[]),onResizeCancel:l.useCallback(()=>{var ve;return(ve=J.current)==null?void 0:ve.call(J,{type:"RESIZE",source:pe.current})},[]),onOpenEnd:l.useCallback(()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"OPEN"})},[]),onSnapEnd:l.useCallback(ve=>{var ze;return(ze=Y.current)==null?void 0:ze.call(Y,{type:"SNAP",source:ve.snapSource})},[]),onResizeEnd:l.useCallback(()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"RESIZE",source:pe.current})},[])},context:{initialState:s},services:{onSnapStart:l.useCallback(async(ve,ze)=>{var Ct;return(Ct=L.current)==null?void 0:Ct.call(L,{type:"SNAP",source:ze.payload.source||"custom"})},[]),onOpenStart:l.useCallback(async()=>{var ve;return(ve=L.current)==null?void 0:ve.call(L,{type:"OPEN"})},[]),onCloseStart:l.useCallback(async()=>{var ve;return(ve=L.current)==null?void 0:ve.call(L,{type:"CLOSE"})},[]),onResizeStart:l.useCallback(async()=>{var ve;return(ve=L.current)==null?void 0:ve.call(L,{type:"RESIZE",source:pe.current})},[]),onSnapEnd:l.useCallback(async ve=>{var ze;return(ze=Y.current)==null?void 0:ze.call(Y,{type:"SNAP",source:ve.snapSource})},[]),onOpenEnd:l.useCallback(async()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"OPEN"})},[]),onCloseEnd:l.useCallback(async()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"CLOSE"})},[]),onResizeEnd:l.useCallback(async()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"RESIZE",source:pe.current})},[]),renderVisuallyHidden:l.useCallback(async()=>{await tt({y:De.current,ready:0,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:!0})},[tt]),activate:l.useCallback(async()=>{W.current=!0,await Promise.all([st.current.activate(),Et.current.activate(),We.current.activate()])},[We,Et,st]),deactivate:l.useCallback(async()=>{st.current.deactivate(),Et.current.deactivate(),We.current.deactivate(),W.current=!1},[We,Et,st]),openImmediately:l.useCallback(async()=>{ee.current=De.current,await tt({y:De.current,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:!0})},[tt]),openSmoothly:l.useCallback(async()=>{await tt({y:0,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:!0}),ee.current=De.current,await tt({y:De.current,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:Ee.current})},[tt,Ee]),snapSmoothly:l.useCallback(async ve=>{const ze=Dt.current(ve.y);ee.current=ze,c.current=ze,await tt({y:ze,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:Tt.current,immediate:Ee.current,config:{velocity:ve.velocity}})},[tt,c,Ee]),resizeSmoothly:l.useCallback(async()=>{const ve=Dt.current(ee.current);ee.current=ve,c.current=ve,await tt({y:ve,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:Tt.current,immediate:pe.current==="element"?Ee.current:!0})},[tt,c,Ee]),closeSmoothly:l.useCallback(async()=>{tt({minSnap:ee.current,immediate:!0}),ee.current=0,await tt({y:0,maxHeight:Ge.current,maxSnap:et.current,immediate:Ee.current}),await tt({ready:0,immediate:!0})},[tt,Ee])}});l.useEffect(()=>{U&&Lt(a?"OPEN":"CLOSE")},[a,Lt,U]),bi(()=>{(Te||At||Xe)&&Lt("RESIZE")},[Te,At,Xe,Lt]),l.useEffect(()=>()=>{st.current.deactivate(),Et.current.deactivate(),We.current.deactivate()},[We,Et,st]),l.useImperativeHandle(H,()=>({snapTo:(ve,{velocity:ze=1,source:Ct="custom"}={})=>{Lt("SNAP",{payload:{y:Dt.current(ve),velocity:ze,source:Ct}})},get height(){return ee.current}}),[Lt]),l.useEffect(()=>{const ve=z.current,ze=_t=>{xe.current&&_t.preventDefault()},Ct=_t=>{ve&&ve.scrollTop<0&&(requestAnimationFrame(()=>{ve.style.overflow="hidden",ve.scrollTop=0,ve.style.removeProperty("overflow")}),_t.preventDefault())};return I&&(ve==null||ve.addEventListener("scroll",ze),ve==null||ve.addEventListener("touchmove",ze),ve==null||ve.addEventListener("touchstart",Ct)),()=>{ve==null||ve.removeEventListener("scroll",ze),ve==null||ve.removeEventListener("touchmove",ze),ve==null||ve.removeEventListener("touchstart",Ct)}},[I,z]);const wn=CC(({args:[{closeOnTap:ve=!1,isContentDragging:ze=!1}={}]=[],cancel:Ct,direction:[,_t],down:Qt,first:Jt,last:kn,memo:sn=K.y.get(),movement:[,Mn],tap:Rn,velocity:en})=>{const tn=Mn*-1;if(!W.current)return Ct(),sn;if(f&&ve&&Rn)return Ct(),setTimeout(()=>f(),0),sn;if(Rn)return sn;const nn=sn+tn,En=tn*en,fn=Math.max(Tt.current,Math.min(et.current,nn+En*2));if(!Qt&&f&&_t>0&&nn+En<Tt.current/2)return Ct(),f(),sn;let Wt=Qt?!f&&Tt.current===et.current?nn<Tt.current?Qo(nn,Tt.current,et.current*2,.55):Qo(nn,Tt.current/2,et.current,.55):Qo(nn,f?0:Tt.current,et.current,.55):fn;return I&&ze?(Wt>=et.current&&(Wt=et.current),sn===et.current&&z.current&&z.current.scrollTop>0&&(Wt=et.current),xe.current=Wt<et.current):xe.current=!1,Jt&&Lt("DRAG"),kn?(Lt("SNAP",{payload:{y:Wt,velocity:en>.05?en:1,source:"dragging"}}),sn):(Z({y:Wt,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:Tt.current,immediate:!0,config:{velocity:en}}),sn)},{filterTaps:!0});if(Number.isNaN(et.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(Tt.current))throw new TypeError("minSnapRef is NaN!!");const dn=F$({spring:K});return M.jsxs(LS.div,{...j,"data-rsbs-root":!0,"data-rsbs-state":U$.find(Zt.matches),"data-rsbs-is-blocking":b,"data-rsbs-is-dismissable":!!f,"data-rsbs-has-header":!!i,"data-rsbs-has-footer":!!o,className:r,ref:ce,style:{...dn,...$,opacity:K.ready},"data-test-id":x,children:[n,b&&M.jsx(rt,{"data-rsbs-backdrop":!0,...B?wn({closeOnTap:B}):{}},"backdrop"),l.createElement(rt,{...C!=null&&C.overlay?{style:C.overlay}:{},"data-rsbs-overlay":!0,"data-rsbs-overlay-has-padding-x":Le,"data-rsbs-overlay-has-padding-y":ke,"data-test-id":"CT-BottomSheet-Overlay",key:"overlay","aria-modal":"true",role:"dialog",tabIndex:-1,ref:ie,onKeyDown:ve=>{ve.key==="Escape"&&(ve.stopPropagation(),f&&f())}},M.jsx(Am,{ref:oe,title:D,header:i,showBack:F,showClose:A,bind:wn,hasHandleBar:R,onBack:k,onClose:f,style:C==null?void 0:C.header}),l.createElement(rt,{...C!=null&&C.body?{style:C.body}:{},key:"scroll","data-rsbs-scroll":!0,"data-rsbs-scroll-has-padding-x":Le,"data-rsbs-scroll-has-padding-y":ke,ref:z,...I?wn({isContentDragging:!0}):{}},M.jsx(rt,{...C!=null&&C.content?{style:C.content}:{},"data-rsbs-content":!0,ref:G,children:t})),o&&l.createElement(rt,{...C!=null&&C.footer?{style:C.footer}:{},key:"footer",ref:ne,"data-rsbs-footer":!0,...wn()},o))]})}),X$=l.forwardRef(function({onSpringStart:t,onSpringEnd:n,skipInitialTransition:r,...o},i){const[a,s]=l.useState(!1),c=l.useRef(),u=l.useRef(null),f=l.useRef(r&&o.isOpen?"OPEN":"CLOSED");bi(()=>o.isOpen?(cancelAnimationFrame(c.current),s(!0),()=>{f.current="CLOSED"}):()=>{f.current="CLOSED"},[o.isOpen]);const d=l.useCallback(async function(b){await(t==null?void 0:t(b)),b.type==="OPEN"&&cancelAnimationFrame(c.current)},[t]),m=l.useCallback(async function(b){await(n==null?void 0:n(b)),b.type==="CLOSE"&&(c.current=requestAnimationFrame(()=>s(!1)))},[n]);return a?M.jsx(_v,{"data-rsbs-portal":!0,children:M.jsx(q$,{...o,lastSnapRef:u,ref:i,initialState:f.current,onSpringStart:d,onSpringEnd:m})}):null}),_o=({size:e,color:t="inherit",thickness:n=3,...r})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",xmlSpace:"preserve",width:e,height:e,...r,children:M.jsx("path",{fill:t,stroke:t,strokeWidth:n,d:"M73 50c0-12.7-10.3-23-23-23S27 37.3 27 50m3.9 0c0-10.5 8.5-19.1 19.1-19.1S69.1 39.5 69.1 50",children:M.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})});_o.displayName="Spinner";_o.defaultProps={size:24,thickness:3};const G$=({value:e,delay:t=500})=>{const[n,r]=l.useState(e);return l.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[JSON.stringify(e),t]),n},Z$=G$;process.env.NODE_ENV;var Q$=Ke({defaultClassName:"_920fuu5",variantClassNames:{colorScheme:{primary:"_920fuu6",neutral:"_920fuu7",danger:"_920fuu8",warning:"_920fuu9",info:"_920fuua"},variant:{solid:"_920fuub",outline:"_920fuuc",ghost:"_920fuud"},size:{small:"_920fuue",medium:"_920fuuf",large:"_920fuug"},unstyled:{true:"_920fuuh"},isFluid:{true:"_920fuui"}},defaultVariants:{size:"medium",variant:"solid",colorScheme:"primary"},compoundVariants:[[{colorScheme:"primary",variant:"outline"},"_920fuuj"],[{colorScheme:"neutral",variant:"outline"},"_920fuuk"],[{colorScheme:"danger",variant:"outline"},"_920fuul"],[{colorScheme:"warning",variant:"outline"},"_920fuum"],[{colorScheme:"info",variant:"outline"},"_920fuun"],[{size:"small",variant:"outline"},"_920fuuo"],[{size:"large",variant:"outline"},"_920fuup"]]}),J$={primary:"var(--_1qe00b21g)",neutral:"var(--_1qe00b2c)",danger:"var(--_1qe00b214)",warning:"var(--_1qe00b211)",success:"var(--_1qe00b2v)",info:"var(--_1qe00b2y)"},eT={primary:"_920fuu0",neutral:"_920fuu1",danger:"_920fuu2",warning:"_920fuu3",info:"_920fuu4"},jp={primary:"var(--_1qe00b2a)",neutral:"var(--_1qe00b2c)",danger:"var(--_1qe00b214)",warning:"var(--_1qe00b211)",info:"var(--_1qe00b2y)",white:"var(--_1qe00b2d)"};var tT="p9dczu0";const al=({ref:e,colorScheme:t="primary"})=>{const[n,r]=l.useState([]),o=Z$({value:n,delay:1e3});return l.useEffect(()=>{if(e.current){const i=e.current,a=s=>{const c=i.getBoundingClientRect(),u=s.clientX-c.left,f=s.clientY-c.top,d=i.clientHeight,m=i.clientWidth,p=Math.max(m,d);r([...n,{top:f-p/2,left:u-p/2,height:Math.max(m,d),width:Math.max(m,d),backgroundColor:t==="primary"?Pt.theme.colors.primary:J$[t]}])};return i.addEventListener("click",a),()=>{i.removeEventListener("click",a)}}return()=>!1},[e,n]),l.useEffect(()=>{o.length&&r([])},[o.length]),n==null?void 0:n.map((i,a)=>M.jsx("span",{className:tT,style:{...i}},a))},mo=l.forwardRef(({as:e,children:t,className:n,colorScheme:r,size:o,isLoading:i,variant:a,style:s,isDisabled:c,isFluid:u,unstyled:f,noRipple:d,...m},p)=>{const b=l.useRef(null),y=al({ref:b,colorScheme:r,variant:a});l.useImperativeHandle(p,()=>b.current);const $=e||"button";return M.jsx($,{ref:b,as:e,"data-test-id":m["data-test-id"],className:$e(Q$({colorScheme:r,size:o,variant:a,isFluid:u,unstyled:f}),a==="ghost"?eT[r||"primary"]:void 0,n),disabled:c,style:s,...m,children:i?M.jsx(_o,{color:a==="outline"||a==="ghost"?jp[r||"primary"]:jp.white}):M.jsxs(M.Fragment,{children:[t,!d&&y]})})});mo.displayName="Button";mo.defaultProps={as:"button","data-test-id":void 0,isDisabled:void 0,isLoading:void 0,isFluid:void 0,noRipple:!1};const qm="Checkbox",[nT,VP]=bn(qm),[rT,oT]=nT(qm),iT=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,...f}=e,[d,m]=l.useState(null),p=lt(t,w=>m(w)),b=l.useRef(!1),y=d?!!d.closest("form"):!0,[$=!1,E]=Tn({prop:o,defaultProp:i,onChange:u}),v=l.useRef($);return l.useEffect(()=>{const w=d==null?void 0:d.form;if(w){const T=()=>E(v.current);return w.addEventListener("reset",T),()=>w.removeEventListener("reset",T)}},[d,E]),l.createElement(rT,{scope:n,state:$,disabled:s},l.createElement(Ue.button,ae({type:"button",role:"checkbox","aria-checked":kr($)?"mixed":$,"aria-required":a,"data-state":Xm($),"data-disabled":s?"":void 0,disabled:s,value:c},f,{ref:p,onKeyDown:Ne(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Ne(e.onClick,w=>{E(T=>kr(T)?!0:!T),y&&(b.current=w.isPropagationStopped(),b.current||w.stopPropagation())})})),y&&l.createElement(cT,{control:d,bubbles:!b.current,name:r,value:c,checked:$,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),aT="CheckboxIndicator",sT=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=oT(aT,n);return l.createElement(yr,{present:r||kr(i.state)||i.state===!0},l.createElement(Ue.span,ae({"data-state":Xm(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),cT=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=l.useRef(null),a=cs(n),s=as(t);return l.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&d){const m=new Event("click",{bubbles:r});c.indeterminate=kr(n),d.call(c,kr(n)?!1:n),c.dispatchEvent(m)}},[a,n,r]),l.createElement("input",ae({type:"checkbox","aria-hidden":!0,defaultChecked:kr(n)?!1:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function kr(e){return e==="indeterminate"}function Xm(e){return kr(e)?"indeterminate":e?"checked":"unchecked"}const uT=iT,lT=sT;var dT="glci2q0",Lp="glci2q3",fT="glci2q4",Fp={disabled:"glci2q1",enabled:"glci2q2"},pT=Ke({defaultClassName:"glci2q5",variantClassNames:{checked:{true:"glci2q6",false:"glci2q7",indeterminate:"glci2q8"},disabled:{true:"glci2q9"}},defaultVariants:{checked:!1,disabled:!1},compoundVariants:[[{checked:!1,disabled:!0},"glci2qa"]]});const Gm=l.forwardRef(({children:e,"data-test-id":t,checked:n=!1,onCheckedChange:r,disabled:o,value:i,...a},s)=>{const c=`vds-checkbox-${l.useId()}`,[u,f]=l.useState(n);return l.useEffect(()=>{f(n)},[n]),M.jsxs("div",{className:dT,children:[M.jsx(uT,{id:c,disabled:o,"data-test-id":t,ref:s,value:u?"on":"off",checked:u,className:pT({checked:u,disabled:o}),onCheckedChange:d=>{typeof d=="boolean"&&(r?r(d):f(d))},...a,children:M.jsxs(lT,{className:fT,children:[u==="indeterminate"&&M.jsx(j0,{color:"white",className:Lp}),u===!0&&M.jsx(w0,{color:"white",className:Lp})]})}),e&&M.jsx("label",{htmlFor:c,className:o?Fp.disabled:Fp.enabled,children:e})]})});Gm.defaultProps={"data-test-id":"base"};const hT=e=>l.useMemo(()=>{const n=e.every(Boolean);return e.some(Boolean)&&!n?"indeterminate":!!n},[e]);var vT=Ke({defaultClassName:"_10le3lp0",variantClassNames:{variant:{filled:"_10le3lp1",outline:"_10le3lp2"},size:{small:"_10le3lp3",medium:"_10le3lp4"},isActive:{true:"_10le3lp5"}},defaultVariants:{variant:"filled",isActive:!1,size:"medium"},compoundVariants:[[{variant:"outline",isActive:!0},"_10le3lp6"],[{variant:"filled",isActive:!0},"_10le3lp7"]]});const sl=l.forwardRef(({as:e,children:t,variant:n,isActive:r,prefixIcon:o,withCloseButton:i,className:a,disabled:s,style:c,onClose:u,size:f,...d},m)=>{const p=e||"button";return M.jsxs(p,{ref:m,as:e,"data-test-id":d["data-test-id"],className:$e(vT({variant:n,isActive:r,size:f}),a),disabled:s,style:c,...d,children:[o&&o,M.jsx(Xt,{textAlign:"left",textStyle:f==="small"?"caption":"body2",children:t}),i&&M.jsx(Wr,{as:"div","data-test-id":"chips-close-button",variant:"small",isDisabled:s,onClick:u})]})});sl.defaultProps={as:"button",children:void 0,isActive:!1,prefixIcon:void 0,withCloseButton:!1,"data-test-id":void 0,onClose:void 0};sl.displayName="Chip";const Zm="Dialog",[Qm,BP]=bn(Zm),[mT,wr]=Qm(Zm),gT=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[u=!1,f]=Tn({prop:r,defaultProp:o,onChange:i});return l.createElement(mT,{scope:t,triggerRef:s,contentRef:c,contentId:Gn(),titleId:Gn(),descriptionId:Gn(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(d=>!d),[f]),modal:a},n)},yT="DialogTrigger",bT=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=wr(yT,n),i=lt(t,o.triggerRef);return l.createElement(Ue.button,ae({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cl(o.open)},r,{ref:i,onClick:Ne(e.onClick,o.onOpenToggle)}))}),wT="DialogPortal",[HP,Jm]=Qm(wT,{forceMount:void 0}),ou="DialogOverlay",ET=l.forwardRef((e,t)=>{const n=Jm(ou,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=wr(ou,e.__scopeDialog);return i.modal?l.createElement(yr,{present:r||i.open},l.createElement(xT,ae({},o,{ref:t}))):null}),xT=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=wr(ou,n);return l.createElement(dv,{as:lo,allowPinchZoom:!0,shards:[o.contentRef]},l.createElement(Ue.div,ae({"data-state":cl(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ei="DialogContent",_T=l.forwardRef((e,t)=>{const n=Jm(Ei,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=wr(Ei,e.__scopeDialog);return l.createElement(yr,{present:r||i.open},i.modal?l.createElement(ST,ae({},o,{ref:t})):l.createElement(CT,ae({},o,{ref:t})))}),ST=l.forwardRef((e,t)=>{const n=wr(Ei,e.__scopeDialog),r=l.useRef(null),o=lt(t,n.contentRef,r);return l.useEffect(()=>{const i=r.current;if(i)return nv(i)},[]),l.createElement(eg,ae({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ne(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Ne(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Ne(e.onFocusOutside,i=>i.preventDefault())}))}),CT=l.forwardRef((e,t)=>{const n=wr(Ei,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return l.createElement(eg,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),eg=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=wr(Ei,n),c=l.useRef(null),u=lt(t,c);return Nh(),l.createElement(l.Fragment,null,l.createElement(kh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(rs,ae({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":cl(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),$T="DialogClose",TT=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=wr($T,n);return l.createElement(Ue.button,ae({type:"button"},r,{ref:t,onClick:Ne(e.onClick,()=>o.onOpenChange(!1))}))});function cl(e){return e?"open":"closed"}const IT=gT,RT=bT,OT=ET,PT=_T,AT=TT;var DT="_1jc0z8o4",NT="_1jc0z8o0",kT=Ke({defaultClassName:"_1jc0z8o7",variantClassNames:{size:{full:"_1jc0z8o8",small:"_1jc0z8o9",medium:"_1jc0z8oa",large:"_1jc0z8ob"},noPadding:{true:"_1jc0z8oc"},colorScheme:{primary:"_1jc0z8od",neutral:"_1jc0z8oe",danger:"_1jc0z8of",warning:"_1jc0z8og",info:"_1jc0z8oh",white:"_1jc0z8oi"}},defaultVariants:{size:"medium",noPadding:!1,colorScheme:"white"},compoundVariants:[]}),MT="_1jc0z8o1",jT=Ke({defaultClassName:"_1jc0z8o2",variantClassNames:{bold:{true:"_1jc0z8o3"}},defaultVariants:{bold:!1},compoundVariants:[]}),LT=Ke({defaultClassName:"_1jc0z8o6",variantClassNames:{},defaultVariants:{},compoundVariants:[]});const tg=l.forwardRef(({children:e,className:t,"data-test-id":n,...r},o)=>M.jsx(PT,{"data-test-id":n,className:t,ref:o,...r,children:e}));tg.defaultProps={"data-test-id":void 0};const FT=l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(OT,{className:t,ref:r,...n,children:e})),VT=({children:e,className:t,...n})=>M.jsx(hs,{className:t,...n,children:e}),BT=({children:e,...t})=>M.jsx(IT,{...t,children:e});l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(RT,{className:t,...n,ref:r,children:e}));const Pi=l.forwardRef(({children:e,"data-test-id":t,isOpen:n,onClose:r,size:o,destroyOnClose:i,noPadding:a,colorScheme:s,closeOnOverlayClick:c,closeIcon:u,classNameBody:f,isCloseWhenEscape:d,...m},p)=>!n&&i?null:M.jsx(BT,{open:n,onOpenChange:r,children:M.jsxs(VT,{children:[M.jsx(FT,{className:$e(LT())}),M.jsxs(tg,{"data-test-id":t,onInteractOutside:b=>!c&&b.preventDefault(),className:$e(kT({colorScheme:s,size:o,noPadding:a}),f),...m,onEscapeKeyDown:b=>d?r==null?void 0:r():b.preventDefault(),ref:p,children:[r&&!u&&M.jsx(AT,{asChild:!0,"aria-label":"Close",children:M.jsx(Wr,{className:DT,"data-test-id":"close-modal"})}),r&&u&&u,e]})]})}));Pi.displayName="Modal";Pi.defaultProps={children:void 0,"data-test-id":void 0,size:"medium",onClose:void 0,destroyOnClose:!1,noPadding:!1,colorScheme:"white",closeOnOverlayClick:!0,closeIcon:void 0,classNameBody:void 0,isCloseWhenEscape:!0,onOpenAutoFocus:void 0,onCloseAutoFocus:void 0};const $s=l.forwardRef(({as:e,children:t,"data-test-id":n,...r},o)=>{const i=e||"div";return M.jsx(i,{"data-test-id":n,as:e,ref:o,className:NT,...r,children:t})});$s.displayName="modalBody";$s.defaultProps={as:"div",children:void 0,"data-test-id":void 0};const Ts=l.forwardRef(({as:e,children:t,"data-test-id":n,...r},o)=>{const i=e||"div";return M.jsx(i,{"data-test-id":n,as:e,className:MT,ref:o,...r,children:t})});Ts.displayName="modalFooter";Ts.defaultProps={as:"div",children:void 0,"data-test-id":void 0};const Is=l.forwardRef(({as:e,bold:t,children:n,"data-test-id":r,...o},i)=>{const a=e||"div";return M.jsx(a,{"data-test-id":r,as:e,ref:i,className:jT({bold:t}),...o,children:M.jsx(Xt,{textStyle:"subtitle1",fontWeight:"$bold",paddingRight:"$16",margin:"$0",children:n})})});Is.displayName="modalHeader";Is.defaultProps={as:"div",bold:!1,children:void 0,"data-test-id":void 0};var HT="ayjm8u0";const ul=({isOpen:e,onConfirm:t,onCancel:n,message:r,title:o,confirmTestId:i,isLoading:a,confirmText:s="Confirm",cancelText:c="Cancel",closeOnOverlayClick:u,size:f,classNameBody:d,actionDirection:m})=>M.jsxs(Pi,{classNameBody:d,size:f,isOpen:e,closeOnOverlayClick:u,onClose:n,closeIcon:M.jsx(rt,{display:"none"}),children:[M.jsx(Is,{children:o}),M.jsx($s,{children:M.jsx(Xt,{mt:"$8",mb:"$24",color:"$blackTypoMedium",textStyle:"body2",className:HT,children:r})}),M.jsx(Ts,{style:{maxHeight:"none"},children:M.jsxs(Bt,{gap:"$16",justifyContent:"space-between",flexWrap:m==="horizontal"?"nowrap":"wrap",children:[M.jsx(mo,{"data-test-id":"CT_Close_Confirm",onClick:n,variant:"outline",isFluid:!0,children:c}),M.jsx(mo,{"data-test-id":i,onClick:t,isLoading:a,isFluid:!0,children:s})]})})]});ul.defaultProps={message:void 0,cancelText:void 0,confirmText:void 0,confirmTestId:void 0,isLoading:void 0,closeOnOverlayClick:!0,size:"small",classNameBody:void 0,actionDirection:"horizontal"};const ll=l.createContext({}),WT=({children:e})=>{const[t,n]=l.useState(!1),[r,o]=l.useState(void 0),i=()=>{n(!1),o(void 0)},a=()=>{i(),r!=null&&r.actionCallback(!0)},s=()=>{i(),r!=null&&r.actionCallback(!1)},c=l.useMemo(()=>({openDialog:({...f})=>{n(!0),o(f)}}),[n,o]);return M.jsxs(ll.Provider,{value:c,children:[M.jsx(ul,{isOpen:t,title:(r==null?void 0:r.title)??"",onConfirm:a,onCancel:s,...r}),e]})},zT=()=>{const{openDialog:e}=l.useContext(ll);return{confirm:async({...n})=>await new Promise(r=>{e({actionCallback:r,...n})})}};var UT=Ke({defaultClassName:"_1nya5n80",variantClassNames:{variant:{medium:"_1nya5n81",thin:"_1nya5n82"}},defaultVariants:{variant:"thin"},compoundVariants:[]});const{sizesAtoms:YT}=Pt.atoms,dl=l.forwardRef(({children:e,as:t,variant:n,className:r,style:o,width:i,...a},s)=>{const c=t||"div",{className:u}=YT({width:i??"$full",...a});return M.jsx(c,{ref:s,"data-test-id":a["data-test-id"],className:$e(UT({variant:n}),u,r),style:o,...a,children:e})});dl.defaultProps={variant:"thin",as:"div",children:void 0,"data-test-id":void 0};dl.displayName="Divider";const fl=({children:e,isDisabled:t,className:n})=>M.jsx("div",{className:$e(OE({isDisabled:t}),n),children:e});fl.displayName="ActionIcon";fl.defaultProps={isDisabled:!1,className:void 0};const Ai=l.forwardRef(({isError:e,isDisabled:t,required:n,isTextarea:r,children:o,className:i},a)=>M.jsxs("label",{ref:a,className:$e(LE({state:Pu({isError:e,isDisabled:t}),isTextarea:r}),i),children:[o,n&&"*"]}));Ai.displayName="Label";Ai.defaultProps={isTextarea:!1,className:""};const pl=l.forwardRef(({value:e,type:t,label:n,onClear:r,onBlur:o,isLoading:i,icon:a,isClearable:s=!0,required:c,containerStyles:u,inputAreaClassName:f,onClickIcon:d,...m},p)=>{const{addonLeft:b,addonRight:y,helperTextLeft:$,helperTextRight:E,isError:v,errorMessage:w,isDisabled:T,isValid:I,elementLeft:D,elementRight:A,className:F,...k}=m,B=!!a,R=l.useRef(null);l.useImperativeHandle(p,()=>R.current);const[x,h]=l.useState(!1),[C,P]=l.useState(!1),j=U=>{if(x){const re=R.current;re&&re.focus(),C&&(h(!1),P(!1))}else o==null||o(U)},H=()=>{d==null||d();const U=R.current;U&&U.focus(),C&&(h(!1),P(!1))};return l.useEffect(()=>{C&&h(!0)},[C]),M.jsxs(wo,{addonLeft:b,addonRight:y,elementLeft:D,elementRight:A,helperTextLeft:$,helperTextRight:E,isError:v,errorMessage:w,isDisabled:T,isValid:I,className:u,inputAreaClassName:$e(kE,f),children:[M.jsx("input",{ref:R,type:t,className:$e(NE,F),value:e,disabled:T,"data-test-id":m["data-test-id"],required:c,onBlur:j,...k}),M.jsx(Ai,{isError:v,isDisabled:T,required:c,children:n}),M.jsx("div",{className:$e(ME),"data-test-id":"icon-input-area",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onTouchStart:()=>P(!0),onClick:()=>{H()},"aria-hidden":"true",children:M.jsxs(fl,{isDisabled:T,className:$e(s&&!i&&!B&&DE),children:[B&&!i&&a,s&&!i&&!B&&M.jsx(P0,{size:24,"data-test-id":`clear-input-${m["data-test-id"]}`,onClick:r}),i&&M.jsx(_o,{color:Pt.theme.colors.green1})]})})]})});pl.displayName="Input";pl.defaultProps={type:"text",isLoading:!1,icon:void 0,onClear:void 0,isClearable:!0,containerStyles:void 0,"data-test-id":void 0,inputAreaClassName:void 0,onClickIcon:void 0};const hl=l.forwardRef(({value:e,label:t,rows:n=4,required:r,containerStyles:o,...i},a)=>{const{helperTextLeft:s,helperTextRight:c,isError:u,errorMessage:f,isDisabled:d,isValid:m,...p}=i,b=l.useRef(null);l.useImperativeHandle(a,()=>b.current);const y=()=>{var $;($=b.current)==null||$.focus()};return M.jsxs(wo,{"data-test-id":"CT_Field_Container",helperTextLeft:s,helperTextRight:c,isError:u,errorMessage:f,isDisabled:d,isValid:m,className:$e(o),onClick:y,children:[M.jsx("textarea",{ref:b,className:$e(FE),value:e,rows:n,disabled:d,"data-test-id":i["data-test-id"],required:r,...p}),M.jsx(Ai,{isTextarea:!0,isError:u,isDisabled:d,required:r,children:t})]})});hl.displayName="Textarea";hl.defaultProps={containerStyles:void 0,"data-test-id":void 0};var KT=Ke({defaultClassName:"_1n7m27n0",variantClassNames:{colorScheme:{primary:"_1n7m27n1",neutral:"_1n7m27n2",danger:"_1n7m27n3",warning:"_1n7m27n4",info:"_1n7m27n5"},variant:{solid:"_1n7m27n6",outline:"_1n7m27n7"},unstyled:{true:"_1n7m27n8"}},defaultVariants:{variant:"solid",colorScheme:"primary"},compoundVariants:[[{colorScheme:"primary",variant:"outline"},"_1n7m27n9"],[{colorScheme:"neutral",variant:"outline"},"_1n7m27na"],[{colorScheme:"danger",variant:"outline"},"_1n7m27nb"],[{colorScheme:"warning",variant:"outline"},"_1n7m27nc"],[{colorScheme:"info",variant:"outline"},"_1n7m27nd"]]}),Vp={primary:"var(--_1qe00b2a)",neutral:"var(--_1qe00b2c)",danger:"var(--_1qe00b214)",warning:"var(--_1qe00b211)",info:"var(--_1qe00b2y)",white:"var(--_1qe00b2d)"};const vl=l.forwardRef(({as:e,className:t,style:n,colorScheme:r,icon:o,unstyled:i,variant:a,isDisabled:s,isLoading:c,...u},f)=>{const d=l.useRef(null),m=al({ref:d,colorScheme:r,variant:a});l.useImperativeHandle(f,()=>d.current);const p=e||"button";return M.jsx(p,{ref:d,as:e,"data-test-id":u["data-test-id"],className:$e(KT({colorScheme:r,unstyled:i,variant:a}),t),disabled:s,style:n,...u,children:c?M.jsx(_o,{color:a==="outline"?Vp[r||"primary"]:Vp.white}):M.jsxs(M.Fragment,{children:[m,o]})})});vl.displayName="Button";vl.defaultProps={as:"button","data-test-id":void 0,isDisabled:void 0,isLoading:void 0};var qT=Ke({defaultClassName:"",variantClassNames:{fit:{fill:"_19yf4wk0",contain:"_19yf4wk1",cover:"_19yf4wk2","scale-down":"_19yf4wk3",none:"_19yf4wk4"}},defaultVariants:{fit:"fill"},compoundVariants:[]});const XT=({width:e=140,height:t=140,viewBox:n="0 0 140 140",...r})=>M.jsx("svg",{"data-test-id":"illustration-fallback-image",width:e,height:t,viewBox:n,fill:"none",...r,children:M.jsx("path",{d:"M85.604 0H0V140H130V43.7197L85.604 0ZM119.088 129.24H10.9305V93.2855L23.0998 101.606L48.3128 71.9816L70.6656 103.991L83.7094 86.5608L106.062 92.0123L87.2618 70.7801L71.7769 89.1789L50.5353 52.3812L22.8812 79.3877L10.9305 68.1798V10.7596H80.9767V48.0594H118.96L119.07 48.167V129.24H119.088Z",fill:"#EEEEEE"})}),ml=l.forwardRef(({as:e,src:t,fit:n,width:r,height:o,loading:i,isLoading:a,fallback:s,onLoad:c,onError:u,className:f,"data-test-id":d,...m},p)=>{const b=e||"img",y=l.useMemo(()=>`${parseInt(`${r??0}`,10)}px`,[r]),$=l.useMemo(()=>`${parseInt(`${o??0}`,10)}px`,[o]),[E,v]=l.useState(!1),[w,T]=l.useState(n),I=A=>{T("fill"),v(!0),u==null||u(A)},D=A=>{v(!1),c==null||c(A)};return a&&!E?M.jsx(rt,{bgColor:"$grey2",width:y,height:$}):E?s||M.jsx(XT,{width:y,height:$}):M.jsx(b,{"data-test-id":d,as:"img",width:y,height:$,src:t,loading:i,onLoad:D,onError:I,ref:p,className:$e(qT({fit:w})),...m})});ml.displayName="Image";ml.defaultProps={as:"img","data-test-id":void 0,fallback:void 0,width:void 0,height:void 0,loading:void 0,isLoading:void 0,onLoad:void 0,onError:void 0,fit:void 0};var ng=Ke({defaultClassName:"_5y0pl50",variantClassNames:{textStyle:{heading1:"_5y0pl51",heading2:"_5y0pl52",heading3:"_5y0pl53",heading4:"_5y0pl54",heading5:"_5y0pl55",heading6:"_5y0pl56",subtitle1:"_5y0pl57",subtitle2:"_5y0pl58",body1:"_5y0pl59",body2:"_5y0pl5a",caption:"_5y0pl5b",footer:"_5y0pl5c"},isDisabled:{true:"_5y0pl5d"},isStandalone:{true:"_5y0pl5e",false:"_5y0pl5f"},isBold:{true:"_5y0pl5g"}},defaultVariants:{isStandalone:!1,isDisabled:!1,isBold:!1,textStyle:"body1"},compoundVariants:[]});const rg=({children:e,className:t,isStandalone:n,textStyle:r="body2",isDisabled:o,isBold:i,...a})=>M.jsx("a",{className:$e(t,ng({isDisabled:o,textStyle:r,isBold:i,isStandalone:n})),"data-disabled":o,...a,children:e});var GT="_1cq2k9i0";const gl=l.forwardRef(({children:e,as:t,className:n,variant:r,...o},i)=>{const a=t||"ul";return M.jsx(a,{"data-test-id":o["data-test-id"],ref:i,className:$e(GT,n),...o,children:l.Children.map(e,s=>l.cloneElement(s,{variant:r}))})});gl.displayName="List";gl.defaultProps={"data-test-id":void 0,as:"ul",variant:"default"};var ZT="xw6nfa0",QT="xw6nfa1",JT=Ke({defaultClassName:"xw6nfa2",variantClassNames:{variant:{small:"xw6nfa3",default:"xw6nfa4"}},defaultVariants:{variant:"default"},compoundVariants:[]});const yl=l.forwardRef(({children:e,leftIcon:t,rightIcon:n,href:r,target:o,as:i,className:a,variant:s,...c},u)=>{const f=i||"li",d=r?"a":rt;return M.jsx(f,{"data-test-id":c["data-test-id"],className:$e(ZT,a),...c,ref:u,children:M.jsxs(d,{href:r,target:o,className:JT({variant:s}),children:[t,M.jsx("div",{className:QT,children:e}),n]})})});yl.displayName="ListItem";yl.defaultProps={"data-test-id":void 0,leftIcon:void 0,rightIcon:void 0,href:void 0,target:"_self",as:"li",variant:void 0};var og={},ig={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Wy,()=>(()=>{var n=[,(a,s,c)=>{c.r(s),c.d(s,{default:()=>f});var u=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(m={}){var p=m,b,y;p.ready=new Promise((S,g)=>{b=S,y=g});function $(){function S(ue){const se=N;O=g=0,N=new Map,se.forEach(de=>{try{de(ue)}catch(le){console.error(le)}}),this.Qa(),q&&q.nb()}let g=0,O=0,N=new Map,q=null,te=null;this.requestAnimationFrame=function(ue){g||(g=requestAnimationFrame(S.bind(this)));const se=++O;return N.set(se,ue),se},this.cancelAnimationFrame=function(ue){N.delete(ue),g&&N.size==0&&(cancelAnimationFrame(g),g=0)},this.lb=function(ue){te&&(document.body.remove(te),te=null),ue||(te=document.createElement("div"),te.style.backgroundColor="black",te.style.position="fixed",te.style.right=0,te.style.top=0,te.style.color="white",te.style.padding="4px",te.innerHTML="RIVE FPS",ue=function(se){te.innerHTML="RIVE FPS "+se.toFixed(1)},document.body.appendChild(te)),q=new function(){let se=0,de=0;this.nb=function(){var le=performance.now();de?(++se,le-=de,1e3<le&&(ue(1e3*se/le),se=de=0)):(de=le,se=0)}}},this.ib=function(){te&&(document.body.remove(te),te=null),q=null},this.Qa=function(){}}function E(S){console.assert(!0);const g=new Map;let O=-1/0;this.push=function(N){return N=N+((1<<S)-1)>>S,g.has(N)&&clearTimeout(g.get(N)),g.set(N,setTimeout(function(){g.delete(N),g.length==0?O=-1/0:N==O&&(O=Math.max(...g.keys()),console.assert(O<N))},1e3)),O=Math.max(N,O),O<<S}}const v=new function(){function S(){if(!g){let xt=function(Nt,Ve,Ye){if(Ve=ye.createShader(Ve),ye.shaderSource(Ve,Ye),ye.compileShader(Ve),Ye=ye.getShaderInfoLog(Ve),0<Ye.length)throw Ye;ye.attachShader(Nt,Ve)};var Re=document.createElement("canvas"),je={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let ye=Re.getContext("webgl2",je);if(ye)O=2;else if(ye=Re.getContext("webgl",je))O=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if(N=Math.min(ye.getParameter(ye.MAX_RENDERBUFFER_SIZE),ye.getParameter(ye.MAX_TEXTURE_SIZE)),Re=ye.createProgram(),xt(Re,ye.VERTEX_SHADER,`attribute vec2 vertex;
|
|
146
|
+
*/function wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Ep(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wp(Object(n),!0).forEach(function(r){UC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UC(e,t,n){return t=KC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YC(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KC(e){var t=YC(e,"string");return typeof t=="symbol"?t:String(t)}var xp={activateTrap:function(t,n){if(t.length>0){var r=t[t.length-1];r!==n&&r.pause()}var o=t.indexOf(n);o===-1||t.splice(o,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},qC=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},XC=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},Jo=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},GC=function(t){return Jo(t)&&!t.shiftKey},ZC=function(t){return Jo(t)&&t.shiftKey},_p=function(t){return setTimeout(t,0)},Sp=function(t,n){var r=-1;return t.every(function(o,i){return n(o)?(r=i,!1):!0}),r},Mo=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return typeof t=="function"?t.apply(void 0,r):t},na=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},QC=[],JC=function(t,n){var r=(n==null?void 0:n.document)||document,o=(n==null?void 0:n.trapStack)||QC,i=Ep({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:GC,isKeyBackward:ZC},n),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,c=function(R,x,h){return R&&R[x]!==void 0?R[x]:i[h||x]},u=function(R,x){var h=typeof(x==null?void 0:x.composedPath)=="function"?x.composedPath():void 0;return a.containerGroups.findIndex(function(C){var P=C.container,j=C.tabbableNodes;return P.contains(R)||(h==null?void 0:h.includes(P))||j.find(function(H){return H===R})})},f=function(R){var x=i[R];if(typeof x=="function"){for(var h=arguments.length,C=new Array(h>1?h-1:0),P=1;P<h;P++)C[P-1]=arguments[P];x=x.apply(void 0,C)}if(x===!0&&(x=void 0),!x){if(x===void 0||x===!1)return x;throw new Error("`".concat(R,"` was specified but was not a node, or did not return a node"))}var j=x;if(typeof x=="string"&&(j=r.querySelector(x),!j))throw new Error("`".concat(R,"` as selector refers to no known node"));return j},d=function(){var R=f("initialFocus");if(R===!1)return!1;if(R===void 0||!uc(R,i.tabbableOptions))if(u(r.activeElement)>=0)R=r.activeElement;else{var x=a.tabbableGroups[0],h=x&&x.firstTabbableNode;R=h||f("fallbackFocus")}if(!R)throw new Error("Your focus-trap needs to have at least one focusable element");return R},m=function(){if(a.containerGroups=a.containers.map(function(R){var x=HC(R,i.tabbableOptions),h=WC(R,i.tabbableOptions),C=x.length>0?x[0]:void 0,P=x.length>0?x[x.length-1]:void 0,j=h.find(function(re){return eo(re)}),H=h.slice().reverse().find(function(re){return eo(re)}),U=!!x.find(function(re){return Rr(re)>0});return{container:R,tabbableNodes:x,focusableNodes:h,posTabIndexesFound:U,firstTabbableNode:C,lastTabbableNode:P,firstDomTabbableNode:j,lastDomTabbableNode:H,nextTabbableNode:function(W){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=x.indexOf(W);return J<0?L?h.slice(h.indexOf(W)+1).find(function(Y){return eo(Y)}):h.slice(0,h.indexOf(W)).reverse().find(function(Y){return eo(Y)}):x[J+(L?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(R){return R.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!f("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(R){return R.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},p=function B(R){if(R!==!1&&R!==r.activeElement){if(!R||!R.focus){B(d());return}R.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=R,qC(R)&&R.select()}},b=function(R){var x=f("setReturnFocus",R);return x||(x===!1?!1:R)},y=function(R){var x=R.target,h=R.event,C=R.isBackward,P=C===void 0?!1:C;x=x||na(h),m();var j=null;if(a.tabbableGroups.length>0){var H=u(x,h),U=H>=0?a.containerGroups[H]:void 0;if(H<0)P?j=a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:j=a.tabbableGroups[0].firstTabbableNode;else if(P){var re=Sp(a.tabbableGroups,function(Z){var ce=Z.firstTabbableNode;return x===ce});if(re<0&&(U.container===x||uc(x,i.tabbableOptions)&&!eo(x,i.tabbableOptions)&&!U.nextTabbableNode(x,!1))&&(re=H),re>=0){var W=re===0?a.tabbableGroups.length-1:re-1,L=a.tabbableGroups[W];j=Rr(x)>=0?L.lastTabbableNode:L.lastDomTabbableNode}else Jo(h)||(j=U.nextTabbableNode(x,!1))}else{var J=Sp(a.tabbableGroups,function(Z){var ce=Z.lastTabbableNode;return x===ce});if(J<0&&(U.container===x||uc(x,i.tabbableOptions)&&!eo(x,i.tabbableOptions)&&!U.nextTabbableNode(x))&&(J=H),J>=0){var Y=J===a.tabbableGroups.length-1?0:J+1,K=a.tabbableGroups[Y];j=Rr(x)>=0?K.firstTabbableNode:K.firstDomTabbableNode}else Jo(h)||(j=U.nextTabbableNode(x))}}else j=f("fallbackFocus");return j},$=function(R){var x=na(R);if(!(u(x,R)>=0)){if(Mo(i.clickOutsideDeactivates,R)){s.deactivate({returnFocus:i.returnFocusOnDeactivate});return}Mo(i.allowOutsideClick,R)||R.preventDefault()}},E=function(R){var x=na(R),h=u(x,R)>=0;if(h||x instanceof Document)h&&(a.mostRecentlyFocusedNode=x);else{R.stopImmediatePropagation();var C,P=!0;if(a.mostRecentlyFocusedNode)if(Rr(a.mostRecentlyFocusedNode)>0){var j=u(a.mostRecentlyFocusedNode),H=a.containerGroups[j].tabbableNodes;if(H.length>0){var U=H.findIndex(function(re){return re===a.mostRecentlyFocusedNode});U>=0&&(i.isKeyForward(a.recentNavEvent)?U+1<H.length&&(C=H[U+1],P=!1):U-1>=0&&(C=H[U-1],P=!1))}}else a.containerGroups.some(function(re){return re.tabbableNodes.some(function(W){return Rr(W)>0})})||(P=!1);else P=!1;P&&(C=y({target:a.mostRecentlyFocusedNode,isBackward:i.isKeyBackward(a.recentNavEvent)})),p(C||a.mostRecentlyFocusedNode||d())}a.recentNavEvent=void 0},v=function(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;a.recentNavEvent=R;var h=y({event:R,isBackward:x});h&&(Jo(R)&&R.preventDefault(),p(h))},w=function(R){if(XC(R)&&Mo(i.escapeDeactivates,R)!==!1){R.preventDefault(),s.deactivate();return}(i.isKeyForward(R)||i.isKeyBackward(R))&&v(R,i.isKeyBackward(R))},T=function(R){var x=na(R);u(x,R)>=0||Mo(i.clickOutsideDeactivates,R)||Mo(i.allowOutsideClick,R)||(R.preventDefault(),R.stopImmediatePropagation())},I=function(){if(a.active)return xp.activateTrap(o,s),a.delayInitialFocusTimer=i.delayInitialFocus?_p(function(){p(d())}):p(d()),r.addEventListener("focusin",E,!0),r.addEventListener("mousedown",$,{capture:!0,passive:!1}),r.addEventListener("touchstart",$,{capture:!0,passive:!1}),r.addEventListener("click",T,{capture:!0,passive:!1}),r.addEventListener("keydown",w,{capture:!0,passive:!1}),s},D=function(){if(a.active)return r.removeEventListener("focusin",E,!0),r.removeEventListener("mousedown",$,!0),r.removeEventListener("touchstart",$,!0),r.removeEventListener("click",T,!0),r.removeEventListener("keydown",w,!0),s},A=function(R){var x=R.some(function(h){var C=Array.from(h.removedNodes);return C.some(function(P){return P===a.mostRecentlyFocusedNode})});x&&p(d())},F=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(A):void 0,k=function(){F&&(F.disconnect(),a.active&&!a.paused&&a.containers.map(function(R){F.observe(R,{subtree:!0,childList:!0})}))};return s={get active(){return a.active},get paused(){return a.paused},activate:function(R){if(a.active)return this;var x=c(R,"onActivate"),h=c(R,"onPostActivate"),C=c(R,"checkCanFocusTrap");C||m(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=r.activeElement,x==null||x();var P=function(){C&&m(),I(),k(),h==null||h()};return C?(C(a.containers.concat()).then(P,P),this):(P(),this)},deactivate:function(R){if(!a.active)return this;var x=Ep({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},R);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,D(),a.active=!1,a.paused=!1,k(),xp.deactivateTrap(o,s);var h=c(x,"onDeactivate"),C=c(x,"onPostDeactivate"),P=c(x,"checkCanReturnFocus"),j=c(x,"returnFocus","returnFocusOnDeactivate");h==null||h();var H=function(){_p(function(){j&&p(b(a.nodeFocusedBeforeActivation)),C==null||C()})};return j&&P?(P(b(a.nodeFocusedBeforeActivation)).then(H,H),this):(H(),this)},pause:function(R){if(a.paused||!a.active)return this;var x=c(R,"onPause"),h=c(R,"onPostPause");return a.paused=!0,x==null||x(),D(),k(),h==null||h(),this},unpause:function(R){if(!a.paused||!a.active)return this;var x=c(R,"onUnpause"),h=c(R,"onPostUnpause");return a.paused=!1,x==null||x(),m(),I(),k(),h==null||h(),this},updateContainerElements:function(R){var x=[].concat(R).filter(Boolean);return a.containers=x.map(function(h){return typeof h=="string"?r.querySelector(h):h}),a.active&&m(),k(),this}},s.updateContainerElements(t),s};function e$({targetRef:e,fallbackRef:t,initialFocusRef:n,enabled:r}){const o=l.useRef({activate:()=>{throw new TypeError("Tried to activate focus trap too early")},deactivate:()=>{}});return l.useDebugValue(r?"Enabled":"Disabled"),l.useEffect(()=>{if(!r){o.current.deactivate(),o.current={activate:()=>{},deactivate:()=>{}};return}const i=t.current,a=JC(e.current,{onActivate:process.env.NODE_ENV!=="production"?()=>{console.log("focus activate")}:void 0,initialFocus:n?()=>(n==null?void 0:n.current)||i:void 0,fallbackFocus:i,escapeDeactivates:!1,clickOutsideDeactivates:!1});let s=!1;o.current={activate:async()=>{s||(s=!0,await a.activate(),await new Promise(c=>setTimeout(()=>c(1),0)))},deactivate:()=>{s&&(s=!1,a.deactivate())}}},[r,t,n,e]),o}const bi=typeof window<"u"?l.useLayoutEffect:l.useEffect;function t$(){const[e,t]=l.useState(!1),[n,r]=l.useState({}),o=l.useCallback(i=>(console.count(`registerReady:${i}`),r(a=>({...a,[i]:!1})),()=>{console.count(`setReady:${i}`),r(a=>({...a,[i]:!0}))}),[]);return l.useEffect(()=>{const i=Object.values(n);if(i.length===0){console.log("nope nothing registered yet");return}const a=i.every(Boolean);console.log("check if we are rready",n,a),a&&(console.warn("ready!"),t(!0))},[n]),{ready:e,registerReady:o}}function n$(){const e=l.useMemo(()=>typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)"):null,[]),t=l.useRef(e==null?void 0:e.matches);return l.useDebugValue(t.current?"reduce":"no-preference"),l.useEffect(()=>{const n=r=>{t.current=r.matches};return e==null||e.addListener(n),()=>e==null?void 0:e.removeListener(n)},[e]),t}function r$(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var ol=!1;if(typeof window<"u"){var Cp={get passive(){ol=!0}};window.addEventListener("testPassive",null,Cp),window.removeEventListener("testPassive",null,Cp)}var Fm=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),fr=[],za=!1,Vm=-1,ei=void 0,ti=void 0,Bm=function(t){return fr.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},Ua=function(t){var n=t||window.event;return Bm(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},o$=function(t){if(ti===void 0){var n=!!t&&t.reserveScrollBarGap===!0,r=window.innerWidth-document.documentElement.clientWidth;n&&r>0&&(ti=document.body.style.paddingRight,document.body.style.paddingRight=r+"px")}ei===void 0&&(ei=document.body.style.overflow,document.body.style.overflow="hidden")},i$=function(){ti!==void 0&&(document.body.style.paddingRight=ti,ti=void 0),ei!==void 0&&(document.body.style.overflow=ei,ei=void 0)},a$=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},s$=function(t,n){var r=t.targetTouches[0].clientY-Vm;return Bm(t.target)?!1:n&&n.scrollTop===0&&r>0||a$(n)&&r<0?Ua(t):(t.stopPropagation(),!0)},c$=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!fr.some(function(o){return o.targetElement===t})){var r={targetElement:t,options:n||{}};fr=[].concat(r$(fr),[r]),Fm?(t.ontouchstart=function(o){o.targetTouches.length===1&&(Vm=o.targetTouches[0].clientY)},t.ontouchmove=function(o){o.targetTouches.length===1&&s$(o,t)},za||(document.addEventListener("touchmove",Ua,ol?{passive:!1}:void 0),za=!0)):o$(n)}},u$=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}fr=fr.filter(function(n){return n.targetElement!==t}),Fm?(t.ontouchstart=null,t.ontouchmove=null,za&&fr.length===0&&(document.removeEventListener("touchmove",Ua,ol?{passive:!1}:void 0),za=!1)):fr.length||i$()};function l$({targetRef:e,enabled:t,reserveScrollBarGap:n}){const r=l.useRef({activate:()=>{throw new TypeError("Tried to activate scroll lock too early")},deactivate:()=>{}});return l.useDebugValue(t?"Enabled":"Disabled"),l.useEffect(()=>{if(!t){r.current.deactivate(),r.current={activate:()=>{},deactivate:()=>{}};return}const o=e.current;let i=!1;r.current={activate:()=>{i||(i=!0,c$(o,{allowTouchMove:a=>a.closest("[data-body-scroll-lock-ignore]"),reserveScrollBarGap:n}))},deactivate:()=>{i&&(i=!1,u$(o))}}},[t,e,n]),r}var Dr=[],d$=function(){return Dr.some(function(e){return e.activeTargets.length>0})},f$=function(){return Dr.some(function(e){return e.skippedTargets.length>0})},$p="ResizeObserver loop completed with undelivered notifications.",p$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:$p}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=$p),window.dispatchEvent(e)},wi;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(wi||(wi={}));var Nr=function(e){return Object.freeze(e)},h$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Nr(this)}return e}(),Hm=function(){function e(t,n,r,o){return this.x=t,this.y=n,this.width=r,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Nr(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,o=t.top,i=t.right,a=t.bottom,s=t.left,c=t.width,u=t.height;return{x:n,y:r,top:o,right:i,bottom:a,left:s,width:c,height:u}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),il=function(e){return e instanceof SVGElement&&"getBBox"in e},Wm=function(e){if(il(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Tp=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},v$=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ni=typeof window<"u"?window:{},ra=new WeakMap,Ip=/auto|scroll/,m$=/^tb|vertical/,g$=/msie|trident/i.test(ni.navigator&&ni.navigator.userAgent),Ln=function(e){return parseFloat(e||"0")},co=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new h$((n?t:e)||0,(n?e:t)||0)},Rp=Nr({devicePixelContentBoxSize:co(),borderBoxSize:co(),contentBoxSize:co(),contentRect:new Hm(0,0,0,0)}),zm=function(e,t){if(t===void 0&&(t=!1),ra.has(e)&&!t)return ra.get(e);if(Wm(e))return ra.set(e,Rp),Rp;var n=getComputedStyle(e),r=il(e)&&e.ownerSVGElement&&e.getBBox(),o=!g$&&n.boxSizing==="border-box",i=m$.test(n.writingMode||""),a=!r&&Ip.test(n.overflowY||""),s=!r&&Ip.test(n.overflowX||""),c=r?0:Ln(n.paddingTop),u=r?0:Ln(n.paddingRight),f=r?0:Ln(n.paddingBottom),d=r?0:Ln(n.paddingLeft),m=r?0:Ln(n.borderTopWidth),p=r?0:Ln(n.borderRightWidth),b=r?0:Ln(n.borderBottomWidth),y=r?0:Ln(n.borderLeftWidth),$=d+u,E=c+f,v=y+p,w=m+b,T=s?e.offsetHeight-w-e.clientHeight:0,I=a?e.offsetWidth-v-e.clientWidth:0,D=o?$+v:0,A=o?E+w:0,F=r?r.width:Ln(n.width)-D-I,k=r?r.height:Ln(n.height)-A-T,B=F+$+I+v,R=k+E+T+w,x=Nr({devicePixelContentBoxSize:co(Math.round(F*devicePixelRatio),Math.round(k*devicePixelRatio),i),borderBoxSize:co(B,R,i),contentBoxSize:co(F,k,i),contentRect:new Hm(d,c,F,k)});return ra.set(e,x),x},Um=function(e,t,n){var r=zm(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case wi.DEVICE_PIXEL_CONTENT_BOX:return a;case wi.BORDER_BOX:return o;default:return i}},y$=function(){function e(t){var n=zm(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Nr([n.borderBoxSize]),this.contentBoxSize=Nr([n.contentBoxSize]),this.devicePixelContentBoxSize=Nr([n.devicePixelContentBoxSize])}return e}(),Ym=function(e){if(Wm(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},b$=function(){var e=1/0,t=[];Dr.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(u){var f=new y$(u.target),d=Ym(u.target);s.push(f),u.lastReportedSize=Um(u.target,u.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var o=r[n];o()}return e},Op=function(e){Dr.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(o){o.isActive()&&(Ym(o.target)>e?n.activeTargets.push(o):n.skippedTargets.push(o))})})},w$=function(){var e=0;for(Op(e);d$();)e=b$(),Op(e);return f$()&&p$(),e>0},lc,Km=[],E$=function(){return Km.splice(0).forEach(function(e){return e()})},x$=function(e){if(!lc){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return E$()}).observe(n,r),lc=function(){n.textContent="".concat(t?t--:t++)}}Km.push(e),lc()},_$=function(e){x$(function(){requestAnimationFrame(e)})},wa=0,S$=function(){return!!wa},C$=250,$$={attributes:!0,characterData:!0,childList:!0,subtree:!0},Pp=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ap=function(e){return e===void 0&&(e=0),Date.now()+e},dc=!1,T$=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=C$),!dc){dc=!0;var r=Ap(t);_$(function(){var o=!1;try{o=w$()}finally{if(dc=!1,t=r-Ap(),!S$())return;o?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,$$)};document.body?n():ni.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Pp.forEach(function(n){return ni.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Pp.forEach(function(n){return ni.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ru=new T$,Dp=function(e){!wa&&e>0&&ru.start(),wa+=e,!wa&&ru.stop()},I$=function(e){return!il(e)&&!v$(e)&&getComputedStyle(e).display==="inline"},R$=function(){function e(t,n){this.target=t,this.observedBox=n||wi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Um(this.target,this.observedBox,!0);return I$(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),O$=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),oa=new WeakMap,Np=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ia=function(){function e(){}return e.connect=function(t,n){var r=new O$(t,n);oa.set(t,r)},e.observe=function(t,n,r){var o=oa.get(t),i=o.observationTargets.length===0;Np(o.observationTargets,n)<0&&(i&&Dr.push(o),o.observationTargets.push(new R$(n,r&&r.box)),Dp(1),ru.schedule())},e.unobserve=function(t,n){var r=oa.get(t),o=Np(r.observationTargets,n),i=r.observationTargets.length===1;o>=0&&(i&&Dr.splice(Dr.indexOf(r),1),r.observationTargets.splice(o,1),Dp(-1))},e.disconnect=function(t){var n=this,r=oa.get(t);r.observationTargets.slice().forEach(function(o){return n.unobserve(t,o.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),P$=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ia.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Tp(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ia.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Tp(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ia.unobserve(this,t)},e.prototype.disconnect=function(){ia.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function Wo(e,t,n){return e=+e,t=+t,n=+n,t=t===t?t:0,n=n===n?n:0,e===e&&(e=e<=n?e:n,e=e>=t?e:t),e}function Ya(e){const t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}function A$(e,t){const r=[].concat(e).map(Ya).reduce((s,c)=>(s.add(Wo(c,0,t)),s),new Set),o=Array.from(r),i=Math.min(...o);if(Number.isNaN(i))throw new TypeError("minSnap is NaN");const a=Math.max(...o);if(Number.isNaN(a))throw new TypeError("maxSnap is NaN");return{snapPoints:o,minSnap:i,maxSnap:a}}const D$=process.env.NODE_ENV==="development"&&typeof window<"u"?window.location.search==="?debug":!1,N$={box:"border-box"};function fc(e,{label:t,enabled:n,resizeSourceRef:r}){const[o,i]=l.useState(0);l.useDebugValue(`${t}: ${o}`);const a=l.useCallback(s=>{i(s[0].borderBoxSize[0].blockSize),r.current="element"},[r]);return bi(()=>{if(!e.current||!n)return;const s=new P$(a);return s.observe(e.current,N$),()=>s.disconnect()},[e,a,n]),n?o:0}function k$(e,t,n){const r=l.useMemo(()=>t("maxHeight"),[t]),o=window.innerHeight*.75,[i,a]=l.useState(()=>Ya(e)||typeof window<"u"?o:0),s=i>0,c=l.useRef(0);return l.useDebugValue(e?"controlled":"auto"),l.useEffect(()=>{s&&r()},[s,r]),bi(()=>{if(e){a(Ya(e)),n.current="maxheightprop";return}const u=()=>{c.current||(c.current=requestAnimationFrame(()=>{a(o),n.current="window",c.current=0}))};return window.addEventListener("resize",u),a(o),n.current="window",r(),()=>{window.removeEventListener("resize",u),cancelAnimationFrame(c.current)}},[e,r,n,o]),i}function M$({contentRef:e,controlledMaxHeight:t,footerEnabled:n,footerRef:r,headerEnabled:o,headerRef:i,registerReady:a,resizeSourceRef:s,conditions:c}){const u=l.useMemo(()=>a("contentHeight"),[a]),f=k$(t,a,s),d=fc(i,{label:"headerHeight",enabled:o,resizeSourceRef:s}),m=fc(e,{label:"contentHeight",enabled:!0,resizeSourceRef:s}),p=fc(r,{label:"footerHeight",enabled:n,resizeSourceRef:s}),b=c!=null&&c.hasPaddingY?16:0,y=c!=null&&c.hasHeader?0:20,$=c!=null&&c.hasCustomHeader?16:0,E=Math.min(f-d-p,m+b)+(d+y+$)+p;l.useDebugValue(`minHeight: ${E}`);const v=m>0;return l.useEffect(()=>{v&&u()},[v,u]),{maxHeight:f,minHeight:E,headerHeight:d,footerHeight:p}}function j$({contentRef:e,controlledMaxHeight:t,footerEnabled:n,footerRef:r,getSnapPoints:o,headerEnabled:i,headerRef:a,heightRef:s,lastSnapRef:c,ready:u,registerReady:f,resizeSourceRef:d,conditions:m}){const{maxHeight:p,minHeight:b,headerHeight:y,footerHeight:$}=M$({contentRef:e,controlledMaxHeight:t,footerEnabled:n,footerRef:r,headerEnabled:i,headerRef:a,registerReady:f,resizeSourceRef:d,conditions:m}),{snapPoints:E,minSnap:v,maxSnap:w}=A$(u?o({height:s.current,footerHeight:$,headerHeight:y,minHeight:b,maxHeight:p}):[0],p);function T(I){let D;typeof I=="function"?D=I({footerHeight:$,headerHeight:y,height:s.current,minHeight:b,maxHeight:p,snapPoints:E,lastSnap:c.current}):D=I;const A=Ya(D);return E.reduce((F,k)=>Math.abs(k-A)<Math.abs(F-A)?k:F,v)}return l.useDebugValue(`minSnap: ${v}, maxSnap:${w}`),{minSnap:v,maxSnap:w,findSnap:T,maxHeight:p}}function L$(){return CS(()=>({y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}))}function F$({spring:e}){const t=Jr([e.y,e.maxHeight],(s,c)=>`${Math.round(Wo(c-s,0,16))}px`),n=Jr([e.y,e.minSnap,e.maxSnap],(s,c,u)=>`${Wo(s,c,u)}px`),r=Jr([e.y,e.minSnap,e.maxSnap],(s,c,u)=>s<c?`${c-s}px`:s>u?`${u-s}px`:"0px"),o=Jr([e.y,e.maxSnap],(s,c)=>s>=c?Math.ceil(s-c):0),i=Jr([e.y,e.minSnap],(s,c)=>{if(!c)return 0;const u=Math.max(c/2-45,0),f=Math.min(c/2+45,c),d=0,p=(1-d)/(f-u),b=(s-u)*(p+d);return Wo(b,0,1)}),a=Jr([e.y,e.minSnap],(s,c)=>c?Wo(s/c,0,1):0);return{"--rsbs-content-opacity":i,"--rsbs-backdrop-opacity":a,"--rsbs-antigap-scale-y":o,"--rsbs-overlay-translate-y":r,"--rsbs-overlay-rounded":t,"--rsbs-overlay-h":n}}function qt(e=1e3){return new Promise(t=>setTimeout(t,e))}const V$={CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}},kp={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Mp={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},B$=({initialState:e})=>e==="OPEN",H$=({initialState:e})=>e==="CLOSED",W$=i_({id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:{...kp,...Mp}}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:{...kp,...Mp}}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{...V$},onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[a_({y:(e,{payload:{y:t}})=>t,velocity:(e,{payload:{velocity:t}})=>t,snapSource:(e,{payload:{source:t="custom"}})=>t})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},{actions:{onOpenCancel:(e,t)=>{console.log("onOpenCancel",{context:e,event:t})},onSnapCancel:(e,t)=>{console.log("onSnapCancel",{context:e,event:t})},onResizeCancel:(e,t)=>{console.log("onResizeCancel",{context:e,event:t})},onCloseCancel:(e,t)=>{console.log("onCloseCancel",{context:e,event:t})},onOpenEnd:(e,t)=>{console.log("onOpenCancel",{context:e,event:t})},onSnapEnd:(e,t)=>{console.log("onSnapEnd",{context:e,event:t})},onRezizeEnd:(e,t)=>{console.log("onRezizeEnd",{context:e,event:t})}},services:{onSnapStart:async()=>{await qt()},onOpenStart:async()=>{await qt()},onCloseStart:async()=>{await qt()},onResizeStart:async()=>{await qt()},onSnapEnd:async()=>{await qt()},onOpenEnd:async()=>{await qt()},onCloseEnd:async()=>{await qt()},onResizeEnd:async()=>{await qt()},renderVisuallyHidden:async(e,t)=>{console.group("renderVisuallyHidden"),console.log({context:e,event:t}),await qt(),console.groupEnd()},activate:async(e,t)=>{console.group("activate"),console.log({context:e,event:t}),await qt(),console.groupEnd()},deactivate:async(e,t)=>{console.group("deactivate"),console.log({context:e,event:t}),await qt(),console.groupEnd()},openSmoothly:async(e,t)=>{console.group("openSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()},openImmediately:async(e,t)=>{console.group("openImmediately"),console.log({context:e,event:t}),await qt(),console.groupEnd()},snapSmoothly:async(e,t)=>{console.group("snapSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()},resizeSmoothly:async(e,t)=>{console.group("resizeSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()},closeSmoothly:async(e,t)=>{console.group("closeSmoothly"),console.log({context:e,event:t}),await qt(),console.groupEnd()}},guards:{initiallyClosed:H$,initiallyOpen:B$}}),{tension:z$,friction:aa}=cm.default,U$=["closed","opening","open","closing","dragging","snapping","resizing"];function Y$({snapPoints:e,lastSnap:t}){return t??Math.min(...e)}function K$({minHeight:e}){return e}const q$=l.forwardRef(function({children:t,sibling:n,className:r,footer:o,header:i,isOpen:a,initialState:s,lastSnapRef:c,initialFocusRef:u,onClose:f,maxHeight:d,defaultSnap:m=Y$,snapPoints:p=K$,blocking:b=!0,scrollLocking:y=!0,style:$,onSpringStart:E,onSpringCancel:v,onSpringEnd:w,reserveScrollBarGap:T=b,expandOnContentDrag:I=!1,title:D,showClose:A,showBack:F,onBack:k,onCloseWhenClickOutside:B=!0,hasHandleBar:R=!0,"data-test-id":x,padding:h,styles:C,refs:P,...j},H){const{ready:U,registerReady:re}=t$(),W=l.useRef(!1),L=l.useRef(E),J=l.useRef(v),Y=l.useRef(w);l.useEffect(()=>{L.current=E,J.current=v,Y.current=w},[v,E,w]);const[K,Z]=L$(),ce=l.useRef(null),z=l.useRef(null),G=l.useRef(null),oe=l.useRef(null),ne=l.useRef(null),ie=l.useRef(null);l.useImperativeHandle(P==null?void 0:P.body,()=>z.current),l.useImperativeHandle(P==null?void 0:P.content,()=>G.current),l.useImperativeHandle(P==null?void 0:P.header,()=>oe.current),l.useImperativeHandle(P==null?void 0:P.footer,()=>ne.current),l.useImperativeHandle(P==null?void 0:P.overlay,()=>ie.current);const ee=l.useRef(0),pe=l.useRef(),xe=l.useRef(!1),Ee=n$(),{x:Ae="default",y:Ie="default"}=h??{},Le=Ae==="default",ke=Ie==="default",st=l$({targetRef:z,enabled:U&&y,reserveScrollBarGap:T}),We=TC({targetRef:ce,enabled:U&&b}),Et=e$({targetRef:ce,fallbackRef:ie,initialFocusRef:u||void 0,enabled:U&&b&&u!==!1}),{minSnap:Xe,maxSnap:At,maxHeight:Te,findSnap:$t}=j$({contentRef:G,controlledMaxHeight:d,footerEnabled:!!o,footerRef:ne,getSnapPoints:p,headerEnabled:i!==!1,headerRef:oe,heightRef:ee,lastSnapRef:c,ready:U,registerReady:re,resizeSourceRef:pe,conditions:{hasPaddingY:ke,hasHeader:i!==!1,hasCustomHeader:!!i}}),Ge=l.useRef(Te),Tt=l.useRef(Xe),et=l.useRef(At),Dt=l.useRef($t),De=l.useRef(0);bi(()=>{Ge.current=Te,et.current=At,Tt.current=Xe,Dt.current=$t,De.current=$t(m)},[$t,m,Te,At,Xe]);const tt=l.useCallback(({onRest:ve,config:{velocity:ze=1,...Ct}={},..._t})=>new Promise(Qt=>Z({..._t,config:{velocity:ze,...Ct,mass:1,tension:z$,friction:Math.max(aa,aa+(aa-aa*ze))},onRest:(...Jt)=>{Qt(...Jt),ve==null||ve(...Jt)}})),[Z]),[Zt,Lt]=m_(W$,{devTools:D$,actions:{onOpenCancel:l.useCallback(()=>{var ve;return(ve=J.current)==null?void 0:ve.call(J,{type:"OPEN"})},[]),onSnapCancel:l.useCallback(ve=>{var ze;return(ze=J.current)==null?void 0:ze.call(J,{type:"SNAP",source:ve.snapSource})},[]),onCloseCancel:l.useCallback(()=>{var ve;return(ve=J.current)==null?void 0:ve.call(J,{type:"CLOSE"})},[]),onResizeCancel:l.useCallback(()=>{var ve;return(ve=J.current)==null?void 0:ve.call(J,{type:"RESIZE",source:pe.current})},[]),onOpenEnd:l.useCallback(()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"OPEN"})},[]),onSnapEnd:l.useCallback(ve=>{var ze;return(ze=Y.current)==null?void 0:ze.call(Y,{type:"SNAP",source:ve.snapSource})},[]),onResizeEnd:l.useCallback(()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"RESIZE",source:pe.current})},[])},context:{initialState:s},services:{onSnapStart:l.useCallback(async(ve,ze)=>{var Ct;return(Ct=L.current)==null?void 0:Ct.call(L,{type:"SNAP",source:ze.payload.source||"custom"})},[]),onOpenStart:l.useCallback(async()=>{var ve;return(ve=L.current)==null?void 0:ve.call(L,{type:"OPEN"})},[]),onCloseStart:l.useCallback(async()=>{var ve;return(ve=L.current)==null?void 0:ve.call(L,{type:"CLOSE"})},[]),onResizeStart:l.useCallback(async()=>{var ve;return(ve=L.current)==null?void 0:ve.call(L,{type:"RESIZE",source:pe.current})},[]),onSnapEnd:l.useCallback(async ve=>{var ze;return(ze=Y.current)==null?void 0:ze.call(Y,{type:"SNAP",source:ve.snapSource})},[]),onOpenEnd:l.useCallback(async()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"OPEN"})},[]),onCloseEnd:l.useCallback(async()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"CLOSE"})},[]),onResizeEnd:l.useCallback(async()=>{var ve;return(ve=Y.current)==null?void 0:ve.call(Y,{type:"RESIZE",source:pe.current})},[]),renderVisuallyHidden:l.useCallback(async()=>{await tt({y:De.current,ready:0,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:!0})},[tt]),activate:l.useCallback(async()=>{W.current=!0,await Promise.all([st.current.activate(),Et.current.activate(),We.current.activate()])},[We,Et,st]),deactivate:l.useCallback(async()=>{st.current.deactivate(),Et.current.deactivate(),We.current.deactivate(),W.current=!1},[We,Et,st]),openImmediately:l.useCallback(async()=>{ee.current=De.current,await tt({y:De.current,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:!0})},[tt]),openSmoothly:l.useCallback(async()=>{await tt({y:0,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:!0}),ee.current=De.current,await tt({y:De.current,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:De.current,immediate:Ee.current})},[tt,Ee]),snapSmoothly:l.useCallback(async ve=>{const ze=Dt.current(ve.y);ee.current=ze,c.current=ze,await tt({y:ze,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:Tt.current,immediate:Ee.current,config:{velocity:ve.velocity}})},[tt,c,Ee]),resizeSmoothly:l.useCallback(async()=>{const ve=Dt.current(ee.current);ee.current=ve,c.current=ve,await tt({y:ve,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:Tt.current,immediate:pe.current==="element"?Ee.current:!0})},[tt,c,Ee]),closeSmoothly:l.useCallback(async()=>{tt({minSnap:ee.current,immediate:!0}),ee.current=0,await tt({y:0,maxHeight:Ge.current,maxSnap:et.current,immediate:Ee.current}),await tt({ready:0,immediate:!0})},[tt,Ee])}});l.useEffect(()=>{U&&Lt(a?"OPEN":"CLOSE")},[a,Lt,U]),bi(()=>{(Te||At||Xe)&&Lt("RESIZE")},[Te,At,Xe,Lt]),l.useEffect(()=>()=>{st.current.deactivate(),Et.current.deactivate(),We.current.deactivate()},[We,Et,st]),l.useImperativeHandle(H,()=>({snapTo:(ve,{velocity:ze=1,source:Ct="custom"}={})=>{Lt("SNAP",{payload:{y:Dt.current(ve),velocity:ze,source:Ct}})},get height(){return ee.current}}),[Lt]),l.useEffect(()=>{const ve=z.current,ze=_t=>{xe.current&&_t.preventDefault()},Ct=_t=>{ve&&ve.scrollTop<0&&(requestAnimationFrame(()=>{ve.style.overflow="hidden",ve.scrollTop=0,ve.style.removeProperty("overflow")}),_t.preventDefault())};return I&&(ve==null||ve.addEventListener("scroll",ze),ve==null||ve.addEventListener("touchmove",ze),ve==null||ve.addEventListener("touchstart",Ct)),()=>{ve==null||ve.removeEventListener("scroll",ze),ve==null||ve.removeEventListener("touchmove",ze),ve==null||ve.removeEventListener("touchstart",Ct)}},[I,z]);const wn=CC(({args:[{closeOnTap:ve=!1,isContentDragging:ze=!1}={}]=[],cancel:Ct,direction:[,_t],down:Qt,first:Jt,last:kn,memo:sn=K.y.get(),movement:[,Mn],tap:Rn,velocity:en})=>{const tn=Mn*-1;if(!W.current)return Ct(),sn;if(f&&ve&&Rn)return Ct(),setTimeout(()=>f(),0),sn;if(Rn)return sn;const nn=sn+tn,En=tn*en,fn=Math.max(Tt.current,Math.min(et.current,nn+En*2));if(!Qt&&f&&_t>0&&nn+En<Tt.current/2)return Ct(),f(),sn;let Wt=Qt?!f&&Tt.current===et.current?nn<Tt.current?Qo(nn,Tt.current,et.current*2,.55):Qo(nn,Tt.current/2,et.current,.55):Qo(nn,f?0:Tt.current,et.current,.55):fn;return I&&ze?(Wt>=et.current&&(Wt=et.current),sn===et.current&&z.current&&z.current.scrollTop>0&&(Wt=et.current),xe.current=Wt<et.current):xe.current=!1,Jt&&Lt("DRAG"),kn?(Lt("SNAP",{payload:{y:Wt,velocity:en>.05?en:1,source:"dragging"}}),sn):(Z({y:Wt,ready:1,maxHeight:Ge.current,maxSnap:et.current,minSnap:Tt.current,immediate:!0,config:{velocity:en}}),sn)},{filterTaps:!0});if(Number.isNaN(et.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(Tt.current))throw new TypeError("minSnapRef is NaN!!");const dn=F$({spring:K});return M.jsxs(LS.div,{...j,"data-rsbs-root":!0,"data-rsbs-state":U$.find(Zt.matches),"data-rsbs-is-blocking":b,"data-rsbs-is-dismissable":!!f,"data-rsbs-has-header":!!i,"data-rsbs-has-footer":!!o,className:r,ref:ce,style:{...dn,...$,opacity:K.ready},"data-test-id":x,children:[n,b&&M.jsx(rt,{"data-rsbs-backdrop":!0,...B?wn({closeOnTap:B}):{}},"backdrop"),l.createElement(rt,{...C!=null&&C.overlay?{style:C.overlay}:{},"data-rsbs-overlay":!0,"data-rsbs-overlay-has-padding-x":Le,"data-rsbs-overlay-has-padding-y":ke,"data-test-id":"CT-BottomSheet-Overlay",key:"overlay","aria-modal":"true",role:"dialog",tabIndex:-1,ref:ie,onKeyDown:ve=>{ve.key==="Escape"&&(ve.stopPropagation(),f&&f())}},M.jsx(Am,{ref:oe,title:D,header:i,showBack:F,showClose:A,bind:wn,hasHandleBar:R,onBack:k,onClose:f,style:C==null?void 0:C.header}),l.createElement(rt,{...C!=null&&C.body?{style:C.body}:{},key:"scroll","data-rsbs-scroll":!0,"data-rsbs-scroll-has-padding-x":Le,"data-rsbs-scroll-has-padding-y":ke,ref:z,...I?wn({isContentDragging:!0}):{}},M.jsx(rt,{...C!=null&&C.content?{style:C.content}:{},"data-rsbs-content":!0,ref:G,children:t})),o&&l.createElement(rt,{...C!=null&&C.footer?{style:C.footer}:{},key:"footer",ref:ne,"data-rsbs-footer":!0,...wn()},o))]})}),X$=l.forwardRef(function({onSpringStart:t,onSpringEnd:n,skipInitialTransition:r,...o},i){const[a,s]=l.useState(!1),c=l.useRef(),u=l.useRef(null),f=l.useRef(r&&o.isOpen?"OPEN":"CLOSED");bi(()=>o.isOpen?(cancelAnimationFrame(c.current),s(!0),()=>{f.current="CLOSED"}):()=>{f.current="CLOSED"},[o.isOpen]);const d=l.useCallback(async function(b){await(t==null?void 0:t(b)),b.type==="OPEN"&&cancelAnimationFrame(c.current)},[t]),m=l.useCallback(async function(b){await(n==null?void 0:n(b)),b.type==="CLOSE"&&(c.current=requestAnimationFrame(()=>s(!1)))},[n]);return a?M.jsx(_v,{"data-rsbs-portal":!0,children:M.jsx(q$,{...o,lastSnapRef:u,ref:i,initialState:f.current,onSpringStart:d,onSpringEnd:m})}):null}),_o=({size:e,color:t="inherit",thickness:n=3,...r})=>M.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",xmlSpace:"preserve",width:e,height:e,...r,children:M.jsx("path",{fill:t,stroke:t,strokeWidth:n,d:"M73 50c0-12.7-10.3-23-23-23S27 37.3 27 50m3.9 0c0-10.5 8.5-19.1 19.1-19.1S69.1 39.5 69.1 50",children:M.jsx("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",dur:"1s",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})});_o.displayName="Spinner";_o.defaultProps={size:24,thickness:3};const G$=({value:e,delay:t=500})=>{const[n,r]=l.useState(e);return l.useEffect(()=>{const o=setTimeout(()=>r(e),t||500);return()=>{clearTimeout(o)}},[JSON.stringify(e),t]),n},Z$=G$;process.env.NODE_ENV;var Q$=Ke({defaultClassName:"_920fuu5",variantClassNames:{colorScheme:{primary:"_920fuu6",neutral:"_920fuu7",danger:"_920fuu8",warning:"_920fuu9",info:"_920fuua"},variant:{solid:"_920fuub",outline:"_920fuuc",ghost:"_920fuud"},size:{small:"_920fuue",medium:"_920fuuf",large:"_920fuug"},unstyled:{true:"_920fuuh"},isFluid:{true:"_920fuui"}},defaultVariants:{size:"medium",variant:"solid",colorScheme:"primary"},compoundVariants:[[{colorScheme:"primary",variant:"outline"},"_920fuuj"],[{colorScheme:"neutral",variant:"outline"},"_920fuuk"],[{colorScheme:"danger",variant:"outline"},"_920fuul"],[{colorScheme:"warning",variant:"outline"},"_920fuum"],[{colorScheme:"info",variant:"outline"},"_920fuun"],[{size:"small",variant:"outline"},"_920fuuo"],[{size:"large",variant:"outline"},"_920fuup"]]}),J$={primary:"var(--_1qe00b21g)",neutral:"var(--_1qe00b2c)",danger:"var(--_1qe00b214)",warning:"var(--_1qe00b211)",success:"var(--_1qe00b2v)",info:"var(--_1qe00b2y)"},eT={primary:"_920fuu0",neutral:"_920fuu1",danger:"_920fuu2",warning:"_920fuu3",info:"_920fuu4"},jp={primary:"var(--_1qe00b2a)",neutral:"var(--_1qe00b2c)",danger:"var(--_1qe00b214)",warning:"var(--_1qe00b211)",info:"var(--_1qe00b2y)",white:"var(--_1qe00b2d)"};var tT="p9dczu0";const al=({ref:e,colorScheme:t="primary"})=>{const[n,r]=l.useState([]),o=Z$({value:n,delay:1e3});return l.useEffect(()=>{if(e.current){const i=e.current,a=s=>{const c=i.getBoundingClientRect(),u=s.clientX-c.left,f=s.clientY-c.top,d=i.clientHeight,m=i.clientWidth,p=Math.max(m,d);r([...n,{top:f-p/2,left:u-p/2,height:Math.max(m,d),width:Math.max(m,d),backgroundColor:t==="primary"?Pt.theme.colors.primary:J$[t]}])};return i.addEventListener("click",a),()=>{i.removeEventListener("click",a)}}return()=>!1},[e,n]),l.useEffect(()=>{o.length&&r([])},[o.length]),n==null?void 0:n.map((i,a)=>M.jsx("span",{className:tT,style:{...i}},a))},mo=l.forwardRef(({as:e,children:t,className:n,colorScheme:r,size:o,isLoading:i,variant:a,style:s,isDisabled:c,isFluid:u,unstyled:f,noRipple:d,...m},p)=>{const b=l.useRef(null),y=al({ref:b,colorScheme:r,variant:a});l.useImperativeHandle(p,()=>b.current);const $=e||"button";return M.jsx($,{ref:b,as:e,"data-test-id":m["data-test-id"],className:$e(Q$({colorScheme:r,size:o,variant:a,isFluid:u,unstyled:f}),a==="ghost"?eT[r||"primary"]:void 0,n),disabled:c,style:s,...m,children:i?M.jsx(_o,{color:a==="outline"||a==="ghost"?jp[r||"primary"]:jp.white}):M.jsxs(M.Fragment,{children:[t,!d&&y]})})});mo.displayName="Button";mo.defaultProps={as:"button","data-test-id":void 0,isDisabled:void 0,isLoading:void 0,isFluid:void 0,noRipple:!1};const qm="Checkbox",[nT,VP]=bn(qm),[rT,oT]=nT(qm),iT=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:u,...f}=e,[d,m]=l.useState(null),p=lt(t,w=>m(w)),b=l.useRef(!1),y=d?!!d.closest("form"):!0,[$=!1,E]=Tn({prop:o,defaultProp:i,onChange:u}),v=l.useRef($);return l.useEffect(()=>{const w=d==null?void 0:d.form;if(w){const T=()=>E(v.current);return w.addEventListener("reset",T),()=>w.removeEventListener("reset",T)}},[d,E]),l.createElement(rT,{scope:n,state:$,disabled:s},l.createElement(Ue.button,ae({type:"button",role:"checkbox","aria-checked":kr($)?"mixed":$,"aria-required":a,"data-state":Xm($),"data-disabled":s?"":void 0,disabled:s,value:c},f,{ref:p,onKeyDown:Ne(e.onKeyDown,w=>{w.key==="Enter"&&w.preventDefault()}),onClick:Ne(e.onClick,w=>{E(T=>kr(T)?!0:!T),y&&(b.current=w.isPropagationStopped(),b.current||w.stopPropagation())})})),y&&l.createElement(cT,{control:d,bubbles:!b.current,name:r,value:c,checked:$,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),aT="CheckboxIndicator",sT=l.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=oT(aT,n);return l.createElement(yr,{present:r||kr(i.state)||i.state===!0},l.createElement(Ue.span,ae({"data-state":Xm(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),cT=e=>{const{control:t,checked:n,bubbles:r=!0,...o}=e,i=l.useRef(null),a=cs(n),s=as(t);return l.useEffect(()=>{const c=i.current,u=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==n&&d){const m=new Event("click",{bubbles:r});c.indeterminate=kr(n),d.call(c,kr(n)?!1:n),c.dispatchEvent(m)}},[a,n,r]),l.createElement("input",ae({type:"checkbox","aria-hidden":!0,defaultChecked:kr(n)?!1:n},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function kr(e){return e==="indeterminate"}function Xm(e){return kr(e)?"indeterminate":e?"checked":"unchecked"}const uT=iT,lT=sT;var dT="glci2q0",Lp="glci2q3",fT="glci2q4",Fp={disabled:"glci2q1",enabled:"glci2q2"},pT=Ke({defaultClassName:"glci2q5",variantClassNames:{checked:{true:"glci2q6",false:"glci2q7",indeterminate:"glci2q8"},disabled:{true:"glci2q9"}},defaultVariants:{checked:!1,disabled:!1},compoundVariants:[[{checked:!1,disabled:!0},"glci2qa"]]});const Gm=l.forwardRef(({children:e,"data-test-id":t,checked:n=!1,onCheckedChange:r,disabled:o,value:i,...a},s)=>{const c=`vds-checkbox-${l.useId()}`,[u,f]=l.useState(n);return l.useEffect(()=>{f(n)},[n]),M.jsxs("div",{className:dT,children:[M.jsx(uT,{id:c,disabled:o,"data-test-id":t,ref:s,value:u?"on":"off",checked:u,className:pT({checked:u,disabled:o}),onCheckedChange:d=>{typeof d=="boolean"&&(r?r(d):f(d))},...a,children:M.jsxs(lT,{className:fT,children:[u==="indeterminate"&&M.jsx(j0,{color:"white",className:Lp}),u===!0&&M.jsx(w0,{color:"white",className:Lp})]})}),e&&M.jsx("label",{htmlFor:c,className:o?Fp.disabled:Fp.enabled,children:e})]})});Gm.defaultProps={"data-test-id":"base"};const hT=e=>l.useMemo(()=>{const n=e.every(Boolean);return e.some(Boolean)&&!n?"indeterminate":!!n},[e]);var vT=Ke({defaultClassName:"_10le3lp0",variantClassNames:{variant:{filled:"_10le3lp1",outline:"_10le3lp2"},size:{small:"_10le3lp3",medium:"_10le3lp4"},isActive:{true:"_10le3lp5"}},defaultVariants:{variant:"filled",isActive:!1,size:"medium"},compoundVariants:[[{variant:"outline",isActive:!0},"_10le3lp6"],[{variant:"filled",isActive:!0},"_10le3lp7"]]});const sl=l.forwardRef(({as:e,children:t,variant:n,isActive:r,prefixIcon:o,withCloseButton:i,className:a,disabled:s,style:c,onClose:u,size:f,...d},m)=>{const p=e||"button";return M.jsxs(p,{ref:m,as:e,"data-test-id":d["data-test-id"],className:$e(vT({variant:n,isActive:r,size:f}),a),disabled:s,style:c,...d,children:[o&&o,M.jsx(Xt,{textAlign:"left",textStyle:f==="small"?"caption":"body2",children:t}),i&&M.jsx(Wr,{as:"div","data-test-id":"chips-close-button",variant:"small",isDisabled:s,onClick:u})]})});sl.defaultProps={as:"button",children:void 0,isActive:!1,prefixIcon:void 0,withCloseButton:!1,"data-test-id":void 0,onClose:void 0};sl.displayName="Chip";const Zm="Dialog",[Qm,BP]=bn(Zm),[mT,wr]=Qm(Zm),gT=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[u=!1,f]=Tn({prop:r,defaultProp:o,onChange:i});return l.createElement(mT,{scope:t,triggerRef:s,contentRef:c,contentId:Gn(),titleId:Gn(),descriptionId:Gn(),open:u,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(d=>!d),[f]),modal:a},n)},yT="DialogTrigger",bT=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=wr(yT,n),i=lt(t,o.triggerRef);return l.createElement(Ue.button,ae({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":cl(o.open)},r,{ref:i,onClick:Ne(e.onClick,o.onOpenToggle)}))}),wT="DialogPortal",[HP,Jm]=Qm(wT,{forceMount:void 0}),ou="DialogOverlay",ET=l.forwardRef((e,t)=>{const n=Jm(ou,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=wr(ou,e.__scopeDialog);return i.modal?l.createElement(yr,{present:r||i.open},l.createElement(xT,ae({},o,{ref:t}))):null}),xT=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=wr(ou,n);return l.createElement(dv,{as:lo,allowPinchZoom:!0,shards:[o.contentRef]},l.createElement(Ue.div,ae({"data-state":cl(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))}),Ei="DialogContent",_T=l.forwardRef((e,t)=>{const n=Jm(Ei,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=wr(Ei,e.__scopeDialog);return l.createElement(yr,{present:r||i.open},i.modal?l.createElement(ST,ae({},o,{ref:t})):l.createElement(CT,ae({},o,{ref:t})))}),ST=l.forwardRef((e,t)=>{const n=wr(Ei,e.__scopeDialog),r=l.useRef(null),o=lt(t,n.contentRef,r);return l.useEffect(()=>{const i=r.current;if(i)return nv(i)},[]),l.createElement(eg,ae({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ne(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Ne(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:Ne(e.onFocusOutside,i=>i.preventDefault())}))}),CT=l.forwardRef((e,t)=>{const n=wr(Ei,e.__scopeDialog),r=l.useRef(!1),o=l.useRef(!1);return l.createElement(eg,ae({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a;if((a=e.onCloseAutoFocus)===null||a===void 0||a.call(e,i),!i.defaultPrevented){var s;r.current||(s=n.triggerRef.current)===null||s===void 0||s.focus(),i.preventDefault()}r.current=!1,o.current=!1},onInteractOutside:i=>{var a,s;(a=e.onInteractOutside)===null||a===void 0||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;((s=n.triggerRef.current)===null||s===void 0?void 0:s.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}}))}),eg=l.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=wr(Ei,n),c=l.useRef(null),u=lt(t,c);return Nh(),l.createElement(l.Fragment,null,l.createElement(kh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(rs,ae({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":cl(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),$T="DialogClose",TT=l.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=wr($T,n);return l.createElement(Ue.button,ae({type:"button"},r,{ref:t,onClick:Ne(e.onClick,()=>o.onOpenChange(!1))}))});function cl(e){return e?"open":"closed"}const IT=gT,RT=bT,OT=ET,PT=_T,AT=TT;var DT="_1jc0z8o4",NT="_1jc0z8o0",kT=Ke({defaultClassName:"_1jc0z8o7",variantClassNames:{size:{full:"_1jc0z8o8",small:"_1jc0z8o9",medium:"_1jc0z8oa",large:"_1jc0z8ob"},noPadding:{true:"_1jc0z8oc"},colorScheme:{primary:"_1jc0z8od",neutral:"_1jc0z8oe",danger:"_1jc0z8of",warning:"_1jc0z8og",info:"_1jc0z8oh",white:"_1jc0z8oi"}},defaultVariants:{size:"medium",noPadding:!1,colorScheme:"white"},compoundVariants:[]}),MT="_1jc0z8o1",jT=Ke({defaultClassName:"_1jc0z8o2",variantClassNames:{bold:{true:"_1jc0z8o3"}},defaultVariants:{bold:!1},compoundVariants:[]}),LT=Ke({defaultClassName:"_1jc0z8o6",variantClassNames:{},defaultVariants:{},compoundVariants:[]});const tg=l.forwardRef(({children:e,className:t,"data-test-id":n,...r},o)=>M.jsx(PT,{"data-test-id":n,className:t,ref:o,...r,children:e}));tg.defaultProps={"data-test-id":void 0};const FT=l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(OT,{className:t,ref:r,...n,children:e})),VT=({children:e,className:t,...n})=>M.jsx(hs,{className:t,...n,children:e}),BT=({children:e,...t})=>M.jsx(IT,{...t,children:e});l.forwardRef(({children:e,className:t,...n},r)=>M.jsx(RT,{className:t,...n,ref:r,children:e}));const Pi=l.forwardRef(({children:e,"data-test-id":t,isOpen:n,onClose:r,size:o,destroyOnClose:i,noPadding:a,colorScheme:s,closeOnOverlayClick:c,closeIcon:u,classNameBody:f,isCloseWhenEscape:d,...m},p)=>!n&&i?null:M.jsx(BT,{open:n,onOpenChange:r,children:M.jsxs(VT,{children:[M.jsx(FT,{className:$e(LT())}),M.jsxs(tg,{"data-test-id":t,onInteractOutside:b=>!c&&b.preventDefault(),className:$e(kT({colorScheme:s,size:o,noPadding:a}),f),...m,onEscapeKeyDown:b=>d?r==null?void 0:r():b.preventDefault(),ref:p,children:[r&&!u&&M.jsx(AT,{asChild:!0,"aria-label":"Close",children:M.jsx(Wr,{className:DT,"data-test-id":"close-modal"})}),r&&u&&u,e]})]})}));Pi.displayName="Modal";Pi.defaultProps={children:void 0,"data-test-id":void 0,size:"medium",onClose:void 0,destroyOnClose:!1,noPadding:!1,colorScheme:"white",closeOnOverlayClick:!0,closeIcon:void 0,classNameBody:void 0,isCloseWhenEscape:!0,onOpenAutoFocus:void 0,onCloseAutoFocus:void 0};const $s=l.forwardRef(({as:e,children:t,"data-test-id":n,...r},o)=>{const i=e||"div";return M.jsx(i,{"data-test-id":n,as:e,ref:o,className:NT,...r,children:t})});$s.displayName="modalBody";$s.defaultProps={as:"div",children:void 0,"data-test-id":void 0};const Ts=l.forwardRef(({as:e,children:t,"data-test-id":n,...r},o)=>{const i=e||"div";return M.jsx(i,{"data-test-id":n,as:e,className:MT,ref:o,...r,children:t})});Ts.displayName="modalFooter";Ts.defaultProps={as:"div",children:void 0,"data-test-id":void 0};const Is=l.forwardRef(({as:e,bold:t,children:n,"data-test-id":r,...o},i)=>{const a=e||"div";return M.jsx(a,{"data-test-id":r,as:e,ref:i,className:jT({bold:t}),...o,children:M.jsx(Xt,{textStyle:"subtitle1",fontWeight:"$bold",paddingRight:"$16",margin:"$0",children:n})})});Is.displayName="modalHeader";Is.defaultProps={as:"div",bold:!1,children:void 0,"data-test-id":void 0};var HT="ayjm8u0";const ul=({isOpen:e,onConfirm:t,onCancel:n,message:r,title:o,confirmTestId:i,isLoading:a,confirmText:s="Confirm",cancelText:c="Cancel",closeOnOverlayClick:u,size:f,classNameBody:d,actionDirection:m})=>M.jsxs(Pi,{classNameBody:d,size:f,isOpen:e,closeOnOverlayClick:u,onClose:n,closeIcon:M.jsx(rt,{display:"none"}),children:[M.jsx(Is,{children:o}),M.jsx($s,{children:M.jsx(Xt,{mt:"$8",mb:"$24",color:"$blackTypoMedium",textStyle:"body2",className:HT,children:r})}),M.jsx(Ts,{style:{maxHeight:"none"},children:M.jsxs(Bt,{gap:"$16",justifyContent:"space-between",flexWrap:m==="horizontal"?"nowrap":"wrap",children:[M.jsx(mo,{"data-test-id":"CT_Close_Confirm",onClick:n,variant:"outline",isFluid:!0,children:c}),M.jsx(mo,{"data-test-id":i,onClick:t,isLoading:a,isFluid:!0,children:s})]})})]});ul.defaultProps={message:void 0,cancelText:void 0,confirmText:void 0,confirmTestId:void 0,isLoading:void 0,closeOnOverlayClick:!0,size:"small",classNameBody:void 0,actionDirection:"horizontal"};const ll=l.createContext({}),WT=({children:e})=>{const[t,n]=l.useState(!1),[r,o]=l.useState(void 0),i=()=>{n(!1),o(void 0)},a=()=>{i(),r!=null&&r.actionCallback(!0)},s=()=>{i(),r!=null&&r.actionCallback(!1)},c=l.useMemo(()=>({openDialog:({...f})=>{n(!0),o(f)}}),[n,o]);return M.jsxs(ll.Provider,{value:c,children:[M.jsx(ul,{isOpen:t,title:(r==null?void 0:r.title)??"",onConfirm:a,onCancel:s,...r}),e]})},zT=()=>{const{openDialog:e}=l.useContext(ll);return{confirm:async({...n})=>await new Promise(r=>{e({actionCallback:r,...n})})}};var UT=Ke({defaultClassName:"_1nya5n80",variantClassNames:{variant:{medium:"_1nya5n81",thin:"_1nya5n82"}},defaultVariants:{variant:"thin"},compoundVariants:[]});const{sizesAtoms:YT}=Pt.atoms,dl=l.forwardRef(({children:e,as:t,variant:n,className:r,style:o,width:i,...a},s)=>{const c=t||"div",{className:u}=YT({width:i??"$full",...a});return M.jsx(c,{ref:s,"data-test-id":a["data-test-id"],className:$e(UT({variant:n}),u,r),style:o,...a,children:e})});dl.defaultProps={variant:"thin",as:"div",children:void 0,"data-test-id":void 0};dl.displayName="Divider";const fl=({children:e,isDisabled:t,className:n})=>M.jsx("div",{className:$e(OE({isDisabled:t}),n),children:e});fl.displayName="ActionIcon";fl.defaultProps={isDisabled:!1,className:void 0};const Ai=l.forwardRef(({isError:e,isDisabled:t,required:n,isTextarea:r,children:o,className:i},a)=>M.jsxs("label",{ref:a,className:$e(LE({state:Pu({isError:e,isDisabled:t}),isTextarea:r}),i),children:[o,n&&"*"]}));Ai.displayName="Label";Ai.defaultProps={isTextarea:!1,className:""};const pl=l.forwardRef(({value:e,type:t,label:n,onClear:r,onBlur:o,isLoading:i,icon:a,isClearable:s=!0,required:c,containerStyles:u,inputAreaClassName:f,onClickIcon:d,...m},p)=>{const{addonLeft:b,addonRight:y,helperTextLeft:$,helperTextRight:E,isError:v,errorMessage:w,isDisabled:T,isValid:I,elementLeft:D,elementRight:A,className:F,...k}=m,B=!!a,R=l.useRef(null);l.useImperativeHandle(p,()=>R.current);const[x,h]=l.useState(!1),[C,P]=l.useState(!1),j=U=>{if(x){const re=R.current;re&&re.focus(),C&&(h(!1),P(!1))}else o==null||o(U)},H=()=>{d==null||d();const U=R.current;U&&U.focus(),C&&(h(!1),P(!1))};return l.useEffect(()=>{C&&h(!0)},[C]),M.jsxs(wo,{addonLeft:b,addonRight:y,elementLeft:D,elementRight:A,helperTextLeft:$,helperTextRight:E,isError:v,errorMessage:w,isDisabled:T,isValid:I,className:u,inputAreaClassName:$e(kE,f),children:[M.jsx("input",{ref:R,type:t,className:$e(NE,F),value:e,disabled:T,"data-test-id":m["data-test-id"],required:c,onBlur:j,...k}),M.jsx(Ai,{isError:v,isDisabled:T,required:c,children:n}),M.jsx("div",{className:$e(ME),"data-test-id":"icon-input-area",onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onTouchStart:()=>P(!0),onClick:()=>{H()},"aria-hidden":"true",children:M.jsxs(fl,{isDisabled:T,className:$e(s&&!i&&!B&&DE),children:[B&&!i&&a,s&&!i&&!B&&M.jsx(wu,{size:24,"data-test-id":`clear-input-${m["data-test-id"]}`,onClick:r}),i&&M.jsx(_o,{color:Pt.theme.colors.green1})]})})]})});pl.displayName="Input";pl.defaultProps={type:"text",isLoading:!1,icon:void 0,onClear:void 0,isClearable:!0,containerStyles:void 0,"data-test-id":void 0,inputAreaClassName:void 0,onClickIcon:void 0};const hl=l.forwardRef(({value:e,label:t,rows:n=4,required:r,containerStyles:o,...i},a)=>{const{helperTextLeft:s,helperTextRight:c,isError:u,errorMessage:f,isDisabled:d,isValid:m,...p}=i,b=l.useRef(null);l.useImperativeHandle(a,()=>b.current);const y=()=>{var $;($=b.current)==null||$.focus()};return M.jsxs(wo,{"data-test-id":"CT_Field_Container",helperTextLeft:s,helperTextRight:c,isError:u,errorMessage:f,isDisabled:d,isValid:m,className:$e(o),onClick:y,children:[M.jsx("textarea",{ref:b,className:$e(FE),value:e,rows:n,disabled:d,"data-test-id":i["data-test-id"],required:r,...p}),M.jsx(Ai,{isTextarea:!0,isError:u,isDisabled:d,required:r,children:t})]})});hl.displayName="Textarea";hl.defaultProps={containerStyles:void 0,"data-test-id":void 0};var KT=Ke({defaultClassName:"_1n7m27n0",variantClassNames:{colorScheme:{primary:"_1n7m27n1",neutral:"_1n7m27n2",danger:"_1n7m27n3",warning:"_1n7m27n4",info:"_1n7m27n5"},variant:{solid:"_1n7m27n6",outline:"_1n7m27n7"},unstyled:{true:"_1n7m27n8"}},defaultVariants:{variant:"solid",colorScheme:"primary"},compoundVariants:[[{colorScheme:"primary",variant:"outline"},"_1n7m27n9"],[{colorScheme:"neutral",variant:"outline"},"_1n7m27na"],[{colorScheme:"danger",variant:"outline"},"_1n7m27nb"],[{colorScheme:"warning",variant:"outline"},"_1n7m27nc"],[{colorScheme:"info",variant:"outline"},"_1n7m27nd"]]}),Vp={primary:"var(--_1qe00b2a)",neutral:"var(--_1qe00b2c)",danger:"var(--_1qe00b214)",warning:"var(--_1qe00b211)",info:"var(--_1qe00b2y)",white:"var(--_1qe00b2d)"};const vl=l.forwardRef(({as:e,className:t,style:n,colorScheme:r,icon:o,unstyled:i,variant:a,isDisabled:s,isLoading:c,...u},f)=>{const d=l.useRef(null),m=al({ref:d,colorScheme:r,variant:a});l.useImperativeHandle(f,()=>d.current);const p=e||"button";return M.jsx(p,{ref:d,as:e,"data-test-id":u["data-test-id"],className:$e(KT({colorScheme:r,unstyled:i,variant:a}),t),disabled:s,style:n,...u,children:c?M.jsx(_o,{color:a==="outline"?Vp[r||"primary"]:Vp.white}):M.jsxs(M.Fragment,{children:[m,o]})})});vl.displayName="Button";vl.defaultProps={as:"button","data-test-id":void 0,isDisabled:void 0,isLoading:void 0};var qT=Ke({defaultClassName:"",variantClassNames:{fit:{fill:"_19yf4wk0",contain:"_19yf4wk1",cover:"_19yf4wk2","scale-down":"_19yf4wk3",none:"_19yf4wk4"}},defaultVariants:{fit:"fill"},compoundVariants:[]});const XT=({width:e=140,height:t=140,viewBox:n="0 0 140 140",...r})=>M.jsx("svg",{"data-test-id":"illustration-fallback-image",width:e,height:t,viewBox:n,fill:"none",...r,children:M.jsx("path",{d:"M85.604 0H0V140H130V43.7197L85.604 0ZM119.088 129.24H10.9305V93.2855L23.0998 101.606L48.3128 71.9816L70.6656 103.991L83.7094 86.5608L106.062 92.0123L87.2618 70.7801L71.7769 89.1789L50.5353 52.3812L22.8812 79.3877L10.9305 68.1798V10.7596H80.9767V48.0594H118.96L119.07 48.167V129.24H119.088Z",fill:"#EEEEEE"})}),ml=l.forwardRef(({as:e,src:t,fit:n,width:r,height:o,loading:i,isLoading:a,fallback:s,onLoad:c,onError:u,className:f,"data-test-id":d,...m},p)=>{const b=e||"img",y=l.useMemo(()=>`${parseInt(`${r??0}`,10)}px`,[r]),$=l.useMemo(()=>`${parseInt(`${o??0}`,10)}px`,[o]),[E,v]=l.useState(!1),[w,T]=l.useState(n),I=A=>{T("fill"),v(!0),u==null||u(A)},D=A=>{v(!1),c==null||c(A)};return a&&!E?M.jsx(rt,{bgColor:"$grey2",width:y,height:$}):E?s||M.jsx(XT,{width:y,height:$}):M.jsx(b,{"data-test-id":d,as:"img",width:y,height:$,src:t,loading:i,onLoad:D,onError:I,ref:p,className:$e(qT({fit:w})),...m})});ml.displayName="Image";ml.defaultProps={as:"img","data-test-id":void 0,fallback:void 0,width:void 0,height:void 0,loading:void 0,isLoading:void 0,onLoad:void 0,onError:void 0,fit:void 0};var ng=Ke({defaultClassName:"_5y0pl50",variantClassNames:{textStyle:{heading1:"_5y0pl51",heading2:"_5y0pl52",heading3:"_5y0pl53",heading4:"_5y0pl54",heading5:"_5y0pl55",heading6:"_5y0pl56",subtitle1:"_5y0pl57",subtitle2:"_5y0pl58",body1:"_5y0pl59",body2:"_5y0pl5a",caption:"_5y0pl5b",footer:"_5y0pl5c"},isDisabled:{true:"_5y0pl5d"},isStandalone:{true:"_5y0pl5e",false:"_5y0pl5f"},isBold:{true:"_5y0pl5g"}},defaultVariants:{isStandalone:!1,isDisabled:!1,isBold:!1,textStyle:"body1"},compoundVariants:[]});const rg=({children:e,className:t,isStandalone:n,textStyle:r="body2",isDisabled:o,isBold:i,...a})=>M.jsx("a",{className:$e(t,ng({isDisabled:o,textStyle:r,isBold:i,isStandalone:n})),"data-disabled":o,...a,children:e});var GT="_1cq2k9i0";const gl=l.forwardRef(({children:e,as:t,className:n,variant:r,...o},i)=>{const a=t||"ul";return M.jsx(a,{"data-test-id":o["data-test-id"],ref:i,className:$e(GT,n),...o,children:l.Children.map(e,s=>l.cloneElement(s,{variant:r}))})});gl.displayName="List";gl.defaultProps={"data-test-id":void 0,as:"ul",variant:"default"};var ZT="xw6nfa0",QT="xw6nfa1",JT=Ke({defaultClassName:"xw6nfa2",variantClassNames:{variant:{small:"xw6nfa3",default:"xw6nfa4"}},defaultVariants:{variant:"default"},compoundVariants:[]});const yl=l.forwardRef(({children:e,leftIcon:t,rightIcon:n,href:r,target:o,as:i,className:a,variant:s,...c},u)=>{const f=i||"li",d=r?"a":rt;return M.jsx(f,{"data-test-id":c["data-test-id"],className:$e(ZT,a),...c,ref:u,children:M.jsxs(d,{href:r,target:o,className:JT({variant:s}),children:[t,M.jsx("div",{className:QT,children:e}),n]})})});yl.displayName="ListItem";yl.defaultProps={"data-test-id":void 0,leftIcon:void 0,rightIcon:void 0,href:void 0,target:"_self",as:"li",variant:void 0};var og={},ig={exports:{}};(function(e,t){(function(r,o){e.exports=o()})(Wy,()=>(()=>{var n=[,(a,s,c)=>{c.r(s),c.d(s,{default:()=>f});var u=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(m={}){var p=m,b,y;p.ready=new Promise((S,g)=>{b=S,y=g});function $(){function S(ue){const se=N;O=g=0,N=new Map,se.forEach(de=>{try{de(ue)}catch(le){console.error(le)}}),this.Qa(),q&&q.nb()}let g=0,O=0,N=new Map,q=null,te=null;this.requestAnimationFrame=function(ue){g||(g=requestAnimationFrame(S.bind(this)));const se=++O;return N.set(se,ue),se},this.cancelAnimationFrame=function(ue){N.delete(ue),g&&N.size==0&&(cancelAnimationFrame(g),g=0)},this.lb=function(ue){te&&(document.body.remove(te),te=null),ue||(te=document.createElement("div"),te.style.backgroundColor="black",te.style.position="fixed",te.style.right=0,te.style.top=0,te.style.color="white",te.style.padding="4px",te.innerHTML="RIVE FPS",ue=function(se){te.innerHTML="RIVE FPS "+se.toFixed(1)},document.body.appendChild(te)),q=new function(){let se=0,de=0;this.nb=function(){var le=performance.now();de?(++se,le-=de,1e3<le&&(ue(1e3*se/le),se=de=0)):(de=le,se=0)}}},this.ib=function(){te&&(document.body.remove(te),te=null),q=null},this.Qa=function(){}}function E(S){console.assert(!0);const g=new Map;let O=-1/0;this.push=function(N){return N=N+((1<<S)-1)>>S,g.has(N)&&clearTimeout(g.get(N)),g.set(N,setTimeout(function(){g.delete(N),g.length==0?O=-1/0:N==O&&(O=Math.max(...g.keys()),console.assert(O<N))},1e3)),O=Math.max(N,O),O<<S}}const v=new function(){function S(){if(!g){let xt=function(Nt,Ve,Ye){if(Ve=ye.createShader(Ve),ye.shaderSource(Ve,Ye),ye.compileShader(Ve),Ye=ye.getShaderInfoLog(Ve),0<Ye.length)throw Ye;ye.attachShader(Nt,Ve)};var Re=document.createElement("canvas"),je={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,preferLowPowerToHighPerformance:0,failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};let ye=Re.getContext("webgl2",je);if(ye)O=2;else if(ye=Re.getContext("webgl",je))O=1;else return console.log("No WebGL support. Image mesh will not be drawn."),!1;if(N=Math.min(ye.getParameter(ye.MAX_RENDERBUFFER_SIZE),ye.getParameter(ye.MAX_TEXTURE_SIZE)),Re=ye.createProgram(),xt(Re,ye.VERTEX_SHADER,`attribute vec2 vertex;
|
|
147
147
|
attribute vec2 uv;
|
|
148
148
|
uniform vec4 mat;
|
|
149
149
|
uniform vec2 translate;
|
package/dist/index.mjs
CHANGED
|
@@ -2284,7 +2284,7 @@ const xb = (e) => {
|
|
|
2284
2284
|
fill: t
|
|
2285
2285
|
}
|
|
2286
2286
|
) });
|
|
2287
|
-
},
|
|
2287
|
+
}, Nb = Db, Mb = (e) => {
|
|
2288
2288
|
const { color: t, ...n } = fn(e);
|
|
2289
2289
|
return /* @__PURE__ */ ut.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n, children: [
|
|
2290
2290
|
/* @__PURE__ */ ut.jsx(
|
|
@@ -2302,7 +2302,7 @@ const xb = (e) => {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
)
|
|
2304
2304
|
] });
|
|
2305
|
-
},
|
|
2305
|
+
}, Pu = Mb, kb = (e) => {
|
|
2306
2306
|
const { color: t, ...n } = fn(e);
|
|
2307
2307
|
return /* @__PURE__ */ ut.jsxs("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", ...n, children: [
|
|
2308
2308
|
/* @__PURE__ */ ut.jsx(
|
|
@@ -2421,7 +2421,7 @@ const Zb = 16, Qb = fe(
|
|
|
2421
2421
|
}
|
|
2422
2422
|
),
|
|
2423
2423
|
r && /* @__PURE__ */ M.jsx(Xt, { children: /* @__PURE__ */ M.jsx(
|
|
2424
|
-
|
|
2424
|
+
Nb,
|
|
2425
2425
|
{
|
|
2426
2426
|
"data-test-id": "CT_Component-Alert-Close",
|
|
2427
2427
|
onClick: a,
|
|
@@ -16180,7 +16180,7 @@ const ng = fe(
|
|
|
16180
16180
|
className: Re(s && !i && !V && jx),
|
|
16181
16181
|
children: [
|
|
16182
16182
|
V && !i && a,
|
|
16183
|
-
s && !i && !V && /* @__PURE__ */ M.jsx(
|
|
16183
|
+
s && !i && !V && /* @__PURE__ */ M.jsx(Pu, { size: 24, "data-test-id": `clear-input-${v["data-test-id"]}`, onClick: r }),
|
|
16184
16184
|
i && /* @__PURE__ */ M.jsx(Yi, { color: gn.colors.green1 })
|
|
16185
16185
|
]
|
|
16186
16186
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctlyst.id/voila-ui",
|
|
3
|
-
"version": "1.62.
|
|
3
|
+
"version": "1.62.2",
|
|
4
4
|
"description": "UI library for voila user facing library.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"jest-environment-jsdom": "29.4.1",
|
|
95
95
|
"polished": "^4.2.2"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "270042c4a2a51f5804d28aecc4ea698fd0e395db"
|
|
98
98
|
}
|