@scbt-ecom/ui 0.0.13 → 0.0.15
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/ui.es.js +1 -1
- package/dist/ui.umd.js +1 -1
- package/package.json +1 -1
package/dist/ui.es.js
CHANGED
|
@@ -25649,7 +25649,7 @@ const oP = {
|
|
|
25649
25649
|
"aria-hidden": !0,
|
|
25650
25650
|
"data-axis": v,
|
|
25651
25651
|
...i,
|
|
25652
|
-
children: /* @__PURE__ */ U.jsx("use", { href:
|
|
25652
|
+
children: /* @__PURE__ */ U.jsx("use", { href: `/sprites/${c}#${d}` })
|
|
25653
25653
|
}
|
|
25654
25654
|
);
|
|
25655
25655
|
}, G1 = A.forwardRef(
|
package/dist/ui.umd.js
CHANGED
|
@@ -238,7 +238,7 @@ Check the render method of %s.`,Ut(er)||"Unknown"));var O=Hs(m,E);O.payload={ele
|
|
|
238
238
|
|
|
239
239
|
let root = createRoot(domContainer);
|
|
240
240
|
root.render(<App />);`),t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(p=t.identifierPrefix),t.onRecoverableError!==void 0&&(m=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var E=eN(e,jb,null,l,u,p,m);Ob(E.current,e);var w=e.nodeType===br?e.parentNode:e;return rm(w),new oA(E)}function U0(e){this._internalRoot=e}function m3(e){e&&sC(e)}U0.prototype.unstable_scheduleHydration=m3;function g3(e,t,l){if(!Y0(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");CN(e),t===void 0&&v("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=l??null,p=l!=null&&l.hydratedSources||null,m=!1,E=!1,w="",O=xN;l!=null&&(l.unstable_strictMode===!0&&(m=!0),l.identifierPrefix!==void 0&&(w=l.identifierPrefix),l.onRecoverableError!==void 0&&(O=l.onRecoverableError));var I=tN(t,null,e,jb,u,m,E,w,O);if(Ob(I.current,e),rm(e),p)for(var z=0;z<p.length;z++){var _=p[z];xG(I,_)}return new U0(I)}function Y0(e){return!!(e&&(e.nodeType===Oa||e.nodeType===Zi||e.nodeType===ps||!fe))}function _m(e){return!!(e&&(e.nodeType===Oa||e.nodeType===Zi||e.nodeType===ps||e.nodeType===br&&e.nodeValue===" react-mount-point-unstable "))}function CN(e){e.nodeType===Oa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),vm(e)&&(e._reactRootContainer?v("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):v("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var y3=i.ReactCurrentOwner,wN;wN=function(e){if(e._reactRootContainer&&e.nodeType!==br){var t=rN(e._reactRootContainer.current);t&&t.parentNode!==e&&v("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var l=!!e._reactRootContainer,u=lA(e),p=!!(u&&oc(u));p&&!l&&v("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===Oa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function lA(e){return e?e.nodeType===Zi?e.documentElement:e.firstChild:null}function SN(){}function b3(e,t,l,u,p){if(p){if(typeof u=="function"){var m=u;u=function(){var q=P0(E);m.call(q)}}var E=tN(t,u,e,sc,null,!1,!1,"",SN);e._reactRootContainer=E,Ob(E.current,e);var w=e.nodeType===br?e.parentNode:e;return rm(w),Js(),E}else{for(var O;O=e.lastChild;)e.removeChild(O);if(typeof u=="function"){var I=u;u=function(){var q=P0(z);I.call(q)}}var z=eN(e,sc,null,!1,!1,"",SN);e._reactRootContainer=z,Ob(z.current,e);var _=e.nodeType===br?e.parentNode:e;return rm(_),Js(function(){Xm(t,z,l,u)}),z}}function E3(e,t){e!==null&&typeof e!="function"&&v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function H0(e,t,l,u,p){wN(l),E3(p===void 0?null:p,"render");var m=l._reactRootContainer,E;if(!m)E=b3(l,t,e,p,u);else{if(E=m,typeof p=="function"){var w=p;p=function(){var O=P0(E);w.call(O)}}Xm(t,E,e,p)}return P0(E)}var AN=!1;function x3(e){{AN||(AN=!0,v("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=y3.current;if(t!==null&&t.stateNode!==null){var l=t.stateNode._warnedAboutRefsInRender;l||v("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",sn(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===Oa?e:i3(e,"findDOMNode")}function C3(e,t,l){if(v("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!_m(t))throw new Error("Target container is not a DOM element.");{var u=vm(t)&&t._reactRootContainer===void 0;u&&v("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return H0(null,e,t,!0,l)}function w3(e,t,l){if(v("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!_m(t))throw new Error("Target container is not a DOM element.");{var u=vm(t)&&t._reactRootContainer===void 0;u&&v("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return H0(null,e,t,!1,l)}function S3(e,t,l,u){if(v("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!_m(l))throw new Error("Target container is not a DOM element.");if(e==null||!$c(e))throw new Error("parentComponent must be a valid React Component");return H0(e,t,l,!1,u)}var TN=!1;function A3(e){if(TN||(TN=!0,v("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!_m(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=vm(e)&&e._reactRootContainer===void 0;t&&v("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var l=lA(e),u=l&&!oc(l);u&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Js(function(){H0(null,null,e,!1,function(){e._reactRootContainer=null,xM(e)})}),!0}else{{var p=lA(e),m=!!(p&&oc(p)),E=e.nodeType===Oa&&_m(e.parentNode)&&!!e.parentNode._reactRootContainer;m&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",E?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}Ju(o3),oC(l3),up(s3),qy(Ai),Xy(aa),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&v("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Ty(R4),Td(LS,g7,Js);function T3(e,t){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Y0(t))throw new Error("Target container is not a DOM element.");return a3(e,t,null,l)}function R3(e,t,l,u){return S3(e,t,l,u)}var sA={usingClientEntryPoint:!1,Events:[oc,Np,Db,Ad,qc,LS]};function O3(e,t){return sA.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),h3(e,t)}function D3(e,t,l){return sA.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),g3(e,t,l)}function M3(e){return Bk()&&v("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Js(e)}var k3=v3({findFiberByHostInstance:Rf,bundleType:1,version:tA,rendererPackageName:"react-dom"});if(!k3&&qe&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var RN=window.location.protocol;/^(https?|file):$/.test(RN)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(RN==="file:"?`
|
|
241
|
-
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sA,ci.createPortal=T3,ci.createRoot=O3,ci.findDOMNode=x3,ci.flushSync=M3,ci.hydrate=C3,ci.hydrateRoot=D3,ci.render=w3,ci.unmountComponentAtNode=A3,ci.unstable_batchedUpdates=LS,ci.unstable_renderSubtreeIntoContainer=R3,ci.version=tA,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ci}function pT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pT)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(pT(),oE.exports=lI()):oE.exports=sI();var oa=oE.exports;const uI=cA(oa);var cI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ur=cI.reduce((n,a)=>{const i=A.forwardRef((s,c)=>{const{asChild:d,...v}=s,g=d?hv:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),U.jsx(g,{...v,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function fI(n,a){n&&oa.flushSync(()=>n.dispatchEvent(a))}var $s=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{};function dI(n,a){return A.useReducer((i,s)=>a[i][s]??i,n)}var Cc=n=>{const{present:a,children:i}=n,s=pI(a),c=typeof i=="function"?i({present:s.isPresent}):A.Children.only(i),d=_r(s.ref,vI(c));return typeof i=="function"||s.isPresent?A.cloneElement(c,{ref:d}):null};Cc.displayName="Presence";function pI(n){const[a,i]=A.useState(),s=A.useRef({}),c=A.useRef(n),d=A.useRef("none"),v=n?"mounted":"unmounted",[g,b]=dI(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const x=dg(s.current);d.current=g==="mounted"?x:"none"},[g]),$s(()=>{const x=s.current,S=c.current;if(S!==n){const M=d.current,R=dg(x);n?b("MOUNT"):R==="none"||(x==null?void 0:x.display)==="none"?b("UNMOUNT"):b(S&&M!==R?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,b]),$s(()=>{if(a){const x=T=>{const R=dg(s.current).includes(T.animationName);T.target===a&&R&&oa.flushSync(()=>b("ANIMATION_END"))},S=T=>{T.target===a&&(d.current=dg(s.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",x),a.removeEventListener("animationend",x)}}else b("ANIMATION_END")},[a,b]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:A.useCallback(x=>{x&&(s.current=getComputedStyle(x)),i(x)},[])}}function dg(n){return(n==null?void 0:n.animationName)||"none"}function vI(n){var s,c;let a=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var hI=eg.useId||(()=>{}),mI=0;function mv(n){const[a,i]=A.useState(hI());return $s(()=>{i(s=>s??String(mI++))},[n]),a?`radix-${a}`:""}var uE="Collapsible",[gI,vT]=al(uE),[yI,cE]=gI(uE),hT=A.forwardRef((n,a)=>{const{__scopeCollapsible:i,open:s,defaultOpen:c,disabled:d,onOpenChange:v,...g}=n,[b=!1,x]=_s({prop:s,defaultProp:c,onChange:v});return U.jsx(yI,{scope:i,disabled:d,contentId:mv(),open:b,onOpenToggle:A.useCallback(()=>x(S=>!S),[x]),children:U.jsx(ur.div,{"data-state":dE(b),"data-disabled":d?"":void 0,...g,ref:a})})});hT.displayName=uE;var mT="CollapsibleTrigger",gT=A.forwardRef((n,a)=>{const{__scopeCollapsible:i,...s}=n,c=cE(mT,i);return U.jsx(ur.button,{type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":dE(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled,...s,ref:a,onClick:Yn(n.onClick,c.onOpenToggle)})});gT.displayName=mT;var fE="CollapsibleContent",yT=A.forwardRef((n,a)=>{const{forceMount:i,...s}=n,c=cE(fE,n.__scopeCollapsible);return U.jsx(Cc,{present:i||c.open,children:({present:d})=>U.jsx(bI,{...s,ref:a,present:d})})});yT.displayName=fE;var bI=A.forwardRef((n,a)=>{const{__scopeCollapsible:i,present:s,children:c,...d}=n,v=cE(fE,i),[g,b]=A.useState(s),x=A.useRef(null),S=_r(a,x),T=A.useRef(0),M=T.current,R=A.useRef(0),N=R.current,B=v.open||g,j=A.useRef(B),P=A.useRef();return A.useEffect(()=>{const L=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(L)},[]),$s(()=>{const L=x.current;if(L){P.current=P.current||{transitionDuration:L.style.transitionDuration,animationName:L.style.animationName},L.style.transitionDuration="0s",L.style.animationName="none";const H=L.getBoundingClientRect();T.current=H.height,R.current=H.width,j.current||(L.style.transitionDuration=P.current.transitionDuration,L.style.animationName=P.current.animationName),b(s)}},[v.open,s]),U.jsx(ur.div,{"data-state":dE(v.open),"data-disabled":v.disabled?"":void 0,id:v.contentId,hidden:!B,...d,ref:S,style:{"--radix-collapsible-content-height":M?`${M}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...n.style},children:B&&c})});function dE(n){return n?"open":"closed"}var EI=hT,xI=gT,CI=yT,wI=A.createContext(void 0);function pE(n){const a=A.useContext(wI);return n||a||"ltr"}var ns="Accordion",SI=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[vE,AI,TI]=oT(ns),[pg,j3]=al(ns,[TI,vT]),hE=vT(),bT=Ge.forwardRef((n,a)=>{const{type:i,...s}=n,c=s,d=s;return U.jsx(vE.Provider,{scope:n.__scopeAccordion,children:i==="multiple"?U.jsx(MI,{...d,ref:a}):U.jsx(DI,{...c,ref:a})})});bT.displayName=ns;var[ET,RI]=pg(ns),[xT,OI]=pg(ns,{collapsible:!1}),DI=Ge.forwardRef((n,a)=>{const{value:i,defaultValue:s,onValueChange:c=()=>{},collapsible:d=!1,...v}=n,[g,b]=_s({prop:i,defaultProp:s,onChange:c});return U.jsx(ET,{scope:n.__scopeAccordion,value:g?[g]:[],onItemOpen:b,onItemClose:Ge.useCallback(()=>d&&b(""),[d,b]),children:U.jsx(xT,{scope:n.__scopeAccordion,collapsible:d,children:U.jsx(CT,{...v,ref:a})})})}),MI=Ge.forwardRef((n,a)=>{const{value:i,defaultValue:s,onValueChange:c=()=>{},...d}=n,[v=[],g]=_s({prop:i,defaultProp:s,onChange:c}),b=Ge.useCallback(S=>g((T=[])=>[...T,S]),[g]),x=Ge.useCallback(S=>g((T=[])=>T.filter(M=>M!==S)),[g]);return U.jsx(ET,{scope:n.__scopeAccordion,value:v,onItemOpen:b,onItemClose:x,children:U.jsx(xT,{scope:n.__scopeAccordion,collapsible:!0,children:U.jsx(CT,{...d,ref:a})})})}),[kI,vg]=pg(ns),CT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,disabled:s,dir:c,orientation:d="vertical",...v}=n,g=Ge.useRef(null),b=_r(g,a),x=AI(i),T=pE(c)==="ltr",M=Yn(n.onKeyDown,R=>{var Ee;if(!SI.includes(R.key))return;const N=R.target,B=x().filter(Qe=>{var Ie;return!((Ie=Qe.ref.current)!=null&&Ie.disabled)}),j=B.findIndex(Qe=>Qe.ref.current===N),P=B.length;if(j===-1)return;R.preventDefault();let L=j;const H=0,Q=P-1,K=()=>{L=j+1,L>Q&&(L=H)},ce=()=>{L=j-1,L<H&&(L=Q)};switch(R.key){case"Home":L=H;break;case"End":L=Q;break;case"ArrowRight":d==="horizontal"&&(T?K():ce());break;case"ArrowDown":d==="vertical"&&K();break;case"ArrowLeft":d==="horizontal"&&(T?ce():K());break;case"ArrowUp":d==="vertical"&&ce();break}const ae=L%P;(Ee=B[ae].ref.current)==null||Ee.focus()});return U.jsx(kI,{scope:i,disabled:s,direction:c,orientation:d,children:U.jsx(vE.Slot,{scope:i,children:U.jsx(ur.div,{...v,"data-orientation":d,ref:b,onKeyDown:s?void 0:M})})})}),hg="AccordionItem",[NI,mE]=pg(hg),wT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,value:s,...c}=n,d=vg(hg,i),v=RI(hg,i),g=hE(i),b=mv(),x=s&&v.value.includes(s)||!1,S=d.disabled||n.disabled;return U.jsx(NI,{scope:i,open:x,disabled:S,triggerId:b,children:U.jsx(EI,{"data-orientation":d.orientation,"data-state":DT(x),...g,...c,ref:a,disabled:S,open:x,onOpenChange:T=>{T?v.onItemOpen(s):v.onItemClose(s)}})})});wT.displayName=hg;var ST="AccordionHeader",AT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,...s}=n,c=vg(ns,i),d=mE(ST,i);return U.jsx(ur.h3,{"data-orientation":c.orientation,"data-state":DT(d.open),"data-disabled":d.disabled?"":void 0,...s,ref:a})});AT.displayName=ST;var gE="AccordionTrigger",TT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,...s}=n,c=vg(ns,i),d=mE(gE,i),v=OI(gE,i),g=hE(i);return U.jsx(vE.ItemSlot,{scope:i,children:U.jsx(xI,{"aria-disabled":d.open&&!v.collapsible||void 0,"data-orientation":c.orientation,id:d.triggerId,...g,...s,ref:a})})});TT.displayName=gE;var RT="AccordionContent",OT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,...s}=n,c=vg(ns,i),d=mE(RT,i),v=hE(i);return U.jsx(CI,{role:"region","aria-labelledby":d.triggerId,"data-orientation":c.orientation,...v,...s,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});OT.displayName=RT;function DT(n){return n?"open":"closed"}var BI=bT,II=wT,jI=AT,zI=TT,FI=OT;const LI={brandLogos:{filePath:"brandLogos.aa92281d.svg",items:{logoBlack:{viewBox:"0 0 194 32",width:194,height:32},logoBusiness:{viewBox:"0 0 192 32",width:192,height:32},logoGray:{viewBox:"0 0 194 32",width:194,height:32},logoInsurance:{viewBox:"0 0 193 32",width:193,height:32},logoMain:{viewBox:"0 0 192 32",width:192,height:32},logoWhite:{viewBox:"0 0 194 32",width:194,height:32}}},common:{filePath:"common.5922c9ad.svg",items:{arrowCircle:{viewBox:"0 0 32 32",width:32,height:32},arrowLink:{viewBox:"0 0 24 24",width:24,height:24},arrowRight:{viewBox:"0 0 16 17",width:16,height:17},check:{viewBox:"0 0 24 24",width:800,height:800},close:{viewBox:"0 0 24 24",width:24,height:24},warningCircle:{viewBox:"0 0 20 20",width:20,height:20}}}},PI=n=>{const[a,i]=n.split("/"),{filePath:s,items:{[i]:{viewBox:c,width:d,height:v}}}=LI[a],g=d===v?"xy":d>v?"x":"y";return{filePath:s,iconName:i,viewBox:c,axis:g}},ji=({name:n,className:a,...i})=>{const{viewBox:s,filePath:c,iconName:d,axis:v}=PI(n);return U.jsx("svg",{className:dt("select-none fill-current inline-block text-inherit size-6",a),focusable:"false",viewBox:s,"aria-hidden":!0,"data-axis":v,...i,children:U.jsx("use",{href:`./sprites/${c}#${d}`})})},MT=A.forwardRef(({children:n,classes:a,...i},s)=>U.jsx(jI,{className:dt("rounded-sm bg-color-primary-light-default",a==null?void 0:a.header),children:U.jsxs(zI,{ref:s,className:dt("outline-0 bg-color-transparent flex items-center justify-between gap-5 w-full cursor-pointer py-5 px-6 border border-transparent border-solid rounded-sm focus:border-primary-default group",a==null?void 0:a.trigger),...i,children:[U.jsx("div",{className:dt("desk-body-medium-l text-color-dark",a==null?void 0:a.inner),children:n}),U.jsx(ji,{name:"common/arrowCircle",className:dt("group-data-[state=open]:rotate-180 transition-all text-icon-blue-grey-800 size-8",a==null?void 0:a.icon)})]})}));MT.displayName="AccordionHeader";const UI=({accordionItems:n,classes:a,defaultValue:i})=>U.jsx(BI,{className:dt("flex gap-5 flex-col",a==null?void 0:a.accordion),type:"multiple",defaultValue:i,children:n==null?void 0:n.map(({label:s,content:c},d)=>U.jsxs(II,{className:dt("w-full disabled:text-color-dark",a==null?void 0:a.item),value:d.toString(),children:[U.jsx(MT,{classes:a,children:s}),U.jsx(FI,{className:dt("desk-body-regular-l text-color-dark overflow-hidden transition-all p-6 data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown bg-color-transparent",a==null?void 0:a.content),children:c})]},s))});function YI(n,a=globalThis==null?void 0:globalThis.document){const i=ts(n);A.useEffect(()=>{const s=c=>{c.key==="Escape"&&i(c)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[i,a])}var HI="DismissableLayer",yE="dismissableLayer.update",GI="dismissableLayer.pointerDownOutside",ZI="dismissableLayer.focusOutside",kT,NT=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bE=A.forwardRef((n,a)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:v,onDismiss:g,...b}=n,x=A.useContext(NT),[S,T]=A.useState(null),M=(S==null?void 0:S.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=A.useState({}),N=_r(a,ae=>T(ae)),B=Array.from(x.layers),[j]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),P=B.indexOf(j),L=S?B.indexOf(S):-1,H=x.layersWithOutsidePointerEventsDisabled.size>0,Q=L>=P,K=WI(ae=>{const Ee=ae.target,Qe=[...x.branches].some(Ie=>Ie.contains(Ee));!Q||Qe||(c==null||c(ae),v==null||v(ae),ae.defaultPrevented||g==null||g())},M),ce=QI(ae=>{const Ee=ae.target;[...x.branches].some(Ie=>Ie.contains(Ee))||(d==null||d(ae),v==null||v(ae),ae.defaultPrevented||g==null||g())},M);return YI(ae=>{L===x.layers.size-1&&(s==null||s(ae),!ae.defaultPrevented&&g&&(ae.preventDefault(),g()))},M),A.useEffect(()=>{if(S)return i&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(kT=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(S)),x.layers.add(S),BT(),()=>{i&&x.layersWithOutsidePointerEventsDisabled.size===1&&(M.body.style.pointerEvents=kT)}},[S,M,i,x]),A.useEffect(()=>()=>{S&&(x.layers.delete(S),x.layersWithOutsidePointerEventsDisabled.delete(S),BT())},[S,x]),A.useEffect(()=>{const ae=()=>R({});return document.addEventListener(yE,ae),()=>document.removeEventListener(yE,ae)},[]),U.jsx(ur.div,{...b,ref:N,style:{pointerEvents:H?Q?"auto":"none":void 0,...n.style},onFocusCapture:Yn(n.onFocusCapture,ce.onFocusCapture),onBlurCapture:Yn(n.onBlurCapture,ce.onBlurCapture),onPointerDownCapture:Yn(n.onPointerDownCapture,K.onPointerDownCapture)})});bE.displayName=HI;var VI="DismissableLayerBranch",JI=A.forwardRef((n,a)=>{const i=A.useContext(NT),s=A.useRef(null),c=_r(a,s);return A.useEffect(()=>{const d=s.current;if(d)return i.branches.add(d),()=>{i.branches.delete(d)}},[i.branches]),U.jsx(ur.div,{...n,ref:c})});JI.displayName=VI;function WI(n,a=globalThis==null?void 0:globalThis.document){const i=ts(n),s=A.useRef(!1),c=A.useRef(()=>{});return A.useEffect(()=>{const d=g=>{if(g.target&&!s.current){let b=function(){IT(GI,i,x,{discrete:!0})};const x={originalEvent:g};g.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=b,a.addEventListener("click",c.current,{once:!0})):b()}else a.removeEventListener("click",c.current);s.current=!1},v=window.setTimeout(()=>{a.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(v),a.removeEventListener("pointerdown",d),a.removeEventListener("click",c.current)}},[a,i]),{onPointerDownCapture:()=>s.current=!0}}function QI(n,a=globalThis==null?void 0:globalThis.document){const i=ts(n),s=A.useRef(!1);return A.useEffect(()=>{const c=d=>{d.target&&!s.current&&IT(ZI,i,{originalEvent:d},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function BT(){const n=new CustomEvent(yE);document.dispatchEvent(n)}function IT(n,a,i,{discrete:s}){const c=i.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});a&&c.addEventListener(n,a,{once:!0}),s?fI(c,d):c.dispatchEvent(d)}const KI=["top","right","bottom","left"],il=Math.min,zi=Math.max,mg=Math.round,gg=Math.floor,eu=n=>({x:n,y:n}),qI={left:"right",right:"left",bottom:"top",top:"bottom"},XI={start:"end",end:"start"};function EE(n,a,i){return zi(n,il(a,i))}function ol(n,a){return typeof n=="function"?n(a):n}function rs(n){return n.split("-")[0]}function Wf(n){return n.split("-")[1]}function xE(n){return n==="x"?"y":"x"}function CE(n){return n==="y"?"height":"width"}function tu(n){return["top","bottom"].includes(rs(n))?"y":"x"}function wE(n){return xE(tu(n))}function _I(n,a,i){i===void 0&&(i=!1);const s=Wf(n),c=wE(n),d=CE(c);let v=c==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return a.reference[d]>a.floating[d]&&(v=yg(v)),[v,yg(v)]}function $I(n){const a=yg(n);return[SE(n),a,SE(a)]}function SE(n){return n.replace(/start|end/g,a=>XI[a])}function ej(n,a,i){const s=["left","right"],c=["right","left"],d=["top","bottom"],v=["bottom","top"];switch(n){case"top":case"bottom":return i?a?c:s:a?s:c;case"left":case"right":return a?d:v;default:return[]}}function tj(n,a,i,s){const c=Wf(n);let d=ej(rs(n),i==="start",s);return c&&(d=d.map(v=>v+"-"+c),a&&(d=d.concat(d.map(SE)))),d}function yg(n){return n.replace(/left|right|bottom|top/g,a=>qI[a])}function nj(n){return{top:0,right:0,bottom:0,left:0,...n}}function jT(n){return typeof n!="number"?nj(n):{top:n,right:n,bottom:n,left:n}}function bg(n){const{x:a,y:i,width:s,height:c}=n;return{width:s,height:c,top:i,left:a,right:a+s,bottom:i+c,x:a,y:i}}function zT(n,a,i){let{reference:s,floating:c}=n;const d=tu(a),v=wE(a),g=CE(v),b=rs(a),x=d==="y",S=s.x+s.width/2-c.width/2,T=s.y+s.height/2-c.height/2,M=s[g]/2-c[g]/2;let R;switch(b){case"top":R={x:S,y:s.y-c.height};break;case"bottom":R={x:S,y:s.y+s.height};break;case"right":R={x:s.x+s.width,y:T};break;case"left":R={x:s.x-c.width,y:T};break;default:R={x:s.x,y:s.y}}switch(Wf(a)){case"start":R[v]-=M*(i&&x?-1:1);break;case"end":R[v]+=M*(i&&x?-1:1);break}return R}const rj=async(n,a,i)=>{const{placement:s="bottom",strategy:c="absolute",middleware:d=[],platform:v}=i,g=d.filter(Boolean),b=await(v.isRTL==null?void 0:v.isRTL(a));let x=await v.getElementRects({reference:n,floating:a,strategy:c}),{x:S,y:T}=zT(x,s,b),M=s,R={},N=0;for(let B=0;B<g.length;B++){const{name:j,fn:P}=g[B],{x:L,y:H,data:Q,reset:K}=await P({x:S,y:T,initialPlacement:s,placement:M,strategy:c,middlewareData:R,rects:x,platform:v,elements:{reference:n,floating:a}});S=L??S,T=H??T,R={...R,[j]:{...R[j],...Q}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(M=K.placement),K.rects&&(x=K.rects===!0?await v.getElementRects({reference:n,floating:a,strategy:c}):K.rects),{x:S,y:T}=zT(x,M,b)),B=-1)}return{x:S,y:T,placement:M,strategy:c,middlewareData:R}};async function Qf(n,a){var i;a===void 0&&(a={});const{x:s,y:c,platform:d,rects:v,elements:g,strategy:b}=n,{boundary:x="clippingAncestors",rootBoundary:S="viewport",elementContext:T="floating",altBoundary:M=!1,padding:R=0}=ol(a,n),N=jT(R),j=g[M?T==="floating"?"reference":"floating":T],P=bg(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(j)))==null||i?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(g.floating)),boundary:x,rootBoundary:S,strategy:b})),L=T==="floating"?{x:s,y:c,width:v.floating.width,height:v.floating.height}:v.reference,H=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g.floating)),Q=await(d.isElement==null?void 0:d.isElement(H))?await(d.getScale==null?void 0:d.getScale(H))||{x:1,y:1}:{x:1,y:1},K=bg(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:L,offsetParent:H,strategy:b}):L);return{top:(P.top-K.top+N.top)/Q.y,bottom:(K.bottom-P.bottom+N.bottom)/Q.y,left:(P.left-K.left+N.left)/Q.x,right:(K.right-P.right+N.right)/Q.x}}const aj=n=>({name:"arrow",options:n,async fn(a){const{x:i,y:s,placement:c,rects:d,platform:v,elements:g,middlewareData:b}=a,{element:x,padding:S=0}=ol(n,a)||{};if(x==null)return{};const T=jT(S),M={x:i,y:s},R=wE(c),N=CE(R),B=await v.getDimensions(x),j=R==="y",P=j?"top":"left",L=j?"bottom":"right",H=j?"clientHeight":"clientWidth",Q=d.reference[N]+d.reference[R]-M[R]-d.floating[N],K=M[R]-d.reference[R],ce=await(v.getOffsetParent==null?void 0:v.getOffsetParent(x));let ae=ce?ce[H]:0;(!ae||!await(v.isElement==null?void 0:v.isElement(ce)))&&(ae=g.floating[H]||d.floating[N]);const Ee=Q/2-K/2,Qe=ae/2-B[N]/2-1,Ie=il(T[P],Qe),Ye=il(T[L],Qe),ye=Ie,be=ae-B[N]-Ye,oe=ae/2-B[N]/2+Ee,Pe=EE(ye,oe,be),Ue=!b.arrow&&Wf(c)!=null&&oe!==Pe&&d.reference[N]/2-(oe<ye?Ie:Ye)-B[N]/2<0,he=Ue?oe<ye?oe-ye:oe-be:0;return{[R]:M[R]+he,data:{[R]:Pe,centerOffset:oe-Pe-he,...Ue&&{alignmentOffset:he}},reset:Ue}}}),ij=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var i,s;const{placement:c,middlewareData:d,rects:v,initialPlacement:g,platform:b,elements:x}=a,{mainAxis:S=!0,crossAxis:T=!0,fallbackPlacements:M,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:B=!0,...j}=ol(n,a);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const P=rs(c),L=tu(g),H=rs(g)===g,Q=await(b.isRTL==null?void 0:b.isRTL(x.floating)),K=M||(H||!B?[yg(g)]:$I(g)),ce=N!=="none";!M&&ce&&K.push(...tj(g,B,N,Q));const ae=[g,...K],Ee=await Qf(a,j),Qe=[];let Ie=((s=d.flip)==null?void 0:s.overflows)||[];if(S&&Qe.push(Ee[P]),T){const oe=_I(c,v,Q);Qe.push(Ee[oe[0]],Ee[oe[1]])}if(Ie=[...Ie,{placement:c,overflows:Qe}],!Qe.every(oe=>oe<=0)){var Ye,ye;const oe=(((Ye=d.flip)==null?void 0:Ye.index)||0)+1,Pe=ae[oe];if(Pe)return{data:{index:oe,overflows:Ie},reset:{placement:Pe}};let Ue=(ye=Ie.filter(he=>he.overflows[0]<=0).sort((he,de)=>he.overflows[1]-de.overflows[1])[0])==null?void 0:ye.placement;if(!Ue)switch(R){case"bestFit":{var be;const he=(be=Ie.filter(de=>{if(ce){const we=tu(de.placement);return we===L||we==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(we=>we>0).reduce((we,Te)=>we+Te,0)]).sort((de,we)=>de[1]-we[1])[0])==null?void 0:be[0];he&&(Ue=he);break}case"initialPlacement":Ue=g;break}if(c!==Ue)return{reset:{placement:Ue}}}return{}}}};function FT(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function LT(n){return KI.some(a=>n[a]>=0)}const oj=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:i}=a,{strategy:s="referenceHidden",...c}=ol(n,a);switch(s){case"referenceHidden":{const d=await Qf(a,{...c,elementContext:"reference"}),v=FT(d,i.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:LT(v)}}}case"escaped":{const d=await Qf(a,{...c,altBoundary:!0}),v=FT(d,i.floating);return{data:{escapedOffsets:v,escaped:LT(v)}}}default:return{}}}}};async function lj(n,a){const{placement:i,platform:s,elements:c}=n,d=await(s.isRTL==null?void 0:s.isRTL(c.floating)),v=rs(i),g=Wf(i),b=tu(i)==="y",x=["left","top"].includes(v)?-1:1,S=d&&b?-1:1,T=ol(a,n);let{mainAxis:M,crossAxis:R,alignmentAxis:N}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...T};return g&&typeof N=="number"&&(R=g==="end"?N*-1:N),b?{x:R*S,y:M*x}:{x:M*x,y:R*S}}const sj=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var i,s;const{x:c,y:d,placement:v,middlewareData:g}=a,b=await lj(a,n);return v===((i=g.offset)==null?void 0:i.placement)&&(s=g.arrow)!=null&&s.alignmentOffset?{}:{x:c+b.x,y:d+b.y,data:{...b,placement:v}}}}},uj=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:i,y:s,placement:c}=a,{mainAxis:d=!0,crossAxis:v=!1,limiter:g={fn:j=>{let{x:P,y:L}=j;return{x:P,y:L}}},...b}=ol(n,a),x={x:i,y:s},S=await Qf(a,b),T=tu(rs(c)),M=xE(T);let R=x[M],N=x[T];if(d){const j=M==="y"?"top":"left",P=M==="y"?"bottom":"right",L=R+S[j],H=R-S[P];R=EE(L,R,H)}if(v){const j=T==="y"?"top":"left",P=T==="y"?"bottom":"right",L=N+S[j],H=N-S[P];N=EE(L,N,H)}const B=g.fn({...a,[M]:R,[T]:N});return{...B,data:{x:B.x-i,y:B.y-s}}}}},cj=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:i,y:s,placement:c,rects:d,middlewareData:v}=a,{offset:g=0,mainAxis:b=!0,crossAxis:x=!0}=ol(n,a),S={x:i,y:s},T=tu(c),M=xE(T);let R=S[M],N=S[T];const B=ol(g,a),j=typeof B=="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(b){const H=M==="y"?"height":"width",Q=d.reference[M]-d.floating[H]+j.mainAxis,K=d.reference[M]+d.reference[H]-j.mainAxis;R<Q?R=Q:R>K&&(R=K)}if(x){var P,L;const H=M==="y"?"width":"height",Q=["top","left"].includes(rs(c)),K=d.reference[T]-d.floating[H]+(Q&&((P=v.offset)==null?void 0:P[T])||0)+(Q?0:j.crossAxis),ce=d.reference[T]+d.reference[H]+(Q?0:((L=v.offset)==null?void 0:L[T])||0)-(Q?j.crossAxis:0);N<K?N=K:N>ce&&(N=ce)}return{[M]:R,[T]:N}}}},fj=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){const{placement:i,rects:s,platform:c,elements:d}=a,{apply:v=()=>{},...g}=ol(n,a),b=await Qf(a,g),x=rs(i),S=Wf(i),T=tu(i)==="y",{width:M,height:R}=s.floating;let N,B;x==="top"||x==="bottom"?(N=x,B=S===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(B=x,N=S==="end"?"top":"bottom");const j=R-b.top-b.bottom,P=M-b.left-b.right,L=il(R-b[N],j),H=il(M-b[B],P),Q=!a.middlewareData.shift;let K=L,ce=H;if(T?ce=S||Q?il(H,P):P:K=S||Q?il(L,j):j,Q&&!S){const Ee=zi(b.left,0),Qe=zi(b.right,0),Ie=zi(b.top,0),Ye=zi(b.bottom,0);T?ce=M-2*(Ee!==0||Qe!==0?Ee+Qe:zi(b.left,b.right)):K=R-2*(Ie!==0||Ye!==0?Ie+Ye:zi(b.top,b.bottom))}await v({...a,availableWidth:ce,availableHeight:K});const ae=await c.getDimensions(d.floating);return M!==ae.width||R!==ae.height?{reset:{rects:!0}}:{}}}};function Kf(n){return PT(n)?(n.nodeName||"").toLowerCase():"#document"}function Fi(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function as(n){var a;return(a=(PT(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function PT(n){return n instanceof Node||n instanceof Fi(n).Node}function wa(n){return n instanceof Element||n instanceof Fi(n).Element}function ll(n){return n instanceof HTMLElement||n instanceof Fi(n).HTMLElement}function UT(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fi(n).ShadowRoot}function gv(n){const{overflow:a,overflowX:i,overflowY:s,display:c}=xo(n);return/auto|scroll|overlay|hidden|clip/.test(a+s+i)&&!["inline","contents"].includes(c)}function dj(n){return["table","td","th"].includes(Kf(n))}function Eg(n){return[":popover-open",":modal"].some(a=>{try{return n.matches(a)}catch{return!1}})}function AE(n){const a=TE(),i=wa(n)?xo(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!a&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!a&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(i.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(i.contain||"").includes(s))}function pj(n){let a=nu(n);for(;ll(a)&&!qf(a);){if(AE(a))return a;if(Eg(a))return null;a=nu(a)}return null}function TE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qf(n){return["html","body","#document"].includes(Kf(n))}function xo(n){return Fi(n).getComputedStyle(n)}function xg(n){return wa(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function nu(n){if(Kf(n)==="html")return n;const a=n.assignedSlot||n.parentNode||UT(n)&&n.host||as(n);return UT(a)?a.host:a}function YT(n){const a=nu(n);return qf(a)?n.ownerDocument?n.ownerDocument.body:n.body:ll(a)&&gv(a)?a:YT(a)}function yv(n,a,i){var s;a===void 0&&(a=[]),i===void 0&&(i=!0);const c=YT(n),d=c===((s=n.ownerDocument)==null?void 0:s.body),v=Fi(c);if(d){const g=RE(v);return a.concat(v,v.visualViewport||[],gv(c)?c:[],g&&i?yv(g):[])}return a.concat(c,yv(c,[],i))}function RE(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function HT(n){const a=xo(n);let i=parseFloat(a.width)||0,s=parseFloat(a.height)||0;const c=ll(n),d=c?n.offsetWidth:i,v=c?n.offsetHeight:s,g=mg(i)!==d||mg(s)!==v;return g&&(i=d,s=v),{width:i,height:s,$:g}}function OE(n){return wa(n)?n:n.contextElement}function Xf(n){const a=OE(n);if(!ll(a))return eu(1);const i=a.getBoundingClientRect(),{width:s,height:c,$:d}=HT(a);let v=(d?mg(i.width):i.width)/s,g=(d?mg(i.height):i.height)/c;return(!v||!Number.isFinite(v))&&(v=1),(!g||!Number.isFinite(g))&&(g=1),{x:v,y:g}}const vj=eu(0);function GT(n){const a=Fi(n);return!TE()||!a.visualViewport?vj:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function hj(n,a,i){return a===void 0&&(a=!1),!i||a&&i!==Fi(n)?!1:a}function wc(n,a,i,s){a===void 0&&(a=!1),i===void 0&&(i=!1);const c=n.getBoundingClientRect(),d=OE(n);let v=eu(1);a&&(s?wa(s)&&(v=Xf(s)):v=Xf(n));const g=hj(d,i,s)?GT(d):eu(0);let b=(c.left+g.x)/v.x,x=(c.top+g.y)/v.y,S=c.width/v.x,T=c.height/v.y;if(d){const M=Fi(d),R=s&&wa(s)?Fi(s):s;let N=M,B=RE(N);for(;B&&s&&R!==N;){const j=Xf(B),P=B.getBoundingClientRect(),L=xo(B),H=P.left+(B.clientLeft+parseFloat(L.paddingLeft))*j.x,Q=P.top+(B.clientTop+parseFloat(L.paddingTop))*j.y;b*=j.x,x*=j.y,S*=j.x,T*=j.y,b+=H,x+=Q,N=Fi(B),B=RE(N)}}return bg({width:S,height:T,x:b,y:x})}function mj(n){let{elements:a,rect:i,offsetParent:s,strategy:c}=n;const d=c==="fixed",v=as(s),g=a?Eg(a.floating):!1;if(s===v||g&&d)return i;let b={scrollLeft:0,scrollTop:0},x=eu(1);const S=eu(0),T=ll(s);if((T||!T&&!d)&&((Kf(s)!=="body"||gv(v))&&(b=xg(s)),ll(s))){const M=wc(s);x=Xf(s),S.x=M.x+s.clientLeft,S.y=M.y+s.clientTop}return{width:i.width*x.x,height:i.height*x.y,x:i.x*x.x-b.scrollLeft*x.x+S.x,y:i.y*x.y-b.scrollTop*x.y+S.y}}function gj(n){return Array.from(n.getClientRects())}function ZT(n){return wc(as(n)).left+xg(n).scrollLeft}function yj(n){const a=as(n),i=xg(n),s=n.ownerDocument.body,c=zi(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),d=zi(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let v=-i.scrollLeft+ZT(n);const g=-i.scrollTop;return xo(s).direction==="rtl"&&(v+=zi(a.clientWidth,s.clientWidth)-c),{width:c,height:d,x:v,y:g}}function bj(n,a){const i=Fi(n),s=as(n),c=i.visualViewport;let d=s.clientWidth,v=s.clientHeight,g=0,b=0;if(c){d=c.width,v=c.height;const x=TE();(!x||x&&a==="fixed")&&(g=c.offsetLeft,b=c.offsetTop)}return{width:d,height:v,x:g,y:b}}function Ej(n,a){const i=wc(n,!0,a==="fixed"),s=i.top+n.clientTop,c=i.left+n.clientLeft,d=ll(n)?Xf(n):eu(1),v=n.clientWidth*d.x,g=n.clientHeight*d.y,b=c*d.x,x=s*d.y;return{width:v,height:g,x:b,y:x}}function VT(n,a,i){let s;if(a==="viewport")s=bj(n,i);else if(a==="document")s=yj(as(n));else if(wa(a))s=Ej(a,i);else{const c=GT(n);s={...a,x:a.x-c.x,y:a.y-c.y}}return bg(s)}function JT(n,a){const i=nu(n);return i===a||!wa(i)||qf(i)?!1:xo(i).position==="fixed"||JT(i,a)}function xj(n,a){const i=a.get(n);if(i)return i;let s=yv(n,[],!1).filter(g=>wa(g)&&Kf(g)!=="body"),c=null;const d=xo(n).position==="fixed";let v=d?nu(n):n;for(;wa(v)&&!qf(v);){const g=xo(v),b=AE(v);!b&&g.position==="fixed"&&(c=null),(d?!b&&!c:!b&&g.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||gv(v)&&!b&&JT(n,v))?s=s.filter(S=>S!==v):c=g,v=nu(v)}return a.set(n,s),s}function Cj(n){let{element:a,boundary:i,rootBoundary:s,strategy:c}=n;const v=[...i==="clippingAncestors"?Eg(a)?[]:xj(a,this._c):[].concat(i),s],g=v[0],b=v.reduce((x,S)=>{const T=VT(a,S,c);return x.top=zi(T.top,x.top),x.right=il(T.right,x.right),x.bottom=il(T.bottom,x.bottom),x.left=zi(T.left,x.left),x},VT(a,g,c));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function wj(n){const{width:a,height:i}=HT(n);return{width:a,height:i}}function Sj(n,a,i){const s=ll(a),c=as(a),d=i==="fixed",v=wc(n,!0,d,a);let g={scrollLeft:0,scrollTop:0};const b=eu(0);if(s||!s&&!d)if((Kf(a)!=="body"||gv(c))&&(g=xg(a)),s){const T=wc(a,!0,d,a);b.x=T.x+a.clientLeft,b.y=T.y+a.clientTop}else c&&(b.x=ZT(c));const x=v.left+g.scrollLeft-b.x,S=v.top+g.scrollTop-b.y;return{x,y:S,width:v.width,height:v.height}}function DE(n){return xo(n).position==="static"}function WT(n,a){return!ll(n)||xo(n).position==="fixed"?null:a?a(n):n.offsetParent}function QT(n,a){const i=Fi(n);if(Eg(n))return i;if(!ll(n)){let c=nu(n);for(;c&&!qf(c);){if(wa(c)&&!DE(c))return c;c=nu(c)}return i}let s=WT(n,a);for(;s&&dj(s)&&DE(s);)s=WT(s,a);return s&&qf(s)&&DE(s)&&!AE(s)?i:s||pj(n)||i}const Aj=async function(n){const a=this.getOffsetParent||QT,i=this.getDimensions,s=await i(n.floating);return{reference:Sj(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Tj(n){return xo(n).direction==="rtl"}const Rj={convertOffsetParentRelativeRectToViewportRelativeRect:mj,getDocumentElement:as,getClippingRect:Cj,getOffsetParent:QT,getElementRects:Aj,getClientRects:gj,getDimensions:wj,getScale:Xf,isElement:wa,isRTL:Tj};function Oj(n,a){let i=null,s;const c=as(n);function d(){var g;clearTimeout(s),(g=i)==null||g.disconnect(),i=null}function v(g,b){g===void 0&&(g=!1),b===void 0&&(b=1),d();const{left:x,top:S,width:T,height:M}=n.getBoundingClientRect();if(g||a(),!T||!M)return;const R=gg(S),N=gg(c.clientWidth-(x+T)),B=gg(c.clientHeight-(S+M)),j=gg(x),L={rootMargin:-R+"px "+-N+"px "+-B+"px "+-j+"px",threshold:zi(0,il(1,b))||1};let H=!0;function Q(K){const ce=K[0].intersectionRatio;if(ce!==b){if(!H)return v();ce?v(!1,ce):s=setTimeout(()=>{v(!1,1e-7)},1e3)}H=!1}try{i=new IntersectionObserver(Q,{...L,root:c.ownerDocument})}catch{i=new IntersectionObserver(Q,L)}i.observe(n)}return v(!0),d}function KT(n,a,i,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:v=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:b=!1}=s,x=OE(n),S=c||d?[...x?yv(x):[],...yv(a)]:[];S.forEach(P=>{c&&P.addEventListener("scroll",i,{passive:!0}),d&&P.addEventListener("resize",i)});const T=x&&g?Oj(x,i):null;let M=-1,R=null;v&&(R=new ResizeObserver(P=>{let[L]=P;L&&L.target===x&&R&&(R.unobserve(a),cancelAnimationFrame(M),M=requestAnimationFrame(()=>{var H;(H=R)==null||H.observe(a)})),i()}),x&&!b&&R.observe(x),R.observe(a));let N,B=b?wc(n):null;b&&j();function j(){const P=wc(n);B&&(P.x!==B.x||P.y!==B.y||P.width!==B.width||P.height!==B.height)&&i(),B=P,N=requestAnimationFrame(j)}return i(),()=>{var P;S.forEach(L=>{c&&L.removeEventListener("scroll",i),d&&L.removeEventListener("resize",i)}),T==null||T(),(P=R)==null||P.disconnect(),R=null,b&&cancelAnimationFrame(N)}}const ME=Qf,Dj=sj,Mj=uj,kj=ij,Nj=fj,Bj=oj,qT=aj,Ij=cj,jj=(n,a,i)=>{const s=new Map,c={platform:Rj,...i},d={...c.platform,_c:s};return rj(n,a,{...c,platform:d})};var Cg=typeof document<"u"?A.useLayoutEffect:A.useEffect;function wg(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let i,s,c;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==a.length)return!1;for(s=i;s--!==0;)if(!wg(n[s],a[s]))return!1;return!0}if(c=Object.keys(n),i=c.length,i!==Object.keys(a).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(a,c[s]))return!1;for(s=i;s--!==0;){const d=c[s];if(!(d==="_owner"&&n.$$typeof)&&!wg(n[d],a[d]))return!1}return!0}return n!==n&&a!==a}function XT(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function _T(n,a){const i=XT(n);return Math.round(a*i)/i}function $T(n){const a=A.useRef(n);return Cg(()=>{a.current=n}),a}function eR(n){n===void 0&&(n={});const{placement:a="bottom",strategy:i="absolute",middleware:s=[],platform:c,elements:{reference:d,floating:v}={},transform:g=!0,whileElementsMounted:b,open:x}=n,[S,T]=A.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[M,R]=A.useState(s);wg(M,s)||R(s);const[N,B]=A.useState(null),[j,P]=A.useState(null),L=A.useCallback(he=>{he!==ce.current&&(ce.current=he,B(he))},[]),H=A.useCallback(he=>{he!==ae.current&&(ae.current=he,P(he))},[]),Q=d||N,K=v||j,ce=A.useRef(null),ae=A.useRef(null),Ee=A.useRef(S),Qe=b!=null,Ie=$T(b),Ye=$T(c),ye=A.useCallback(()=>{if(!ce.current||!ae.current)return;const he={placement:a,strategy:i,middleware:M};Ye.current&&(he.platform=Ye.current),jj(ce.current,ae.current,he).then(de=>{const we={...de,isPositioned:!0};be.current&&!wg(Ee.current,we)&&(Ee.current=we,oa.flushSync(()=>{T(we)}))})},[M,a,i,Ye]);Cg(()=>{x===!1&&Ee.current.isPositioned&&(Ee.current.isPositioned=!1,T(he=>({...he,isPositioned:!1})))},[x]);const be=A.useRef(!1);Cg(()=>(be.current=!0,()=>{be.current=!1}),[]),Cg(()=>{if(Q&&(ce.current=Q),K&&(ae.current=K),Q&&K){if(Ie.current)return Ie.current(Q,K,ye);ye()}},[Q,K,ye,Ie,Qe]);const oe=A.useMemo(()=>({reference:ce,floating:ae,setReference:L,setFloating:H}),[L,H]),Pe=A.useMemo(()=>({reference:Q,floating:K}),[Q,K]),Ue=A.useMemo(()=>{const he={position:i,left:0,top:0};if(!Pe.floating)return he;const de=_T(Pe.floating,S.x),we=_T(Pe.floating,S.y);return g?{...he,transform:"translate("+de+"px, "+we+"px)",...XT(Pe.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:de,top:we}},[i,g,Pe.floating,S.x,S.y]);return A.useMemo(()=>({...S,update:ye,refs:oe,elements:Pe,floatingStyles:Ue}),[S,ye,oe,Pe,Ue])}const zj=n=>{function a(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:s,padding:c}=typeof n=="function"?n(i):n;return s&&a(s)?s.current!=null?qT({element:s.current,padding:c}).fn(i):{}:s?qT({element:s,padding:c}).fn(i):{}}}},kE=(n,a)=>({...Dj(n),options:[n,a]}),tR=(n,a)=>({...Mj(n),options:[n,a]}),Fj=(n,a)=>({...Ij(n),options:[n,a]}),nR=(n,a)=>({...kj(n),options:[n,a]}),rR=(n,a)=>({...Nj(n),options:[n,a]}),Lj=(n,a)=>({...Bj(n),options:[n,a]}),Pj=(n,a)=>({...zj(n),options:[n,a]});var Uj="Arrow",aR=A.forwardRef((n,a)=>{const{children:i,width:s=10,height:c=5,...d}=n;return U.jsx(ur.svg,{...d,ref:a,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:U.jsx("polygon",{points:"0,0 30,0 15,10"})})});aR.displayName=Uj;var Yj=aR;function NE(n){const[a,i]=A.useState(void 0);return $s(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let v,g;if("borderBoxSize"in d){const b=d.borderBoxSize,x=Array.isArray(b)?b[0]:b;v=x.inlineSize,g=x.blockSize}else v=n.offsetWidth,g=n.offsetHeight;i({width:v,height:g})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else i(void 0)},[n]),a}var BE="Popper",[iR,Sg]=al(BE),[Hj,oR]=iR(BE),lR=n=>{const{__scopePopper:a,children:i}=n,[s,c]=A.useState(null);return U.jsx(Hj,{scope:a,anchor:s,onAnchorChange:c,children:i})};lR.displayName=BE;var sR="PopperAnchor",uR=A.forwardRef((n,a)=>{const{__scopePopper:i,virtualRef:s,...c}=n,d=oR(sR,i),v=A.useRef(null),g=_r(a,v);return A.useEffect(()=>{d.onAnchorChange((s==null?void 0:s.current)||v.current)}),s?null:U.jsx(ur.div,{...c,ref:g})});uR.displayName=sR;var IE="PopperContent",[Gj,Zj]=iR(IE),cR=A.forwardRef((n,a)=>{var st,it,wt,cn,Ln,Xn;const{__scopePopper:i,side:s="bottom",sideOffset:c=0,align:d="center",alignOffset:v=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:S=0,sticky:T="partial",hideWhenDetached:M=!1,updatePositionStrategy:R="optimized",onPlaced:N,...B}=n,j=oR(IE,i),[P,L]=A.useState(null),H=_r(a,qe=>L(qe)),[Q,K]=A.useState(null),ce=NE(Q),ae=(ce==null?void 0:ce.width)??0,Ee=(ce==null?void 0:ce.height)??0,Qe=s+(d!=="center"?"-"+d:""),Ie=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},Ye=Array.isArray(x)?x:[x],ye=Ye.length>0,be={padding:Ie,boundary:Ye.filter(Jj),altBoundary:ye},{refs:oe,floatingStyles:Pe,placement:Ue,isPositioned:he,middlewareData:de}=eR({strategy:"fixed",placement:Qe,whileElementsMounted:(...qe)=>KT(...qe,{animationFrame:R==="always"}),elements:{reference:j.anchor},middleware:[kE({mainAxis:c+Ee,alignmentAxis:v}),b&&tR({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?Fj():void 0,...be}),b&&nR({...be}),rR({...be,apply:({elements:qe,rects:Bt,availableWidth:on,availableHeight:wn})=>{const{width:Fe,height:F}=Bt.reference,W=qe.floating.style;W.setProperty("--radix-popper-available-width",`${on}px`),W.setProperty("--radix-popper-available-height",`${wn}px`),W.setProperty("--radix-popper-anchor-width",`${Fe}px`),W.setProperty("--radix-popper-anchor-height",`${F}px`)}}),Q&&Pj({element:Q,padding:g}),Wj({arrowWidth:ae,arrowHeight:Ee}),M&&Lj({strategy:"referenceHidden",...be})]}),[we,Te]=pR(Ue),V=ts(N);$s(()=>{he&&(V==null||V())},[he,V]);const fe=(st=de.arrow)==null?void 0:st.x,Se=(it=de.arrow)==null?void 0:it.y,rt=((wt=de.arrow)==null?void 0:wt.centerOffset)!==0,[lt,pt]=A.useState();return $s(()=>{P&&pt(window.getComputedStyle(P).zIndex)},[P]),U.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Pe,transform:he?Pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lt,"--radix-popper-transform-origin":[(cn=de.transformOrigin)==null?void 0:cn.x,(Ln=de.transformOrigin)==null?void 0:Ln.y].join(" "),...((Xn=de.hide)==null?void 0:Xn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:U.jsx(Gj,{scope:i,placedSide:we,onArrowChange:K,arrowX:fe,arrowY:Se,shouldHideArrow:rt,children:U.jsx(ur.div,{"data-side":we,"data-align":Te,...B,ref:H,style:{...B.style,animation:he?void 0:"none"}})})})});cR.displayName=IE;var fR="PopperArrow",Vj={top:"bottom",right:"left",bottom:"top",left:"right"},dR=A.forwardRef(function(a,i){const{__scopePopper:s,...c}=a,d=Zj(fR,s),v=Vj[d.placedSide];return U.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[v]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:U.jsx(Yj,{...c,ref:i,style:{...c.style,display:"block"}})})});dR.displayName=fR;function Jj(n){return n!==null}var Wj=n=>({name:"transformOrigin",options:n,fn(a){var j,P,L;const{placement:i,rects:s,middlewareData:c}=a,v=((j=c.arrow)==null?void 0:j.centerOffset)!==0,g=v?0:n.arrowWidth,b=v?0:n.arrowHeight,[x,S]=pR(i),T={start:"0%",center:"50%",end:"100%"}[S],M=(((P=c.arrow)==null?void 0:P.x)??0)+g/2,R=(((L=c.arrow)==null?void 0:L.y)??0)+b/2;let N="",B="";return x==="bottom"?(N=v?T:`${M}px`,B=`${-b}px`):x==="top"?(N=v?T:`${M}px`,B=`${s.floating.height+b}px`):x==="right"?(N=`${-b}px`,B=v?T:`${R}px`):x==="left"&&(N=`${s.floating.width+b}px`,B=v?T:`${R}px`),{data:{x:N,y:B}}}});function pR(n){const[a,i="center"]=n.split("-");return[a,i]}var vR=lR,jE=uR,hR=cR,mR=dR,Qj="Portal",gR=A.forwardRef((n,a)=>{var g;const{container:i,...s}=n,[c,d]=A.useState(!1);$s(()=>d(!0),[]);const v=i||c&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return v?uI.createPortal(U.jsx(ur.div,{...s,ref:a}),v):null});gR.displayName=Qj;var Kj="VisuallyHidden",yR=A.forwardRef((n,a)=>U.jsx(ur.span,{...n,ref:a,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",...n.style}}));yR.displayName=Kj;var qj=yR,[Ag,z3]=al("Tooltip",[Sg]),Tg=Sg(),bR="TooltipProvider",Xj=700,zE="tooltip.open",[_j,FE]=Ag(bR),ER=n=>{const{__scopeTooltip:a,delayDuration:i=Xj,skipDelayDuration:s=300,disableHoverableContent:c=!1,children:d}=n,[v,g]=A.useState(!0),b=A.useRef(!1),x=A.useRef(0);return A.useEffect(()=>{const S=x.current;return()=>window.clearTimeout(S)},[]),U.jsx(_j,{scope:a,isOpenDelayed:v,delayDuration:i,onOpen:A.useCallback(()=>{window.clearTimeout(x.current),g(!1)},[]),onClose:A.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>g(!0),s)},[s]),isPointerInTransitRef:b,onPointerInTransitChange:A.useCallback(S=>{b.current=S},[]),disableHoverableContent:c,children:d})};ER.displayName=bR;var Rg="Tooltip",[$j,Og]=Ag(Rg),xR=n=>{const{__scopeTooltip:a,children:i,open:s,defaultOpen:c=!1,onOpenChange:d,disableHoverableContent:v,delayDuration:g}=n,b=FE(Rg,n.__scopeTooltip),x=Tg(a),[S,T]=A.useState(null),M=mv(),R=A.useRef(0),N=v??b.disableHoverableContent,B=g??b.delayDuration,j=A.useRef(!1),[P=!1,L]=_s({prop:s,defaultProp:c,onChange:ae=>{ae?(b.onOpen(),document.dispatchEvent(new CustomEvent(zE))):b.onClose(),d==null||d(ae)}}),H=A.useMemo(()=>P?j.current?"delayed-open":"instant-open":"closed",[P]),Q=A.useCallback(()=>{window.clearTimeout(R.current),j.current=!1,L(!0)},[L]),K=A.useCallback(()=>{window.clearTimeout(R.current),L(!1)},[L]),ce=A.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>{j.current=!0,L(!0)},B)},[B,L]);return A.useEffect(()=>()=>window.clearTimeout(R.current),[]),U.jsx(vR,{...x,children:U.jsx($j,{scope:a,contentId:M,open:P,stateAttribute:H,trigger:S,onTriggerChange:T,onTriggerEnter:A.useCallback(()=>{b.isOpenDelayed?ce():Q()},[b.isOpenDelayed,ce,Q]),onTriggerLeave:A.useCallback(()=>{N?K():window.clearTimeout(R.current)},[K,N]),onOpen:Q,onClose:K,disableHoverableContent:N,children:i})})};xR.displayName=Rg;var LE="TooltipTrigger",CR=A.forwardRef((n,a)=>{const{__scopeTooltip:i,...s}=n,c=Og(LE,i),d=FE(LE,i),v=Tg(i),g=A.useRef(null),b=_r(a,g,c.onTriggerChange),x=A.useRef(!1),S=A.useRef(!1),T=A.useCallback(()=>x.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",T),[T]),U.jsx(jE,{asChild:!0,...v,children:U.jsx(ur.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...s,ref:b,onPointerMove:Yn(n.onPointerMove,M=>{M.pointerType!=="touch"&&!S.current&&!d.isPointerInTransitRef.current&&(c.onTriggerEnter(),S.current=!0)}),onPointerLeave:Yn(n.onPointerLeave,()=>{c.onTriggerLeave(),S.current=!1}),onPointerDown:Yn(n.onPointerDown,()=>{x.current=!0,document.addEventListener("pointerup",T,{once:!0})}),onFocus:Yn(n.onFocus,()=>{x.current||c.onOpen()}),onBlur:Yn(n.onBlur,c.onClose),onClick:Yn(n.onClick,c.onClose)})})});CR.displayName=LE;var ez="TooltipPortal",[F3,tz]=Ag(ez,{forceMount:void 0}),_f="TooltipContent",wR=A.forwardRef((n,a)=>{const i=tz(_f,n.__scopeTooltip),{forceMount:s=i.forceMount,side:c="top",...d}=n,v=Og(_f,n.__scopeTooltip);return U.jsx(Cc,{present:s||v.open,children:v.disableHoverableContent?U.jsx(SR,{side:c,...d,ref:a}):U.jsx(nz,{side:c,...d,ref:a})})}),nz=A.forwardRef((n,a)=>{const i=Og(_f,n.__scopeTooltip),s=FE(_f,n.__scopeTooltip),c=A.useRef(null),d=_r(a,c),[v,g]=A.useState(null),{trigger:b,onClose:x}=i,S=c.current,{onPointerInTransitChange:T}=s,M=A.useCallback(()=>{g(null),T(!1)},[T]),R=A.useCallback((N,B)=>{const j=N.currentTarget,P={x:N.clientX,y:N.clientY},L=iz(P,j.getBoundingClientRect()),H=oz(P,L),Q=lz(B.getBoundingClientRect()),K=uz([...H,...Q]);g(K),T(!0)},[T]);return A.useEffect(()=>()=>M(),[M]),A.useEffect(()=>{if(b&&S){const N=j=>R(j,S),B=j=>R(j,b);return b.addEventListener("pointerleave",N),S.addEventListener("pointerleave",B),()=>{b.removeEventListener("pointerleave",N),S.removeEventListener("pointerleave",B)}}},[b,S,R,M]),A.useEffect(()=>{if(v){const N=B=>{const j=B.target,P={x:B.clientX,y:B.clientY},L=(b==null?void 0:b.contains(j))||(S==null?void 0:S.contains(j)),H=!sz(P,v);L?M():H&&(M(),x())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[b,S,v,x,M]),U.jsx(SR,{...n,ref:d})}),[rz,az]=Ag(Rg,{isInside:!1}),SR=A.forwardRef((n,a)=>{const{__scopeTooltip:i,children:s,"aria-label":c,onEscapeKeyDown:d,onPointerDownOutside:v,...g}=n,b=Og(_f,i),x=Tg(i),{onClose:S}=b;return A.useEffect(()=>(document.addEventListener(zE,S),()=>document.removeEventListener(zE,S)),[S]),A.useEffect(()=>{if(b.trigger){const T=M=>{const R=M.target;R!=null&&R.contains(b.trigger)&&S()};return window.addEventListener("scroll",T,{capture:!0}),()=>window.removeEventListener("scroll",T,{capture:!0})}},[b.trigger,S]),U.jsx(bE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:v,onFocusOutside:T=>T.preventDefault(),onDismiss:S,children:U.jsxs(hR,{"data-state":b.stateAttribute,...x,...g,ref:a,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[U.jsx(iT,{children:s}),U.jsx(rz,{scope:i,isInside:!0,children:U.jsx(qj,{id:b.contentId,role:"tooltip",children:c||s})})]})})});wR.displayName=_f;var AR="TooltipArrow",TR=A.forwardRef((n,a)=>{const{__scopeTooltip:i,...s}=n,c=Tg(i);return az(AR,i).isInside?null:U.jsx(mR,{...c,...s,ref:a})});TR.displayName=AR;function iz(n,a){const i=Math.abs(a.top-n.y),s=Math.abs(a.bottom-n.y),c=Math.abs(a.right-n.x),d=Math.abs(a.left-n.x);switch(Math.min(i,s,c,d)){case d:return"left";case c:return"right";case i:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function oz(n,a,i=5){const s=[];switch(a){case"top":s.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":s.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":s.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":s.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return s}function lz(n){const{top:a,right:i,bottom:s,left:c}=n;return[{x:c,y:a},{x:i,y:a},{x:i,y:s},{x:c,y:s}]}function sz(n,a){const{x:i,y:s}=n;let c=!1;for(let d=0,v=a.length-1;d<a.length;v=d++){const g=a[d].x,b=a[d].y,x=a[v].x,S=a[v].y;b>s!=S>s&&i<(x-g)*(s-b)/(S-b)+g&&(c=!c)}return c}function uz(n){const a=n.slice();return a.sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0),cz(a)}function cz(n){if(n.length<=1)return n.slice();const a=[];for(let s=0;s<n.length;s++){const c=n[s];for(;a.length>=2;){const d=a[a.length-1],v=a[a.length-2];if((d.x-v.x)*(c.y-v.y)>=(d.y-v.y)*(c.x-v.x))a.pop();else break}a.push(c)}a.pop();const i=[];for(let s=n.length-1;s>=0;s--){const c=n[s];for(;i.length>=2;){const d=i[i.length-1],v=i[i.length-2];if((d.x-v.x)*(c.y-v.y)>=(d.y-v.y)*(c.x-v.x))i.pop();else break}i.push(c)}return i.pop(),a.length===1&&i.length===1&&a[0].x===i[0].x&&a[0].y===i[0].y?a:a.concat(i)}var fz=ER,dz=xR,pz=CR,vz=wR,hz=TR;const mz=({triggerElement:n,children:a,delayDuration:i=250,sideOffset:s=6,align:c="center",side:d="top",defaultOpen:v=!1,classes:g,...b})=>U.jsx(fz,{children:U.jsxs(dz,{defaultOpen:v,delayDuration:i,children:[U.jsx(pz,{asChild:!0,className:dt("cursor-pointer",g==null?void 0:g.trigger),children:n}),U.jsxs(vz,{onPointerDownOutside:x=>x.preventDefault(),className:dt("bg-color-white text-color-dark desk-body-regular-m w-48 p-4 rounded-sm origin-center shadow-sm animate-scale-in",g==null?void 0:g.content),sideOffset:s,align:c,side:d,...b,children:[a,U.jsx(hz,{width:12,height:6,className:dt("fill-white",g==null?void 0:g.arrow)})]})]})});var PE=0;function gz(){A.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??RR()),document.body.insertAdjacentElement("beforeend",n[1]??RR()),PE++,()=>{PE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),PE--}},[])}function RR(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",n}var UE="focusScope.autoFocusOnMount",YE="focusScope.autoFocusOnUnmount",OR={bubbles:!1,cancelable:!0},yz="FocusScope",DR=A.forwardRef((n,a)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...v}=n,[g,b]=A.useState(null),x=ts(c),S=ts(d),T=A.useRef(null),M=_r(a,B=>b(B)),R=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(s){let B=function(H){if(R.paused||!g)return;const Q=H.target;g.contains(Q)?T.current=Q:ru(T.current,{select:!0})},j=function(H){if(R.paused||!g)return;const Q=H.relatedTarget;Q!==null&&(g.contains(Q)||ru(T.current,{select:!0}))},P=function(H){if(document.activeElement===document.body)for(const K of H)K.removedNodes.length>0&&ru(g)};document.addEventListener("focusin",B),document.addEventListener("focusout",j);const L=new MutationObserver(P);return g&&L.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",j),L.disconnect()}}},[s,g,R.paused]),A.useEffect(()=>{if(g){NR.add(R);const B=document.activeElement;if(!g.contains(B)){const P=new CustomEvent(UE,OR);g.addEventListener(UE,x),g.dispatchEvent(P),P.defaultPrevented||(bz(Sz(MR(g)),{select:!0}),document.activeElement===B&&ru(g))}return()=>{g.removeEventListener(UE,x),setTimeout(()=>{const P=new CustomEvent(YE,OR);g.addEventListener(YE,S),g.dispatchEvent(P),P.defaultPrevented||ru(B??document.body,{select:!0}),g.removeEventListener(YE,S),NR.remove(R)},0)}}},[g,x,S,R]);const N=A.useCallback(B=>{if(!i&&!s||R.paused)return;const j=B.key==="Tab"&&!B.altKey&&!B.ctrlKey&&!B.metaKey,P=document.activeElement;if(j&&P){const L=B.currentTarget,[H,Q]=Ez(L);H&&Q?!B.shiftKey&&P===Q?(B.preventDefault(),i&&ru(H,{select:!0})):B.shiftKey&&P===H&&(B.preventDefault(),i&&ru(Q,{select:!0})):P===L&&B.preventDefault()}},[i,s,R.paused]);return U.jsx(ur.div,{tabIndex:-1,...v,ref:M,onKeyDown:N})});DR.displayName=yz;function bz(n,{select:a=!1}={}){const i=document.activeElement;for(const s of n)if(ru(s,{select:a}),document.activeElement!==i)return}function Ez(n){const a=MR(n),i=kR(a,n),s=kR(a.reverse(),n);return[i,s]}function MR(n){const a=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)a.push(i.currentNode);return a}function kR(n,a){for(const i of n)if(!xz(i,{upTo:a}))return i}function xz(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Cz(n){return n instanceof HTMLInputElement&&"select"in n}function ru(n,{select:a=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Cz(n)&&a&&n.select()}}var NR=wz();function wz(){let n=[];return{add(a){const i=n[0];a!==i&&(i==null||i.pause()),n=BR(n,a),n.unshift(a)},remove(a){var i;n=BR(n,a),(i=n[0])==null||i.resume()}}}function BR(n,a){const i=[...n],s=i.indexOf(a);return s!==-1&&i.splice(s,1),i}function Sz(n){return n.filter(a=>a.tagName!=="A")}var Az=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},$f=new WeakMap,Dg=new WeakMap,Mg={},HE=0,IR=function(n){return n&&(n.host||IR(n.parentNode))},Tz=function(n,a){return a.map(function(i){if(n.contains(i))return i;var s=IR(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},Rz=function(n,a,i,s){var c=Tz(a,Array.isArray(n)?n:[n]);Mg[i]||(Mg[i]=new WeakMap);var d=Mg[i],v=[],g=new Set,b=new Set(c),x=function(T){!T||g.has(T)||(g.add(T),x(T.parentNode))};c.forEach(x);var S=function(T){!T||b.has(T)||Array.prototype.forEach.call(T.children,function(M){if(g.has(M))S(M);else try{var R=M.getAttribute(s),N=R!==null&&R!=="false",B=($f.get(M)||0)+1,j=(d.get(M)||0)+1;$f.set(M,B),d.set(M,j),v.push(M),B===1&&N&&Dg.set(M,!0),j===1&&M.setAttribute(i,"true"),N||M.setAttribute(s,"true")}catch(P){console.error("aria-hidden: cannot operate on ",M,P)}})};return S(a),g.clear(),HE++,function(){v.forEach(function(T){var M=$f.get(T)-1,R=d.get(T)-1;$f.set(T,M),d.set(T,R),M||(Dg.has(T)||T.removeAttribute(s),Dg.delete(T)),R||T.removeAttribute(i)}),HE--,HE||($f=new WeakMap,$f=new WeakMap,Dg=new WeakMap,Mg={})}},Oz=function(n,a,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),c=Az(n);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live]"))),Rz(s,c,i,"aria-hidden")):function(){return null}},sl=function(){return sl=Object.assign||function(a){for(var i,s=1,c=arguments.length;s<c;s++){i=arguments[s];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(a[d]=i[d])}return a},sl.apply(this,arguments)};function jR(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(n);c<s.length;c++)a.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(n,s[c])&&(i[s[c]]=n[s[c]]);return i}function Dz(n,a,i){if(i||arguments.length===2)for(var s=0,c=a.length,d;s<c;s++)(d||!(s in a))&&(d||(d=Array.prototype.slice.call(a,0,s)),d[s]=a[s]);return n.concat(d||Array.prototype.slice.call(a))}typeof SuppressedError=="function"&&SuppressedError;var kg="right-scroll-bar-position",Ng="width-before-scroll-bar",Mz="with-scroll-bars-hidden",kz="--removed-body-scroll-bar-size";function GE(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function Nz(n,a){var i=A.useState(function(){return{value:n,callback:a,facade:{get current(){return i.value},set current(s){var c=i.value;c!==s&&(i.value=s,i.callback(s,c))}}}})[0];return i.callback=a,i.facade}var Bz=typeof window<"u"?A.useLayoutEffect:A.useEffect,zR=new WeakMap;function Iz(n,a){var i=Nz(null,function(s){return n.forEach(function(c){return GE(c,s)})});return Bz(function(){var s=zR.get(i);if(s){var c=new Set(s),d=new Set(n),v=i.current;c.forEach(function(g){d.has(g)||GE(g,null)}),d.forEach(function(g){c.has(g)||GE(g,v)})}zR.set(i,n)},[n]),i}function jz(n){return n}function zz(n,a){a===void 0&&(a=jz);var i=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(d){var v=a(d,s);return i.push(v),function(){i=i.filter(function(g){return g!==v})}},assignSyncMedium:function(d){for(s=!0;i.length;){var v=i;i=[],v.forEach(d)}i={push:function(g){return d(g)},filter:function(){return i}}},assignMedium:function(d){s=!0;var v=[];if(i.length){var g=i;i=[],g.forEach(d),v=i}var b=function(){var S=v;v=[],S.forEach(d)},x=function(){return Promise.resolve().then(b)};x(),i={push:function(S){v.push(S),x()},filter:function(S){return v=v.filter(S),i}}}};return c}function Fz(n){n===void 0&&(n={});var a=zz(null);return a.options=sl({async:!0,ssr:!1},n),a}var FR=function(n){var a=n.sideCar,i=jR(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return A.createElement(s,sl({},i))};FR.isSideCarExport=!0;function Lz(n,a){return n.useMedium(a),FR}var LR=Fz(),ZE=function(){},Bg=A.forwardRef(function(n,a){var i=A.useRef(null),s=A.useState({onScrollCapture:ZE,onWheelCapture:ZE,onTouchMoveCapture:ZE}),c=s[0],d=s[1],v=n.forwardProps,g=n.children,b=n.className,x=n.removeScrollBar,S=n.enabled,T=n.shards,M=n.sideCar,R=n.noIsolation,N=n.inert,B=n.allowPinchZoom,j=n.as,P=j===void 0?"div":j,L=n.gapMode,H=jR(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=M,K=Iz([i,a]),ce=sl(sl({},H),c);return A.createElement(A.Fragment,null,S&&A.createElement(Q,{sideCar:LR,removeScrollBar:x,shards:T,noIsolation:R,inert:N,setCallbacks:d,allowPinchZoom:!!B,lockRef:i,gapMode:L}),v?A.cloneElement(A.Children.only(g),sl(sl({},ce),{ref:K})):A.createElement(P,sl({},ce,{className:b,ref:K}),g))});Bg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bg.classNames={fullWidth:Ng,zeroRight:kg};var Pz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uz(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=Pz();return a&&n.setAttribute("nonce",a),n}function Yz(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function Hz(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var Gz=function(){var n=0,a=null;return{add:function(i){n==0&&(a=Uz())&&(Yz(a,i),Hz(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Zz=function(){var n=Gz();return function(a,i){A.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&i])}},PR=function(){var n=Zz(),a=function(i){var s=i.styles,c=i.dynamic;return n(s,c),null};return a},Vz={left:0,top:0,right:0,gap:0},VE=function(n){return parseInt(n||"",10)||0},Jz=function(n){var a=window.getComputedStyle(document.body),i=a[n==="padding"?"paddingLeft":"marginLeft"],s=a[n==="padding"?"paddingTop":"marginTop"],c=a[n==="padding"?"paddingRight":"marginRight"];return[VE(i),VE(s),VE(c)]},Wz=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Vz;var a=Jz(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-i+a[2]-a[0])}},Qz=PR(),ed="data-scroll-locked",Kz=function(n,a,i,s){var c=n.left,d=n.top,v=n.right,g=n.gap;return i===void 0&&(i="margin"),`
|
|
241
|
+
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ci.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sA,ci.createPortal=T3,ci.createRoot=O3,ci.findDOMNode=x3,ci.flushSync=M3,ci.hydrate=C3,ci.hydrateRoot=D3,ci.render=w3,ci.unmountComponentAtNode=A3,ci.unstable_batchedUpdates=LS,ci.unstable_renderSubtreeIntoContainer=R3,ci.version=tA,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),ci}function pT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pT)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(pT(),oE.exports=lI()):oE.exports=sI();var oa=oE.exports;const uI=cA(oa);var cI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ur=cI.reduce((n,a)=>{const i=A.forwardRef((s,c)=>{const{asChild:d,...v}=s,g=d?hv:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),U.jsx(g,{...v,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function fI(n,a){n&&oa.flushSync(()=>n.dispatchEvent(a))}var $s=globalThis!=null&&globalThis.document?A.useLayoutEffect:()=>{};function dI(n,a){return A.useReducer((i,s)=>a[i][s]??i,n)}var Cc=n=>{const{present:a,children:i}=n,s=pI(a),c=typeof i=="function"?i({present:s.isPresent}):A.Children.only(i),d=_r(s.ref,vI(c));return typeof i=="function"||s.isPresent?A.cloneElement(c,{ref:d}):null};Cc.displayName="Presence";function pI(n){const[a,i]=A.useState(),s=A.useRef({}),c=A.useRef(n),d=A.useRef("none"),v=n?"mounted":"unmounted",[g,b]=dI(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return A.useEffect(()=>{const x=dg(s.current);d.current=g==="mounted"?x:"none"},[g]),$s(()=>{const x=s.current,S=c.current;if(S!==n){const M=d.current,R=dg(x);n?b("MOUNT"):R==="none"||(x==null?void 0:x.display)==="none"?b("UNMOUNT"):b(S&&M!==R?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,b]),$s(()=>{if(a){const x=T=>{const R=dg(s.current).includes(T.animationName);T.target===a&&R&&oa.flushSync(()=>b("ANIMATION_END"))},S=T=>{T.target===a&&(d.current=dg(s.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",x),a.removeEventListener("animationend",x)}}else b("ANIMATION_END")},[a,b]),{isPresent:["mounted","unmountSuspended"].includes(g),ref:A.useCallback(x=>{x&&(s.current=getComputedStyle(x)),i(x)},[])}}function dg(n){return(n==null?void 0:n.animationName)||"none"}function vI(n){var s,c;let a=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var hI=eg.useId||(()=>{}),mI=0;function mv(n){const[a,i]=A.useState(hI());return $s(()=>{i(s=>s??String(mI++))},[n]),a?`radix-${a}`:""}var uE="Collapsible",[gI,vT]=al(uE),[yI,cE]=gI(uE),hT=A.forwardRef((n,a)=>{const{__scopeCollapsible:i,open:s,defaultOpen:c,disabled:d,onOpenChange:v,...g}=n,[b=!1,x]=_s({prop:s,defaultProp:c,onChange:v});return U.jsx(yI,{scope:i,disabled:d,contentId:mv(),open:b,onOpenToggle:A.useCallback(()=>x(S=>!S),[x]),children:U.jsx(ur.div,{"data-state":dE(b),"data-disabled":d?"":void 0,...g,ref:a})})});hT.displayName=uE;var mT="CollapsibleTrigger",gT=A.forwardRef((n,a)=>{const{__scopeCollapsible:i,...s}=n,c=cE(mT,i);return U.jsx(ur.button,{type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":dE(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled,...s,ref:a,onClick:Yn(n.onClick,c.onOpenToggle)})});gT.displayName=mT;var fE="CollapsibleContent",yT=A.forwardRef((n,a)=>{const{forceMount:i,...s}=n,c=cE(fE,n.__scopeCollapsible);return U.jsx(Cc,{present:i||c.open,children:({present:d})=>U.jsx(bI,{...s,ref:a,present:d})})});yT.displayName=fE;var bI=A.forwardRef((n,a)=>{const{__scopeCollapsible:i,present:s,children:c,...d}=n,v=cE(fE,i),[g,b]=A.useState(s),x=A.useRef(null),S=_r(a,x),T=A.useRef(0),M=T.current,R=A.useRef(0),N=R.current,B=v.open||g,j=A.useRef(B),P=A.useRef();return A.useEffect(()=>{const L=requestAnimationFrame(()=>j.current=!1);return()=>cancelAnimationFrame(L)},[]),$s(()=>{const L=x.current;if(L){P.current=P.current||{transitionDuration:L.style.transitionDuration,animationName:L.style.animationName},L.style.transitionDuration="0s",L.style.animationName="none";const H=L.getBoundingClientRect();T.current=H.height,R.current=H.width,j.current||(L.style.transitionDuration=P.current.transitionDuration,L.style.animationName=P.current.animationName),b(s)}},[v.open,s]),U.jsx(ur.div,{"data-state":dE(v.open),"data-disabled":v.disabled?"":void 0,id:v.contentId,hidden:!B,...d,ref:S,style:{"--radix-collapsible-content-height":M?`${M}px`:void 0,"--radix-collapsible-content-width":N?`${N}px`:void 0,...n.style},children:B&&c})});function dE(n){return n?"open":"closed"}var EI=hT,xI=gT,CI=yT,wI=A.createContext(void 0);function pE(n){const a=A.useContext(wI);return n||a||"ltr"}var ns="Accordion",SI=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[vE,AI,TI]=oT(ns),[pg,j3]=al(ns,[TI,vT]),hE=vT(),bT=Ge.forwardRef((n,a)=>{const{type:i,...s}=n,c=s,d=s;return U.jsx(vE.Provider,{scope:n.__scopeAccordion,children:i==="multiple"?U.jsx(MI,{...d,ref:a}):U.jsx(DI,{...c,ref:a})})});bT.displayName=ns;var[ET,RI]=pg(ns),[xT,OI]=pg(ns,{collapsible:!1}),DI=Ge.forwardRef((n,a)=>{const{value:i,defaultValue:s,onValueChange:c=()=>{},collapsible:d=!1,...v}=n,[g,b]=_s({prop:i,defaultProp:s,onChange:c});return U.jsx(ET,{scope:n.__scopeAccordion,value:g?[g]:[],onItemOpen:b,onItemClose:Ge.useCallback(()=>d&&b(""),[d,b]),children:U.jsx(xT,{scope:n.__scopeAccordion,collapsible:d,children:U.jsx(CT,{...v,ref:a})})})}),MI=Ge.forwardRef((n,a)=>{const{value:i,defaultValue:s,onValueChange:c=()=>{},...d}=n,[v=[],g]=_s({prop:i,defaultProp:s,onChange:c}),b=Ge.useCallback(S=>g((T=[])=>[...T,S]),[g]),x=Ge.useCallback(S=>g((T=[])=>T.filter(M=>M!==S)),[g]);return U.jsx(ET,{scope:n.__scopeAccordion,value:v,onItemOpen:b,onItemClose:x,children:U.jsx(xT,{scope:n.__scopeAccordion,collapsible:!0,children:U.jsx(CT,{...d,ref:a})})})}),[kI,vg]=pg(ns),CT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,disabled:s,dir:c,orientation:d="vertical",...v}=n,g=Ge.useRef(null),b=_r(g,a),x=AI(i),T=pE(c)==="ltr",M=Yn(n.onKeyDown,R=>{var Ee;if(!SI.includes(R.key))return;const N=R.target,B=x().filter(Qe=>{var Ie;return!((Ie=Qe.ref.current)!=null&&Ie.disabled)}),j=B.findIndex(Qe=>Qe.ref.current===N),P=B.length;if(j===-1)return;R.preventDefault();let L=j;const H=0,Q=P-1,K=()=>{L=j+1,L>Q&&(L=H)},ce=()=>{L=j-1,L<H&&(L=Q)};switch(R.key){case"Home":L=H;break;case"End":L=Q;break;case"ArrowRight":d==="horizontal"&&(T?K():ce());break;case"ArrowDown":d==="vertical"&&K();break;case"ArrowLeft":d==="horizontal"&&(T?ce():K());break;case"ArrowUp":d==="vertical"&&ce();break}const ae=L%P;(Ee=B[ae].ref.current)==null||Ee.focus()});return U.jsx(kI,{scope:i,disabled:s,direction:c,orientation:d,children:U.jsx(vE.Slot,{scope:i,children:U.jsx(ur.div,{...v,"data-orientation":d,ref:b,onKeyDown:s?void 0:M})})})}),hg="AccordionItem",[NI,mE]=pg(hg),wT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,value:s,...c}=n,d=vg(hg,i),v=RI(hg,i),g=hE(i),b=mv(),x=s&&v.value.includes(s)||!1,S=d.disabled||n.disabled;return U.jsx(NI,{scope:i,open:x,disabled:S,triggerId:b,children:U.jsx(EI,{"data-orientation":d.orientation,"data-state":DT(x),...g,...c,ref:a,disabled:S,open:x,onOpenChange:T=>{T?v.onItemOpen(s):v.onItemClose(s)}})})});wT.displayName=hg;var ST="AccordionHeader",AT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,...s}=n,c=vg(ns,i),d=mE(ST,i);return U.jsx(ur.h3,{"data-orientation":c.orientation,"data-state":DT(d.open),"data-disabled":d.disabled?"":void 0,...s,ref:a})});AT.displayName=ST;var gE="AccordionTrigger",TT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,...s}=n,c=vg(ns,i),d=mE(gE,i),v=OI(gE,i),g=hE(i);return U.jsx(vE.ItemSlot,{scope:i,children:U.jsx(xI,{"aria-disabled":d.open&&!v.collapsible||void 0,"data-orientation":c.orientation,id:d.triggerId,...g,...s,ref:a})})});TT.displayName=gE;var RT="AccordionContent",OT=Ge.forwardRef((n,a)=>{const{__scopeAccordion:i,...s}=n,c=vg(ns,i),d=mE(RT,i),v=hE(i);return U.jsx(CI,{role:"region","aria-labelledby":d.triggerId,"data-orientation":c.orientation,...v,...s,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});OT.displayName=RT;function DT(n){return n?"open":"closed"}var BI=bT,II=wT,jI=AT,zI=TT,FI=OT;const LI={brandLogos:{filePath:"brandLogos.aa92281d.svg",items:{logoBlack:{viewBox:"0 0 194 32",width:194,height:32},logoBusiness:{viewBox:"0 0 192 32",width:192,height:32},logoGray:{viewBox:"0 0 194 32",width:194,height:32},logoInsurance:{viewBox:"0 0 193 32",width:193,height:32},logoMain:{viewBox:"0 0 192 32",width:192,height:32},logoWhite:{viewBox:"0 0 194 32",width:194,height:32}}},common:{filePath:"common.5922c9ad.svg",items:{arrowCircle:{viewBox:"0 0 32 32",width:32,height:32},arrowLink:{viewBox:"0 0 24 24",width:24,height:24},arrowRight:{viewBox:"0 0 16 17",width:16,height:17},check:{viewBox:"0 0 24 24",width:800,height:800},close:{viewBox:"0 0 24 24",width:24,height:24},warningCircle:{viewBox:"0 0 20 20",width:20,height:20}}}},PI=n=>{const[a,i]=n.split("/"),{filePath:s,items:{[i]:{viewBox:c,width:d,height:v}}}=LI[a],g=d===v?"xy":d>v?"x":"y";return{filePath:s,iconName:i,viewBox:c,axis:g}},ji=({name:n,className:a,...i})=>{const{viewBox:s,filePath:c,iconName:d,axis:v}=PI(n);return U.jsx("svg",{className:dt("select-none fill-current inline-block text-inherit size-6",a),focusable:"false",viewBox:s,"aria-hidden":!0,"data-axis":v,...i,children:U.jsx("use",{href:`/sprites/${c}#${d}`})})},MT=A.forwardRef(({children:n,classes:a,...i},s)=>U.jsx(jI,{className:dt("rounded-sm bg-color-primary-light-default",a==null?void 0:a.header),children:U.jsxs(zI,{ref:s,className:dt("outline-0 bg-color-transparent flex items-center justify-between gap-5 w-full cursor-pointer py-5 px-6 border border-transparent border-solid rounded-sm focus:border-primary-default group",a==null?void 0:a.trigger),...i,children:[U.jsx("div",{className:dt("desk-body-medium-l text-color-dark",a==null?void 0:a.inner),children:n}),U.jsx(ji,{name:"common/arrowCircle",className:dt("group-data-[state=open]:rotate-180 transition-all text-icon-blue-grey-800 size-8",a==null?void 0:a.icon)})]})}));MT.displayName="AccordionHeader";const UI=({accordionItems:n,classes:a,defaultValue:i})=>U.jsx(BI,{className:dt("flex gap-5 flex-col",a==null?void 0:a.accordion),type:"multiple",defaultValue:i,children:n==null?void 0:n.map(({label:s,content:c},d)=>U.jsxs(II,{className:dt("w-full disabled:text-color-dark",a==null?void 0:a.item),value:d.toString(),children:[U.jsx(MT,{classes:a,children:s}),U.jsx(FI,{className:dt("desk-body-regular-l text-color-dark overflow-hidden transition-all p-6 data-[state=closed]:animate-slideUp data-[state=open]:animate-slideDown bg-color-transparent",a==null?void 0:a.content),children:c})]},s))});function YI(n,a=globalThis==null?void 0:globalThis.document){const i=ts(n);A.useEffect(()=>{const s=c=>{c.key==="Escape"&&i(c)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[i,a])}var HI="DismissableLayer",yE="dismissableLayer.update",GI="dismissableLayer.pointerDownOutside",ZI="dismissableLayer.focusOutside",kT,NT=A.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),bE=A.forwardRef((n,a)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:v,onDismiss:g,...b}=n,x=A.useContext(NT),[S,T]=A.useState(null),M=(S==null?void 0:S.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=A.useState({}),N=_r(a,ae=>T(ae)),B=Array.from(x.layers),[j]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),P=B.indexOf(j),L=S?B.indexOf(S):-1,H=x.layersWithOutsidePointerEventsDisabled.size>0,Q=L>=P,K=WI(ae=>{const Ee=ae.target,Qe=[...x.branches].some(Ie=>Ie.contains(Ee));!Q||Qe||(c==null||c(ae),v==null||v(ae),ae.defaultPrevented||g==null||g())},M),ce=QI(ae=>{const Ee=ae.target;[...x.branches].some(Ie=>Ie.contains(Ee))||(d==null||d(ae),v==null||v(ae),ae.defaultPrevented||g==null||g())},M);return YI(ae=>{L===x.layers.size-1&&(s==null||s(ae),!ae.defaultPrevented&&g&&(ae.preventDefault(),g()))},M),A.useEffect(()=>{if(S)return i&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(kT=M.body.style.pointerEvents,M.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(S)),x.layers.add(S),BT(),()=>{i&&x.layersWithOutsidePointerEventsDisabled.size===1&&(M.body.style.pointerEvents=kT)}},[S,M,i,x]),A.useEffect(()=>()=>{S&&(x.layers.delete(S),x.layersWithOutsidePointerEventsDisabled.delete(S),BT())},[S,x]),A.useEffect(()=>{const ae=()=>R({});return document.addEventListener(yE,ae),()=>document.removeEventListener(yE,ae)},[]),U.jsx(ur.div,{...b,ref:N,style:{pointerEvents:H?Q?"auto":"none":void 0,...n.style},onFocusCapture:Yn(n.onFocusCapture,ce.onFocusCapture),onBlurCapture:Yn(n.onBlurCapture,ce.onBlurCapture),onPointerDownCapture:Yn(n.onPointerDownCapture,K.onPointerDownCapture)})});bE.displayName=HI;var VI="DismissableLayerBranch",JI=A.forwardRef((n,a)=>{const i=A.useContext(NT),s=A.useRef(null),c=_r(a,s);return A.useEffect(()=>{const d=s.current;if(d)return i.branches.add(d),()=>{i.branches.delete(d)}},[i.branches]),U.jsx(ur.div,{...n,ref:c})});JI.displayName=VI;function WI(n,a=globalThis==null?void 0:globalThis.document){const i=ts(n),s=A.useRef(!1),c=A.useRef(()=>{});return A.useEffect(()=>{const d=g=>{if(g.target&&!s.current){let b=function(){IT(GI,i,x,{discrete:!0})};const x={originalEvent:g};g.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=b,a.addEventListener("click",c.current,{once:!0})):b()}else a.removeEventListener("click",c.current);s.current=!1},v=window.setTimeout(()=>{a.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(v),a.removeEventListener("pointerdown",d),a.removeEventListener("click",c.current)}},[a,i]),{onPointerDownCapture:()=>s.current=!0}}function QI(n,a=globalThis==null?void 0:globalThis.document){const i=ts(n),s=A.useRef(!1);return A.useEffect(()=>{const c=d=>{d.target&&!s.current&&IT(ZI,i,{originalEvent:d},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function BT(){const n=new CustomEvent(yE);document.dispatchEvent(n)}function IT(n,a,i,{discrete:s}){const c=i.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});a&&c.addEventListener(n,a,{once:!0}),s?fI(c,d):c.dispatchEvent(d)}const KI=["top","right","bottom","left"],il=Math.min,zi=Math.max,mg=Math.round,gg=Math.floor,eu=n=>({x:n,y:n}),qI={left:"right",right:"left",bottom:"top",top:"bottom"},XI={start:"end",end:"start"};function EE(n,a,i){return zi(n,il(a,i))}function ol(n,a){return typeof n=="function"?n(a):n}function rs(n){return n.split("-")[0]}function Wf(n){return n.split("-")[1]}function xE(n){return n==="x"?"y":"x"}function CE(n){return n==="y"?"height":"width"}function tu(n){return["top","bottom"].includes(rs(n))?"y":"x"}function wE(n){return xE(tu(n))}function _I(n,a,i){i===void 0&&(i=!1);const s=Wf(n),c=wE(n),d=CE(c);let v=c==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return a.reference[d]>a.floating[d]&&(v=yg(v)),[v,yg(v)]}function $I(n){const a=yg(n);return[SE(n),a,SE(a)]}function SE(n){return n.replace(/start|end/g,a=>XI[a])}function ej(n,a,i){const s=["left","right"],c=["right","left"],d=["top","bottom"],v=["bottom","top"];switch(n){case"top":case"bottom":return i?a?c:s:a?s:c;case"left":case"right":return a?d:v;default:return[]}}function tj(n,a,i,s){const c=Wf(n);let d=ej(rs(n),i==="start",s);return c&&(d=d.map(v=>v+"-"+c),a&&(d=d.concat(d.map(SE)))),d}function yg(n){return n.replace(/left|right|bottom|top/g,a=>qI[a])}function nj(n){return{top:0,right:0,bottom:0,left:0,...n}}function jT(n){return typeof n!="number"?nj(n):{top:n,right:n,bottom:n,left:n}}function bg(n){const{x:a,y:i,width:s,height:c}=n;return{width:s,height:c,top:i,left:a,right:a+s,bottom:i+c,x:a,y:i}}function zT(n,a,i){let{reference:s,floating:c}=n;const d=tu(a),v=wE(a),g=CE(v),b=rs(a),x=d==="y",S=s.x+s.width/2-c.width/2,T=s.y+s.height/2-c.height/2,M=s[g]/2-c[g]/2;let R;switch(b){case"top":R={x:S,y:s.y-c.height};break;case"bottom":R={x:S,y:s.y+s.height};break;case"right":R={x:s.x+s.width,y:T};break;case"left":R={x:s.x-c.width,y:T};break;default:R={x:s.x,y:s.y}}switch(Wf(a)){case"start":R[v]-=M*(i&&x?-1:1);break;case"end":R[v]+=M*(i&&x?-1:1);break}return R}const rj=async(n,a,i)=>{const{placement:s="bottom",strategy:c="absolute",middleware:d=[],platform:v}=i,g=d.filter(Boolean),b=await(v.isRTL==null?void 0:v.isRTL(a));let x=await v.getElementRects({reference:n,floating:a,strategy:c}),{x:S,y:T}=zT(x,s,b),M=s,R={},N=0;for(let B=0;B<g.length;B++){const{name:j,fn:P}=g[B],{x:L,y:H,data:Q,reset:K}=await P({x:S,y:T,initialPlacement:s,placement:M,strategy:c,middlewareData:R,rects:x,platform:v,elements:{reference:n,floating:a}});S=L??S,T=H??T,R={...R,[j]:{...R[j],...Q}},K&&N<=50&&(N++,typeof K=="object"&&(K.placement&&(M=K.placement),K.rects&&(x=K.rects===!0?await v.getElementRects({reference:n,floating:a,strategy:c}):K.rects),{x:S,y:T}=zT(x,M,b)),B=-1)}return{x:S,y:T,placement:M,strategy:c,middlewareData:R}};async function Qf(n,a){var i;a===void 0&&(a={});const{x:s,y:c,platform:d,rects:v,elements:g,strategy:b}=n,{boundary:x="clippingAncestors",rootBoundary:S="viewport",elementContext:T="floating",altBoundary:M=!1,padding:R=0}=ol(a,n),N=jT(R),j=g[M?T==="floating"?"reference":"floating":T],P=bg(await d.getClippingRect({element:(i=await(d.isElement==null?void 0:d.isElement(j)))==null||i?j:j.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(g.floating)),boundary:x,rootBoundary:S,strategy:b})),L=T==="floating"?{x:s,y:c,width:v.floating.width,height:v.floating.height}:v.reference,H=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g.floating)),Q=await(d.isElement==null?void 0:d.isElement(H))?await(d.getScale==null?void 0:d.getScale(H))||{x:1,y:1}:{x:1,y:1},K=bg(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:g,rect:L,offsetParent:H,strategy:b}):L);return{top:(P.top-K.top+N.top)/Q.y,bottom:(K.bottom-P.bottom+N.bottom)/Q.y,left:(P.left-K.left+N.left)/Q.x,right:(K.right-P.right+N.right)/Q.x}}const aj=n=>({name:"arrow",options:n,async fn(a){const{x:i,y:s,placement:c,rects:d,platform:v,elements:g,middlewareData:b}=a,{element:x,padding:S=0}=ol(n,a)||{};if(x==null)return{};const T=jT(S),M={x:i,y:s},R=wE(c),N=CE(R),B=await v.getDimensions(x),j=R==="y",P=j?"top":"left",L=j?"bottom":"right",H=j?"clientHeight":"clientWidth",Q=d.reference[N]+d.reference[R]-M[R]-d.floating[N],K=M[R]-d.reference[R],ce=await(v.getOffsetParent==null?void 0:v.getOffsetParent(x));let ae=ce?ce[H]:0;(!ae||!await(v.isElement==null?void 0:v.isElement(ce)))&&(ae=g.floating[H]||d.floating[N]);const Ee=Q/2-K/2,Qe=ae/2-B[N]/2-1,Ie=il(T[P],Qe),Ye=il(T[L],Qe),ye=Ie,be=ae-B[N]-Ye,oe=ae/2-B[N]/2+Ee,Pe=EE(ye,oe,be),Ue=!b.arrow&&Wf(c)!=null&&oe!==Pe&&d.reference[N]/2-(oe<ye?Ie:Ye)-B[N]/2<0,he=Ue?oe<ye?oe-ye:oe-be:0;return{[R]:M[R]+he,data:{[R]:Pe,centerOffset:oe-Pe-he,...Ue&&{alignmentOffset:he}},reset:Ue}}}),ij=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var i,s;const{placement:c,middlewareData:d,rects:v,initialPlacement:g,platform:b,elements:x}=a,{mainAxis:S=!0,crossAxis:T=!0,fallbackPlacements:M,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:B=!0,...j}=ol(n,a);if((i=d.arrow)!=null&&i.alignmentOffset)return{};const P=rs(c),L=tu(g),H=rs(g)===g,Q=await(b.isRTL==null?void 0:b.isRTL(x.floating)),K=M||(H||!B?[yg(g)]:$I(g)),ce=N!=="none";!M&&ce&&K.push(...tj(g,B,N,Q));const ae=[g,...K],Ee=await Qf(a,j),Qe=[];let Ie=((s=d.flip)==null?void 0:s.overflows)||[];if(S&&Qe.push(Ee[P]),T){const oe=_I(c,v,Q);Qe.push(Ee[oe[0]],Ee[oe[1]])}if(Ie=[...Ie,{placement:c,overflows:Qe}],!Qe.every(oe=>oe<=0)){var Ye,ye;const oe=(((Ye=d.flip)==null?void 0:Ye.index)||0)+1,Pe=ae[oe];if(Pe)return{data:{index:oe,overflows:Ie},reset:{placement:Pe}};let Ue=(ye=Ie.filter(he=>he.overflows[0]<=0).sort((he,de)=>he.overflows[1]-de.overflows[1])[0])==null?void 0:ye.placement;if(!Ue)switch(R){case"bestFit":{var be;const he=(be=Ie.filter(de=>{if(ce){const we=tu(de.placement);return we===L||we==="y"}return!0}).map(de=>[de.placement,de.overflows.filter(we=>we>0).reduce((we,Te)=>we+Te,0)]).sort((de,we)=>de[1]-we[1])[0])==null?void 0:be[0];he&&(Ue=he);break}case"initialPlacement":Ue=g;break}if(c!==Ue)return{reset:{placement:Ue}}}return{}}}};function FT(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function LT(n){return KI.some(a=>n[a]>=0)}const oj=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:i}=a,{strategy:s="referenceHidden",...c}=ol(n,a);switch(s){case"referenceHidden":{const d=await Qf(a,{...c,elementContext:"reference"}),v=FT(d,i.reference);return{data:{referenceHiddenOffsets:v,referenceHidden:LT(v)}}}case"escaped":{const d=await Qf(a,{...c,altBoundary:!0}),v=FT(d,i.floating);return{data:{escapedOffsets:v,escaped:LT(v)}}}default:return{}}}}};async function lj(n,a){const{placement:i,platform:s,elements:c}=n,d=await(s.isRTL==null?void 0:s.isRTL(c.floating)),v=rs(i),g=Wf(i),b=tu(i)==="y",x=["left","top"].includes(v)?-1:1,S=d&&b?-1:1,T=ol(a,n);let{mainAxis:M,crossAxis:R,alignmentAxis:N}=typeof T=="number"?{mainAxis:T,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...T};return g&&typeof N=="number"&&(R=g==="end"?N*-1:N),b?{x:R*S,y:M*x}:{x:M*x,y:R*S}}const sj=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var i,s;const{x:c,y:d,placement:v,middlewareData:g}=a,b=await lj(a,n);return v===((i=g.offset)==null?void 0:i.placement)&&(s=g.arrow)!=null&&s.alignmentOffset?{}:{x:c+b.x,y:d+b.y,data:{...b,placement:v}}}}},uj=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:i,y:s,placement:c}=a,{mainAxis:d=!0,crossAxis:v=!1,limiter:g={fn:j=>{let{x:P,y:L}=j;return{x:P,y:L}}},...b}=ol(n,a),x={x:i,y:s},S=await Qf(a,b),T=tu(rs(c)),M=xE(T);let R=x[M],N=x[T];if(d){const j=M==="y"?"top":"left",P=M==="y"?"bottom":"right",L=R+S[j],H=R-S[P];R=EE(L,R,H)}if(v){const j=T==="y"?"top":"left",P=T==="y"?"bottom":"right",L=N+S[j],H=N-S[P];N=EE(L,N,H)}const B=g.fn({...a,[M]:R,[T]:N});return{...B,data:{x:B.x-i,y:B.y-s}}}}},cj=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:i,y:s,placement:c,rects:d,middlewareData:v}=a,{offset:g=0,mainAxis:b=!0,crossAxis:x=!0}=ol(n,a),S={x:i,y:s},T=tu(c),M=xE(T);let R=S[M],N=S[T];const B=ol(g,a),j=typeof B=="number"?{mainAxis:B,crossAxis:0}:{mainAxis:0,crossAxis:0,...B};if(b){const H=M==="y"?"height":"width",Q=d.reference[M]-d.floating[H]+j.mainAxis,K=d.reference[M]+d.reference[H]-j.mainAxis;R<Q?R=Q:R>K&&(R=K)}if(x){var P,L;const H=M==="y"?"width":"height",Q=["top","left"].includes(rs(c)),K=d.reference[T]-d.floating[H]+(Q&&((P=v.offset)==null?void 0:P[T])||0)+(Q?0:j.crossAxis),ce=d.reference[T]+d.reference[H]+(Q?0:((L=v.offset)==null?void 0:L[T])||0)-(Q?j.crossAxis:0);N<K?N=K:N>ce&&(N=ce)}return{[M]:R,[T]:N}}}},fj=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){const{placement:i,rects:s,platform:c,elements:d}=a,{apply:v=()=>{},...g}=ol(n,a),b=await Qf(a,g),x=rs(i),S=Wf(i),T=tu(i)==="y",{width:M,height:R}=s.floating;let N,B;x==="top"||x==="bottom"?(N=x,B=S===(await(c.isRTL==null?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(B=x,N=S==="end"?"top":"bottom");const j=R-b.top-b.bottom,P=M-b.left-b.right,L=il(R-b[N],j),H=il(M-b[B],P),Q=!a.middlewareData.shift;let K=L,ce=H;if(T?ce=S||Q?il(H,P):P:K=S||Q?il(L,j):j,Q&&!S){const Ee=zi(b.left,0),Qe=zi(b.right,0),Ie=zi(b.top,0),Ye=zi(b.bottom,0);T?ce=M-2*(Ee!==0||Qe!==0?Ee+Qe:zi(b.left,b.right)):K=R-2*(Ie!==0||Ye!==0?Ie+Ye:zi(b.top,b.bottom))}await v({...a,availableWidth:ce,availableHeight:K});const ae=await c.getDimensions(d.floating);return M!==ae.width||R!==ae.height?{reset:{rects:!0}}:{}}}};function Kf(n){return PT(n)?(n.nodeName||"").toLowerCase():"#document"}function Fi(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function as(n){var a;return(a=(PT(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function PT(n){return n instanceof Node||n instanceof Fi(n).Node}function wa(n){return n instanceof Element||n instanceof Fi(n).Element}function ll(n){return n instanceof HTMLElement||n instanceof Fi(n).HTMLElement}function UT(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fi(n).ShadowRoot}function gv(n){const{overflow:a,overflowX:i,overflowY:s,display:c}=xo(n);return/auto|scroll|overlay|hidden|clip/.test(a+s+i)&&!["inline","contents"].includes(c)}function dj(n){return["table","td","th"].includes(Kf(n))}function Eg(n){return[":popover-open",":modal"].some(a=>{try{return n.matches(a)}catch{return!1}})}function AE(n){const a=TE(),i=wa(n)?xo(n):n;return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!a&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!a&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(i.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(i.contain||"").includes(s))}function pj(n){let a=nu(n);for(;ll(a)&&!qf(a);){if(AE(a))return a;if(Eg(a))return null;a=nu(a)}return null}function TE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qf(n){return["html","body","#document"].includes(Kf(n))}function xo(n){return Fi(n).getComputedStyle(n)}function xg(n){return wa(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function nu(n){if(Kf(n)==="html")return n;const a=n.assignedSlot||n.parentNode||UT(n)&&n.host||as(n);return UT(a)?a.host:a}function YT(n){const a=nu(n);return qf(a)?n.ownerDocument?n.ownerDocument.body:n.body:ll(a)&&gv(a)?a:YT(a)}function yv(n,a,i){var s;a===void 0&&(a=[]),i===void 0&&(i=!0);const c=YT(n),d=c===((s=n.ownerDocument)==null?void 0:s.body),v=Fi(c);if(d){const g=RE(v);return a.concat(v,v.visualViewport||[],gv(c)?c:[],g&&i?yv(g):[])}return a.concat(c,yv(c,[],i))}function RE(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function HT(n){const a=xo(n);let i=parseFloat(a.width)||0,s=parseFloat(a.height)||0;const c=ll(n),d=c?n.offsetWidth:i,v=c?n.offsetHeight:s,g=mg(i)!==d||mg(s)!==v;return g&&(i=d,s=v),{width:i,height:s,$:g}}function OE(n){return wa(n)?n:n.contextElement}function Xf(n){const a=OE(n);if(!ll(a))return eu(1);const i=a.getBoundingClientRect(),{width:s,height:c,$:d}=HT(a);let v=(d?mg(i.width):i.width)/s,g=(d?mg(i.height):i.height)/c;return(!v||!Number.isFinite(v))&&(v=1),(!g||!Number.isFinite(g))&&(g=1),{x:v,y:g}}const vj=eu(0);function GT(n){const a=Fi(n);return!TE()||!a.visualViewport?vj:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function hj(n,a,i){return a===void 0&&(a=!1),!i||a&&i!==Fi(n)?!1:a}function wc(n,a,i,s){a===void 0&&(a=!1),i===void 0&&(i=!1);const c=n.getBoundingClientRect(),d=OE(n);let v=eu(1);a&&(s?wa(s)&&(v=Xf(s)):v=Xf(n));const g=hj(d,i,s)?GT(d):eu(0);let b=(c.left+g.x)/v.x,x=(c.top+g.y)/v.y,S=c.width/v.x,T=c.height/v.y;if(d){const M=Fi(d),R=s&&wa(s)?Fi(s):s;let N=M,B=RE(N);for(;B&&s&&R!==N;){const j=Xf(B),P=B.getBoundingClientRect(),L=xo(B),H=P.left+(B.clientLeft+parseFloat(L.paddingLeft))*j.x,Q=P.top+(B.clientTop+parseFloat(L.paddingTop))*j.y;b*=j.x,x*=j.y,S*=j.x,T*=j.y,b+=H,x+=Q,N=Fi(B),B=RE(N)}}return bg({width:S,height:T,x:b,y:x})}function mj(n){let{elements:a,rect:i,offsetParent:s,strategy:c}=n;const d=c==="fixed",v=as(s),g=a?Eg(a.floating):!1;if(s===v||g&&d)return i;let b={scrollLeft:0,scrollTop:0},x=eu(1);const S=eu(0),T=ll(s);if((T||!T&&!d)&&((Kf(s)!=="body"||gv(v))&&(b=xg(s)),ll(s))){const M=wc(s);x=Xf(s),S.x=M.x+s.clientLeft,S.y=M.y+s.clientTop}return{width:i.width*x.x,height:i.height*x.y,x:i.x*x.x-b.scrollLeft*x.x+S.x,y:i.y*x.y-b.scrollTop*x.y+S.y}}function gj(n){return Array.from(n.getClientRects())}function ZT(n){return wc(as(n)).left+xg(n).scrollLeft}function yj(n){const a=as(n),i=xg(n),s=n.ownerDocument.body,c=zi(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),d=zi(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let v=-i.scrollLeft+ZT(n);const g=-i.scrollTop;return xo(s).direction==="rtl"&&(v+=zi(a.clientWidth,s.clientWidth)-c),{width:c,height:d,x:v,y:g}}function bj(n,a){const i=Fi(n),s=as(n),c=i.visualViewport;let d=s.clientWidth,v=s.clientHeight,g=0,b=0;if(c){d=c.width,v=c.height;const x=TE();(!x||x&&a==="fixed")&&(g=c.offsetLeft,b=c.offsetTop)}return{width:d,height:v,x:g,y:b}}function Ej(n,a){const i=wc(n,!0,a==="fixed"),s=i.top+n.clientTop,c=i.left+n.clientLeft,d=ll(n)?Xf(n):eu(1),v=n.clientWidth*d.x,g=n.clientHeight*d.y,b=c*d.x,x=s*d.y;return{width:v,height:g,x:b,y:x}}function VT(n,a,i){let s;if(a==="viewport")s=bj(n,i);else if(a==="document")s=yj(as(n));else if(wa(a))s=Ej(a,i);else{const c=GT(n);s={...a,x:a.x-c.x,y:a.y-c.y}}return bg(s)}function JT(n,a){const i=nu(n);return i===a||!wa(i)||qf(i)?!1:xo(i).position==="fixed"||JT(i,a)}function xj(n,a){const i=a.get(n);if(i)return i;let s=yv(n,[],!1).filter(g=>wa(g)&&Kf(g)!=="body"),c=null;const d=xo(n).position==="fixed";let v=d?nu(n):n;for(;wa(v)&&!qf(v);){const g=xo(v),b=AE(v);!b&&g.position==="fixed"&&(c=null),(d?!b&&!c:!b&&g.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||gv(v)&&!b&&JT(n,v))?s=s.filter(S=>S!==v):c=g,v=nu(v)}return a.set(n,s),s}function Cj(n){let{element:a,boundary:i,rootBoundary:s,strategy:c}=n;const v=[...i==="clippingAncestors"?Eg(a)?[]:xj(a,this._c):[].concat(i),s],g=v[0],b=v.reduce((x,S)=>{const T=VT(a,S,c);return x.top=zi(T.top,x.top),x.right=il(T.right,x.right),x.bottom=il(T.bottom,x.bottom),x.left=zi(T.left,x.left),x},VT(a,g,c));return{width:b.right-b.left,height:b.bottom-b.top,x:b.left,y:b.top}}function wj(n){const{width:a,height:i}=HT(n);return{width:a,height:i}}function Sj(n,a,i){const s=ll(a),c=as(a),d=i==="fixed",v=wc(n,!0,d,a);let g={scrollLeft:0,scrollTop:0};const b=eu(0);if(s||!s&&!d)if((Kf(a)!=="body"||gv(c))&&(g=xg(a)),s){const T=wc(a,!0,d,a);b.x=T.x+a.clientLeft,b.y=T.y+a.clientTop}else c&&(b.x=ZT(c));const x=v.left+g.scrollLeft-b.x,S=v.top+g.scrollTop-b.y;return{x,y:S,width:v.width,height:v.height}}function DE(n){return xo(n).position==="static"}function WT(n,a){return!ll(n)||xo(n).position==="fixed"?null:a?a(n):n.offsetParent}function QT(n,a){const i=Fi(n);if(Eg(n))return i;if(!ll(n)){let c=nu(n);for(;c&&!qf(c);){if(wa(c)&&!DE(c))return c;c=nu(c)}return i}let s=WT(n,a);for(;s&&dj(s)&&DE(s);)s=WT(s,a);return s&&qf(s)&&DE(s)&&!AE(s)?i:s||pj(n)||i}const Aj=async function(n){const a=this.getOffsetParent||QT,i=this.getDimensions,s=await i(n.floating);return{reference:Sj(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Tj(n){return xo(n).direction==="rtl"}const Rj={convertOffsetParentRelativeRectToViewportRelativeRect:mj,getDocumentElement:as,getClippingRect:Cj,getOffsetParent:QT,getElementRects:Aj,getClientRects:gj,getDimensions:wj,getScale:Xf,isElement:wa,isRTL:Tj};function Oj(n,a){let i=null,s;const c=as(n);function d(){var g;clearTimeout(s),(g=i)==null||g.disconnect(),i=null}function v(g,b){g===void 0&&(g=!1),b===void 0&&(b=1),d();const{left:x,top:S,width:T,height:M}=n.getBoundingClientRect();if(g||a(),!T||!M)return;const R=gg(S),N=gg(c.clientWidth-(x+T)),B=gg(c.clientHeight-(S+M)),j=gg(x),L={rootMargin:-R+"px "+-N+"px "+-B+"px "+-j+"px",threshold:zi(0,il(1,b))||1};let H=!0;function Q(K){const ce=K[0].intersectionRatio;if(ce!==b){if(!H)return v();ce?v(!1,ce):s=setTimeout(()=>{v(!1,1e-7)},1e3)}H=!1}try{i=new IntersectionObserver(Q,{...L,root:c.ownerDocument})}catch{i=new IntersectionObserver(Q,L)}i.observe(n)}return v(!0),d}function KT(n,a,i,s){s===void 0&&(s={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:v=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:b=!1}=s,x=OE(n),S=c||d?[...x?yv(x):[],...yv(a)]:[];S.forEach(P=>{c&&P.addEventListener("scroll",i,{passive:!0}),d&&P.addEventListener("resize",i)});const T=x&&g?Oj(x,i):null;let M=-1,R=null;v&&(R=new ResizeObserver(P=>{let[L]=P;L&&L.target===x&&R&&(R.unobserve(a),cancelAnimationFrame(M),M=requestAnimationFrame(()=>{var H;(H=R)==null||H.observe(a)})),i()}),x&&!b&&R.observe(x),R.observe(a));let N,B=b?wc(n):null;b&&j();function j(){const P=wc(n);B&&(P.x!==B.x||P.y!==B.y||P.width!==B.width||P.height!==B.height)&&i(),B=P,N=requestAnimationFrame(j)}return i(),()=>{var P;S.forEach(L=>{c&&L.removeEventListener("scroll",i),d&&L.removeEventListener("resize",i)}),T==null||T(),(P=R)==null||P.disconnect(),R=null,b&&cancelAnimationFrame(N)}}const ME=Qf,Dj=sj,Mj=uj,kj=ij,Nj=fj,Bj=oj,qT=aj,Ij=cj,jj=(n,a,i)=>{const s=new Map,c={platform:Rj,...i},d={...c.platform,_c:s};return rj(n,a,{...c,platform:d})};var Cg=typeof document<"u"?A.useLayoutEffect:A.useEffect;function wg(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let i,s,c;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==a.length)return!1;for(s=i;s--!==0;)if(!wg(n[s],a[s]))return!1;return!0}if(c=Object.keys(n),i=c.length,i!==Object.keys(a).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(a,c[s]))return!1;for(s=i;s--!==0;){const d=c[s];if(!(d==="_owner"&&n.$$typeof)&&!wg(n[d],a[d]))return!1}return!0}return n!==n&&a!==a}function XT(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function _T(n,a){const i=XT(n);return Math.round(a*i)/i}function $T(n){const a=A.useRef(n);return Cg(()=>{a.current=n}),a}function eR(n){n===void 0&&(n={});const{placement:a="bottom",strategy:i="absolute",middleware:s=[],platform:c,elements:{reference:d,floating:v}={},transform:g=!0,whileElementsMounted:b,open:x}=n,[S,T]=A.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[M,R]=A.useState(s);wg(M,s)||R(s);const[N,B]=A.useState(null),[j,P]=A.useState(null),L=A.useCallback(he=>{he!==ce.current&&(ce.current=he,B(he))},[]),H=A.useCallback(he=>{he!==ae.current&&(ae.current=he,P(he))},[]),Q=d||N,K=v||j,ce=A.useRef(null),ae=A.useRef(null),Ee=A.useRef(S),Qe=b!=null,Ie=$T(b),Ye=$T(c),ye=A.useCallback(()=>{if(!ce.current||!ae.current)return;const he={placement:a,strategy:i,middleware:M};Ye.current&&(he.platform=Ye.current),jj(ce.current,ae.current,he).then(de=>{const we={...de,isPositioned:!0};be.current&&!wg(Ee.current,we)&&(Ee.current=we,oa.flushSync(()=>{T(we)}))})},[M,a,i,Ye]);Cg(()=>{x===!1&&Ee.current.isPositioned&&(Ee.current.isPositioned=!1,T(he=>({...he,isPositioned:!1})))},[x]);const be=A.useRef(!1);Cg(()=>(be.current=!0,()=>{be.current=!1}),[]),Cg(()=>{if(Q&&(ce.current=Q),K&&(ae.current=K),Q&&K){if(Ie.current)return Ie.current(Q,K,ye);ye()}},[Q,K,ye,Ie,Qe]);const oe=A.useMemo(()=>({reference:ce,floating:ae,setReference:L,setFloating:H}),[L,H]),Pe=A.useMemo(()=>({reference:Q,floating:K}),[Q,K]),Ue=A.useMemo(()=>{const he={position:i,left:0,top:0};if(!Pe.floating)return he;const de=_T(Pe.floating,S.x),we=_T(Pe.floating,S.y);return g?{...he,transform:"translate("+de+"px, "+we+"px)",...XT(Pe.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:de,top:we}},[i,g,Pe.floating,S.x,S.y]);return A.useMemo(()=>({...S,update:ye,refs:oe,elements:Pe,floatingStyles:Ue}),[S,ye,oe,Pe,Ue])}const zj=n=>{function a(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:s,padding:c}=typeof n=="function"?n(i):n;return s&&a(s)?s.current!=null?qT({element:s.current,padding:c}).fn(i):{}:s?qT({element:s,padding:c}).fn(i):{}}}},kE=(n,a)=>({...Dj(n),options:[n,a]}),tR=(n,a)=>({...Mj(n),options:[n,a]}),Fj=(n,a)=>({...Ij(n),options:[n,a]}),nR=(n,a)=>({...kj(n),options:[n,a]}),rR=(n,a)=>({...Nj(n),options:[n,a]}),Lj=(n,a)=>({...Bj(n),options:[n,a]}),Pj=(n,a)=>({...zj(n),options:[n,a]});var Uj="Arrow",aR=A.forwardRef((n,a)=>{const{children:i,width:s=10,height:c=5,...d}=n;return U.jsx(ur.svg,{...d,ref:a,width:s,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:U.jsx("polygon",{points:"0,0 30,0 15,10"})})});aR.displayName=Uj;var Yj=aR;function NE(n){const[a,i]=A.useState(void 0);return $s(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let v,g;if("borderBoxSize"in d){const b=d.borderBoxSize,x=Array.isArray(b)?b[0]:b;v=x.inlineSize,g=x.blockSize}else v=n.offsetWidth,g=n.offsetHeight;i({width:v,height:g})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else i(void 0)},[n]),a}var BE="Popper",[iR,Sg]=al(BE),[Hj,oR]=iR(BE),lR=n=>{const{__scopePopper:a,children:i}=n,[s,c]=A.useState(null);return U.jsx(Hj,{scope:a,anchor:s,onAnchorChange:c,children:i})};lR.displayName=BE;var sR="PopperAnchor",uR=A.forwardRef((n,a)=>{const{__scopePopper:i,virtualRef:s,...c}=n,d=oR(sR,i),v=A.useRef(null),g=_r(a,v);return A.useEffect(()=>{d.onAnchorChange((s==null?void 0:s.current)||v.current)}),s?null:U.jsx(ur.div,{...c,ref:g})});uR.displayName=sR;var IE="PopperContent",[Gj,Zj]=iR(IE),cR=A.forwardRef((n,a)=>{var st,it,wt,cn,Ln,Xn;const{__scopePopper:i,side:s="bottom",sideOffset:c=0,align:d="center",alignOffset:v=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:S=0,sticky:T="partial",hideWhenDetached:M=!1,updatePositionStrategy:R="optimized",onPlaced:N,...B}=n,j=oR(IE,i),[P,L]=A.useState(null),H=_r(a,qe=>L(qe)),[Q,K]=A.useState(null),ce=NE(Q),ae=(ce==null?void 0:ce.width)??0,Ee=(ce==null?void 0:ce.height)??0,Qe=s+(d!=="center"?"-"+d:""),Ie=typeof S=="number"?S:{top:0,right:0,bottom:0,left:0,...S},Ye=Array.isArray(x)?x:[x],ye=Ye.length>0,be={padding:Ie,boundary:Ye.filter(Jj),altBoundary:ye},{refs:oe,floatingStyles:Pe,placement:Ue,isPositioned:he,middlewareData:de}=eR({strategy:"fixed",placement:Qe,whileElementsMounted:(...qe)=>KT(...qe,{animationFrame:R==="always"}),elements:{reference:j.anchor},middleware:[kE({mainAxis:c+Ee,alignmentAxis:v}),b&&tR({mainAxis:!0,crossAxis:!1,limiter:T==="partial"?Fj():void 0,...be}),b&&nR({...be}),rR({...be,apply:({elements:qe,rects:Bt,availableWidth:on,availableHeight:wn})=>{const{width:Fe,height:F}=Bt.reference,W=qe.floating.style;W.setProperty("--radix-popper-available-width",`${on}px`),W.setProperty("--radix-popper-available-height",`${wn}px`),W.setProperty("--radix-popper-anchor-width",`${Fe}px`),W.setProperty("--radix-popper-anchor-height",`${F}px`)}}),Q&&Pj({element:Q,padding:g}),Wj({arrowWidth:ae,arrowHeight:Ee}),M&&Lj({strategy:"referenceHidden",...be})]}),[we,Te]=pR(Ue),V=ts(N);$s(()=>{he&&(V==null||V())},[he,V]);const fe=(st=de.arrow)==null?void 0:st.x,Se=(it=de.arrow)==null?void 0:it.y,rt=((wt=de.arrow)==null?void 0:wt.centerOffset)!==0,[lt,pt]=A.useState();return $s(()=>{P&&pt(window.getComputedStyle(P).zIndex)},[P]),U.jsx("div",{ref:oe.setFloating,"data-radix-popper-content-wrapper":"",style:{...Pe,transform:he?Pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:lt,"--radix-popper-transform-origin":[(cn=de.transformOrigin)==null?void 0:cn.x,(Ln=de.transformOrigin)==null?void 0:Ln.y].join(" "),...((Xn=de.hide)==null?void 0:Xn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:U.jsx(Gj,{scope:i,placedSide:we,onArrowChange:K,arrowX:fe,arrowY:Se,shouldHideArrow:rt,children:U.jsx(ur.div,{"data-side":we,"data-align":Te,...B,ref:H,style:{...B.style,animation:he?void 0:"none"}})})})});cR.displayName=IE;var fR="PopperArrow",Vj={top:"bottom",right:"left",bottom:"top",left:"right"},dR=A.forwardRef(function(a,i){const{__scopePopper:s,...c}=a,d=Zj(fR,s),v=Vj[d.placedSide];return U.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[v]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:U.jsx(Yj,{...c,ref:i,style:{...c.style,display:"block"}})})});dR.displayName=fR;function Jj(n){return n!==null}var Wj=n=>({name:"transformOrigin",options:n,fn(a){var j,P,L;const{placement:i,rects:s,middlewareData:c}=a,v=((j=c.arrow)==null?void 0:j.centerOffset)!==0,g=v?0:n.arrowWidth,b=v?0:n.arrowHeight,[x,S]=pR(i),T={start:"0%",center:"50%",end:"100%"}[S],M=(((P=c.arrow)==null?void 0:P.x)??0)+g/2,R=(((L=c.arrow)==null?void 0:L.y)??0)+b/2;let N="",B="";return x==="bottom"?(N=v?T:`${M}px`,B=`${-b}px`):x==="top"?(N=v?T:`${M}px`,B=`${s.floating.height+b}px`):x==="right"?(N=`${-b}px`,B=v?T:`${R}px`):x==="left"&&(N=`${s.floating.width+b}px`,B=v?T:`${R}px`),{data:{x:N,y:B}}}});function pR(n){const[a,i="center"]=n.split("-");return[a,i]}var vR=lR,jE=uR,hR=cR,mR=dR,Qj="Portal",gR=A.forwardRef((n,a)=>{var g;const{container:i,...s}=n,[c,d]=A.useState(!1);$s(()=>d(!0),[]);const v=i||c&&((g=globalThis==null?void 0:globalThis.document)==null?void 0:g.body);return v?uI.createPortal(U.jsx(ur.div,{...s,ref:a}),v):null});gR.displayName=Qj;var Kj="VisuallyHidden",yR=A.forwardRef((n,a)=>U.jsx(ur.span,{...n,ref:a,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",...n.style}}));yR.displayName=Kj;var qj=yR,[Ag,z3]=al("Tooltip",[Sg]),Tg=Sg(),bR="TooltipProvider",Xj=700,zE="tooltip.open",[_j,FE]=Ag(bR),ER=n=>{const{__scopeTooltip:a,delayDuration:i=Xj,skipDelayDuration:s=300,disableHoverableContent:c=!1,children:d}=n,[v,g]=A.useState(!0),b=A.useRef(!1),x=A.useRef(0);return A.useEffect(()=>{const S=x.current;return()=>window.clearTimeout(S)},[]),U.jsx(_j,{scope:a,isOpenDelayed:v,delayDuration:i,onOpen:A.useCallback(()=>{window.clearTimeout(x.current),g(!1)},[]),onClose:A.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>g(!0),s)},[s]),isPointerInTransitRef:b,onPointerInTransitChange:A.useCallback(S=>{b.current=S},[]),disableHoverableContent:c,children:d})};ER.displayName=bR;var Rg="Tooltip",[$j,Og]=Ag(Rg),xR=n=>{const{__scopeTooltip:a,children:i,open:s,defaultOpen:c=!1,onOpenChange:d,disableHoverableContent:v,delayDuration:g}=n,b=FE(Rg,n.__scopeTooltip),x=Tg(a),[S,T]=A.useState(null),M=mv(),R=A.useRef(0),N=v??b.disableHoverableContent,B=g??b.delayDuration,j=A.useRef(!1),[P=!1,L]=_s({prop:s,defaultProp:c,onChange:ae=>{ae?(b.onOpen(),document.dispatchEvent(new CustomEvent(zE))):b.onClose(),d==null||d(ae)}}),H=A.useMemo(()=>P?j.current?"delayed-open":"instant-open":"closed",[P]),Q=A.useCallback(()=>{window.clearTimeout(R.current),j.current=!1,L(!0)},[L]),K=A.useCallback(()=>{window.clearTimeout(R.current),L(!1)},[L]),ce=A.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>{j.current=!0,L(!0)},B)},[B,L]);return A.useEffect(()=>()=>window.clearTimeout(R.current),[]),U.jsx(vR,{...x,children:U.jsx($j,{scope:a,contentId:M,open:P,stateAttribute:H,trigger:S,onTriggerChange:T,onTriggerEnter:A.useCallback(()=>{b.isOpenDelayed?ce():Q()},[b.isOpenDelayed,ce,Q]),onTriggerLeave:A.useCallback(()=>{N?K():window.clearTimeout(R.current)},[K,N]),onOpen:Q,onClose:K,disableHoverableContent:N,children:i})})};xR.displayName=Rg;var LE="TooltipTrigger",CR=A.forwardRef((n,a)=>{const{__scopeTooltip:i,...s}=n,c=Og(LE,i),d=FE(LE,i),v=Tg(i),g=A.useRef(null),b=_r(a,g,c.onTriggerChange),x=A.useRef(!1),S=A.useRef(!1),T=A.useCallback(()=>x.current=!1,[]);return A.useEffect(()=>()=>document.removeEventListener("pointerup",T),[T]),U.jsx(jE,{asChild:!0,...v,children:U.jsx(ur.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...s,ref:b,onPointerMove:Yn(n.onPointerMove,M=>{M.pointerType!=="touch"&&!S.current&&!d.isPointerInTransitRef.current&&(c.onTriggerEnter(),S.current=!0)}),onPointerLeave:Yn(n.onPointerLeave,()=>{c.onTriggerLeave(),S.current=!1}),onPointerDown:Yn(n.onPointerDown,()=>{x.current=!0,document.addEventListener("pointerup",T,{once:!0})}),onFocus:Yn(n.onFocus,()=>{x.current||c.onOpen()}),onBlur:Yn(n.onBlur,c.onClose),onClick:Yn(n.onClick,c.onClose)})})});CR.displayName=LE;var ez="TooltipPortal",[F3,tz]=Ag(ez,{forceMount:void 0}),_f="TooltipContent",wR=A.forwardRef((n,a)=>{const i=tz(_f,n.__scopeTooltip),{forceMount:s=i.forceMount,side:c="top",...d}=n,v=Og(_f,n.__scopeTooltip);return U.jsx(Cc,{present:s||v.open,children:v.disableHoverableContent?U.jsx(SR,{side:c,...d,ref:a}):U.jsx(nz,{side:c,...d,ref:a})})}),nz=A.forwardRef((n,a)=>{const i=Og(_f,n.__scopeTooltip),s=FE(_f,n.__scopeTooltip),c=A.useRef(null),d=_r(a,c),[v,g]=A.useState(null),{trigger:b,onClose:x}=i,S=c.current,{onPointerInTransitChange:T}=s,M=A.useCallback(()=>{g(null),T(!1)},[T]),R=A.useCallback((N,B)=>{const j=N.currentTarget,P={x:N.clientX,y:N.clientY},L=iz(P,j.getBoundingClientRect()),H=oz(P,L),Q=lz(B.getBoundingClientRect()),K=uz([...H,...Q]);g(K),T(!0)},[T]);return A.useEffect(()=>()=>M(),[M]),A.useEffect(()=>{if(b&&S){const N=j=>R(j,S),B=j=>R(j,b);return b.addEventListener("pointerleave",N),S.addEventListener("pointerleave",B),()=>{b.removeEventListener("pointerleave",N),S.removeEventListener("pointerleave",B)}}},[b,S,R,M]),A.useEffect(()=>{if(v){const N=B=>{const j=B.target,P={x:B.clientX,y:B.clientY},L=(b==null?void 0:b.contains(j))||(S==null?void 0:S.contains(j)),H=!sz(P,v);L?M():H&&(M(),x())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[b,S,v,x,M]),U.jsx(SR,{...n,ref:d})}),[rz,az]=Ag(Rg,{isInside:!1}),SR=A.forwardRef((n,a)=>{const{__scopeTooltip:i,children:s,"aria-label":c,onEscapeKeyDown:d,onPointerDownOutside:v,...g}=n,b=Og(_f,i),x=Tg(i),{onClose:S}=b;return A.useEffect(()=>(document.addEventListener(zE,S),()=>document.removeEventListener(zE,S)),[S]),A.useEffect(()=>{if(b.trigger){const T=M=>{const R=M.target;R!=null&&R.contains(b.trigger)&&S()};return window.addEventListener("scroll",T,{capture:!0}),()=>window.removeEventListener("scroll",T,{capture:!0})}},[b.trigger,S]),U.jsx(bE,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:v,onFocusOutside:T=>T.preventDefault(),onDismiss:S,children:U.jsxs(hR,{"data-state":b.stateAttribute,...x,...g,ref:a,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[U.jsx(iT,{children:s}),U.jsx(rz,{scope:i,isInside:!0,children:U.jsx(qj,{id:b.contentId,role:"tooltip",children:c||s})})]})})});wR.displayName=_f;var AR="TooltipArrow",TR=A.forwardRef((n,a)=>{const{__scopeTooltip:i,...s}=n,c=Tg(i);return az(AR,i).isInside?null:U.jsx(mR,{...c,...s,ref:a})});TR.displayName=AR;function iz(n,a){const i=Math.abs(a.top-n.y),s=Math.abs(a.bottom-n.y),c=Math.abs(a.right-n.x),d=Math.abs(a.left-n.x);switch(Math.min(i,s,c,d)){case d:return"left";case c:return"right";case i:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function oz(n,a,i=5){const s=[];switch(a){case"top":s.push({x:n.x-i,y:n.y+i},{x:n.x+i,y:n.y+i});break;case"bottom":s.push({x:n.x-i,y:n.y-i},{x:n.x+i,y:n.y-i});break;case"left":s.push({x:n.x+i,y:n.y-i},{x:n.x+i,y:n.y+i});break;case"right":s.push({x:n.x-i,y:n.y-i},{x:n.x-i,y:n.y+i});break}return s}function lz(n){const{top:a,right:i,bottom:s,left:c}=n;return[{x:c,y:a},{x:i,y:a},{x:i,y:s},{x:c,y:s}]}function sz(n,a){const{x:i,y:s}=n;let c=!1;for(let d=0,v=a.length-1;d<a.length;v=d++){const g=a[d].x,b=a[d].y,x=a[v].x,S=a[v].y;b>s!=S>s&&i<(x-g)*(s-b)/(S-b)+g&&(c=!c)}return c}function uz(n){const a=n.slice();return a.sort((i,s)=>i.x<s.x?-1:i.x>s.x?1:i.y<s.y?-1:i.y>s.y?1:0),cz(a)}function cz(n){if(n.length<=1)return n.slice();const a=[];for(let s=0;s<n.length;s++){const c=n[s];for(;a.length>=2;){const d=a[a.length-1],v=a[a.length-2];if((d.x-v.x)*(c.y-v.y)>=(d.y-v.y)*(c.x-v.x))a.pop();else break}a.push(c)}a.pop();const i=[];for(let s=n.length-1;s>=0;s--){const c=n[s];for(;i.length>=2;){const d=i[i.length-1],v=i[i.length-2];if((d.x-v.x)*(c.y-v.y)>=(d.y-v.y)*(c.x-v.x))i.pop();else break}i.push(c)}return i.pop(),a.length===1&&i.length===1&&a[0].x===i[0].x&&a[0].y===i[0].y?a:a.concat(i)}var fz=ER,dz=xR,pz=CR,vz=wR,hz=TR;const mz=({triggerElement:n,children:a,delayDuration:i=250,sideOffset:s=6,align:c="center",side:d="top",defaultOpen:v=!1,classes:g,...b})=>U.jsx(fz,{children:U.jsxs(dz,{defaultOpen:v,delayDuration:i,children:[U.jsx(pz,{asChild:!0,className:dt("cursor-pointer",g==null?void 0:g.trigger),children:n}),U.jsxs(vz,{onPointerDownOutside:x=>x.preventDefault(),className:dt("bg-color-white text-color-dark desk-body-regular-m w-48 p-4 rounded-sm origin-center shadow-sm animate-scale-in",g==null?void 0:g.content),sideOffset:s,align:c,side:d,...b,children:[a,U.jsx(hz,{width:12,height:6,className:dt("fill-white",g==null?void 0:g.arrow)})]})]})});var PE=0;function gz(){A.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??RR()),document.body.insertAdjacentElement("beforeend",n[1]??RR()),PE++,()=>{PE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),PE--}},[])}function RR(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",n}var UE="focusScope.autoFocusOnMount",YE="focusScope.autoFocusOnUnmount",OR={bubbles:!1,cancelable:!0},yz="FocusScope",DR=A.forwardRef((n,a)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...v}=n,[g,b]=A.useState(null),x=ts(c),S=ts(d),T=A.useRef(null),M=_r(a,B=>b(B)),R=A.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;A.useEffect(()=>{if(s){let B=function(H){if(R.paused||!g)return;const Q=H.target;g.contains(Q)?T.current=Q:ru(T.current,{select:!0})},j=function(H){if(R.paused||!g)return;const Q=H.relatedTarget;Q!==null&&(g.contains(Q)||ru(T.current,{select:!0}))},P=function(H){if(document.activeElement===document.body)for(const K of H)K.removedNodes.length>0&&ru(g)};document.addEventListener("focusin",B),document.addEventListener("focusout",j);const L=new MutationObserver(P);return g&&L.observe(g,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",B),document.removeEventListener("focusout",j),L.disconnect()}}},[s,g,R.paused]),A.useEffect(()=>{if(g){NR.add(R);const B=document.activeElement;if(!g.contains(B)){const P=new CustomEvent(UE,OR);g.addEventListener(UE,x),g.dispatchEvent(P),P.defaultPrevented||(bz(Sz(MR(g)),{select:!0}),document.activeElement===B&&ru(g))}return()=>{g.removeEventListener(UE,x),setTimeout(()=>{const P=new CustomEvent(YE,OR);g.addEventListener(YE,S),g.dispatchEvent(P),P.defaultPrevented||ru(B??document.body,{select:!0}),g.removeEventListener(YE,S),NR.remove(R)},0)}}},[g,x,S,R]);const N=A.useCallback(B=>{if(!i&&!s||R.paused)return;const j=B.key==="Tab"&&!B.altKey&&!B.ctrlKey&&!B.metaKey,P=document.activeElement;if(j&&P){const L=B.currentTarget,[H,Q]=Ez(L);H&&Q?!B.shiftKey&&P===Q?(B.preventDefault(),i&&ru(H,{select:!0})):B.shiftKey&&P===H&&(B.preventDefault(),i&&ru(Q,{select:!0})):P===L&&B.preventDefault()}},[i,s,R.paused]);return U.jsx(ur.div,{tabIndex:-1,...v,ref:M,onKeyDown:N})});DR.displayName=yz;function bz(n,{select:a=!1}={}){const i=document.activeElement;for(const s of n)if(ru(s,{select:a}),document.activeElement!==i)return}function Ez(n){const a=MR(n),i=kR(a,n),s=kR(a.reverse(),n);return[i,s]}function MR(n){const a=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const c=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||c?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)a.push(i.currentNode);return a}function kR(n,a){for(const i of n)if(!xz(i,{upTo:a}))return i}function xz(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Cz(n){return n instanceof HTMLInputElement&&"select"in n}function ru(n,{select:a=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&Cz(n)&&a&&n.select()}}var NR=wz();function wz(){let n=[];return{add(a){const i=n[0];a!==i&&(i==null||i.pause()),n=BR(n,a),n.unshift(a)},remove(a){var i;n=BR(n,a),(i=n[0])==null||i.resume()}}}function BR(n,a){const i=[...n],s=i.indexOf(a);return s!==-1&&i.splice(s,1),i}function Sz(n){return n.filter(a=>a.tagName!=="A")}var Az=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},$f=new WeakMap,Dg=new WeakMap,Mg={},HE=0,IR=function(n){return n&&(n.host||IR(n.parentNode))},Tz=function(n,a){return a.map(function(i){if(n.contains(i))return i;var s=IR(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},Rz=function(n,a,i,s){var c=Tz(a,Array.isArray(n)?n:[n]);Mg[i]||(Mg[i]=new WeakMap);var d=Mg[i],v=[],g=new Set,b=new Set(c),x=function(T){!T||g.has(T)||(g.add(T),x(T.parentNode))};c.forEach(x);var S=function(T){!T||b.has(T)||Array.prototype.forEach.call(T.children,function(M){if(g.has(M))S(M);else try{var R=M.getAttribute(s),N=R!==null&&R!=="false",B=($f.get(M)||0)+1,j=(d.get(M)||0)+1;$f.set(M,B),d.set(M,j),v.push(M),B===1&&N&&Dg.set(M,!0),j===1&&M.setAttribute(i,"true"),N||M.setAttribute(s,"true")}catch(P){console.error("aria-hidden: cannot operate on ",M,P)}})};return S(a),g.clear(),HE++,function(){v.forEach(function(T){var M=$f.get(T)-1,R=d.get(T)-1;$f.set(T,M),d.set(T,R),M||(Dg.has(T)||T.removeAttribute(s),Dg.delete(T)),R||T.removeAttribute(i)}),HE--,HE||($f=new WeakMap,$f=new WeakMap,Dg=new WeakMap,Mg={})}},Oz=function(n,a,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),c=Az(n);return c?(s.push.apply(s,Array.from(c.querySelectorAll("[aria-live]"))),Rz(s,c,i,"aria-hidden")):function(){return null}},sl=function(){return sl=Object.assign||function(a){for(var i,s=1,c=arguments.length;s<c;s++){i=arguments[s];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(a[d]=i[d])}return a},sl.apply(this,arguments)};function jR(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,s=Object.getOwnPropertySymbols(n);c<s.length;c++)a.indexOf(s[c])<0&&Object.prototype.propertyIsEnumerable.call(n,s[c])&&(i[s[c]]=n[s[c]]);return i}function Dz(n,a,i){if(i||arguments.length===2)for(var s=0,c=a.length,d;s<c;s++)(d||!(s in a))&&(d||(d=Array.prototype.slice.call(a,0,s)),d[s]=a[s]);return n.concat(d||Array.prototype.slice.call(a))}typeof SuppressedError=="function"&&SuppressedError;var kg="right-scroll-bar-position",Ng="width-before-scroll-bar",Mz="with-scroll-bars-hidden",kz="--removed-body-scroll-bar-size";function GE(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function Nz(n,a){var i=A.useState(function(){return{value:n,callback:a,facade:{get current(){return i.value},set current(s){var c=i.value;c!==s&&(i.value=s,i.callback(s,c))}}}})[0];return i.callback=a,i.facade}var Bz=typeof window<"u"?A.useLayoutEffect:A.useEffect,zR=new WeakMap;function Iz(n,a){var i=Nz(null,function(s){return n.forEach(function(c){return GE(c,s)})});return Bz(function(){var s=zR.get(i);if(s){var c=new Set(s),d=new Set(n),v=i.current;c.forEach(function(g){d.has(g)||GE(g,null)}),d.forEach(function(g){c.has(g)||GE(g,v)})}zR.set(i,n)},[n]),i}function jz(n){return n}function zz(n,a){a===void 0&&(a=jz);var i=[],s=!1,c={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(d){var v=a(d,s);return i.push(v),function(){i=i.filter(function(g){return g!==v})}},assignSyncMedium:function(d){for(s=!0;i.length;){var v=i;i=[],v.forEach(d)}i={push:function(g){return d(g)},filter:function(){return i}}},assignMedium:function(d){s=!0;var v=[];if(i.length){var g=i;i=[],g.forEach(d),v=i}var b=function(){var S=v;v=[],S.forEach(d)},x=function(){return Promise.resolve().then(b)};x(),i={push:function(S){v.push(S),x()},filter:function(S){return v=v.filter(S),i}}}};return c}function Fz(n){n===void 0&&(n={});var a=zz(null);return a.options=sl({async:!0,ssr:!1},n),a}var FR=function(n){var a=n.sideCar,i=jR(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return A.createElement(s,sl({},i))};FR.isSideCarExport=!0;function Lz(n,a){return n.useMedium(a),FR}var LR=Fz(),ZE=function(){},Bg=A.forwardRef(function(n,a){var i=A.useRef(null),s=A.useState({onScrollCapture:ZE,onWheelCapture:ZE,onTouchMoveCapture:ZE}),c=s[0],d=s[1],v=n.forwardProps,g=n.children,b=n.className,x=n.removeScrollBar,S=n.enabled,T=n.shards,M=n.sideCar,R=n.noIsolation,N=n.inert,B=n.allowPinchZoom,j=n.as,P=j===void 0?"div":j,L=n.gapMode,H=jR(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),Q=M,K=Iz([i,a]),ce=sl(sl({},H),c);return A.createElement(A.Fragment,null,S&&A.createElement(Q,{sideCar:LR,removeScrollBar:x,shards:T,noIsolation:R,inert:N,setCallbacks:d,allowPinchZoom:!!B,lockRef:i,gapMode:L}),v?A.cloneElement(A.Children.only(g),sl(sl({},ce),{ref:K})):A.createElement(P,sl({},ce,{className:b,ref:K}),g))});Bg.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Bg.classNames={fullWidth:Ng,zeroRight:kg};var Pz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Uz(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=Pz();return a&&n.setAttribute("nonce",a),n}function Yz(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function Hz(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var Gz=function(){var n=0,a=null;return{add:function(i){n==0&&(a=Uz())&&(Yz(a,i),Hz(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Zz=function(){var n=Gz();return function(a,i){A.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&i])}},PR=function(){var n=Zz(),a=function(i){var s=i.styles,c=i.dynamic;return n(s,c),null};return a},Vz={left:0,top:0,right:0,gap:0},VE=function(n){return parseInt(n||"",10)||0},Jz=function(n){var a=window.getComputedStyle(document.body),i=a[n==="padding"?"paddingLeft":"marginLeft"],s=a[n==="padding"?"paddingTop":"marginTop"],c=a[n==="padding"?"paddingRight":"marginRight"];return[VE(i),VE(s),VE(c)]},Wz=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Vz;var a=Jz(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-i+a[2]-a[0])}},Qz=PR(),ed="data-scroll-locked",Kz=function(n,a,i,s){var c=n.left,d=n.top,v=n.right,g=n.gap;return i===void 0&&(i="margin"),`
|
|
242
242
|
.`.concat(Mz,` {
|
|
243
243
|
overflow: hidden `).concat(s,`;
|
|
244
244
|
padding-right: `).concat(g,"px ").concat(s,`;
|