1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="783c0891-9ae4-5077-82ea-507325ac4f29")}catch(e){}}(); 3(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`5d6e2a6dc100e27104c4f4f9ae908d50e0e81b8a`}}catch{}})();import{Q as e,q as t}from"./components-Rp1jvpwi.js";import{a as n,c as r,d as i,g as a,m as o,p as s,r as c,t as l,u}from"./render-CRpnghTu.js";import{t as d}from"./owner-B43Dqto5.js";import{f,l as p,m,n as h,o as g}from"./use-sync-refs-BSUxMztQ.js";import{n as _,t as v}from"./hidden-l1jeRjom.js";import{n as y,t as b}from"./description-CIuYbyLQ.js";import{t as x}from"./keyboard-BCA8cE_n.js";import{t as S}from"./close-provider-BdsKFJpU.js";import{a as C,c as w,f as T,g as E,i as D,l as ee,m as te,n as ne,o as re,p as O,r as ie,t as ae}from"./portal-CQyy6fPX.js";import{t as oe}from"./use-inert-others-C1gpXXLK.js";import{c as k,l as A,n as j,t as M,u as N}from"./focus-management-DKm15Fxr.js";import{a as se,i as P,n as F,o as I,r as ce,t as L}from"./use-tab-direction-B1mDlp5_.js";import{i as R,n as z,r as le}from"./open-closed-D_TurUA2.js";import{i as ue,n as B,r as V,t as H}from"./transition-BSDKZE4h.js";var U=e(t(),1);function W(e,t){let n=(0,U.useRef)([]),r=i(e);(0,U.useEffect)(()=>{let e=[...n.current];for(let[i,a]of t.entries())if(n.current[i]!==a){let i=r(t,e);return n.current=t,i}},[r,...t])}function G(e){function t(){document.readyState!==`loading`&&(e(),document.removeEventListener(`DOMContentLoaded`,t))}typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`DOMContentLoaded`,t),t())}var K=[];G(()=>{function e(e){if(!g(e.target)||e.target===document.body||K[0]===e.target)return;let t=e.target;t=t.closest(j),K.unshift(t??e.target),K=K.filter(e=>e!=null&&e.isConnected),K.splice(10)}window.addEventListener(`click`,e,{capture:!0}),window.addEventListener(`mousedown`,e,{capture:!0}),window.addEventListener(`focus`,e,{capture:!0}),document.body.addEventListener(`click`,e,{capture:!0}),document.body.addEventListener(`mousedown`,e,{capture:!0}),document.body.addEventListener(`focus`,e,{capture:!0})});function de(e,t=typeof document<`u`?document.defaultView:null,n){let r=O(e,`escape`);I(t,`keydown`,e=>{r&&(e.defaultPrevented||e.key===x.Escape&&n(e))})}function fe(){let[e]=(0,U.useState)(()=>typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(`(pointer: coarse)`):null),[t,n]=(0,U.useState)(e?.matches??!1);return s(()=>{if(!e)return;function t(e){n(e.matches)}return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[e]),t}function q(e){if(!e)return new Set;if(typeof e==`function`)return new Set(e());let t=new Set;for(let n of e.current)f(n.current)&&t.add(n.current);return t}var pe=`div`,J=(e=>(e[e.None=0]=`None`,e[e.InitialFocus=1]=`InitialFocus`,e[e.TabLock=2]=`TabLock`,e[e.FocusLock=4]=`FocusLock`,e[e.RestoreFocus=8]=`RestoreFocus`,e[e.AutoFocus=16]=`AutoFocus`,e))(J||{});function Y(e,t){let n=(0,U.useRef)(null),a=h(n,t),{initialFocus:s,initialFocusFallback:l,containers:u,features:d=15,...f}=e;ue()||(d=0);let m=w(n.current);X(d,{ownerDocument:m});let y=_e(d,{ownerDocument:m,container:n,initialFocus:s,initialFocusFallback:l});ve(d,{ownerDocument:m,container:n,containers:u,previousActiveElement:y});let b=F(),x=i(e=>{if(!p(n.current))return;let t=n.current;(e=>e())(()=>{r(b.current,{[L.Forwards]:()=>{A(t,k.First,{skipElements:[e.relatedTarget,l]})},[L.Backwards]:()=>{A(t,k.Last,{skipElements:[e.relatedTarget,l]})}})})}),S=O(!!(d&2),`focus-trap#tab-lock`),C=o(),T=(0,U.useRef)(!1),E={ref:a,onKeyDown(e){e.key==`Tab`&&(T.current=!0,C.requestAnimationFrame(()=>{T.current=!1}))},onBlur(e){if(!(d&4))return;let t=q(u);p(n.current)&&t.add(n.current);let i=e.relatedTarget;g(i)&&i.dataset.headlessuiFocusGuard!==`true`&&(ye(t,i)||(T.current?A(n.current,r(b.current,{[L.Forwards]:()=>k.Next,[L.Backwards]:()=>k.Previous})|k.WrapAround,{relativeTo:e.target}):g(e.target)&&N(e.target)))}},D=c();return U.createElement(U.Fragment,null,S&&U.createElement(v,{as:`button`,type:`button`,"data-headlessui-focus-guard":!0,onFocus:x,features:_.Focusable}),D({ourProps:E,theirProps:f,defaultTag:pe,name:`FocusTrap`}),S&&U.createElement(v,{as:`button`,type:`button`,"data-headlessui-focus-guard":!0,onFocus:x,features:_.Focusable}))}var me=n(Y),he=Object.assign(me,{features:J});function ge(e=!0){let t=(0,U.useRef)(K.slice());return W(([e],[n])=>{n===!0&&e===!1&&a(()=>{t.current.splice(0)}),n===!1&&e===!0&&(t.current=K.slice())},[e,K,t]),i(()=>t.current.find(e=>e!=null&&e.isConnected)??null)}function X(e,{ownerDocument:t}){let n=!!(e&8),r=ge(n);W(()=>{n||d(t?.body)&&N(r())},[n]),C(()=>{n&&N(r())})}function _e(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=(0,U.useRef)(null),s=O(!!(e&1),`focus-trap#initial-focus`),c=V();return W(()=>{if(e===0)return;if(!s){i!=null&&i.current&&N(i.current);return}let l=n.current;l&&a(()=>
3{if(!c.current)return;let n=t?.activeElement;if(r!=null&&r.current){if(r?.current===n){o.current=n;return}}else if(l.contains(n)){o.current=n;return}if(r!=null&&r.current)N(r.current);else{if(e&16){if(A(l,k.First|k.AutoFocus)!==M.Error)return}else if(A(l,k.First)!==M.Error)return;if(i!=null&&i.current&&(N(i.current),t?.activeElement===i.current))return;console.warn(`There are no focusable elements inside the <FocusTrap />`)}o.current=t?.activeElement})},[i,s,e]),o}function ve(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let a=V(),o=!!(e&4);I(t?.defaultView,`focus`,e=>{if(!o||!a.current)return;let t=q(r);p(n.current)&&t.add(n.current);let s=i.current;if(!s)return;let c=e.target;p(c)?ye(t,c)?(i.current=c,N(c)):(e.preventDefault(),e.stopPropagation(),N(s)):N(i.current)},!0)}function ye(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var be=(e=>(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(be||{}),xe=(e=>(e[e.SetTitleId=0]=`SetTitleId`,e))(xe||{}),Se={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Z=(0,U.createContext)(null);Z.displayName=`DialogContext`;function Q(e){let t=(0,U.useContext)(Z);if(t===null){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Q),t}return t}function Ce(e,t){return r(t.type,Se,e,t)}var we=n(function(e,t){let n=(0,m.useId)(),{id:r=`headlessui-dialog-${n}`,open:a,onClose:o,initialFocus:l,role:d=`dialog`,autoFocus:f=!0,__demoMode:p=!1,unmount:g=!1,..._}=e,v=(0,U.useRef)(!1);d=function(){return d===`dialog`||d===`alertdialog`?d:(v.current||(v.current=!0,console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),`dialog`)}();let y=R();a===void 0&&y!==null&&(a=(y&z.Open)===z.Open);let x=(0,U.useRef)(null),C=h(x,t),O=w(x.current),k=+!a,[A,j]=(0,U.useReducer)(Ce,{titleId:null,descriptionId:null,panelRef:(0,U.createRef)()}),M=i(()=>o(!1)),N=i(e=>j({type:0,id:e})),P=ue()?k===0:!1,[F,I]=ne(),L={get current(){return A.panelRef.current??x.current}},B=se(),{resolveContainers:V}=ce({mainTreeNode:B,portals:F,defaultContainers:[L]}),H=y!==null&&(y&z.Closing)===z.Closing;oe(p||H?!1:P,{allowed:i(()=>[x.current?.closest(`[data-headlessui-portal]`)??null]),disallowed:i(()=>[B?.closest(`body > *:not(#headlessui-portal-root)`)??null])});let W=E.get(null);s(()=>{if(P)return W.actions.push(r),()=>W.actions.pop(r)},[W,r,P]);let G=te(W,(0,U.useCallback)(e=>W.selectors.isTop(e,r),[W,r]));ee(G,V,e=>{e.preventDefault(),M()}),de(G,O?.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&`blur`in document.activeElement&&typeof document.activeElement.blur==`function`&&document.activeElement.blur(),M()}),re(p||H?!1:P,O,V),T(P,x,M);let[K,q]=b(),pe=(0,U.useMemo)(()=>[{dialogState:k,close:M,setTitleId:N,unmount:g},A],[k,M,N,g,A]),Y=u({open:k===0}),me={ref:C,id:r,role:d,tabIndex:-1,"aria-modal":p?void 0:k===0||void 0,"aria-labelledby":A.titleId,"aria-describedby":K,unmount:g},ge=!fe(),X=J.None;P&&!p&&(X|=J.RestoreFocus,X|=J.TabLock,f&&(X|=J.AutoFocus),ge&&(X|=J.InitialFocus));let _e=c();return U.createElement(le,null,U.createElement(D,{force:!0},U.createElement(ie,null,U.createElement(Z.Provider,{value:pe},U.createElement(ae,{target:x},U.createElement(D,{force:!1},U.createElement(q,{slot:Y},U.createElement(I,null,U.createElement(he,{initialFocus:l,initialFocusFallback:x,containers:V,features:X},U.createElement(S,{value:M},_e({ourProps:me,theirProps:_,slot:Y,defaultTag:Te,features:Ee,visible:k===0,name:`Dialog`})))))))))))}),Te=`div`,Ee=l.RenderStrategy|l.Static;function De(e,t){let{transition:n=!1,open:r,...i}=e,a=R(),o=e.hasOwnProperty(`open`)||a!==null,s=e.hasOwnProperty(`onClose`);if(!o&&!s)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!o)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!=`boolean`)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!=`function`)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?U.createElement(P,null,U.createElement(H,{show:r,transition:n,unmount:i.unmount},U.createElement(we,{ref:t,...i}))):U.createElement(P,null,U.createElement(we,{ref:t,open:r,...i}))}var Oe=`div`;function ke(e,t){let n=(0,m.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:a=!1,...o}=e,[{dialogState:s,unmount:l},d]=Q(`Dialog.Panel`),f=h(t,d.panelRef),p=u({open:s===0}),g={ref:f,id:r,onClick:i(e=>{e.stopPropagation()})},_=a?B:U.Fragment,v=a?{unmount:l}:{},y=c();return U.createElement(_,{...v},y({ourProps:g,theirProps:o,slot:p,defaultTag:Oe,name:`Dialog.Panel`}))}var Ae=`div`;function je(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:a}]=Q(`Dialog.Backdrop`),o=u({open:i===0}),s={ref:t,"aria-hidden":!0},l=n?B:U.Fragment,d=n?{unmount:a}:{},f=c();return U.createElement(l,{...d},f({ourProps:s,theirProps:r,slot:o,defaultTag:Ae,name:`Dialog.Backdrop`}))}var Me=`h2`;function Ne(e,t){let n=(0,m.useId)(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:a,setTitleId:o}]=Q(`Dialog.Title`),s=h(t);(0,U.useEffect)(()=>(o(r),()=>o(null)),[r,o]);let l=u({open:a===0}),d={ref:s,id:r};return c()({ourProps:d,theirProps:i,slot:l,defaultTag:Me,name:`Dialog.Title`})}var Pe=n(De),Fe=n(ke),Ie=n(je),$=n(Ne),Le=Object.assign(Pe,{Panel:Fe,Title:$,Description:y});export{Fe as i,$ as n,Le as r,Ie as t}; 4//# debugId=783c0891-9ae4-5077-82ea-507325ac4f29
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.