PageSourceSearch

https://triptrace.ai/_next/static/chunks/3u8_p0omozb26.js

js triptrace.ai collected 2026-10-05 15:16:34 UTC 138,849 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14387,e=>{"use strict";let t=(0,e.i(56420).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["default",0,t])},75704,e=>{"use strict";e.s([])},67805,e=>{"use strict";let t=function(e,...t){let n=new URL("https://base-ui.com/production-error");return n.searchParams.set("code",e.toString()),t.forEach(e=>n.searchParams.append("args[]",e)),`Base UI error #${e}; visit ${n} for the full message.`};e.s(["default",0,t])},13104,e=>{"use strict";var t=e.i(67805),n=e.i(71645);let r=n.createContext(!1),o=n.createContext(void 0);e.s(["DialogRootContext",0,o,"IsDrawerContext",0,r,"useDialogRootContext",0,function(e){let r=n.useContext(o);if(!1===e&&void 0===r)throw Error((0,t.default)(27));return r}])},69095,30628,26292,35423,17514,19805,e=>{"use strict";e.i(47167);var t=e.i(67805),n=e.i(71645);let r={};function o(e,t){let o=n.useRef(r);return o.current===r&&(o.current=e(t)),o}function i(e,t,n,r){var i,l,u,c,d;let f=o(s).current;return i=f,l=e,u=t,c=n,d=r,(i.refs[0]!==l||i.refs[1]!==u||i.refs[2]!==c||i.refs[3]!==d)&&a(f,[e,t,n,r]),f.callback}function l(e){var t,n;let r=o(s).current;return t=r,n=e,(t.refs.length!==n.length||t.refs.some((e,t)=>e!==n[t]))&&a(r,e),r.callback}function s(){return{callback:null,cleanup:null,refs:[]}}function a(e,t){if(e.refs=t,t.every(e=>null==e)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),null!=n){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let o=t[e];if(null!=o)switch(typeof o){case"function":{let t=o(n);"function"==typeof t&&(r[e]=t);break}case"object":o.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(null!=n)switch(typeof n){case"function":{let t=r[e];"function"==typeof t?t():n(null);break}case"object":n.current=null}}}}}}e.s(["useRefWithInit",0,o],30628),e.s(["useMergedRefs",0,i,"useMergedRefsN",0,l],26292);let u=parseInt(n.version,10);function c(e){return u>=e}function d(e){if(!n.isValidElement(e))return null;let t=e.props;return(c(19)?t?.ref:e.ref)??null}function f(e,t){return e&&!t?e:!e&&t?t:e||t?{...e,...t}:void 0}e.s(["isReactVersionAtLeast",0,c],35423);let p=Object.freeze([]),g=Object.freeze({});e.s(["EMPTY_ARRAY",0,p,"EMPTY_OBJECT",0,g,"NOOP",0,function(){}],17514);let m={};function b(e,t,n,r,o){if(!n&&!r&&!o&&!e)return v(t);let i=v(e);return t&&(i=y(i,t)),n&&(i=y(i,n)),r&&(i=y(i,r)),o&&(i=y(i,o)),i}function h(e){if(0===e.length)return m;if(1===e.length)return v(e[0]);let t=v(e[0]);for(let n=1;n<e.length;n+=1)t=y(t,e[n]);return t}function v(e){return E(e)?{...S(e,m)}:function(e){let t={...e};for(let e in t){let n=t[e];x(e,n)&&(t[e]=w(n))}return t}(e)}function y(e,t){return E(t)?S(t,e):function(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case"style":e[n]=f(e.style,r);break;case"className":e[n]=C(e.className,r);break;default:x(n,r)?e[n]=function(e,t){return t?e?(...n)=>{let r=n[0];if(R(r)){k(r);let o=t(...n);return r.baseUIHandlerPrevented||e?.(...n),o}let o=t(...n);return e?.(...n),o}:w(t):e}(e[n],r):e[n]=r}}return e}(e,t)}function x(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),o=e.charCodeAt(2);return 111===n&&110===r&&o>=65&&o<=90&&("function"==typeof t||void 0===t)}function E(e){return"function"==typeof e}function S(e,t){return E(e)?e(t):e??m}function w(e){return e?(...t)=>{let n=t[0];return R(n)&&k(n),e(...t)}:e}function k(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function C(e,t){return t?e?t+" "+e:t:e}function R(e){return null!=e&&"object"==typeof e&&"nativeEvent"in e}e.s(["makeEventPreventable",0,k,"mergeClassNames",0,C,"mergeProps",0,b,"mergePropsN",0,h],19805);let T=Symbol.for("react.lazy");e.s(["useRenderElement",0,function(e,r,o={}){let s=r.render,a=function(e,t={}){var n;let{className:r,style:o,render:s}=e,{state:a=g,ref:u,props:c,stateAttributesMapping:p,enabled:m=!0}=t,v=m?"function"==typeof r?r(a):r:void 0,y=m?"function"==typeof o?o(a):o:void 0,x=m?function(e,t){let n={};for(let r in e){let o=e[r];if(t?.hasOwnProperty(r)){let e=t[r](o);null!=e&&Object.assign(n,e);continue}!0===o?n[`data-${r.toLowerCase()}`]="":o&&(n[`data-${r.toLowerCase()}`]=o.toString())}return n}(a,p):g,E=m&&c?Array.isArray(n=c)?h(n):b(void 0,n):void 0,S=m?f(x,E)??{}:g;return("u">typeof document&&(m?Array.isArray(u)?S.ref=l([S.ref,d(s),...u]):S.ref=i(S.ref,d(s),u):i(null,null)),m)?(void 0!==v&&(S.className=C(S.className,v)),void 0!==y&&(S.style=f(S.style,y)),S):g}(r,o);
1return!1===o.enabled?null:function(e,r,o,i){if(r){if("function"==typeof r)return r(o,i);let e=b(o,r.props);e.ref=o.ref;let t=r;return t?.$$typeof===T&&(t=n.Children.toArray(r)[0]),n.cloneElement(t,e)}if(e&&"string"==typeof e){var l,s;return l=e,s=o,"button"===l?(0,n.createElement)("button",{type:"button",...s,key:s.key}):"img"===l?(0,n.createElement)("img",{alt:"",...s,key:s.key}):n.createElement(l,s)}throw Error((0,t.default)(8))}(e,s,a,o.state??g)}],69095)},14060,e=>{"use strict";var t;let n=((t={}).startingStyle="data-starting-style",t.endingStyle="data-ending-style",t),r={[n.startingStyle]:""},o={[n.endingStyle]:""};e.s(["TransitionStatusDataAttributes",0,n,"transitionStatusMapping",0,{transitionStatus:e=>"starting"===e?r:"ending"===e?o:null}])},83590,e=>{"use strict";var t,n,r=e.i(14060);let o=((t={}).open="data-open",t.closed="data-closed",t[t.startingStyle=r.TransitionStatusDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=r.TransitionStatusDataAttributes.endingStyle]="endingStyle",t.anchorHidden="data-anchor-hidden",t.side="data-side",t.align="data-align",t),i=((n={}).popupOpen="data-popup-open",n.pressed="data-pressed",n),l={[i.popupOpen]:""},s={[i.popupOpen]:"",[i.pressed]:""},a={[o.open]:""},u={[o.closed]:""},c={[o.anchorHidden]:""};e.s(["CommonPopupDataAttributes",0,o,"popupStateMapping",0,{open:e=>e?a:u,anchorHidden:e=>e?c:null},"pressableTriggerOpenStateMapping",0,{open:e=>e?s:null},"triggerOpenStateMapping",0,{open:e=>e?l:null}])},59141,e=>{"use strict";var t=e.i(71645),n=e.i(13104),r=e.i(69095),o=e.i(83590),i=e.i(14060);let l={...o.popupStateMapping,...i.transitionStatusMapping},s=t.forwardRef(function(e,t){let{render:o,className:i,style:s,forceRender:a=!1,...u}=e,{store:c}=(0,n.useDialogRootContext)(),d=c.useState("open"),f=c.useState("nested"),p=c.useState("mounted"),g=c.useState("transitionStatus");return(0,r.useRenderElement)("div",e,{state:{open:d,transitionStatus:g},ref:[c.context.backdropRef,t],stateAttributesMapping:l,props:[{role:"presentation",hidden:!p,style:{userSelect:"none",WebkitUserSelect:"none"}},u],enabled:a||!f})});e.s(["DialogBackdrop",0,s])},29315,e=>{"use strict";let t;function n(){return"u">typeof window}function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function l(e){return!!n()&&(e instanceof Node||e instanceof o(e).Node)}function s(e){return!!n()&&(e instanceof Element||e instanceof o(e).Element)}function a(e){return!!n()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function u(e){return!(!n()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function c(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=v(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function d(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let f=/transform|translate|scale|rotate|perspective|filter/,p=/paint|layout|strict|content/,g=e=>!!e&&"none"!==e;function m(e){let t=s(e)?v(e):e;return g(t.transform)||g(t.translate)||g(t.scale)||g(t.rotate)||g(t.perspective)||!b()&&(g(t.backdropFilter)||g(t.filter))||f.test(t.willChange||"")||p.test(t.contain||"")}function b(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function h(e){return/^(html|body|#document)$/.test(r(e))}function v(e){return o(e).getComputedStyle(e)}function y(e){if("html"===r(e))return e;let t=e.assignedSlot||e.parentNode||u(e)&&e.host||i(e);return u(t)?t.host:t}function x(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}e.s(["getComputedStyle",0,v,"getContainingBlock",0,function(e){let t=y(e);for(;a(t)&&!h(t);){if(m(t))return t;if(d(t))break;t=y(t)}return null},"getDocumentElement",0,i,"getFrameElement",0,x,"getNodeName",0,r,"getNodeScroll",0,function(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}},"getOverflowAncestors",0,function e(t,n,r){var i;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=y(t);return h(n)?t.ownerDocument?t.ownerDocument.body:t.body:a(n)&&c(n)?n:e(n)}(t),s=l===(null==(i=t.ownerDocument)?void 0:i.body),u=o(l);if(!s)return n.concat(l,e(l,[],r));{let t=x(u);
1return n.concat(u,u.visualViewport||[],c(l)?l:[],t&&r?e(t):[])}},"getParentNode",0,y,"getWindow",0,o,"isContainingBlock",0,m,"isElement",0,s,"isHTMLElement",0,a,"isLastTraversableNode",0,h,"isNode",0,l,"isOverflowElement",0,c,"isShadowRoot",0,u,"isTableElement",0,function(e){return/^(table|td|th)$/.test(r(e))},"isTopLayer",0,d,"isWebKit",0,b])},76477,93733,977,e=>{"use strict";e.i(47167);var t=e.i(71645);let n={...t};e.s(["SafeReact",0,n],93733);var r=e.i(30628);let o=n.useInsertionEffect,i=o&&o!==n.useLayoutEffect?o:e=>e();function l(){let e={next:void 0,callback:s,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function s(){}e.s(["useStableCallback",0,function(e){let t=(0,r.useRefWithInit)(l).current;return t.next=e,i(t.effect),t.trampoline}],76477);let a="u">typeof document?t.useLayoutEffect:()=>{};e.s(["useIsoLayoutEffect",0,a],977)},53402,84977,e=>{"use strict";e.i(47167);var t=e.i(71645),n=e.i(29315),r=e.i(76477),o=e.i(977),i=e.i(19805),l=e.i(67805);let s=t.createContext(void 0);function a(e=!1){let n=t.useContext(s);if(void 0===n&&!e)throw Error((0,l.default)(16));return n}function u(e){return(0,n.isHTMLElement)(e)&&"BUTTON"===e.tagName}e.s(["CompositeRootContext",0,s,"useCompositeRootContext",0,a],84977),e.s(["useButton",0,function(e={}){let{disabled:n=!1,focusableWhenDisabled:l,tabIndex:s=0,native:c=!0,composite:d}=e,f=t.useRef(null),p=a(!0),g=d??void 0!==p,{props:m}=function(e){let{focusableWhenDisabled:n,disabled:r,composite:o=!1,tabIndex:i=0,isNativeButton:l}=e,s=o&&!1!==n,a=o&&!1===n;return{props:t.useMemo(()=>{let e={onKeyDown(e){r&&n&&"Tab"!==e.key&&e.preventDefault()}};return o||(e.tabIndex=i,!l&&r&&(e.tabIndex=n?i:-1)),(l&&(n||s)||!l&&r)&&(e["aria-disabled"]=r),l&&(!n||a)&&(e.disabled=r),e},[o,r,n,s,a,l,i])}}({focusableWhenDisabled:l,disabled:n,composite:g,tabIndex:s,isNativeButton:c}),b=t.useCallback(()=>{let e=f.current;u(e)&&g&&n&&void 0===m.disabled&&e.disabled&&(e.disabled=!1)},[n,m.disabled,g]);return(0,o.useIsoLayoutEffect)(b,[b]),{getButtonProps:t.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:o,onKeyDown:l,onPointerDown:s,...a}=e;return(0,i.mergeProps)({onClick(e){n?e.preventDefault():t?.(e)},onMouseDown(e){n||r?.(e)},onKeyDown(e){var r;if(n||((0,i.makeEventPreventable)(e),l?.(e),e.baseUIHandlerPrevented))return;let o=e.target===e.currentTarget,s=e.currentTarget,a=u(s),d=!c&&(r=s,!!(r?.tagName==="A"&&r?.href)),f=o&&(c?a:!d),p="Enter"===e.key,m=" "===e.key,b=s.getAttribute("role"),h=b?.startsWith("menuitem")||"option"===b||"gridcell"===b;if(o&&g&&m){if(e.defaultPrevented&&h)return;e.preventDefault(),d||c&&a?(s.click(),e.preventBaseUIHandler()):f&&(t?.(e),e.preventBaseUIHandler());return}f&&(!c&&(m||p)&&e.preventDefault(),!c&&p&&t?.(e))},onKeyUp(e){n||(((0,i.makeEventPreventable)(e),o?.(e),e.target===e.currentTarget&&c&&g&&u(e.currentTarget)&&" "===e.key)?e.preventDefault():!e.baseUIHandlerPrevented&&(e.target!==e.currentTarget||c||g||" "!==e.key||t?.(e)))},onPointerDown(e){n?e.preventDefault():s?.(e)}},c?{type:"button"}:{role:"button"},m,a)},[n,m,g,c]),buttonRef:(0,r.useStableCallback)(e=>{f.current=e,b()})}}],53402)},31888,e=>{"use strict";var t=e.i(17514);e.s(["createChangeEventDetails",0,function(e,n,r,o){let i=!1,l=!1,s=o??t.EMPTY_OBJECT;return{reason:e,event:n??new Event("base-ui"),cancel(){i=!0},allowPropagation(){l=!0},get isCanceled(){return i},get isPropagationAllowed(){return l},trigger:r,...s}}])},71403,e=>{"use strict";e.s(["cancelOpen",0,"cancel-open","chipRemovePress",0,"chip-remove-press","clearPress",0,"clear-press","closePress",0,"close-press","closeWatcher",0,"close-watcher","decrementPress",0,"decrement-press","disabled",0,"disabled","drag",0,"drag","escapeKey",0,"escape-key","focusOut",0,"focus-out","imperativeAction",0,"imperative-action","incrementPress",0,"increment-press","initial",0,"initial","inputBlur",0,"input-blur","inputChange",0,"input-change","inputClear",0,"input-clear","inputPaste",0,"input-paste","inputPress",0,"input-press","itemPress",0,"item-press","keyboard",0,"keyboard","linkPress",0,"link-press","listNavigation",0,"list-navigation","missing",0,"missing","none",0,"none","outsidePress",0,"outside-press","pointer",0,"pointer","scrub",0,"scrub","siblingOpen",0,"sibling-open","swipe",0,"swipe","trackPress",0,"track-press","triggerFocus",0,"trigger-focus","triggerHover",0,"trigger-hover","triggerPress",0,"trigger-press","wheel",0,"wheel","windowResize",0,"window-resize"],65917);var t=e.i(65917);e.s(["REASONS",0,t],71403)},43444,e=>{"use strict";var t=e.i(71645),n=e.i(13104),r=e.i(69095),o=e.i(53402),i=e.i(31888),l=e.i(71403);let s=t.forwardRef(function(e,t){let{render:s,className:a,style:u,disabled:c=!1,nativeButton:d=!0,...f}=e,{store:p}
1=(0,n.useDialogRootContext)(),g=p.useState("open"),{getButtonProps:m,buttonRef:b}=(0,o.useButton)({disabled:c,native:d});return(0,r.useRenderElement)("button",e,{state:{disabled:c},ref:[t,b],props:[{onClick:function(e){g&&p.setOpen(!1,(0,i.createChangeEventDetails)(l.REASONS.closePress,e.nativeEvent))}},f,m]})});e.s(["DialogClose",0,s])},86790,83799,e=>{"use strict";var t=e.i(71645),n=e.i(93733);let r=0,o=n.SafeReact.useId;function i(e,n){if(void 0!==o){let t=o();return e??(n?`${n}-${t}`:t)}return function(e,n="mui"){let[o,i]=t.useState(e),l=e||o;return t.useEffect(()=>{null==o&&(r+=1,i(`${n}-${r}`))},[o,n]),l}(e,n)}e.s(["useId",0,i],83799),e.s(["useBaseUiId",0,function(e){return i(e,"base-ui")}],86790)},39362,e=>{"use strict";var t=e.i(71645),n=e.i(13104),r=e.i(69095),o=e.i(86790);let i=t.forwardRef(function(e,t){let{render:i,className:l,style:s,id:a,...u}=e,{store:c}=(0,n.useDialogRootContext)(),d=(0,o.useBaseUiId)(a);return c.useSyncedValueWithCleanup("descriptionElementId",d),(0,r.useRenderElement)("p",e,{ref:t,props:[{id:d},u]})});e.s(["DialogDescription",0,i])},60620,5335,231,e=>{"use strict";e.s(["addEventListener",0,function(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}],60620),e.s(["mergeCleanups",0,function(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}],5335);var t=e.i(977),n=e.i(30628);function r(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}e.s(["useValueAsRef",0,function(e){let o=(0,n.useRefWithInit)(r,e).current;return o.next=e,(0,t.useIsoLayoutEffect)(o.effect),o}],231)},94365,e=>{"use strict";var t=e.i(71645);let n=[];e.s(["useOnMount",0,function(e){t.useEffect(e,n)}])},66745,e=>{"use strict";var t=e.i(30628),n=e.i(94365);class r{static create(){return new r}currentId=0;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,t()},e)}isStarted(){return 0!==this.currentId}clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)};disposeEffect=()=>this.clear}e.s(["Timeout",0,r,"useTimeout",0,function(){let e=(0,t.useRefWithInit)(r.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},57666,e=>{"use strict";let t="u">typeof navigator,n=function(){if(!t)return{platform:"",maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}(),r=function(){if(!t)return"";let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}(),o=function(){if(!t)return"";let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(" "):navigator.userAgent}(),i="u">typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter:none"),l="MacIntel"===n.platform&&n.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(n.platform);t&&/firefox/i.test(o);let s=t&&/apple/i.test(navigator.vendor);t&&/Edg/i.test(o);let a=t&&/android/i.test(r)||/android/i.test(o),u=t&&r.toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints,c=o.includes("jsdom/");e.s(["isAndroid",0,a,"isIOS",0,l,"isJSDOM",0,c,"isMac",0,u,"isSafari",0,s,"isWebKit",0,i])},47135,e=>{"use strict";var t=e.i(30628),n=e.i(94365);let r=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,this.callbacksCount-=1)}};class o{static create(){return new o}static request(e){return r.request(e)}static cancel(e){return r.cancel(e)}currentId=null;request(e){this.cancel(),this.currentId=r.request(()=>{this.currentId=null,e()})}cancel=()=>{null!==this.currentId&&(r.cancel(this.currentId),this.currentId=null)};
1disposeEffect=()=>this.cancel}e.s(["AnimationFrame",0,o,"useAnimationFrame",0,function(){let e=(0,t.useRefWithInit)(o.create).current;return(0,n.useOnMount)(e.disposeEffect),e}])},90219,33848,62372,72408,30780,494,62834,82033,43084,43801,59266,87612,32652,98442,40684,5066,37692,16385,5671,51665,e=>{"use strict";function t(e){return e?.ownerDocument||document}e.s(["ownerDocument",0,t],90219);var n=e.i(29315);e.s(["ownerWindow",()=>n.getWindow],33848),e.i(47167);var r=e.i(71645),o=e.i(977),i=e.i(57666);let l={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},s={...l,position:"fixed",top:0,left:0},a={...l,position:"absolute"};e.s(["visuallyHidden",0,s,"visuallyHiddenInput",0,a],62372);var u=e.i(43476);let c=r.forwardRef(function(e,t){let[n,l]=r.useState();return(0,o.useIsoLayoutEffect)(()=>{i.isSafari&&l("button")},[]),(0,u.jsx)("span",{...e,ref:t,style:s,"aria-hidden":!n||void 0,tabIndex:0,role:n,"data-base-ui-focus-guard":""})});function d(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function f(e,t){if(!e||!t)return!1;let r=t.getRootNode?.();if(e.contains(t))return!0;if(r&&(0,n.isShadowRoot)(r)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}e.s(["FocusGuard",0,c],72408),e.s(["activeElement",0,d,"contains",0,f,"getTarget",0,function(e){return"composedPath"in e?e.composedPath()[0]:e.target}],30780);let p="data-base-ui-focusable",g="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])",m="ArrowLeft",b="ArrowRight",h="ArrowUp",v="ArrowDown";function y(e){return(0,n.isHTMLElement)(e)&&e.matches(g)}function x(e){e.preventDefault(),e.stopPropagation()}e.s(["ARROW_DOWN",0,v,"ARROW_LEFT",0,m,"ARROW_RIGHT",0,b,"ARROW_UP",0,h,"FOCUSABLE_ATTRIBUTE",0,p,"TYPEABLE_SELECTOR",0,g],494),e.s(["getFloatingFocusElement",0,function(e){return e?e.hasAttribute(p)?e:e.querySelector(`[${p}]`)||e:null},"isEventTargetWithin",0,function(e,t){return null!=t&&("composedPath"in e?e.composedPath().includes(t):null!=e.target&&t.contains(e.target))},"isInteractiveElement",0,function(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${g}`)!=null},"isRootElement",0,function(e){return e.matches("html,body")},"isTargetInsideEnabledTrigger",0,function(e,t){if(!(0,n.isElement)(e))return!1;if(t.hasElement(e))return!e.hasAttribute("data-trigger-disabled");for(let[,n]of t.entries())if(f(n,e))return!n.hasAttribute("data-trigger-disabled");return!1},"isTypeableCombobox",0,function(e){return!!e&&"combobox"===e.getAttribute("role")&&y(e)},"isTypeableElement",0,y,"matchesFocusVisible",0,function(e){if(!e||i.isJSDOM)return!0;try{return e.matches(":focus-visible")}catch(e){return!0}}],62834),e.s(["isClickLikeEvent",0,function(e){let t=e.type;return"click"===t||"mousedown"===t||"keydown"===t||"keyup"===t},"isMouseLikePointerType",0,function(e,t){let n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)},"isReactEvent",0,function(e){return"nativeEvent"in e},"isVirtualClick",0,function(e){return""===e.pointerType&&!!e.isTrusted||(i.isAndroid&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)},"isVirtualPointerEvent",0,function(e){return!i.isJSDOM&&(!i.isAndroid&&0===e.width&&0===e.height||i.isAndroid&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)},"stopEvent",0,x],82033);let E=["top","right","bottom","left"],S=E.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),w=Math.min,k=Math.max,C=Math.round,R=Math.floor,T={left:"right",right:"left",bottom:"top",top:"bottom"};function O(e){return e.split("-")[0]}function I(e){return e.split("-")[1]}function P(e){return"x"===e?"y":"x"}function D(e){return"y"===e?"height":"width"}function A(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function M(e){return P(A(e))}function L(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let N=["left","right"],F=["right","left"],j=["top","bottom"],z=["bottom","top"];function B(e){let t=O(e);return T[t]+e.slice(t.length)}function W(e,t,n){return Math.floor(e/t)!==n}function _(e,t){return t<0||t>=e.length}function V(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:o=1}={}){let i=t;do i+=n?-o:o;while(i>=0&&i<=e.length-1&&H(e,i,r))return i}function H(e,t,n){if("function"==typeof n?n(t):n?.includes(t)??!1)return!0;let r=e[t];return!!r&&(!U(r)||!n&&(r.hasAttribute("disabled")||"true"===r.getAttribute("aria-disabled")))}function U(e,t=e?(0,n.getComputedStyle)(e):null){var r;
1return!!e&&!!e.isConnected&&!!t&&"hidden"!==(r=t).visibility&&"collapse"!==r.visibility&&("function"==typeof e.checkVisibility?e.checkVisibility():"none"!==t.display&&"contents"!==t.display)}function Y(e){for(let t of Array.from(e.children))if("summary"===(0,n.getNodeName)(t))return t;return null}function K(e){let t=e?(0,n.getNodeName)(e):"";return null!=e&&e.matches('a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]')&&("summary"!==t||null!=e.parentElement&&"details"===(0,n.getNodeName)(e.parentElement)&&Y(e.parentElement)===e)&&("details"!==t||null==Y(e))&&("input"!==t||"hidden"!==e.type)}function $(e){if(!K(e)||!e.isConnected||e.matches(":disabled"))return!1;for(let t=e;t;t=function(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let r=e.getRootNode();return(0,n.isShadowRoot)(r)?r.host:null}(t)){let r=t!==e,o="slot"===(0,n.getNodeName)(t);if(t.hasAttribute("inert")||r&&"details"===(0,n.getNodeName)(t)&&!t.open&&!function(e,t){let n=Y(t);return!!n&&(e===n||f(n,e))}(e,t)||t.hasAttribute("hidden")||!o&&!function(e,t){let r=(0,n.getComputedStyle)(e);return t?"none"!==r.display:U(e,r)}(t,r))return!1}return!0}function G(e){let t=e.tabIndex;if(t<0){let t=(0,n.getNodeName)(e);if("details"===t||"audio"===t||"video"===t||(0,n.isHTMLElement)(e)&&e.isContentEditable)return 0}return t}function q(e){return"input"!==(0,n.getNodeName)(e)?null:"radio"===e.type&&""!==e.name?e:null}function X(e){if((0,n.isHTMLElement)(e)&&"slot"===(0,n.getNodeName)(e)){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return(0,n.isHTMLElement)(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function J(e){let t=[];return!function e(t,n){X(t).forEach(t=>{K(t)&&n.push(t),e(t,n)})}(e,t),t.filter($)}function Z(e){let t=J(e);return t.filter(e=>G(e)>=0&&function(e,t){let n=q(e);if(!n)return!0;let r=t.find(e=>{let t=q(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=q(e);return t?.name===n.name&&t.form===n.form})===n}(e,t))}function Q(e,n){let r=Z(e),o=r.length;if(0===o)return;let i=d(t(e)),l=r.indexOf(i);return r[-1===l?1===n?0:o-1:l+n]}function ee(e){return Q(t(e).body,1)||e}function et(e){return Q(t(e).body,-1)||e}function en(e,n){if(!e)return null;let r=Z(t(e).body),o=r.length;if(0===o)return null;let i=r.indexOf(e);return -1===i?null:r[(i+n+o)%o]}function er(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!f(n,r)}function eo(e){Z(e).forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")})}function ei(e){let t=[];!function e(t,r,o){X(t).forEach(t=>{(0,n.isHTMLElement)(t)&&t.matches(r)&&o.push(t),e(t,r,o)})}(e,"[data-tabindex]",t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")})}function el(e){return`data-base-ui-${e}`}e.s(["clamp",0,function(e,t,n){return k(e,w(t,n))},"createCoords",0,e=>({x:e,y:e}),"evaluate",0,function(e,t){return"function"==typeof e?e(t):e},"floor",0,R,"getAlignment",0,I,"getAlignmentAxis",0,M,"getAlignmentSides",0,function(e,t,n){void 0===n&&(n=!1);let r=I(e),o=M(e),i=D(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=B(l)),[l,B(l)]},"getAxisLength",0,D,"getExpandedPlacements",0,function(e){let t=B(e);return[L(e),t,L(t)]},"getOppositeAlignmentPlacement",0,L,"getOppositeAxis",0,P,"getOppositeAxisPlacements",0,function(e,t,n,r){let o=I(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?F:N;return t?N:F;case"left":case"right":return t?j:z;default:return[]}}(O(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(L)))),i},"getOppositePlacement",0,B,"getPaddingObject",0,function(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}},"getSide",0,O,"getSideAxis",0,A,"max",0,k,"min",0,w,"placements",0,S,"rectToClientRect",0,function(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}},"round",0,C,"sides",0,E],43084),e.s(["createGridCellMap",0,function(e,t,n){let r=[],o=0;return e.forEach(({width:e,height:i},l)=>{let s=!1;for(n&&(o=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<i;e+=1)n.push(o+r+e*t);o%t+e<=t&&n.every(e=>
1null==r[e])?(n.forEach(e=>{r[e]=l}),s=!0):o+=1}}),[...r]},"findNonDisabledListIndex",0,V,"getGridCellIndexOfCorner",0,function(e,t,n,r,o){if(-1===e)return -1;let i=n.indexOf(e),l=t[e];switch(o){case"tl":return i;case"tr":if(!l)return i;return i+l.width-1;case"bl":if(!l)return i;return i+(l.height-1)*r;case"br":return n.lastIndexOf(e);default:return -1}},"getGridCellIndices",0,function(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])},"getGridNavigatedIndex",0,function(e,{event:t,orientation:n,loopFocus:r,onLoop:o,rtl:i,cols:l,disabledIndices:s,minIndex:a,maxIndex:u,prevIndex:c,stopEvent:d=!1}){let f,p=c;if(t.key===h?f="up":t.key===v&&(f="down"),f){let n=[],i=[],g=!1,m=0;{let t=null,r=-1;e.forEach((e,o)=>{if(null==e)return;m+=1;let l=e.closest('[role="row"]');l&&(g=!0),(l!==t||-1===r)&&(t=l,n[r+=1]=[]),n[r].push(o),i[o]=r})}let b=!1,h=0;if(g)for(let e of n){let t=e.length;t>h&&(h=t),t!==l&&(b=!0)}let v=b&&m<e.length,y=h||l;d&&x(t);let E=(l=>{if(!b||-1===c)return;let a=i[c];if(null==a)return;let u=n[a].indexOf(c),d="up"===l?-1:1;for(let l=a+d,f=0;f<n.length;f+=1,l+=d){if(l<0||l>=n.length){if(!r||v)return;if(l=l<0?n.length-1:0,o){let e=Math.min(u,n[l].length-1);l=i[o(t,c,n[l][e]??n[l][0])]??l}}let a=n[l];for(let t=Math.min(u,a.length-1);t>=0;t-=1){let n=a[t];if(!H(e,n,s))return n}}})(f)??(t=>{if(!v||-1===c)return;let n=c%y,o="up"===t?-y:y,i=u-u%y,l=R(u/y)+1;for(let t=c-n+o,a=0;a<l;a+=1,t+=o){if(t<0||t>u){if(!r)return;t=t<0?i:0}let o=Math.min(t+y-1,u);for(let r=Math.min(t+n,o);r>=t;r-=1)if(!H(e,r,s))return r}})(f);if(void 0!==E)p=E;else if(-1===c)p="up"===f?u:a;else if(p=V(e,{startingIndex:c,amount:y,decrement:"up"===f,disabledIndices:s}),r){if("up"===f&&(c-y<a||p<0)){let e=c%y,n=u%y,r=u-(n-e);p=n===e?u:n>e?r:r-y,o&&(p=o(t,c,p))}"down"===f&&c+y>u&&(p=V(e,{startingIndex:c%y-y,amount:y,disabledIndices:s}),o&&(p=o(t,c,p)))}_(e,p)&&(p=c)}if("both"===n){let n=R(c/l);t.key===(i?m:b)&&(d&&x(t),c%l!=l-1?(p=V(e,{startingIndex:c,disabledIndices:s}),r&&W(p,l,n)&&(p=V(e,{startingIndex:c-c%l-1,disabledIndices:s}),o&&(p=o(t,c,p)))):r&&(p=V(e,{startingIndex:c-c%l-1,disabledIndices:s}),o&&(p=o(t,c,p))),W(p,l,n)&&(p=c)),t.key===(i?b:m)&&(d&&x(t),c%l!=0?(p=V(e,{startingIndex:c,decrement:!0,disabledIndices:s}),r&&W(p,l,n)&&(p=V(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:s}),o&&(p=o(t,c,p)))):r&&(p=V(e,{startingIndex:c+(l-c%l),decrement:!0,disabledIndices:s}),o&&(p=o(t,c,p))),W(p,l,n)&&(p=c));let a=R(u/l)===n;_(e,p)&&(r&&a?(p=t.key===(i?b:m)?u:V(e,{startingIndex:c-c%l-1,disabledIndices:s}),o&&(p=o(t,c,p))):p=c)}return p},"getMaxListIndex",0,function(e,t){return V(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})},"getMinListIndex",0,function(e,t){return V(e.current,{disabledIndices:t})},"isElementVisible",0,U,"isIndexOutOfListBounds",0,_,"isListIndexDisabled",0,H],43801),e.s(["disableFocusInside",0,eo,"enableFocusInside",0,ei,"focusable",0,J,"getNextTabbable",0,ee,"getPreviousTabbable",0,et,"getTabbableAfterElement",0,function(e){return en(e,1)},"getTabbableBeforeElement",0,function(e){return en(e,-1)},"isOutsideEvent",0,er,"isTabbable",0,function(e){return $(e)&&G(e)>=0},"tabbable",0,Z],59266),e.s(["getNodeAncestors",0,function(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n},"getNodeChildren",0,function e(t,n,r=!0){return t.filter(e=>e.parentId===n).flatMap(n=>[...!r||n.context?.open?[n]:[],...e(t,n.id,r)])}],87612),e.s(["createAttribute",0,el],32652);var es=e.i(17514);let ea=0;e.s(["enqueueFocus",0,function(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:o}=t;function i(){(!o||o())&&e?.focus({preventScroll:n})}if(cancelAnimationFrame(ea),r)return i(),es.NOOP;let l=requestAnimationFrame(i);return ea=l,()=>{ea===l&&(cancelAnimationFrame(l),ea=0)}}],98442);let eu={inert:new WeakMap,"aria-hidden":new WeakMap},ec="data-base-ui-inert",ed={inert:new WeakSet,"aria-hidden":new WeakSet},ef=new WeakMap,ep=0,eg=(e,t)=>t.map(t=>{if(e.contains(t))return t;let r=function e(t){return t?(0,n.isShadowRoot)(t)?t.host:e(t.parentNode):null}(t);return e.contains(r)?r:null}).filter(e=>null!=e),em=e=>{let t=new Set;
1return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},eb=(e,t,r)=>{let o=[],i=e=>{!e||r.has(e)||Array.from(e.children).forEach(e=>{"script"!==(0,n.getNodeName)(e)&&(t.has(e)?i(e):o.push(e))})};return i(e),o};e.s(["markOthers",0,function(e,n={}){let{ariaHidden:r=!1,inert:o=!1,mark:i=!0,markerIgnoreElements:l=[]}=n,s=t(e[0]).body;return function(e,t,n,r,{mark:o=!0,markerIgnoreElements:i=[]}){let l=r?"inert":n?"aria-hidden":null,s=null,a=null,u=eg(t,e),c=new Set(o?eg(t,i):[]),d=o?eb(t,em(u),new Set(u)).filter(e=>!c.has(e)):[],f=[],p=[];if(l){let e=eu[l],n=ed[l];a=n,s=e;let r=eg(t,Array.from(t.querySelectorAll("[aria-live]"))),o=u.concat(r);eb(t,em(o),new Set(o)).forEach(t=>{let r=t.getAttribute(l),o=null!==r&&"false"!==r,i=(e.get(t)||0)+1;e.set(t,i),f.push(t),1===i&&o&&n.add(t),o||t.setAttribute(l,"inert"===l?"":"true")})}return o&&d.forEach(e=>{let t=(ef.get(e)||0)+1;ef.set(e,t),p.push(e),1===t&&e.setAttribute(ec,"")}),ep+=1,()=>{s&&f.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!a?.has(e)&&l&&e.removeAttribute(l),a?.delete(e))}),o&&p.forEach(e=>{let t=(ef.get(e)||0)-1;ef.set(e,t),t||e.removeAttribute(ec)}),(ep-=1)||(eu.inert=new WeakMap,eu["aria-hidden"]=new WeakMap,ed.inert=new WeakSet,ed["aria-hidden"]=new WeakSet,ef=new WeakMap)}}(e,s,r,o,{mark:i,markerIgnoreElements:l})}],40684);var eh=e.i(74080),ev=e.i(60620),ey=e.i(5335),ex=e.i(83799),eE=e.i(76477),eS=e.i(31888),ew=e.i(71403),ek=e.i(69095);let eC={clipPath:"inset(50%)",position:"fixed",top:0,left:0};e.s(["CLICK_TRIGGER_IDENTIFIER",0,"data-base-ui-click-trigger","DISABLED_TRANSITIONS_STYLE",0,{style:{transition:"none"}},"DROPDOWN_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"none"},"PATIENT_CLICK_THRESHOLD",0,500,"POPUP_COLLISION_AVOIDANCE",0,{fallbackAxisSide:"end"},"TYPEAHEAD_RESET_MS",0,500,"ownerVisuallyHidden",0,eC],5066);let eR=r.createContext(null),eT=()=>r.useContext(eR),eO=el("portal"),eI=r.forwardRef(function(e,t){let{render:i,className:l,style:s,children:a,container:d,renderGuards:f,...p}=e,{portalNode:g,portalSubtree:m}=function(e={}){let{ref:t,container:i,componentProps:l=es.EMPTY_OBJECT,elementProps:s}=e,a=(0,ex.useId)(),u=eT(),c=u?.portalNode,[d,f]=r.useState(null),[p,g]=r.useState(null),m=(0,eE.useStableCallback)(e=>{null!==e&&g(e)}),b=r.useRef(null);(0,o.useIsoLayoutEffect)(()=>{if(null===i){b.current&&(b.current=null,g(null),f(null));return}if(null==a)return;let e=(i&&((0,n.isNode)(i)?i:i.current))??c??document.body;if(null==e){b.current&&(b.current=null,g(null),f(null));return}b.current!==e&&(b.current=e,g(null),f(e))},[i,c,a]);let h=(0,ek.useRenderElement)("div",l,{ref:[t,m],props:[{id:a,[eO]:""},s]});return{portalNode:p,portalSubtree:d&&h?eh.createPortal(h,d):null}}({container:d,ref:t,componentProps:e,elementProps:p}),b=r.useRef(null),h=r.useRef(null),v=r.useRef(null),y=r.useRef(null),[x,E]=r.useState(null),S=r.useRef(!1),w=x?.modal,k=x?.open,C="boolean"==typeof f?f:!!x&&!x.modal&&x.open&&!!g;r.useEffect(()=>{if(g&&!w)return(0,ey.mergeCleanups)((0,ev.addEventListener)(g,"focusin",e,!0),(0,ev.addEventListener)(g,"focusout",e,!0));function e(e){g&&e.relatedTarget&&er(e)&&("focusin"===e.type?S.current&&(ei(g),S.current=!1):(eo(g),S.current=!0))}},[g,w]),r.useEffect(()=>{g&&!1===k&&(ei(g),S.current=!1)},[k,g]);let R=r.useMemo(()=>({beforeOutsideRef:b,afterOutsideRef:h,beforeInsideRef:v,afterInsideRef:y,portalNode:g,setFocusManagerState:E}),[g]);return(0,u.jsxs)(r.Fragment,{children:[m,(0,u.jsxs)(eR.Provider,{value:R,children:[C&&g&&(0,u.jsx)(c,{"data-type":"outside",ref:b,onFocus:e=>{if(er(e,g))v.current?.focus();else{let e=et(x?x.domReference:null);e?.focus()}}}),C&&g&&(0,u.jsx)("span",{"aria-owns":g.id,style:eC}),g&&eh.createPortal(a,g),C&&g&&(0,u.jsx)(c,{"data-type":"outside",ref:h,onFocus:e=>{if(er(e,g))y.current?.focus();else{let t=ee(x?x.domReference:null);t?.focus(),x?.closeOnFocusOut&&x?.onOpenChange(!1,(0,eS.createChangeEventDetails)(ew.REASONS.focusOut,e.nativeEvent))}}})]})]})});e.s(["FloatingPortal",0,eI,"usePortalContext",0,eT],37692);var eP=e.i(30628);function eD(){let e=new Map;
1return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}e.s(["createEventEmitter",0,eD],16385);class eA{nodesRef={current:[]};events=eD();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);-1!==t&&this.nodesRef.current.splice(t,1)}}e.s(["FloatingTreeStore",0,eA],5671);let eM=r.createContext(null),eL=r.createContext(null),eN=()=>r.useContext(eM)?.id||null,eF=e=>{let t=r.useContext(eL);return e??t};e.s(["FloatingNode",0,function(e){let{children:t,id:n}=e,o=eN();return(0,u.jsx)(eM.Provider,{value:r.useMemo(()=>({id:n,parentId:o}),[n,o]),children:t})},"FloatingTree",0,function(e){let{children:t,externalTree:n}=e,r=(0,eP.useRefWithInit)(()=>n??new eA).current;return(0,u.jsx)(eL.Provider,{value:r,children:t})},"useFloatingNodeId",0,function(e){let t=(0,ex.useId)(),n=eF(e),r=eN();return(0,o.useIsoLayoutEffect)(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t},"useFloatingParentNodeId",0,eN,"useFloatingTree",0,eF],51665)},19414,e=>{"use strict";e.s(["resolveRef",0,function(e){return null==e?e:"current"in e?e.current:e}])},88306,e=>{"use strict";var t=e.i(71645),n=e.i(29315),r=e.i(60620),o=e.i(5335),i=e.i(26292),l=e.i(231),s=e.i(76477),a=e.i(977),u=e.i(66745),c=e.i(57666),d=e.i(47135),f=e.i(90219),p=e.i(33848),g=e.i(72408),m=e.i(30780),b=e.i(62834),h=e.i(82033),v=e.i(59266),y=e.i(87612),x=e.i(43801),E=e.i(31888),S=e.i(71403),w=e.i(32652),k=e.i(98442),C=e.i(40684),R=e.i(37692),T=e.i(51665),O=e.i(5066),I=e.i(19414),P=e.i(43476);let D=[];function A(){D=D.filter(e=>e.deref()?.isConnected)}function M(){return A(),D[D.length-1]?.deref()}function L(e,t){if(e.hasAttribute("tabindex")&&!e.hasAttribute("data-tabindex")||!t.current.includes("floating")&&!e.getAttribute("role")?.includes("dialog"))return;let n=(0,v.focusable)(e).filter(e=>{let t=e.getAttribute("data-tabindex")||"";return(0,v.isTabbable)(e)||e.hasAttribute("data-tabindex")&&!t.startsWith("-")}),r=e.getAttribute("tabindex");t.current.includes("floating")||0===n.length?"0"!==r&&e.setAttribute("tabindex","0"):("-1"!==r||e.hasAttribute("data-tabindex")&&"-1"!==e.getAttribute("data-tabindex"))&&(e.setAttribute("tabindex","-1"),e.setAttribute("data-tabindex","-1"))}e.s(["FloatingFocusManager",0,function(e){let{context:N,children:F,disabled:j=!1,initialFocus:z=!0,returnFocus:B=!0,restoreFocus:W=!1,modal:_=!0,closeOnFocusOut:V=!0,openInteractionType:H="",nextFocusableElement:U,previousFocusableElement:Y,beforeContentFocusGuardRef:K,externalTree:$,getInsideElements:G}=e,q="rootStore"in N?N.rootStore:N,X=q.useState("open"),J=q.useState("domReferenceElement"),Z=q.useState("floatingElement"),{events:Q,dataRef:ee}=q.context,et=(0,s.useStableCallback)(()=>ee.current.floatingContext?.nodeId),en=(0,b.isTypeableCombobox)(J)&&!1===z,er=t.useRef(["content"]),eo=(0,l.useValueAsRef)(z),ei=(0,l.useValueAsRef)(B),el=(0,l.useValueAsRef)(H),es=(0,T.useFloatingTree)($),ea=(0,R.usePortalContext)(),eu=t.useRef(!1),ec=t.useRef(!1),ed=t.useRef(!1),ef=t.useRef(null),ep=t.useRef(""),eg=t.useRef(""),em=t.useRef(null),eb=t.useRef(null),eh=(0,i.useMergedRefs)(em,K,ea?.beforeInsideRef),ev=(0,i.useMergedRefs)(eb,ea?.afterInsideRef),ey=(0,u.useTimeout)(),ex=(0,u.useTimeout)(),eE=(0,d.useAnimationFrame)(),eS=null!=ea,ew=(0,b.getFloatingFocusElement)(Z),ek=(0,s.use
1StableCallback)((e=ew)=>e?(0,v.tabbable)(e):[]),eC=(0,s.useStableCallback)(()=>G?.().filter(e=>null!=e)??[]);t.useEffect(()=>{if(j||!_)return;let e=(0,f.ownerDocument)(ew);return(0,r.addEventListener)(e,"keydown",function(e){"Tab"===e.key&&(0,m.contains)(ew,(0,m.activeElement)((0,f.ownerDocument)(ew)))&&0===ek().length&&!en&&(0,h.stopEvent)(e)})},[j,ew,_,en,ek]),t.useEffect(()=>{if(j||!X)return;let e=(0,f.ownerDocument)(ew);function t(){ed.current=!1}return(0,o.mergeCleanups)((0,r.addEventListener)(e,"pointerdown",function(e){let t=(0,m.getTarget)(e),n=eC();ed.current=!((0,m.contains)(Z,t)||(0,m.contains)(J,t)||(0,m.contains)(ea?.portalNode,t)||n.some(e=>e===t||(0,m.contains)(e,t))),eg.current=e.pointerType||"keyboard",t?.closest(`[${O.CLICK_TRIGGER_IDENTIFIER}]`)&&(ec.current=!0)},!0),(0,r.addEventListener)(e,"pointerup",t,!0),(0,r.addEventListener)(e,"pointercancel",t,!0),(0,r.addEventListener)(e,"keydown",function(){eg.current="keyboard"},!0))},[j,Z,J,ew,X,ea,eC]),t.useEffect(()=>{if(j||!V)return;let e=(0,f.ownerDocument)(ew);function t(t){let r=t.relatedTarget,o=t.currentTarget,i=(0,m.getTarget)(t);queueMicrotask(()=>{let l=et(),s=q.context.triggerElements,a=eC(),u=r?.hasAttribute((0,w.createAttribute)("focus-guard"))&&[em.current,eb.current,ea?.beforeInsideRef.current,ea?.afterInsideRef.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,(0,I.resolveRef)(Y),(0,I.resolveRef)(U)].includes(r),c=!((0,m.contains)(J,r)||(0,m.contains)(Z,r)||(0,m.contains)(r,Z)||(0,m.contains)(ea?.portalNode,r)||a.some(e=>e===r||(0,m.contains)(e,r))||null!=r&&s.hasElement(r)||s.hasMatchingElement(e=>(0,m.contains)(e,r))||u||es&&((0,y.getNodeChildren)(es.nodesRef.current,l).find(e=>(0,m.contains)(e.context?.elements.floating,r)||(0,m.contains)(e.context?.elements.domReference,r))||(0,y.getNodeAncestors)(es.nodesRef.current,l).find(e=>[e.context?.elements.floating,(0,b.getFloatingFocusElement)(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(o===J&&ew&&L(ew,er),W&&o!==J&&!(0,x.isElementVisible)(i)&&(0,m.activeElement)(e)===e.body){if((0,n.isHTMLElement)(ew)&&(ew.focus(),"popup"===W))return void eE.request(()=>{ew.focus()});let e=ek(),t=ef.current,r=(t&&e.includes(t)?t:null)||e[e.length-1]||ew;(0,n.isHTMLElement)(r)&&r.focus()}if(ee.current.insideReactTree){ee.current.insideReactTree=!1;return}(en||!_)&&r&&c&&!ec.current&&(en||r!==M())&&(eu.current=!0,q.setOpen(!1,(0,E.createChangeEventDetails)(S.REASONS.focusOut,t)))})}let i=(0,n.isHTMLElement)(J)?J:null;if(Z||i)return(0,o.mergeCleanups)(i&&(0,r.addEventListener)(i,"focusout",t),i&&(0,r.addEventListener)(i,"pointerdown",function(){ec.current=!0,ex.start(0,()=>{ec.current=!1})}),Z&&(0,r.addEventListener)(Z,"focusin",function(e){let t=(0,m.getTarget)(e);(0,v.isTabbable)(t)&&(ef.current=t)}),Z&&(0,r.addEventListener)(Z,"focusout",t),Z&&ea&&(0,r.addEventListener)(Z,"focusout",function(){ed.current||(ee.current.insideReactTree=!0,ey.start(0,()=>{ee.current.insideReactTree=!1}))},!0))},[j,J,Z,ew,_,es,ea,q,V,W,ek,en,et,er,ee,ey,ex,eE,U,Y,eC]),t.useEffect(()=>{if(j||!Z||!X)return;let e=Array.from(ea?.portalNode?.querySelectorAll(`[${(0,w.createAttribute)("portal")}]`)||[]),t=es?(0,y.getNodeAncestors)(es.nodesRef.current,et()):[],n=t.find(e=>(0,b.isTypeableCombobox)(e.context?.elements.domReference||null))?.context?.elements.domReference,r=[Z,...e,em.current,eb.current,ea?.beforeOutsideRef.current,ea?.afterOutsideRef.current,...eC(),n,(0,I.resolveRef)(Y),(0,I.resolveRef)(U),en?J:null].filter(e=>null!=e),o=(0,C.markOthers)(r,{ariaHidden:_||en,mark:!1}),i=[Z,...e].filter(e=>null!=e),l=(0,C.markOthers)(i);return()=>{l(),o()}},[X,j,J,Z,_,ea,en,es,et,U,Y,eC]),(0,a.useIsoLayoutEffect)(()=>{if(!X||j||!(0,n.isHTMLElement)(ew))return;let e=(0,f.ownerDocument)(ew),t=(0,m.activeElement)(e);queueMicrotask(()=>{let n,r=eo.current,o="function"==typeof r?r(el.current||""):r;if(void 0===o||!1===o||(0,m.contains)(ew,t))return;let i=null,l=()=>(null==i&&(i=ek(ew)),i[0]||ew);n=(n=!0===o||null===o?l():(0,I.resolveRef)(o))||l();let s=(0,m.contains)(ew,(0,m.activeElement)(e));(0,k.enqueueFocus)(n,{preventScroll:n===ew,shouldFocus(){if(s)return!0;let t=(0,m.activeElement)(e);return!(t!==n&&(0,m.contains)(ew,t))}})})},[j,X,ew,ek,eo,el]),(0,a.useIsoLayoutEffect)(()=>{var e;if(j||!ew)return;let t=(0,f.ownerDocument)(ew);function r(e){var t,n;let r;
1if(e.open||(t=e.nativeEvent,n=eg.current,r=(0,p.ownerWindow)((0,m.getTarget)(t)),ep.current=t instanceof r.KeyboardEvent?"keyboard":t instanceof r.FocusEvent?n||"keyboard":"pointerType"in t?t.pointerType||"keyboard":"touches"in t?"touch":t instanceof r.MouseEvent?n||(0===t.detail?"keyboard":"mouse"):""),e.reason===S.REASONS.triggerHover&&"mouseleave"===e.nativeEvent.type&&(eu.current=!0),e.reason===S.REASONS.outsidePress)if(e.nested)eu.current=!1;else if((0,h.isVirtualClick)(e.nativeEvent)||(0,h.isVirtualPointerEvent)(e.nativeEvent))eu.current=!1;else{let e=!1;(0,f.ownerDocument)(ew).createElement("div").focus({get preventScroll(){return e=!0,!1}}),e?eu.current=!1:eu.current=!0}}return e=(0,m.activeElement)(t),A(),e&&"body"!==(0,n.getNodeName)(e)&&(D.push(new WeakRef(e)),D.length>20&&(D=D.slice(-20))),Q.on("openchange",r),()=>{Q.off("openchange",r);let e=(0,m.activeElement)(t),o=eC(),i=(0,m.contains)(Z,e)||o.some(t=>t===e||(0,m.contains)(t,e))||es&&(0,y.getNodeChildren)(es.nodesRef.current,et(),!1).some(t=>(0,m.contains)(t.context?.elements.floating,e)),l=ei.current,s=function(){let e=ei.current,t="function"==typeof e?e(ep.current):e;if(void 0===t||!1===t)return null;if(null===t&&(t=!0),"boolean"==typeof t)return J?.isConnected?J:M()||null;let n=J?.isConnected?J:M();return(0,I.resolveRef)(t)||n||null}();queueMicrotask(()=>{let r=s?(0,v.isTabbable)(s)?s:(0,v.tabbable)(s)[0]||s:null;l&&!eu.current&&(0,n.isHTMLElement)(r)&&("boolean"!=typeof l||r===e||e===t.body||i)&&r.focus({preventScroll:!0}),eu.current=!1})}},[j,Z,ew,ei,Q,es,J,et,eC]),(0,a.useIsoLayoutEffect)(()=>{if(!c.isWebKit||X||!Z)return;let e=(0,m.activeElement)((0,f.ownerDocument)(Z));(0,n.isHTMLElement)(e)&&(0,b.isTypeableElement)(e)&&(0,m.contains)(Z,e)&&e.blur()},[X,Z]),(0,a.useIsoLayoutEffect)(()=>{if(!j&&ea)return ea.setFocusManagerState({modal:_,closeOnFocusOut:V,open:X,onOpenChange:q.setOpen,domReference:J}),()=>{ea.setFocusManagerState(null)}},[j,ea,_,X,q,V,J]),(0,a.useIsoLayoutEffect)(()=>{if(!j&&ew)return L(ew,er),()=>{queueMicrotask(A)}},[j,ew,er]);let eR=!j&&(!_||!en)&&(eS||_);return(0,P.jsxs)(t.Fragment,{children:[eR&&(0,P.jsx)(g.FocusGuard,{"data-type":"inside",ref:eh,onFocus:e=>{if(_){let e=ek();(0,k.enqueueFocus)(e[e.length-1])}else if(ea?.portalNode)if(eu.current=!1,(0,v.isOutsideEvent)(e,ea.portalNode)){let e=(0,v.getNextTabbable)(J);e?.focus()}else(0,I.resolveRef)(Y??ea.beforeOutsideRef)?.focus()}}),F,eR&&(0,P.jsx)(g.FocusGuard,{"data-type":"inside",ref:ev,onFocus:e=>{if(_)(0,k.enqueueFocus)(ek()[0]);else if(ea?.portalNode)if(V&&(eu.current=!0),(0,v.isOutsideEvent)(e,ea.portalNode)){let e=(0,v.getPreviousTabbable)(J);e?.focus()}else(0,I.resolveRef)(U??ea.afterOutsideRef)?.focus()}})]})}])},7,82664,77681,e=>{"use strict";let t=((n={}).nestedDialogs="--nested-dialogs",n);e.s(["DialogPopupCssVars",0,t],7);var n,r,o=e.i(83590);let i=((r={})[r.open=o.CommonPopupDataAttributes.open]="open",r[r.closed=o.CommonPopupDataAttributes.closed]="closed",r[r.startingStyle=o.CommonPopupDataAttributes.startingStyle]="startingStyle",r[r.endingStyle=o.CommonPopupDataAttributes.endingStyle]="endingStyle",r.nested="data-nested",r.nestedDialogOpen="data-nested-dialog-open",r);e.s(["DialogPopupDataAttributes",0,i],82664),e.i(47167);var l=e.i(67805),s=e.i(71645);let a=s.createContext(void 0);e.s(["DialogPortalContext",0,a,"useDialogPortalContext",0,function(){let e=s.useContext(a);if(void 0===e)throw Error((0,l.default)(26));return e}],77681)},23715,54584,e=>{"use strict";var t=e.i(71645),n=e.i(76477),r=e.i(74080),o=e.i(47135),i=e.i(19414),l=e.i(14060);function s(e,t=!1,a=!0){let u=(0,o.useAnimationFrame)();return(0,n.useStableCallback)((n,o=null)=>{u.cancel();let s=(0,i.resolveRef)(e);if(null==s)return;let c=()=>{r.flushSync(n)};if("function"!=typeof s.getAnimations||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void n();function d(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{o?.aborted||c()}).catch(()=>{if(a){o?.aborted||c();return}let e=s.getAnimations();!o?.aborted&&e.length>0&&e.some(e=>e.pending||"finished"!==e.playState)&&d()})}if(t){let e=l.TransitionStatusDataAttributes.startingStyle;if(!s.hasAttribute(e))return void u.request(d);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),d())});return t.observe(s,{attributes:!0,attributeFilter:[e]}),void o?.addEventListener("abort",()=>t.disconnect(),{once:!0})}u.request(d)})}e.s(["useAnimationsFinished",0,s],54584),e.s(["useOpenChangeComplete",0,function(e){let{enabled:r=!0,open:o,ref:i,onComplete:l}
1=e,a=(0,n.useStableCallback)(l),u=s(i,o,!1);t.useEffect(()=>{if(!r)return;let e=new AbortController;return u(a,e.signal),()=>{e.abort()}},[r,o,a,u])}],23715)},96374,e=>{"use strict";var t=e.i(29315);let n="ArrowUp",r="ArrowDown",o="ArrowLeft",i="ArrowRight",l="Home",s=new Set([o,i]),a=new Set([o,i,l,"End"]),u=new Set([n,r]),c=new Set([n,r,l,"End"]),d=new Set([...s,...u]),f=new Set([...d,l,"End"]),p=new Set(["Shift","Control","Alt","Meta"]);function g(e,t,n){let r="left"===n?"offsetLeft":"offsetTop",o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);)t=t.offsetParent;return o}function m(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}e.s(["ARROW_DOWN",0,r,"ARROW_KEYS",0,d,"ARROW_LEFT",0,o,"ARROW_RIGHT",0,i,"ARROW_UP",0,n,"COMPOSITE_KEYS",0,f,"END",0,"End","HOME",0,l,"HORIZONTAL_KEYS",0,s,"HORIZONTAL_KEYS_WITH_EXTRA_KEYS",0,a,"MODIFIER_KEYS",0,p,"VERTICAL_KEYS",0,u,"VERTICAL_KEYS_WITH_EXTRA_KEYS",0,c,"isNativeInput",0,function(e){return!!((0,t.isHTMLElement)(e)&&"INPUT"===e.tagName&&null!=e.selectionStart||(0,t.isHTMLElement)(e)&&"TEXTAREA"===e.tagName)},"scrollIntoViewIfNeeded",0,function(e,t,n,r){if(!e||!t||!t.scrollTo)return;let o=e.scrollLeft,i=e.scrollTop,l=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(l&&"vertical"!==r){let r=g(e,t,"left"),i=m(e),l=m(t);"ltr"===n&&(r+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight?o=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+i.scrollPaddingRight:r-l.scrollMarginLeft<e.scrollLeft+i.scrollPaddingLeft&&(o=r-l.scrollMarginLeft-i.scrollPaddingLeft)),"rtl"===n&&(r-l.scrollMarginRight<e.scrollLeft+i.scrollPaddingLeft?o=r-l.scrollMarginLeft-i.scrollPaddingLeft:r+t.offsetWidth+l.scrollMarginRight>e.scrollLeft+e.clientWidth-i.scrollPaddingRight&&(o=r+t.offsetWidth+l.scrollMarginRight-e.clientWidth+i.scrollPaddingRight))}if(s&&"horizontal"!==r){let n=g(e,t,"top"),r=m(e),o=m(t);n-o.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?i=n-o.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+o.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(i=n+t.offsetHeight+o.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:o,top:i,behavior:"auto"})}])},55838,(e,t,n)=>{"use strict";var r=e.r(71645),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,l=r.useEffect,s=r.useLayoutEffect,a=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="u"<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,c=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),l(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),a(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},2239,(e,t,n)=>{"use strict";t.exports=e.r(55838)},52822,(e,t,n)=>{"use strict";var r=e.r(71645),o=e.r(2239),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=o.useSyncExternalStore,s=r.useRef,a=r.useEffect,u=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=l(e,(d=u(function(){function e(e){if(!a){if(a=!0,l=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(l,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(l=e,t):(l=e,s=n)}var l,s,a=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}
1,[t,n,r,o]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},30224,(e,t,n)=>{"use strict";t.exports=e.r(52822)},24019,83921,3851,39663,13834,98263,e=>{"use strict";let t;e.i(47167);var n=e.i(67805);let r=(e,t,r,o,i,l,...s)=>{let a;if(s.length>0)throw Error((0,n.default)(1));if(e&&t&&r&&o&&i&&l)a=(n,s,a,u)=>l(e(n,s,a,u),t(n,s,a,u),r(n,s,a,u),o(n,s,a,u),i(n,s,a,u),s,a,u);else if(e&&t&&r&&o&&i)a=(n,l,s,a)=>i(e(n,l,s,a),t(n,l,s,a),r(n,l,s,a),o(n,l,s,a),l,s,a);else if(e&&t&&r&&o)a=(n,i,l,s)=>o(e(n,i,l,s),t(n,i,l,s),r(n,i,l,s),i,l,s);else if(e&&t&&r)a=(n,o,i,l)=>r(e(n,o,i,l),t(n,o,i,l),o,i,l);else if(e&&t)a=(n,r,o,i)=>t(e(n,r,o,i),r,o,i);else if(e)a=e;else throw Error("Missing arguments");return a};e.s(["createSelector",0,r],83921);var o=e.i(71645),i=e.i(2239),l=e.i(30224),s=e.i(35423),a=e.i(30628);let u=[];function c(){return t}function d(e){u.push(e)}function f(e){let n=(n,r)=>{let o,i=(0,a.useRefWithInit)(p).current;try{for(let e of(t=i,u))e.before(i);for(let t of(o=e(n,r),u))t.after(i);i.didInitialize=!0}finally{t=void 0}return o};return n.displayName=e.displayName||e.name,n}function p(){return{didInitialize:!1}}e.s(["fastComponent",0,f,"fastComponentRef",0,function(e){return o.forwardRef(f(e))},"getInstance",0,c,"register",0,d],3851);let g=(0,s.isReactVersionAtLeast)(19)?function(e,t,n,r,l){let s,a=c();if(!a){let s;return s=o.useCallback(()=>t(e.getSnapshot(),n,r,l),[e,t,n,r,l]),(0,i.useSyncExternalStore)(e.subscribe,s,s)}let u=a.syncIndex;return a.syncIndex+=1,a.didInitialize?(s=a.syncHooks[u]).store===e&&s.selector===t&&Object.is(s.a1,n)&&Object.is(s.a2,r)&&Object.is(s.a3,l)||(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=l,s.didChange=!0):(s={store:e,selector:t,a1:n,a2:r,a3:l,value:t(e.getSnapshot(),n,r,l),didChange:!1},a.syncHooks.push(s)),s.value}:function(e,t,n,r,o){return(0,l.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,o))};function m(e,t,n,r,o){return g(e,t,n,r,o)}d({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],o=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,o))&&(t=!0,r.value=o,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,i.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}}),e.s(["useStore",0,m],39663);class b{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return m(this,e,t,n,r)}}e.s(["Store",0,b],13834);var h=e.i(76477),v=e.i(977),y=e.i(17514);class x extends b{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){o.useDebugValue(e);let n=this;(0,v.useIsoLayoutEffect)(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;(0,v.useIsoLayoutEffect)(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this,n=Object.values(e);(0,v.useIsoLayoutEffect)(()=>{t.update(e)},[t,...n])}useControlledProp(e,t){o.useDebugValue(e);let n=this,r=void 0!==t;(0,v.useIsoLayoutEffect)(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){return(0,this.selectors[e])(this.state,t,n,r)}useState(e,t,n,r){return o.useDebugValue(e),m(this,this.selectors[e],t,n,r)}useContextCallback(e,t){o.useDebugValue(e);let n=(0,h.useStableCallback)(t??y.NOOP);this.context[e]=n}useStateSetter(e){let t=o.useRef(void 0);return void 0===t.current&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n,r=(n="function"==typeof e?e:this.selectors[e])(this.state);return t(r,r,this),this.subscribe(e=>{let o=n(e);if(!Object.is(r,o)){let e=r;r=o,t(o,e,this)}})}}e.s(["ReactStore",0,x],98263);var E=e.i(16385),S=e.i(82033);let w={open:r(e=>e.open),transitionStatus:r(e=>e.transitionStatus),domReferenceElement:r(e=>e.domReferenceElement),referenceElement:r(e=>e.positionReference??e.referenceElement),floatingElement:r(e=>e.floatingElement),floatingId:r(e=>e.floatingId)};e.s(["FloatingRootStore",0,class extends x{constructor(e){const{syncOnly:t,nested:n,onOpenChange:r,triggerElements:o,...i}=e;super({...i,positionReference:i.referenceElement,domReferenceElement:i.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:(0,E.createEventEmitter)(),nested:n,triggerElements:o},w),this.syncOnly=t}syncOpenEvent=(e,t)=>
1{(!e||!this.state.open||null!=t&&(0,S.isClickLikeEvent)(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit("openchange",n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}}],24019)},6157,e=>{"use strict";var t=e.i(71645),n=e.i(977),r=e.i(29315),o=e.i(24019);e.s(["useSyncedFloatingRootContext",0,function(e){let{popupStore:i,treatPopupAsFloatingElement:l=!1,floatingRootContext:s,floatingId:a,nested:u,onOpenChange:c}=e,d=i.useState("open"),f=i.useState("activeTriggerElement"),p=i.useState(l?"popupElement":"positionerElement"),g=i.context.triggerElements,m=t.useRef(null);void 0===s&&null===m.current&&(m.current=new o.FloatingRootStore({open:d,transitionStatus:void 0,referenceElement:f,floatingElement:p,triggerElements:g,onOpenChange:c,floatingId:a,syncOnly:!0,nested:u}));let b=s??m.current;return i.useSyncedValue("floatingId",a),(0,n.useIsoLayoutEffect)(()=>{let e={open:d,floatingId:a,referenceElement:f,floatingElement:p};(0,r.isElement)(f)&&(e.domReferenceElement=f),b.state.positionReference===b.state.referenceElement&&(e.positionReference=f),b.update(e)},[d,a,f,p,b]),b.context.onOpenChange=c,b.context.nested=u,b}])},61463,e=>{"use strict";var t=e.i(71645),n=e.i(977),r=e.i(47135);e.s(["useTransitionStatus",0,function(e,o=!1,i=!1){let[l,s]=t.useState(e&&o?"idle":void 0),[a,u]=t.useState(e);return e&&!a&&(u(!0),s("starting")),e||!a||"ending"===l||i||s("ending"),e||a||"ending"!==l||s(void 0),(0,n.useIsoLayoutEffect)(()=>{if(!e&&a&&"ending"!==l&&i){let e=r.AnimationFrame.request(()=>{s("ending")});return()=>{r.AnimationFrame.cancel(e)}}},[e,a,l,i]),(0,n.useIsoLayoutEffect)(()=>{if(!e||o)return;let t=r.AnimationFrame.request(()=>{s(void 0)});return()=>{r.AnimationFrame.cancel(t)}},[o,e]),(0,n.useIsoLayoutEffect)(()=>{if(!e||!o)return;e&&a&&"idle"!==l&&s("starting");let t=r.AnimationFrame.request(()=>{s("idle")});return()=>{r.AnimationFrame.cancel(t)}},[o,e,a,l]),{mounted:a,setMounted:u,transitionStatus:l}}])},58642,e=>{"use strict";var t=e.i(71645),n=e.i(17514),r=e.i(83799),o=e.i(76477),i=e.i(977),l=e.i(494),s=e.i(51665),a=e.i(6157),u=e.i(61463),c=e.i(23715);let d={tabIndex:-1,[l.FOCUSABLE_ATTRIBUTE]:""};function f(e,n){let r=t.useRef(null),o=t.useRef(null);return t.useCallback(t=>{if(void 0===e)return;let i=!1;if(null!==r.current){let e=r.current,t=o.current,l=n.context.triggerElements.getById(e);t&&l===t&&(n.context.triggerElements.delete(e),i=!0),r.current=null,o.current=null}if(null!==t&&(r.current=e,o.current=t,n.context.triggerElements.add(e,t),i=!0),i){let e=n.context.triggerElements.size;n.select("open")&&n.state.triggerCount!==e&&n.set("triggerCount",e)}},[n,e])}e.s(["FOCUSABLE_POPUP_PROPS",0,d,"setOpenTriggerState",0,function(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)},"useImplicitActiveTrigger",0,function(e){let t=e.useState("open"),n=e.useState("triggerCount");(0,i.useIsoLayoutEffect)(()=>{if(!t){0!==e.state.triggerCount&&e.set("triggerCount",0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select("activeTriggerId")&&1===n){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(void 0!==r.triggerCount||void 0!==r.activeTriggerId)&&e.update(r)},[t,e,n])},"useOpenStateTransitions",0,function(e,t,n){let{mounted:r,setMounted:i,transitionStatus:l}=(0,u.useTransitionStatus)(e);t.useSyncedValues({mounted:r,transitionStatus:l});let s=(0,o.useStableCallback)(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),a=t.useState("preventUnmountingOnClose");return(0,c.useOpenChangeComplete)({enabled:r&&!e&&!a,open:e,ref:t.context.popupRef,onComplete(){e||s()}}),{forceUnmount:s,transitionStatus:l}},"usePopupInteractionProps",0,function(e,t){e.useSyncedValues(t),(0,i.useIsoLayoutEffect)(()=>()=>{e.update({activeTriggerProps:n.EMPTY_OBJECT,inactiveTriggerProps:n.EMPTY_OBJECT,popupProps:n.EMPTY_OBJECT})},[e])},"usePopupRootSync",0,function(e,t){(0,i.useIsoLayoutEffect)(()=>{t||null===e.state.openMethod||e.set("openMethod",null)},[t,e]),(0,i.useIsoLayoutEffect)(()=>()=>{null!==e.state.openMethod&&e.set("openMethod",null)},[e])},"usePopupStore",0,function(e,n,o=!1){let i=(0,r.useId)(),l=null!=(0,s.useFloatingParentNodeId)(),u=t.useRef(null);void 0===e&&null===u.current&&(u.current=n(i,l));let c=e??u.current;return(0,a.useSyncedFloatingRootContext)({popupStore:c,treatPopupAsFloatingElement:o,floatingRootContext:c.state.floatingRootContext,floatingId:i,nested:l,onOpenChange:c.setOpen}),{store:c,internalStore:u.current}},"useTriggerDataForwarding",0,function(e,t,n,r){let l=n.useState("isMountedByTrigger",e),s=f(e,n),a=(0,o.useStableCallback)(t=>{if(s(t),!t)return;let o=n.select("open"),i=n.select("activeTriggerId");i===e?n.update({activeTriggerElement:t,...o?r:null}):null==i&&o&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return(0,i.useIsoLayoutEffect)(()=>{l&&n.update({activeTriggerElement:t.current,...r})},[l,n,t,...Object.values(r)]),{registerTrigger:a,isMountedByThisTrigger:l}},"useTriggerRegistration",0,f])},96918,e=>{"use strict";var t=e.i(71645),n=e.i(88306),r=e.i(13104),o=e.i(69095),i=e.i(83590),l=e.i(14060),s=e.i(7),a=e.i(82664),u=e.i(77681),c=e.i(23715),d=e.i(96374),f=e.i(58642),p=e.i(43476);let g={...i.popupStateMapping,...l.transitionStatusMapping,nestedDialogOpen:e=>e?{[a.DialogPopupDataAttributes.nestedDialogOpen]:""}:null},m=t.forwardRef(function(e,t){let{render:i,className:l,style:a,finalFocus:m,initialFocus:b,...h}=e,{store:v}=(0,r.useDialogRootContext)(),y=v.useState("descriptionElementId"),x=v.useState("disablePointerDismissal"),E=v.useState("floatingRootContext"),S=v.useState("popupProps"),w=v.useState("modal"),k=v.useState("mounted"),C=v.useState("nested"),R=v.useState("nestedOpenDialogCount"),T=v.useState("open"),O=v.useState("openMethod"),I=v.useState("titleElementId"),P=v.useState("transitionStatus"),D=v.useState("role"),A=E.useState("floatingId"),M=h.id??A;(0,u.useDialogPortalContext)(),(0,c.useOpenChangeComplete)({open:T,ref:v.context.popupRef,onComplete(){T&&v.context.onOpenChangeComplete?.(!0)}});let L=void 0===b?function(e){return"touch"!==e||v.context.popupRef.current}:b,N=v.useStateSetter("popupElement"),F=(0,o.useRenderElement)("div",e,{state:{open:T,nested:C,transitionStatus:P,nestedDialogOpen:R>0},props:[S,{id:M,"aria-labelledby":I??void 0,"aria-describedby":y??void 0,role:D,...f.FOCUSABLE_POPUP_PROPS,hidden:!k,onKeyDown(e){d.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},style:{[s.DialogPopupCssVars.nestedDialogs]:R}},h],ref:[t,v.context.popupRef,N],stateAttributesMapping:g});return(0,p.jsx)(n.FloatingFocusManager,{context:E,openInteractionType:O,disabled:!k,closeOnFocusOut:!x,initialFocus:L,returnFocus:m,modal:!1!==w,restoreFocus:"popup",children:F})});e.s(["DialogPopup",0,m])},58130,e=>{"use strict";var t=e.i(35423);e.s(["inertValue",0,function(e){return(0,t.isReactVersionAtLeast)(19)?e:e?"true":void 0}])},36893,e=>{"use strict";var t=e.i(71645),n=e.i(43476);let r=t.forwardRef(function(e,t){let r,{cutout:o,...i}=e;if(o){let e=o.getBoundingClientRect();r=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,n.jsx)("div",{ref:t,role:"presentation","data-base-ui-inert":"",...i,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:r}})});e.s(["InternalBackdrop",0,r])},38449,e=>{"use strict";var t=e.i(71645),n=e.i(58130),r=e.i(37692),o=e.i(13104),i=e.i(77681),l=e.i(36893),s=e.i(43476);let a=t.forwardRef(function(e,t){let{keepMounted:a=!1,...u}=e,{store:c}=(0,o.useDialogRootContext)(),d=c.useState("mounted"),f=c.useState("modal"),p=c.useState("open");return d||a?(0,s.jsx)(i.DialogPortalContext.Provider,{value:a,children:(0,s.jsxs)(r.FloatingPortal,{ref:t,...u,children:[d&&!0===f&&(0,s.jsx)(l.InternalBackdrop,{ref:c.context.
1internalBackdropRef,inert:(0,n.inertValue)(!p)}),e.children]})}):null});e.s(["DialogPortal",0,a])},58509,e=>{"use strict";var t=e.i(71645);e.s(["useOnFirstRender",0,function(e){let n=t.useRef(!0);n.current&&(n.current=!1,e())}])},66196,e=>{"use strict";var t=e.i(29315),n=e.i(60620),r=e.i(57666),o=e.i(90219),i=e.i(33848),l=e.i(977),s=e.i(66745),a=e.i(47135),u=e.i(17514);let c={},d={},f="";class p{lockCount=0;restore=null;timeoutLock=s.Timeout.create();timeoutUnlock=s.Timeout.create();acquire(e){return this.lockCount+=1,1===this.lockCount&&null===this.restore&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{this.lockCount-=1,0===this.lockCount&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{0===this.lockCount&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){let l,s,p,g,m;if(0===this.lockCount||null!==this.restore)return;let b=(0,o.ownerDocument)(e).documentElement,h=(0,i.ownerWindow)(b).getComputedStyle(b).overflowY;if("hidden"===h||"clip"===h){this.restore=u.NOOP;return}let v=r.isIOS||!function(e){if("u"<typeof document)return!1;let t=(0,o.ownerDocument)(e);return(0,i.ownerWindow)(t).innerWidth-t.documentElement.clientWidth>0}(e);this.restore=v?(s=(l=(0,o.ownerDocument)(e)).documentElement,p=l.body,m={overflowY:(g=(0,t.isOverflowElement)(s)?s:p).style.overflowY,overflowX:g.style.overflowX},Object.assign(g.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(g.style,m)}):function(e){let l=(0,o.ownerDocument)(e),s=l.documentElement,u=l.body,p=(0,i.ownerWindow)(s),g=0,m=0,b=!1,h=a.AnimationFrame.create();if(r.isWebKit&&(p.visualViewport?.scale??1)!==1)return()=>{};function v(){let n=p.getComputedStyle(s),r=p.getComputedStyle(u),i=(n.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";g=s.scrollTop,m=s.scrollLeft,c={scrollbarGutter:s.style.scrollbarGutter,overflowY:s.style.overflowY,overflowX:s.style.overflowX},f=s.style.scrollBehavior,d={position:u.style.position,height:u.style.height,width:u.style.width,boxSizing:u.style.boxSizing,overflowY:u.style.overflowY,overflowX:u.style.overflowX,scrollBehavior:u.style.scrollBehavior};let l=s.scrollHeight>s.clientHeight,a=s.scrollWidth>s.clientWidth,h="scroll"===n.overflowY||"scroll"===r.overflowY,v="scroll"===n.overflowX||"scroll"===r.overflowX,y=Math.max(0,p.innerWidth-u.clientWidth),x=Math.max(0,p.innerHeight-u.clientHeight),E=parseFloat(r.marginTop)+parseFloat(r.marginBottom),S=parseFloat(r.marginLeft)+parseFloat(r.marginRight),w=(0,t.isOverflowElement)(s)?s:u;if(b=function(e){if(!("u">typeof CSS&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||"u"<typeof document)return!1;let n=(0,o.ownerDocument)(e),r=n.documentElement,i=n.body,l=(0,t.isOverflowElement)(r)?r:i,s=l.style.overflowY,a=r.style.scrollbarGutter;r.style.scrollbarGutter="stable",l.style.overflowY="scroll";let u=l.offsetWidth;l.style.overflowY="hidden";let c=l.offsetWidth;return l.style.overflowY=s,r.style.scrollbarGutter=a,u===c}(e)){s.style.scrollbarGutter=i,w.style.overflowY="hidden",w.style.overflowX="hidden";return}Object.assign(s.style,{scrollbarGutter:i,overflowY:"hidden",overflowX:"hidden"}),(l||h)&&(s.style.overflowY="scroll"),(a||v)&&(s.style.overflowX="scroll"),Object.assign(u.style,{position:"relative",height:E||x?`calc(100dvh - ${E+x}px)`:"100dvh",width:S||y?`calc(100vw - ${S+y}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),u.scrollTop=g,u.scrollLeft=m,s.setAttribute("data-base-ui-scroll-locked",""),s.style.scrollBehavior="unset"}function y(){Object.assign(s.style,c),Object.assign(u.style,d),b||(s.scrollTop=g,s.scrollLeft=m,s.removeAttribute("data-base-ui-scroll-locked"),s.style.scrollBehavior=f)}v();let x=(0,n.addEventListener)(p,"resize",function(){y(),h.request(v)});return()=>{h.cancel(),y(),"function"==typeof p.removeEventListener&&x()}}(e)}}let g=new p;e.s(["useScrollLock",0,function(e=!0,t=null){(0,l.useIsoLayoutEffect)(()=>{if(e)return g.acquire(t)},[e,t])}])},33605,e=>{"use strict";var t=e.i(71645),n=e.i(60620),r=e.i(5335),o=e.i(90219),i=e.i(76477),l=e.i(66745),s=e.i(29315),a=e.i(51665),u=e.i(31888),c=e.i(71403),d=e.i(32652),f=e.i(30780),p=e.i(62834),g=e.i(82033),m=e.i(87612);let b={intentional:"onClick",sloppy:"onPointerDown"};function h(){return!1}e.s(["useDismiss",0,function(e,v={}){let{enabled:y=!0,escapeKey:x=!0,outsidePress:E=!0,outsidePressEvent:S="sloppy",referencePress:w=h,referencePressEvent:k="sloppy",bubbles:C,externalTree:R}=v,T="rootStore"in e?e.rootStore:e,O=T.useState("open"),I=T.useState("floatingElement"),{dataRef:P}=T.context,D=(0,a.useFloatingTree)(R),A=(0,i.useStableCallback)("function"==typeof E?E:()=>!1),M="function"==typeof E?A:E,L=!1!==M,N=(0,i.useStableCallback)(()=>S),{escapeKey:F,outsidePress:j}={escapeKey:"boolean"==typeof C?C:C?.escapeKey??!1,outsidePress:"boolean"==typeof C?C:C?.outsidePress??!0},z=t.useRef(!1),B=t.useRef(!1),W=t.useRef(!1),_=t.useRef(!1),V=t.useRef(""),H=t.useRef(null),U=(0,l.useTimeout)(),Y=(0,l.useTimeout)(),K=(0,i.useStableCallback)(()=>{Y.clear(),P.current.insideReactTree=!1}),$=(0,i.useStableCallback)(e=>{let t=P.current.floatingContext?.nodeId;return(D?(0,m.getNodeChildren)(D.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),G=(0,i.useStableCallback)(e=>(0,p.isEventTargetWithin)(e,T.select("floatingElement"))||(0,p.isEventTargetWithin)(e,T.select("domReferenceElement"))),q=(0,i.useStableCallback)(e=>{w()&&T.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.triggerPress,e.nativeEvent))}),X=(0,i.useStableCallback)(e=>{if(!O||!y||!x||"Escape"!==e.key||_.current||!F&&$("__escapeKeyBubbles"))return;let t=(0,g.isReactEvent)(e)?e.nativeEvent:e,n=(0,u.createChangeEventDetails)(c.REASONS.escapeKey,t);T.setOpen(!1,n),n.isCanceled||e.preventDefault(),F||n.isPropagationAllowed||e.stopPropagation()}),J=(0,i.useStableCallback)(()=>{P.current.insideReactTree=!0,Y.start(0,K)}),Z=(0,i.useStableCallback)(e=>{if(!O||!y||0!==e.button)return;let t=(0,f.getTarget)(e.nativeEvent);(0,f.contains)(T.select("floatingElement"),t)&&(z.current||(z.current=!0,B.current=!1))}),Q=(0,i.useStableCallback)(e=>{!O||!y||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&z.current&&(B.current=!0)});t.useEffect(()=>{if(!O||!y)return;P.current.__escapeKeyBubbles=F,P.current.__outsidePressBubbles=j;let e=new l.Timeout,t=new l.Timeout;function i(){W.current=!0,t.start(0,()=>{W.current=!1})}function a(){z.current=!1,B.current=!1}function g(){let e=V.current,t=N(),n="function"==typeof t?t():t;return"string"==typeof n?n:n["pen"!==e&&e?e:"mouse"]}
1function b(e){let t=P.current.floatingContext?.nodeId,n=D&&(0,m.getNodeChildren)(D.nodesRef.current,t).some(t=>(0,p.isEventTargetWithin)(e,t.context?.elements.floating));return G(e)||n}function h(e){let n;if("intentional"===(n=g())&&"click"!==e.type||"sloppy"===n&&"click"===e.type){"click"===e.type||G(e)||(t.clear(),W.current=!1),K();return}if(P.current.insideReactTree)return void K();let r=(0,f.getTarget)(e),i=`[${(0,d.createAttribute)("inert")}]`,l=(0,s.isElement)(r)?r.getRootNode():null,a=Array.from(((0,s.isShadowRoot)(l)?l:(0,o.ownerDocument)(T.select("floatingElement"))).querySelectorAll(i)),m=T.context.triggerElements;if(r&&(m.hasElement(r)||m.hasMatchingElement(e=>(0,f.contains)(e,r))))return;let h=(0,s.isElement)(r)?r:null;for(;h&&!(0,s.isLastTraversableNode)(h);){let e=(0,s.getParentNode)(h);if((0,s.isLastTraversableNode)(e)||!(0,s.isElement)(e))break;h=e}if(!(a.length&&(0,s.isElement)(r)&&!(0,p.isRootElement)(r)&&!(0,f.contains)(r,T.select("floatingElement"))&&a.every(e=>!(0,f.contains)(h,e)))){if((0,s.isHTMLElement)(r)&&!("touches"in e)){let t=(0,s.isLastTraversableNode)(r),n=(0,s.getComputedStyle)(r),o=/auto|scroll/,i=t||o.test(n.overflowX),l=t||o.test(n.overflowY),a=i&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,u=l&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,c="rtl"===n.direction,d=u&&(c?e.offsetX<=r.offsetWidth-r.clientWidth:e.offsetX>r.clientWidth),f=a&&e.offsetY>r.clientHeight;if(d||f)return}if(!b(e)){if("intentional"===g()&&W.current){t.clear(),W.current=!1;return}"function"==typeof M&&!M(e)||$("__outsidePressBubbles")||(T.setOpen(!1,(0,u.createChangeEventDetails)(c.REASONS.outsidePress,e)),K())}}}function v(e){if("sloppy"!==g()||!T.select("open")||!y||G(e))return;let t=e.touches[0];t&&(H.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},U.start(1e3,()=>{H.current&&(H.current.dismissOnTouchEnd=!1,H.current.dismissOnMouseDown=!1)}))}function E(e,t){let r=(0,f.getTarget)(e);if(!r)return;let o=(0,n.addEventListener)(r,e.type,()=>{t(e),o()})}function S(e){U.clear(),"pointerdown"===e.type&&(V.current=e.pointerType),("mousedown"!==e.type||!H.current||H.current.dismissOnMouseDown)&&E(e,e=>{if("pointerdown"===e.type)"sloppy"!==g()||"touch"===e.pointerType||!T.select("open")||!y||G(e)||h(e);else h(e)})}function w(e){if(!z.current)return;let n=B.current;if(a(),"intentional"===g()){if("pointercancel"===e.type){n&&i();return}b(e)||(n?i():("function"!=typeof M||M(e))&&(t.clear(),W.current=!0,K()))}}function k(e){if("sloppy"!==g()||!H.current||G(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-H.current.startX),r=Math.abs(t.clientY-H.current.startY),o=Math.sqrt(n*n+r*r);o>5&&(H.current.dismissOnTouchEnd=!0),o>10&&(h(e),U.clear(),H.current=null)}function C(e){"sloppy"!==g()||!H.current||G(e)||(H.current.dismissOnTouchEnd&&h(e),U.clear(),H.current=null)}let R=(0,o.ownerDocument)(I),A=(0,r.mergeCleanups)(x&&(0,r.mergeCleanups)((0,n.addEventListener)(R,"keydown",X),(0,n.addEventListener)(R,"compositionstart",function(){e.clear(),_.current=!0}),(0,n.addEventListener)(R,"compositionend",function(){e.start(5*!!(0,s.isWebKit)(),()=>{_.current=!1})})),L&&(0,r.mergeCleanups)((0,n.addEventListener)(R,"click",S,!0),(0,n.addEventListener)(R,"pointerdown",S,!0),(0,n.addEventListener)(R,"pointerup",w,!0),(0,n.addEventListener)(R,"pointercancel",w,!0),(0,n.addEventListener)(R,"mousedown",S,!0),(0,n.addEventListener)(R,"mouseup",w,!0),(0,n.addEventListener)(R,"touchstart",function(e){V.current="touch",E(e,v)},!0),(0,n.addEventListener)(R,"touchmove",function(e){E(e,k)},!0),(0,n.addEventListener)(R,"touchend",function(e){E(e,C)},!0)));return()=>{A(),e.clear(),t.clear(),a(),W.current=!1}},[P,I,x,L,M,O,y,F,j,X,K,N,$,G,D,T,U]),t.useEffect(K,[M,K]);let ee=t.useMemo(()=>({onKeyDown:X,[b[k]]:q,..."intentional"!==k&&{onClick:q}}),[X,q,k]),et=t.useMemo(()=>({onKeyDown:X,onPointerDown:Q,onMouseDown:Q,onClickCapture:J,onMouseDownCapture(e){J(),Z(e)},onPointerDownCapture(e){J(),Z(e)},onMouseUpCapture:J,onTouchEndCapture:J,onTouchMoveCapture:J}),[X,J,Z,Q]);return t.useMemo(()=>y?{reference:ee,floating:et,trigger:ee}:{},[y,ee,et])}])},32156,e=>{"use strict";var t=e.i(71645),n=e.i(66196),r=e.i(17514),o=e.i(19805),i=e.i(33605),l=e.i(30780),s=e.i(31888),a=e.i(71403),u=e.i(58642);e.s(["DialogInteractions",0,function({store:e,dialogRoot:s}){let{parentContext:a,isDrawer:c}=s,d=e.useState("open"),f=e.useState("disablePointerDismissal"),p=e.useState("modal"),g=e.useState("popupElement"),m=e.useState("floatingRootContext"),[b,h]=t.useState(0),[v,y]=t.useState(0),x=0===b,E=(0,i.useDismiss)(m,{outsidePressEvent:()=>
1e.context.internalBackdropRef.current||e.context.backdropRef.current?"intentional":{mouse:"trap-focus"===p?"sloppy":"intentional",touch:"sloppy"},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||"button"in t&&0!==t.button||"touches"in t&&1!==t.touches.length)return!1;let n=(0,l.getTarget)(t);return!!x&&!f&&(!p||!e.context.internalBackdropRef.current&&!e.context.backdropRef.current||e.context.internalBackdropRef.current===n||e.context.backdropRef.current===n||(0,l.contains)(n,g)&&!n?.hasAttribute("data-base-ui-portal"))},escapeKey:x});(0,n.useScrollLock)(d&&!0===p,g),e.useContextCallback("onNestedDialogOpen",(e,t)=>{h(e),y(t)}),e.useContextCallback("onNestedDialogClose",()=>{h(0),y(0)}),t.useEffect(()=>(a?.onNestedDialogOpen&&d&&a.onNestedDialogOpen(b+1,v+ +!!c),a?.onNestedDialogClose&&!d&&a.onNestedDialogClose(),()=>{a?.onNestedDialogClose&&d&&a.onNestedDialogClose()}),[c,d,b,v,a]);let S=E.reference??r.EMPTY_OBJECT,w=E.trigger??r.EMPTY_OBJECT,k=t.useMemo(()=>(0,o.mergeProps)(u.FOCUSABLE_POPUP_PROPS,E.floating),[E.floating]);return(0,u.usePopupInteractionProps)(e,{activeTriggerProps:S,inactiveTriggerProps:w,popupProps:k,nestedOpenDialogCount:b,nestedOpenDrawerCount:v}),null},"useDialogRoot",0,function(e){let{store:n,parentContext:r,actionsRef:o,isDrawer:i}=e,l=n.useState("open");(0,u.usePopupRootSync)(n,l),(0,u.useImplicitActiveTrigger)(n);let{forceUnmount:c}=(0,u.useOpenStateTransitions)(l,n),d=t.useCallback(()=>{n.setOpen(!1,(0,s.createChangeEventDetails)(a.REASONS.imperativeAction))},[n]);return t.useImperativeHandle(o,()=>({unmount:c,close:d}),[c,d]),{parentContext:r,isDrawer:i}}])},69375,e=>{"use strict";e.s(["PopupTriggerMap",0,class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(void 0!==n&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}])},628,e=>{"use strict";var t=e.i(83921),n=e.i(17514),r=e.i(24019),o=e.i(69375);let i=(0,t.createSelector)(e=>e.triggerIdProp??e.activeTriggerId),l=(0,t.createSelector)(e=>e.openProp??e.open),s=(0,t.createSelector)(e=>(e.popupElement?.id??e.floatingId)||void 0);function a(e,t){return void 0!==t&&l(e)&&i(e)===t}let u={open:l,mounted:(0,t.createSelector)(e=>e.mounted),transitionStatus:(0,t.createSelector)(e=>e.transitionStatus),floatingRootContext:(0,t.createSelector)(e=>e.floatingRootContext),triggerCount:(0,t.createSelector)(e=>e.triggerCount),preventUnmountingOnClose:(0,t.createSelector)(e=>e.preventUnmountingOnClose),payload:(0,t.createSelector)(e=>e.payload),activeTriggerId:i,activeTriggerElement:(0,t.createSelector)(e=>e.mounted?e.activeTriggerElement:null),popupId:s,isTriggerActive:(0,t.createSelector)((e,t)=>void 0!==t&&i(e)===t),isOpenedByTrigger:(0,t.createSelector)((e,t)=>a(e,t)),isMountedByTrigger:(0,t.createSelector)((e,t)=>void 0!==t&&i(e)===t&&e.mounted),triggerProps:(0,t.createSelector)((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:(0,t.createSelector)((e,t)=>a(e,t)||void 0!==t&&l(e)&&null==i(e)&&1===e.triggerCount?s(e):void 0),popupProps:(0,t.createSelector)(e=>e.popupProps),popupElement:(0,t.createSelector)(e=>e.popupElement),positionerElement:(0,t.createSelector)(e=>e.positionerElement)};e.s(["createInitialPopupStoreState",0,function(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new r.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new o.PopupTriggerMap,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0}),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:n.EMPTY_OBJECT,inactiveTriggerProps:n.EMPTY_OBJECT,popupProps:n.EMPTY_OBJECT}},"createPopupFloatingRootContext",0,function(e,t,n=!1){return new r.FloatingRootStore({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})},"popupStoreSelectors",0,u],628)},25547,2346,55057,49899,e=>{"use strict";var t,n=e.i(71645),r=e.i(13104),o=e.i(58509),i=e.i(32156),l=e.i(83921),s=e.i(98263),a=e.i(628),u=e.i(69375),c=e.i(58642);let d={...a.popupStoreSelectors,modal:(0,l.createSelector)(e=>e.modal),nested:(0,l.createSelector)(e=>e.nested),nestedOpenDialogCount:(0,l.createSelector)(e=>e.nestedOpenDialogCount),nestedOpenDrawerCount:(0,l.createSelector)(e=>e.nestedOpenDrawerCount),disablePointerDismissal:(0,l.createSelector)(e=>e.disablePointerDismissal),openMethod:(0,l.createSelector)(e=>e.openMethod),descriptionElementId:(0,l.createSelector)(e=>e.descriptionElementId),titleElementId:(0,l.createSelector)(e=>e.titleElementId),viewportElement:(0,l.createSelector)(e=>e.viewportElement),role:(0,l.createSelector)(e=>e.role)};class f extends s.ReactStore{constructor(e,t,r=!1){const o=new u.PopupTriggerMap,i=function(e={}){return{...(0,a.createInitialPopupStoreState)(),modal:!0,disablePointerDismissal:!1,popupElement:null,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:"dialog",...e}}(e);i.floatingRootContext=(0,a.createPopupFloatingRootContext)(o,t,r),super(i,{popupRef:n.createRef(),backdropRef:n.createRef(),internalBackdropRef:n.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:o,onOpenChange:void 0,onOpenChangeComplete:void 0},d)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set("preventUnmountingOnClose",!0)},e||null!=t.trigger||null==this.state.activeTriggerId||(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};(0,c.setOpenTriggerState)(n,e,t.trigger),this.update(n)};static useStore(e,t){return(0,c.usePopupStore)(e,(e,n)=>new f(t,e,n),!0).store}}e.s(["DialogStore",0,f],2346);var p=e.i(43476);e.s(["DialogRoot",0,function(e){return function(e,t="dialog"){let{children:l,open:s,defaultOpen:a=!1,onOpenChange:u,onOpenChangeComplete:c,disablePointerDismissal:d=!1,modal:g=!0,actionsRef:m,handle:b,triggerId:h,defaultTr
1iggerId:v=null}=e,y="alert-dialog"===t,x=(0,r.useDialogRootContext)(!0),E={modal:!!y||g,disablePointerDismissal:y||d,nested:!!x,role:y?"alertdialog":"dialog"},S=f.useStore(b?.store,{open:a,openProp:s,activeTriggerId:v,triggerIdProp:h,...E});(0,o.useOnFirstRender)(()=>{let e=void 0===s&&!1===S.state.open&&!0===a?{open:!0,activeTriggerId:v}:null;y?S.update(e?{...E,...e}:E):e&&S.update(e)}),S.useControlledProp("openProp",s),S.useControlledProp("triggerIdProp",h),S.useSyncedValues(E),S.useContextCallback("onOpenChange",u),S.useContextCallback("onOpenChangeComplete",c);let w=S.useState("open"),k=S.useState("mounted"),C=S.useState("payload"),R=(0,i.useDialogRoot)({store:S,actionsRef:m,parentContext:x?.store.context,isDrawer:"drawer"===t}),T=n.useMemo(()=>({store:S}),[S]);return(0,p.jsx)(r.IsDrawerContext.Provider,{value:!1,children:(0,p.jsxs)(r.DialogRootContext.Provider,{value:T,children:[(w||k)&&(0,p.jsx)(i.DialogInteractions,{store:S,dialogRoot:R}),"function"==typeof l?l({payload:C}):l]})})}(e,n.useContext(r.IsDrawerContext)?"drawer":"dialog")}],25547),e.i(47167);var g=e.i(69095),m=e.i(83590),b=e.i(14060),h=e.i(77681);let v=((t={})[t.open=m.CommonPopupDataAttributes.open]="open",t[t.closed=m.CommonPopupDataAttributes.closed]="closed",t[t.startingStyle=m.CommonPopupDataAttributes.startingStyle]="startingStyle",t[t.endingStyle=m.CommonPopupDataAttributes.endingStyle]="endingStyle",t.nested="data-nested",t.nestedDialogOpen="data-nested-dialog-open",t),y={...m.popupStateMapping,...b.transitionStatusMapping,nested:e=>e?{[v.nested]:""}:null,nestedDialogOpen:e=>e?{[v.nestedDialogOpen]:""}:null},x=n.forwardRef(function(e,t){let{render:n,className:o,style:i,children:l,...s}=e,a=(0,h.useDialogPortalContext)(),{store:u}=(0,r.useDialogRootContext)(),c=u.useState("open"),d=u.useState("nested"),f=u.useState("transitionStatus"),p=u.useState("nestedOpenDialogCount"),m=u.useState("mounted"),b=u.useStateSetter("viewportElement");return(0,g.useRenderElement)("div",e,{enabled:a||m,state:{open:c,nested:d,transitionStatus:f,nestedDialogOpen:p>0},ref:[t,b],stateAttributesMapping:y,props:[{role:"presentation",hidden:!m,style:{pointerEvents:c?void 0:"none"},children:l},s]})});e.s(["DialogViewport",0,x],55057);var E=e.i(86790);let S=n.forwardRef(function(e,t){let{render:n,className:o,style:i,id:l,...s}=e,{store:a}=(0,r.useDialogRootContext)(),u=(0,E.useBaseUiId)(l);return a.useSyncedValueWithCleanup("titleElementId",u),(0,g.useRenderElement)("h2",e,{ref:t,props:[{id:u},s]})});e.s(["DialogTitle",0,S],49899)},4012,e=>{"use strict";var t=e.i(71645),n=e.i(47135),r=e.i(66745),o=e.i(17514),i=e.i(30780),l=e.i(62834),s=e.i(82033),a=e.i(31888),u=e.i(71403);e.s(["useClick",0,function(e,c={}){let{enabled:d=!0,event:f="click",toggle:p=!0,ignoreMouse:g=!1,stickIfOpen:m=!0,touchOpenDelay:b=0,reason:h=u.REASONS.triggerPress}=c,v="rootStore"in e?e.rootStore:e,y=v.context.dataRef,x=t.useRef(void 0),E=(0,n.useAnimationFrame)(),S=(0,r.useTimeout)(),w=t.useMemo(()=>{function e(e,t,n,r){let o=(0,a.createChangeEventDetails)(h,t,n);e&&"touch"===r&&b>0?S.start(b,()=>{v.setOpen(!0,o)}):v.setOpen(e,o)}function t(e,t,n){let r=y.current.openEvent,o=v.select("domReferenceElement")!==t;return!!e&&!!o||!e||!p||!!r&&!!m&&!n(r.type)}return{onPointerDown(e){x.current=e.pointerType},onMouseDown(n){let r=x.current,o=n.nativeEvent,a=v.select("open");if(0!==n.button||"click"===f||(0,s.isMouseLikePointerType)(r,!0)&&g)return;let u=t(a,n.currentTarget,e=>"click"===e||"mousedown"===e),c=(0,i.getTarget)(o);if((0,l.isTypeableElement)(c))return void e(u,o,c,r);let d=n.currentTarget;E.request(()=>{e(u,o,d,r)})},onClick(n){if("mousedown-only"===f)return;let r=x.current;if("mousedown"===f&&r){x.current=void 0;return}(0,s.isMouseLikePointerType)(r,!0)&&g||e(t(v.select("open"),n.currentTarget,e=>"click"===e||"mousedown"===e||"keydown"===e||"keyup"===e),n.nativeEvent,n.currentTarget,r)},onKeyDown(){x.current=void 0}}},[y,f,g,h,v,m,p,E,S,b]);return t.useMemo(()=>d?{reference:w}:o.EMPTY_OBJECT,[d,w])}])},50091,73577,e=>{"use strict";var t=e.i(71645),n=e.i(76477),r=e.i(57666),o=e.i(977);
1function i(e,r){let i=t.useRef(e),l=(0,n.useStableCallback)(r);(0,o.useIsoLayoutEffect)(()=>{i.current!==e&&l(i.current)},[e,l]),(0,o.useIsoLayoutEffect)(()=>{i.current=e},[e])}function l(e,o){var i;let l,s,{onClick:a,onPointerDown:u}=(i=(0,n.useStableCallback)((t,n)=>{("function"==typeof e?e():e)||o(n||(r.isIOS?"touch":""))}),l=t.useRef(""),s=t.useCallback(e=>{e.defaultPrevented||(l.current=e.pointerType,i(e,e.pointerType))},[i]),{onClick:t.useCallback(e=>{0===e.detail?i(e,"keyboard"):("pointerType"in e?i(e,e.pointerType):i(e,l.current),l.current="")},[i]),onPointerDown:s});return t.useMemo(()=>({onClick:a,onPointerDown:u}),[a,u])}e.s(["useValueChanged",0,i],73577),e.s(["useOpenInteractionType",0,function(e){let[n,r]=t.useState(null),o=l(e,r);return i(e,t=>{t&&!e&&r(null)}),t.useMemo(()=>({openMethod:n,triggerProps:o}),[n,o])},"useOpenMethodTriggerProps",0,l],50091)},72920,e=>{"use strict";e.i(75704);var t=e.i(59141),n=e.i(43444),r=e.i(39362),o=e.i(96918),i=e.i(38449),l=e.i(25547),s=e.i(55057),a=e.i(49899);e.i(47167);var u=e.i(67805),c=e.i(71645),d=e.i(13104),f=e.i(53402),p=e.i(69095),g=e.i(83590),m=e.i(5066),b=e.i(58642),h=e.i(86790),v=e.i(4012),y=e.i(50091);let x=c.forwardRef(function(e,t){let{render:n,className:r,style:o,disabled:i=!1,nativeButton:l=!0,id:s,payload:a,handle:x,...E}=e,S=(0,d.useDialogRootContext)(!0),w=x?.store??S?.store;if(!w)throw Error((0,u.default)(79));let k=(0,h.useBaseUiId)(s),C=w.useState("floatingRootContext"),R=w.useState("isOpenedByTrigger",k),T=w.useState("triggerPopupId",k),O=c.useRef(null),{registerTrigger:I,isMountedByThisTrigger:P}=(0,b.useTriggerDataForwarding)(k,O,w,{payload:a}),{getButtonProps:D,buttonRef:A}=(0,f.useButton)({disabled:i,native:l}),M=(0,v.useClick)(C,{enabled:null!=C}),L=(0,y.useOpenMethodTriggerProps)(()=>w.select("open"),e=>{w.set("openMethod",e)}),N=w.useState("triggerProps",P);return(0,p.useRenderElement)("button",e,{state:{disabled:i,open:R},ref:[A,t,I,O],props:[M.reference,N,L,{[m.CLICK_TRIGGER_IDENTIFIER]:"",id:k,"aria-haspopup":"dialog","aria-expanded":R,"aria-controls":T},E,D],stateAttributesMapping:g.triggerOpenStateMapping})});var E=e.i(2346),S=e.i(31888),w=e.i(71403);class k{constructor(e){this.store=e??new E.DialogStore}open(e){let t=e?this.store.context.triggerElements.getById(e):void 0;this.store.setOpen(!0,(0,S.createChangeEventDetails)(w.REASONS.imperativeAction,void 0,t))}openWithPayload(e){this.store.set("payload",e),this.store.setOpen(!0,(0,S.createChangeEventDetails)(w.REASONS.imperativeAction,void 0,void 0))}close(){this.store.setOpen(!1,(0,S.createChangeEventDetails)(w.REASONS.imperativeAction,void 0,void 0))}get isOpen(){return this.store.select("open")}}e.s(["Backdrop",()=>t.DialogBackdrop,"Close",()=>n.DialogClose,"Description",()=>r.DialogDescription,"Handle",0,k,"Popup",()=>o.DialogPopup,"Portal",()=>i.DialogPortal,"Root",()=>l.DialogRoot,"Title",()=>a.DialogTitle,"Trigger",0,x,"Viewport",()=>s.DialogViewport,"createHandle",0,function(){return new k}],87913);var C=e.i(87913);e.s(["Dialog",0,C],72920)},75157,7670,e=>{"use strict";function t(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(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)){var i=t.length;for(n=0;n<i;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=t);return r}e.s(["clsx",0,t],7670);let n=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),r=[],o=(e,t,n)=>{if(0==e.length-t)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=o(e,t+1,i);if(n)return n}let l=n.validators;if(null===l)return;let s=0===t?e.join("-"):e.slice(t).join("-"),a=l.length;for(let e=0;e<a;e++){let t=l[e];if(t.validator(s))return t.classGroupId}},i=(e,t)=>{let r=n();for(let n in e)l(e[n],r,n,t);return r},l=(e,t,n,r)=>{let o=e.length;for(let i=0;i<o;i++)s(e[i],t,n,r)},s=(e,t,n,r)=>{"string"==typeof e?a(e,t,n):"function"==typeof e?u(e,t,n,r):c(e,t,n,r)},a=(e,t,n)=>{(""===e?t:d(t,e)).classGroupId=n},u=(e,t,n,r)=>{f(e)?l(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push({classGroupId:n,validator:e}))},c=(e,t,n,r)=>{let o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){let[i,s]=o[e];l(s,d(t,i),n,r)}},d=(e,t)=>{let r=e,o=t.split("-"),i=o.length;for(let e=0;e<i;
1e++){let t=o[e],i=r.nextPart.get(t);i||(i=n(),r.nextPart.set(t,i)),r=i}return r},f=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,p=[],g=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),m=/\s+/,b=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=b(e[r]))&&(n&&(n+=" "),n+=t);return n},h=[],v=e=>{let t=t=>t[e]||h;return t.isThemeGetter=!0,t},y=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,E=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,T=e=>E.test(e),O=e=>!!e&&!Number.isNaN(Number(e)),I=e=>!!e&&Number.isInteger(Number(e)),P=e=>e.endsWith("%")&&O(e.slice(0,-1)),D=e=>S.test(e),A=()=>!0,M=e=>w.test(e)&&!k.test(e),L=()=>!1,N=e=>C.test(e),F=e=>R.test(e),j=e=>!W(e)&&!G(e),z=e=>e.startsWith("@container")&&("/"===e[10]&&void 0!==e[11]||"s"===e[11]&&void 0!==e[16]&&e.startsWith("-size/",10)||"n"===e[11]&&void 0!==e[18]&&e.startsWith("-normal/",10)),B=e=>en(e,el,L),W=e=>y.test(e),_=e=>en(e,es,M),V=e=>en(e,ea,O),H=e=>en(e,ec,A),U=e=>en(e,eu,L),Y=e=>en(e,eo,L),K=e=>en(e,ei,F),$=e=>en(e,ed,N),G=e=>x.test(e),q=e=>er(e,es),X=e=>er(e,eu),J=e=>er(e,eo),Z=e=>er(e,el),Q=e=>er(e,ei),ee=e=>er(e,ed,!0),et=e=>er(e,ec,!0),en=(e,t,n)=>{let r=y.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},er=(e,t,n=!1)=>{let r=x.exec(e);return!!r&&(r[1]?t(r[1]):n)},eo=e=>"position"===e||"percentage"===e,ei=e=>"image"===e||"url"===e,el=e=>"length"===e||"size"===e||"bg-size"===e,es=e=>"length"===e,ea=e=>"number"===e,eu=e=>"family-name"===e,ec=e=>"number"===e||"weight"===e,ed=e=>"shadow"===e,ef=((e,...t)=>{let n,l,s,a,u=e=>{let t=l(e);if(t)return t;let r=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:l}=t,s=[],a=e.trim().split(m),u="";for(let e=a.length-1;e>=0;e-=1){let t,c=a[e],{isExternal:d,modifiers:f,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=n(c);if(d){u=c+(u.length>0?" "+u:u);continue}let b=!!m;if(b){let e=(t=r(g.substring(0,m)))&&l[t]?r(g):void 0;e&&e!==t&&(t=e,b=!1)}else t=r(g);if(!t){if(!b||!(t=r(g))){u=c+(u.length>0?" "+u:u);continue}b=!1}let h=0===f.length?"":1===f.length?f[0]:i(f).join(":"),v=p?h+"!":h,y=v+t;if(s.indexOf(y)>-1)continue;s.push(y);let x=o(t,b);for(let e=0;e<x.length;++e){let t=x[e];s.push(v+t)}u=c+(u.length>0?" "+u:u)}return u})(e,n);return s(e,r),r};return a=c=>{var d;let f;return l=(n={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),o=(o,i)=>{n[o]=i,++t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}})((d=t.reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n=[],r=0,o=0,i=0,l=e.length;for(let s=0;s<l;s++){let l=e[s];if(0===r&&0===o){if(":"===l){n.push(e.slice(i,s)),i=s+1;continue}if("/"===l){t=s;continue}}"["===l?r++:"]"===l?r--:"("===l?o++:")"===l&&o--}let s=0===n.length?e:e.slice(i),a=s,u=!1;return s.endsWith("!")?(a=s.slice(0,-1),u=!0):s.startsWith("!")&&(a=s.slice(1),u=!0),g(n,u,a,t&&t>i?t-i:void 0)};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):g(p,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(d),sortModifiers:(f=new Map,d.orderSensitiveModifiers.forEach((e,t)=>{f.set(e,1e6+t)}),e=>{let t=[],n=[];for(let r=0;r<e.length;r++){let o=e[r],i="["===o[0],l=f.has(o);i||l?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(o)):n.push(o)}return n.length>0&&(n.sort(),t.push(...n)),t}),postfixLookupClassGroupIds:(e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t})(d),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e;return i(n,t)})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]")){var n;let t,r,o;return -1===(n=e).slice(1,-1).indexOf(":")?void 0:(r=(t=n.slice(1,-1)).indexOf(":"),(o=t.slice(0,r))?"arbitrary.."+o:void 0)}let r=e.split("-"),i=+(""===r[0]&&r.length>1);return o(r,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=l[e],o=n[e];if(t){if(o){let e=Array(o.length+t.length);for(let t=0;t<o.length;t++)e[t]=o[t];for(let n=0;n<t.length;
1n++)e[o.length+n]=t[n];return e}return t}return o||r}return n[e]||r}}})(d)}).cache.get,s=n.cache.set,a=u,u(c)},(...e)=>a(((...e)=>{let t,n,r=0,o="";for(;r<e.length;)(t=e[r++])&&(n=b(t))&&(o&&(o+=" "),o+=n);return o})(...e))})(()=>{let e=v("color"),t=v("font"),n=v("text"),r=v("font-weight"),o=v("tracking"),i=v("leading"),l=v("breakpoint"),s=v("container"),a=v("spacing"),u=v("radius"),c=v("shadow"),d=v("inset-shadow"),f=v("text-shadow"),p=v("drop-shadow"),g=v("blur"),m=v("perspective"),b=v("aspect"),h=v("ease"),y=v("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...E(),G,W],w=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],C=()=>[G,W,a],R=()=>[T,"full","auto",...C()],M=()=>[I,"none","subgrid",G,W],L=()=>["auto",{span:["full",I,G,W]},I,G,W],N=()=>[I,"auto",G,W],F=()=>["auto","min","max","fr",G,W],en=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],er=()=>["start","end","center","stretch","center-safe","end-safe"],eo=()=>["auto",...C()],ei=()=>[T,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],el=()=>[T,"screen","full","dvw","lvw","svw","min","max","fit",...C()],es=()=>[T,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],ea=()=>[e,G,W],eu=()=>[...E(),J,Y,{position:[G,W]}],ec=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ed=()=>["auto","cover","contain",Z,B,{size:[G,W]}],ef=()=>[P,q,_],ep=()=>["","none","full",u,G,W],eg=()=>["",O,q,_],em=()=>["solid","dashed","dotted","double"],eb=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],eh=()=>[O,P,J,Y],ev=()=>["","none",g,G,W],ey=()=>["none",O,G,W],ex=()=>["none",O,G,W],eE=()=>[O,G,W],eS=()=>[T,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[D],breakpoint:[D],color:[A],container:[D],"drop-shadow":[D],ease:["in","out","in-out"],font:[j],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[D],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[D],shadow:[D],spacing:["px",O],text:[D],"text-shadow":[D],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",T,W,G,b]}],container:["container"],"container-type":[{"@container":["","normal","size",G,W]}],"container-named":[z],columns:[{columns:[O,W,G,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}
vendor: 4,757 bytes, line 1
1],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[I,"auto",G,W]}],basis:[{basis:[T,"full","auto",s,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[O,T,"auto","initial","none",W]}],grow:[{grow:["",O,G,W]}],shrink:[{shrink:["",O,G,W]}],order:[{order:[I,"first","last","none",G,W]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...en(),"normal"]}],"justify-items":[{"justify-items":[...er(),"normal"]}],"justify-self":[{"justify-self":["auto",...er()]}],"align-content":[{content:["normal",...en()]}],"align-items":[{items:[...er(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...er(),{baseline:["","last"]}]}],"place-content":[{"place-content":en()}],"place-items":[{"place-items":[...er(),"baseline"]}],"place-self":[{"place-self":["auto",...er()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:eo()}],mx:[{mx:eo()}],my:[{my:eo()}],ms:[{ms:eo()}],me:[{me:eo()}],mbs:[{mbs:eo()}],mbe:[{mbe:eo()}],mt:[{mt:eo()}],mr:[{mr:eo()}],mb:[{mb:eo()}],ml:[{ml:eo()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ei()}],"inline-size":[{inline:["auto",...el()]}],"min-inline-size":[{"min-inline":["auto",...el()]}],"max-inline-size":[{"max-inline":["none",...el()]}],"block-size":[{block:["auto",...es()]}],"min-block-size":[{"min-block":["auto",...es()]}],"max-block-size":[{"max-block":["none",...es()]}],w:[{w:[s,"screen",...ei()]}],"min-w":[{"min-w":[s,"screen","none",...ei()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[l]},...ei()]}],h:[{h:["screen","lh",...ei()]}],"min-h":[{"min-h":["screen","lh","none",...ei()]}],"max-h":[{"max-h":["screen","lh",...ei()]}],"font-size":[{text:["base",n,q,_]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,et,H]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",P,W]}],"font-family":[{font:[X,U,t]}],"font-features":[{"font-features":[W]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,G,W]}],"line-clamp":[{"line-clamp":[O,"none",G,V]}],leading:[{leading:[i,...C()]}],"list-image":[{"list-image":["none",G,W]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,W]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ea()}],"text-color":[{text:ea()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...em(),"wavy"]}],"text-decoration-thickness":[{decoration:[O,"from-font","auto",G,_]}],"text-decoration-color":[{decoration:ea()}],"underline-offset":[{"underline-offset":[O,"auto",G,W]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"tab-size":[{tab:[I,G,W]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",G,W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:eu()}],"bg-repeat":[{bg:ec()}],"bg-size":[{bg:ed()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},I,G,W],radial:["",G,W],conic:[I,G,W]},Q,K]}],"bg-color":[{bg:ea()}],"gradient-from-pos":[{from:ef()}
vendor: 9,496 bytes, line 1
1],"gradient-via-pos":[{via:ef()}],"gradient-to-pos":[{to:ef()}],"gradient-from":[{from:ea()}],"gradient-via":[{via:ea()}],"gradient-to":[{to:ea()}],rounded:[{rounded:ep()}],"rounded-s":[{"rounded-s":ep()}],"rounded-e":[{"rounded-e":ep()}],"rounded-t":[{"rounded-t":ep()}],"rounded-r":[{"rounded-r":ep()}],"rounded-b":[{"rounded-b":ep()}],"rounded-l":[{"rounded-l":ep()}],"rounded-ss":[{"rounded-ss":ep()}],"rounded-se":[{"rounded-se":ep()}],"rounded-ee":[{"rounded-ee":ep()}],"rounded-es":[{"rounded-es":ep()}],"rounded-tl":[{"rounded-tl":ep()}],"rounded-tr":[{"rounded-tr":ep()}],"rounded-br":[{"rounded-br":ep()}],"rounded-bl":[{"rounded-bl":ep()}],"border-w":[{border:eg()}],"border-w-x":[{"border-x":eg()}],"border-w-y":[{"border-y":eg()}],"border-w-s":[{"border-s":eg()}],"border-w-e":[{"border-e":eg()}],"border-w-bs":[{"border-bs":eg()}],"border-w-be":[{"border-be":eg()}],"border-w-t":[{"border-t":eg()}],"border-w-r":[{"border-r":eg()}],"border-w-b":[{"border-b":eg()}],"border-w-l":[{"border-l":eg()}],"divide-x":[{"divide-x":eg()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":eg()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...em(),"hidden","none"]}],"divide-style":[{divide:[...em(),"hidden","none"]}],"border-color":[{border:ea()}],"border-color-x":[{"border-x":ea()}],"border-color-y":[{"border-y":ea()}],"border-color-s":[{"border-s":ea()}],"border-color-e":[{"border-e":ea()}],"border-color-bs":[{"border-bs":ea()}],"border-color-be":[{"border-be":ea()}],"border-color-t":[{"border-t":ea()}],"border-color-r":[{"border-r":ea()}],"border-color-b":[{"border-b":ea()}],"border-color-l":[{"border-l":ea()}],"divide-color":[{divide:ea()}],"outline-style":[{outline:[...em(),"none","hidden"]}],"outline-offset":[{"outline-offset":[O,G,W]}],"outline-w":[{outline:["",O,q,_]}],"outline-color":[{outline:ea()}],shadow:[{shadow:["","none",c,ee,$]}],"shadow-color":[{shadow:ea()}],"inset-shadow":[{"inset-shadow":["none",d,ee,$]}],"inset-shadow-color":[{"inset-shadow":ea()}],"ring-w":[{ring:eg()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ea()}],"ring-offset-w":[{"ring-offset":[O,_]}],"ring-offset-color":[{"ring-offset":ea()}],"inset-ring-w":[{"inset-ring":eg()}],"inset-ring-color":[{"inset-ring":ea()}],"text-shadow":[{"text-shadow":["none",f,ee,$]}],"text-shadow-color":[{"text-shadow":ea()}],opacity:[{opacity:[O,G,W]}],"mix-blend":[{"mix-blend":[...eb(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eb()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[O]}],"mask-image-linear-from-pos":[{"mask-linear-from":eh()}],"mask-image-linear-to-pos":[{"mask-linear-to":eh()}],"mask-image-linear-from-color":[{"mask-linear-from":ea()}],"mask-image-linear-to-color":[{"mask-linear-to":ea()}],"mask-image-t-from-pos":[{"mask-t-from":eh()}],"mask-image-t-to-pos":[{"mask-t-to":eh()}],"mask-image-t-from-color":[{"mask-t-from":ea()}],"mask-image-t-to-color":[{"mask-t-to":ea()}],"mask-image-r-from-pos":[{"mask-r-from":eh()}],"mask-image-r-to-pos":[{"mask-r-to":eh()}],"mask-image-r-from-color":[{"mask-r-from":ea()}],"mask-image-r-to-color":[{"mask-r-to":ea()}],"mask-image-b-from-pos":[{"mask-b-from":eh()}],"mask-image-b-to-pos":[{"mask-b-to":eh()}],"mask-image-b-from-color":[{"mask-b-from":ea()}],"mask-image-b-to-color":[{"mask-b-to":ea()}],"mask-image-l-from-pos":[{"mask-l-from":eh()}],"mask-image-l-to-pos":[{"mask-l-to":eh()}],"mask-image-l-from-color":[{"mask-l-from":ea()}],"mask-image-l-to-color":[{"mask-l-to":ea()}],"mask-image-x-from-pos":[{"mask-x-from":eh()}],"mask-image-x-to-pos":[{"mask-x-to":eh()}],"mask-image-x-from-color":[{"mask-x-from":ea()}],"mask-image-x-to-color":[{"mask-x-to":ea()}],"mask-image-y-from-pos":[{"mask-y-from":eh()}],"mask-image-y-to-pos":[{"mask-y-to":eh()}],"mask-image-y-from-color":[{"mask-y-from":ea()}],"mask-image-y-to-color":[{"mask-y-to":ea()}],"mask-image-radial":[{"mask-radial":[G,W]}],"mask-image-radial-from-pos":[{"mask-radial-from":eh()}],"mask-image-radial-to-pos":[{"mask-radial-to":eh()}],"mask-image-radial-from-color":[{"mask-radial-from":ea()}],"mask-image-radial-to-color":[{"mask-radial-to":ea()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[O]}],"mask-image-conic-from-pos":[{"mask-conic-from":eh()}],"mask-image-conic-to-pos":[{"mask-conic-to":eh()}],"mask-image-conic-from-color":[{"mask-conic-from":ea()}],"mask-image-conic-to-color":[{"mask-conic-to":ea()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:eu()}],"mask-repeat":[{mask:ec()}],"mask-size":[{mask:ed()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,W]}],filter:[{filter:["","none",G,W]}],blur:[{blur:ev()}],brightness:[{brightness:[O,G,W]}],contrast:[{contrast:[O,G,W]}],"drop-shadow":[{"drop-shadow":["","none",p,ee,$]}],"drop-shadow-color":[{"drop-shadow":ea()}],grayscale:[{grayscale:["",O,G,W]}],"hue-rotate":[{"hue-rotate":[O,G,W]}],invert:[{invert:["",O,G,W]}],saturate:[{saturate:[O,G,W]}],sepia:[{sepia:["",O,G,W]}],"backdrop-filter":[{"backdrop-filter":["","none",G,W]}],"backdrop-blur":[{"backdrop-blur":ev()}],"backdrop-brightness":[{"backdrop-brightness":[O,G,W]}],"backdrop-contrast":[{"backdrop-contrast":[O,G,W]}],"backdrop-grayscale":[{"backdrop-grayscale":["",O,G,W]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[O,G,W]}],"backdrop-invert":[{"backdrop-invert":["",O,G,W]}],"backdrop-opacity":[{"backdrop-opacity":[O,G,W]}],"backdrop-saturate":[{"backdrop-saturate":[O,G,W]}],"backdrop-sepia":[{"backdrop-sepia":["",O,G,W]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,W]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[O,"initial",G,W]}],ease:[{ease:["linear","initial",h,G,W]}],delay:[{delay:[O,G,W]}],animate:[{animate:["none",y,G,W]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,G,W]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:ey()}],"rotate-x":[{"rotate-x":ey()}],"rotate-y":[{"rotate-y":ey()}],"rotate-z":[{"rotate-z":ey()}],scale:[{scale:ex()}],"scale-x":[{"scale-x":ex()}],"scale-y":[{"scale-y":ex()}],"scale-z":[{"scale-z":ex()}],"scale-3d":["scale-3d"],skew:[{skew:eE()}],"skew-x":[{"skew-x":eE()}],"skew-y":[{"skew-y":eE()}],transform:[{transform:[G,W,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:eS()}],"translate-x":[{"translate-x":eS()}],"translate-y":[{"translate-y":eS()}],"translate-z":[{"translate-z":eS()}],"translate-none":["translate-none"],zoom:[{zoom:[I,G,W]}],accent:[{accent:ea()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ea()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",G,W]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":ea()}],"scrollbar-track-color":[{"scrollbar-track":ea()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",G,W]}
1],fill:[{fill:["none",...ea()]}],"stroke-w":[{stroke:[O,q,_,V]}],stroke:[{stroke:["none",...ea()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});e.s(["cn",0,function(...e){return ef(t(e))}],75157)},19455,25913,e=>{"use strict";var t=e.i(43476);e.i(47167);var n=e.i(71645),r=e.i(53402),o=e.i(69095);let i=n.forwardRef(function(e,t){let{render:n,className:i,disabled:l=!1,focusableWhenDisabled:s=!1,nativeButton:a=!0,style:u,...c}=e,{getButtonProps:d,buttonRef:f}=(0,r.useButton)({disabled:l,focusableWhenDisabled:s,native:a});return(0,o.useRenderElement)("button",e,{state:{disabled:l},ref:[t,f],props:[c,d]})});var l=e.i(7670);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=l.clsx,u=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return a(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:o,defaultVariants:i}=t,l=Object.keys(o).map(e=>{let t=null==n?void 0:n[e],r=null==i?void 0:i[e];if(null===t)return null;let l=s(t)||s(r);return o[e][l]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return a(e,l,null==t||null==(r=t.compoundVariants)?void 0:r.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({...i,...u}[t]):({...i,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)};e.s(["cva",0,u],25913);var c=e.i(75157);let d=u("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-
1px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});e.s(["Button",0,function({className:e,variant:n="default",size:r="default",...o}){return(0,t.jsx)(i,{"data-slot":"button",className:(0,c.cn)(d({variant:n,size:r,className:e})),...o})}],19455)},76639,19485,97449,62094,13709,21643,23716,51672,44542,29370,19699,38838,881,e=>{"use strict";var t,n=e.i(43476),r=e.i(72920),o=e.i(75157),i=e.i(19455),l=e.i(14387),l=l;function s({...e}){return(0,n.jsx)(r.Dialog.Portal,{"data-slot":"dialog-portal",...e})}function a({className:e,...t}){return(0,n.jsx)(r.Dialog.Backdrop,{"data-slot":"dialog-overlay",className:(0,o.cn)("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e),...t})}e.s(["Dialog",0,function({...e}){return(0,n.jsx)(r.Dialog.Root,{"data-slot":"dialog",...e})},"DialogContent",0,function({className:e,children:t,showCloseButton:u=!0,...c}){return(0,n.jsxs)(s,{children:[(0,n.jsx)(a,{}),(0,n.jsxs)(r.Dialog.Popup,{"data-slot":"dialog-content",className:(0,o.cn)("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...c,children:[t,u&&(0,n.jsxs)(r.Dialog.Close,{"data-slot":"dialog-close",render:(0,n.jsx)(i.Button,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[(0,n.jsx)(l.default,{}),(0,n.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})},"DialogHeader",0,function({className:e,...t}){return(0,n.jsx)("div",{"data-slot":"dialog-header",className:(0,o.cn)("flex flex-col gap-2",e),...t})},"DialogTitle",0,function({className:e,...t}){return(0,n.jsx)(r.Dialog.Title,{"data-slot":"dialog-title",className:(0,o.cn)("font-heading text-base leading-none font-medium",e),...t})}],76639),e.s([],19485),e.i(47167);var u=e.i(71645),c=e.i(76477),d=e.i(67805),f=e.i(17514);let p=((t={}).disabled="data-disabled",t.valid="data-valid",t.invalid="data-invalid",t.touched="data-touched",t.dirty="data-dirty",t.filled="data-filled",t.focused="data-focused",t),g={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},m={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},b={disabled:!1,...m},h={valid:e=>null===e?null:e?{[p.valid]:""}:{[p.invalid]:""}};e.s(["DEFAULT_FIELD_ROOT_STATE",0,b,"DEFAULT_FIELD_STATE_ATTRIBUTES",0,m,"DEFAULT_VALIDITY_STATE",0,g,"fieldValidityMapping",0,h],97449);
1let v={invalid:void 0,name:void 0,validityData:{state:g,errors:[],error:"",value:"",initialValue:null},setValidityData:f.NOOP,disabled:void 0,touched:m.touched,setTouched:f.NOOP,dirty:m.dirty,setDirty:f.NOOP,filled:m.filled,setFilled:f.NOOP,focused:m.focused,setFocused:f.NOOP,validate:()=>null,validationMode:"onSubmit",validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:b,markedDirtyRef:{current:!1},registerFieldControl:f.NOOP,validation:{getValidationProps:(e=f.EMPTY_OBJECT)=>e,getInputValidationProps:(e=f.EMPTY_OBJECT)=>e,inputRef:{current:null},commit:async()=>{}}},y=u.createContext(v);function x(e=!0){let t=u.useContext(y);if(t.setValidityData===f.NOOP&&!e)throw Error((0,d.default)(28));return t}e.s(["FieldRootContext",0,y,"useFieldRootContext",0,x],62094);let E=u.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0}),S=u.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:f.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function w(){return u.useContext(S)}e.s(["useFormContext",0,w],13709);var k=e.i(30628),C=e.i(19805),R=e.i(86790);let T=u.createContext({controlId:void 0,registerControlId:f.NOOP,labelId:void 0,setLabelId:f.NOOP,messageIds:[],setMessageIds:f.NOOP,getDescriptionProps:e=>e});function O(){return u.useContext(T)}e.s(["LabelableContext",0,T,"useLabelableContext",0,O],21643);let I=function(e){let t=(0,R.useBaseUiId)(),r=void 0===e.controlId?t:e.controlId,[o,i]=u.useState(r),[l,s]=u.useState(e.labelId),[a,d]=u.useState([]),f=(0,k.useRefWithInit)(()=>new Map),{messageIds:p}=O(),g=(0,c.useStableCallback)((e,t)=>{let n=f.current;void 0===t?n.delete(e):(n.set(e,t),i(e=>{let t;if(0!==n.size){for(let r of n.values()){if(void 0!==e&&r===e)return e;void 0===t&&(t=r)}return t}}))}),m=u.useCallback(e=>(0,C.mergeProps)({"aria-describedby":p.concat(a).join(" ")||void 0},e),[p,a]),b=u.useMemo(()=>({controlId:o,registerControlId:g,labelId:l,setLabelId:s,messageIds:a,setMessageIds:d,getDescriptionProps:m}),[o,g,l,s,a,d,m]);return(0,n.jsx)(T.Provider,{value:b,children:e.children})};e.s(["LabelableProvider",0,I],23716);var P=e.i(69095),D=e.i(66745);function A(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}e.s(["getCombinedFieldValidityData",0,A],51672);let M=Object.keys(g);var L=e.i(977);let N=u.forwardRef(function(e,t){let{errors:r,validationMode:o,submitAttemptedRef:i}=w(),{render:l,className:s,validate:a,validationDebounceTime:p=0,validationMode:m=o,name:b,disabled:v=!1,invalid:x,dirty:S,touched:k,actionsRef:R,style:T,...I}=e,{disabled:N}=function(e=!1){let t=u.useContext(E);if(!t&&!e)throw Error((0,d.default)(86));return t}(),F=(0,c.useStableCallback)(a||(()=>null)),j=N||v,[z,B]=u.useState(!1),[W,_]=u.useState(!1),[V,H]=u.useState(!1),[U,Y]=u.useState(!1),K=S??W,$=k??z,G=u.useRef(!1),q=u.useRef(void 0),X=u.useCallback(()=>q.current,[]),J=u.useCallback(e=>{q.current=e},[]),Z=(0,c.useStableCallback)(e=>{void 0===S&&(e&&(G.current=!0),_(e))}),Q=(0,c.useStableCallback)(e=>{void 0===k&&B(e)}),ee=(0,c.useStableCallback)(()=>"onChange"===m||"onSubmit"===m&&i.current),et=!!b&&Object.hasOwn(r,b)&&void 0!==r[b],en=!0===x||et,[er,eo]=u.useState({state:g,error:"",errors:[],value:null,initialValue:null}),ei=!en&&er.state.valid,el=u.useMemo(()=>({disabled:j,touched:$,dirty:K,valid:ei,filled:V,focused:U}),[j,$,K,ei,V,U]),es=function(e){let{formRef:t,clearErrors:n}=w(),{setValidityData:r,validate:o,validityData:i,validationDebounceTime:l,invalid:s,markedDirtyRef:a,state:d,name:p,shouldValidateOnChange:m,getRegisteredFieldId:b}=e,{controlId:h,getDescriptionProps:v}=O(),y=(0,D.useTimeout)(),x=u.useRef(null),E=(0,c.useStableCallback)(async(e,n=!1)=>{let l,u=x.current;if(!u)return;function c(e,n=s){let r=b()??h;if(null==r)return;let o=t.current.fields.get(r);if(!o)return;let i=A(e,n);t.current.fields.set(r,{...o,validityData:i})}if(n){if(!1!==d.valid)return;let t=u.validity;if(!t.valueMissing){let t={value:e,state:{...g,valid:!0},error:"",errors:[],initialValue:i.initialValue};u.setCustomValidity(""),c(t,!1),r(t);return}let n=M.reduce((e,n)=>(e[n]=t[n],e),{});if(!n.valid&&!function(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let n of M)"valid"!==n&&("valueMissing"===n&&(t=e[n]),e[n]&&(t=!1));return t}(n))return}y.clear();let f=null,p=[],v=function(e){let t=M.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of M)if("valid"!==e){if("valueMissing"===e&&t[e])n=!0;else if(t[e])return t}return n&&!a.current&&(t.valid=!0,t.valueMissing=!1),t}(u),E=m();if(u.validationMessage&&!E)l=u.validationMessage,p=[u.validationMessage];else{let n=o(e,Array.from(t.current.fields.values()).reduce((e,t)=>
1(t.name&&(e[t.name]=t.getValue()),e),{}));null!==(f="object"==typeof n&&null!==n&&"then"in n?await n:n)?(v.valid=!1,v.customError=!0,Array.isArray(f)?(p=f,u.setCustomValidity(f.join("\n"))):f&&(p=[f],u.setCustomValidity(f))):E&&(u.setCustomValidity(""),v.customError=!1,u.validationMessage?(l=u.validationMessage,p=[u.validationMessage]):u.validity.valid&&!v.valid&&(v.valid=!0))}let S={value:e,state:v,error:l??(Array.isArray(f)?f[0]:f??""),errors:p,initialValue:i.initialValue};c(S),r(S)}),S=u.useCallback((e={})=>(0,C.mergeProps)(v,!1===d.valid?{"aria-invalid":!0}:f.EMPTY_OBJECT,e),[v,d.valid]),k=u.useCallback((e={})=>(0,C.mergeProps)({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(n(p),!m())return void E(e.currentTarget.value,!0);let t=e.currentTarget;""===t.value?E(t.value):(y.clear(),l?y.start(l,()=>{E(t.value)}):E(t.value))}},S(e)),[S,n,p,y,E,l,m]);return u.useMemo(()=>({getValidationProps:S,getInputValidationProps:k,inputRef:x,commit:E}),[S,k,E])}({setValidityData:eo,validate:F,validityData:er,validationDebounceTime:p,invalid:en,markedDirtyRef:G,state:el,name:b,shouldValidateOnChange:ee,getRegisteredFieldId:X}),ea=er.value,eu=u.useCallback(()=>{G.current=!0,es.commit(ea)},[es,ea]),ec=function(e){let{commit:t,invalid:n,markedDirtyRef:r,name:o,setRegisteredFieldId:i,setValidityData:l,validityData:s}=e,{formRef:a}=w(),d=u.useRef(null),f=u.useRef(null),p=u.useRef(null),g=(0,c.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value}),m=(0,c.useStableCallback)(()=>{let e=f.current;if(!e)return;let n=e.value;void 0===n&&(n=g()),r.current=!0,t(n)});function b(e=f.current?.id){e&&a.current.fields.delete(e)}return(0,L.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&a.current.fields.set(e.id,{getValue:g,name:o,controlRef:e.controlRef??p,validityData:A(s,n),validate:m})},[a,g,n,o,m,s]),(0,L.useIsoLayoutEffect)(()=>{let e=a.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[a]),(0,c.useStableCallback)((e,t)=>{let r;if(!t){d.current===e&&(d.current=null,b(),f.current=null,i(void 0));return}let u=f.current?.id;d.current=e,f.current=t,i(t.id),u&&u!==t.id&&b(u),function(){let e=f.current;if(!e)return;let t=e.value;void 0===t&&(t=g()),null===s.initialValue&&null!==t&&l(e=>({...e,initialValue:t}))}(),(r=f.current)&&r.id&&a.current.fields.set(r.id,{getValue:g,name:o,controlRef:r.controlRef??p,validityData:A(s,n),validate:m})})}({commit:es.commit,invalid:en,markedDirtyRef:G,name:b,setRegisteredFieldId:J,setValidityData:eo,validityData:er});u.useImperativeHandle(R,()=>({validate:eu}),[eu]);let ed=u.useMemo(()=>({invalid:en,name:b,validityData:er,setValidityData:eo,disabled:j,touched:$,setTouched:Q,dirty:K,setDirty:Z,filled:V,setFilled:H,focused:U,setFocused:Y,validate:F,validationMode:m,validationDebounceTime:p,shouldValidateOnChange:ee,state:el,markedDirtyRef:G,registerFieldControl:ec,validation:es}),[en,b,er,j,$,Q,K,Z,V,H,U,Y,F,m,p,ee,el,ec,es]),ef=(0,P.useRenderElement)("div",e,{ref:t,state:el,props:I,stateAttributesMapping:h});return(0,n.jsx)(y.Provider,{value:ed,children:ef})}),F=u.forwardRef(function(e,t){return(0,n.jsx)(I,{children:(0,n.jsx)(N,{...e,ref:t})})});
1e.s(["FieldRoot",0,F],44542);var j=e.i(29315),z=e.i(90219),B=e.i(30780);function W(e={}){let t,{id:n,fallbackControlId:r,native:o=!1,setLabelId:i,focusControl:l}=e,{controlId:s,setLabelId:a}=O(),u=(0,c.useStableCallback)(e=>{a(e),i?.(e)}),d=(t=(0,R.useBaseUiId)(n),(0,L.useIsoLayoutEffect)(()=>(u(t),()=>{u(void 0)}),[t,u]),t),f=s??r;function p(e){let t=(0,B.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),o||function(e){if(l)return l(e,f);if(!f)return;let t=(0,z.ownerDocument)(e.currentTarget).getElementById(f);(0,j.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return o?{id:d,htmlFor:f??void 0,onMouseDown:p}:{id:d,onClick:p,onPointerDown(e){e.preventDefault()}}}e.s(["useLabel",0,W],29370);let _=u.forwardRef(function(e,t){let{render:n,className:r,style:o,id:i,nativeLabel:l=!0,...s}=e,a=x(!1),{labelId:c}=O(),d=u.useRef(null),f=W({id:c??i,native:l});return(0,P.useRenderElement)("label",e,{ref:[t,d],state:a.state,props:[f,s],stateAttributesMapping:h})});e.s(["FieldLabel",0,_],19699);var V=e.i(23715),H=e.i(14060),U=e.i(61463);let Y={...h,...H.transitionStatusMapping},K=u.forwardRef(function(e,t){let{render:r,id:o,className:i,match:l,style:s,...a}=e,c=(0,R.useBaseUiId)(o),{validityData:d,state:f,name:p}=x(!1),{setMessageIds:g}=O(),{errors:m}=w(),b=p?m[p]:null,h="string"==typeof l,v=!1;v=!0===l||(h?!!d.state[l]:!!b||!1===d.state.valid);let{mounted:y,transitionStatus:E,setMounted:S}=(0,U.useTransitionStatus)(v);(0,L.useIsoLayoutEffect)(()=>{if(v&&c)return g(e=>e.concat(c)),()=>{g(e=>e.filter(e=>e!==c))}},[v,c,g]);let k=u.useRef(null),[C,T]=u.useState(null),[I,D]=u.useState(null),A=d.errors.length>1?(0,n.jsx)("ul",{children:d.errors.map(e=>(0,n.jsx)("li",{children:e},e))}):d.error,M=h?A:b||A,N=d.error;null!=b?N=Array.isArray(b)?JSON.stringify(b):b:d.errors.length>1&&(N=JSON.stringify(d.errors)),v&&N!==I&&(D(N),T(M)),(0,V.useOpenChangeComplete)({open:v,ref:k,onComplete(){v||S(!1)}});let F={...f,transitionStatus:E},j=(0,P.useRenderElement)("div",e,{ref:[t,k],state:F,props:[{id:c,children:v?M:C},a],stateAttributesMapping:Y,enabled:y});return y?j:null});e.s(["FieldError",0,K],38838);let $=u.forwardRef(function(e,t){let{render:n,id:r,className:o,style:i,...l}=e,s=(0,R.useBaseUiId)(r),a=x(!1),{setMessageIds:u}=O();return(0,L.useIsoLayoutEffect)(()=>{if(s)return u(e=>e.concat(s)),()=>{u(e=>e.filter(e=>e!==s))}},[s,u]),(0,P.useRenderElement)("p",e,{ref:t,state:a.state,props:[{id:s},l],stateAttributesMapping:h})});e.s(["FieldDescription",0,$],881)},94349,e=>{"use strict";var t=e.i(71645);e.s(["useControlled",0,function({controlled:e,default:n,name:r,state:o="value"}){let{current:i}=t.useRef(void 0!==e),[l,s]=t.useState(n),a=t.useCallback(e=>{i||s(e)},[]);return[i?e:l,a]}])},93479,11587,90037,e=>{"use strict";var t=e.i(43476);e.i(47167);var n=e.i(71645);e.i(19485);var r=e.i(44542),o=e.i(19699),i=e.i(38838),l=e.i(881),s=e.i(94349),a=e.i(977),u=e.i(90219),c=e.i(76477),d=e.i(62094);function f(e,t,r,o,i=!0){let{registerFieldControl:l}=(0,d.useFieldRootContext)(),s=n.useRef(null);s.current||(s.current=Symbol()),(0,a.useIsoLayoutEffect)(()=>{let n=s.current;if(n&&i)return l(n,{controlRef:e,getValue:o,id:t,value:r}),()=>{l(n,void 0)}},[e,i,o,t,l,r])}e.s(["useRegisterFieldControl",0,f],11587);var p=e.i(21643),g=e.i(30628),m=e.i(29315),b=e.i(17514),h=e.i(86790);function v(e={}){let{id:t,implicit:r=!1,controlRef:o}=e,{controlId:i,registerControlId:l}=(0,p.useLabelableContext)(),s=(0,h.useBaseUiId)(t),u=r?i:void 0,d=(0,g.useRefWithInit)(()=>Symbol("labelable-control")),f=n.useRef(!1),y=n.useRef(null!=t),x=(0,c.useStableCallback)(()=>{f.current&&l!==b.NOOP&&(f.current=!1,l(d.current,void 0))});return(0,a.useIsoLayoutEffect)(()=>{let e;if(l!==b.NOOP){if(r){let n=o?.current;e=(0,m.isElement)(n)&&null!=n.closest("label")?t??null:u??s}else if(null!=t)y.current=!0,e=t;else{if(!y.current)return void x();e=s}if(void 0===e)return void x();f.current=!0,l(d.current,e)}},[t,o,u,l,r,s,d,x]),n.useEffect(()=>x,[x]),i??s}e.s(["useLabelableId",0,v],90037);var y=e.i(97449),x=e.i(69095),E=e.i(31888),S=e.i(71403),w=e.i(30780);let k=n.forwardRef(function(e,t){let{render:r,className:o,id:i,name:l,value:g,disabled:m=!1,onValueChange:b,defaultValue:h,autoFocus:k=!1,style:C,...R}=e,{state:T,name:O,disabled:I,setTouched:P,setDirty:D,validityData:A,setFocused:M,setFilled:L,validationMode:N,validation:F}=(0,d.useFieldRootContext)(),j=I||m,z={...T,disabled:j},{labelId:B}=(0,p.useLabelableContext)(),W=v({id:i});(0,a.useIsoLayoutEffect)(()=>{let e=null!=g;F.inputRef.current?.value||e&&""!==g?L(!0):e&&""===g&&L(!1)},[F.inputRef,L,g]);let _=n.useRef(null);(0,a.useIsoLayoutEffect)(()=>{k&&_.current===(0,w.activeElement)((0,u.ownerDocument)(_.current))&&M(!0)},[k,M]);let[V]=(0,s.useControlled)({controlled:g,default:h,name:"FieldControl",state:"value"}),H=void 0!==g,U=H?V:void 0,Y=(0,c.useStableCallback)(()=>F.inputRef.current?.value);return f(F.inputRef,W,U,Y),(0,x.useRenderElement)("input",e,{ref:[t,_],state:z,props:[{id:W,disabled:j,name:O??l,ref:F.inputRef,"aria-labelledby":B,autoFocus:k,...H?{value:U}:{defaultValue:h},onChange(e){let t=e.currentTarget.value;b?.(t,(0,E.createChangeEventDetails)(S.REASONS.none,e.nativeEvent)),D(t!==A.initialValue),L(""!==t)},onFocus(){M(!0)},onBlur(e){P(!0),M(!1),"onBlur"===N&&F.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(P(!0),F.commit(e.currentTarget.value))}},F.getInputValidationProps(),R],stateAttributesMapping:y.fieldValidityMapping})});var C=e.i(51672),R=e.i(61463);let T=n.createContext({disabled:!1});var O=e.i(23716),I=e.i(67805);let P=n.createContext(void 0),D=n.forwardRef(function(e,r){let{render:o,className:i,style:l,disabled:s=!1,...a}=e,{state:u,disabled:c}=(0,d.useFieldRootContext)(!1),f=c||s,p=function(e=!0){let t=n.useContext(P);if(void 0===t&&!e)throw Error((0,I.default)(3));return t}(),g=p?.allValues!==void 0?p?.parent.id:void 0,m=n.useMemo(()=>({disabled:f}
1),[f]),b=(0,x.useRenderElement)("div",e,{ref:r,state:u,props:a,stateAttributesMapping:y.fieldValidityMapping});return(0,t.jsx)(O.LabelableProvider,{controlId:g,children:(0,t.jsx)(T.Provider,{value:m,children:b})})});e.s(["Control",0,k,"Description",()=>l.FieldDescription,"Error",()=>i.FieldError,"Item",0,D,"Label",()=>o.FieldLabel,"Root",()=>r.FieldRoot,"Validity",0,function(e){let{children:r}=e,{validityData:o,invalid:i}=(0,d.useFieldRootContext)(!1),l=n.useMemo(()=>(0,C.getCombinedFieldValidityData)(o,i),[o,i]),s=!1===l.state.valid,{transitionStatus:a}=(0,R.useTransitionStatus)(s),u=n.useMemo(()=>({...l,validity:l.state,transitionStatus:a}),[l,a]);return(0,t.jsx)(n.Fragment,{children:r(u)})}],71975);var A=e.i(71975),A=A;let M=n.forwardRef(function(e,n){return(0,t.jsx)(A.Control,{ref:n,...e})});var L=e.i(75157);e.s(["Input",0,function({className:e,type:n,...r}){return(0,t.jsx)(M,{type:n,"data-slot":"input",className:(0,L.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...r})}],93479)}]);

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.