1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[611],{8369:function(e,t,n){n.d(t,{Ry:function(){return c}});var r=new WeakMap,o=new WeakMap,i={},a=0,l=function(e){return e&&(e.host||l(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=l(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),v=function(e){!e||f.has(e)||(f.add(e),v(e.parentNode))};c.forEach(v);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(u),i=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(s.get(e)||0)+1;r.set(e,a),s.set(e,l),d.push(e),1===a&&i&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),i||e.setAttribute(u,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),a++,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)}),--a||(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]"))),u(r,o,n,"aria-hidden")):function(){return null}}},2468:function(e,t,n){n.d(t,{Z:function(){return r}});/** 2 * @license lucide-react v0.408.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */let r=(0,n(8030).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},7592:function(e,t,n){n.d(t,{Z:function(){return r}});/** 7 * @license lucide-react v0.408.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */let r=(0,n(8030).Z)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},8165:function(e,t,n){n.d(t,{Z:function(){return r}});/** 12 * @license lucide-react v0.408.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */let r=(0,n(8030).Z)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},1823:function(e,t,n){n.d(t,{Av:function(){return a},pF:function(){return r},xv:function(){return i},zi:function(){return o}});var r="right-scroll-bar-position",o="width-before-scroll-bar",i="with-scroll-bars-hidden",a="--removed-body-scroll-bar-size"},5973:function(e,t,n){n.d(t,{jp:function(){return h}});var r=n(2265),o=n(8039),i=n(1823),a={left:0,top:0,right:0,gap:0},l=function(e){return parseInt(e||"",10)||0},u=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[l(n),l(r),l(o)]},c=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return a;var t=u(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])}},s=(0,o.Ws)(),d="data-scroll-locked",f=function(e,t,n,r){var o=e.left,a=e.top,l=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat(i.xv," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(d,"] {\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(a,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i.pF," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i.zi," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i.pF," .").concat(i.pF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(i.zi," .").concat(i.zi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(d,"] {\n ").concat(i.Av,": ").concat(u,"px;\n }\n")},p=function(){var e=parseInt(document.body.getAttribute(d)||"0",10);return isFinite(e)?e:0},v=function(){r.useEffect(function(){return document.body.setAttribute(d,(p()+1).toString()),function(){var e=p()-1;e<=0?document.body.removeAttribute(d):document.body.setAttribute(d,e.toString())}},[])},h=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,i=void 0===o?"margin":o;v();var a=r.useMemo(function(){return c(i)},[i]);return r.createElement(s,{styles:f(a,!t,i,n?"":"!important")})}},9219:function(e,t,n){n.d(t,{Z:function(){return T}});var r=n(1735),o=n(2265),i=n(1823),a=n(8215),l=(0,n(5411)._)(),u=function(){},c=o.forwardRef(function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:u}),c=i[0],s=i[1],d=e.forwardProps,f=e.children,p=e.className,v=e.removeScrollBar,h=e.enabled,m=e.shards,g=e.sideCar,y=e.noIsolation,w=e.inert,b=e.allowPinchZoom,x=e.as,E=e.gapMode,C=(0,r._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(0,a.q)([n,t]),S=(0,r.pi)((0,r.pi)({},C),c);return o.createElement(o.Fragment,null,h&&o.createElement(g,{sideCar:l,removeScrollBar:v,shards:m,noIsolation:y,inert:w,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:E}),d?o.cloneElement(o.Children.only(f),(0,r.pi)((0,r.pi)({},S),{ref:R})):o.createElement(void 0===x?"div":x,(0,r.pi)({},S,{className:p,ref:R}),f))});c.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},c.classNames={fullWidth:i.zi,zeroRight:i.pF};var s=n(8776),d=n(5973),f=n(8039),p=!1;if("undefined"!=typeof window)try{var v=Object.defineProperty({},"passive",{get:function(){return p=!0,!0}});window.addEventListener("test",v,v),window.removeEventListener("test",v,v)}catch(e){p=!1}var h=!!p&&{passive:!1},m=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},g=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),y(e,r)){var o=w(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},y=function(e,t){return"v"===e?m(t,"overflowY"):m(t,"overflowX")},w=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},b=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),l=a*r,u=n.target,c=t.contains(u),s=!1,d=l>0,f=0,p=0;do{var v=w(e,u),h=v[0],m=v[1]-v[2]-a*h;(h||m)&&y(e,u)&&(f+=m,p+=h),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return d&&(o&&1>Math.abs(f)||!o&&l>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(s=!0),s},x=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},E=function(e){return[e.deltaX,e.deltaY]},C=function(e){return e&&"current"in e?e.current:e},R=0,S=[],M=(0,s.L)(l,function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),a=o.useState(R++)[0],l=o.useState(f.Ws)[0],u=o.useRef(e);o.useEffect(function(){u.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.ev)([e.lockRef.current],(e.shards||[]).map(C),!0).filter(
16Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var c=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length)return!u.current.allowPinchZoom;var r,o=x(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],c="deltaY"in e?e.deltaY:a[1]-o[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=g(d,s);if(!f)return!0;if(f?r=d:(r="v"===d?"h":"v",f=g(d,s)),!f)return!1;if(!i.current&&"changedTouches"in e&&(l||c)&&(i.current=r),!r)return!0;var p=i.current||r;return b(p,t,e,"h"===p?l:c,!0)},[]),s=o.useCallback(function(e){if(S.length&&S[S.length-1]===l){var n="deltaY"in e?E(e):x(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}if(!r){var o=(u.current.shards||[]).map(C).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?c(e,o[0]):!u.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),p=o.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)},[]),v=o.useCallback(function(e){n.current=x(e),i.current=void 0},[]),m=o.useCallback(function(t){p(t.type,E(t),t.target,c(t,e.lockRef.current))},[]),y=o.useCallback(function(t){p(t.type,x(t),t.target,c(t,e.lockRef.current))},[]);o.useEffect(function(){return S.push(l),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:y}),document.addEventListener("wheel",s,h),document.addEventListener("touchmove",s,h),document.addEventListener("touchstart",v,h),function(){S=S.filter(function(e){return e!==l}),document.removeEventListener("wheel",s,h),document.removeEventListener("touchmove",s,h),document.removeEventListener("touchstart",v,h)}},[]);var w=e.removeScrollBar,M=e.inert;return o.createElement(o.Fragment,null,M?o.createElement(l,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,w?o.createElement(d.jp,{gapMode:e.gapMode}):null)}),A=o.forwardRef(function(e,t){return o.createElement(c,(0,r.pi)({},e,{ref:t,sideCar:M}))});A.classNames=c.classNames;var T=A},8039:function(e,t,n){n.d(t,{Ws:function(){return l}});var r,o=n(2265),i=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,a;(i=t).styleSheet?i.styleSheet.cssText=o:i.appendChild(document.createTextNode(o)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},a=function(){var e=i();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},l=function(){var e=a();return function(t){return e(t.styles,t.dynamic),null}}},8215:function(e,t,n){n.d(t,{q:function(){return l}});var r=n(2265);function o(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,a=new WeakMap;function l(e,t){var n,l,u,c=(n=t||null,l=function(t){return e.forEach(function(e){return o(e,t)})},(u=(0,r.useState)(function(){return{value:n,callback:l,facade:{get current(){return u.value},set current(value){var e=u.value;e!==value&&(u.value=value,u.callback(value,e))}}}})[0]).callback=l,u.facade);return i(function(){var t=a.get(c);if(t){var n=new Set(t),r=new Set(e),i=c.current;n.forEach(function(e){r.has(e)||o(e,null)}),r.forEach(function(e){n.has(e)||o(e,i)})}a.set(c,e)},[e]),c}},8776:function(e,t,n){n.d(t,{L:function(){return a}});var r=n(1735),o=n(2265),i=function(e){var t=e.sideCar,n=(0,r._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error("Sidecar medium not found");return o.createElement(i,(0,r.pi)({},n))};function a(e,t){return e.useMedium(t),i}
16i.isSideCarExport=!0},5411:function(e,t,n){n.d(t,{_:function(){return i}});var r=n(1735);function o(e){return e}function i(e){void 0===e&&(e={});var t,n,i,a=(void 0===t&&(t=o),n=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var r=t(e,i);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}});return a.options=(0,r.pi)({async:!0,ssr:!1},e),a}},4492:function(e,t,n){/** 17 * @license React 18 * use-sync-external-store-shim.production.min.js 19 * 20 * Copyright (c) Facebook, Inc. and its affiliates. 21 * 22 * This source code is licensed under the MIT license found in the 23 * LICENSE file in the root directory of this source tree. 24 */var r=n(2265),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,l=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return l(function(){o.value=n,o.getSnapshot=t,c(o)&&s({inst:o})},[e,n,t]),a(function(){return c(o)&&s({inst:o}),e(function(){c(o)&&s({inst:o})})},[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},5107:function(e,t,n){/** 25 * @license React 26 * use-sync-external-store-shim/with-selector.production.min.js 27 * 28 * Copyright (c) Facebook, Inc. and its affiliates. 29 * 30 * This source code is licensed under the MIT license found in the 31 * LICENSE file in the root directory of this source tree. 32 */var r=n(2265),o=n(554),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,l=r.useRef,u=r.useEffect,c=r.useMemo,s=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=c(function(){function e(e){if(!u){if(u=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return l=t}return l=e}if(t=l,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,l=n)}var a,l,u=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,r,o]))[0],d[1]);return u(function(){f.hasValue=!0,f.value=p},[p]),s(p),p}},554:function(e,t,n){e.exports=n(4492)},5006:function(e,t,n){e.exports=n(5107)},2358:function(e,t,n){n.d(t,{XB:function(){return f}});var r,o=n(2265),i=n(8149),a=n(5171),l=n(1584),u=n(5137),c=n(7437),s="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[C,R]=o.useState(null),S=null!==(f=null==C?void 0:C.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,M]=o.useState({}),A=(0,l.e)(t,e=>R(e)),T=Array.from(E.layers),[P]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),k=T.indexOf(P),j=C?T.indexOf(C):-1,D=E.layersWithOutsidePointerEventsDisabled.size>0,L=j>=k,O=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),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){v("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!L||n||(null==g||g(e),null==w||w(e),e.defaultPrevented||null==b||b())},S),N=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&&v("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())},S);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=>{j!==E.layers.size-1||(null==m||m(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},S),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[C,S,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>M({});return document.addEventListener(s,e),()=>document.removeEventListener(s,e)},[]),(0,c.jsx)(a.WV.div,{...x,ref:A,style:{pointerEvents:D?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,O.onPointerDownCapture)})});function p(){let e=new CustomEvent(s);document.dispatchEvent(e)}function v(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.jH)(i,l):i.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
32{let n=o.useContext(d),r=o.useRef(null),i=(0,l.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)(a.WV.div,{...e,ref:i})}).displayName="DismissableLayerBranch"},5879:function(e,t,n){n.d(t,{oC:function(){return nN},VY:function(){return nj},ZA:function(){return nD},ck:function(){return nO},wU:function(){return nI},__:function(){return nL},Uv:function(){return nk},Ee:function(){return n_},Rk:function(){return nF},fC:function(){return nT},Z0:function(){return nW},Tr:function(){return nB},tu:function(){return nV},fF:function(){return nH},xz:function(){return nP}});var r=n(2265),o=n(8149),i=n(1584),a=n(8324),l=n(1715),u=n(5171),c=n(976),s=n(7513),d=n(2358),f=n(589),p=n(467),v=n(3201);let h=["top","right","bottom","left"],m=Math.min,g=Math.max,y=Math.round,w=Math.floor,b=e=>({x:e,y:e}),x={left:"right",right:"left",bottom:"top",top:"bottom"},E={start:"end",end:"start"};function C(e,t){return"function"==typeof e?e(t):e}function R(e){return e.split("-")[0]}function S(e){return e.split("-")[1]}function M(e){return"x"===e?"y":"x"}function A(e){return"y"===e?"height":"width"}function T(e){return["top","bottom"].includes(R(e))?"y":"x"}function P(e){return e.replace(/start|end/g,e=>E[e])}function k(e){return e.replace(/left|right|bottom|top/g,e=>x[e])}function j(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function D(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function L(e,t,n){let r,{reference:o,floating:i}=e,a=T(t),l=M(T(t)),u=A(l),c=R(t),s="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[u]/2-i[u]/2;switch(c){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(S(t)){case"start":r[l]-=p*(n&&s?-1:1);break;case"end":r[l]+=p*(n&&s?-1:1)}return r}let O=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:d}=L(c,r,u),f=r,p={},v=0;for(let n=0;n<l.length;n++){let{name:i,fn:h}=l[n],{x:m,y:g,data:y,reset:w}=await h({x:s,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});s=null!=m?m:s,d=null!=g?g:d,p={...p,[i]:{...p[i],...y}},w&&v<=50&&(v++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(c=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:s,y:d}=L(c,f,u)),n=-1)}return{x:s,y:d,placement:f,strategy:o,middlewareData:p}};async function N(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=C(t,e),v=j(p),h=l[f?"floating"===d?"reference":"floating":d],m=D(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:s,strategy:u})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await (null==i.isElement?void 0:i.isElement(y))&&await (null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},b=D(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:y,strategy:u}):g);return{top:(m.top-b.top+v.top)/w.y,bottom:(b.bottom-m.bottom+v.bottom)/w.y,left:(m.left-b.left+v.left)/w.x,right:(b.right-m.right+v.right)/w.x}}function _(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function F(e){return h.some(t=>e[t]>=0)}async function I(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=R(n),l=S(n),u="y"===T(n),c=["left","top"].includes(a)?-1:1,s=i&&u?-1:1,d=C(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof v&&(p="end"===l?-1*v:v),u?{x:p*s,y:f*c}:{x:f*c,y:p*s}}function W(e){return V(e)?(e.nodeName||"").toLowerCase():"#document"}function B(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(V(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function V(e){return e instanceof Node||e instanceof B(e).Node}function z(e){return e instanceof Element||e instanceof B(e).Element}function K(e){return e instanceof HTMLElement||e instanceof B(e).HTMLElement}function U(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof B(e).ShadowRoot)}function q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=Z(e);
32return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function X(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function $(e){let t=G(),n=Z(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function G(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function Y(e){return["html","body","#document"].includes(W(e))}function Z(e){return B(e).getComputedStyle(e)}function J(e){return z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Q(e){if("html"===W(e))return e;let t=e.assignedSlot||e.parentNode||U(e)&&e.host||H(e);return U(t)?t.host:t}function ee(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=Q(t);return Y(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=B(o);return i?t.concat(a,a.visualViewport||[],q(o)?o:[],a.frameElement&&n?ee(a.frameElement):[]):t.concat(o,ee(o,[],n))}function et(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,l=y(n)!==i||y(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function en(e){return z(e)?e:e.contextElement}function er(e){let t=en(e);if(!K(t))return b(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=et(t),a=(i?y(n.width):n.width)/r,l=(i?y(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}let eo=b(0);function ei(e){let t=B(e);return G()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eo}function ea(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=en(e),l=b(1);t&&(r?z(r)&&(l=er(r)):l=er(e));let u=(void 0===(o=n)&&(o=!1),r&&(!o||r===B(a))&&o)?ei(a):b(0),c=(i.left+u.x)/l.x,s=(i.top+u.y)/l.y,d=i.width/l.x,f=i.height/l.y;if(a){let e=B(a),t=r&&z(r)?B(r):r,n=e,o=n.frameElement;for(;o&&r&&t!==n;){let e=er(o),t=o.getBoundingClientRect(),r=Z(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,s*=e.y,d*=e.x,f*=e.y,c+=i,s+=a,o=(n=B(o)).frameElement}}return D({width:d,height:f,x:c,y:s})}function el(e){return ea(H(e)).left+J(e).scrollLeft}function eu(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=B(e),r=H(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;let e=G();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l,y:u}}(e,n);else if("document"===t)r=function(e){let t=H(e),n=J(e),r=e.ownerDocument.body,o=g(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=g(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+el(e),l=-n.scrollTop;return"rtl"===Z(r).direction&&(a+=g(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:l}}(H(e));else if(z(t))r=function(e,t){let n=ea(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?er(e):b(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ei(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return D(r)}function ec(e){return"static"===Z(e).position}function es(e,t){return K(e)&&"fixed"!==Z(e).position?t?t(e):e.offsetParent:null}function ed(e,t){let n=B(e);if(X(e))return n;if(!K(e)){let t=Q(e);for(;t&&!Y(t);){if(z(t)&&!ec(t))return t;t=Q(t)}return n}let r=es(e,t);for(;r&&["table","td","th"].includes(W(r))&&ec(r);)r=es(r,t);return r&&Y(r)&&ec(r)&&!$(r)?n:r||function(e){let t=Q(e);for(;K(t)&&!Y(t)&&!X(t);){if($(t))return t;t=Q(t)}return null}(e)||n}let ef=async function(e){let t=this.getOffsetParent||ed,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=H(t),i="fixed"===n,a=ea(e,!0,i,t),l={scrollLeft:0,scrollTop:0},u=b(0);if(r||!r&&!i){if(("body"!==W(t)||q(o))&&(l=J(t)),r){let e=ea(t,!0,i,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=el(o))}return{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=H(r),l=!!t&&X(t.floating);if(r===a||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=b(1),s=b(0),d=K(r);
32if((d||!d&&!i)&&(("body"!==W(r)||q(a))&&(u=J(r)),K(r))){let e=ea(r);c=er(r),s.x=e.x+r.clientLeft,s.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+s.x,y:n.y*c.y-u.scrollTop*c.y+s.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?X(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(e=>z(e)&&"body"!==W(e)),o=null,i="fixed"===Z(e).position,a=i?Q(e):e;for(;z(a)&&!Y(a);){let t=Z(a),n=$(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||q(a)&&!n&&function e(t,n){let r=Q(t);return!(r===n||!z(r)||Y(r))&&("fixed"===Z(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=Q(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],l=i.reduce((e,n)=>{let r=eu(t,n,o);return e.top=g(r.top,e.top),e.right=m(r.right,e.right),e.bottom=m(r.bottom,e.bottom),e.left=g(r.left,e.left),e},eu(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ed,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=et(e);return{width:t,height:n}},getScale:er,isElement:z,isRTL:function(e){return"rtl"===Z(e).direction}},ev=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:l,middlewareData:u}=t,{element:c,padding:s=0}=C(e,t)||{};if(null==c)return{};let d=j(s),f={x:n,y:r},p=M(T(o)),v=A(p),h=await a.getDimensions(c),y="y"===p,w=y?"clientHeight":"clientWidth",b=i.reference[v]+i.reference[p]-f[p]-i.floating[v],x=f[p]-i.reference[p],E=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),R=E?E[w]:0;R&&await (null==a.isElement?void 0:a.isElement(E))||(R=l.floating[w]||i.floating[v]);let P=R/2-h[v]/2-1,k=m(d[y?"top":"left"],P),D=m(d[y?"bottom":"right"],P),L=R-h[v]-D,O=R/2-h[v]/2+(b/2-x/2),N=g(k,m(O,L)),_=!u.arrow&&null!=S(o)&&O!==N&&i.reference[v]/2-(O<k?k:D)-h[v]/2<0,F=_?O<k?O-k:O-L:0;return{[p]:f[p]+F,data:{[p]:N,centerOffset:O-N-F,..._&&{alignmentOffset:F}},reset:_}}}),eh=(e,t,n)=>{let r=new Map,o={platform:ep,...n},i={...o.platform,_c:r};return O(e,t,{...o,platform:i})};var em=n(4887),eg="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function ey(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(!ey(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)&&!ey(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ew(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eb(e,t){let n=ew(e);return Math.round(t*n)/n}function ex(e){let t=r.useRef(e);return eg(()=>{t.current=e}),t}let eE=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?ev({element:n.current,padding:r}).fn(t):{}:n?ev({element:n,padding:r}).fn(t):{}}}),eC=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:l}=e,u=await I(e,n);return a===(null==(t=l.offset)?void 0:t.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}),options:[e,t]}},eR=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=C(n,e),c={x:t,y:r},s=await N(e,u),d=T(R(o)),f=M(d),p=c[f],v=c[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+s[e],r=p-s[t];p=g(n,m(p,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=v+s[e],r=v-s[t];v=g(n,m(v,r))}let h=l.fn({...e,[f]:p,[d]:v});return{...h,data:{x:h.x-t,y:h.y-r}}}}),options:[e,t]}},eS=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=C(n,e),s={x:t,y:r},d=T(o),f=M(d),p=s[f],v=s[d],h=C(l,e),m="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+m.mainAxis,n=i.reference[f]+i.reference[e]-m.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var g,y;let e="y"===f?"width":"height",t=["top","left"].includes(R(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:m.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?m.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[f]:p,[d]:v}}}),options:[e,t]}},eM=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:l,middlewareData:u,rects:c,initialPlacement:s,platform:d,elements:f}=e,{mainAxis:p=!0,crossAxis:v=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=C(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let b=R(l),x=T(s),E=R(s)===s,j=await (null==d.isRTL?void 0:d.isRTL(f.floating)),D=h||(E||!y?[k(s)]:function(e){let t=k(e);return[P(e),t,P(t)]}(s)),L="none"!==g;!h&&L&&D.push(...function(e,t,n,r){let o=S(e),i=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(R(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(P)))),i}(s,y,g,j));let O=[s,...D],_=await N(e,w),F=[],I=(null==(r=u.flip)?void 0:r.overflows)||[];if(p&&F.push(_[b]),v){let e=function(e,t,n){void 0===n&&(n=!1);let r=S(e),o=M(T(e)),i=A(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=k(a)),[a,k(a)]}(l,c,j);F.push(_[e[0]],_[e[1]])}if(I=[...I,{placement:l,overflows:F}],!F.every(e=>e<=0)){let e=((null==(o=u.flip)?void 0:o.index)||0)+1,t=O[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
32e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(m){case"bestFit":{let e=null==(a=I.filter(e=>{if(L){let t=T(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=s}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eA=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){let t,r;let{placement:o,rects:i,platform:a,elements:l}=e,{apply:u=()=>{},...c}=C(n,e),s=await N(e,c),d=R(o),f=S(o),p="y"===T(o),{width:v,height:h}=i.floating;"top"===d||"bottom"===d?(t=d,r=f===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(r=d,t="end"===f?"top":"bottom");let y=h-s.top-s.bottom,w=v-s.left-s.right,b=m(h-s[t],y),x=m(v-s[r],w),E=!e.middlewareData.shift,M=b,A=x;if(p?A=f||E?m(x,w):w:M=f||E?m(b,y):y,E&&!f){let e=g(s.left,0),t=g(s.right,0),n=g(s.top,0),r=g(s.bottom,0);p?A=v-2*(0!==e||0!==t?e+t:g(s.left,s.right)):M=h-2*(0!==n||0!==r?n+r:g(s.top,s.bottom))}await u({...e,availableWidth:A,availableHeight:M});let P=await a.getDimensions(l.floating);return v!==P.width||h!==P.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eT=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=C(n,e);switch(r){case"referenceHidden":{let n=_(await N(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:F(n)}}}case"escaped":{let n=_(await N(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:F(n)}}}default:return{}}}}),options:[e,t]}},eP=(e,t)=>({...eE(e),options:[e,t]});var ek=n(7437),ej=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...i}=e;return(0,ek.jsx)(u.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ek.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ej.displayName="Arrow";var eD=n(5137),eL=n(1336),eO="Popper",[eN,e_]=(0,a.b)(eO),[eF,eI]=eN(eO),eW=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,ek.jsx)(eF,{scope:t,anchor:o,onAnchorChange:i,children:n})};eW.displayName=eO;var eB="PopperAnchor",eH=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,l=eI(eB,n),c=r.useRef(null),s=(0,i.e)(t,c);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||c.current)}),o?null:(0,ek.jsx)(u.WV.div,{...a,ref:s})});eH.displayName=eB;var eV="PopperContent",[ez,eK]=eN(eV),eU=r.forwardRef((e,t)=>{var n,o,a,l,c,s,d,f;let{__scopePopper:p,side:v="bottom",sideOffset:h=0,align:y="center",alignOffset:b=0,arrowPadding:x=0,avoidCollisions:E=!0,collisionBoundary:C=[],collisionPadding:R=0,sticky:S="partial",hideWhenDetached:M=!1,updatePositionStrategy:A="optimized",onPlaced:T,...P}=e,k=eI(eV,p),[j,D]=r.useState(null),L=(0,i.e)(t,e=>D(e)),[O,N]=r.useState(null),_=function(e){let[t,n]=r.useState(void 0);return(0,eL.b)(()=>{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}(O),F=null!==(d=null==_?void 0:_.width)&&void 0!==d?d:0,I=null!==(f=null==_?void 0:_.height)&&void 0!==f?f:0,W="number"==typeof R?R:{top:0,right:0,bottom:0,left:0,...R},B=Array.isArray(C)?C:[C],V=B.length>0,z={padding:W,boundary:B.filter(eG),altBoundary:V},{refs:K,floatingStyles:U,placement:q,isPositioned:X,middlewareData:$}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:l}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,v]=r.useState(o);ey(p,o)||v(o);let[h,m]=r.useState(null),[g,y]=r.useState(null),w=r.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),b=r.useCallback(e=>
32{e!==R.current&&(R.current=e,y(e))},[]),x=a||h,E=l||g,C=r.useRef(null),R=r.useRef(null),S=r.useRef(d),M=null!=c,A=ex(c),T=ex(i),P=r.useCallback(()=>{if(!C.current||!R.current)return;let e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),eh(C.current,R.current,e).then(e=>{let t={...e,isPositioned:!0};k.current&&!ey(S.current,t)&&(S.current=t,em.flushSync(()=>{f(t)}))})},[p,t,n,T]);eg(()=>{!1===s&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[s]);let k=r.useRef(!1);eg(()=>(k.current=!0,()=>{k.current=!1}),[]),eg(()=>{if(x&&(C.current=x),E&&(R.current=E),x&&E){if(A.current)return A.current(x,E,P);P()}},[x,E,P,A,M]);let j=r.useMemo(()=>({reference:C,floating:R,setReference:w,setFloating:b}),[w,b]),D=r.useMemo(()=>({reference:x,floating:E}),[x,E]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eb(D.floating,d.x),r=eb(D.floating,d.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...ew(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,D.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:P,refs:j,elements:D,floatingStyles:L}),[d,P,j,D,L])}({strategy:"fixed",placement:v+("center"!==y?"-"+y:""),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:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,s=en(e),d=i||a?[...s?ee(s):[],...ee(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let f=s&&u?function(e,t){let n,r=null,o=H(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),i();let{left:c,top:s,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;let p=w(s),v=w(o.clientWidth-(c+d)),h={rootMargin:-p+"px "+-v+"px "+-w(o.clientHeight-(s+f))+"px "+-w(c)+"px",threshold:g(0,m(1,u))||1},y=!0;function b(e){let t=e[0].intersectionRatio;if(t!==u){if(!y)return a();t?a(!1,t):n=setTimeout(()=>{a(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(b,h)}r.observe(e)}(!0),i}(s,n):null,p=-1,v=null;l&&(v=new ResizeObserver(e=>{let[r]=e;r&&r.target===s&&v&&(v.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),s&&!c&&v.observe(s),v.observe(t));let h=c?ea(e):null;return c&&function t(){let r=ea(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=v)||e.disconnect(),v=null,c&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===A})},elements:{reference:k.anchor},middleware:[eC({mainAxis:h+I,alignmentAxis:b}),E&&eR({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?eS():void 0,...z}),E&&eM({...z}),eA({...z,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(i,"px")),l.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),O&&eP({element:O,padding:x}),eY({arrowWidth:F,arrowHeight:I}),M&&eT({strategy:"referenceHidden",...z})]}),[G,Y]=eZ(q),Z=(0,eD.W)(T);(0,eL.b)(()=>{X&&(null==Z||Z())},[X,Z]);let J=null===(n=$.arrow)||void 0===n?void 0:n.x,Q=null===(o=$.arrow)||void 0===o?void 0:o.y,et=(null===(a=$.arrow)||void 0===a?void 0:a.centerOffset)!==0,[er,eo]=r.useState();return(0,eL.b)(()=>{j&&eo(window.getComputedStyle(j).zIndex)},[j]),(0,ek.jsx)("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:X?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:er,"--radix-popper-transform-origin":[null===(l=$.transformOrigin)||void 0===l?void 0:l.x,null===(c=$.transformOrigin)||void 0===c?void 0:c.y].join(" "),...(null===(s=$.hide)||void 0===s?void 0:s.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ek.jsx)(ez,{scope:p,placedSide:G,onArrowChange:N,arrowX:J,arrowY:Q,shouldHideArrow:et,children:(0,ek.jsx)(u.WV.div,{"data-side":G,"data-align":Y,...P,ref:L,style:{...P.style,animation:X?void 0:"none"}})})})});eU.displayName=eV;var eq="PopperArrow",eX={top:"bottom",right:"left",bottom:"top",left:"r
32ight"},e$=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=eK(eq,n),i=eX[o.placedSide];return(0,ek.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,ek.jsx)(ej,{...r,ref:t,style:{...r.style,display:"block"}})})});function eG(e){return null!==e}e$.displayName=eq;var eY=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:l,rects:u,middlewareData:c}=t,s=(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[p,v]=eZ(l),h={start:"0%",center:"50%",end:"100%"}[v],m=(null!==(i=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,g=(null!==(a=null===(o=c.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,y="",w="";return"bottom"===p?(y=s?h:"".concat(m,"px"),w="".concat(-f,"px")):"top"===p?(y=s?h:"".concat(m,"px"),w="".concat(u.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=s?h:"".concat(g,"px")):"left"===p&&(y="".concat(u.floating.width+f,"px"),w=s?h:"".concat(g,"px")),{data:{x:y,y:w}}}});function eZ(e){let[t,n="center"]=e.split("-");return[t,n]}var eJ=n(6935),eQ=n(1383),e0="rovingFocusGroup.onEntryFocus",e1={bubbles:!1,cancelable:!0},e2="RovingFocusGroup",[e5,e3,e7]=(0,c.B)(e2),[e6,e8]=(0,a.b)(e2,[e7]),[e4,e9]=e6(e2),te=r.forwardRef((e,t)=>(0,ek.jsx)(e5.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,ek.jsx)(e5.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,ek.jsx)(tt,{...e,ref:t})})}));te.displayName=e2;var tt=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:v,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...g}=e,y=r.useRef(null),w=(0,i.e)(t,y),b=(0,s.gm)(d),[x=null,E]=(0,l.T)({prop:f,defaultProp:p,onChange:v}),[C,R]=r.useState(!1),S=(0,eD.W)(h),M=e3(n),A=r.useRef(!1),[T,P]=r.useState(0);return r.useEffect(()=>{let e=y.current;if(e)return e.addEventListener(e0,S),()=>e.removeEventListener(e0,S)},[S]),(0,ek.jsx)(e4,{scope:n,orientation:a,dir:b,loop:c,currentTabStopId:x,onItemFocus:r.useCallback(e=>E(e),[E]),onItemShiftTab:r.useCallback(()=>R(!0),[]),onFocusableItemAdd:r.useCallback(()=>P(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>P(e=>e-1),[]),children:(0,ek.jsx)(u.WV.div,{tabIndex:C||0===T?-1:0,"data-orientation":a,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(e0,e1);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);ti([e.find(e=>e.active),e.find(e=>e.id===x),...e].filter(Boolean).map(e=>e.ref.current),m)}}A.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>R(!1))})})}),tn="RovingFocusGroupItem",tr=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:l,...c}=e,s=(0,v.M)(),d=l||s,f=e9(tn,n),p=f.currentTabStopId===d,h=e3(n),{onFocusableItemAdd:m,onFocusableItemRemove:g}=f;return r.useEffect(()=>{if(i)return m(),()=>g()},[i,m,g]),(0,ek.jsx)(e5.ItemSlot,{scope:n,id:d,focusable:i,active:a,children:(0,ek.jsx)(u.WV.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{i?f.onItemFocus(d):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return to[o]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=h().filter(e=>
32e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=f.loop?(n=o,r=i+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>ti(o))}})})})});tr.displayName=tn;var to={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ti(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var ta=n(1538),tl=n(8369),tu=n(9219),tc=["Enter"," "],ts=["ArrowUp","PageDown","End"],td=["ArrowDown","PageUp","Home",...ts],tf={ltr:[...tc,"ArrowRight"],rtl:[...tc,"ArrowLeft"]},tp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},tv="Menu",[th,tm,tg]=(0,c.B)(tv),[ty,tw]=(0,a.b)(tv,[tg,e_,e8]),tb=e_(),tx=e8(),[tE,tC]=ty(tv),[tR,tS]=ty(tv),tM=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:i,onOpenChange:a,modal:l=!0}=e,u=tb(t),[c,d]=r.useState(null),f=r.useRef(!1),p=(0,eD.W)(a),v=(0,s.gm)(i);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,ek.jsx)(eW,{...u,children:(0,ek.jsx)(tE,{scope:t,open:n,onOpenChange:p,content:c,onContentChange:d,children:(0,ek.jsx)(tR,{scope:t,onClose:r.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:v,modal:l,children:o})})})};tM.displayName=tv;var tA=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tb(n);return(0,ek.jsx)(eH,{...o,...r,ref:t})});tA.displayName="MenuAnchor";var tT="MenuPortal",[tP,tk]=ty(tT,{forceMount:void 0}),tj=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=tC(tT,t);return(0,ek.jsx)(tP,{scope:t,forceMount:n,children:(0,ek.jsx)(eQ.z,{present:n||i.open,children:(0,ek.jsx)(eJ.h,{asChild:!0,container:o,children:r})})})};tj.displayName=tT;var tD="MenuContent",[tL,tO]=ty(tD),tN=r.forwardRef((e,t)=>{let n=tk(tD,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=tC(tD,e.__scopeMenu),a=tS(tD,e.__scopeMenu);return(0,ek.jsx)(th.Provider,{scope:e.__scopeMenu,children:(0,ek.jsx)(eQ.z,{present:r||i.open,children:(0,ek.jsx)(th.Slot,{scope:e.__scopeMenu,children:a.modal?(0,ek.jsx)(t_,{...o,ref:t}):(0,ek.jsx)(tF,{...o,ref:t})})})})}),t_=r.forwardRef((e,t)=>{let n=tC(tD,e.__scopeMenu),a=r.useRef(null),l=(0,i.e)(t,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,tl.Ry)(e)},[]),(0,ek.jsx)(tI,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tF=r.forwardRef((e,t)=>{let n=tC(tD,e.__scopeMenu);return(0,ek.jsx)(tI,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tI=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:a=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:c,disableOutsidePointerEvents:s,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:w,disableOutsideScroll:b,...x}=e,E=tC(tD,n),C=tS(tD,n),R=tb(n),S=tx(n),M=tm(n),[A,T]=r.useState(null),P=r.useRef(null),k=(0,i.e)(t,P,E.onContentChange),j=r.useRef(0),D=r.useRef(""),L=r.useRef(0),O=r.useRef(null),N=r.useRef("right"),_=r.useRef(0),F=b?tu.Z:r.Fragment,I=b?{as:ta.g7,allowPinchZoom:!0}:void 0,W=e=>{var t,n;let r=D.current+e,o=M().filter(e=>!e.disabled),i=document.activeElement,a=null===(t=o.find(e=>e.ref.current===i))||void 0===t?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let a=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}(o.map(e=>e.textValue),r,a),u=null===(n=o.find(e=>e.textValue===l))||void 0===n?void 0:n.ref.current;!function e(t){D.current=t,window.clearTimeout(j.current),""!==t&&(j.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>
32u.focus())};r.useEffect(()=>()=>window.clearTimeout(j.current),[]),(0,f.EW)();let B=r.useCallback(e=>{var t,n,r;return N.current===(null===(t=O.current)||void 0===t?void 0:t.side)&&!!(r=null===(n=O.current)||void 0===n?void 0:n.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,l=t[e].y,u=t[i].x,c=t[i].y;l>r!=c>r&&n<(u-a)*(r-l)/(c-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},r)},[]);return(0,ek.jsx)(tL,{scope:n,searchRef:D,onItemEnter:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:r.useCallback(e=>{var t;B(e)||(null===(t=P.current)||void 0===t||t.focus(),T(null))},[B]),onTriggerLeave:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:L,onPointerGraceIntentChange:r.useCallback(e=>{O.current=e},[]),children:(0,ek.jsx)(F,{...I,children:(0,ek.jsx)(p.M,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.M)(u,e=>{var t;e.preventDefault(),null===(t=P.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,ek.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:g,onInteractOutside:y,onDismiss:w,children:(0,ek.jsx)(te,{asChild:!0,...S,dir:C.dir,orientation:"vertical",loop:a,currentTabStopId:A,onCurrentTabStopIdChange:T,onEntryFocus:(0,o.M)(v,e=>{C.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,ek.jsx)(eU,{role:"menu","aria-orientation":"vertical","data-state":nn(E.open),"data-radix-menu-content":"",dir:C.dir,...R,...x,ref:k,style:{outline:"none",...x.style},onKeyDown:(0,o.M)(x.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&W(e.key));let o=P.current;if(e.target!==o||!td.includes(e.key))return;e.preventDefault();let i=M().filter(e=>!e.disabled).map(e=>e.ref.current);ts.includes(e.key)&&i.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(i)}),onBlur:(0,o.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(j.current),D.current="")}),onPointerMove:(0,o.M)(e.onPointerMove,ni(e=>{let t=e.target,n=_.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>_.current?"right":"left";N.current=t,_.current=e.clientX}}))})})})})})})});tN.displayName=tD;var tW=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ek.jsx)(u.WV.div,{role:"group",...r,ref:t})});tW.displayName="MenuGroup";var tB=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ek.jsx)(u.WV.div,{...r,ref:t})});tB.displayName="MenuLabel";var tH="MenuItem",tV="menu.itemSelect",tz=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:a,...l}=e,c=r.useRef(null),s=tS(tH,e.__scopeMenu),d=tO(tH,e.__scopeMenu),f=(0,i.e)(t,c),p=r.useRef(!1);return(0,ek.jsx)(tK,{...l,ref:f,disabled:n,onClick:(0,o.M)(e.onClick,()=>{let e=c.current;if(!n&&e){let t=new CustomEvent(tV,{bubbles:!0,cancelable:!0});e.addEventListener(tV,e=>null==a?void 0:a(e),{once:!0}),(0,u.jH)(e,t),t.defaultPrevented?p.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),p.current=!0},onPointerUp:(0,o.M)(e.onPointerUp,e=>{var t;p.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;!n&&(!t||" "!==e.key)&&tc.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tz.displayName=tH;var tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:a=!1,textValue:l,...c}=e,s=tO(tH,n),d=tx(n),f=r.useRef(null),p=(0,i.e)(t,f),[v,h]=r.useState(!1),[m,g]=r.useState("");return r.useEffect(()=>{let e=f.current;if(e){var t;g((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}},[c.children]),(0,ek.jsx)(th.ItemSlot,{scope:n,disabled:a,textValue:null!=l?l:m,children:(0,ek.jsx)(tr,{asChild:!0,...d,focusable:!a,children:(0,ek.jsx)(u.WV.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...c,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,ni(e=>{a?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focu
32s({preventScroll:!0}))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ni(e=>s.onItemLeave(e))),onFocus:(0,o.M)(e.onFocus,()=>h(!0)),onBlur:(0,o.M)(e.onBlur,()=>h(!1))})})})}),tU=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...i}=e;return(0,ek.jsx)(tQ,{scope:e.__scopeMenu,checked:n,children:(0,ek.jsx)(tz,{role:"menuitemcheckbox","aria-checked":nr(n)?"mixed":n,...i,ref:t,"data-state":no(n),onSelect:(0,o.M)(i.onSelect,()=>null==r?void 0:r(!!nr(n)||!n),{checkForDefaultPrevented:!1})})})});tU.displayName="MenuCheckboxItem";var tq="MenuRadioGroup",[tX,t$]=ty(tq,{value:void 0,onValueChange:()=>{}}),tG=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,i=(0,eD.W)(r);return(0,ek.jsx)(tX,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,ek.jsx)(tW,{...o,ref:t})})});tG.displayName=tq;var tY="MenuRadioItem",tZ=r.forwardRef((e,t)=>{let{value:n,...r}=e,i=t$(tY,e.__scopeMenu),a=n===i.value;return(0,ek.jsx)(tQ,{scope:e.__scopeMenu,checked:a,children:(0,ek.jsx)(tz,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":no(a),onSelect:(0,o.M)(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});tZ.displayName=tY;var tJ="MenuItemIndicator",[tQ,t0]=ty(tJ,{checked:!1}),t1=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,i=t0(tJ,n);return(0,ek.jsx)(eQ.z,{present:r||nr(i.checked)||!0===i.checked,children:(0,ek.jsx)(u.WV.span,{...o,ref:t,"data-state":no(i.checked)})})});t1.displayName=tJ;var t2=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,ek.jsx)(u.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});t2.displayName="MenuSeparator";var t5=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tb(n);return(0,ek.jsx)(e$,{...o,...r,ref:t})});t5.displayName="MenuArrow";var t3="MenuSub",[t7,t6]=ty(t3),t8=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:i}=e,a=tC(t3,t),l=tb(t),[u,c]=r.useState(null),[s,d]=r.useState(null),f=(0,eD.W)(i);return r.useEffect(()=>(!1===a.open&&f(!1),()=>f(!1)),[a.open,f]),(0,ek.jsx)(eW,{...l,children:(0,ek.jsx)(tE,{scope:t,open:o,onOpenChange:f,content:s,onContentChange:d,children:(0,ek.jsx)(t7,{scope:t,contentId:(0,v.M)(),triggerId:(0,v.M)(),trigger:u,onTriggerChange:c,children:n})})})};t8.displayName=t3;var t4="MenuSubTrigger",t9=r.forwardRef((e,t)=>{let n=tC(t4,e.__scopeMenu),a=tS(t4,e.__scopeMenu),l=t6(t4,e.__scopeMenu),u=tO(t4,e.__scopeMenu),c=r.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=u,f={__scopeMenu:e.__scopeMenu},p=r.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return r.useEffect(()=>p,[p]),r.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]),(0,ek.jsx)(tA,{asChild:!0,...f,children:(0,ek.jsx)(tK,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":nn(n.open),...e,ref:(0,i.F)(t,l.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.M)(e.onPointerMove,ni(t=>{u.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||c.current||(u.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:(0,o.M)(e.onPointerLeave,ni(e=>{var t,r;p();let o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){let t=null===(r=n.content)||void 0===r?void 0:r.dataset.side,i="right"===t,a=o[i?"left":"right"],l=o[i?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(i?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.M)(e.onKeyDown,t=>{let r=""!==u.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&tf[a.dir].includes(t.key)){var o;n.onOpenChange(!0),null===(o=n.content)||void 0===o||o.focus(),t.preventDefault()}})})})});t9.displayName=t4;var ne="MenuSubContent",nt=r.forwardRef((e,t)=>
32{let n=tk(tD,e.__scopeMenu),{forceMount:a=n.forceMount,...l}=e,u=tC(tD,e.__scopeMenu),c=tS(tD,e.__scopeMenu),s=t6(ne,e.__scopeMenu),d=r.useRef(null),f=(0,i.e)(t,d);return(0,ek.jsx)(th.Provider,{scope:e.__scopeMenu,children:(0,ek.jsx)(eQ.z,{present:a||u.open,children:(0,ek.jsx)(th.Slot,{scope:e.__scopeMenu,children:(0,ek.jsx)(tI,{id:s.contentId,"aria-labelledby":s.triggerId,...l,ref:f,align:"start",side:"rtl"===c.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;c.isUsingKeyboardRef.current&&(null===(t=d.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>{e.target!==s.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,o.M)(e.onEscapeKeyDown,e=>{c.onClose(),e.preventDefault()}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=tp[c.dir].includes(e.key);if(t&&n){var r;u.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault()}})})})})})});function nn(e){return e?"open":"closed"}function nr(e){return"indeterminate"===e}function no(e){return nr(e)?"indeterminate":e?"checked":"unchecked"}function ni(e){return t=>"mouse"===t.pointerType?e(t):void 0}nt.displayName=ne;var na="DropdownMenu",[nl,nu]=(0,a.b)(na,[tw]),nc=tw(),[ns,nd]=nl(na),nf=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:i,defaultOpen:a,onOpenChange:u,modal:c=!0}=e,s=nc(t),d=r.useRef(null),[f=!1,p]=(0,l.T)({prop:i,defaultProp:a,onChange:u});return(0,ek.jsx)(ns,{scope:t,triggerId:(0,v.M)(),triggerRef:d,contentId:(0,v.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:(0,ek.jsx)(tM,{...s,open:f,onOpenChange:p,dir:o,modal:c,children:n})})};nf.displayName=na;var np="DropdownMenuTrigger",nv=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...a}=e,l=nd(np,n),c=nc(n);return(0,ek.jsx)(tA,{asChild:!0,...c,children:(0,ek.jsx)(u.WV.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...a,ref:(0,i.F)(t,l.triggerRef),onPointerDown:(0,o.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});nv.displayName=np;var nh=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nc(t);return(0,ek.jsx)(tj,{...r,...n})};nh.displayName="DropdownMenuPortal";var nm="DropdownMenuContent",ng=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=nd(nm,n),l=nc(n),u=r.useRef(!1);return(0,ek.jsx)(tN,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...i,ref:t,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;u.current||null===(t=a.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,o.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!a.modal||r)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ng.displayName=nm;var ny=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(tW,{...o,...r,ref:t})});ny.displayName="DropdownMenuGroup";var nw=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(tB,{...o,...r,ref:t})});nw.displayName="DropdownMenuLabel";var nb=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(tz,{...o,...r,ref:t})});nb.displayName="DropdownMenuItem";var nx=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(tU,{...o,...r,ref:t})});nx.displayName="DropdownMenuCheckboxItem";var nE=r.forwardRef((e,t)=>
32{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(tG,{...o,...r,ref:t})});nE.displayName="DropdownMenuRadioGroup";var nC=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(tZ,{...o,...r,ref:t})});nC.displayName="DropdownMenuRadioItem";var nR=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(t1,{...o,...r,ref:t})});nR.displayName="DropdownMenuItemIndicator";var nS=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(t2,{...o,...r,ref:t})});nS.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(t5,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var nM=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(t9,{...o,...r,ref:t})});nM.displayName="DropdownMenuSubTrigger";var nA=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nc(n);return(0,ek.jsx)(nt,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nA.displayName="DropdownMenuSubContent";var nT=nf,nP=nv,nk=nh,nj=ng,nD=ny,nL=nw,nO=nb,nN=nx,n_=nE,nF=nC,nI=nR,nW=nS,nB=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,a=nc(t),[u=!1,c]=(0,l.T)({prop:r,defaultProp:i,onChange:o});return(0,ek.jsx)(t8,{...a,open:u,onOpenChange:c,children:n})},nH=nM,nV=nA},589: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:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},467:function(e,t,n){let r;n.d(t,{M:function(){return f}});var o=n(2265),i=n(1584),a=n(5171),l=n(5137),u=n(7437),c="focusScope.autoFocusOnMount",s="focusScope.autoFocusOnUnmount",d={bubbles:!1,cancelable:!0},f=o.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:f,onUnmountAutoFocus:g,...y}=e,[w,b]=o.useState(null),x=(0,l.W)(f),E=(0,l.W)(g),C=o.useRef(null),R=(0,i.e)(t,e=>b(e)),S=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(r){let e=function(e){if(S.paused||!w)return;let t=e.target;w.contains(t)?C.current=t:h(C.current,{select:!0})},t=function(e){if(S.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||h(C.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,S.paused]),o.useEffect(()=>{if(w){m.add(S);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,d);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(h(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(w))}return()=>{w.removeEventListener(c,x),setTimeout(()=>{let t=new CustomEvent(s,d);w.addEventListener(s,E),w.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),w.removeEventListener(s,E),m.remove(S)},0)}}},[w,x,E,S]);let M=o.useCallback(e=>{if(!n&&!r||S.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[v(t,e),v(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&h(i,{select:!0})):(e.preventDefault(),n&&h(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,S.paused]);return(0,u.jsx)(a.WV.div,{tabIndex:-1,...y,ref:R,onKeyDown:M})});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 v(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 h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var m=(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}},6935:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(2265),o=n(4887),i=n(5171),a=n(1336),l=n(7437),u=r.forwardRef((e,t)=>
32{var n,u;let{container:c,...s}=e,[d,f]=r.useState(!1);(0,a.b)(()=>f(!0),[]);let p=c||d&&(null===(u=globalThis)||void 0===u?void 0:null===(n=u.document)||void 0===n?void 0:n.body);return p?o.createPortal((0,l.jsx)(i.WV.div,{...s,ref:t}),p):null});u.displayName="Portal"},2218:function(e,t,n){n.d(t,{j:function(){return i}});let r=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(r&&(r+=" "),r+=t);return r},i=(e,t)=>n=>{var i;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],o=null==l?void 0:l[e];if(null===t)return null;let i=r(t)||r(o);return a[e][i]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,u,null==t?void 0:null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...c}[t]):({...l,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},8342:function(e,t,n){n.d(t,{hc:function(){return f}});var r=(e,t,n={})=>{let r=`${e}=${t}`;if(e.startsWith("__Secure-")&&!n.secure)throw Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!n.secure)throw Error("__Host- Cookie must have Secure attributes");if("/"!==n.path)throw Error('__Host- Cookie must have Path attributes with "/"');if(n.domain)throw Error("__Host- Cookie must not have Domain attributes")}if(n&&"number"==typeof n.maxAge&&n.maxAge>=0){if(n.maxAge>3456e4)throw Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");r+=`; Max-Age=${Math.floor(n.maxAge)}`}if(n.domain&&"host"!==n.prefix&&(r+=`; Domain=${n.domain}`),n.path&&(r+=`; Path=${n.path}`),n.expires){if(n.expires.getTime()-Date.now()>3456e7)throw Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");r+=`; Expires=${n.expires.toUTCString()}`}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.sameSite&&(r+=`; SameSite=${n.sameSite.charAt(0).toUpperCase()+n.sameSite.slice(1)}`),n.partitioned){if(!n.secure)throw Error("Partitioned Cookie must have Secure attributes");r+="; Partitioned"}return r},o=(e,t,n)=>r(e,t=encodeURIComponent(t),n),i=(e,t)=>(e=e.replace(/\/+$/,"")+"/")+(t=t.replace(/^\/+/,"")),a=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp("/:"+n+"(?:{[^/]+})?");e=e.replace(t,`/${r}`)}return e},l=(e,t)=>{switch(t){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},u=e=>/^https?:\/\/[^\/]+?\/index$/.test(e)?e.replace(/\/index$/,"/"):e.replace(/\/index$/,"");function c(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var s=(e,t)=>new Proxy(()=>{},{get(n,r){if("string"==typeof r&&"then"!==r)return s(e,[...t,r])},apply:(n,r,o)=>e({path:t,args:o})}),d=class{url;method;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t){this.url=e,this.method=t}fetch=async(e,t)=>{if(e){if(e.query){for(let[t,n]of Object.entries(e.query))if(void 0!==n){if(this.queryParams||=new URLSearchParams,Array.isArray(n))for(let e of n)this.queryParams.append(t,e);else this.queryParams.set(t,n)}}if(e.form){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(Array.isArray(r))for(let e of r)t.append(n,e);else t.append(n,r);this.rBody=t}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),r={...e?.header??{},..."function"==typeof t?.headers?await t.headers():t?.headers?t.headers:{}};if(e?.cookie){let t=[];for(let[n,r]of Object.entries(e.cookie))t.push(o(n,r,{path:"/"}));r.Cookie=t.join(",")}this.cType&&(r["Content-Type"]=this.cType);let i=new Headers(r??void 0),l=this.url;l=a(l=u(l),this.pathParams),this.queryParams&&(l=l+"?"+this.queryParams.toString());let c=!("GET"===(n=this.method.toUpperCase())||"HEAD"===n);return(t?.fetch||fetch)(l,{body:c?this.rBody:void 0,method:n,headers:i,...t?.init})}},f=(e,t)=>s(function n(r){let o=[...r.path];if("toString"===o[o.length-1])return"name"===o[o.length-2]?o[o.length-3]||"":n.toString();if("valueOf"===o[o.length-1])return"name"===o[o.length-2]?o[o.length-3]||"":n;let u="";if(/^\$/.test(o[o.length-1])){let e=o.pop();e&&(u=e.replace(/^\$/,""))}let s=i(e,o.join("/"));if("url"===u)return new URL(r.args[0]&&r.args[0].param?a(s,r.args[0].param):s);if("ws"===u){let e=new URL(l(r.args[0]&&r.args[0].param?a(s,r.args[0].param):s,"ws"));for(let t in r.args[0]?.query)e.searchParams.set(t,r.args[0].query[t]);return new WebSocket(e.toString())}let f=new d(s,u);if(u){let e=function e(t,n){if(!c(t)&&!c(n))return n;let r={...t};for(let t in n){let o=n[t];c(r[t])&&c(o)?r[t]=e(r[t],o):r[t]=o}return r}(t??={},{...r.args[1]??{}});return f.fetch(r.args[0],e)}return f},[])},1735:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return i},pi:function(){return r}});var r=function(){return(r=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 o(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 i(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))}"function"==typeof SuppressedError&&SuppressedError},9099:function(e,t,n){n.d(t,{Ue:function(){return f}});let r=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({}
32,t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(r,o,i);return i},o=e=>e?r(e):r;var i=n(2265),a=n(5006);let{useDebugValue:l}=i,{useSyncExternalStoreWithSelector:u}=a,c=!1,s=e=>e,d=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");let t="function"==typeof e?o(e):e,n=(e,n)=>(function(e,t=s,n){n&&!c&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),c=!0);let r=u(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return l(r),r})(t,e,n);return Object.assign(n,t),n},f=e=>e?d(e):d}}]);
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.