1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,770978,317067,284,e=>{"use strict";var t=e.i(981460),i=e.i(241233),o=new WeakMap,s=new WeakMap,r={},a=0,n=e=>e&&(e.host||n(e.parentNode)),l=new Set(["script","output","status","next-route-announcer"]),d=e=>(Array.isArray(e)?e[0]:e).ownerDocument.body;e.s(["ariaHidden",0,function(e,c={}){let{defer:u=!0}=c,p=[];return p.push((u?e=>{let t=requestAnimationFrame(()=>e());return()=>cancelAnimationFrame(t)}:e=>e())(()=>{let c=("function"==typeof e?e():e).filter(Boolean);0!==c.length&&p.push(((e,c=d(e),u="data-aria-hidden",p=!0)=>{if(c)return((e,d)=>{let{parentNode:c,markerName:u,controlAttribute:p,explicitBooleanValue:h,followControlledElements:g=!0}=d,f=(Array.isArray(e)?e:[e]).map(e=>{if(c.contains(e))return e;let t=n(e);return t&&c.contains(t)?t:(console.error("[zag-js > ariaHidden] target",e,"in not contained inside",c,". Doing nothing"),null)}).filter(e=>!!e);r[u]||(r[u]=new WeakMap);let b=r[u],v=[],m=new Set,y=new Set(f),C=e=>{!e||m.has(e)||(m.add(e),C(e.parentNode))};f.forEach(e=>{C(e),g&&(0,i.isHTMLElement)(e)&&(0,t.findControlledElements)(e,e=>{C(e)})});let T=e=>{!e||y.has(e)||Array.prototype.forEach.call(e.children,e=>{if(m.has(e))T(e);else try{if(l.has(e.localName)||"status"===e.role||e.hasAttribute("aria-live")||e.matches("[data-live-announcer]"))return;let t=e.getAttribute(p),i=h?"true"===t:null!==t&&"false"!==t,r=(o.get(e)||0)+1,a=(b.get(e)||0)+1;o.set(e,r),b.set(e,a),v.push(e),1===r&&i&&s.set(e,!0),1===a&&e.setAttribute(u,""),i||e.setAttribute(p,h?"true":"")}catch(t){console.error("[zag-js > ariaHidden] cannot operate on ",e,t)}})};return T(c),m.clear(),a++,()=>{v.forEach(e=>{let t=o.get(e)-1,i=b.get(e)-1;o.set(e,t),b.set(e,i),t||(s.has(e)||e.removeAttribute(p),s.delete(e)),i||e.removeAttribute(u)}),--a||(o=new WeakMap,o=new WeakMap,s=new WeakMap,r={})}})(e,{parentNode:c,markerName:u,controlAttribute:"aria-hidden",explicitBooleanValue:!0,followControlledElements:p})})(c))})),()=>{p.forEach(e=>e?.())}}],770978);var c=e.i(650560),u=Object.defineProperty,p=(e,t,i)=>{let o;return(o="symbol"!=typeof t?t+"":t)in e?u(e,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[o]=i},h=e.i(379865),g=e.i(289043),f={activateTrap(e,t){if(e.length>0){let i=e[e.length-1];i!==t&&i.pause()}let i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap(e,t){let i=e.indexOf(t);-1!==i&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},b=[],v=class{constructor(e,o){p(this,"trapStack"),p(this,"config"),p(this,"doc"),p(this,"state",{containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0}),p(this,"portalContainers",new Set),p(this,"listenerCleanups",[]),p(this,"handleFocus",e=>{let t=(0,h.getEventTarget)(e),o=this.findContainerIndex(t,e)>=0;if(o||(0,i.isDocument)(t))o&&(this.state.mostRecentlyFocusedNode=t);else{let t;e.stopImmediatePropagation();let i=!0;if(this.state.mostRecentlyFocusedNode)if((0,g.getTabIndex)(this.state.mostRecentlyFocusedNode)>0){let e=this.findContainerIndex(this.state.mostRecentlyFocusedNode),{tabbableNodes:o}=this.state.containerGroups[e];if(o.length>0){let e=o.findIndex(e=>e===this.state.mostRecentlyFocusedNode);e>=0&&(this.config.isKeyForward(this.state.recentNavEvent)?e+1<o.length&&(t=o[e+1],i=!1):e-1>=0&&(t=o[e-1],i=!1))}}else this.state.containerGroups.some(e=>e.tabbableNodes.some(e=>(0,g.getTabIndex)(e)>0))||(i=!1);else i=!1;i&&(t=this.findNextNavNode({target:this.state.mostRecentlyFocusedNode,isBackward:this.config.isKeyBackward(this.state.recentNavEvent)})),t?this.tryFocus(t):this.tryFocus(this.state.mostRecentlyFocusedNode||this.getInitialFocusNode())}this.state.recentNavEvent=void 0}),p(this,"handlePointerDown",e=>{let t=(0,h.getEventTarget)(e);this.findContainerIndex(t,e)>=0||(P(this.config.clickOutsideDeactivates,e)?this.deactivate({returnFocus:this.config.returnFocusOnDeactivate}):P(this.config.allowOutsideClick,e)||e.preventDefault())}),p(this,"handleClick",e=>{let t=(0,h.getEventTarget)(e);this.findContainerIndex(t,e)>=0||P(this.config.clickOutsideDeactivates,e)||P(this.config.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())}),p(this,"handleTabKey",e=>{if(this.config.isKeyForward(e)||this.config.isKeyBackward(e)){this.state.recentNavEvent=e;let t=this.config.isKeyBackward(e),i=this.findNextNavNode({event:e,isBackward:t});i&&(y(e)&&e.preventDefault(),this.tryFocus(i))}}),p(this,"handleEscapeKey",e=>{O(e)&&!1!==P(this.config.escapeDeactivates,e)&&(e.preventDefault(),this.deactivate())}),p(this,"_mutationObserver"),p(this,"setupMutationObserver",()=>{let e=this.doc.defaultView||window;this._mutationObserver=new e.MutationObserver(e=>{e.some(e=>
1Array.from(e.removedNodes).some(e=>e===this.state.mostRecentlyFocusedNode))&&this.tryFocus(this.getInitialFocusNode()),e.some(e=>"attributes"===e.type&&("aria-controls"===e.attributeName||"aria-expanded"===e.attributeName)||"childList"===e.type&&e.addedNodes.length>0&&Array.from(e.addedNodes).some(e=>e.nodeType===Node.ELEMENT_NODE&&(!!(0,t.hasControllerElements)(e)||!(!e.id||this.state.containers.some(t=>t.contains(e)))&&(0,t.isControlledByExpandedController)(e))))&&this.state.active&&!this.state.paused&&(this.updateTabbableNodes(),this.updatePortalContainers())})}),p(this,"updateObservedNodes",()=>{this._mutationObserver?.disconnect(),this.state.active&&!this.state.paused&&(this.state.containers.map(e=>{this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}),this.portalContainers.forEach(e=>{this.observePortalContainer(e)}))}),p(this,"getInitialFocusNode",()=>{let e=this.getNodeForOption("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!(0,g.isFocusable)(e)){let t=(0,i.getActiveElement)(this.doc);if(t&&this.findContainerIndex(t)>=0)e=t;else{let t=this.state.tabbableGroups[0];e=t&&t.firstTabbableNode||this.getNodeForOption("fallbackFocus")}}else null===e&&(e=this.getNodeForOption("fallbackFocus"));if(!e||(e.isConnected||(e=this.getNodeForOption("fallbackFocus")),!e||!e.isConnected))throw Error("Your focus-trap needs to have at least one focusable element");return e}),p(this,"tryFocus",e=>{if(!1!==e&&e!==(0,i.getActiveElement)(this.doc)){if(!e||!e.focus)return void this.tryFocus(this.getInitialFocusNode());e.focus({preventScroll:!!this.config.preventScroll}),this.state.mostRecentlyFocusedNode=e,E(e)&&e.select()}}),p(this,"deactivate",e=>{if(!this.state.active)return this;let t={onDeactivate:this.config.onDeactivate,onPostDeactivate:this.config.onPostDeactivate,checkCanReturnFocus:this.config.checkCanReturnFocus,...e};clearTimeout(this.state.delayInitialFocusTimer),this.state.delayInitialFocusTimer=void 0,this.removeListeners(),this.state.active=!1,this.state.paused=!1,this.updateObservedNodes(),f.deactivateTrap(this.trapStack,this),this.portalContainers.clear();let i=this.getOption(t,"onDeactivate"),o=this.getOption(t,"onPostDeactivate"),s=this.getOption(t,"checkCanReturnFocus"),r=this.getOption(t,"returnFocus","returnFocusOnDeactivate");i?.();let a=()=>{x(()=>{if(r){let e=this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation);this.tryFocus(e)}o?.()})};return r&&s?s(this.getReturnFocusNode(this.state.nodeFocusedBeforeActivation)).then(a,a):a(),this}),p(this,"pause",e=>{if(this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onPause"),i=this.getOption(e,"onPostPause");return this.state.paused=!0,t?.(),this.removeListeners(),this.updateObservedNodes(),i?.(),this}),p(this,"unpause",e=>{if(!this.state.paused||!this.state.active)return this;let t=this.getOption(e,"onUnpause"),i=this.getOption(e,"onPostUnpause");return this.state.paused=!1,t?.(),this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),i?.(),this}),p(this,"updateContainerElements",e=>(this.state.containers=Array.isArray(e)?e.filter(Boolean):[e].filter(Boolean),this.state.active&&this.updateTabbableNodes(),this.updateObservedNodes(),this)),p(this,"getReturnFocusNode",e=>{let t=this.getNodeForOption("setReturnFocus",{params:[e]});return t||!1!==t&&e}),p(this,"getOption",(e,t,i)=>e&&void 0!==e[t]?e[t]:this.config[i||t]),p(this,"getNodeForOption",(e,{hasFallback:t=!1,params:i=[]}={})=>{let o=this.config[e];if("function"==typeof o&&(o=o(...i)),!0===o&&(o=void 0),!o){if(void 0===o||!1===o)return o;throw Error(`\`${e}\` was specified but was not a node, or did not return a node`)}let s=o;if("string"==typeof o){try{s=this.doc.querySelector(o)}catch(t){throw Error(`\`${e}\` appears to be an invalid selector; error="${t.message}"`)}if(!s&&!t)throw Error(`\`${e}\` as selector refers to no known node`)}return s}),p(this,"findNextNavNode",e=>{let{event:t,isBackward:i=!1}=e,o=e.target||(0,h.getEventTarget)(t);this.updateTabbableNodes();let s=null;if(this.state.tabbableGroups.length>0){let e=this.findContainerIndex(o,t),r=e>=0?this.state.containerGroups[e]:void 0;if(e<0)s=i?this.state.tabbableGroups[this.state.tabbableGroups.length-1].lastTabbableNode:this.state.tabbableGroups[0].firstTabbableNode;else if(i){let i=this.state.tabbableGroups.findIndex(({firstTabbableNode:e})=>o===e);if(i<0&&(r?.container===o||(0,g.isFocusable)(o)&&!(0,g.isTabbable)(o)&&!r?.nextTabbableNode(o,!1))&&(i=e),i>=0){let e=0===i?this.state.tabbableGroups.length-1:i-1,t=this.state.tabbableGroups[e];s=(0,g.getTabIndex)(o)>=0?t.lastTabbableNode:t.lastDomTabbableNode}else y(t)||(s=r?.nextTabbableNode(o,!1))}else{let i=this.state.tabbableGroups.findIndex(({lastTabbableNode:e})=>o===e);if(i<0&&(r?.container===o||(0,g.isFocusable)(o)&&!(0,g.isTabbable)(o)&&!r?.nextTabbableNode(o))&&(i=e),i>=0){let e=i===this.state.tabbableGroups.length-1?0:i+1,t=this.state.tabbableGroups[e];s=(0,g.getTabIndex)(o)>=0?t.firstTabbableNode:t.firstDomTabbableNode}else y(t)||(s=r?.nextTabbableNode(o))}}else s=this.getNodeForOption("fallbackFocus");return s}),this.trapStack=o.trapStack||b;const s={returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,followControlledElements:!0,isKeyForward:C,isKeyBackward:T,...o};this.doc=s.document||(0,i.getDocument)(Array.isArray(e)?e[0]:e),this.config=s,this.updateContainerElements(e),this.setupMutationObserver()}addPortalContainer(e){let t=e.parentElement;t&&!this.portalContainers.has(t)&&(this.portalContainers.add(t),this.state.active&&!this.state.paused&&this.observePortalContainer(t))}observePortalContainer(e){this._mutationObserver?.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["aria-controls","aria-expanded"]})}updatePortalContainers(){this.config.followControlledElements&&this.state.containers.forEac
1h(e=>{(0,t.getControlledElements)(e).forEach(e=>{this.addPortalContainer(e)})})}get active(){return this.state.active}get paused(){return this.state.paused}findContainerIndex(e,t){let i="function"==typeof t?.composedPath?t.composedPath():void 0;return this.state.containerGroups.findIndex(({container:t,tabbableNodes:o})=>t.contains(e)||i?.includes(t)||o.find(t=>t===e)||this.isControlledElement(t,e))}isControlledElement(e,i){return!!this.config.followControlledElements&&(0,t.isControlledElement)(e,i)}updateTabbableNodes(){if(this.state.containerGroups=this.state.containers.map(e=>{let t=(0,g.getTabbables)(e,{getShadowRoot:this.config.getShadowRoot}),i=(0,g.getFocusables)(e,{getShadowRoot:this.config.getShadowRoot}),o=t[0],s=t[t.length-1],r=!1;for(let e=0;e<t.length;e++)if((0,g.getTabIndex)(t[e])>0){r=!0;break}return{container:e,tabbableNodes:t,focusableNodes:i,posTabIndexesFound:r,firstTabbableNode:o,lastTabbableNode:s,firstDomTabbableNode:o,lastDomTabbableNode:s,nextTabbableNode:function(e,o=!0){let s=t.indexOf(e);if(s>=0)return t[s+(o?1:-1)];let r=i.indexOf(e);if(!(r<0)){if(o){for(let e=r+1;e<i.length;e++)if((0,g.isTabbable)(i[e]))return i[e]}else for(let e=r-1;e>=0;e--)if((0,g.isTabbable)(i[e]))return i[e]}}}}),this.state.tabbableGroups=this.state.containerGroups.filter(e=>e.tabbableNodes.length>0),this.state.tabbableGroups.length<=0&&!this.getNodeForOption("fallbackFocus"))throw Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(this.state.containerGroups.find(e=>e.posTabIndexesFound)&&this.state.containerGroups.length>1)throw Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")}addListeners(){if(this.state.active)return f.activateTrap(this.trapStack,this),this.state.delayInitialFocusTimer=this.config.delayInitialFocus?x(()=>{this.tryFocus(this.getInitialFocusNode())}):this.tryFocus(this.getInitialFocusNode()),this.listenerCleanups.push((0,h.addDomEvent)(this.doc,"focusin",this.handleFocus,!0),(0,h.addDomEvent)(this.doc,"mousedown",this.handlePointerDown,{capture:!0,passive:!1}),(0,h.addDomEvent)(this.doc,"touchstart",this.handlePointerDown,{capture:!0,passive:!1}),(0,h.addDomEvent)(this.doc,"click",this.handleClick,{capture:!0,passive:!1}),(0,h.addDomEvent)(this.doc,"keydown",this.handleTabKey,{capture:!0,passive:!1}),(0,h.addDomEvent)(this.doc,"keydown",this.handleEscapeKey)),this}removeListeners(){if(this.state.active)return this.listenerCleanups.forEach(e=>e()),this.listenerCleanups=[],this}activate(e){if(this.state.active)return this;let t=this.getOption(e,"onActivate"),o=this.getOption(e,"onPostActivate"),s=this.getOption(e,"checkCanFocusTrap");s||this.updateTabbableNodes(),this.state.active=!0,this.state.paused=!1,this.state.nodeFocusedBeforeActivation=(0,i.getActiveElement)(this.doc),t?.();let r=()=>{s&&this.updateTabbableNodes(),this.addListeners(),this.updateObservedNodes(),o?.()};return s?s(this.state.containers.concat()).then(r,r):r(),this}},m=e=>e?.type==="keydown",y=e=>m(e)&&e?.key==="Tab",C=e=>m(e)&&"Tab"===e.key&&!e?.shiftKey,T=e=>m(e)&&"Tab"===e.key&&e?.shiftKey,P=(e,...t)=>"function"==typeof e?e(...t):e,O=e=>!e.isComposing&&"Escape"===e.key,x=e=>setTimeout(e,0),E=e=>"input"===e.localName&&"select"in e&&"function"==typeof e.select;e.s(["trapFocus",0,function(e,t={}){let o,s=(0,c.raf)(()=>{let s=(Array.isArray(e)?e:[e]).map(e=>"function"==typeof e?e():e).filter(e=>null!=e);if(0===s.length)return;let r=s[0];o=new v(s,{escapeDeactivates:!1,allowOutsideClick:!0,preventScroll:!0,returnFocusOnDeactivate:!0,delayInitialFocus:!1,fallbackFocus:r,...t,document:(0,i.getDocument)(r)});try{o.activate()}catch{}});return function(){o?.deactivate(),s()}}],317067);var N=e.i(49058),F=e.i(412652),D=e.i(979178),k="data-scroll-lock";function w(e){let t=(0,N.getComputedStyle)(e),i=t?.scrollbarGutter;return"stable"===i||i?.startsWith("stable ")===!0}e.s(["preventBodyScroll",0,function(e){let t,i=e??document,o=i.defaultView??window,{documentElement:s,body:r}=i;if(r.hasAttribute(k))return;let a=w(s)||w(r),n=o.innerWidth-s.clientWidth;r.setAttribute(k,"");let l=Math.round(s.getBoundingClientRect().left)+s.scrollLeft?"paddingLeft":"paddingRight",d=[(0,D.setStyleProperty)(s,"--scrollbar-width",`${n}px`),(0,F.isIos)()?(()=>
1{let{scrollX:e,scrollY:t,visualViewport:i}=o,s=i?.offsetLeft??0,d=i?.offsetTop??0,c={position:"fixed",overflow:"hidden",top:`${-(t-Math.floor(d))}px`,left:`${-(e-Math.floor(s))}px`,right:"0"};!a&&n>0&&(c[l]=`${n}px`);let u=(0,D.setStyle)(r,c);return()=>{u?.(),o.scrollTo({left:e,top:t,behavior:"instant"})}})():(t={overflow:"hidden"},!a&&n>0&&(t[l]=`${n}px`),(0,D.setStyle)(r,t))];return()=>{d.forEach(e=>e?.()),r.removeAttribute(k)}}],284)},167756,e=>{"use strict";var t=e.i(197050),i=e.i(610604),[o,s]=(0,t.createContext)({name:"RenderStrategyContext",hookName:"useRenderStrategyContext",providerName:"<RenderStrategyPropsProvider />"});e.s(["RenderStrategyPropsProvider",0,o,"splitRenderStrategyProps",0,e=>(0,i.createSplitProps)()(e,["lazyMount","unmountOnExit"]),"useRenderStrategyPropsContext",0,s])},589946,e=>{"use strict";var t=(0,e.i(602726).createAnatomy)("dialog").parts("trigger","backdrop","positioner","content","title","description","closeTrigger"),i=t.build();e.s(["anatomy",0,t,"parts",0,i])},29647,484306,e=>{"use strict";var t=e.i(284355),i=e.i(167756),o=e.i(303405),s=e.i(786631),r=e.i(518471),[a,n]=(0,e.i(197050).createContext)({name:"DialogContext",hookName:"useDialogContext",providerName:"<DialogProvider />"});e.s(["DialogProvider",0,a,"useDialogContext",0,n],484306);var l=e.i(272653),d=e.i(530249),c=e.i(950899),u=(0,l.forwardRef)((e,t)=>{let a=n(),l=(0,r.usePresence)({...(0,i.useRenderStrategyPropsContext)(),present:a.open}),u=(0,d.mergeProps)(a.getBackdropProps(),l.getPresenceProps(),e);return l.unmounted?null:(0,c.jsx)(s.ark.div,{...u,ref:(0,o.composeRefs)(l.ref,t)})});u.displayName="DialogBackdrop";var p=(0,l.forwardRef)((e,t)=>{let i=(0,d.mergeProps)(n().getCloseTriggerProps(),e);return(0,c.jsx)(s.ark.button,{...i,ref:t})});p.displayName="DialogCloseTrigger";var h=e.i(491055),g=(0,l.forwardRef)((e,t)=>{let i=n(),r=(0,h.usePresenceContext)(),a=(0,d.mergeProps)(i.getContentProps(),r.getPresenceProps(),e);return r.unmounted?null:(0,c.jsx)(s.ark.div,{...a,ref:(0,o.composeRefs)(r.ref,t)})});g.displayName="DialogContent";var f=e=>e.children(n()),b=(0,l.forwardRef)((e,t)=>{let i=(0,d.mergeProps)(n().getDescriptionProps(),e);return(0,c.jsx)(s.ark.div,{...i,ref:t})});b.displayName="DialogDescription";var v=(0,l.forwardRef)((e,t)=>{let i=(0,d.mergeProps)(n().getPositionerProps(),e);return(0,h.usePresenceContext)().unmounted?null:(0,c.jsx)(s.ark.div,{...i,ref:t})});v.displayName="DialogPositioner";var m=e.i(727990),y=e.i(385469),C=e.i(550284),T=e.i(770978),P=e.i(156920),O=e.i(917169),x=e.i(49058),E=e.i(516446),N=e.i(650560),F=e.i(317067),D=e.i(284),k=e.i(803661),w=e.i(387979),R=e=>e.ids?.positioner??`dialog:${e.id}:positioner`,I=e=>e.ids?.backdrop??`dialog:${e.id}:backdrop`,S=e=>e.ids?.content??`dialog:${e.id}:content`,A=(e,t)=>{let i=e.ids?.trigger;return null!=i?(0,w.isFunction)(i)?i(t):i:t?`dialog:${e.id}:trigger:${t}`:`dialog:${e.id}:trigger`},B=e=>e.ids?.title??`dialog:${e.id}:title`,G=e=>e.ids?.description??`dialog:${e.id}:description`,L=e=>e.ids?.closeTrigger??`dialog:${e.id}:close`,j=e=>e.getById(S(e)),V=e=>(0,k.queryAll)(e.getDoc(),`[data-scope="dialog"][data-part="trigger"][data-ownedby="${e.id}"]`),M=(e,t)=>null==t?V(e)[0]:e.getById(A(e,t)),$=(0,P.createMachine)({props({props:e,scope:t}){let i="alertdialog"===e.role,o=i?()=>t.getById(L(t)):void 0,s="boolean"!=typeof e.modal||e.modal;return{role:"dialog",modal:s,trapFocus:s,preventScroll:s,closeOnInteractOutside:s&&!i,closeOnEscape:!0,restoreFocus:!0,initialFocusEl:o,...e}},initialState:({prop:e})=>e("open")||e("defaultOpen")?"open":"closed",context:({bindable:e,prop:t,scope:i})=>({rendered:e(()=>({defaultValue:{title:!0,description:!0}})),triggerValue:e(()=>
1({defaultValue:t("defaultTriggerValue")??null,value:t("triggerValue"),onChange(e){let o=t("onTriggerValueChange");if(!o)return;let s=M(i,e);o({value:e,triggerElement:s})}}))}),watch({track:e,action:t,prop:i}){e([()=>i("open")],()=>{t(["toggleVisibility"])})},states:{open:{entry:["checkRenderedElements","syncZIndex","setInitialFocus"],effects:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{"CONTROLLED.CLOSE":{target:"closed"},CLOSE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnClose"]},{target:"closed",actions:["invokeOnClose"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}},closed:{on:{"CONTROLLED.OPEN":{target:"open"},OPEN:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],TOGGLE:[{guard:"isOpenControlled",actions:["invokeOnOpen","setTriggerValue"]},{target:"open",actions:["invokeOnOpen","setTriggerValue"]}],"TRIGGER_VALUE.SET":{actions:["setTriggerValue"]}}}},implementations:{guards:{isOpenControlled:({prop:e})=>void 0!=e("open")},effects:{trackDismissableElement:({scope:e,send:t,prop:i})=>(0,O.trackDismissableElement)(()=>j(e),{type:"dialog",defer:!0,pointerBlocking:i("modal"),exclude:V(e),onInteractOutside(e){i("onInteractOutside")?.(e),i("closeOnInteractOutside")||e.preventDefault()},persistentElements:i("persistentElements"),onFocusOutside:i("onFocusOutside"),onPointerDownOutside:i("onPointerDownOutside"),onRequestDismiss:i("onRequestDismiss"),onEscapeKeyDown(e){i("onEscapeKeyDown")?.(e),i("closeOnEscape")||e.preventDefault()},onDismiss(){t({type:"CLOSE",src:"interact-outside"})}}),preventScroll({scope:e,prop:t}){if(t("preventScroll"))return(0,D.preventBodyScroll)(e.getDoc())},trapFocus({scope:e,prop:t,context:i}){if(t("trapFocus"))return(0,F.trapFocus)(()=>j(e),{preventScroll:!0,returnFocusOnDeactivate:!!t("restoreFocus"),initialFocus:t("initialFocusEl"),setReturnFocus:o=>{let s=t("finalFocusEl")?.();if(s)return s;let r=i.get("triggerValue");if(r){let t=M(e,r);if(t)return t}let a=V(e)[0];return a||o},getShadowRoot:!0})},hideContentBelow({scope:e,prop:t}){if(t("modal"))return(0,T.ariaHidden)(()=>[j(e)],{defer:!0})}},actions:{setInitialFocus({prop:e,scope:t}){e("trapFocus")||(0,N.raf)(()=>{let i=(0,E.getInitialFocus)({root:j(t),getInitialEl:e("initialFocusEl")});i?.focus({preventScroll:!0})})},checkRenderedElements({context:e,scope:t}){(0,N.raf)(()=>{e.set("rendered",{title:!!t.getById(B(t)),description:!!t.getById(G(t))})})},syncZIndex({scope:e}){(0,N.raf)(()=>{let t=j(e);if(!t)return;let i=(0,x.getComputedStyle)(t);[e.getById(R(e)),e.getById(I(e))].forEach(e=>{e?.style.setProperty("--z-index",i.zIndex),e?.style.setProperty("--layer-index",i.getPropertyValue("--layer-index"))})})},invokeOnClose({prop:e}){e("onOpenChange")?.({open:!1})},invokeOnOpen({prop:e}){e("onOpenChange")?.({open:!0})},setTriggerValue({context:e,event:t}){void 0!==t.value&&e.set("triggerValue",t.value)},toggleVisibility({prop:e,send:t,event:i}){t({type:e("open")?"CONTROLLED.OPEN":"CONTROLLED.CLOSE",previousEvent:i})}}}}),K=e.i(8829),_=e.i(480099),z=e.i(589946),W=e.i(857165),H=e.i(255911),U=e=>{let[t,{children:o,...s}]=(0,m.splitPresenceProps)(e),[n]=(0,i.splitRenderStrategyProps)(t),u=(e=>{let t=(0,l.useId)(),{getRootNode:i}=(0,y.useEnvironmentContext)(),{dir:o}=(0,C.useLocaleContext)(),s={id:t,getRootNode:i,dir:o,...e};return function(e,t){let{state:i,send:o,context:s,prop:r,scope:a}=e,n=r("aria-label"),l=i.matches("open"),d=s.get("triggerValue");return{open:l,setOpen(e){i.matches("open")!==e&&o({type:e?"OPEN":"CLOSE"})},triggerValue:d,setTriggerValue(e){o({type:"TRIGGER_VALUE.SET",value:e})},getTriggerProps(e={}){let{value:i}=e,s=null!=i&&d===i;return t.button({...z.parts.trigger.attrs,dir:r("dir"),id:A(a,i),"data-ownedby":a.id,"data-value":i,"aria-haspopup":"dialog",type:"button","aria-expanded":null==i?l:l&&s,"data-state":l?"open":"closed","aria-controls":S(a),"data-current":(0,K.dataAttr)(s),onClick(e){e.defaultPrevented||o({type:l&&null!=i&&!s?"TRIGGER_VALUE.SET":"TOGGLE",value:i})}})},getBackdropProps:()=>t.element({...z.parts.backdrop.attrs,dir:r("dir"),hidden:!l,id:I(a),"data-state":l?"open":"closed"}),getPositionerProps:()=>t.element({...z.parts.positioner.attrs,dir:r("dir"),id:R(a),style:(0,_.compact)({pointerEvents:l&&r("modal")?void 0:"none"})}),getContentProps(){let e=s.get("rendered");return t.element({...z.parts.content.attrs,dir:r("dir"),role:r("role"),hidden:!l,id:S(a),tabIndex:-1,"data-state":l?"open":"closed","aria-modal":r("modal"),"aria-label":n||void 0,"aria-labelledby":n||!e.title?void 0:B(a),"aria-describedby":e.description?G(a):void 0,style:(0,_.compact)({pointerEvents:r("modal")?void 0:"auto"})})},getTitleProps:()=>t.element({...z.parts.title.attrs,dir:r("dir"),id:B(a)}),getDescriptionProps:()=>t.element({...z.parts.description.attrs,dir:r("dir"),id:G(a)}),getCloseTriggerProps:()=>t.button({...z.parts.closeTrigger.attrs,dir:r("dir"),id:L(a),type:"button",onClick(e){e.defaultPrevented||(e.stopPropagation(),o({type:"CLOSE"}))}})}}((0,H.useMachine)($,s),W.normalizeProps)})(s);return(0,c.jsx)(a,{value:u,children:(0,c.jsx)(i.RenderStrategyPropsProvider,{value:n,children:(0,c.jsx)(h.PresenceProvider,{value:(0,r.usePresence)((0,d.mergeProps)({present:u.open},t)),children:o})})})},q=e=>{let[t,{value:o,children:s}]=(0,m.splitPresenceProps)(e),[n]=(0,i.splitRenderStrategyProps)(t);return(0,c.jsx)(a,{value:o,children:(0,c.jsx)(i.RenderStrategyPropsProvider,{value:n,children:(0,c.jsx)(h.PresenceProvider,{value:(0,r.usePresence)((0,d.mergeProps)({present:o.open},t)),children:s})})})},Y=(0,l.forwardRef)((e,t)=>{let i=(0,d.mergeProps)(n().getTitleProps(),e);return(0,c.jsx)(s.ark.h2,{...i,ref:t})});Y.displayName="DialogTitle";var Z=(0,e.i(610604).createSplitProps)(),J=(0,l.forwardRef)((e,t)=>{let[i,o]=Z(e,["value"]),r=n(),a=(0,h.usePresenceContext)(),l=r.getTriggerProps(i),u=(0,d.mergeProps)({...l,"aria-controls":a.unmounted?void 0:l["aria-controls"]},o);return(0,c.jsx)(s.ark.button,{...u,ref:t})});J.displayName="DialogTrigger";var Q=(0,t.__exportAll)({Backdrop:()=>u,CloseTrigger:()=>p,Content:()=>g,Context:()=>f,Description:()=>b,Positioner:()=>v,Root:()=>U,RootProvider:()=>q,Title:()=>Y,Trigger:()=>J});e.s(["Dialog",0,Q],29647)},718836,e=>{"use strict";var t=e.i(950899),i=e.i(225215),o=e.i(256177),s=e.i(664503),r=e.i(443578),a=e.i(818690);e.s(["BackToButton",0,({href:e,hint:n,boxSize:l=6,...d})=>{let c=(0,t.jsx)(s.IconButton,{...d,boxSize:l,variant:"icon_secondary",children:(0,t.jsx)(i.Icon,{transform:"rotate(180deg)",boxSize:l,children:(0,t.jsx)(o.default,{})})});return(0,t.jsx)(a.Tooltip,{content:n,disabled:!n,children:e?(0,t.jsx)(r.Link,{href:e,asChild:!0,children:c}):c})}])},467866,132884,e=>{"use strict";var t=e.i(950899);e.s([],306544),e.i(306544);var i=e.i(29647),o=e.i(484306),s=e.i(272653),r=e.i(48775),a=e.i(208906);let{withRootProvider:n,withContext:l,useStyles:d,PropsProvider:c}=(0,r.createSlotRecipeContext)({key:"dialog"}),u=n(i.Dialog.RootProvider,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),p=n(i.Dialog.Root,{defaultProps:{unmountOnExit:!0,lazyMount:!0}}),h=l(i.Dialog.Trigger,"trigger",{forwardAsChild:!0}),g=l(i.Dialog.Positioner,"positioner",{forwardAsChild:!0}),f=l(i.Dialog.Content,"content",{forwardAsChild:!0}),b=l(i.Dialog.Description,"description",{forwardAsChild:!0}),v=l(i.Dialog.Title,"title",{forwardAsChild:!0}),m=l(i.Dialog.CloseTrigger,"closeTrigger",{forwardAsChild:!0}),y=(0,s.forwardRef)(function(e,i){let s=(0,o.useDialogContext)();return(0,t.jsx)(a.chakra.button,{...e,ref:i,onClick:()=>s.setOpen(!1)})}),C=l(i.Dialog.Backdrop,"backdrop",{forwardAsChild:!0}),T=l("div","body"),P=l("div","footer"),O=l("div","header"),x=i.Dialog.Context;e.s(["ActionTrigger",0,y,"Backdrop",0,C,"Body",0,T,"CloseTrigger",0,m,"Content",0,f,"Context",0,x,"Description",0,b,"Footer",0,P,"Header",0,O,"Positioner",0,g,"PropsProvider",0,c,"Root",0,p,"RootProvider",0,u,"Title",0,v,"Trigger",0,h],560071);var E=e.i(560071);e.s(["Dialog",0,E],132884);var E=E,N=e.i(507455),F=e.i(718836),D=e.i(533598);let k=s.forwardRef(function(e,i){let{children:o,portalled:s=!0,portalRef:r,backdrop:a=!0,...n}=e;return(0,t.jsxs)(N.Portal,{disabled:!s,container:r,children:[a&&(0,t.jsx)(E.Backdrop,{}),(0,t.jsx)(E.Positioner,{children:(0,t.jsx)(E.Content,{ref:i,...n,asChild:!1,children:o})})]})}),w=s.forwardRef(function(e,i){return(0,t.jsx)(E.CloseTrigger,{...e,asChild:!0,children:(0,t.jsx)(D.CloseButton,{ref:i,children:e.children})})}),R=s.forwardRef(function(e,i){let{startElement:o,onBackToClick:s,...r}=e,a=o??(s&&(0,t.jsx)(F.BackToButton,{onClick:s}));return(0,t.jsxs)(E.Header,{ref:i,...r,children:[a,(0,t.jsx)(E.Title,{children:e.children}),(0,t.jsx)(w,{ml:"auto"})]})}),I=E.Footer,S=E.Body;E.Backdrop;let A=E.Title;E.Description;let B=E.Trigger,G=E.ActionTrigger;e.s(["DialogActionTrigger",0,G,"DialogBody",0,S,"DialogCloseTrigger",0,w,"DialogContent",0,k,"DialogFooter",0,I,"DialogHeader",0,R,"DialogRoot",0,e=>{let{adaptive:i,...o}=e;
1return i?(0,t.jsx)(E.Root,{adaptive:!0,placement:{base:"bottom",lg:"center"},motionPreset:{base:"slide-in-bottom",lg:"scale"},...o}):(0,t.jsx)(E.Root,{...o})},"DialogTitle",0,A,"DialogTrigger",0,B],467866)},331148,e=>{"use strict";var{floor:t,abs:i,round:o,min:s,max:r,pow:a,sign:n}=Math;e.s(["getValuePercent",0,(e,t,i)=>{let o;return((Number.isNaN(o=e)?0:o)-t)/(i-t)},"setValueAtIndex",0,(e,t,i)=>e[t]===i?e:[...e.slice(0,t),i,...e.slice(t+1)],"toPx",0,e=>"number"==typeof e?`${e}px`:e])}]);
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.