1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6587],{5478:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},l=0,a=function(e){return e&&(e.host||a(e.parentNode))},u=function(e,t,n,u){var c=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[n]||(i[n]=new WeakMap);var s=i[n],f=[],d=new Set,p=new Set(c),h=function(e){!e||d.has(e)||(d.add(e),h(e.parentNode))};c.forEach(h);var m=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(d.has(e))m(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,l=(r.get(e)||0)+1,a=(s.get(e)||0)+1;r.set(e,l),s.set(e,a),f.push(e),1===l&&i&&o.set(e,!0),1===a&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),d.clear(),l++,function(){f.forEach(function(e){var t=r.get(e)-1,i=s.get(e)-1;r.set(e,t),s.set(e,i),t||(o.has(e)||e.removeAttribute(u),o.delete(e)),i||e.removeAttribute(n)}),--l||(r=new WeakMap,r=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),u(r,o,n,"aria-hidden")):function(){return null}}},82023:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},99376:function(e,t,n){var r=n(35475);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},99157:function(e,t,n){n.d(t,{Z:function(){return U}});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 f(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}"function"==typeof SuppressedError&&SuppressedError;var d=n(2265),p="right-scroll-bar-position",h="width-before-scroll-bar";function m(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,g=new WeakMap,y=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),l=[],a=!1,u={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return l.length?l[l.length-1]:null},useMedium:function(e){var t=i(e,a);return l.push(t),function(){l=l.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;l.length;){var t=l;l=[],t.forEach(e)}l={push:function(t){return e(t)},filter:function(){return l}}},assignMedium:function(e){a=!0;var t=[];if(l.length){var n=l;l=[],n.forEach(e),t=l}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),l={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),l}}}}).options=s({async:!0,ssr:!1},o),u),w=function(){},b=d.forwardRef(function(e,t){var n,r,o,i,l=d.useRef(null),a=d.useState({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:w}),u=a[0],c=a[1],p=e.forwardProps,h=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,R=e.shards,S=e.sideCar,C=e.noRelative,A=e.noIsolation,L=e.inert,P=e.allowPinchZoom,T=e.as,O=e.ga
1pMode,k=f(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[l,t],r=function(e){return n.forEach(function(t){return m(t,e)})},(o=(0,d.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,v(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)||m(e,null)}),r.forEach(function(e){t.has(e)||m(e,o)})}g.set(i,n)},[n]),i),N=s(s({},k),u);return d.createElement(d.Fragment,null,E&&d.createElement(S,{sideCar:y,removeScrollBar:x,shards:R,noRelative:C,noIsolation:A,inert:L,setCallbacks:c,allowPinchZoom:!!P,lockRef:l,gapMode:O}),p?d.cloneElement(d.Children.only(h),s(s({},N),{ref:M})):d.createElement(void 0===T?"div":T,s({},N,{className:b,ref:M}),h))});b.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},b.classNames={fullWidth:h,zeroRight:p};var x=function(e){var t=e.sideCar,n=f(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 d.createElement(r,s({},n))};x.isSideCarExport=!0;var E=function(){var e=0,t=null;return{add:function(o){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=r||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,l;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),l=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(l)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R=function(){var e=E();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},S=function(){var e=R();return function(t){return e(t.styles,t.dynamic),null}},C={left:0,top:0,right:0,gap:0},A=function(e){return parseInt(e||"",10)||0},L=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[A(n),A(r),A(o)]},P=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return C;var t=L(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])}},T=S(),O="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(O,"] {\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(h," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(p," .").concat(p," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(O,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},M=function(){var e=parseInt(document.body.getAttribute(O)||"0",10);return isFinite(e)?e:0},N=function(){d.useEffect(function(){return document.body.setAttribute(O,(M()+1).toString()),function(){var e=M()-1;e<=0?document.body.removeAttribute(O):document.body.setAttribute(O,e.toString())}},[])},W=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;N();var i=d.useMemo(function(){return P(o)},[o]);return d.createElement(T,{styles:k(i,!t,o,n?"":"!important")})},D=!1;if("undefined"!=typeof window)try{var j=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",j,j),window.removeEventListener("test",j,j)}catch(e){D=!1}var F=!!D&&{passive:!1},H=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])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var o=_(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e,t){return"v"===e?H(t,"overflowY"):H(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},V=function(e,t,n,r,o){var i,l=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),a=l*r,u=n.target,c=t.contains(u),s=!1,f=
1a>0,d=0,p=0;do{if(!u)break;var h=_(e,u),m=h[0],v=h[1]-h[2]-l*m;(m||v)&&B(e,u)&&(d+=v,p+=m);var g=u.parentNode;u=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return f&&(o&&1>Math.abs(d)||!o&&a>d)?s=!0:!f&&(o&&1>Math.abs(p)||!o&&-a>p)&&(s=!0),s},z=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$=function(e){return[e.deltaX,e.deltaY]},Y=function(e){return e&&"current"in e?e.current:e},X=0,K=[],Z=(c=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(X++)[0],i=d.useState(S)[0],l=d.useRef(e);d.useEffect(function(){l.current=e},[e]),d.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(Y),!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=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!l.current.allowPinchZoom;var o,i=z(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,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 h=I(f,s);if(!h)return!0;if(h?o=f:(o="v"===f?"h":"v",h=I(f,s)),!h)return!1;if(!r.current&&"changedTouches"in e&&(u||c)&&(r.current=o),!o)return!0;var m=r.current||o;return V(m,t,e,"h"===m?u:c,!0)},[]),u=d.useCallback(function(e){if(K.length&&K[K.length-1]===i){var n="deltaY"in e?$(e):z(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)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
1if(!r){var o=(l.current.shards||[]).map(Y).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=d.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=d.useCallback(function(e){n.current=z(e),r.current=void 0},[]),f=d.useCallback(function(t){c(t.type,$(t),t.target,a(t,e.lockRef.current))},[]),p=d.useCallback(function(t){c(t.type,z(t),t.target,a(t,e.lockRef.current))},[]);d.useEffect(function(){return K.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,F),document.addEventListener("touchmove",u,F),document.addEventListener("touchstart",s,F),function(){K=K.filter(function(e){return e!==i}),document.removeEventListener("wheel",u,F),document.removeEventListener("touchmove",u,F),document.removeEventListener("touchstart",s,F)}},[]);var h=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,h?d.createElement(W,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},y.useMedium(c),x),q=d.forwardRef(function(e,t){return d.createElement(b,s({},e,{ref:t,sideCar:Z}))});q.classNames=b.classNames;var U=q},6741:function(e,t,n){function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{Mj:function(){return r}}),"undefined"!=typeof window&&window.document&&window.document.createElement},73966:function(e,t,n){n.d(t,{b:function(){return l},k:function(){return i}});var r=n(2265),o=n(57437);function i(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,l=r.useMemo(()=>i,Object.values(i));return(0,o.jsx)(n.Provider,{value:l,children:t})};return i.displayName=e+"Provider",[i,function(o){let i=r.useContext(n);if(i)return i;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function l(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return i.scopeName=e,[function(t,i){let l=r.createContext(i),a=n.length;n=[...n,i];let u=t=>{let{scope:n,children:i,...u}=t,c=n?.[e]?.[a]||l,s=r.useMemo(()=>u,Object.values(u));return(0,o.jsx)(c.Provider,{value:s,children:i})};return u.displayName=t+"Provider",[u,function(n,o){let u=o?.[e]?.[a]||l,c=r.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(i,...t)]}},15278:function(e,t,n){n.d(t,{I0:function(){return g},XB:function(){return d},fC:function(){return v}});var r,o=n(2265),i=n(6741),l=n(82912),a=n(98575),u=n(26606),c=n(57437),s="dismissableLayer.update",f=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d=o.forwardRef((e,t)=>{var n,d;let{disableOutsidePointerEvents:p=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(f),[R,S]=o.useState(null),C=null!==(d=null==R?void 0:R.ownerDocument)&&void 0!==d?d:null===(n=globalThis)||void 0===n?void 0:n.document,[,A]=o.useState({}),L=(0,a.e)(t,e=>S(e)),P=Array.from(E.layers),[T]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),O=P.indexOf(T),k=R?P.indexOf(R):-1,M=E.layersWithOutsidePointerEventsDisabled.size>0,N=k>=O,W=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1),l=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",l.current),l.current=t,n.addEventListener("click",l.current,{once:!0})):t()}else n.removeEventListener("click",l.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!N||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},C),D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,u.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},C);return!function(e,t=globalThis?.document){let n=(0,u.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k!==E.layers.size-1||(null==v||v(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},C),o.useEffect(()=>{if(R)return p&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(R)),E.layers.add(R),h(),()=>{p&&1===E.layersWithOutsidePointerEventsDisabled.size&&(C.body.style.pointerEvents=r)}},[R,C,p,E]),o.useEffect(()=>()=>{R&&(E.layers.delete(R),E.layersWithOutsidePointerEventsDisabled.delete(R),h())},[R,E]),o.useEffect(()=>{let e=()=>A({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(l.WV.div,{...x,ref:L,style:{pointerEvents:M?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.Mj)(e.onFocusCapture,D.onFocusCapture),onBlurCapture:(0,i.Mj)(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:(0,i.Mj)(e.onPointerDownCapture,W.onPointerDownCapture)})});d.displayName="DismissableLayer";var p=o.forwardRef((e,t)=>
1{let n=o.useContext(f),r=o.useRef(null),i=(0,a.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,c.jsx)(l.WV.div,{...e,ref:i})});function h(){let e=new CustomEvent(s);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,l.jH)(i,a):i.dispatchEvent(a)}p.displayName="DismissableLayerBranch";var v=d,g=p},86097:function(e,t,n){n.d(t,{EW:function(){return i}});var r=n(2265),o=0;function i(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:l()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:l()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function l(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},99103:function(e,t,n){let r;n.d(t,{M:function(){return d}});var o=n(2265),i=n(98575),l=n(82912),a=n(26606),u=n(57437),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",f={bubbles:!1,cancelable:!0},d=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,a.W)(d),E=(0,a.W)(g),R=o.useRef(null),S=(0,i.e)(t,e=>b(e)),C=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(C.paused||!w)return;let t=e.target;w.contains(t)?R.current=t:m(R.current,{select:!0})},t=function(e){if(C.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||m(R.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,C.paused]),o.useEffect(()=>{if(w){v.add(C);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,f);w.addEventListener(c,x),w.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(m(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,f);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),v.remove(C)},0)}}},[w,x,E,C]);let A=o.useCallback(e=>{if(!n&&!r||C.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]=function(e){let t=p(e);return[h(t,e),h(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&m(i,{select:!0})):(e.preventDefault(),n&&m(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,C.paused]);return(0,u.jsx)(l.WV.div,{tabIndex:-1,...y,ref:S,onKeyDown:A})});function p(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 h(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var v=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=g(r,e)).unshift(e)},remove(e){var t;null===(t=(r=g(r,e))[0])||void 0===t||t.resume()}});function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},99255:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(2265),i=n(61188),l=(r||(r=n.t(o,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function u(e){let[t,n]=o.useState(l());return(0,i.b)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},26008:function(e,t,n){let r;n.d(t,{ee:function(){return e6},Eh:function(){return e7},VY:function(){return e8},fC:function(){return e5},D7:function(){return e_}});var o=n(2265);let i=["top","right","bottom","left"],l=Math.min,a=Math.max,u=Math.round,c=Math.floor,s=e=>({x:e,y:e}
1),f={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}function g(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],b=["right","left"],x=["top","bottom"],E=["bottom","top"];function R(e){let t=p(e);return f[t]+e.slice(t.length)}function S(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function C(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 A(e,t,n){let r,{reference:o,floating:i}=e,l=g(t),a=m(g(t)),u=v(a),c=p(t),s="y"===l,f=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,y=o[u]/2-i[u]/2;switch(c){case"top":r={x:f,y:o.y-i.height};break;case"bottom":r={x:f,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}switch(h(t)){case"start":r[a]-=y*(n&&s?-1:1);break;case"end":r[a]+=y*(n&&s?-1:1)}return r}async function L(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=d(t,e),m=S(h),v=a[p?"floating"===f?"reference":"floating":f],g=C(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})),y="floating"===f?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await (null==i.isElement?void 0:i.isElement(w))&&await (null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},x=C(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-x.top+m.top)/b.y,bottom:(x.bottom-g.bottom+m.bottom)/b.y,left:(g.left-x.left+m.left)/b.x,right:(x.right-g.right+m.right)/b.x}}let P=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,a=l.detectOverflow?l:{...l,detectOverflow:L},u=await (null==l.isRTL?void 0:l.isRTL(t)),c=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:f}=A(c,r,u),d=r,p=0,h={};for(let n=0;n<i.length;n++){let m=i[n];if(!m)continue;let{name:v,fn:g}=m,{x:y,y:w,data:b,reset:x}=await g({x:s,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=y?y:s,f=null!=w?w:f,h[v]={...h[v],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(c=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:s,y:f}=A(c,d,u)),n=-1)}return{x:s,y:f,placement:d,strategy:o,middlewareData:h}};function T(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function O(e){return i.some(t=>e[t]>=0)}let k=new Set(["left","top"]);async function M(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=p(n),a=h(n),u="y"===g(n),c=k.has(l)?-1:1,s=i&&u?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof y&&(v="end"===a?-1*y:y),u?{x:v*s,y:m*c}:{x:m*c,y:v*s}}function N(){return"undefined"!=typeof window}function W(e){return F(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(F(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function F(e){return!!N()&&(e instanceof Node||e instanceof D(e).Node)}function H(e){return!!N()&&(e instanceof Element||e instanceof D(e).Element)}function I(e){return!!N()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function B(e){return!!N()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function _(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 V(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let z=/transform|translate|scale|rotate|perspective|filter/,$=/paint|layout|strict|content/,Y=e=>!!e&&"none"!==e;function X(e){let t=H(e)?q(e):e;return Y(t.transform)||Y(t.translate)||Y(t.scale)||Y(t.rotate)||Y(t.perspective)||!K()&&(Y(t.backdropFilter)||Y(t.filter))||z.test(t.willChange||"")||$.test(t.contain||"")}function K(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Z(e){return/^(html|body|#document)$/.test(W(e))}function q(e){return D(e).getComputedStyle(e)}function U(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function G(e){if("html"===W(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||j(e);return B(t)?t.host:t}function J(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=G(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:I(n)&&_(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=D(o);if(!i)return t.concat(o,J(o,[],n));{let e=Q(l);
1return t.concat(l,l.visualViewport||[],_(o)?o:[],e&&n?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=I(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,a=u(n)!==i||u(r)!==l;return a&&(n=i,r=l),{width:n,height:r,$:a}}function et(e){return H(e)?e:e.contextElement}function en(e){let t=et(e);if(!I(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ee(t),l=(i?u(n.width):n.width)/r,a=(i?u(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}let er=s(0);function eo(e){let t=D(e);return K()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function ei(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=et(e),a=s(1);t&&(r?H(r)&&(a=en(r)):a=en(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===D(l))&&o)?eo(l):s(0),c=(i.left+u.x)/a.x,f=(i.top+u.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(l){let e=D(l),t=r&&H(r)?D(r):r,n=e,o=Q(n);for(;o&&r&&t!==n;){let e=en(o),t=o.getBoundingClientRect(),r=q(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,p*=e.y,c+=i,f+=l,o=Q(n=D(o))}}return C({width:d,height:p,x:c,y:f})}function el(e,t){let n=U(e).scrollLeft;return t?t.left+n:ei(j(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-el(e,n),y:n.top+t.scrollTop}}function eu(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=D(e),r=j(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,u=0;if(o){i=o.width,l=o.height;let e=K();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,u=o.offsetTop)}let c=el(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:u}}(e,n);else if("document"===t)r=function(e){let t=j(e),n=U(e),r=e.ownerDocument.body,o=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),l=-n.scrollLeft+el(e),u=-n.scrollTop;return"rtl"===q(r).direction&&(l+=a(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}(j(e));else if(H(t))r=function(e,t){let n=ei(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=I(e)?en(e):s(1),l=e.clientWidth*i.x;return{width:l,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=eo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return C(r)}function ec(e){return"static"===q(e).position}function es(e,t){if(!I(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return j(e)===n&&(n=n.ownerDocument.body),n}function ef(e,t){var n;let r=D(e);if(V(e))return r;if(!I(e)){let t=G(e);for(;t&&!Z(t);){if(H(t)&&!ec(t))return t;t=G(t)}return r}let o=es(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(W(n)))&&ec(o);)o=es(o,t);return o&&Z(o)&&ec(o)&&!X(o)?r:o||function(e){let t=G(e);for(;I(t)&&!Z(t);){if(X(t))return t;if(V(t))break;t=G(t)}return null}(e)||r}let ed=async function(e){let t=this.getOffsetParent||ef,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=I(t),o=j(t),i="fixed"===n,l=ei(e,!0,i,t),a={scrollLeft:0,scrollTop:0},u=s(0);if(r||!r&&!i){if(("body"!==W(t)||_(o))&&(a=U(t)),r){let e=ei(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=el(o))}i&&!r&&o&&(u.x=el(o));let c=!o||r||i?s(0):ea(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}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=j(r),a=!!t&&V(t.floating);if(r===l||a&&i)return n;let u={scrollLeft:0,scrollTop:0},c=s(1),f=s(0),d=I(r);if((d||!d&&!i)&&(("body"!==W(r)||_(l))&&(u=U(r)),d)){let e=ei(r);c=en(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let p=!l||d||i?s(0):ea(l,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+p.x,y:n.y*c.y-u.scrollTop*c.y+f.y+p.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?V(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=J(e,[],!1).filter(e=>H(e)&&"body"!==W(e)),o=null,i="fixed"===q(e).position,l=i?G(e):e;for(;H(l)&&!Z(l);){let t=q(l),n=X(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||_(l)&&!n&&function e(t,n){let r=G(t);return!(r===n||!H(r)||Z(r))&&("fixed"===q(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=G(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=eu(t,i[0],o),c=u.top,s=u.right,f=u.bottom,d=u.left;for(let e=1;e<i.length;e++){let n=eu(t,i[e],o);c=a(n.top,c),s=l(n.right,s),f=l(n.bottom,f),d=a(n.left,d)}return{width:s-d,height:f-c,x:d,y:c}},getOffsetParent:ef,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:H,isRTL:function(e){return"rtl"===q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let em=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:u,elements:c,middlewareData:s}=t,{element:f,padding:p=0}=d(e,t)||{};if(null==f)return{};let y=S(p),w={x:n,y:r},b=m(g(o)),x=v(b),E=await u.getDimensions(f),R="y"===b,C=R?"clientHeight":"clientWidth",A=i.reference[x]+i.reference[b]-w[b]-i.floating[x],L=w[b]-i.reference[b],P=await (null==u.getOffsetParent?void 0:u.getOffsetParent(f)),T=P?P[C]:0;T&&await (null==u.isElement?void 0:u.isElement(P))||(T=c.floating[C]||i.floating[x]);let O=T/2-E[x]/2-1,k=l(y[R?"top":"left"],O),M=l(y[R?"bottom":"right"],O),N=T-E[x]-M,W=T/2-E[x]/2+(A/2-L/2),D=a(k,l(W,N)),j=!s.arrow&&null!=h(o)&&W!==D&&i.reference[x]/2-(W<k?k:M)-E[x]/2<0,F=j?W<k?W-k:W-N:0;return{[b]:w[b]+F,data:{[b]:D,centerOffset:W-D-F,...j&&{alignmentOffset:F}},reset:j}}}
1),ev=(e,t,n)=>{let r=new Map,o={platform:ep,...n},i={...o.platform,_c:r};return P(e,t,{...o,platform:i})};var eg=n(54887),ey="undefined"!=typeof document?o.useLayoutEffect:function(){};function ew(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(!ew(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)&&!ew(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eb(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ex(e,t){let n=eb(e);return Math.round(t*n)/n}function eE(e){let t=o.useRef(e);return ey(()=>{t.current=e}),t}let eR=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?em({element:n.current,padding:r}).fn(t):{}:n?em({element:n,padding:r}).fn(t):{}}}),eS=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:a}=e,u=await M(e,n);return l===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eC=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o,platform:i}=e,{mainAxis:u=!0,crossAxis:c=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...f}=d(n,e),h={x:t,y:r},v=await i.detectOverflow(e,f),y=g(p(o)),w=m(y),b=h[w],x=h[y];if(u){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",n=b+v[e],r=b-v[t];b=a(n,l(b,r))}if(c){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=x+v[e],r=x-v[t];x=a(n,l(x,r))}let E=s.fn({...e,[w]:b,[y]:x});return{...E,data:{x:E.x-t,y:E.y-r,enabled:{[w]:u,[y]:c}}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eA=(e,t)=>{var n;return{fn:(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:l}=e,{offset:a=0,mainAxis:u=!0,crossAxis:c=!0}=d(n,e),s={x:t,y:r},f=g(o),h=m(f),v=s[h],y=s[f],w=d(a,e),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+b.mainAxis,n=i.reference[h]+i.reference[e]-b.mainAxis;v<t?v=t:v>n&&(v=n)}if(c){var x,E;let e="y"===h?"width":"height",t=k.has(p(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(x=l.offset)?void 0:x[f])||0)+(t?0:b.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(E=l.offset)?void 0:E[f])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:v,[f]:y}}}).fn,options:[e,t]}},eL=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,l;let{placement:a,middlewareData:u,rects:c,initialPlacement:s,platform:f,elements:S}=e,{mainAxis:C=!0,crossAxis:A=!0,fallbackPlacements:L,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:O=!0,...k}=d(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let M=p(a),N=g(s),W=p(s)===s,D=await (null==f.isRTL?void 0:f.isRTL(S.floating)),j=L||(W||!O?[R(s)]:function(e){let t=R(e);return[y(e),t,y(t)]}(s)),F="none"!==T;!L&&F&&j.push(...function(e,t,n,r){let o=h(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:w;return t?w:b;case"left":case"right":return t?x:E;default:return[]}}(p(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}(s,O,T,D));let H=[s,...j],I=await f.detectOverflow(e,k),B=[],_=(null==(r=u.flip)?void 0:r.overflows)||[];if(C&&B.push(I[M]),A){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),o=m(g(e)),i=v(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=R(l)),[l,R(l)]}(a,c,D);B.push(I[e[0]],I[e[1]])}if(_=[..._,{placement:a,overflows:B}],!B.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=H[e];if(t&&(!("alignment"===A&&N!==g(t))||_.every(e=>g(e.placement)!==N||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(P){case"bestFit":{let e=null==(l=_.filter(e=>{if(F){let t=g(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:l[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}});return{name:r.name,fn:r.fn,options:[e,t]}},eP=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:u,rects:c,platform:s,elements:f}=e,{apply:m=()=>{},...v}=d(n,e),y=await s.detectOverflow(e,v),w=p(u),b=h(u),x="y"===g(u),{width:E,height:R}=c.floating;"top"===w||"bottom"===w?(o=w,i=b===(await (null==s.isRTL?void 0:s.isRTL(f.floating))?"start":"end")?"left":"right"):(i=w,o="end"===b?"top":"bottom");let S=R-y.top-y.bottom,C=E-y.left-y.right,A=l(R-y[o],S),L=l(E-y[i],C),P=!e.middlewareData.shift,T=A,O=L;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=C),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(T=S),P&&!b){let e=a(y.left,0),t=a(y.right,0),n=a(y.top,0),r=a(y.bottom,0);x?O=E-2*(0!==e||0!==t?e+t:a(y.left,y.right)):T=R-2*(0!==n||0!==r?n+r:a(y.top,y.bottom))}await m({...e,availableWidth:O,availableHeight:T});let k=await s.getDimensions(f.floating);return E!==k.width||R!==k.height?{reset:{rects:!0}}:{}}});return{name:r.name,fn:r.fn,options:[e,t]}},eT=(e,t)=>{var n;let r=(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t,platform:r}=e,{strategy:o="referenceHidden",...i}=d(n,e);switch(o){case"referenceHidden":{let n=T(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:O(n)}}}case"escaped":{let n=T(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:O(n)}}}default:return{}}}});return{name:r.name,fn:r.fn,options:[e,t]}},eO=(e,t)=>{let n=eR(e);return{name:n.name,fn:n.fn,options:[e,t]}};var ek=n(82912),eM=n(57437),eN=o.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,eM.jsx)(ek.WV.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"})})});eN.displayName="Arrow";var eW=n(98575),eD=n(73966),ej=n(26606),eF=n(61188),eH=n(90420),eI="Popper",[eB,e_]=(0,eD.b)(eI),[eV,ez]=eB(eI),e$=e=>{let{__scopePopper:t,children:n}=e,[r,i]=o.useState(null);return(0,eM.jsx)(eV,{scope:t,anchor:r,onAnchorChange:i,children:n})};e$.displayName=eI;var eY="PopperAnchor",eX=o.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,l=ez(eY,n),a=o.useRef(null),u=(0,eW.e)(t,a),c=o.useRef(null);return o.useEffect(()=>{let e=c.current;c.current=(null==r?void 0:r.current)||a.current,e!==c.current&&l.onAnchorChange(c.current)}),r?null:(0,eM.jsx)(ek.WV.div,{...i,ref:u})});eX.displayName=eY;var eK="PopperContent",[eZ,eq]=eB(eK),eU=o.forwardRef((e,t)=>{var n,r,i,u,s,f,d,p;let{__scopePopper:h,side:m="bottom",sideOffset:v=0,align:g="center",alignOffset:y=0,arrowPadding:w=0,avoidCollisions:b=!0,collisionBoundary:x=[],collisionPadding:E=0,sticky:R="partial",hideWhenDetached:S=!1,updatePositionStrategy:C="optimized",onPlaced:A,...L}=e,P=ez(eK,h),[T,O]=o.useState(null),k=(0,eW.e)(t,e=>O(e)),[M,N]=o.useState(null),W=(0,eH.t)(M),D=null!==(d=null==W?void 0:W.width)&&void 0!==d?d:0,F=null!==(p=null==W?void 0:W.height)&&void 0!==p?p:0,H="number"==typeof E?E:{top:0,right:0,bottom:0,left:0,...E},I=Array.isArray(x)?x:[x],B=I.length>0,_={padding:H,boundary:I.filter(e0),altBoundary:B},{refs:V,floatingStyles:z,placement:$,isPositioned:Y,middlewareData:X}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:a}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);ew(p,r)||h(r);let[m,v]=o.useState(null),[g,y]=o.useState(null),w=o.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),b=o.useCallback(e=>{e!==S.current&&(S.current=e,y(e))},[]),x=l||m,E=a||g,R=o.useRef(null),S=o.useRef(null),C=o.useRef(f),A=null!=c,L=eE(c),P=eE(i),T=eE(s),O=o.useCallback(()=>
1{if(!R.current||!S.current)return;let e={placement:t,strategy:n,middleware:p};P.current&&(e.platform=P.current),ev(R.current,S.current,e).then(e=>{let t={...e,isPositioned:!1!==T.current};k.current&&!ew(C.current,t)&&(C.current=t,eg.flushSync(()=>{d(t)}))})},[p,t,n,P,T]);ey(()=>{!1===s&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[s]);let k=o.useRef(!1);ey(()=>(k.current=!0,()=>{k.current=!1}),[]),ey(()=>{if(x&&(R.current=x),E&&(S.current=E),x&&E){if(L.current)return L.current(x,E,O);O()}},[x,E,O,L,A]);let M=o.useMemo(()=>({reference:R,floating:S,setReference:w,setFloating:b}),[w,b]),N=o.useMemo(()=>({reference:x,floating:E}),[x,E]),W=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=ex(N.floating,f.x),r=ex(N.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eb(N.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,N.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:O,refs:M,elements:N,floatingStyles:W}),[f,O,M,N,W])}({strategy:"fixed",placement:m+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:u=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,p=et(e),h=i||u?[...p?J(p):[],...t?J(t):[]]:[];h.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&f?function(e,t){let n,r=null,o=j(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(s,f){void 0===s&&(s=!1),void 0===f&&(f=1),i();let d=e.getBoundingClientRect(),{left:p,top:h,width:m,height:v}=d;if(s||t(),!m||!v)return;let g=c(h),y=c(o.clientWidth-(p+m)),w={rootMargin:-g+"px "+-y+"px "+-c(o.clientHeight-(h+v))+"px "+-c(p)+"px",threshold:a(0,l(1,f))||1},b=!0;function x(t){let r=t[0].intersectionRatio;if(r!==f){if(!b)return u();r?u(!1,r):n=setTimeout(()=>{u(!1,1e-7)},1e3)}1!==r||eh(d,e.getBoundingClientRect())||u(),b=!1}try{r=new IntersectionObserver(x,{...w,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,w)}r.observe(e)}(!0),i}(p,n):null,v=-1,g=null;s&&(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?ei(e):null;return d&&function t(){let r=ei(e);y&&!eh(y,r)&&n(),y=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{i&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===C})},elements:{reference:P.anchor},middleware:[eS({mainAxis:v+F,alignmentAxis:y}),b&&eC({mainAxis:!0,crossAxis:!1,limiter:"partial"===R?eA():void 0,..._}),b&&eL({..._}),eP({..._,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:l}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(o,"px")),a.setProperty("--radix-popper-anchor-width","".concat(i,"px")),a.setProperty("--radix-popper-anchor-height","".concat(l,"px"))}}),M&&eO({element:M,padding:w}),e1({arrowWidth:D,arrowHeight:F}),S&&eT({strategy:"referenceHidden",..._})]}),[K,Z]=e2($),q=(0,ej.W)(A);(0,eF.b)(()=>{Y&&(null==q||q())},[Y,q]);let U=null===(n=X.arrow)||void 0===n?void 0:n.x,G=null===(r=X.arrow)||void 0===r?void 0:r.y,Q=(null===(i=X.arrow)||void 0===i?void 0:i.centerOffset)!==0,[ee,en]=o.useState();return(0,eF.b)(()=>{T&&en(window.getComputedStyle(T).zIndex)},[T]),(0,eM.jsx)("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...z,transform:Y?z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(u=X.transformOrigin)||void 0===u?void 0:u.x,null===(s=X.transformOrigin)||void 0===s?void 0:s.y].join(" "),...(null===(f=X.hide)||void 0===f?void 0:f.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eM.jsx)(eZ,{scope:h,placedSide:K,onArrowChange:N,arrowX:U,arrowY:G,shouldHideArrow:Q,children:(0,eM.jsx)(ek.WV.div,{"data-side":K,"data-align":Z,...L,ref:k,style:{...L.style,animation:Y?void 0:"none"}})})})});eU.displayName=eK;var eG="PopperArrow",eJ={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eQ=o.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eq(eG,n),i=eJ[o.placedSide];return(0,eM.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,eM.jsx)(eN,{...r,ref:t,style:{...r.style,display:"block"}})})});function e0(e){return null!==e}eQ.displayName=eG;var e1=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,l;let{placement:a,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,f=s?0:e.arrowWidth,d=s?0:e.arrowHeight,[p,h]=e2(a),m={start:"0%",center:"50%",end:"100%"}[h],v=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+f/2,g=(null!==(l=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==l?l:0)+d/2,y="",w="";return"bottom"===p?(y=s?m:"".concat(v,"px"),w="".concat(-d,"px")):"top"===p?(y=s?m:"".concat(v,"px"),w="".concat(u.floating.height+d,"px")):"right"===p?(y="".concat(-d,"px"),w=s?m:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+d,"px"),w=s?m:"".concat(g,"px")),{data:{x:y,y:w}}}});function e2(e){let[t,n="center"]=e.split("-");return[t,n]}var e5=e$,e6=eX,e8=eU,e7=eQ},83832:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(2265),o=n(54887),i=n(82912),l=n(61188),a=n(57437),u=r.forwardRef((e,t)=>{var n,u;let{container:c,...s}=e,[f,d]=r.useState(!1);(0,l.b)(()=>d(!0),[]);let p=c||f&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,a.jsx)(i.WV.div,{...s,ref:t}),p):null});u.displayName="Portal"},82912:function(e,t,n){n.d(t,{WV:function(){return c},jH:function(){return s}});var r=n(2265),o=n(54887),i=n(98575),l=n(57437),a=Symbol("radix.slottable");function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}var c=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,l;let a=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=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&&(u.ref=t?(0,i.F)(t,a):a),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...i}=e,a=r.Children.toArray(o),c=a.find(u);if(c){let e=c.props.children,o=a.map(t=>t!==c?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...i,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,l.jsx)(t,{...i,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),o=r.forwardRef((e,r)=>{let{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...i,ref:r})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},26606:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},80886:function(e,t,n){n.d(t,{T:function(){return a}});var r,o=n(2265),i=n(61188),l=(r||(r=n.t(o,2)))[" useInsertionEffect ".trim().toString()]||i.b;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,u]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),i=o.useRef(n),a=o.useRef(t);return l(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}({defaultProp:t,onChange:n}),c=void 0!==e,s=c?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==c){let t=c?"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=c},[c,r])}return[s,o.useCallback(t=>{if(c){let n="function"==typeof t?t(e):t;n!==e&&u.current?.(n)}else a(t)},[c,e,a,u])]}Symbol("RADIX:SYNC_STATE")},61188:function(e,t,n){n.d(t,{b:function(){return o}});var r=n(2265),o=globalThis?.document?r.useLayoutEffect:()=>{}},90420:function(e,t,n){n.d(t,{t:function(){return i}});var r=n(2265),o=n(61188);function i(e){let[t,n]=r.useState(void 0);return(0,o.b)(()=>
1{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}}}]);
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.