PageSourceSearch

https://www.enercity-erneuerbare.de/_next/static/chunks/3213.6964b4d3dc98f711.js

js enercity-erneuerbare.de collected 2026-10-08 06:48:10 UTC 86,125 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3213],{15207:(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],d=[],f=new Set,p=new Set(c),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};c.forEach(m);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(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),d.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 v(t),f.clear(),l++,function(){d.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||("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"))),u(r,o,n,"aria-hidden")):function(){return null}}},17049:(e,t,n)=>{n.d(t,{c:()=>o});var r=n(77766);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(0,Object.defineProperty)(o,"name",{value:"useCallbackRef",configurable:!0})},17901:(e,t,n)=>{let r;n.d(t,{uB:()=>eK,wo:()=>eq});var o,i=/[\\\/_+.#"@\[\(\{&]/,l=/[\\\/_+.#"@\[\(\{&]/g,a=/[\s-]/,u=/[\s-]/g;function c(e){return e.toLowerCase().replace(u," ")}var s=n(77766),d=n.t(s,2);function f(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function p(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function m(...e){return t=>{let n=!1,r=e.map(e=>{let r=p(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():p(e[t],null)}}}}function v(...e){return s.useCallback(m(...e),e)}"u">typeof window&&window.document&&window.document.createElement;var h=n(49222),g=globalThis?.document?s.useLayoutEffect:()=>{},y=d[" useId ".trim().toString()]||(()=>void 0),b=0;function w(e){let[t,n]=s.useState(y());return g(()=>{e||n(e=>e??String(b++))},[e]),e||(t?`radix-${t}`:"")}var E=d[" useInsertionEffect ".trim().toString()]||g;Symbol("RADIX:SYNC_STATE");var x=n(392);function C(e){let t=s.forwardRef((t,n)=>{var r;let o,i,{children:l,...a}=t,u=null,c=!1,d=[];P(l)&&"function"==typeof N&&(l=N(l._payload)),s.Children.forEach(l,e=>{var t;if(t=e,s.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===S){c=!0;let t="child"in e.props?e.props.child:e.props.children;P(t)&&"function"==typeof N&&(t=N(t._payload)),u=R(e,t),d.push(u?.props?.children)}else d.push(e)}),u?u=s.cloneElement(u,void 0,d):!c&&1===s.Children.count(l)&&s.isValidElement(l)&&(u=l);let f=u?(r=u,(i=(o=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?r.ref:(i=(o=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in o&&o.isReactWarning)?r.props.ref:r.props.ref||r.ref):void 0,p=v(n,f);if(!u){if(l||0===l)throw Error(c?L(e):A(e));return l}let m=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}}(a,u.props??{});return u.type!==s.Fragment&&(m.ref=n?p:f),s.cloneElement(u,m)});return t.displayName=`${e}.Slot`,t}var S=Symbol.for("radix.slottable"),R=(e,t)=>{if("child"in e.props){let t=e.props.child;return s.isValidElement(t)?s.cloneElement(t,void 0,e.props.children(t.props.children)):null}return s.isValidElement(t)?t:null},O=Symbol.for("react.lazy");function P(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===O&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var A=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,L=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,N=d[" use ".trim().toString()],k=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=C(`Primitive.${t}`),r=s.forwardRef((e,r)=>{let{asChild:o,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(o?n:t,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function D(e){let t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}var T="dismissableLayer.update",M=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),I=s.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...d}=e,p=s.useContext(M),[m,g]=s.useState(null),y=m?.ownerDocument??globalThis?.document,[,b]=s.useState({}),w=v(t,e=>g(e)),E=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=E.indexOf(x),S=m?E.indexOf(m):-1,R=p.layersWithOutsidePointerEventsDisabled.size>0,O=S>=C,P=s.useRef(!1),A=function(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i}=t,l=D(e),a=s.useRef(!1),u=s.useRef(!1),c=s.useRef(new Map),d=s.useRef(()=>{});return s.useEffect(()=>{function e(){u.current=!1,o.current=!1,c.current.clear()}function t(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||c.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function s(e){u.current&&c.current.set(e.type,!1)}let f=t=>{if(t.target&&!a.current){let i=function(){n.removeEventListener("click",d.current);let t=Array.from(c.current.values()).some(Boolean);e(),t||j("dismissableLayer.pointerDownOutside",l,a,{discrete:!0})},a={originalEvent:t};u.current=!0,o.current=r&&0===t.button,c.current.clear(),r&&0===t.button?(n.removeEventListener("click",d.current),d.current=i,n.addEventListener("click",d.current,{once:!0})):i()}else n.removeEventListener("click",d.current),e();a.current=!1},p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of p)n.addEventListener(e,t,!0),n.addEventListener(e,s);let m=window.setTimeout(()=>{n.addEventListener("pointerdown",f)},0);return()=>{for(let e of(window.clearTimeout(m),n.removeEventListener("pointerdown",f),n.removeEventListener("click",d.current),p))n.removeEventListener(e,t,!0),n.removeEventListener(e,s)}},[n,l,r,o,i]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target;if(!(t instanceof Node))return;let n=[...p.branches].some(e=>e.contains(t));O&&!n&&(l?.(e),u?.(e),e.defaultPrevented||c?.())},{ownerDocument:y,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:p.dismissableSurfaces}),L=function(e,t=globalThis?.document){let n=D(e),r=s.useRef(!1);return s.useEffect(()=>{let e=e=>{e.target&&!r.current&&j("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(r&&P.current)return;let t=e.target;![...p.branches].some(e=>e.contains(t))&&(a?.(e),u?.(e),e.defaultPrevented||c?.())},y);return!function(e,t=globalThis?.document){let n=D(e);s.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=>{S===p.layers.size-1&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},y),s.useEffect(()=>{if(m)return n&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(o=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),F(),()=>{n&&(p.layersWithOutsidePointerEventsDisabled.delete(m),0===p.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=o))}},[m,y,n,p]),s.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),F())},[m,p]),s.useEffect(()=>{let e=()=>b({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),(0,h.jsx)(k.div,{...d,ref:w,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:f(e.onFocusCapture,L.onFocusCapture),onBlurCapture:f(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:f(e.onPointerDownCapture,A.onPointerDownCapture)})});function F(){let e=new CustomEvent(T);document.dispatchEvent(e)}function j(e,t,n,{discrete:r}){let o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&o.addEventListener(e,t,{once:!0}),r)o&&x.flushSync(()=>o.dispatchEvent(i));else o.dispatchEvent(i)}I.displayName="DismissableLayer",s.forwardRef((e,t)=>
1{let n=s.useContext(M),r=s.useRef(null),o=v(t,r);return s.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,h.jsx)(k.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var _="focusScope.autoFocusOnMount",W="focusScope.autoFocusOnUnmount",$={bubbles:!1,cancelable:!0},B=s.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,u]=s.useState(null),c=D(o),d=D(i),f=s.useRef(null),p=v(t,e=>u(e)),m=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(m.paused||!a)return;let t=e.target;a.contains(t)?f.current=t:H(f.current,{select:!0})},t=function(e){if(m.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||H(f.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&&H(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,m.paused]),s.useEffect(()=>{if(a){V.add(m);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(_,$);a.addEventListener(_,c),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(H(r,{select:t}),document.activeElement!==n)return}(U(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&H(a))}return()=>{a.removeEventListener(_,c),setTimeout(()=>{let t=new CustomEvent(W,$);a.addEventListener(W,d),a.dispatchEvent(t),t.defaultPrevented||H(e??document.body,{select:!0}),a.removeEventListener(W,d),V.remove(m)},0)}}},[a,c,d,m]);let g=s.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var i;let t,r=e.currentTarget,[l,a]=[K(t=U(i=r),i),K(t.reverse(),i)];l&&a?e.shiftKey||o!==a?e.shiftKey&&o===l&&(e.preventDefault(),n&&H(a,{select:!0})):(e.preventDefault(),n&&H(l,{select:!0})):o===r&&e.preventDefault()}},[n,r,m.paused]);return(0,h.jsx)(k.div,{tabIndex:-1,...l,ref:p,onKeyDown:g})});function U(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 K(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 H(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()}}B.displayName="FocusScope";var V=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=z(r,e)).unshift(e)},remove(e){r=z(r,e),r[0]?.resume()}});function z(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var q=s.forwardRef((e,t)=>{let{container:n,...r}=e,[o,i]=s.useState(!1);g(()=>i(!0),[]);let l=n||o&&globalThis?.document?.body;return l?x.createPortal((0,h.jsx)(k.div,{...r,ref:t}),l):null});q.displayName="Portal";var X=e=>{var t;let n,r,{present:o,children:i}=e,l=function(e){var t,n;let[r,o]=s.useState(),i=s.useRef(null),l=s.useRef(e),a=s.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},s.useReducer((e,t)=>n[e][t]??e,t));return s.useEffect(()=>{let e=Y(i.current);a.current="mounted"===u?e:"none"},[u]),g(()=>{let t=i.current,n=l.current;if(n!==e){let r=a.current,o=Y(t);e?c("MOUNT"):"none"===o||t?.display==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),l.current=e}},[e,c]),g(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let o=Y(i.current).includes(CSS.escape(n.animationName));if(n.target===r&&o&&(c("ANIMATION_END"),!l.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(a.current=Y(i.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:s.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(o),a="function"==typeof i?i({present:l.isPresent}):s.Children.only(i),u=function(...e){let t=s.useRef(e);return t.current=e,s.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=G(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;
1e++){let t=o[e];"function"==typeof t?t():G(n[e],null)}}},[])}(l.ref,(t=a,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof i||l.isPresent?s.cloneElement(a,{ref:u}):null};function G(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Y(e){return e?.animationName||"none"}X.displayName="Presence";var Z=0,J=null;function Q(){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}var ee=n(57219),et=n(15207),en="Dialog",[er,eo]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>s.createContext(e));return function(n){let r=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=s.createContext(r);o.displayName=t+"Context";let i=n.length;n=[...n,r];let l=t=>{let{scope:n,children:r,...l}=t,a=n?.[e]?.[i]||o,u=s.useMemo(()=>l,Object.values(l));return(0,h.jsx)(a.Provider,{value:u,children:r})};return l.displayName=t+"Provider",[l,function(n,l){let a=l?.[e]?.[i]||o,u=s.useContext(a);if(u)return u;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(en),[ei,el]=er(en),ea=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0}=e,a=s.useRef(null),u=s.useRef(null),[c,d]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,l]=function({defaultProp:e,onChange:t}){let[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return E(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,u=a?e:o;{let t=s.useRef(void 0!==e);s.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} 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=a},[a,r])}return[u,s.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else i(t)},[a,e,i,l])]}({prop:r,defaultProp:o??!1,onChange:i,caller:en});return(0,h.jsx)(ei,{scope:t,triggerRef:a,contentRef:u,contentId:w(),titleId:w(),descriptionId:w(),open:c,onOpenChange:d,onOpenToggle:s.useCallback(()=>d(e=>!e),[d]),modal:l,children:n})};ea.displayName=en;var eu="DialogTrigger";s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=el(eu,n),i=v(t,o.triggerRef);return(0,h.jsx)(k.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":eR(o.open),...r,ref:i,onClick:f(e.onClick,o.onOpenToggle)})}).displayName=eu;var ec="DialogPortal",[es,ed]=er(ec,{forceMount:void 0}),ef=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=el(ec,t);return(0,h.jsx)(es,{scope:t,forceMount:n,children:s.Children.map(r,e=>(0,h.jsx)(X,{present:n||i.open,children:(0,h.jsx)(q,{asChild:!0,container:o,children:e})}))})};ef.displayName=ec;var ep="DialogOverlay",em=s.forwardRef((e,t)=>{let n=ed(ep,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=el(ep,e.__scopeDialog);return i.modal?(0,h.jsx)(X,{present:r||i.open,children:(0,h.jsx)(eh,{...o,ref:t})}):null});em.displayName=ep;var ev=C("DialogOverlay.RemoveScroll"),eh=s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=el(ep,n),i=v(t,function(){let e=s.useContext(M),[t,n]=s.useState(null);return s.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}());return(0,h.jsx)(ee.A,{as:ev,allowPinchZoom:!0,shards:[o.contentRef],children:(0,h.jsx)(k.div,{"data-state":eR(o.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),eg="DialogContent",ey=s.forwardRef((e,t)=>
1{let n=ed(eg,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=el(eg,e.__scopeDialog);return(0,h.jsx)(X,{present:r||i.open,children:i.modal?(0,h.jsx)(eb,{...o,ref:t}):(0,h.jsx)(ew,{...o,ref:t})})});ey.displayName=eg;var eb=s.forwardRef((e,t)=>{let n=el(eg,e.__scopeDialog),r=s.useRef(null),o=v(t,n.contentRef,r);return s.useEffect(()=>{let e=r.current;if(e)return(0,et.Eq)(e)},[]),(0,h.jsx)(eE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:f(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:f(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:f(e.onFocusOutside,e=>e.preventDefault())})}),ew=s.forwardRef((e,t)=>{let n=el(eg,e.__scopeDialog),r=s.useRef(!1),o=s.useRef(!1);return(0,h.jsx)(eE,{...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()}})}),eE=s.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,a=el(eg,n);return s.useEffect(()=>{J||(J={start:Q(),end:Q()});let{start:e,end:t}=J;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Z++,()=>{1===Z&&(J?.start.remove(),J?.end.remove(),J=null),Z=Math.max(0,Z-1)}},[]),(0,h.jsx)(h.Fragment,{children:(0,h.jsx)(B,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,h.jsx)(I,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":eR(a.open),...l,ref:t,deferPointerDownOutside:!0,onDismiss:()=>a.onOpenChange(!1)})})})}),ex="DialogTitle";s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=el(ex,n);return(0,h.jsx)(k.h2,{id:o.titleId,...r,ref:t})}).displayName=ex;var eC="DialogDescription";s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=el(eC,n);return(0,h.jsx)(k.p,{id:o.descriptionId,...r,ref:t})}).displayName=eC;var eS="DialogClose";function eR(e){return e?"open":"closed"}s.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=el(eS,n);return(0,h.jsx)(k.button,{type:"button",...r,ref:t,onClick:f(e.onClick,()=>o.onOpenChange(!1))})}).displayName=eS;var eO='[cmdk-group=""]',eP='[cmdk-group-items=""]',eA='[cmdk-item=""]',eL=`${eA}:not([aria-disabled="true"])`,eN="cmdk-item-select",ek="data-value",eD=(e,t,n)=>{var r;return r=e,function e(t,n,r,o,c,s,d){if(s===n.length)return c===t.length?1:.99;var f=`${c},${s}`;if(void 0!==d[f])return d[f];for(var p,m,v,h,g=o.charAt(s),y=r.indexOf(g,c),b=0;y>=0;)(p=e(t,n,r,o,y+1,s+1,d))>b&&(y===c?p*=1:i.test(t.charAt(y-1))?(p*=.8,(v=t.slice(c,y-1).match(l))&&c>0&&(p*=Math.pow(.999,v.length))):a.test(t.charAt(y-1))?(p*=.9,(h=t.slice(c,y-1).match(u))&&c>0&&(p*=Math.pow(.999,h.length))):(p*=.17,c>0&&(p*=Math.pow(.999,y-c))),t.charAt(y)!==n.charAt(s)&&(p*=.9999)),(p<.1&&r.charAt(y-1)===o.charAt(s+1)||o.charAt(s+1)===o.charAt(s)&&r.charAt(y-1)!==o.charAt(s))&&.1*(m=e(t,n,r,o,y+1,s+2,d))>p&&(p=.1*m),p>b&&(b=p),y=r.indexOf(g,y+1);return d[f]=b,b}(r=n&&n.length>0?`${r+" "+n.join(" ")}`:r,t,c(r),c(t),0,0,{})},eT=s.createContext(void 0),eM=s.createContext(void 0),eI=s.createContext(void 0),eF=s.forwardRef((e,t)=>{let n=ez(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=ez(()=>new Set),o=ez(()=>new Map),i=ez(()=>new Map),l=ez(()=>new Set),a=eH(e),{label:u,children:c,value:d,onValueChange:f,filter:p,shouldFilter:m,loop:v,disablePointerSelection:h=!1,vimBindings:g=!0,...y}=e,b=w(),E=w(),x=w(),C=s.useRef(null),S=eG();eV(()=>
1{if(void 0!==d){let e=d.trim();n.current.value=e,R.emit()}},[d]),eV(()=>{S(6,D)},[]);let R=s.useMemo(()=>({subscribe:e=>(l.current.add(e),()=>l.current.delete(e)),snapshot:()=>n.current,setState:(e,t,r)=>{var o,i,l,u;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)N(),A(),S(1,L);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(x);e?e.focus():null==(o=document.getElementById(b))||o.focus()}if(S(7,()=>{var e;n.current.selectedItemId=null==(e=T())?void 0:e.id,R.emit()}),r||S(5,D),(null==(i=a.current)?void 0:i.value)!==void 0){null==(u=(l=a.current).onValueChange)||u.call(l,null!=t?t:"");return}}R.emit()}},emit:()=>{l.current.forEach(e=>e())}}),[]),O=s.useMemo(()=>({value:(e,t,r)=>{var o;t!==(null==(o=i.current.get(e))?void 0:o.value)&&(i.current.set(e,{value:t,keywords:r}),n.current.filtered.items.set(e,P(t,r)),S(2,()=>{A(),R.emit()}))},item:(e,t)=>(r.current.add(e),t&&(o.current.has(t)?o.current.get(t).add(e):o.current.set(t,new Set([e]))),S(3,()=>{N(),A(),n.current.value||L(),R.emit()}),()=>{i.current.delete(e),r.current.delete(e),n.current.filtered.items.delete(e);let t=T();S(4,()=>{N(),(null==t?void 0:t.getAttribute("id"))===e&&L(),R.emit()})}),group:e=>(o.current.has(e)||o.current.set(e,new Set),()=>{i.current.delete(e),o.current.delete(e)}),filter:()=>a.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>a.current.disablePointerSelection,listId:b,inputId:x,labelId:E,listInnerRef:C}),[]);function P(e,t){var r,o;let i=null!=(o=null==(r=a.current)?void 0:r.filter)?o:eD;return e?i(e,n.current.search,t):0}function A(){if(!n.current.search||!1===a.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let r=o.current.get(n),i=0;r.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([n,i])});let r=C.current;M().sort((t,n)=>{var r,o;let i=t.getAttribute("id"),l=n.getAttribute("id");return(null!=(r=e.get(l))?r:0)-(null!=(o=e.get(i))?o:0)}).forEach(e=>{let t=e.closest(eP);t?t.appendChild(e.parentElement===t?e:e.closest(`${eP} > *`)):r.appendChild(e.parentElement===r?e:e.closest(`${eP} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=C.current)?void 0:t.querySelector(`${eO}[${ek}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function L(){let e=M().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(ek);R.setState("value",t||void 0)}function N(){var e,t,l,u;if(!n.current.search||!1===a.current.shouldFilter){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let o of r.current){let r=P(null!=(t=null==(e=i.current.get(o))?void 0:e.value)?t:"",null!=(u=null==(l=i.current.get(o))?void 0:l.keywords)?u:[]);n.current.filtered.items.set(o,r),r>0&&c++}for(let[e,t]of o.current)for(let r of t)if(n.current.filtered.items.get(r)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function D(){var e,t,n;let r=T();r&&((null==(e=r.parentElement)?void 0:e.firstChild)===r&&(null==(n=null==(t=r.closest(eO))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),r.scrollIntoView({block:"nearest"}))}function T(){var e;return null==(e=C.current)?void 0:e.querySelector(`${eA}[aria-selected="true"]`)}function M(){var e;return Array.from((null==(e=C.current)?void 0:e.querySelectorAll(eL))||[])}function I(e){let t=M()[e];t&&R.setState("value",t.getAttribute(ek))}function F(e){var t;let n=T(),r=M(),o=r.findIndex(e=>e===n),i=r[o+e];null!=(t=a.current)&&t.loop&&(i=o+e<0?r[r.length-1]:o+e===r.length?r[0]:r[o+e]),i&&R.setState("value",i.getAttribute(ek))}function j(e){let t=T(),n=null==t?void 0:t.closest(eO),r;for(;n&&!r;)r=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,eO):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,eO))?void 0:n.querySelector(eL);r?R.setState("value",r.getAttribute(ek)):F(e)}let _=()=>I(M().length-1),W=e=>{e.preventDefault(),e.metaKey?_():e.altKey?j(1):F(1)},$=e=>{e.preventDefault(),e.metaKey?I(0):e.altKey?j(-1):F(-1)};return s.createElement(k.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=y.onKeyDown)||t.call(y,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":g&&e.ctrlKey&&W(e);break;case"ArrowDown":W(e);break;case"p":case"k":g&&e.ctrlKey&&$(e);break;case"ArrowUp":$(e);break;case"Home":e.preventDefault(),I(0);break;case"End":e.preventDefault(),_();break;case"Enter":{e.preventDefault();let t=T();if(t){let e=new Event(eN);t.dispatchEvent(e)}}}}},s.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:eZ},u),eY(e,e=>s.createElement(eM.Provider,{value:R},s.createElement(eT.Provider,{value:O},e))))}),ej=s.forwardRef((e,t)=>
1{var n,r;let o=w(),i=s.useRef(null),l=s.useContext(eI),a=s.useContext(eT),u=eH(e),c=null!=(r=null==(n=u.current)?void 0:n.forceMount)?r:null==l?void 0:l.forceMount;eV(()=>{if(!c)return a.item(o,null==l?void 0:l.id)},[c]);let d=eX(o,i,[e.value,e.children,i],e.keywords),f=s.useContext(eM),p=eq(e=>e.value&&e.value===d.current),v=eq(e=>!!c||!1===a.filter()||!e.search||e.filtered.items.get(o)>0);function h(){var e,t;g(),null==(t=(e=u.current).onSelect)||t.call(e,d.current)}function g(){f.setState("value",d.current,!0)}if(s.useEffect(()=>{let t=i.current;if(!(!t||e.disabled))return t.addEventListener(eN,h),()=>t.removeEventListener(eN,h)},[v,e.onSelect,e.disabled]),!v)return null;let{disabled:y,value:b,onSelect:E,forceMount:x,keywords:C,...S}=e;return s.createElement(k.div,{ref:m(i,t),...S,id:o,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!p,"data-disabled":!!y,"data-selected":!!p,onPointerMove:y||a.getDisablePointerSelection()?void 0:g,onClick:y?void 0:h},e.children)}),e_=s.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:o,...i}=e,l=w(),a=s.useRef(null),u=s.useRef(null),c=w(),d=s.useContext(eT),f=eq(e=>!!o||!1===d.filter()||!e.search||e.filtered.groups.has(l));eV(()=>d.group(l),[]),eX(l,a,[e.value,e.heading,u]);let p=s.useMemo(()=>({id:l,forceMount:o}),[o]);return s.createElement(k.div,{ref:m(a,t),...i,"cmdk-group":"",role:"presentation",hidden:!f||void 0},n&&s.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),eY(e,e=>s.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},s.createElement(eI.Provider,{value:p},e))))}),eW=s.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,o=s.useRef(null),i=eq(e=>!e.search);return n||i?s.createElement(k.div,{ref:m(o,t),...r,"cmdk-separator":"",role:"separator"}):null}),e$=s.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,o=null!=e.value,i=s.useContext(eM),l=eq(e=>e.search),a=eq(e=>e.selectedItemId),u=s.useContext(eT);return s.useEffect(()=>{null!=e.value&&i.setState("search",e.value)},[e.value]),s.createElement(k.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":a,id:u.inputId,type:"text",value:o?e.value:l,onChange:e=>{o||i.setState("search",e.target.value),null==n||n(e.target.value)}})}),eB=s.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...o}=e,i=s.useRef(null),l=s.useRef(null),a=eq(e=>e.selectedItemId),u=s.useContext(eT);return s.useEffect(()=>{if(l.current&&i.current){let e=l.current,t=i.current,n,r=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return r.observe(e),()=>{cancelAnimationFrame(n),r.unobserve(e)}}},[]),s.createElement(k.div,{ref:m(i,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":a,"aria-label":r,id:u.listId},eY(e,e=>s.createElement("div",{ref:m(l,u.listInnerRef),"cmdk-list-sizer":""},e)))}),eU=s.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:o,contentClassName:i,container:l,...a}=e;return s.createElement(ea,{open:n,onOpenChange:r},s.createElement(ef,{container:l},s.createElement(em,{"cmdk-overlay":"",className:o}),s.createElement(ey,{"aria-label":e.label,"cmdk-dialog":"",className:i},s.createElement(eF,{ref:t,...a}))))}),eK=Object.assign(eF,{List:eB,Item:ej,Input:e$,Group:e_,Separator:eW,Dialog:eU,Empty:s.forwardRef((e,t)=>eq(e=>0===e.filtered.count)?s.createElement(k.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:s.forwardRef((e,t)=>{let{progress:n,children:r,label:o="Loading...",...i}=e;return s.createElement(k.div,{ref:t,...i,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},eY(e,e=>s.createElement("div",{"aria-hidden":!0},e)))})});function eH(e){let t=s.useRef(e);return eV(()=>{t.current=e}),t}var eV="u"<typeof window?s.useEffect:s.useLayoutEffect;function ez(e){let t=s.useRef();return void 0===t.current&&(t.current=e()),t}function eq(e){let t=s.useContext(eM),n=()=>e(t.snapshot());return s.useSyncExternalStore(t.subscribe,n,n)}function eX(e,t,n,r=[]){let o=s.useRef(),i=s.useContext(eT);return eV(()=>{var l;let a=(()=>{var e;
1for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():o.current}})(),u=r.map(e=>e.trim());i.value(e,a,u),null==(l=t.current)||l.setAttribute(ek,a),o.current=a}),o}var eG=()=>{let[e,t]=s.useState(),n=ez(()=>new Map);return eV(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,r)=>{n.current.set(e,r),t({})}};function eY({asChild:e,children:t},n){let r;return e&&s.isValidElement(t)?s.cloneElement("function"==typeof(r=t.type)?r(t.props):"render"in r?r.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var eZ={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"}},21953:(e,t,n)=>{let r;n.d(t,{Mz:()=>tU,UC:()=>tK,bL:()=>tB});var o,i=n(77766),l=n(70299),a=n(73910),u=n(89316),c=n(89519),s=n(17049),d=n(49222),f=Object.defineProperty,p=(e,t)=>f(e,"name",{value:t,configurable:!0}),m="dismissableLayer.update",v=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=i.forwardRef(p(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:g,onDismiss:E,...x}=e,C=i.useContext(v),[S,R]=i.useState(null),O=S?.ownerDocument??globalThis?.document,[,P]=i.useState({}),A=(0,a.s)(t,R),L=Array.from(C.layers),[N]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),k=N?L.indexOf(N):-1,D=S?L.indexOf(S):-1,T=C.layersWithOutsidePointerEventsDisabled.size>0,M=D>=k,I=i.useRef(!1),F=y(e=>{f?.(e),g?.(e),e.defaultPrevented||E?.()},{ownerDocument:O,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:I,dismissableSurfaces:C.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...C.branches].some(t=>t.contains(e));return M&&!t},[C.branches,M])}),j=b(e=>{if(r&&I.current)return;let t=e.target;![...C.branches].some(e=>e.contains(t))&&(h?.(e),g?.(e),e.defaultPrevented||E?.())},O),_=!!S&&D===L.length-1,W=(0,s.c)(e=>{"Escape"===e.key&&(u?.(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))});return i.useEffect(()=>{if(_)return O.addEventListener("keydown",W,{capture:!0}),()=>O.removeEventListener("keydown",W,{capture:!0})},[O,_,W]),i.useEffect(()=>{if(S)return n&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(o=O.body.style.pointerEvents,O.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(S)),C.layers.add(S),w(),()=>{n&&(C.layersWithOutsidePointerEventsDisabled.delete(S),0===C.layersWithOutsidePointerEventsDisabled.size&&(O.body.style.pointerEvents=o))}},[S,O,n,C]),i.useEffect(()=>()=>{S&&(C.layers.delete(S),C.layersWithOutsidePointerEventsDisabled.delete(S),w())},[S,C]),i.useEffect(()=>{let e=p(()=>P({}),"handleUpdate");return document.addEventListener(m,e),()=>document.removeEventListener(m,e)},[]),(0,d.jsx)(c.sG.div,{...x,ref:A,style:{pointerEvents:T?M?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.mK)(e.onFocusCapture,j.onFocusCapture),onBlurCapture:(0,l.mK)(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:(0,l.mK)(e.onPointerDownCapture,F.onPointerDownCapture)})},"DismissableLayer"));p(function(){let e=i.useContext(v),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var g=p(()=>!0,"IS_TRUE");function y(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:l,shouldHandlePointerDownOutside:a=g}=t,u=(0,s.c)(e),c=i.useRef(!1),d=i.useRef(!1),f=i.useRef(new Map),m=i.useRef(()=>{});return i.useEffect(()=>{function e(){d.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function i(e){if(!d.current)return;let t=e.target;t instanceof Node&&[...l].some(e=>e.contains(t))||f.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{d.current&&m.current()},0)}function s(e){d.current&&f.current.set(e.type,!1)}p(e,"resetOutsideInteraction"),p(t,"isOutsideInteractionIntercepted"),p(i,"handleInteractionCapture"),p(s,"handleInteractionBubble");let v=p(i=>{if(i.target&&!c.current){let l=function(){n.removeEventListener("click",m.current);let r=t();e(),r||E("dismissableLayer.pointerDownOutside",u,s,{discrete:!0})};if(p(l,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target)){n.removeEventListener("click",m.current),e(
1),c.current=!1;return}let s={originalEvent:i};d.current=!0,o.current=r&&0===i.button,f.current.clear(),r&&0===i.button?(n.removeEventListener("click",m.current),m.current=l,n.addEventListener("click",m.current,{once:!0})):l()}else n.removeEventListener("click",m.current),e();c.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of h)n.addEventListener(e,i,!0),n.addEventListener(e,s);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",v)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",v),n.removeEventListener("click",m.current),h))n.removeEventListener(e,i,!0),n.removeEventListener(e,s)}},[n,u,r,o,l,a]),{onPointerDownCapture:p(()=>c.current=!0,"onPointerDownCapture")}}function b(e,t=globalThis?.document){let n=(0,s.c)(e),r=i.useRef(!1);return i.useEffect(()=>{let e=p(e=>{e.target&&!r.current&&E("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:p(()=>r.current=!0,"onFocusCapture"),onBlurCapture:p(()=>r.current=!1,"onBlurCapture")}}function w(){let e=new CustomEvent(m);document.dispatchEvent(e)}function E(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?(0,c.hO)(o,i):o.dispatchEvent(i)}p(y,"usePointerDownOutside"),p(b,"useFocusOutside"),p(w,"dispatchUpdate"),p(E,"handleAndDispatchCustomEvent");var x=Object.defineProperty,C=(e,t)=>x(e,"name",{value:t,configurable:!0}),S=0,R=null;function O(){i.useEffect(()=>{R||(R={start:P(),end:P()});let{start:e,end:t}=R;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),S++,()=>{1===S&&(R?.start.remove(),R?.end.remove(),R=null),S=Math.max(0,S-1)}},[])}function P(){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}C(function(e){return O(),e.children},"FocusGuards"),C(O,"useFocusGuards"),C(P,"createFocusGuard");var A=Object.defineProperty,L=(e,t)=>A(e,"name",{value:t,configurable:!0}),N="focusScope.autoFocusOnMount",k="focusScope.autoFocusOnUnmount",D={bubbles:!1,cancelable:!0},T=i.forwardRef(L(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:l,...u}=e,[f,p]=i.useState(null),m=(0,s.c)(o),v=(0,s.c)(l),h=i.useRef(null),g=(0,a.s)(t,p),y=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(y.paused||!f)return;let t=e.target;f.contains(t)?h.current=t:$(h.current,{select:!0})},t=function(e){if(y.paused||!f)return;let t=e.relatedTarget;null!==t&&(f.contains(t)||$(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&$(f)};L(e,"handleFocusIn"),L(t,"handleFocusOut"),L(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return f&&r.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,f,y.paused]),i.useEffect(()=>{if(f){B.add(y);let e=document.activeElement;if(!f.contains(e)){let t=new CustomEvent(N,D);f.addEventListener(N,m),f.dispatchEvent(t),t.defaultPrevented||(M(H(F(f)),{select:!0}),document.activeElement===e&&$(f))}return()=>{f.removeEventListener(N,m),setTimeout(()=>{let t=new CustomEvent(k,D);
1f.addEventListener(k,v),f.dispatchEvent(t),t.defaultPrevented||$(e??document.body,{select:!0}),f.removeEventListener(k,v),B.remove(y)},0)}}},[f,m,v,y]);let b=i.useCallback(e=>{if(!n&&!r||y.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=I(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&$(i,{select:!0})):(e.preventDefault(),n&&$(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,y.paused]);return(0,d.jsx)(c.sG.div,{tabIndex:-1,...u,ref:g,onKeyDown:b})},"FocusScope"));function M(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if($(r,{select:t}),document.activeElement!==n)return}function I(e){let t=F(e);return[j(t,e),j(t.reverse(),e)]}function F(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:L(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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function j(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):_(r,{upTo:t})))return r}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}function W(e){return e instanceof HTMLInputElement&&"select"in e}function $(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&W(e)&&t&&e.select()}}L(M,"focusFirst"),L(I,"getTabbableEdges"),L(F,"getTabbableCandidates"),L(j,"findVisible"),L(_,"isHidden"),L(W,"isSelectableInput"),L($,"focus");var B=U();function U(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=K(e,t)).unshift(t)},remove(t){e=K(e,t),e[0]?.resume()}}}function K(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function H(e){return e.filter(e=>"A"!==e.tagName)}L(U,"createFocusScopesStack"),L(K,"arrayRemove"),L(H,"removeLinks");var V=n(26601);let z=["top","right","bottom","left"],q=Math.min,X=Math.max,G=Math.round,Y=Math.floor,Z=e=>({x:e,y:e}),J={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e,t){return"function"==typeof e?e(t):e}function ee(e){return e.split("-")[0]}function et(e){return e.split("-")[1]}function en(e){return"x"===e?"y":"x"}function er(e){return"y"===e?"height":"width"}function eo(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function ei(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let el=["left","right"],ea=["right","left"],eu=["top","bottom"],ec=["bottom","top"];function es(e){let t=ee(e);return J[t]+e.slice(t.length)}function ed(e){var t,n,r,o;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}:{top:e,right:e,bottom:e,left:e}}function ef(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 ep(e,t,n){let r,{reference:o,floating:i}=e,l=eo(t),a=en(eo(t)),u=er(a),c=ee(t),s=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[u]/2-i[u]/2;switch(c){case"top":r={x:s,y:o.y-i.height};break;case"bottom":r={x:s,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}}let p=et(t);return p&&(r[a]+=f*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function em(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:f=!1,padding:p=0}=Q(t,e),m=ed(p),v=a[f?"floating"===d?"reference":"floating":d],h=ef(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(a.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=ef(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:y,strategy:u}):g);return{top:(h.top-w.top+m.top)/b.y,bottom:(w.bottom-h.bottom+m.bottom)/b.y,left:(h.left-w.left+m.left)/b.x,right:(w.right-h.right+m.right)/b.x}}let ev=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:em},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=ep(c,r,u),f=r,p=0,m={};for(let n=0;n<i.length;n++){let v=i[n];if(!v)continue;let{name:h,fn:g}=v,{x:y,y:b,data:w,reset:E}=await g({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=y?y:s,d=null!=b?b:d,m[h]={...m[h],...w},E&&p<50&&(p++,"object"==typeof E&&(E.placement&&(f=E.placement),E.rects&&(c=!0===E.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:s,y:d}=ep(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:m}};function eh(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eg(e){return z.some(t=>e[t]>=0)}let ey=new Set(["left","top"]);async function eb(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=ee(n),a=et(n),u="y"===eo(n),c=ey.has(l)?-1:1,s=i&&u?-1:1,d=Q(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof m&&(p="end"===a?-1*m:m),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function ew(){return"u">typeof window}function eE(e){return eS(e)?(e.nodeName||"").toLowerCase():"#document"}function ex(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eC(e){var t;return null==(t=(eS(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eS(e){return!!ew()&&(e instanceof Node||e instanceof ex(e).Node)}function eR(e){return!!ew()&&(e instanceof Element||e instanceof ex(e).Element)}function eO(e){return!!ew()&&(e instanceof HTMLElement||e instanceof ex(e).HTMLElement)}function eP(e){return!(!ew()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ex(e).ShadowRoot)}function eA(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eF(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function eL(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eN=/transform|translate|scale|rotate|perspective|filter/,ek=/paint|layout|strict|content/,eD=e=>!!e&&"none"!==e;function eT(e){let t=eR(e)?eF(e):e;return eD(t.transform)||eD(t.translate)||eD(t.scale)||eD(t.rotate)||eD(t.perspective)||!eM()&&(eD(t.backdropFilter)||eD(t.filter))||eN.test(t.willChange||"")||ek.test(t.contain||"")}function eM(){return null==r&&(r="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function eI(e){return/^(html|body|#document)$/.test(eE(e))}function eF(e){return ex(e).getComputedStyle(e)}function ej(e){return eR(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e_(e){if("html"===eE(e))return e;let t=e.assignedSlot||e.parentNode||eP(e)&&e.host||eC(e);return eP(t)?t.host:t}function eW(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=e_(t);return eI(n)?(t.ownerDocument||t).body:eO(n)&&eA(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ex(o);if(!i)return t.concat(o,eW(o,[],n));{let e=e$(l);return t.concat(l,l.visualViewport||[],eA(o)?o:[],e&&n?eW(e):[])}}function e$(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eB(e){let t=eF(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eO(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=G(n)!==i||G(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function eU(e){return eR(e)?e:e.contextElement}function eK(e){let t=eU(e);if(!eO(t))return Z(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eB(t),l=(i?G(n.width):n.width)/r,a=(i?G(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let eH=Z(0);function eV(e){let t=ex(e);return eM()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eH}function ez(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eU(e),a=Z(1);t&&(r?eR(r)&&(a=eK(r)):a=eK(e));let u=(void 0===(o=n)&&(o=!1),r&&o&&r===ex(l))?eV(l):Z(0),c=(i.left+u.x)/a.x,s=(i.top+u.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(l&&r){let e=ex(l),t=eR(r)?ex(r):r,n=e,o=e$(n);for(;o&&t!==n;){let e=eK(o),t=o.getBoundingClientRect(),r=eF(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=l,o=e$(n=ex(o))}}return ef({width:d,height:f,x:c,y:s})}function eq(e,t){let n=ej(e).scrollLeft;return t?t.left+n:ez(eC(e)).left+n}function eX(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eq(e,n),y:n.top+t.scrollTop}}function eG(e,t,n){var r;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=ex(e),i=eC(e),l=o.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,s=0;if(l){let e=!eM()||"fixed"===t;r?e||(c=-l.offsetLeft,s=-l.offsetTop):(a=l.width,u=l.height,e&&(c=l.offsetLeft,s=l.offsetTop))}if(0>=eq(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(a-=l)}return{width:a,height:u,x:c,y:s}}(e,n,t);else if("document"===t){let t,n,i,l,a,u;t=ej(r=eC(e)),n=r.ownerDocument.body,i=X(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=X(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+eq(r),u=-t.scrollTop,"rtl"===eF(n).direction&&(a+=X(r.clientWidth,n.clientWidth)-i),o={width:i,height:l,x:a,y:u}}else if(eR(t)){let e,r,i,l,a,u;r=(e=ez(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=eK(t),a=t.clientWidth*l.x,u=t.clientHeight*l.y,o={width:a,height:u,x:i*l.x,y:r*l.y}}else{let n=eV(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return ef(o)}function eY(e){return"static"===eF(e).position}function eZ(e,t){if(!eO(e)||"fixed"===eF(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eC(e)===n&&(n=n.ownerDocument.body),n}function eJ(e,t){var n;let r=ex(e);if(eL(e))return r;if(!eO(e)){let t=e_(e);for(;t&&!eI(t);){if(eR(t)&&!eY(t))return t;t=e_(t)}return r}let o=eZ(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(eE(n)))&&eY(o);)o=eZ(o,t);return o&&eI(o)&&eY(o)&&!eT(o)?r:o||function(e){let t=e_(e);for(;eO(t)&&!eI(t);){if(eT(t))return t;if(eL(t))break;t=e_(t)}return null}(e)||r}
1let eQ=async function(e){let t=this.getOffsetParent||eJ,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eO(t),o=eC(t),i="fixed"===n,l=ez(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=Z(0);if((r||!i)&&(("body"!==eE(t)||eA(o))&&(a=ej(t)),r)){let e=ez(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}!r&&o&&(u.x=eq(o));let c=!o||r||i?Z(0):eX(o,a);return{x:l.left+a.scrollLeft-u.x-c.x,y:l.top+a.scrollTop-u.y-c.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}}},e0={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=eC(r),a=!!t&&eL(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=Z(1),s=Z(0),d=eO(r);if((d||!i)&&(("body"!==eE(r)||eA(l))&&(u=ej(r)),d)){let e=ez(r);c=eK(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}let f=!l||d||i?Z(0):eX(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x+f.x,y:n.y*c.y-u.scrollTop*c.y+s.y+f.y}},getDocumentElement:eC,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?eL(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eW(e,[],!1).filter(e=>eR(e)&&"body"!==eE(e)),o=null,i="fixed"===eF(e).position,l=i?e_(e):e;for(;eR(l)&&!eI(l);){let e=eF(l),t=eT(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=e_(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=eG(t,i[0],o),a=l.top,u=l.right,c=l.bottom,s=l.left;for(let e=1;e<i.length;e++){let n=eG(t,i[e],o);a=X(n.top,a),u=q(n.right,u),c=q(n.bottom,c),s=X(n.left,s)}return{width:u-s,height:c-a,x:s,y:a}},getOffsetParent:eJ,getElementRects:eQ,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eB(e);return{width:t,height:n}},getScale:eK,isElement:eR,isRTL:function(e){return"rtl"===eF(e).direction}};function e1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let e2=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:l,elements:a,middlewareData:u}=t,{element:c,padding:s=0}=Q(e,t)||{};if(null==c)return{};let d=ed(s),f={x:n,y:r},p=en(eo(o)),m=er(p),v=await l.getDimensions(c),h="y"===p,g=h?"clientHeight":"clientWidth",y=i.reference[m]+i.reference[p]-f[p]-i.floating[m],b=f[p]-i.reference[p],w=await (null==l.getOffsetParent?void 0:l.getOffsetParent(c)),E=w?w[g]:0;E&&await (null==l.isElement?void 0:l.isElement(w))||(E=a.floating[g]||i.floating[m]);let x=E/2-v[m]/2-1,C=q(d[h?"top":"left"],x),S=q(d[h?"bottom":"right"],x),R=E-v[m]-S,O=E/2-v[m]/2+(y/2-b/2),P=X(C,q(O,R)),A=!u.arrow&&null!=et(o)&&O!==P&&i.reference[m]/2-(O<C?C:S)-v[m]/2<0,L=A?O<C?O-C:O-R:0;return{[p]:f[p]+L,data:{[p]:P,centerOffset:O-P-L,...A&&{alignmentOffset:L}},reset:A}}});var e7=n(392),e9="u">typeof document?i.useLayoutEffect:function(){};function e6(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(!e6(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)&&!e6(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function e5(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e3(e,t){let n=e5(e);return Math.round(t*n)/n}function e8(e){let t=i.useRef(e);return e9(()=>{t.current=e}),t}var e4=n(61575),te=n(93925),tt=Object.defineProperty,tn=(e,t)=>tt(e,"name",{value:t,configurable:!0}),tr="Popper",[to,ti]=(0,u.A)(tr),[tl,ta]=to(tr),tu=tn(e=>{let{__scopePopper:t,children:n}=e,[r,o]=i.useState(null),[l,a]=i.useState(void 0);return(0,d.jsx)(tl,{scope:t,anchor:r,onAnchorChange:o,placementState:l,setPlacementState:a,children:n})},"Popper"),tc=i.forwardRef(tn(function(e,t){let{__scopePopper:n,virtualRef:r,...o}=e,l=ta("PopperAnchor",n),u=i.useRef(null),s=l.onAnchorChange,f=i.useCallback(e=>{u.current=e,e&&s(e)},[s]),p=(0,a.s)(t,f),m=i.useRef(null);i.useEffect(()=>{if(!r)return;let e=m.current;m.current=r.current,e!==m.current&&s(m.current)});let v=l.placementState&&th(l.placementState),h=v?.[0],g=v?.[1];return r?null:(0,d.jsx)(c.sG.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...o,ref:p})},"PopperAnchor")),ts="PopperContent",[td,tf]=to(ts),tp=i.forwardRef(tn(function(e,t){var n,r,o,l,u,f,p,m,v,h,g,y,b;let w,E,x,C,S,R,{__scopePopper:O,side:P="bottom",sideOffset:A=0,align:L="center",alignOffset:N=0,arrowPadding:k=0,avoidCollisions:D=!0,collisionBoundary:T=[],collisionPadding:M=0,sticky:I="partial",hideWhenDetached:F=!1,updatePositionStrategy:j="optimized",onPlaced:_,...W}=e,$=ta(ts,O),[B,U]=i.useState(null),K=(0,a.s)(t,U),[H,V]=i.useState(null),z=(0,te.X)(H),G=z?.width??0,Z=z?.height??0,J="number"==typeof M?M:{top:0,right:0,bottom:0,left:0,...M},ed=Array.isArray(T)?T:[T],ef=ed.length>0,ep={padding:J,boundary:ed.filter(tm),altBoundary:ef},{refs:em,floatingStyles:ew,placement:eE,isPositioned:eS,middlewareData:eR}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=i.useState(r);e6(p,r)||m(r);let[v,h]=i.useState(null),[g,y]=i.useState(null),b=i.useCallback(e=>
1{e!==C.current&&(C.current=e,h(e))},[]),w=i.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),E=l||v,x=a||g,C=i.useRef(null),S=i.useRef(null),R=i.useRef(d),O=null!=c,P=e8(c),A=e8(o),L=e8(s),N=i.useCallback(()=>{var e,r;let o,i,l;if(!C.current||!S.current)return;let a={placement:t,strategy:n,middleware:p};A.current&&(a.platform=A.current),(e=C.current,r=S.current,o=new Map,i=null!=a?a:{},l={...e0,...i.platform,_c:o},ev(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==L.current};k.current&&!e6(R.current,t)&&(R.current=t,e7.flushSync(()=>{f(t)}))})},[p,t,n,A,L]);e9(()=>{!1===s&&R.current.isPositioned&&(R.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let k=i.useRef(!1);e9(()=>(k.current=!0,()=>{k.current=!1}),[]),e9(()=>{if(E&&(C.current=E),x&&(S.current=x),E&&x){if(P.current)return P.current(E,x,N);N()}},[E,x,N,P,O]);let D=i.useMemo(()=>({reference:C,floating:S,setReference:b,setFloating:w}),[b,w]),T=i.useMemo(()=>({reference:E,floating:x}),[E,x]),M=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!T.floating)return e;let t=e3(T.floating,d.x),r=e3(T.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...e5(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,T.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:N,refs:D,elements:T,floatingStyles:M}),[d,N,D,T,M])}({strategy:"fixed",placement:P+("center"!==L?"-"+L:""),whileElementsMounted:tn((...e)=>(function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=eU(e),d=i||l?[...s?eW(s):[],...t?eW(t):[]]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let f=s&&u?function(e,t,n){let r,o=null,i=eC(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,u){void 0===n&&(n=!1),void 0===u&&(u=1),l();let c=e.getBoundingClientRect(),{left:s,top:d,width:f,height:p}=c;if(n||t(),!f||!p)return;let m={rootMargin:-Y(d)+"px "+-Y(i.clientWidth-(s+f))+"px "+-Y(i.clientHeight-(d+p))+"px "+-Y(s)+"px",threshold:X(0,q(1,u))||1},v=!0;function h(t){let n=t[0].intersectionRatio;if(!e1(c,e.getBoundingClientRect()))return a();if(n!==u){if(!v)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}v=!1}try{o=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(h,m)}o.observe(e)}let u=ex(e),c=()=>a(n);return u.addEventListener("resize",c),a(!0),()=>{u.removeEventListener("resize",c),l()}}(s,n,l):null,p=-1,m=null;a&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),s&&!c&&m.observe(s),t&&m.observe(t));let v=c?ez(e):null;return c&&function t(){let r=ez(e);v&&!e1(v,r)&&n(),v=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,c&&cancelAnimationFrame(o)}})(...e,{animationFrame:"always"===j}),"whileElementsMounted"),elements:{reference:$.anchor},middleware:[{name:(w={name:"offset",options:r=n={mainAxis:A+Z,alignmentAxis:N},async fn(e){var t,n;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await eb(e,r);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}).name,fn:w.fn,options:[n,void 0]},D&&{name:(E={name:"shift",options:u=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===I?{fn:(o=void 0,{options:o={},fn(e){var t,n,r,i;let{x:l,y:a,placement:u,rects:c,middlewareData:s}=e,{offset:d=0,mainAxis:f=!0,crossAxis:p=!0}=Q(o,e),m={x:l,y:a},v=eo(u),h=en(v),g=m[h],y=m[v],b=Q(d,e),w="number"==typeof b?{mainAxis:b,crossAxis:0}:{mainAxis:null!=(t=b.mainAxis)?t:0,crossAxis:null!=(n=b.crossAxis)?n:0};if(f){let e="y"===h?"height":"width",t=c.reference[h]-c.floating[e]+w.mainAxis,n=c.reference[h]+c.reference[e]-w.mainAxis;g<t?g=t:g>n&&(g=n)}if(p){let e="y"===h?"width":"height",t=ey.has(ee(u)),n=c.reference[v]-c.floating[e]+(t&&(null==(r=s.offset)?void 0:r[v])||0)+(t?0:w.crossAxis),o=c.reference[v]+c.reference[e]+(t?0:(null==(i=s.offset)?void 0:i[v])||0)-(t?w.crossAxis:0);y<n?y=n:y>
1o&&(y=o)}return{[h]:g,[v]:y}}}).fn,options:[void 0,void 0]}:void 0,...ep},async fn(e){let{x:t,y:n,placement:r,platform:o}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=Q(u,e),s={x:t,y:n},d=await o.detectOverflow(e,c),f=eo(r),p=en(f),m=s[p],v=s[f],h=(e,t)=>X(t+d["y"===e?"top":"left"],q(t,t-d["y"===e?"bottom":"right"]));i&&(m=h(p,m)),l&&(v=h(f,v));let g=a.fn({...e,[p]:m,[f]:v});return{...g,data:{x:g.x-t,y:g.y-n,enabled:{[p]:i,[f]:l}}}}}).name,fn:E.fn,options:[l,void 0]},D&&{name:(x={name:"flip",options:p=f={...ep},async fn(e){var t,n,r,o,i,l,a,u;let c,s,d,{placement:f,middlewareData:m,rects:v,initialPlacement:h,platform:g,elements:y}=e,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:E,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...R}=Q(p,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let O=ee(f),P=eo(h),A=ee(h)===h,L=await (null==g.isRTL?void 0:g.isRTL(y.floating)),N=E||(A||!S?[es(h)]:(c=es(h),[ei(h),c,ei(c)])),k="none"!==C;!E&&k&&N.push(...(s=et(h),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?ea:el;return t?el:ea;case"left":case"right":return t?eu:ec;default:return[]}}(ee(h),"start"===C,L),s&&(d=d.map(e=>e+"-"+s),S&&(d=d.concat(d.map(ei)))),d));let D=[h,...N],T=await g.detectOverflow(e,R),M=[],I=(null==(n=m.flip)?void 0:n.overflows)||[];if(b&&M.push(T[O]),w){let e,t,n,r,o=(l=f,a=v,void 0===(u=L)&&(u=!1),e=et(l),n=er(t=en(eo(l))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=es(r)),[r,es(r)]);M.push(T[o[0]],T[o[1]])}if(I=[...I,{placement:f,overflows:M}],!M.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=D[e];if(t&&("alignment"!==w||P===eo(t)||I.every(e=>eo(e.placement)!==P||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(x){case"bestFit":{let e=null==(i=I.filter(e=>{if(k){let t=eo(e.placement);return t===P||"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:i[0];e&&(n=e);break}case"initialPlacement":n=h}if(f!==n)return{reset:{placement:n}}}return{}}}).name,fn:x.fn,options:[f,void 0]},{name:(C={name:"size",options:v=m={...ep,apply:tn(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:i}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${n}px`),l.setProperty("--radix-popper-available-height",`${r}px`),l.setProperty("--radix-popper-anchor-width",`${o}px`),l.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")},async fn(e){let t,n,{placement:r,rects:o,platform:i,elements:l}=e,{apply:a=()=>{},...u}=Q(v,e),c=await i.detectOverflow(e,u),s=ee(r),d=et(r),f="y"===eo(r),{width:p,height:m}=o.floating;"top"===s||"bottom"===s?(t=s,n=d===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(n=s,t="end"===d?"top":"bottom");let h=m-c.top-c.bottom,g=p-c.left-c.right,y=q(m-c[t],h),b=q(p-c[n],g),w=e.middlewareData.shift,E=!w,x=y,C=b;null!=w&&w.enabled.x&&(C=g),null!=w&&w.enabled.y&&(x=h),E&&!d&&(f?C=p-2*X(c.left,c.right):x=m-2*X(c.top,c.bottom)),await a({...e,availableWidth:C,availableHeight:x});let S=await i.getDimensions(l.floating);return p!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}).name,fn:C.fn,options:[m,void 0]},H&&{name:(S={name:"arrow",options:g=h={element:H,padding:k},fn(e){let{element:t,padding:n}="function"==typeof g?g(e):g;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?e2({element:t.current,padding:n}).fn(e):{}:t?e2({element:t,padding:n}).fn(e):{}}}).name,fn:S.fn,options:[h,void 0]},tv({arrowWidth:G,arrowHeight:Z}),F&&{name:(R={name:"hide",options:b=y={strategy:"referenceHidden",...ep,boundary:ef?ep.boundary:void 0},async fn(e){let{rects:t,platform:n}=e,{strategy:r="referenceHidden",...o}=Q(b,e);switch(r){case"referenceHidden":{let r=eh(await n.detectOverflow(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:r,referenceHidden:eg(r)}}}case"escaped":{let r=eh(await n.detectOverflow(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:r,escaped:eg(r)}}}default:return{}}}}).name,fn:R.fn,options:[y,void 0]}]}),eO=$.setPlacementState;(0,e4.N)(()=>(eO(eE),()=>{eO(void 0)}),[eE,eO]);let[eP,eA]=th(eE),eL=(0,s.c)(_);(0,e4.N)(()=>{eS&&eL?.()},[eS,eL]);let eN=eR.arrow?.x,ek=eR.arrow?.y,eD=eR.arrow?.centerOffset!==0,[eT,eM]=i.useState();return(0,e4.N)(()=>{B&&eM(window.getComputedStyle(B).zIndex)},[B]),(0,d.jsx)("div",{ref:em.setFloating,"data-radix-popper-content-wrapper":"",style:{...ew,transform:eS?ew.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eT,"--radix-popper-transform-origin":[eR.transformOrigin?.x,eR.transformOrigin?.y].join(" "),...eR.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,d.jsx)(td,{scope:O,placedSide:eP,placedAlign:eA,onArrowChange:V,arrowX:eN,arrowY:ek,shouldHideArrow:eD,children:(0,d.jsx)(c.sG.div,{"data-side":eP,"data-align":eA,...W,ref:K,style:{...W.style,animation:eS?W.style?.animation:"none"}})})})},"PopperContent"));function tm(e){return null!==e}tn(tm,"isNotNull");var tv=tn(e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,l=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[u,c]=th(n),s={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+l/2,f=(o.arrow?.y??0)+a/2,p="",m="";return"bottom"===u?(p=i?s:`${d}px`,m=`${-a}px`):"top"===u?(p=i?s:`${d}px`,m=`${r.floating.height+a}px`):"right"===u?(p=`${-a}px`,m=i?s:`${f}px`):"left"===u&&(p=`${r.floating.width+a}px`,m=i?s:`${f}px`),{data:{x:p,y:m}}}}),"transformOrigin");function th(e){let[t,n="center"]=e.split("-");return[t,n]}tn(th,"getSideAndAlignFromPlacement");var tg=n(71667),ty=n(38738),tb=n(83678),tw=n(15207),tE=n(57219),tx=Object.defineProperty,tC=(e,t)=>tx(e,"name",{value:t,configurable:!0}),tS="Popover",[tR,tO]=(0,u.A)(tS,[ti]),tP=ti(),[tA,tL]=tR(tS),tN=tC(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:l,modal:a=!1}=e,u=tP(t),c=i.useRef(null),[s,f]=i.useState(!1),[p,m]=(0,tb.i)({prop:r,defaultProp:o??!1,onChange:l,caller:tS});return(0,d.jsx)(tu,{...u,children:(0,d.jsx)(tA,{scope:t,contentId:(0,V.B)(),triggerRef:c,open:p,onOpenChange:m,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:s,onCustomAnchorAdd:i.useCallback(()=>f(!0),[]),onCustomAnchorRemove:i.useCallback(()=>f(!1),[]),modal:a,children:n})})},"Popover"),tk=i.forwardRef(tC(function(e,t){let{__scopePopover:n,...r}=e,o=tL("PopoverAnchor",n),l=tP(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=o;return i.useEffect(()=>(a(),()=>u()),[a,u]),(0,d.jsx)(tc,{...l,...r,ref:t})},"PopoverAnchor")),[tD,tT]=tR("PopoverPortal",{forceMount:void 0}),tM="PopoverContent",tI=i.forwardRef(tC(function(e,t){let n=tT(tM,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=tL(tM,e.__scopePopover);return(0,d.jsx)(tg.C,{present:r||i.open,children:i.modal?(0,d.jsx)(tj,{...o,ref:t}):(0,d.jsx)(t_,{...o,ref:t})})},"PopoverContent")),tF=(0,ty.TL)("PopoverContent.RemoveScroll"),tj=i.forwardRef(tC(function(e,t){let n=tL(tM,e.__scopePopover),r=i.useRef(null),o=(0,a.s)(t,r),u=i.useRef(!1);return i.useEffect(()=>{let e=r.current;if(e)return(0,tw.Eq)(e)},[]),(0,d.jsx)(tE.A,{as:tF,allowPinchZoom:!0,children:(0,d.jsx)(tW,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,l.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||n.triggerRef.current?.focus()}),onPointerDownOutside:(0,l.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,l.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),t_=i.forwardRef(tC(function(e,t){let n=tL(tM,e.__scopePopover),r=i.useRef(!1),o=i.useRef(!1);return(0,d.jsx)(tW,{...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()}})},"PopoverContentNonModal")),tW=i.forwardRef(tC(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:s,...f}=e,p=tL(tM,n),m=tP(n);return O(),(0,d.jsx)(T,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,d.jsx)(h,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,d.jsx)(tp,{"data-state":t$(p.open),role:"dialog",id:p.contentId,...m,...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)"}})})})},"PopoverContentImpl"));function t$(e){return e?"open":"closed"}tC(t$,"getState");var tB=tN,tU=tk,tK=tI},26601:(e,t,n)=>{n.d(t,{B:()=>c});var r,o=n(77766),i=n(61575),l=Object.defineProperty,a=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),u=0;function c(e){let[t,n]=o.useState(a());return(0,i.N)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}l(c,"name",{value:"useId",configurable:!0})},57219:(e,t,n)=>{n.d(t,{A:()=>Y});var r,o,i,l,a,u,c,s=function(){return(s=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 d(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 f=("function"==typeof SuppressedError&&SuppressedError,n(77766)),p="right-scroll-bar-position",m="width-before-scroll-bar";function v(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var h="u">typeof window?f.useLayoutEffect:f.useEffect,g=new WeakMap,y=(void 0===r&&(r={}),(void 0===o&&(o=function(e){return e}),i=[],l=!1,a={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=o(e,l);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){l=!0;var t=[];if(i.length){var n=i;
1i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=s({async:!0,ssr:!1},r),a),b=function(){},w=f.forwardRef(function(e,t){var n,r,o,i,l=f.useRef(null),a=f.useState({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:b}),u=a[0],c=a[1],p=e.forwardProps,m=e.children,w=e.className,E=e.removeScrollBar,x=e.enabled,C=e.shards,S=e.sideCar,R=e.noRelative,O=e.noIsolation,P=e.inert,A=e.allowPinchZoom,L=e.as,N=e.gapMode,k=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[l,t],r=function(e){return n.forEach(function(t){return v(t,e)})},(o=(0,f.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,h(function(){var e=g.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||v(e,null)}),r.forEach(function(e){t.has(e)||v(e,o)})}g.set(i,n)},[n]),i),T=s(s({},k),u);return f.createElement(f.Fragment,null,x&&f.createElement(S,{sideCar:y,removeScrollBar:E,shards:C,noRelative:R,noIsolation:O,inert:P,setCallbacks:c,allowPinchZoom:!!A,lockRef:l,gapMode:N}),p?f.cloneElement(f.Children.only(m),s(s({},T),{ref:D})):f.createElement(void 0===L?"div":L,s({},T,{className:w,ref:D}),m))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:m,zeroRight:p};var E=function(e){var t=e.sideCar,n=d(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 f.createElement(r,s({},n))};E.isSideCarExport=!0;var x=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=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},C=function(){var e=x();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},S=function(){var e=C();return function(t){return e(t.styles,t.dynamic),null}},R={left:0,top:0,right:0,gap:0},O=function(e){return parseInt(e||"",10)||0},P=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[O(n),O(r),O(o)]},A=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return R;var t=P(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])}},L=S(),N="data-scroll-locked",k=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(N,"] {\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(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(p," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(m," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(p," .").concat(p," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(m," .").concat(m," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(N,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},D=function(){var e=parseInt(document.body.getAttribute(N)||"0",10);return isFinite(e)?e:0},T=function(){f.useEffect(function(){return document.body.setAttribute(N,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(N):document.body.setAttribute(N,e.toString())}},[])},M=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;T();var i=f.useMemo(function(){return A(o)}
1,[o]);return f.createElement(L,{styles:k(i,!t,o,n?"":"!important")})},I=!1;if("u">typeof window)try{var F=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",F,F),window.removeEventListener("test",F,F)}catch(e){I=!1}var j=!!I&&{passive:!1},_=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])},W=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),$(e,r)){var o=B(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},$=function(e,t){return"v"===e?_(t,"overflowY"):_(t,"overflowX")},B=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},U=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,d=a>0,f=0,p=0;do{if(!u)break;var m=B(e,u),v=m[0],h=m[1]-m[2]-l*v;(v||h)&&$(e,u)&&(f+=h,p+=v);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 d&&(o&&1>Math.abs(f)||!o&&a>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},K=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},H=function(e){return[e.deltaX,e.deltaY]},V=function(e){return e&&"current"in e?e.current:e},z=0,q=[];let X=(u=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(z++)[0],i=f.useState(S)[0],l=f.useRef(e);f.useEffect(function(){l.current=e},[e]),f.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))})([e.lockRef.current],(e.shards||[]).map(V),!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 a=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=K(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],s=e.target,d=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===s||p.contains(s)))return!1;var m=W(d,s);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=W(d,s)),!m)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var v=r.current||o;return U(v,t,e,"h"===v?u:c,!0)},[]),u=f.useCallback(function(e){if(q.length&&q[q.length-1]===i){var n="deltaY"in e?H(e):K(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=(l.current.shards||[]).map(V).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?a(e,o[0]):!l.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.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)},[]),s=f.useCallback(function(e){n.current=K(e),r.current=void 0},[]),d=f.useCallback(function(t){c(t.type,H(t),t.target,a(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,K(t),t.target,a(t,e.lockRef.current))},[]);f.useEffect(function(){return q.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,j),document.addEventListener("touchmove",u,j),document.addEventListener("touchstart",s,j),function(){q=q.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,j),document.removeEventListener("touchmove",u,j),document.removeEventListener("touchstart",s,j)}},[]);var m=e.removeScrollBar,v=e.inert;return f.createElement(f.Fragment,null,v?f.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?f.createElement(M,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(u),E);var G=f.forwardRef(function(e,t){return f.createElement(w,s({},e,{ref:t,sideCar:X}))});G.classNames=w.classNames;let Y=G},71667:(e,t,n)=>{n.d(t,{C:()=>u});var r=n(77766),o=n(61575),i=Object.defineProperty,l=(e,t)=>
1i(e,"name",{value:t,configurable:!0});function a(e,t){return r.useReducer((e,n)=>t[e][n]??e,e)}l(a,"useStateMachine");var u=l(e=>{let{present:t,children:n}=e,o=c(t),i="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),l=d(o.ref,p(i));return"function"==typeof n||o.isPresent?r.cloneElement(i,{ref:l}):null},"Presence");function c(e){let[t,n]=r.useState(),i=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),s=r.useRef(void 0),[d,p]=a(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return r.useEffect(()=>{"mounted"===d?(c.current=s.current??f(i.current),s.current=void 0):c.current="none"},[d]),(0,o.N)(()=>{let t=i.current,n=u.current;if(n!==e){let r=c.current,o=f(t);e?(s.current=o,p("MOUNT")):"none"===o||t?.display==="none"?p("UNMOUNT"):n&&r!==o?p("ANIMATION_OUT"):p("UNMOUNT"),u.current=e}},[e,p]),(0,o.N)(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,r=l(r=>{let o=f(i.current).includes(CSS.escape(r.animationName));if(r.target===t&&o&&(p("ANIMATION_END"),!u.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),o=l(e=>{e.target===t&&(c.current=f(i.current))},"handleAnimationStart");return t.addEventListener("animationstart",o),t.addEventListener("animationcancel",r),t.addEventListener("animationend",r),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",o),t.removeEventListener("animationcancel",r),t.removeEventListener("animationend",r)}}p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{if(e){let t=getComputedStyle(e);i.current=t,s.current=f(t)}else i.current=null;n(e)},[])}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){let t=r.useRef(e);return t.current=e,r.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=s(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){let t=o[e];"function"==typeof t?t():s(n[e],null)}}},[])}function f(e){return e?.animationName||"none"}function p(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}l(c,"usePresence"),l(s,"setRef"),l(d,"useStableComposedRefs"),l(f,"getAnimationName"),l(p,"getElementRef")},93925:(e,t,n)=>{n.d(t,{X:()=>i});var r=n(77766),o=n(61575);function i(e){let[t,n]=r.useState(void 0);return(0,o.N)(()=>{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}(0,Object.defineProperty)(i,"name",{value:"useSize",configurable:!0})}}]);
2//# sourceMappingURL=3213.6964b4d3dc98f711.js.map

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.