1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81140,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}])},20783,30030,e=>{"use strict";var t=e.i(71645);function n(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function r(...e){return t=>{let r=!1,o=e.map(e=>{let o=n(e,t);return r||"function"!=typeof o||(r=!0),o});if(r)return()=>{for(let t=0;t<o.length;t++){let r=o[t];"function"==typeof r?r():n(e[t],null)}}}}e.s(["composeRefs",0,r,"useComposedRefs",0,function(...e){return t.useCallback(r(...e),e)}],20783);var o=e.i(43476);e.s(["createContextScope",0,function(e,n=[]){let r=[],i=()=>{let n=r.map(e=>t.createContext(e));return function(r){let o=r?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...r,[e]:o}}),[r,o])}};return i.scopeName=e,[function(n,i){let a=t.createContext(i),l=r.length;r=[...r,i];let u=n=>{let{scope:r,children:i,...u}=n,c=r?.[e]?.[l]||a,s=t.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})};return u.displayName=n+"Provider",[u,function(r,o){let u=o?.[e]?.[l]||a,c=t.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=r.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return r.scopeName=n.scopeName,r}(i,...n)]}],30030)},26330,91918,48425,30207,3536,65491,e=>{"use strict";let t;var n,r=e.i(71645),o=e.i(81140),i=e.i(74080),a=e.i(20783),l=e.i(43476);function u(e){var t;let n,o=(t=e,(n=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){var i;let e,l,u=(i=n,(l=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(l=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.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}}(o,n.props);return n.type!==r.Fragment&&(c.ref=t?(0,a.composeRefs)(t,u):u),r.cloneElement(n,c)}return r.Children.count(n)>1?r.Children.only(null):null})).displayName=`${t}.SlotClone`,n),i=r.forwardRef((e,t)=>{let{children:n,...i}=e,a=r.Children.toArray(n),u=a.find(s);if(u){let e=u.props.children,n=a.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(o,{...i,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,l.jsx)(o,{...i,ref:t,children:n})});return i.displayName=`${e}.Slot`,i}var c=Symbol("radix.slottable");function s(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===c}e.s(["createSlot",0,u],91918);var f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=u(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">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 d(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}function p(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}e.s(["Primitive",0,f,"dispatchDiscreteCustomEvent",0,d],48425),e.s(["useCallbackRef",0,p],30207);var m="dismissableLayer.update",h=r.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),v=r.forwardRef((e,t)=>{let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:d,onDismiss:v,...w}=e,b=r.useContext(h),[x,E]=r.useState(null),R=x?.ownerDocument??globalThis?.document,[,C]=r.useState({}),S=(0,a.useComposedRefs)(t,e=>E(e)),P=Array.from(b.layers),[A]=[...b.layersWithOutsidePointerEventsDisabled].slice(-1),O=P.indexOf(A),L=x?P.indexOf(x):-1,T=b.layersWithOutsidePointerEventsDisabled.size>0,N=L>=O,k=function(e,t=globalThis?.document){let n=p(e),o=r.useRef(!1),i=r.useRef(()=>{});return r.useEffect(()=>{let e=e=>
1{if(e.target&&!o.current){let r=function(){y("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);o.current=!1},r=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(r),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...b.branches].some(e=>e.contains(t));N&&!n&&(c?.(e),d?.(e),e.defaultPrevented||v?.())},R),D=function(e,t=globalThis?.document){let n=p(e),o=r.useRef(!1);return r.useEffect(()=>{let e=e=>{e.target&&!o.current&&y("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;![...b.branches].some(e=>e.contains(t))&&(s?.(e),d?.(e),e.defaultPrevented||v?.())},R);return!function(e,t=globalThis?.document){let n=p(e);r.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=>{L===b.layers.size-1&&(u?.(e),!e.defaultPrevented&&v&&(e.preventDefault(),v()))},R),r.useEffect(()=>{if(x)return i&&(0===b.layersWithOutsidePointerEventsDisabled.size&&(n=R.body.style.pointerEvents,R.body.style.pointerEvents="none"),b.layersWithOutsidePointerEventsDisabled.add(x)),b.layers.add(x),g(),()=>{i&&1===b.layersWithOutsidePointerEventsDisabled.size&&(R.body.style.pointerEvents=n)}},[x,R,i,b]),r.useEffect(()=>()=>{x&&(b.layers.delete(x),b.layersWithOutsidePointerEventsDisabled.delete(x),g())},[x,b]),r.useEffect(()=>{let e=()=>C({});return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,l.jsx)(f.div,{...w,ref:S,style:{pointerEvents:T?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,o.composeEventHandlers)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,o.composeEventHandlers)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,o.composeEventHandlers)(e.onPointerDownCapture,k.onPointerDownCapture)})});function g(){let e=new CustomEvent(m);document.dispatchEvent(e)}function y(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?d(o,i):o.dispatchEvent(i)}v.displayName="DismissableLayer",r.forwardRef((e,t)=>{let n=r.useContext(h),o=r.useRef(null),i=(0,a.useComposedRefs)(t,o);return r.useEffect(()=>{let e=o.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,l.jsx)(f.div,{...e,ref:i})}).displayName="DismissableLayerBranch",e.s(["DismissableLayer",0,v],26330);var w=0;function b(){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}e.s(["useFocusGuards",0,function(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??b()),document.body.insertAdjacentElement("beforeend",e[1]??b()),w++,()=>{1===w&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),w--}},[])}],3536);var x="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",R={bubbles:!1,cancelable:!0},C=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:u,...c}=e,[s,d]=r.useState(null),m=p(i),h=p(u),v=r.useRef(null),g=(0,a.useComposedRefs)(t,e=>d(e)),y=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(o){let e=function(e){if(y.paused||!s)return;let t=e.target;s.contains(t)?v.current=t:A(v.current,{select:!0})},t=function(e){if(y.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||A(v.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&&A(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[o,s,y.paused]),r.useEffect(()=>{if(s){O.add(y);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(x,R);s.addEventListener(x,m),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(A(r,{select:t}),document.activeElement!==n)return}(S(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&A(s))}return()=>{s.removeEventListener(x,m),setTimeout(()=>{let t=new CustomEvent(E,R);s.addEventListener(E,h),s.dispatchEvent(t),t.defaultPrevented||A(e??document.body,{select:!0}),s.removeEventListener(E,h),O.remove(y)},0)}}},[s,m,h,y]);let w=r.useCallback(e=>{if(!n&&!o||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){var i;let t,o=e.currentTarget,[a,l]=[P(t=S(i=o),i),P(t.reverse(),i)];a&&l?e.shiftKey||r!==l?e.shiftKey&&r===a&&(e.preventDefault(),n&&A(l,{select:!0})):(e.preventDefault(),n&&A(a,{select:!0})):r===o&&e.preventDefault()}},[n,o,y.paused]);return(0,l.jsx)(f.div,{tabIndex:-1,...c,ref:g,onKeyDown:w})});function S(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,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function A(e,{select:t=!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()}}C.displayName="FocusScope";var O=(t=[],{add(e){let n=t[0];e!==n&&n?.pause(),(t=L(t,e)).unshift(e)},remove(e){t=L(t,e),t[0]?.resume()}});function L(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}e.s(["FocusScope",0,C],65491)},34620,e=>{"use strict";var t=e.i(71645),n=globalThis?.document?t.useLayoutEffect:()=>{};
1e.s(["useLayoutEffect",0,n])},10772,53760,58950,53289,e=>{"use strict";let t;var n=e.i(71645),r=e.i(34620),o=n[" useId ".trim().toString()]||(()=>void 0),i=0;e.s(["useId",0,function(e){let[t,a]=n.useState(o());return(0,r.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(t?`radix-${t}`:"")}],10772);let a=["top","right","bottom","left"],l=a.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),u=Math.min,c=Math.max,s=Math.round,f=Math.floor,d=e=>({x:e,y:e}),p={left:"right",right:"left",bottom:"top",top:"bottom"};function m(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function v(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function w(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function b(e,t,n){void 0===n&&(n=!1);let r=v(e),o=g(w(e)),i=y(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=P(a)),[a,P(a)]}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let E=["left","right"],R=["right","left"],C=["top","bottom"],S=["bottom","top"];function P(e){let t=h(e);return p[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function O(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 L(e,t,n){let r,{reference:o,floating:i}=e,a=w(t),l=g(w(t)),u=y(l),c=h(t),s="y"===a,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,p=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:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(v(t)){case"start":r[l]-=p*(n&&s?-1:1);break;case"end":r[l]+=p*(n&&s?-1:1)}return r}async function T(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=m(t,e),h=A(p),v=l[d?"floating"===f?"reference":"floating":f],g=O(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(v)))||n?v:v.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:s,strategy:u})),y="floating"===f?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.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=O(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,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}}let N=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:T},u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=L(c,r,u),d=r,p=0,m={};for(let n=0;n<i.length;n++){let h=i[n];if(!h)continue;let{name:v,fn:g}=h,{x:y,y:w,data:b,reset:x}=await g({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:l,elements:{reference:e,floating:t}});s=null!=y?y:s,f=null!=w?w:f,m[v]={...m[v],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:f}=L(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:m}};function k(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function D(e){return a.some(t=>e[t]>=0)}function M(e){let t=u(...e.map(e=>e.left)),n=u(...e.map(e=>e.top));return{x:t,y:n,width:c(...e.map(e=>e.right))-t,height:c(...e.map(e=>e.bottom))-n}}let F=new Set(["left","top"]);async function j(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=h(n),l=v(n),u="y"===w(n),c=F.has(a)?-1:1,s=i&&u?-1:1,f=m(t,e),{mainAxis:d,crossAxis:p,alignmentAxis:g}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}
1:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof g&&(p="end"===l?-1*g:g),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}function W(){return"u">typeof window}function I(e){return $(e)?(e.nodeName||"").toLowerCase():"#document"}function _(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=($(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function $(e){return!!W()&&(e instanceof Node||e instanceof _(e).Node)}function B(e){return!!W()&&(e instanceof Element||e instanceof _(e).Element)}function z(e){return!!W()&&(e instanceof HTMLElement||e instanceof _(e).HTMLElement)}function U(e){return!(!W()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof _(e).ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Y(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let K=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Z=e=>!!e&&"none"!==e;function q(e){let t=B(e)?Q(e):e;return Z(t.transform)||Z(t.translate)||Z(t.scale)||Z(t.rotate)||Z(t.perspective)||!G()&&(Z(t.backdropFilter)||Z(t.filter))||K.test(t.willChange||"")||X.test(t.contain||"")}function G(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function J(e){return/^(html|body|#document)$/.test(I(e))}function Q(e){return _(e).getComputedStyle(e)}function ee(e){return B(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function et(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||H(e);return U(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:z(n)&&V(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=_(o);if(!i)return t.concat(o,en(o,[],n));{let e=er(a);return t.concat(a,a.visualViewport||[],V(o)?o:[],e&&n?en(e):[])}}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=z(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=s(n)!==i||s(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function ei(e){return B(e)?e:e.contextElement}function ea(e){let t=ei(e);if(!z(t))return d(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eo(t),a=(i?s(n.width):n.width)/r,l=(i?s(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let el=d(0);function eu(e){let t=_(e);return G()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:el}function ec(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ei(e),l=d(1);t&&(r?B(r)&&(l=ea(r)):l=ea(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===_(a))&&o)?eu(a):d(0),c=(i.left+u.x)/l.x,s=(i.top+u.y)/l.y,f=i.width/l.x,p=i.height/l.y;if(a){let e=_(a),t=r&&B(r)?_(r):r,n=e,o=er(n);for(;o&&r&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=Q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,f*=e.x,p*=e.y,c+=i,s+=a,o=er(n=_(o))}}return O({width:f,height:p,x:c,y:s})}function es(e,t){let n=ee(e).scrollLeft;return t?t.left+n:ec(H(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}}function ed(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=_(e),r=H(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=G();(!e||e&&"fixed"===t)&&(l=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,a=Math.abs(r.clientWidth-t.clientWidth-o);a<=25&&(i-=a)}else c<=25&&(i+=c);return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t){let t,n,i,a,l,u,s;r=H(e),t=H(r),n=ee(r),i=r.ownerDocument.body,a=c(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),l=c(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),u=-n.scrollLeft+es(r),s=-n.scrollTop,"rtl"===Q(i).direction&&(u+=c(t.clientWidth,i.clientWidth)-a),o={width:a,height:l,x:u,y:s}}else if(B(t)){let e,r,i,a,l,u;r=(e=ec(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,a=z(t)?ea(t):d(1),l=t.clientWidth*a.x,u=t.clientHeight*a.y,o={width:l,height:u,x:i*a.x,y:r*a.y}}else{let n=eu(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return O(o)}function ep(e){return"static"===Q(e).position}function em(e,t){if(!z(e)||"fixed"===Q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function eh(e,t){var n;let r=_(e);if(Y(e))return r;if(!z(e)){let t=et(e);for(;t&&!J(t);){if(B(t)&&!ep(t))return t;t=et(t)}return r}let o=em(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(I(n)))&&ep(o);)o=em(o,t);return o&&J(o)&&ep(o)&&!q(o)?r:o||function(e){let t=et(e);for(;z(t)&&!J(t);){if(q(t))return t;if(Y(t))break;t=et(t)}return null}(e)||r}let ev=async function(e){let t=this.getOffsetParent||eh,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=z(t),o=H(t),i="fixed"===n,a=ec(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=d(0);if(r||!r&&!i)if(("body"!==I(t)||V(o))&&(l=ee(t)),r){let e=ec(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=es(o));i&&!r&&o&&(u.x=es(o));let c=!o||r||i?d(0):ef(o,l);return{x:a.left+l.scrollLeft-u.x-c.x,y:a.top+l.scrollTop-u.y-c.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=H(r),l=!!t&&Y(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=d(1),s=d(0),f=z(r);if((f||!f&&!i)&&(("body"!==I(r)||V(a))&&(u=ee(r)),f)){let e=ec(r);c=ea(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let p=!a||f||i?d(0):ef(a,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+p.x,y:n.y*c.y-u.scrollTop*c.y+s.y+p.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Y(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(e=>B(e)&&"body"!==I(e)),o=null,i="fixed"===Q(e).position,a=i?et(e):e;for(;B(a)&&!J(a);){let t=Q(a),n=q(a);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||V(a)&&!n&&function e(t,n){let r=et(t);return!(r===n||!B(r)||J(r))&&("fixed"===Q(r).position||e(r,n))}
1(e,a)))?o=t:r=r.filter(e=>e!==a),a=et(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=ed(t,i[0],o),l=a.top,s=a.right,f=a.bottom,d=a.left;for(let e=1;e<i.length;e++){let n=ed(t,i[e],o);l=c(n.top,l),s=u(n.right,s),f=u(n.bottom,f),d=c(n.left,d)}return{width:s-d,height:f-l,x:d,y:l}},getOffsetParent:eh,getElementRects:ev,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=eo(e);return{width:t,height:n}},getScale:ea,isElement:B,isRTL:function(e){return"rtl"===Q(e).direction}};function ey(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let ew=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:a,middlewareData:l}=t,u=await j(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},eb=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o,platform:i}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=m(e,t),d={x:n,y:r},p=await i.detectOverflow(t,f),v=w(h(o)),y=g(v),b=d[y],x=d[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=b+p[e],r=b-p[t];b=c(n,u(b,r))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=x+p[e],r=x-p[t];x=c(n,u(x,r))}let E=s.fn({...t,[y]:b,[v]:x});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[y]:a,[v]:l}}}}}},ex=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,i,a;
1let l,u,c,{placement:s,middlewareData:f,rects:d,initialPlacement:p,platform:g,elements:y}=t,{mainAxis:A=!0,crossAxis:O=!0,fallbackPlacements:L,fallbackStrategy:T="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:k=!0,...D}=m(e,t);if(null!=(n=f.arrow)&&n.alignmentOffset)return{};let M=h(s),F=w(p),j=h(p)===p,W=await (null==g.isRTL?void 0:g.isRTL(y.floating)),I=L||(j||!k?[P(p)]:(l=P(p),[x(p),l,x(l)])),_="none"!==N;!L&&_&&I.push(...(u=v(p),c=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?R:E;return t?E:R;case"left":case"right":return t?C:S;default:return[]}}(h(p),"start"===N,W),u&&(c=c.map(e=>e+"-"+u),k&&(c=c.concat(c.map(x)))),c));let H=[p,...I],$=await g.detectOverflow(t,D),B=[],z=(null==(r=f.flip)?void 0:r.overflows)||[];if(A&&B.push($[M]),O){let e=b(s,d,W);B.push($[e[0]],$[e[1]])}if(z=[...z,{placement:s,overflows:B}],!B.every(e=>e<=0)){let e=((null==(o=f.flip)?void 0:o.index)||0)+1,t=H[e];if(t&&("alignment"!==O||F===w(t)||z.every(e=>w(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:z},reset:{placement:t}};let n=null==(i=z.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(T){case"bestFit":{let e=null==(a=z.filter(e=>{if(_){let t=w(e.placement);return t===F||"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:a[0];e&&(n=e);break}case"initialPlacement":n=p}if(s!==n)return{reset:{placement:n}}}return{}}}},eE=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let o,i,{placement:a,rects:l,platform:s,elements:f}=t,{apply:d=()=>{},...p}=m(e,t),g=await s.detectOverflow(t,p),y=h(a),b=v(a),x="y"===w(a),{width:E,height:R}=l.floating;"top"===y||"bottom"===y?(o=y,i=b===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(i=y,o="end"===b?"top":"bottom");let C=R-g.top-g.bottom,S=E-g.left-g.right,P=u(R-g[o],C),A=u(E-g[i],S),O=!t.middlewareData.shift,L=P,T=A;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(T=S),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(L=C),O&&!b){let e=c(g.left,0),t=c(g.right,0),n=c(g.top,0),r=c(g.bottom,0);x?T=E-2*(0!==e||0!==t?e+t:c(g.left,g.right)):L=R-2*(0!==n||0!==r?n+r:c(g.top,g.bottom))}await d({...t,availableWidth:T,availableHeight:L});let N=await s.getDimensions(f.floating);return E!==N.width||R!==N.height?{reset:{rects:!0}}:{}}}},eR=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=m(e,t);switch(o){case"referenceHidden":{let e=k(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:D(e)}}}case"escaped":{let e=k(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:D(e)}}}default:return{}}}}},eC=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:s}=t,{element:f,padding:d=0}=m(e,t)||{};if(null==f)return{};let p=A(d),h={x:n,y:r},b=g(w(o)),x=y(b),E=await a.getDimensions(f),R="y"===b,C=R?"clientHeight":"clientWidth",S=i.reference[x]+i.reference[b]-h[b]-i.floating[x],P=h[b]-i.reference[b],O=await (null==a.getOffsetParent?void 0:a.getOffsetParent(f)),L=O?O[C]:0;L&&await (null==a.isElement?void 0:a.isElement(O))||(L=l.floating[C]||i.floating[x]);let T=L/2-E[x]/2-1,N=u(p[R?"top":"left"],T),k=u(p[R?"bottom":"right"],T),D=L-E[x]-k,M=L/2-E[x]/2+(S/2-P/2),F=c(N,u(M,D)),j=!s.arrow&&null!=v(o)&&M!==F&&i.reference[x]/2-(M<N?N:k)-E[x]/2<0,W=j?M<N?M-N:M-D:0;return{[b]:h[b]+W,data:{[b]:F,centerOffset:M-F-W,...j&&{alignmentOffset:W}},reset:j}}}),eS=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=m(e,t),s={x:n,y:r},f=w(o),d=g(f),p=s[d],v=s[f],y=m(l,t),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(u){let e="y"===d?"height":"width",t=i.reference[d]-i.floating[e]+b.mainAxis,n=i.reference[d]+i.reference[e]-b.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var x,E;let e="y"===d?"width":"height",t=F.has(h(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(x=a.offset)?void 0:x[f])||0)+(t?0:b.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=a.offset)?void 0:E[f])||0)-(t?b.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[d]:p,[f]:v}}}},eP=(e,t,n)=>{let r=new Map,o={platform:eg,...n},i={...o.platform,_c:r};return N(e,t,{...o,platform:i})};e.s(["arrow",0,eC,"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,o,i;let{rects:a,middlewareData:u,placement:c,platform:s,elements:f}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:g=l,autoAlignment:y=!0,...w}=m(e,t),E=void 0!==p||g===l?((i=p||null)?[...g.filter(e=>
1v(e)===i),...g.filter(e=>v(e)!==i)]:g.filter(e=>h(e)===e)).filter(e=>!i||v(e)===i||!!y&&x(e)!==e):g,R=await s.detectOverflow(t,w),C=(null==(n=u.autoPlacement)?void 0:n.index)||0,S=E[C];if(null==S)return{};let P=b(S,a,await (null==s.isRTL?void 0:s.isRTL(f.floating)));if(c!==S)return{reset:{placement:E[0]}};let A=[R[h(S)],R[P[0]],R[P[1]]],O=[...(null==(r=u.autoPlacement)?void 0:r.overflows)||[],{placement:S,overflows:A}],L=E[C+1];if(L)return{data:{index:C+1,overflows:O},reset:{placement:L}};let T=O.map(e=>{let t=v(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),N=(null==(o=T.filter(e=>e[2].slice(0,v(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||T[0][0];return N!==c?{data:{index:C+1,overflows:O},reset:{placement:N}}:{}}}},"autoUpdate",0,function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=ei(e),m=i||a?[...p?en(p):[],...t?en(t):[]]:[];m.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let h=p&&s?function(e,t){let n,r=null,o=H(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),i();let d=e.getBoundingClientRect(),{left:p,top:m,width:h,height:v}=d;if(l||t(),!h||!v)return;let g={rootMargin:-f(m)+"px "+-f(o.clientWidth-(p+h))+"px "+-f(o.clientHeight-(m+v))+"px "+-f(p)+"px",threshold:c(0,u(1,s))||1},y=!0;function w(t){let r=t[0].intersectionRatio;if(r!==s){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ey(d,e.getBoundingClientRect())||a(),y=!1}try{r=new IntersectionObserver(w,{...g,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(w,g)}r.observe(e)}(!0),i}(p,n):null,v=-1,g=null;l&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),p&&!d&&g.observe(p),t&&g.observe(t));let y=d?ec(e):null;return d&&function t(){let r=ec(e);y&&!ey(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}},"computePosition",0,eP,"flip",0,ex,"hide",0,eR,"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:o,platform:i,strategy:a}=t,{padding:l=2,x:s,y:f}=m(e,t),d=Array.from(await (null==i.getClientRects?void 0:i.getClientRects(r.reference))||[]),p=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let o=t[e];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(e=>O(M(e)))}(d),v=O(M(d)),g=A(l),y=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===p.length&&p[0].left>p[1].right&&null!=s&&null!=f)return p.find(e=>s>e.left-g.left&&s<e.right+g.right&&f>e.top-g.top&&f<e.bottom+g.bottom)||v;if(p.length>=2){if("y"===w(n)){let e=p[0],t=p[p.length-1],r="top"===h(n),o=e.top,i=t.bottom,a=r?e.left:t.left,l=r?e.right:t.right;return{top:o,bottom:i,left:a,right:l,width:l-a,height:i-o,x:a,y:o}}let e="left"===h(n),t=c(...p.map(e=>e.right)),r=u(...p.map(e=>e.left)),o=p.filter(n=>e?n.left===r:n.right===t),i=o[0].top,a=o[o.length-1].bottom;return{top:i,bottom:a,left:r,right:t,width:t-r,height:a-i,x:r,y:i}}return v}},floating:r.floating,strategy:a});return o.reference.x!==y.reference.x||o.reference.y!==y.reference.y||o.reference.width!==y.reference.width||o.reference.height!==y.reference.height?{reset:{rects:y}}:{}}}},"limitShift",0,eS,"offset",0,ew,"shift",0,eb,"size",0,eE],53760);var eA=e.i(74080),eO="u">typeof document?n.useLayoutEffect:function(){};function eL(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(!eL(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)&&!eL(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eT(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eN(e,t){let n=eT(e);return Math.round(t*n)/n}function ek(e){let t=n.useRef(e);return eO(()=>{t.current=e}),t}e.s(["arrow",0,(e,t)=>{let n={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?eC({element:n.current,padding:r}).fn(t):{}:n?eC({element:n,padding:r}).fn(t):{}}};return{name:n.name,fn:n.fn,options:[e,t]}},"flip",0,(e,t)=>{let n=ex(e);return{name:n.name,fn:n.fn,options:[e,t]}},"hide",0,(e,t)=>{let n=eR(e);return{name:n.name,fn:n.fn,options:[e,t]}},"limitShift",0,(e,t)=>({fn:eS(e).fn,options:[e,t]}),"offset",0,(e,t)=>{let n=ew(e);return{name:n.name,fn:n.fn,options:[e,t]}},"shift",0,(e,t)=>{let n=eb(e);return{name:n.name,fn:n.fn,options:[e,t]}},"size",0,(e,t)=>{let n=eE(e);return{name:n.name,fn:n.fn,options:[e,t]}},"useFloating",0,function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,d]=n.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=n.useState(o);eL(p,o)||m(o);let[h,v]=n.useState(null),[g,y]=n.useState(null),w=n.useCallback(e=>
1{e!==R.current&&(R.current=e,v(e))},[]),b=n.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),x=a||h,E=l||g,R=n.useRef(null),C=n.useRef(null),S=n.useRef(f),P=null!=c,A=ek(c),O=ek(i),L=ek(s),T=n.useCallback(()=>{if(!R.current||!C.current)return;let e={placement:t,strategy:r,middleware:p};O.current&&(e.platform=O.current),eP(R.current,C.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};N.current&&!eL(S.current,t)&&(S.current=t,eA.flushSync(()=>{d(t)}))})},[p,t,r,O,L]);eO(()=>{!1===s&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let N=n.useRef(!1);eO(()=>(N.current=!0,()=>{N.current=!1}),[]),eO(()=>{if(x&&(R.current=x),E&&(C.current=E),x&&E){if(A.current)return A.current(x,E,T);T()}},[x,E,T,A,P]);let k=n.useMemo(()=>({reference:R,floating:C,setReference:w,setFloating:b}),[w,b]),D=n.useMemo(()=>({reference:x,floating:E}),[x,E]),M=n.useMemo(()=>{let e={position:r,left:0,top:0};if(!D.floating)return e;let t=eN(D.floating,f.x),n=eN(D.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...eT(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,D.floating,f.x,f.y]);return n.useMemo(()=>({...f,update:T,refs:k,elements:D,floatingStyles:M}),[f,T,k,D,M])}],58950);var eD=e.i(48425),eM=e.i(43476),eF=n.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eM.jsx)(eD.Primitive.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,eM.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eF.displayName="Arrow",e.s(["Root",0,eF],53289)},35804,e=>{"use strict";var t=e.i(71645),n=e.i(34620);e.s(["useSize",0,function(e){let[r,o]=t.useState(void 0);return(0,n.useLayoutEffect)(()=>{if(e){o({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,r;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;n=t.inlineSize,r=t.blockSize}else n=e.offsetWidth,r=e.offsetHeight;o({width:n,height:r})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}o(void 0)},[e]),r}])},53660,69655,e=>{"use strict";var t=e.i(71645),n=e.i(58950),r=e.i(53760),o=e.i(53289),i=e.i(20783),a=e.i(30030),l=e.i(48425),u=e.i(30207),c=e.i(34620),s=e.i(35804),f=e.i(43476),d="Popper",[p,m]=(0,a.createContextScope)(d),[h,v]=p(d),g=e=>{let{__scopePopper:n,children:r}=e,[o,i]=t.useState(null);return(0,f.jsx)(h,{scope:n,anchor:o,onAnchorChange:i,children:r})};g.displayName=d;var y="PopperAnchor",w=t.forwardRef((e,n)=>{let{__scopePopper:r,virtualRef:o,...a}=e,u=v(y,r),c=t.useRef(null),s=(0,i.useComposedRefs)(n,c),d=t.useRef(null);return t.useEffect(()=>{let e=d.current;d.current=o?.current||c.current,e!==d.current&&u.onAnchorChange(d.current)}),o?null:(0,f.jsx)(l.Primitive.div,{...a,ref:s})});w.displayName=y;var b="PopperContent",[x,E]=p(b),R=t.forwardRef((e,o)=>{let{__scopePopper:a,side:d="bottom",sideOffset:p=0,align:m="center",alignOffset:h=0,arrowPadding:g=0,avoidCollisions:y=!0,collisionBoundary:w=[],collisionPadding:E=0,sticky:R="partial",hideWhenDetached:C=!1,updatePositionStrategy:S="optimized",onPlaced:P,...T}=e,N=v(b,a),[k,D]=t.useState(null),M=(0,i.useComposedRefs)(o,e=>D(e)),[F,j]=t.useState(null),W=(0,s.useSize)(F),I=W?.width??0,_=W?.height??0,H="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},$=Array.isArray(w)?w:[w],B=$.length>0,z={padding:H,boundary:$.filter(A),altBoundary:B},{refs:U,floatingStyles:V,placement:Y,isPositioned:K,middlewareData:X}=(0,n.useFloating)({strategy:"fixed",placement:d+("center"!==m?"-"+m:""),whileElementsMounted:(...e)=>(0,r.autoUpdate)(...e,{animationFrame:"always"===S}),elements:{reference:N.anchor},middleware:[(0,n.offset)({mainAxis:p+_,alignmentAxis:h}),y&&(0,n.shift)({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?(0,n.limitShift)():void 0,...z}),y&&(0,n.flip)({...z}),(0,n.size)({...z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),F&&(0,n.arrow)({element:F,padding:g}),O({arrowWidth:I,arrowHeight:_}),C&&(0,n.hide)({strategy:"referenceHidden",...z})]}),[Z,q]=L(Y),G=(0,u.useCallbackRef)(P);(0,c.useLayoutEffect)(()=>{K&&G?.()},[K,G]);let J=X.arrow?.x,Q=X.arrow?.y,ee=X.arrow?.centerOffset!==0,[et,en]=t.useState();return(0,c.useLayoutEffect)(()=>{k&&en(window.getComputedStyle(k).zIndex)},[k]),(0,f.jsx)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:K?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[X.transformOrigin?.x,X.transformOrigin?.y].join(" "),...X.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(x,{scope:a,placedSide:Z,onArrowChange:j,arrowX:J,arrowY:Q,shouldHideArrow:ee,children:(0,f.jsx)(l.Primitive.div,{"data-side":Z,"data-align":q,...T,ref:M,style:{...T.
1style,animation:K?void 0:"none"}})})})});R.displayName=b;var C="PopperArrow",S={top:"bottom",right:"left",bottom:"top",left:"right"},P=t.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=E(C,n),a=S[i.placedSide];return(0,f.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,f.jsx)(o.Root,{...r,ref:t,style:{...r.style,display:"block"}})})});function A(e){return null!==e}P.displayName=C;var O=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,l=i?0:e.arrowHeight,[u,c]=L(n),s={start:"0%",center:"50%",end:"100%"}[c],f=(o.arrow?.x??0)+a/2,d=(o.arrow?.y??0)+l/2,p="",m="";return"bottom"===u?(p=i?s:`${f}px`,m=`${-l}px`):"top"===u?(p=i?s:`${f}px`,m=`${r.floating.height+l}px`):"right"===u?(p=`${-l}px`,m=i?s:`${d}px`):"left"===u&&(p=`${r.floating.width+l}px`,m=i?s:`${d}px`),{data:{x:p,y:m}}}});function L(e){let[t,n="center"]=e.split("-");return[t,n]}e.s(["Anchor",0,w,"Arrow",0,P,"Content",0,R,"Root",0,g,"createPopperScope",0,m],53660);var T=e.i(74080),N=t.forwardRef((e,n)=>{let{container:r,...o}=e,[i,a]=t.useState(!1);(0,c.useLayoutEffect)(()=>a(!0),[]);let u=r||i&&globalThis?.document?.body;return u?T.default.createPortal((0,f.jsx)(l.Primitive.div,{...o,ref:n}),u):null});N.displayName="Portal",e.s(["Portal",0,N],69655)},96626,e=>{"use strict";var t=e.i(71645),n=e.i(20783),r=e.i(34620),o=e=>{var o;let a,l,{present:u,children:c}=e,s=function(e){var n,o;let[a,l]=t.useState(),u=t.useRef(null),c=t.useRef(e),s=t.useRef("none"),[f,d]=(n=e?"mounted":"unmounted",o={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>o[e][t]??e,n));return t.useEffect(()=>{let e=i(u.current);s.current="mounted"===f?e:"none"},[f]),(0,r.useLayoutEffect)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=i(t);e?d("MOUNT"):"none"===o||t?.display==="none"?d("UNMOUNT"):n&&r!==o?d("ANIMATION_OUT"):d("UNMOUNT"),c.current=e}},[e,d]),(0,r.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,n=n=>{let r=i(u.current).includes(CSS.escape(n.animationName));if(n.target===a&&r&&(d("ANIMATION_END"),!c.current)){let n=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=n)})}},r=e=>{e.target===a&&(s.current=i(u.current))};return a.addEventListener("animationstart",r),a.addEventListener("animationcancel",n),a.addEventListener("animationend",n),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",r),a.removeEventListener("animationcancel",n),a.removeEventListener("animationend",n)}}d("ANIMATION_END")},[a,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{u.current=e?getComputedStyle(e):null,l(e)},[])}}(u),f="function"==typeof c?c({present:s.isPresent}):t.Children.only(c),d=(0,n.useComposedRefs)(s.ref,(o=f,(l=(a=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.ref:(l=(a=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?o.props.ref:o.props.ref||o.ref));return"function"==typeof c||s.isPresent?t.cloneElement(f,{ref:d}):null};function i(e){return e?.animationName||"none"}o.displayName="Presence",e.s(["Presence",0,o])},69340,e=>{"use strict";var t=e.i(71645),n=e.i(34620);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var r=t[" useInsertionEffect ".trim().toString()]||n.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:n,onChange:o=()=>{},caller:i}){let[a,l,u]=function({defaultProp:e,onChange:n}){let[o,i]=t.useState(e),a=t.useRef(o),l=t.useRef(n);return r(()=>{l.current=n},[n]),t.useEffect(()=>{a.current!==o&&(l.current?.(o),a.current=o)},[o,a]),[o,i,l]}({defaultProp:n,onChange:o}),c=void 0!==e,s=c?e:a;{let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==c){let t=c?"controlled":"uncontrolled";console.warn(`${i} 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.`)}n.current=c},[c,i])}return[s,t.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else l(t)},[c,e,l,u])]}],69340)},78761,e=>{"use strict";var t,n,r,o,i,a,l,u=e.i(71645),c=e.i(81140),s=e.i(20783),f=e.i(30030),d=e.i(26330),p=e.i(3536),m=e.i(65491),h=e.i(10772),v=e.i(53660),g=e.i(69655),y=e.i(96626),w=e.i(48425),b=e.i(91918),x=e.i(69340),E=new WeakMap,R=new WeakMap,C={},S=0,P=function(e){return e&&(e.host||P(e.parentNode))},A=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=P(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});C[n]||(C[n]=new WeakMap);var i=C[n],a=[],l=new Set,u=new Set(o),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,u=(E.get(e)||0)+1,c=(i.get(e)||0)+1;E.set(e,u),i.set(e,c),a.push(e),1===u&&o&&R.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),l.clear(),S++,function(){a.forEach(function(e){var t=E.get(e)-1,o=i.get(e)-1;E.set(e,t),i.set(e,o),t||(R.has(e)||e.removeAttribute(r),R.delete(e)),o||e.removeAttribute(n)}),--S||(E=new WeakMap,E=new WeakMap,R=new WeakMap,C={})}},O=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),A(r,o,n,"aria-hidden")):function(){return null}},L=function(){return(L=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function T(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var N=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),k="width-before-scroll-bar";function D(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var M="u">typeof window?u.useLayoutEffect:u.useEffect,F=new WeakMap,j=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,i={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;
1r=[],n.forEach(e),t=r}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),r={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),r}}}}).options=L({async:!0,ssr:!1},t),i),W=function(){},I=u.forwardRef(function(e,t){var n,r,o,i,a=u.useRef(null),l=u.useState({onScrollCapture:W,onWheelCapture:W,onTouchMoveCapture:W}),c=l[0],s=l[1],f=e.forwardProps,d=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,y=e.noRelative,w=e.noIsolation,b=e.inert,x=e.allowPinchZoom,E=e.as,R=e.gapMode,C=T(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return D(t,e)})},(o=(0,u.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,i=o.facade,M(function(){var e=F.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||D(e,null)}),r.forEach(function(e){t.has(e)||D(e,o)})}F.set(i,n)},[n]),i),P=L(L({},C),c);return u.createElement(u.Fragment,null,h&&u.createElement(g,{sideCar:j,removeScrollBar:m,shards:v,noRelative:y,noIsolation:w,inert:b,setCallbacks:s,allowPinchZoom:!!x,lockRef:a,gapMode:R}),f?u.cloneElement(u.Children.only(d),L(L({},P),{ref:S})):u.createElement(void 0===E?"div":E,L({},P,{className:p,ref:S}),d))});I.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},I.classNames={fullWidth:k,zeroRight:N};var _=function(e){var t=e.sideCar,n=T(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 u.createElement(r,L({},n))};_.isSideCarExport=!0;var H=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$=function(){var e=H();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}
1,B=function(){var e=$();return function(t){return e(t.styles,t.dynamic),null}},z={left:0,top:0,right:0,gap:0},U=function(e){return parseInt(e||"",10)||0},V=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[U(n),U(r),U(o)]},Y=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return z;var t=V(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])}},K=B(),X="data-scroll-locked",Z=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(l,"px ").concat(r,";\n }\n body[").concat(X,"] {\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(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(N," {\n right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(k," {\n margin-right: ").concat(l,"px ").concat(r,";\n }\n \n .").concat(N," .").concat(N," {\n right: 0 ").concat(r,";\n }\n \n .").concat(k," .").concat(k," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(X,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")},q=function(){var e=parseInt(document.body.getAttribute(X)||"0",10);return isFinite(e)?e:0},G=function(){u.useEffect(function(){return document.body.setAttribute(X,(q()+1).toString()),function(){var e=q()-1;e<=0?document.body.removeAttribute(X):document.body.setAttribute(X,e.toString())}},[])},J=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;G();var i=u.useMemo(function(){return Y(o)},[o]);return u.createElement(K,{styles:Z(i,!t,o,n?"":"!important")})},Q=!1;if("u">typeof window)try{var ee=Object.defineProperty({},"passive",{get:function(){return Q=!0,!0}});window.addEventListener("test",ee,ee),window.removeEventListener("test",ee,ee)}catch(e){Q=!1}var et=!!Q&&{passive:!1},en=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])},er=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eo(e,r)){var o=ei(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},eo=function(e,t){return"v"===e?en(t,"overflowY"):en(t,"overflowX")},ei=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ea=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,c=t.contains(u),s=!1,f=l>0,d=0,p=0;do{if(!u)break;var m=ei(e,u),h=m[0],v=m[1]-m[2]-a*h;(h||v)&&eo(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&&l>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},el=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eu=function(e){return[e.deltaX,e.deltaY]},ec=function(e){return e&&"current"in e?e.current:e},es=0,ef=[];let ed=(a=function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(es++)[0],i=u.useState(B)[0],a=u.useRef(e);u.useEffect(function(){a.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}
1)([e.lockRef.current],(e.shards||[]).map(ec),!0).filter(Boolean);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 l=u.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=el(e),l=n.current,u="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(u)>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=er(f,s);if(!m)return!0;if(m?o=f:(o="v"===f?"h":"v",m=er(f,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var h=r.current||o;return ea(h,t,e,"h"===h?u:c,!0)},[]),c=u.useCallback(function(e){if(ef.length&&ef[ef.length-1]===i){var n="deltaY"in e?eu(e):el(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=(a.current.shards||[]).map(ec).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?l(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=u.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)},[]),f=u.useCallback(function(e){n.current=el(e),r.current=void 0},[]),d=u.useCallback(function(t){s(t.type,eu(t),t.target,l(t,e.lockRef.current))},[]),p=u.useCallback(function(t){s(t.type,el(t),t.target,l(t,e.lockRef.current))},[]);u.useEffect(function(){return ef.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,et),document.addEventListener("touchmove",c,et),document.addEventListener("touchstart",f,et),function(){ef=ef.filter(function(e){return e!==i}),document.removeEventListener("wheel",c,et),document.removeEventListener("touchmove",c,et),document.removeEventListener("touchstart",f,et)}},[]);var m=e.removeScrollBar,h=e.inert;return u.createElement(u.Fragment,null,h?u.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?u.createElement(J,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},j.useMedium(a),_);var ep=u.forwardRef(function(e,t){return u.createElement(I,L({},e,{ref:t,sideCar:ed}))});ep.classNames=I.classNames;var em=e.i(43476),eh="Popover",[ev,eg]=(0,f.createContextScope)(eh,[v.createPopperScope]),ey=(0,v.createPopperScope)(),[ew,eb]=ev(eh),ex=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=ey(t),c=u.useRef(null),[s,f]=u.useState(!1),[d,p]=(0,x.useControllableState)({prop:r,defaultProp:o??!1,onChange:i,caller:eh});return(0,em.jsx)(v.Root,{...l,children:(0,em.jsx)(ew,{scope:t,contentId:(0,h.useId)(),triggerRef:c,open:d,onOpenChange:p,onOpenToggle:u.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:s,onCustomAnchorAdd:u.useCallback(()=>f(!0),[]),onCustomAnchorRemove:u.useCallback(()=>f(!1),[]),modal:a,children:n})})};ex.displayName=eh;var eE="PopoverAnchor";u.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eb(eE,n),i=ey(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return u.useEffect(()=>(a(),()=>l()),[a,l]),(0,em.jsx)(v.Anchor,{...i,...r,ref:t})}).displayName=eE;var eR="PopoverTrigger",eC=u.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eb(eR,n),i=ey(n),a=(0,s.useComposedRefs)(t,o.triggerRef),l=(0,em.jsx)(w.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":eI(o.open),...r,ref:a,onClick:(0,c.composeEventHandlers)(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?l:(0,em.jsx)(v.Anchor,{asChild:!0,...i,children:l})});eC.displayName=eR;var eS="PopoverPortal",[eP,eA]=ev(eS,{forceMount:void 0}),eO=e=>{let{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=eb(eS,t);return(0,em.jsx)(eP,{scope:t,forceMount:n,children:(0,em.jsx)(y.Presence,{present:n||i.open,children:(0,em.jsx)(g.Portal,{asChild:!0,container:o,children:r})})})};eO.displayName=eS;var eL="PopoverContent",eT=u.forwardRef((e,t)=>
1{let n=eA(eL,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=eb(eL,e.__scopePopover);return(0,em.jsx)(y.Presence,{present:r||i.open,children:i.modal?(0,em.jsx)(ek,{...o,ref:t}):(0,em.jsx)(eD,{...o,ref:t})})});eT.displayName=eL;var eN=(0,b.createSlot)("PopoverContent.RemoveScroll"),ek=u.forwardRef((e,t)=>{let n=eb(eL,e.__scopePopover),r=u.useRef(null),o=(0,s.useComposedRefs)(t,r),i=u.useRef(!1);return u.useEffect(()=>{let e=r.current;if(e)return O(e)},[]),(0,em.jsx)(ep,{as:eN,allowPinchZoom:!0,children:(0,em.jsx)(eM,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,c.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,c.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,c.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),eD=u.forwardRef((e,t)=>{let n=eb(eL,e.__scopePopover),r=u.useRef(!1),o=u.useRef(!1);return(0,em.jsx)(eM,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let i=t.target;n.triggerRef.current?.contains(i)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eM=u.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:s,...f}=e,h=eb(eL,n),g=ey(n);return(0,p.useFocusGuards)(),(0,em.jsx)(m.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,em.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,em.jsx)(v.Content,{"data-state":eI(h.open),role:"dialog",id:h.contentId,...g,...f,ref:t,style:{...f.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)"}})})})}),eF="PopoverClose",ej=u.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=eb(eF,n);return(0,em.jsx)(w.Primitive.button,{type:"button",...r,ref:t,onClick:(0,c.composeEventHandlers)(e.onClick,()=>o.onOpenChange(!1))})});ej.displayName=eF;var eW=u.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,o=ey(n);return(0,em.jsx)(v.Arrow,{...o,...r,ref:t})});function eI(e){return e?"open":"closed"}eW.displayName="PopoverArrow",e.s(["Arrow",0,eW,"Close",0,ej,"Content",0,eT,"Portal",0,eO,"Root",0,ex,"Trigger",0,eC],78761)}]);
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.