1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2286],{3468:(e,t,n)=>{n.d(t,{A:()=>l,q:()=>i});var r=n(12115),o=n(95155);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,c=n?.[e]?.[a]||l,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},5213:(e,t,n)=>{n.d(t,{C:()=>l});var r=n(12115),o=n(94446),i=globalThis?.document?r.useLayoutEffect:()=>{},l=e=>{let{present:t,children:n}=e,l=function(e){var t,n;let[o,l]=r.useState(),u=r.useRef(null),c=r.useRef(e),s=r.useRef("none"),[f,d]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(u.current);s.current="mounted"===f?e:"none"},[f]),i(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=a(t);e?d("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),c.current=e}},[e,d]),i(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=a(u.current).includes(CSS.escape(e.animationName));if(e.target===o&&r&&(d("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=a(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,l(e)},[])}}(t),u="function"==typeof n?n({present:l.isPresent}):r.Children.only(n),c=(0,o.s)(l.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||l.isPresent?r.cloneElement(u,{ref:c}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"}
1,17129:(e,t,n)=>{n.d(t,{TL:()=>l,Dc:()=>u});var r=n(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=n(95155);function l(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...i}=e;if(r.isValidElement(n)){var l;let e,a,u=(l=n,(a=(e=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.ref:(a=(e=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?l.props.ref:l.props.ref||l.ref),c=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{let t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==r.Fragment&&(c.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(t,u):u),r.cloneElement(n,c)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...l}=e,a=r.Children.toArray(o),u=a.find(c);if(u){let e=u.props.children,o=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...l,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...l,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var a=Symbol("radix.slottable");function u(e){let t=({children:e})=>(0,i.jsx)(i.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=a,t}function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},19526:(e,t,n)=>{n.d(t,{Oh:()=>i});var r=n(12115),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:l()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},25725:(e,t,n)=>{n.d(t,{A:()=>$});var r,o,i=n(71450),l=n(12115),a="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,f=new WeakMap;function d(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=d),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},l=function(){return Promise.resolve().then(i)};l(),n={push:function(e){t.push(e),l()},filter:function(e){return t=t.filter(e),n}}}});return o.options=(0,i.Cl)({async:!0,ssr:!1},e),o}(),m=function(){},h=l.forwardRef(function(e,t){var n,r,o,a,u=l.useRef(null),d=l.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),h=d[0],v=d[1],g=e.forwardProps,y=e.children,w=e.className,b=e.removeScrollBar,x=e.enabled,E=e.shards,C=e.sideCar,R=e.noRelative,A=e.noIsolation,S=e.inert,T=e.allowPinchZoom,L=e.as,P=e.gapMode,N=(0,i.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(o=(0,l.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,s(function(){var e=f.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}f.set(a,n)},[n]),a),M=(0,i.Cl)((0,i.Cl)({},N),h);return l.createElement(l.Fragment,null,x&&l.createElement(C,{sideCar:p,removeScrollBar:b,shards:E,noRelative:R,noIsolation:A,inert:S,setCallbacks:v,allowPinchZoom:!!T,lockRef:u,gapMode:P}),g?l.cloneElement(l.Children.only(y),(0,i.Cl)((0,i.Cl)({},M),{ref:O})):l.createElement(void 0===L?"div":L,(0,i.Cl)({},M,{className:w,ref:O}),y))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:u,zeroRight:a};
1var v=function(e){var t=e.sideCar,n=(0,i.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,(0,i.Cl)({},n))};v.isSideCarExport=!0;var g=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=g();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},x=function(e){return parseInt(e||"",10)||0},E=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[x(n),x(r),x(o)]},C=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=E(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},R=w(),A="data-scroll-locked",S=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body[").concat(A,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(u," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat(a," .").concat(a," {\n right: 0 ").concat(r,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(A,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},T=function(){var e=parseInt(document.body.getAttribute(A)||"0",10);return isFinite(e)?e:0},L=function(){l.useEffect(function(){return document.body.setAttribute(A,(T()+1).toString()),function(){var e=T()-1;e<=0?document.body.removeAttribute(A):document.body.setAttribute(A,e.toString())}},[])},P=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;L();var i=l.useMemo(function(){return C(o)},[o]);return l.createElement(R,{styles:S(i,!t,o,n?"":"!important")})},N=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return N=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){N=!1}var M=!!N&&{passive:!1},k=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},D=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),j(e,r)){var o=F(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},j=function(e,t){return"v"===e?k(t,"overflowY"):k(t,"overflowX")},F=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,f=a>0,d=0,p=0;do{if(!u)break;var m=F(e,u),h=m[0],v=m[1]-m[2]-l*h;(h||v)&&j(e,u)&&(d+=v,p+=h);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(d)||!o&&a>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},I=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},H=0,U=[];let z=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(H++)[0],a=l.useState(w)[0],u=l.useRef(e);l.useEffect(function(){u.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,i.fX)([e.lockRef.current],(e.shards||[]).map(B),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!u.current.allowPinchZoom;var o,i=I(e),l=n.current,a="deltaX"in e?e.deltaX:l[0]-i[0],c="deltaY"in e?e.deltaY:l[1]-i[1],s=e.target,f=Math.abs(a)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===f&&"range"===s.type)return!1;var d=window.getSelection(),p=d&&d.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var m=D(f,s);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=D(f,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(a||c)&&(r.current=o),!o)return!0;var h=r.current||o;return W(h,t,e,"h"===h?a:c,!0)},[]),s=l.useCallback(function(e){if(U.length&&U[U.length-1]===a){var n="deltaY"in e?_(e):I(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(u.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),f=l.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=l.useCallback(function(e){n.current=I(e),r.current=void 0},[]),p=l.useCallback(function(t){f(t.type,_(t),t.target,c(t,e.lockRef.current))},[]),m=l.useCallback(function(t){f(t.type,I(t),t.target,c(t,e.lockRef.current))},[]);l.useEffect(function(){return U.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener("wheel",s,M),document.addEventListener("touchmove",s,M),document.addEventListener("touchstart",d,M),function(){U=U.filter(function(e){return e!==a}),document.removeEventListener("wheel",s,M),document.removeEventListener("touchmove",s,M),document.removeEventListener("touchstart",d,M)}},[]);var h=e.removeScrollBar,v=e.inert;return l.createElement(l.Fragment,null,v?l.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?l.createElement(P,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(r),v);var K=l.forwardRef(function(e,t){return l.createElement(h,(0,i.Cl)({},e,{ref:t,sideCar:z}))});K.classNames=h.classNames;let $=K},29133:(e,t,n)=>{n.d(t,{Mz:()=>F,i3:()=>I,UC:()=>W,bL:()=>j,Bk:()=>w});var r=n(12115),o=n(58146),i=n(47650),l="undefined"!=typeof document?r.useLayoutEffect:function(){};function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function u(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){let n=u(e);return Math.round(t*n)/n}function s(e){let t=r.useRef(e);return l(()=>{t.current=e}),t}var f=n(97602),d=n(95155),p=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,d.jsx)(f.sG.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,d.jsx)("polygon",{points:"0,0 30,0 15,10"})})});p.displayName="Arrow";var m=n(94446),h=n(3468),v=globalThis?.document?r.useLayoutEffect:()=>{},g="Popper",[y,w]=(0,h.A)(g),[b,x]=y(g),E=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,d.jsx)(b,{scope:t,anchor:o,onAnchorChange:i,children:n})};E.displayName=g;var C="PopperAnchor",R=r.forwardRef((e,t)=>
1{let{__scopePopper:n,virtualRef:o,...i}=e,l=x(C,n),a=r.useRef(null),u=(0,m.s)(t,a),c=r.useRef(null);return r.useEffect(()=>{let e=c.current;c.current=(null==o?void 0:o.current)||a.current,e!==c.current&&l.onAnchorChange(c.current)}),o?null:(0,d.jsx)(f.sG.div,{...i,ref:u})});R.displayName=C;var A="PopperContent",[S,T]=y(A),L=r.forwardRef((e,t)=>{var n,p,h,g,y,w,b,E;let{__scopePopper:C,side:R="bottom",sideOffset:T=0,align:L="center",alignOffset:P=0,arrowPadding:N=0,avoidCollisions:O=!0,collisionBoundary:j=[],collisionPadding:F=0,sticky:W="partial",hideWhenDetached:I=!1,updatePositionStrategy:_="optimized",onPlaced:B,...H}=e,U=x(A,C),[z,K]=r.useState(null),$=(0,m.s)(t,e=>K(e)),[V,Y]=r.useState(null),X=function(e){let[t,n]=r.useState(void 0);return v(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(V),G=null!=(b=null==X?void 0:X.width)?b:0,q=null!=(E=null==X?void 0:X.height)?E:0,Z="number"==typeof F?F:{top:0,right:0,bottom:0,left:0,...F},J=Array.isArray(j)?j:[j],Q=J.length>0,ee={padding:Z,boundary:J.filter(M),altBoundary:Q},{refs:et,floatingStyles:en,placement:er,isPositioned:eo,middlewareData:ei}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:f=[],platform:d,elements:{reference:p,floating:m}={},transform:h=!0,whileElementsMounted:v,open:g}=e,[y,w]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=r.useState(f);a(b,f)||x(f);let[E,C]=r.useState(null),[R,A]=r.useState(null),S=r.useCallback(e=>{e!==N.current&&(N.current=e,C(e))},[]),T=r.useCallback(e=>{e!==O.current&&(O.current=e,A(e))},[]),L=p||E,P=m||R,N=r.useRef(null),O=r.useRef(null),M=r.useRef(y),k=null!=v,D=s(v),j=s(d),F=s(g),W=r.useCallback(()=>{if(!N.current||!O.current)return;let e={placement:t,strategy:n,middleware:b};j.current&&(e.platform=j.current),(0,o.rD)(N.current,O.current,e).then(e=>{let t={...e,isPositioned:!1!==F.current};I.current&&!a(M.current,t)&&(M.current=t,i.flushSync(()=>{w(t)}))})},[b,t,n,j,F]);l(()=>{!1===g&&M.current.isPositioned&&(M.current.isPositioned=!1,w(e=>({...e,isPositioned:!1})))},[g]);let I=r.useRef(!1);l(()=>(I.current=!0,()=>{I.current=!1}),[]),l(()=>{if(L&&(N.current=L),P&&(O.current=P),L&&P){if(D.current)return D.current(L,P,W);W()}},[L,P,W,D,k]);let _=r.useMemo(()=>({reference:N,floating:O,setReference:S,setFloating:T}),[S,T]),B=r.useMemo(()=>({reference:L,floating:P}),[L,P]),H=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=c(B.floating,y.x),r=c(B.floating,y.y);return h?{...e,transform:"translate("+t+"px, "+r+"px)",...u(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,h,B.floating,y.x,y.y]);return r.useMemo(()=>({...y,update:W,refs:_,elements:B,floatingStyles:H}),[y,W,_,B,H])}({strategy:"fixed",placement:R+("center"!==L?"-"+L:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.ll)(...t,{animationFrame:"always"===_})},elements:{reference:U.anchor},middleware:[((e,t)=>({...(0,o.cY)(e),options:[e,t]}))({mainAxis:T+q,alignmentAxis:P}),O&&((e,t)=>({...(0,o.BN)(e),options:[e,t]}))({mainAxis:!0,crossAxis:!1,limiter:"partial"===W?((e,t)=>({...(0,o.ER)(e),options:[e,t]}))():void 0,...ee}),O&&((e,t)=>({...(0,o.UU)(e),options:[e,t]}))({...ee}),((e,t)=>({...(0,o.Ej)(e),options:[e,t]}))({...ee,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),V&&((e,t)=>({...(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?(0,o.UE)({element:n.current,padding:r}).fn(t):{}:n?(0,o.UE)({element:n,padding:r}).fn(t):{}}}))(e),options:[e,t]}))({element:V,padding:N}),k({arrowWidth:G,arrowHeight:q}),I&&((e,t)=>({...(0,o.jD)(e),options:[e,t]}))({strategy:"referenceHidden",...ee})]}),[el,ea]=D(er),eu=function(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(B);v(()=>{eo&&(null==eu||eu())},[eo,eu]);let ec=null==(n=ei.arrow)?void 0:n.x,es=null==(p=ei.arrow)?void 0:p.y,ef=(null==(h=ei.arrow)?void 0:h.centerOffset)!==0,[ed,ep]=r.useState();return v(()=>{z&&ep(window.getComputedStyle(z).zIndex)},[z]),(0,d.jsx)("div",{ref:et.setFloating,"data-radix-popper-content-wrapper":"",style:{...en,transform:eo?en.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ed,"--radix-popper-transform-origin":[null==(g=ei.transformOrigin)?void 0:g.x,null==(y=ei.transformOrigin)?void 0:y.y].join(" "),...(null==(w=ei.hide)?void 0:w.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(S,{scope:C,placedSide:el,onArrowChange:Y,arrowX:ec,arrowY:es,shouldHideArrow:ef,children:(0,d.jsx)(f.sG.div,{"data-side":el,"data-align":ea,...H,ref:$,style:{...H.style,animation:eo?void 0:"none"}})})})});L.displayName=A;var P="PopperArrow",N={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},O=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=T(P,n),i=N[o.placedSide];return(0,d.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,d.jsx)(p,{...r,ref:t,style:{...r.style,display:"block"}})})});function M(e){return null!==e}O.displayName=P;var k=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null==(n=c.arrow)?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,m]=D(a),h={start:"0%",center:"50%",end:"100%"}[m],v=(null!=(i=null==(r=c.arrow)?void 0:r.x)?i:0)+f/2,g=(null!=(l=null==(o=c.arrow)?void 0:o.y)?l:0)+d/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(y=s?h:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function D(e){let[t,n="center"]=e.split("-");return[t,n]}var j=E,F=R,W=L,I=O},42697:(e,t,n)=>{n.d(t,{i:()=>a});var r=n(12115),o=n.t(r,2),i=globalThis?.document?r.useLayoutEffect:()=>{},l=o[" useInsertionEffect ".trim().toString()]||i;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){let[i,a,u]=function({defaultProp:e,onChange:t}){let[n,o]=r.useState(e),i=r.useRef(n),a=r.useRef(t);return l(()=>{a.current=t},[t]),r.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,o,a]}({defaultProp:t,onChange:n}),c=void 0!==e,s=c?e:i;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=c},[c,o])}return[s,r.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else a(t)},[c,e,a,u])]}Symbol("RADIX:SYNC_STATE")},58146:(e,t,n)=>{n.d(t,{UE:()=>eS,ll:()=>eb,rD:()=>eL,UU:()=>eC,jD:()=>eA,ER:()=>eT,cY:()=>ex,BN:()=>eE,Ej:()=>eR});let r=["top","right","bottom","left"],o=Math.min,i=Math.max,l=Math.round,a=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let v=new Set(["top","bottom"]);function g(e){return v.has(d(e))?"y":"x"}function y(e){return e.replace(/start|end/g,e=>s[e])}let w=["left","right"],b=["right","left"],x=["top","bottom"],E=["bottom","top"];function C(e){return e.replace(/left|right|bottom|top/g,e=>c[e])}function R(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function A(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function S(e,t,n){let r,{reference:o,floating:i}=e,l=g(t),a=m(g(t)),u=h(a),c=d(t),s="y"===l,f=o.x+o.width/2-i.width/2,v=o.y+o.height/2-i.height/2,y=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:v};break;case"left":r={x:o.x-i.width,y:v};break;default:r={x:o.x,y:o.y}}switch(p(t)){case"start":r[a]-=y*(n&&s?-1:1);break;case"end":r[a]+=y*(n&&s?-1:1)}return r}let T=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=i.filter(Boolean),u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=S(c,r,u),d=r,p={},m=0;for(let n=0;n<a.length;n++){let{name:i,fn:h}=a[n],{x:v,y:g,data:y,reset:w}=await h({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=v?v:s,f=null!=g?g:f,p={...p,[i]:{...p[i],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(c=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:f}=S(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:p}};async function L(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=f(t,e),h=R(m),v=a[p?"floating"===d?"reference":"floating":d],g=A(await i.getClippingRect
1({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=A(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-x.top+h.top)/b.y,bottom:(x.bottom-g.bottom+h.bottom)/b.y,left:(g.left-x.left+h.left)/b.x,right:(x.right-g.right+h.right)/b.x}}function P(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function N(e){return r.some(t=>e[t]>=0)}let O=new Set(["left","top"]);async function M(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=d(n),a=p(n),u="y"===g(n),c=O.has(l)?-1:1,s=i&&u?-1:1,m=f(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return a&&"number"==typeof y&&(v="end"===a?-1*y:y),u?{x:v*s,y:h*c}:{x:h*c,y:v*s}}function k(){return"undefined"!=typeof window}function D(e){return W(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function F(e){var t;return null==(t=(W(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function W(e){return!!k()&&(e instanceof Node||e instanceof j(e).Node)}function I(e){return!!k()&&(e instanceof Element||e instanceof j(e).Element)}function _(e){return!!k()&&(e instanceof HTMLElement||e instanceof j(e).HTMLElement)}function B(e){return!!k()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof j(e).ShadowRoot)}let H=new Set(["inline","contents"]);function U(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!H.has(o)}let z=new Set(["table","td","th"]),K=[":popover-open",":modal"];function $(e){return K.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let V=["transform","translate","scale","rotate","perspective"],Y=["transform","translate","scale","rotate","perspective","filter"],X=["paint","layout","strict","content"];function G(e){let t=q(),n=I(e)?Q(e):e;return V.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||Y.some(e=>(n.willChange||"").includes(e))||X.some(e=>(n.contain||"").includes(e))}function q(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let Z=new Set(["html","body","#document"]);function J(e){return Z.has(D(e))}function Q(e){return j(e).getComputedStyle(e)}function ee(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if("html"===D(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||F(e);return B(t)?t.host:t}function en(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=et(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:_(n)&&U(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=j(o);if(i){let e=er(l);return t.concat(l,l.visualViewport||[],U(o)?o:[],e&&n?en(e):[])}return t.concat(o,en(o,[],n))}function er(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eo(e){let t=Q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=_(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,u=l(n)!==i||l(r)!==a;return u&&(n=i,r=a),{width:n,height:r,$:u}}function ei(e){return I(e)?e:e.contextElement}function el(e){let t=ei(e);if(!_(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eo(t),a=(i?l(n.width):n.width)/r,c=(i?l(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}let ea=u(0);function eu(e){let t=j(e);
1return q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ea}function ec(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=ei(e),a=u(1);t&&(r?I(r)&&(a=el(r)):a=el(e));let c=(void 0===(o=n)&&(o=!1),r&&(!o||r===j(l))&&o)?eu(l):u(0),s=(i.left+c.x)/a.x,f=(i.top+c.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=j(l),t=r&&I(r)?j(r):r,n=e,o=er(n);for(;o&&r&&t!==n;){let e=el(o),t=o.getBoundingClientRect(),r=Q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;s*=e.x,f*=e.y,d*=e.x,p*=e.y,s+=i,f+=l,o=er(n=j(o))}}return A({width:d,height:p,x:s,y:f})}function es(e,t){let n=ee(e).scrollLeft;return t?t.left+n:ec(F(e)).left+n}function ef(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-es(e,n),y:n.top+t.scrollTop}}let ed=new Set(["absolute","fixed"]);function ep(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=j(e),r=F(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=q();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=es(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=F(e),n=ee(e),r=e.ownerDocument.body,o=i(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=i(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+es(e),u=-n.scrollTop;return"rtl"===Q(r).direction&&(a+=i(t.clientWidth,r.clientWidth)-o),{width:o,height:l,x:a,y:u}}(F(e));else if(I(t))r=function(e,t){let n=ec(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_(e)?el(e):u(1),l=e.clientWidth*i.x,a=e.clientHeight*i.y;return{width:l,height:a,x:o*i.x,y:r*i.y}}(t,n);else{let n=eu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return A(r)}function em(e){return"static"===Q(e).position}function eh(e,t){if(!_(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return F(e)===n&&(n=n.ownerDocument.body),n}function ev(e,t){var n;let r=j(e);if($(e))return r;if(!_(e)){let t=et(e);for(;t&&!J(t);){if(I(t)&&!em(t))return t;t=et(t)}return r}let o=eh(e,t);for(;o&&(n=o,z.has(D(n)))&&em(o);)o=eh(o,t);return o&&J(o)&&em(o)&&!G(o)?r:o||function(e){let t=et(e);for(;_(t)&&!J(t);){if(G(t))return t;if($(t))break;t=et(t)}return null}(e)||r}let eg=async function(e){let t=this.getOffsetParent||ev,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=_(t),o=F(t),i="fixed"===n,l=ec(e,!0,i,t),a={scrollLeft:0,scrollTop:0},c=u(0);if(r||!r&&!i)if(("body"!==D(t)||U(o))&&(a=ee(t)),r){let e=ec(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=es(o));i&&!r&&o&&(c.x=es(o));let s=!o||r||i?u(0):ef(o,a);return{x:l.left+a.scrollLeft-c.x-s.x,y:l.top+a.scrollTop-c.y-s.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ey={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=F(r),a=!!t&&$(t.floating);if(r===l||a&&i)return n;let c={scrollLeft:0,scrollTop:0},s=u(1),f=u(0),d=_(r);if((d||!d&&!i)&&(("body"!==D(r)||U(l))&&(c=ee(r)),_(r))){let e=ec(r);s=el(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?u(0):ef(l,c);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-c.scrollTop*s.y+f.y+p.y}},getDocumentElement:F,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,a=[..."clippingAncestors"===n?$(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(e=>I(e)&&"body"!==D(e)),o=null,i="fixed"===Q(e).position,l=i?et(e):e;for(;I(l)&&!J(l);){let t=Q(l),n=G(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&ed.has(o.position)||U(l)&&!n&&function e(t,n){let r=et(t);return!(r===n||!I(r)||J(r))&&("fixed"===Q(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=et(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=a[0],c=a.reduce((e,n)=>{let r=ep(t,n,l);return e.top=i(r.top,e.top),e.right=o(r.right,e.right),e.bottom=o(r.bottom,e.bottom),e.left=i(r.left,e.left),e},ep(t,u,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:ev,getElementRects:eg,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:el,isElement:I,isRTL:function(e){return"rtl"===Q(e).direction}};function ew(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eb(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:c=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=ei(e),m=u||c?[...p?en(p):[],...en(t)]:[];
1m.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)});let h=p&&f?function(e,t){let n,r=null,l=F(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function c(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),u();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:v}=d;if(s||t(),!h||!v)return;let g=a(m),y=a(l.clientWidth-(p+h)),w={rootMargin:-g+"px "+-y+"px "+-a(l.clientHeight-(m+v))+"px "+-a(p)+"px",threshold:i(0,o(1,f))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==f){if(!b)return c();r?c(!1,r):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==r||ew(d,e.getBoundingClientRect())||c(),b=!1}try{r=new IntersectionObserver(x,{...w,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),u}(p,n):null,v=-1,g=null;s&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),g.observe(t));let y=d?ec(e):null;return d&&function t(){let r=ec(e);y&&!ew(y,r)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(l)}}let ex=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await M(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},eE=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:l}=t,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=f(e,t),p={x:n,y:r},h=await L(t,s),v=g(d(l)),y=m(v),w=p[y],b=p[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=i(n,o(w,r))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+h[e],r=b-h[t];b=i(n,o(b,r))}let x=c.fn({...t,[y]:w,[v]:b});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[y]:a,[v]:u}}}}}},eC=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:v,elements:R}=t,{mainAxis:A=!0,crossAxis:S=!0,fallbackPlacements:T,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:O=!0,...M}=f(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let k=d(a),D=g(s),j=d(s)===s,F=await (null==v.isRTL?void 0:v.isRTL(R.floating)),W=T||(j||!O?[C(s)]:function(e){let t=C(e);return[y(e),t,y(t)]}(s)),I="none"!==N;!T&&I&&W.push(...function(e,t,n,r){let o=p(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:w;return t?w:b;case"left":case"right":return t?x:E;default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(s,O,N,F));let _=[s,...W],B=await L(t,M),H=[],U=(null==(r=u.flip)?void 0:r.overflows)||[];if(A&&H.push(B[k]),S){let e=function(e,t,n){void 0===n&&(n=!1);let r=p(e),o=m(g(e)),i=h(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=C(l)),[l,C(l)]}(a,c,F);H.push(B[e[0]],B[e[1]])}if(U=[...U,{placement:a,overflows:H}],!H.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=_[e];if(t&&("alignment"!==S||D===g(t)||U.every(e=>g(e.placement)!==D||e.overflows[0]>0)))return{data:{index:e,overflows:U},reset:{placement:t}};let n=null==(i=U.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(P){case"bestFit":{let e=null==(l=U.filter(e=>{if(I){let t=g(e.placement);return t===D||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},eR=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,a,{placement:u,rects:c,platform:s,elements:m}=t,{apply:h=()=>{},...v}=f(e,t),y=await L(t,v),w=d(u),b=p(u),x="y"===g(u),{width:E,height:C}=c.floating;"top"===w||"bottom"===w?(l=w,a=b===(await (null==s.isRTL?void 0:s.isRTL(m.floating))?"start":"end")?"left":"right"):(a=w,l="end"===b?"top":"bottom");let R=C-y.top-y.bottom,A=E-y.left-y.right,S=o(C-y[l],R),T=o(E-y[a],A),P=!t.middlewareData.shift,N=S,O=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(O=A),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=R),P&&!b){let e=i(y.left,0),t=i(y.right,0),n=i(y.top,0),r=i(y.bottom,0);x?O=E-2*(0!==e||0!==t?e+t:i(y.left,y.right)):N=C-2*(0!==n||0!==r?n+r:i(y.top,y.bottom))}await h({...t,availableWidth:O,availableHeight:N});let M=await s.getDimensions(m.floating);return E!==M.width||C!==M.height?{reset:{rects:!0}}:{}}}},eA=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=f(e,t);switch(r){case"referenceHidden":{let e=P(await L(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:N(e)}}}case"escaped":{let e=P(await L(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:N(e)}}}default:return{}}}}},eS=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:a,platform:u,elements:c,middlewareData:s}=t,{element:d,padding:v=0}=f(e,t)||{};if(null==d)return{};let y=R(v),w={x:n,y:r},b=m(g(l)),x=h(b),E=await u.getDimensions(d),C="y"===b,A=C?"clientHeight":"clientWidth",S=a.reference[x]+a.reference[b]-w[b]-a.floating[x],T=w[b]-a.reference[b],L=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d)),P=L?L[A]:0;
1P&&await (null==u.isElement?void 0:u.isElement(L))||(P=c.floating[A]||a.floating[x]);let N=P/2-E[x]/2-1,O=o(y[C?"top":"left"],N),M=o(y[C?"bottom":"right"],N),k=P-E[x]-M,D=P/2-E[x]/2+(S/2-T/2),j=i(O,o(D,k)),F=!s.arrow&&null!=p(l)&&D!==j&&a.reference[x]/2-(D<O?O:M)-E[x]/2<0,W=F?D<O?D-O:D-k:0;return{[b]:w[b]+W,data:{[b]:j,centerOffset:D-j-W,...F&&{alignmentOffset:W}},reset:F}}}),eT=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=f(e,t),s={x:n,y:r},p=g(o),h=m(p),v=s[h],y=s[p],w=f(a,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+b.mainAxis,n=i.reference[h]+i.reference[e]-b.mainAxis;v<t?v=t:v>n&&(v=n)}if(c){var x,E;let e="y"===h?"width":"height",t=O.has(d(o)),n=i.reference[p]-i.floating[e]+(t&&(null==(x=l.offset)?void 0:x[p])||0)+(t?0:b.crossAxis),r=i.reference[p]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[p])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:v,[p]:y}}}},eL=(e,t,n)=>{let r=new Map,o={platform:ey,...n},i={...o.platform,_c:r};return T(e,t,{...o,platform:i})}},59061:(e,t,n)=>{n.d(t,{B:()=>u});var r=n(12115),o=n.t(r,2),i=globalThis?.document?r.useLayoutEffect:()=>{},l=o[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,n]=r.useState(l());return i(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},62107:(e,t,n)=>{n.d(t,{qW:()=>d});var r,o=n(12115),i=n(92556),l=n(97602),a=n(94446);function u(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}var c=n(95155),s="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=o.forwardRef((e,t)=>{var n,d;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(f),[C,R]=o.useState(null),A=null!=(d=null==C?void 0:C.ownerDocument)?d:null==(n=globalThis)?void 0:n.document,[,S]=o.useState({}),T=(0,a.s)(t,e=>R(e)),L=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),N=L.indexOf(P),O=C?L.indexOf(C):-1,M=E.layersWithOutsidePointerEventsDisabled.size>0,k=O>=N,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=u(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));k&&!n&&(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},A),j=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=u(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},A);return!function(e,t=globalThis?.document){let n=u(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{O===E.layers.size-1&&(null==v||v(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},A),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=r)}},[C,A,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>S({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(l.sG.div,{...x,ref:T,style:{pointerEvents:M?k?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.mK)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,i.mK)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,i.mK)(e.onPointerDownCapture,D.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.hO)(i,a):i.dispatchEvent(a)}d.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let n=o.useContext(f),r=o.useRef(null),i=(0,a.s)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(l.sG.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},82286:(e,t,n)=>{n.d(t,{AM:()=>S,UC:()=>Y,Wv:()=>P,ZL:()=>V,bL:()=>K,bm:()=>X,hl:()=>j,i0:()=>k,i3:()=>G,l9:()=>$});var r=n(12115),o=n(92556),i=n(94446),l=n(3468),a=n(62107),u=n(19526),c=n(86596),s=n(59061),f=n(29133),d=n(84232),p=n(5213),m=n(97602),h=n(17129),v=n(42697),g=n(97745),y=n(25725),w=n(95155),b="Popover",[x,E]=(0,l.A)(b,[f.Bk]),C=(0,f.Bk)(),[R,A]=x(b),S=e=>{let{__scopePopover:t,children:n,open:o,defaultOpen:i,onOpenChange:l,modal:a=!1}=e,u=C(t),c=r.useRef(null),[d,p]=r.useState(!1),[m,h]=(0,v.i)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:b});return(0,w.jsx)(f.bL,{...u,children:(0,w.jsx)(R,{scope:t,contentId:(0,s.B)(),triggerRef:c,open:m,onOpenChange:h,onOpenToggle:r.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:d,onCustomAnchorAdd:r.useCallback(()=>p(!0),[]),onCustomAnchorRemove:r.useCallback(()=>p(!1),[]),modal:a,children:n})})};S.displayName=b;var T="PopoverAnchor";r.forwardRef((e,t)=>{let{__scopePopover:n,...o}=e,i=A(T,n),l=C(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=i;return r.useEffect(()=>(a(),()=>u()),[a,u]),(0,w.jsx)(f.Mz,{...l,...o,ref:t})}).displayName=T;var L="PopoverTrigger",P=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,l=A(L,n),a=C(n),u=(0,i.s)(t,l.triggerRef),c=(0,w.jsx)(m.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":z(l.open),...r,ref:u,onClick:(0,o.mK)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?c:(0,w.jsx)(f.Mz,{asChild:!0,...a,children:c})});P.displayName=L;var N="PopoverPortal",[O,M]=x(N,{forceMount:void 0}),k=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=A(N,t);return(0,w.jsx)(O,{scope:t,forceMount:n,children:(0,w.jsx)(p.C,{present:n||i.open,children:(0,w.jsx)(d.Z,{asChild:!0,container:o,children:r})})})};k.displayName=N;var D="PopoverContent",j=r.forwardRef((e,t)=>{let n=M(D,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=A(D,e.__scopePopover);return(0,w.jsx)(p.C,{present:r||i.open,children:i.modal?(0,w.jsx)(W,{...o,ref:t}):(0,w.jsx)(I,{...o,ref:t})})});j.displayName=D;var F=(0,h.TL)("PopoverContent.RemoveScroll"),W=r.forwardRef((e,t)=>{let n=A(D,e.__scopePopover),l=r.useRef(null),a=(0,i.s)(t,l),u=r.useRef(!1);return r.useEffect(()=>{let e=l.current;if(e)return(0,g.Eq)(e)},[]),(0,w.jsx)(y.A,{as:F,allowPinchZoom:!0,children:(0,w.jsx)(_,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),u.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),I=r.forwardRef((e,t)=>{let n=A(D,e.__scopePopover),o=r.useRef(!1),i=r.useRef(!1);return(0,w.jsx)(_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,l;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(l=n.triggerRef.current)||l.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,l;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(l=n.triggerRef.current)?void 0:l.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),_=r.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:m,...h}=e,v=A(D,n),g=C(n);return(0,u.Oh)(),(0,w.jsx)(c.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,w.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:s,onPointerDownOutside:d,onFocusOutside:p,onDismiss:()=>v.onOpenChange(!1),children:(0,w.jsx)(f.UC,{"data-state":z(v.open),role:"dialog",id:v.contentId,...g,...h,ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),B="PopoverClose",H=r.forwardRef((e,t)=>
1{let{__scopePopover:n,...r}=e,i=A(B,n);return(0,w.jsx)(m.sG.button,{type:"button",...r,ref:t,onClick:(0,o.mK)(e.onClick,()=>i.onOpenChange(!1))})});H.displayName=B;var U=r.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=C(n);return(0,w.jsx)(f.i3,{...o,...r,ref:t})});function z(e){return e?"open":"closed"}U.displayName="PopoverArrow";var K=S,$=P,V=k,Y=j,X=H,G=U},84232:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(12115),o=n(47650),i=n(97602),l=globalThis?.document?r.useLayoutEffect:()=>{},a=n(95155),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[f,d]=r.useState(!1);l(()=>d(!0),[]);let p=c||f&&(null==(u=globalThis)||null==(n=u.document)?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.sG.div,{...s,ref:t}),p):null});u.displayName="Portal"},86596:(e,t,n)=>{n.d(t,{n:()=>f});var r=n(12115),o=n(94446),i=n(97602);function l(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}var a=n(95155),u="focusScope.autoFocusOnMount",c="focusScope.autoFocusOnUnmount",s={bubbles:!1,cancelable:!0},f=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:f=!1,onMountAutoFocus:v,onUnmountAutoFocus:g,...y}=e,[w,b]=r.useState(null),x=l(v),E=l(g),C=r.useRef(null),R=(0,o.s)(t,e=>b(e)),A=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(f){let e=function(e){if(A.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:m(C.current,{select:!0})},t=function(e){if(A.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||m(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[f,w,A.paused]),r.useEffect(()=>{if(w){h.add(A);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(u,s);w.addEventListener(u,x),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(d(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(u,x),setTimeout(()=>{let t=new CustomEvent(c,s);w.addEventListener(c,E),w.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),w.removeEventListener(c,E),h.remove(A)},0)}}},[w,x,E,A]);let S=r.useCallback(e=>{if(!n&&!f||A.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,i]=function(e){let t=d(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&m(i,{select:!0})):(e.preventDefault(),n&&m(o,{select:!0})):r===t&&e.preventDefault()}},[n,f,A.paused]);return(0,a.jsx)(i.sG.div,{tabIndex:-1,...y,ref:R,onKeyDown:S})});function d(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=v(e,t)).unshift(t)},remove(t){var n;null==(n=(e=v(e,t))[0])||n.resume()}}}();function v(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},92556:(e,t,n)=>{function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},94446:(e,t,n)=>{n.d(t,{s:()=>
1l,t:()=>i});var r=n(12115);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}function l(...e){return r.useCallback(i(...e),e)}},97602:(e,t,n)=>{n.d(t,{hO:()=>u,sG:()=>a});var r=n(12115),o=n(47650),i=n(17129),l=n(95155),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.TL)(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(o?n:t,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function u(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},97745:(e,t,n)=>{n.d(t,{Eq:()=>c});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],f=[],d=new Set,p=new Set(c),m=function(e){!e||d.has(e)||(d.add(e),m(e.parentNode))};c.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))h(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),f.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),d.clear(),l++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),u(r,o,n,"aria-hidden")):function(){return null}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.