1import{c as b,o as h,u as j,A as P}from"./BclhCOHB.js";import{a1 as G,J as N,k as O,s as p,d as w,a2 as A,a4 as T,a3 as y,H as U,G as K,I as L,L as W,v as B,aO as q}from"./Bcc8-a-q.js";function E(e){if(b.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty("value")){let t=h(e);if(t)return t.ownerDocument}return document}let x=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var V=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(V||{}),X=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(X||{}),z=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(z||{});function $(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(x)).sort((t,o)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(o.tabIndex||Number.MAX_SAFE_INTEGER)))}var I=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(I||{});function H(e,t=0){var o;return e===((o=E(e))==null?void 0:o.body)?!1:j(t,{0(){return e.matches(x)},1(){let r=e;for(;r!==null;){if(r.matches(x))return!0;r=r.parentElement}return!1}})}function fe(e){let t=E(e);G(()=>{t&&!H(t.activeElement,0)&&Q(e)})}var J=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(J||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Q(e){e==null||e.focus({preventScroll:!0})}let Y=["textarea","input"].join(",");function Z(e){var t,o;return(o=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Y))!=null?o:!1}function ee(e,t=o=>o){return e.slice().sort((o,r)=>{let i=t(o),n=t(r);if(i===null||n===null)return 0;let a=i.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ve(e,t){return te($(),t,{relativeTo:e})}function te(e,t,{sorted:o=!0,relativeTo:r=null,skipElements:i=[]}={}){var n;let a=(n=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e==null?void 0:e.ownerDocument)!=null?n:document,l=Array.isArray(e)?o?ee(e):e:$(e);i.length>0&&l.length>1&&(l=l.filter(c=>!i.includes(c))),r=r??a.activeElement;let f=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,l.indexOf(r))-1;if(t&4)return Math.max(0,l.indexOf(r))+1;if(t&8)return l.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},m=0,d=l.length,v;do{if(m>=d||m+d<=0)return 0;let c=s+m;if(t&16)c=(c+d)%d;else{if(c<0)return 3;if(c>=d)return 1}v=l[c],v==null||v.focus(u),m+=f}while(v!==a.activeElement);return t&6&&Z(v)&&v.select(),2}function re(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function ne(){return/Android/gi.test(window.navigator.userAgent)}function oe(){return re()||ne()}function g(e,t,o){b.isServer||N(r=>{document.addEventListener(e,t,o),r(()=>document.removeEventListener(e,t,o))})}function C(e,t,o){b.isServer||N(r=>{window.addEventListener(e,t,o),r(()=>window.removeEventListener(e,t,o))})}function me(e,t,o=O(()=>!0)){function r(n,a){if(!o.value||n.defaultPrevented)return;let l=a(n);if(l===null||!l.getRootNode().contains(l))return;let f=(function s(u){return typeof u=="function"?s(u()):Array.isArray(u)||u instanceof Set?u:[u]})(e);for(let s of f){if(s===null)continue;let u=s instanceof HTMLElement?s:h(s);if(u!=null&&u.contains(l)||n.composed&&n.composedPath().includes(u))return}return!H(l,I.Loose)&&l.tabIndex!==-1&&n.preventDefault(),t(n,l)}let i=p(null);g("pointerdown",n=>{var a,l;o.value&&(i.value=((l=(a=n.composedPath)==null?void 0:a.call(n))==null?void 0:l[0])||n.target)},!0),g("mousedown",n=>{var a,l;o.value&&(i.value=((l=(a=n.composedPath)==null?void 0:a.call(n))==null?void 0:l[0])||n.target)},!0),g("click",n=>{oe()||i.value&&(r(n,()=>i.value),i.value=null)},!0),g("touchend",n=>r(n,()=>n.target instanceof HTMLElement?n.target:null),!0),C("blur",n=>r(n,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}var k=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(k||{});let le=w({name:"Hidden",props:{as:{type:[Object,String],default:"div"},features:{type:Number,default:1}},setup(e,{slots:t,attrs:o}){return()=>{var r;let{features:i,...n}=e,a={"aria-hidden":(i&2)===2?!0:(r=n["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return P({ourProps:a,theirProps:n,slot:{},attrs:o,slots:t,name:"Hidden"})}}});function pe(e,t,o,r){b.isServer||N(i=>{e=e??window,e.addEventListener(t,o,r),i(()=>e.removeEventListener(t,o,r))})}var ue=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ue||{});function he(){let e=p(0);return C("keydown",t=>{t.key==="Tab"&&(e.value=t.shiftKey?1:0)}),e}function we({defaultContainers:e=[],portals:t,mainTreeNodeRef:o}={}){let r=p(null),i=E(r);function n(){var a,l,f;let s=[];for(let u of e)u!==null&&(u instanceof HTMLElement?s.push(u):"value"in u&&u.value instanceof HTMLElement&&s.push(u.value));if(t!=null&&t.value)for(let u of t.value)s.push(u);for(let u of(a=i==null?void 0:i.querySelectorAll("html > *, body > *"))!=null?a:[])u!==document.body&&u!==document.head&&u instanceof HTMLElement&&u.id!=="headlessui-portal-root"&&(u.contains(h(r))||u.contains((f=(l=h(r))==null?void 0:l.getRootNode())==null?void 0:f.host)||s.some(m=>u.contains(m))||s.push(u));return s}
1return{resolveContainers:n,contains(a){return n().some(l=>l.contains(a))},mainTreeNodeRef:r,MainTreeNode(){return o!=null?null:A(le,{features:k.Hidden,ref:r})}}}let D=Symbol("ForcePortalRootContext");function ae(){return y(D,!1)}let Ee=w({name:"ForcePortalRoot",props:{as:{type:[Object,String],default:"template"},force:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:o}){return T(D,e.force),()=>{let{force:r,...i}=e;return P({theirProps:i,ourProps:{},slot:{},slots:t,attrs:o,name:"ForcePortalRoot"})}}});function ie(e){let t=E(e);if(!t){if(e===null)return null;throw new Error(`[Headless UI]: Cannot find ownerDocument for contextElement: ${e}`)}let o=t.getElementById("headlessui-portal-root");if(o)return o;let r=t.createElement("div");return r.setAttribute("id","headlessui-portal-root"),t.body.appendChild(r)}const S=new WeakMap;function se(e){var t;return(t=S.get(e))!=null?t:0}function M(e,t){let o=t(se(e));return o<=0?S.delete(e):S.set(e,o),o}let ge=w({name:"Portal",props:{as:{type:[Object,String],default:"div"}},setup(e,{slots:t,attrs:o}){let r=p(null),i=O(()=>E(r)),n=ae(),a=y(R,null),l=p(n===!0||a==null?ie(r.value):a.resolveTarget());l.value&&M(l.value,d=>d+1);let f=p(!1);U(()=>{f.value=!0}),N(()=>{n||a!=null&&(l.value=a.resolveTarget())});let s=y(F,null),u=!1,m=q();return K(r,()=>{if(u||!s)return;let d=h(r);d&&(L(s.register(d),m),u=!0)}),L(()=>{var d,v;let c=(d=i.value)==null?void 0:d.getElementById("headlessui-portal-root");!c||l.value!==c||M(l.value,_=>_-1)||l.value.children.length>0||(v=l.value.parentElement)==null||v.removeChild(l.value)}),()=>{if(!f.value||l.value===null)return null;let d={ref:r,"data-headlessui-portal":""};return A(W,{to:l.value},P({ourProps:d,theirProps:e,slot:{},attrs:o,slots:t,name:"Portal"}))}}}),F=Symbol("PortalParentContext");function ye(){let e=y(F,null),t=p([]);function o(n){return t.value.push(n),e&&e.register(n),()=>r(n)}function r(n){let a=t.value.indexOf(n);a!==-1&&t.value.splice(a,1),e&&e.unregister(n)}let i={register:o,unregister:r,portals:t};return[t,w({name:"PortalWrapper",setup(n,{slots:a}){return T(F,i),()=>{var l;return(l=a.default)==null?void 0:l.call(a)}}})]}let R=Symbol("PortalGroupContext"),be=w({name:"PortalGroup",props:{as:{type:[Object,String],default:"template"},target:{type:Object,default:null}},setup(e,{attrs:t,slots:o}){let r=B({resolveTarget(){return e.target}});return T(R,r),()=>{let{target:i,...n}=e;return P({theirProps:n,ourProps:{},slot:{},attrs:t,slots:o,name:"PortalGroup"})}}});export{ge as $,pe as E,V as N,ee as O,te as P,Q as S,X as T,fe as _,H as a,we as b,Ee as c,ue as d,oe as e,le as f,$ as g,I as h,E as i,he as n,ye as q,re as t,k as u,ve as v,me as w,be as z};
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.