1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2365],{2066:(e,t,n)=>{let r;function o(){return"undefined"!=typeof window}function i(e){return s(e)?(e.nodeName||"").toLowerCase():"#document"}function l(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function a(e){var t;return null==(t=(s(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function s(e){return!!o()&&(e instanceof Node||e instanceof l(e).Node)}function u(e){return!!o()&&(e instanceof Element||e instanceof l(e).Element)}function c(e){return!!o()&&(e instanceof HTMLElement||e instanceof l(e).HTMLElement)}function d(e){return!!o()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof l(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=S(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function p(e){return/^(table|td|th)$/.test(i(e))}function h(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}n.d(t,{$4:()=>O,CP:()=>E,L9:()=>S,Lv:()=>p,Tc:()=>x,Tf:()=>h,ZU:()=>f,_m:()=>P,ep:()=>a,eu:()=>w,gJ:()=>y,mq:()=>i,sQ:()=>b,sb:()=>c,v9:()=>function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let i=function e(t){let n=O(t);return w(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&f(n)?n:e(n)}(t),a=i===(null==(o=t.ownerDocument)?void 0:o.body),s=l(i);if(!a)return n.concat(i,e(i,[],r));{let t=P(s);return n.concat(s,s.visualViewport||[],f(i)?i:[],t&&r?e(t):[])}},vq:()=>u,zk:()=>l});let v=/transform|translate|scale|rotate|perspective|filter/,m=/paint|layout|strict|content/,g=e=>!!e&&"none"!==e;function b(e){let t=u(e)?S(e):e;return g(t.transform)||g(t.translate)||g(t.scale)||g(t.rotate)||g(t.perspective)||!x()&&(g(t.backdropFilter)||g(t.filter))||v.test(t.willChange||"")||m.test(t.contain||"")}function y(e){let t=O(e);for(;c(t)&&!w(t);){if(b(t))return t;if(h(t))break;t=O(t)}return null}function x(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function w(e){return/^(html|body|#document)$/.test(i(e))}function S(e){return l(e).getComputedStyle(e)}function E(e){return u(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function O(e){if("html"===i(e))return e;let t=e.assignedSlot||e.parentNode||d(e)&&e.host||a(e);return d(t)?t.host:t}function P(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},3749:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(12115);let o=r.forwardRef(function(e,t){let{title:n,titleId:o,...i}=e;return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:t,"aria-labelledby":o},i),n?r.createElement("title",{id:o},n):null,r.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",clipRule:"evenodd"}))})},3809:(e,t,n)=>{n.d(t,{default:()=>i});var r=n(51567),o=n(95155);function i(e){let{locale:t,...n}=e;if(!t)throw Error(void 0);return(0,o.jsx)(r.Dk,{locale:t,...n})}},10208:(e,t,n)=>{n.d(t,{B1:()=>R,C0:()=>d,Dz:()=>m,Jx:()=>a,LI:()=>i,PG:()=>p,RI:()=>l,Sg:()=>f,T9:()=>o,TV:()=>v,WJ:()=>b,_3:()=>c,bV:()=>P,jk:()=>r,lP:()=>O,nI:()=>C,qE:()=>u,sq:()=>h,w7:()=>g});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,a=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e,t,n){return o(e,r(t,n))}function c(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function p(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function v(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function m(e){return p(v(e))}function g(e,t,n){void 0===n&&(n=!1);let r=f(e),o=m(e),i=h(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=P(l)),[l,P(l)]}function b(e){let t=P(e);return[y(e),t,y(t)]}function y(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],w=["right","left"],S=["top","bottom"],E=["bottom","top"];function O(e,t,n,r){let o=f(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?w:x;return t?x:w;case"left":case"right":return t?S:E;default:return[]}}(d(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(y)))),i}function P(e){let t=d(e);return s[t]+e.slice(t.length)}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function R(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}}}
1,16188:(e,t,n)=>{n.d(t,{WF:()=>tg,go:()=>th,h7:()=>tm,wh:()=>tv});var r,o,i,l=n(62088),a=n(96357),s=n(12115),u=n.t(s,2),c=n(47650),d=n(3538);function f(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}var p=n(53182),h=n(91553),v=n(15110),m=n(79802);function g(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}var b=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(b||{}),y=n(88476),x=n(85986);class w extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}var S=n(45554),E=Object.defineProperty,O=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},P=(e,t,n)=>(O(e,t,"read from private field"),n?n.call(e):t.get(e)),C=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},R=(e,t,n,r)=>(O(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class T{dispose(){this.disposables.dispose()}get state(){return P(this,r)}subscribe(e,t){if(S._.isServer)return()=>{};let n={selector:e,callback:t,current:e(P(this,r))};return P(this,i).add(n),this.disposables.add(()=>{P(this,i).delete(n)})}on(e,t){return S._.isServer?()=>{}:(P(this,o).get(e).add(t),this.disposables.add(()=>{P(this,o).get(e).delete(t)}))}send(e){let t=this.reduce(P(this,r),e);if(t!==P(this,r)){for(let e of(R(this,r,t),P(this,i))){let t=e.selector(P(this,r));L(e.current,t)||(e.current=t,e.callback(t))}for(let t of P(this,o).get(e.type))t(P(this,r),e)}}constructor(e){C(this,r,{}),C(this,o,new w(()=>new Set)),C(this,i,new Set),((e,t,n)=>((e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n))(this,"disposables",(0,v.e)()),R(this,r,e),S._.isServer&&this.disposables.microTask(()=>{this.dispose()})}}function L(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&k(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&k(e.entries(),t.entries()):!!(F(e)&&F(t))&&k(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function k(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function F(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function I(e){let[t,n]=e(),r=(0,v.e)();return function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];t(...o),r.dispose(),r.microTask(n)}}r=new WeakMap,o=new WeakMap,i=new WeakMap;var A=n(20536),M=Object.defineProperty,D=(e,t,n)=>(((e,t,n)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n),_=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(_||{});let N={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class j extends T{static new(){return new j({stack:[]})}reduce(e,t){return(0,A.Y)(t.type,N,e,t)}constructor(){super(...arguments),D(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),D(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}}let V=new w(()=>j.new());var B=n(28138);function W(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L;return(0,B.useSyncExternalStoreWithSelector)((0,p._)(t=>e.subscribe(z,t)),(0,p._)(()=>e.state),(0,p._)(()=>e.state),(0,p._)(t),n)}function z(e){return e}function U(e,t){let n=(0,s.useId)(),r=V.get(t),[o,i]=W(r,(0,s.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return(0,m.s)(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}
1let q=new Map,H=new Map;function Y(e){var t;let n=null!=(t=H.get(e))?t:0;return H.set(e,n+1),0!==n||(q.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=H.get(e))?t:1;if(1===n?H.delete(e):H.set(e,n-1),1!==n)return;let r=q.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,q.delete(e))})(e)}var X=n(84585),J=n(50025);let G=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),Q=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var $=(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[e.AutoFocus=64]="AutoFocus",e))($||{}),K=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(K||{}),Z=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Z||{});function ee(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(G)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var et=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(et||{});function en(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,x.TW)(e))?void 0:t.body)&&(0,A.Y)(n,{0:()=>e.matches(G),1(){let t=e;for(;null!==t;){if(t.matches(G))return!0;t=t.parentElement}return!1}})}var er=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(er||{});function eo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function ei(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function el(){return ei()||/Android/gi.test(window.navigator.userAgent)}function ea(e,t,n,r){let o=(0,X.Y)(n);(0,s.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function es(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.useMemo)(()=>(0,x.TW)(...t),[...t])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));var eu=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(eu||{});let ec={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};var ed=n(99900);function ef(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let ep=function(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var o=arguments.length,i=Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];let a=t[e].call(n,...i);a&&(n=a,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,v.e)(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=ef(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=ef(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[ei()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){for(let t of r().containers)for(let n of t())if(n.contains(e))return!0;return!1}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,v.e)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>
1e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",e=>{if(J.Lk(e.target))try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),l=t.querySelector(r);J.Lk(l)&&!o(l)&&(i=l)}catch(e){}},!0),n.group(e=>{n.addEventListener(t,"touchstart",t=>{if(e.dispose(),J.Lk(t.target)&&J.pv(t.target))if(o(t.target)){let n=t.target;for(;n.parentElement&&o(n.parentElement);)n=n.parentElement;e.style(n,"overscrollBehavior","contain")}else e.style(t.target,"touchAction","none")})}),n.addEventListener(t,"touchmove",e=>{if(J.Lk(e.target)&&!J.A3(e.target))if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=Math.max(0,o.clientWidth-o.offsetWidth),l=Math.max(0,t-i);r.style(o,"paddingRight","".concat(l,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];r.forEach(e=>{let{before:t}=e;return null==t?void 0:t(n)}),r.forEach(e=>{let{after:t}=e;return null==t?void 0:t(n)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});ep.subscribe(()=>{let e=ep.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&ep.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&ep.dispatch("TEARDOWN",n)}});var eh=n(80490),ev=n(17342);let em=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function eg(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!J.sb(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let l=i?null!=(n=o.innerText)?n:"":r;return em.test(l)&&(l=l.replace(em,"")),l}function eb(e){return[e.screenX,e.screenY]}var ey=n(22369);let ex=(0,s.createContext)(void 0);function ew(){return(0,s.useContext)(ex)}var eS=n(16424),eE=n(88334),eO=n(20861);let eP=(0,s.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});eP.displayName="FloatingContext";let eC=(0,s.createContext)(null);function eR(e){var t,n,r,o,i,l;let a,u,c,{children:d,enabled:f=!0}=e,[h,v]=(0,s.useState)(null),[g,b]=(0,s.useState)(0),y=(0,s.useRef)(null),[x,w]=(0,s.useState)(null);t=x,(0,m.s)(()=>{if(!t)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(t).maxHeight,n=parseFloat(e);if(isNaN(n))return;let r=parseInt(e);isNaN(r)||n!==r&&(t.style.maxHeight="".concat(Math.ceil(n),"px"))});return e.observe(t,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[t]);let S=f&&null!==h&&null!==x,{to:E="bottom",gap:O=0,offset:P=0,padding:C=0,inner:R}=(n=h,r=x,a=eT(null!=(o=null==n?void 0:n.gap)?o:"var(--anchor-gap, 0)",r),u=eT(null!=(i=null==n?void 0:n.offset)?i:"var(--anchor-offset, 0)",r),c=eT(null!=(l=null==n?void 0:n.padding)?l:"var(--anchor-padding, 0)",r),{...n,gap:a,offset:u,padding:c}),[T,L="center"]=E.split(" ");(0,m.s)(()=>{S&&b(0)},[S]);let{refs:k,floatingStyles:F,context:I}=(0,eS.we)({open:S,placement:"selection"===T?"center"===L?"bottom":"bottom-".concat(L):"center"===L?"".concat(T):"".concat(T,"-").concat(L),strategy:"absolute",transform:!1,middleware:[(0,eE.cY)({mainAxis:"selection"===T?0:O,crossAxis:P}),(0,eE.BN)({padding:C}),"selection"!==T&&(0,eE.UU)({padding:C}),"selection"===T&&R?(0,eS.vW)({...R,padding:C,overflowRef:y,offset:g,minItemsVisible:4,referenceOverflowThreshold:C,onFallbackChange(e){var t,n;if(!e)return;let r=I.elements.floating;if(!r)return;
1let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,a=0;for(let e of null!=(n=null==(t=I.elements.floating)?void 0:t.childNodes)?n:[])if(J.sb(e)){let t=e.offsetTop,n=t+e.clientHeight+o,s=r.scrollTop,u=s+r.clientHeight;if(t>=s&&n<=u)i--;else{a=Math.max(0,Math.min(n,u)-Math.max(t,s)),l=e.clientHeight;break}}i>=1&&b(e=>{let t=l*i-a+o;return e>=t?e:t})}}):null,(0,eE.Ej)({padding:C,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:eO.ll}),[A=T,M=L]=I.placement.split("-");"selection"===T&&(A="selection");let D=(0,s.useMemo)(()=>({anchor:[A,M].filter(Boolean).join(" ")}),[A,M]),_=(0,eS.Zx)(I,{overflowRef:y,onChange:b}),{getReferenceProps:N,getFloatingProps:j}=(0,eS.bv)([_]),V=(0,p._)(e=>{w(e),k.setFloating(e)});return s.createElement(eC.Provider,{value:v},s.createElement(eP.Provider,{value:{setFloating:V,setReference:k.setReference,styles:F,getReferenceProps:N,getFloatingProps:j,slot:D}},d))}function eT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,h.L)(),o=(0,p._)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=eL(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let s=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,s=!0;break}}if(!s)return;let u=eL(e,t);o!==u&&(n(u),o=u)})}return r.dispose}]}return[n,null]}),i=(0,s.useMemo)(()=>o(e,t)[0],[e,t]),[l=i,a]=(0,s.useState)();return(0,m.s)(()=>{let[n,r]=o(e,t);if(a(n),r)return r(a)},[e,t]),l}function eL(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}eC.displayName="PlacementContext";function ek(e,t){return e?e+"["+t+"]":t}var eF=n(64036),eI=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(eI||{});let eA=(0,eF.FX)(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&r)==4||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",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,eF.Ci)()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),eM=(0,s.createContext)(null);function eD(e){let{children:t}=e,n=(0,s.useContext)(eM);if(!n)return s.createElement(s.Fragment,null,t);let{target:r}=n;return r?(0,c.createPortal)(s.createElement(s.Fragment,null,t),r):null}function e_(e){let{data:t,form:n,disabled:r,onReset:o,overrides:i}
1=e,[l,a]=(0,s.useState)(null),u=(0,h.L)();return(0,s.useEffect)(()=>{if(o&&l)return u.addEventListener(l,"reset",o)},[l,n,o]),s.createElement(eD,null,s.createElement(eN,{setForm:a,formId:n}),(function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[o,i]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,i]of o.entries())t(n,ek(r,e.toString()),i);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,"".concat(o)]):null==o?n.push([r,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(o)&&!(0,s.isValidElement)(o)&&e(o,r,n)}(r,ek(n,o),i);return r})(t).map(e=>{let[t,o]=e;return s.createElement(eA,{features:eI.Hidden,...(0,eF.oE)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:o,...i})})}))}function eN(e){let{setForm:t,formId:n}=e;return(0,s.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:s.createElement(eA,{features:eI.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}let ej=(0,s.createContext)(void 0);function eV(){return(0,s.useContext)(ej)}var eB=n(55668),eW=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(eW||{});function ez(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:throw Error("Unexpected object: "+e)}}let eU=(0,s.createContext)(null);eU.displayName="DescriptionContext",Object.assign((0,eF.FX)(function(e,t){let n=(0,s.useId)(),r=ew(),{id:o="headlessui-description-".concat(n),...i}=e,l=function e(){let t=(0,s.useContext)(eU);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=(0,ev.P)(t);(0,m.s)(()=>l.register(o),[o,l.register]);let u=(0,eh._)({...l.slot,disabled:r||!1}),c={ref:a,...l.props,id:o};return(0,eF.Ci)()({ourProps:c,theirProps:i,slot:u,defaultTag:"p",name:l.name||"Description"})}),{});var eq=n(88499);let eH=(0,s.createContext)(null);function eY(e){var t,n,r;let o=null!=(n=null==(t=(0,s.useContext)(eH))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}eH.displayName="LabelContext";let eX=Object.assign((0,eF.FX)(function(e,t){var n;let r=(0,s.useId)(),o=function e(){let t=(0,s.useContext)(eH);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=eV(),l=ew(),{id:a="headlessui-label-".concat(r),htmlFor:u=null!=i?i:null==(n=o.props)?void 0:n.htmlFor,passive:c=!1,...d}=e,f=(0,ev.P)(t);(0,m.s)(()=>o.register(a),[a,o.register]);let h=(0,p._)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&J.H5(e.target))&&(J.kS(t)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),J.kS(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(J.A3(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),v=(0,eh._)({...o.slot,disabled:l||!1}),g={ref:f,...o.props,id:a,htmlFor:u,onClick:h};return c&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),(0,eF.Ci)()({ourProps:g,theirProps:d,slot:v,defaultTag:u?"label":"div",name:o.name||"Label"})}),{});var eJ=n(28165);function eG(e){let t=(0,p._)(e),n=(0,s.useRef)(!1);(0,s.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,eJ._)(()=>{n.current&&t()})}),[t])}let eQ=(0,s.createContext)(!1),e$=s.Fragment,eK=(0,eF.FX)(function(e,t){let{ownerDocument:n=null,...r}=e,o=(0,s.useRef)(null),i=(0,ev.P)((0,ev.a)(e=>{o.current=e}),t),l=es(o.current),a=function(e){let t=(0,s.useContext)(eQ),n=(0,s.useContext)(e0),[r,o]=(0,s.use
1State)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(S._.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,s.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,s.useEffect)(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}(null!=n?n:l),d=(0,s.useContext)(e1),f=(0,h.L)(),p=function(){let e,t=(e="undefined"==typeof document,(0,u.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,r]=s.useState(S._.isHandoffComplete);return n&&!1===S._.isHandoffComplete&&r(!1),s.useEffect(()=>{!0!==n&&r(!0)},[n]),s.useEffect(()=>S._.handoff(),[]),!t&&n}(),v=(0,eF.Ci)();return eG(()=>{var e;a&&a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a))}),a&&p?(0,c.createPortal)(s.createElement("div",{"data-headlessui-portal":"",ref:e=>{f.dispose(),d&&e&&f.add(d.register(e))}},v({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:e$,name:"Portal"})),a):null}),eZ=s.Fragment,e0=(0,s.createContext)(null),e1=(0,s.createContext)(null),e2=Object.assign((0,eF.FX)(function(e,t){let n=(0,ev.P)(t),{enabled:r=!0,ownerDocument:o,...i}=e,l=(0,eF.Ci)();return r?s.createElement(eK,{...i,ownerDocument:o,ref:n}):l({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:e$,name:"Portal"})}),{Group:(0,eF.FX)(function(e,t){let{target:n,...r}=e,o={ref:(0,ev.P)(t)},i=(0,eF.Ci)();return s.createElement(e0.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:eZ,name:"Popover.Group"}))})}),e5={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function e3(e){let t=e.getBoundingClientRect();return"".concat(t.x,",").concat(t.y)}var e9=Object.defineProperty,e4=(e,t,n)=>(((e,t,n)=>t in e?e9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n),e8=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(e8||{}),e6=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(e6||{}),e7=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(e7||{}),te=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.SelectOption=5]="SelectOption",e[e.RegisterOptions=6]="RegisterOptions",e[e.UnregisterOptions=7]="UnregisterOptions",e[e.SetButtonElement=8]="SetButtonElement",e[e.SetOptionsElement=9]="SetOptionsElement",e[e.SortOptions=10]="SortOptions",e[e.MarkButtonAsMoved=11]="MarkButtonAsMoved",e))(te||{});function tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=eo(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let tn={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?e5.Tracked(e3(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:eW.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:e5.Idle}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===eW.Nothing)return{...a,activeOptionIndex:null};if(t.focus===eW.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===eW.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=ez(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...a,activeOptionIndex:l}}}}else if(t.focus===eW.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=ez(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...a,activeOptionIndex:o}}}}let s=tt(e),u=ez(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...s,activeOptionIndex:u}},3:(e,t)=>
1{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==eW.Nothing&&(r=ez(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:eW.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...tt(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:e5.Moved}};class tr extends T{static new(e){let{id:t,__demoMode:n=!1}=e;return new tr({id:t,dataRef:{current:{}},listboxState:+!n,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:eW.Nothing},frozenValue:!1,__demoMode:n,buttonPositionState:e5.Idle})}reduce(e,t){return(0,A.Y)(t.type,tn,e,t)}constructor(e){super(e),e4(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,A.Y)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:I(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:I(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:I(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),e4(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=V.get(null);this.disposables.add(t.on(_.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>
1{t.buttonElement&&(e.dispose(),e.add(function(e,t,n){let r=(0,v.e)();if("Tracked"===t.kind){let o=function(){i!==e3(e)&&(r.dispose(),n())},{position:i}=t,l=new ResizeObserver(o);l.observe(e),r.add(()=>l.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}}let to=(0,s.createContext)(null);function ti(e){let t=(0,s.useContext)(to);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,tl),t}return t}function tl(e){let{id:t,__demoMode:n=!1}=e,r=(0,s.useMemo)(()=>tr.new({id:t,__demoMode:n}),[]);return eG(()=>r.dispose()),r}let ta=(0,s.createContext)(null);function ts(e){let t=(0,s.useContext)(ta);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ts),t}return t}ta.displayName="ListboxDataContext";let tu=s.Fragment,tc=(0,s.createContext)(!1),td=eF.Ac.RenderStrategy|eF.Ac.Static,tf=s.Fragment,tp=(0,eF.FX)(function(e,t){var n,r;let o,i,l,a,u,d=(0,s.useId)(),h=ew(),{value:v,defaultValue:g,form:b,name:y,onChange:x,by:w,invalid:S=!1,disabled:E=h||!1,horizontal:O=!1,multiple:P=!1,__demoMode:C=!1,...R}=e,T=(0,ev.P)(t),L=function(e){let[t]=(0,s.useState)(e);return t}
1(g),[k=P?[]:void 0,F]=function(e,t,n){let[r,o]=(0,s.useState)(n),i=void 0!==e,l=(0,s.useRef)(i),a=(0,s.useRef)(!1),u=(0,s.useRef)(!1);return!i||l.current||a.current?i||!l.current||u.current||(u.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,(0,p._)(e=>(i||(0,c.flushSync)(()=>o(e)),null==t?void 0:t(e)))]}(v,x,L),I=tl({id:d,__demoMode:C}),M=(0,s.useRef)({static:!1,hold:!1}),D=(0,s.useRef)(new Map),_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return(0,s.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(w),N=(0,s.useCallback)(e=>(0,A.Y)(j.mode,{[e6.Multi]:()=>k.some(t=>_(t,e)),[e6.Single]:()=>_(k,e)}),[k]),j=(0,eh._)({value:k,disabled:E,invalid:S,mode:P?e6.Multi:e6.Single,orientation:O?"horizontal":"vertical",onChange:F,compare:_,isSelected:N,optionsPropsRef:M,listRef:D});(0,m.s)(()=>{I.state.dataRef.current=j},[j]);let B=W(I,e=>e.listboxState),z=V.get(null),U=W(z,(0,s.useCallback)(e=>z.selectors.isTop(e,d),[z,d])),[q,H]=W(I,e=>[e.buttonElement,e.optionsElement]);n=[q,H],o=(0,X.Y)((e,t)=>{I.send({type:te.CloseListbox}),en(t,et.Loose)||(e.preventDefault(),null==q||q.focus())}),i=(0,s.useCallback)(function(e,t){if(e.defaultPrevented)return;let r=t(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(n))if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return en(r,et.Loose)||-1===r.tabIndex||e.preventDefault(),o.current(e,r)}},[o,n]),l=(0,s.useRef)(null),ea(U,"pointerdown",e=>{var t,n;el()||(l.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),ea(U,"pointerup",e=>{if(el()||!l.current)return;let t=l.current;return l.current=null,i(e,()=>t)},!0),a=(0,s.useRef)({x:0,y:0}),ea(U,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),ea(U,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-a.current.x)>=30||Math.abs(t.y-a.current.y)>=30))return i(e,()=>J.Lk(e.target)?e.target:null)},!0),r="blur",u=(0,X.Y)(e=>i(e,()=>J.Gu(window.document.activeElement)?window.document.activeElement:null)),(0,s.useEffect)(()=>{if(U)return window.addEventListener(r,e,!0),()=>window.removeEventListener(r,e,!0);function e(e){u.current(e)}},[U,r,!0]);let Y=(0,eh._)({open:B===e8.Open,disabled:E,invalid:S,value:k}),[G,Q]=function(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=eY(),[n,r]=(0,s.useState)([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,(0,s.useMemo)(()=>function(e){let t=(0,p._)(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,s.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return s.createElement(eH.Provider,{value:n},e.children)},[r])]}({inherit:!0}),$=(0,s.useCallback)(()=>{if(void 0!==L)return null==F?void 0:F(L)},[F,L]),K=(0,eF.Ci)();return s.createElement(Q,{value:G,props:{htmlFor:null==q?void 0:q.id},slot:{open:B===e8.Open,disabled:E}},s.createElement(eR,null,s.createElement(to.Provider,{value:I},s.createElement(ta.Provider,{value:j},s.createElement(eB.El,{value:(0,A.Y)(B,{[e8.Open]:eB.Uw.Open,[e8.Closed]:eB.Uw.Closed})},null!=y&&null!=k&&s.createElement(e_,{disabled:E,data:{[y]:k},form:b,onReset:$}),K({ourProps:{ref:T},theirProps:R,slot:Y,defaultTag:tu,name:"Listbox"}))))))}),th=(0,eF.FX)(function(e,t){var n,r,o;let i,u=(0,s.useId)(),f=eV(),h=ts("Listbox.Button"),v=ti("Listbox.Button"),{id:m=f||"headlessui-listbox-button-".concat(u),disabled:g=h.disabled||!1,autoFocus:x=!1,...w}=e,S=(0,ev.P)(t,(0,s.useContext)(eP).setReference,v.actions.setButtonElement),E=(0,s.useContext)(eP).getReferenceProps,[O,P,C]=W(v,e=>[e.listboxState,e.buttonElement,e.optionsElement]);!function(e,t){let{trigger:n,action:r,close:o,select:i}=t,l=(0,s.useRef)(null),a=(0,s.useRef)(null),u=(0,s.useRef)(null);ea(e&&null!==n,"pointerdown",e=>{J.Ll(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(a.current=e.x,u.current=e.y,l.current=e.timeStamp)}),ea(e&&null!==n,"pointerup",e=>{var t,n;let s=l.current;if(null===s||(l.current=null,!J.Lk(e.target))||5>Math.abs(e.x-(null!=(t=a.current)?t:e.x))&&5>
1Math.abs(e.y-(null!=(n=u.current)?n:e.y)))return;let c=r(e);switch(c.kind){case 0:return;case 1:e.timeStamp-s>200&&(i(c.target),o());break;case 2:o()}},{capture:!0})}(O===e8.Open,{trigger:P,action:(0,s.useCallback)(e=>{if(null!=P&&P.contains(e.target))return ec.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return J.sb(t)?ec.Select(t):null!=C&&C.contains(e.target)?ec.Ignore:ec.Close},[P,C]),close:v.actions.closeListbox,select:v.actions.selectActiveOption});let R=(0,p._)(e=>{switch(e.key){case eq.D.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case eq.D.Space:case eq.D.ArrowDown:e.preventDefault(),v.actions.openListbox({focus:h.value?eW.Nothing:eW.First});break;case eq.D.ArrowUp:e.preventDefault(),v.actions.openListbox({focus:h.value?eW.Nothing:eW.Last})}}),T=(0,p._)(e=>{e.key===eq.D.Space&&e.preventDefault()}),L=(n=e=>{var t;v.state.listboxState===e8.Open?((0,c.flushSync)(()=>v.actions.closeListbox()),null==(t=v.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),v.actions.openListbox({focus:eW.Nothing}))},i=(0,s.useRef)(null),{onPointerDown:(0,p._)(e=>{i.current=e.pointerType,(0,y.l)(e.currentTarget)||"mouse"!==e.pointerType||e.button!==b.Left||(e.preventDefault(),n(e))}),onClick:(0,p._)(e=>{"mouse"!==i.current&&((0,y.l)(e.currentTarget)||n(e))})}),k=(0,p._)(e=>e.preventDefault()),F=eY([m]),I=null!=(o=null==(r=(0,s.useContext)(eU))?void 0:r.value)?o:void 0,{isFocusVisible:A,focusProps:M}=(0,l.o)({autoFocus:x}),{isHovered:D,hoverProps:_}=(0,a.M)({isDisabled:g}),{pressed:N,pressProps:j}=(0,d.Z)({disabled:g}),V=(0,eh._)({open:O===e8.Open,active:N||O===e8.Open,disabled:g,invalid:h.invalid,value:h.value,hover:D,focus:A,autofocus:x}),B=W(v,e=>e.listboxState===e8.Open),z=(0,eF.v6)(E(),{ref:S,id:m,type:(0,ed.c)(e,P),"aria-haspopup":"listbox","aria-controls":null==C?void 0:C.id,"aria-expanded":B,"aria-labelledby":F,"aria-describedby":I,disabled:g||void 0,autoFocus:x,onKeyDown:R,onKeyUp:T,onKeyPress:k},L,M,_,j);return(0,eF.Ci)()({ourProps:z,theirProps:w,slot:V,defaultTag:"button",name:"Listbox.Button"})}),tv=(0,eF.FX)(function(e,t){var n;let r,o=(0,s.useId)(),{id:i="headlessui-listbox-options-".concat(o),anchor:l,portal:a=!1,modal:u=!0,transition:d=!1,...f}=e,b=(0,s.useMemo)(()=>l?"string"==typeof l?{to:l}:l:null,[l]),[y,w]=(0,s.useState)(null);b&&(a=!0);let S=ts("Listbox.Options"),E=ti("Listbox.Options"),[O,P,C,R]=W(E,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),T=es(P),L=es(C),k=(0,eB.O_)(),[F,I]=(0,ey.p)(d,y,null!==k?(k&eB.Uw.Open)===eB.Uw.Open:O===e8.Open);n=E.actions.closeListbox,r=(0,X.Y)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}),(0,s.useEffect)(()=>{if(!F)return;let e=null===P?null:J.sb(P)?P:P.current;if(!e)return;let t=(0,v.e)();if("undefined"!=typeof ResizeObserver){let n=new ResizeObserver(()=>r.current(e));n.observe(e),t.add(()=>n.disconnect())}if("undefined"!=typeof IntersectionObserver){let n=new IntersectionObserver(()=>r.current(e));n.observe(e),t.add(()=>n.disconnect())}return()=>t.dispose()},[P,r,F]),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),r=(0,s.useSyncExternalStore)(ep.subscribe,ep.getSnapshot,ep.getSnapshot),o=t?r.get(t):void 0;o&&o.count,(0,m.s)(()=>{if(!(!t||!e))return ep.dispatch("PUSH",t,n),()=>ep.dispatch("POP",t,n)},[e,t])}(U(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!R&&u&&O===e8.Open,L),function(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=U(e,"inert-others");(0,m.s)(()=>{var e,o;if(!r)return;let i=(0,v.e)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(Y(t));let l=null!=(o=null==t?void 0:t())?o:[];for(let e of l){if(!e)continue;let t=(0,x.TW)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)l.some(t=>e.contains(t))||i.add(Y(e));n=n.parentElement}}return i.dispose},[r,t,n])}(!R&&u&&O===e8.Open,{allowed:(0,s.useCallback)(()=>[P,C],[P,C])});let M=!W(E,E.selectors.didButtonMove)&&F,D=function(e,t){let[n,r]=(0,s.use
1State)(t);return e||n===t||r(t),e?n:t}(W(E,E.selectors.hasFrozenValue)&&!e.static,S.value),_=(0,s.useCallback)(e=>S.compare(D,e),[S.compare,D]),N=W(E,e=>{var t;if(null==b||!(null!=(t=null==b?void 0:b.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>_(e.dataRef.current.value));return -1===n&&(n=0),n}),[j,V]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,s.useContext)(eC),n=(0,s.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,m.s)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,s.useContext)(eP);return(0,s.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}((()=>{if(null==b)return;if(null===N)return{...b,inner:void 0};let e=Array.from(S.listRef.current.values());return{...b,inner:{listRef:{current:e},index:N}}})()),B=function(){let{getFloatingProps:e,slot:t}=(0,s.useContext)(eP);return(0,s.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object.assign({},e(...r),{"data-anchor":t.anchor})},[e,t])}(),z=(0,ev.P)(t,b?j:null,E.actions.setOptionsElement,w),q=(0,h.L)();(0,s.useEffect)(()=>{C&&O===e8.Open&&((0,x.X7)(C)||null==C||C.focus({preventScroll:!0}))},[O,C]);let H=(0,p._)(e=>{var t;switch(q.dispose(),e.key){case eq.D.Space:if(""!==E.state.searchQuery)return e.preventDefault(),e.stopPropagation(),E.actions.search(e.key);case eq.D.Enter:e.preventDefault(),e.stopPropagation(),E.actions.selectActiveOption();break;case(0,A.Y)(S.orientation,{vertical:eq.D.ArrowDown,horizontal:eq.D.ArrowRight}):return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:eW.Next});case(0,A.Y)(S.orientation,{vertical:eq.D.ArrowUp,horizontal:eq.D.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:eW.Previous});case eq.D.Home:case eq.D.PageUp:return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:eW.First});case eq.D.End:case eq.D.PageDown:return e.preventDefault(),e.stopPropagation(),E.actions.goToOption({focus:eW.Last});case eq.D.Escape:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>E.actions.closeListbox()),null==(t=E.state.buttonElement)||t.focus({preventScroll:!0});return;case eq.D.Tab:e.preventDefault(),e.stopPropagation(),(0,c.flushSync)(()=>E.actions.closeListbox()),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null===e?document.body:(0,x.zm)(e);!function(e,t){var n,r,o;let{sorted:i=!0,relativeTo:l=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?(0,x.zm)(e[0]):document:(0,x.zm)(e),u=Array.isArray(e)?i?eo(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(Q)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):ee(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),l=null!=l?l:null==s?void 0:s.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(l))-1;if(4&t)return Math.max(0,u.indexOf(l))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,h=u.length,v;do{if(p>=h||p+h<=0)return 0;let e=d+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(v=u[e])||v.focus(f),p+=c}while(v!==(0,x.bq)(v));6&t&&null!=(o=null==(r=null==(n=v)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&v.select()}(ee(n),t,{relativeTo:e})}(E.state.buttonElement,e.shiftKey?$.Previous:$.Next);break;default:1===e.key.length&&(E.actions.search(e.key),q.setTimeout(()=>E.actions.clearSearch(),350))}}),G=W(E,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),K=(0,eh._)({open:O===e8.Open}),Z=(0,eF.v6)(b?B():{},{id:i,ref:z,"aria-activedescendant":W(E,E.selectors.activeDescendantId),"aria-multiselectable":S.mode===e6.Multi||void 0,"aria-labelledby":G,"aria-orientation":S.orientation,onKeyDown:H,role:"listbox",tabIndex:O===e8.Open?0:void 0,style:{...f.style,...V,"--button-width":function(e,t){let n=arguments.length>
12&&void 0!==arguments[2]&&arguments[2],[r,o]=(0,s.useState)(()=>g(t));return(0,m.s)(()=>{if(!t||!e)return;let n=(0,v.e)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),o(e=>{let n=g(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:"".concat(r.width,"px"),height:"".concat(r.height,"px")}:r}(F,P,!0).width},...(0,ey.B)(I)}),et=(0,eF.Ci)(),en=(0,s.useMemo)(()=>S.mode===e6.Multi?S:{...S,isSelected:_},[S,_]);return s.createElement(e2,{enabled:!!a&&(e.static||F),ownerDocument:T},s.createElement(ta.Provider,{value:en},et({ourProps:Z,theirProps:f,slot:K,defaultTag:"div",features:td,visible:M,name:"Listbox.Options"})))}),tm=(0,eF.FX)(function(e,t){let n,r,o,i=(0,s.useId)(),{id:l="headlessui-listbox-option-".concat(i),disabled:a=!1,value:u,...c}=e,d=!0===(0,s.useContext)(tc),f=ts("Listbox.Option"),h=ti("Listbox.Option"),g=W(h,e=>h.selectors.isActive(e,l)),b=f.isSelected(u),y=(0,s.useRef)(null),x=(n=(0,s.useRef)(""),r=(0,s.useRef)(""),(0,p._)(()=>{let e=y.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():eg(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return eg(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),w=(0,X.Y)({disabled:a,value:u,domRef:y,get textValue(){return x()}}),S=(0,ev.P)(t,y,e=>{e?f.listRef.current.set(l,e):f.listRef.current.delete(l)}),E=W(h,e=>h.selectors.shouldScrollIntoView(e,l));(0,m.s)(()=>{if(E)return(0,v.e)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=y.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[E,y]),(0,m.s)(()=>{if(!d)return h.actions.registerOption(l,w),()=>h.actions.unregisterOption(l)},[w,l,d]);let O=(0,p._)(e=>{if(a)return e.preventDefault();h.actions.selectOption(u)}),P=(0,p._)(()=>{if(a)return h.actions.goToOption({focus:eW.Nothing});h.actions.goToOption({focus:eW.Specific,id:l})}),C=(o=(0,s.useRef)([-1,-1]),{wasMoved(e){let t=eb(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=eb(e)}}),R=(0,p._)(e=>C.update(e)),T=(0,p._)(e=>{C.wasMoved(e)&&(a||g&&h.state.activationTrigger===e7.Pointer||h.actions.goToOption({focus:eW.Specific,id:l},e7.Pointer))}),L=(0,p._)(e=>{C.wasMoved(e)&&(a||g&&h.state.activationTrigger===e7.Pointer&&h.actions.goToOption({focus:eW.Nothing}))}),k=(0,eh._)({active:g,focus:g,selected:b,disabled:a,selectedOption:b&&d}),F=d?{}:{id:l,ref:S,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":b,disabled:void 0,onClick:O,onFocus:P,onPointerEnter:R,onMouseEnter:R,onPointerMove:T,onMouseMove:T,onPointerLeave:L,onMouseLeave:L},I=(0,eF.Ci)();return!b&&d?null:I({ourProps:F,theirProps:c,slot:k,defaultTag:"div",name:"Listbox.Option"})}),tg=Object.assign(tp,{Button:th,Label:eX,Options:tv,Option:tm,SelectedOption:(0,eF.FX)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,ev.P)(t)},l=ts("ListboxSelectedOption"),a=(0,eh._)({}),u=void 0===l.value||null===l.value||l.mode===e6.Multi&&Array.isArray(l.value)&&0===l.value.length,c=(0,eF.Ci)();return s.createElement(tc.Provider,{value:!0},c({ourProps:i,theirProps:{...o,children:s.createElement(s.Fragment,null,r&&u?r:n)},slot:a,defaultTag:tf,name:"ListboxSelectedOption"}))})})},20063:(e,t,n)=>{var r=n(47260);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},20861:(e,t,n)=>{n.d(t,{ll:()=>P,rD:()=>F,__:()=>C,UU:()=>L,cY:()=>R,BN:()=>T,Ej:()=>k});var r=n(10208);function o(e,t,n){let o,{reference:i,floating:l}=e,a=(0,r.TV)(t),s=(0,r.Dz)(t),u=(0,r.sq)(s),c=(0,r.C0)(t),d="y"===a,f=i.x+i.width/2-l.width/2,p=i.y+i.height/2-l.height/2,h=i[u]/2-l[u]/2;switch(c){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:p};break;case"left":o={x:i.x-l.width,y:p};break;default:o={x:i.x,y:i.y}}switch((0,r.Sg)(t)){case"start":o[s]-=h*(n&&d?-1:1);break;case"end":o[s]+=h*(n&&d?-1:1)}return o}async function i(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:a,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=(0,r._3)(t,e),v=(0,r.nI)(h),m=s[p?"floating"===f?"reference":"floating":f],g=(0,r.B1)(await l.getClippingRect
1({element:null==(n=await (null==l.isElement?void 0:l.isElement(m)))||n?m:m.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b="floating"===f?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),x=await (null==l.isElement?void 0:l.isElement(y))&&await (null==l.getScale?void 0:l.getScale(y))||{x:1,y:1},w=(0,r.B1)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:u}):b);return{top:(g.top-w.top+v.top)/x.y,bottom:(w.bottom-g.bottom+v.bottom)/x.y,left:(g.left-w.left+v.left)/x.x,right:(w.right-g.right+v.right)/x.x}}let l=async(e,t,n)=>{let{placement:r="bottom",strategy:l="absolute",middleware:a=[],platform:s}=n,u=s.detectOverflow?s:{...s,detectOverflow:i},c=await (null==s.isRTL?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:l}),{x:f,y:p}=o(d,r,c),h=r,v=0,m={};for(let n=0;n<a.length;n++){let i=a[n];if(!i)continue;let{name:g,fn:b}=i,{x:y,y:x,data:w,reset:S}=await b({x:f,y:p,initialPlacement:r,placement:h,strategy:l,middlewareData:m,rects:d,platform:u,elements:{reference:e,floating:t}});f=null!=y?y:f,p=null!=x?x:p,m[g]={...m[g],...w},S&&v<50&&(v++,"object"==typeof S&&(S.placement&&(h=S.placement),S.rects&&(d=!0===S.rects?await s.getElementRects({reference:e,floating:t,strategy:l}):S.rects),{x:f,y:p}=o(d,h,c)),n=-1)}return{x:f,y:p,placement:h,strategy:l,middlewareData:m}},a=new Set(["left","top"]);async function s(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.C0)(n),u=(0,r.Sg)(n),c="y"===(0,r.TV)(n),d=a.has(s)?-1:1,f=l&&c?-1:1,p=(0,r._3)(t,e),{mainAxis:h,crossAxis:v,alignmentAxis:m}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&"number"==typeof m&&(v="end"===u?-1*m:m),c?{x:v*f,y:h*d}:{x:h*d,y:v*f}}var u=n(2066);function c(e){let t=(0,u.L9)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,u.sb)(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=(0,r.LI)(n)!==l||(0,r.LI)(o)!==a;return s&&(n=l,o=a),{width:n,height:o,$:s}}function d(e){return(0,u.vq)(e)?e:e.contextElement}function f(e){let t=d(e);if(!(0,u.sb)(t))return(0,r.Jx)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=c(t),a=(l?(0,r.LI)(n.width):n.width)/o,s=(l?(0,r.LI)(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let p=(0,r.Jx)(0);function h(e){let t=(0,u.zk)(e);return(0,u.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:p}function v(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=d(e),s=(0,r.Jx)(1);t&&(o?(0,u.vq)(o)&&(s=f(o)):s=f(e));let c=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,u.zk)(a))&&i)?h(a):(0,r.Jx)(0),p=(l.left+c.x)/s.x,v=(l.top+c.y)/s.y,m=l.width/s.x,g=l.height/s.y;if(a){let e=(0,u.zk)(a),t=o&&(0,u.vq)(o)?(0,u.zk)(o):o,n=e,r=(0,u._m)(n);for(;r&&o&&t!==n;){let e=f(r),t=r.getBoundingClientRect(),o=(0,u.L9)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;p*=e.x,v*=e.y,m*=e.x,g*=e.y,p+=i,v+=l,n=(0,u.zk)(r),r=(0,u._m)(n)}}return(0,r.B1)({width:m,height:g,x:p,y:v})}function m(e,t){let n=(0,u.CP)(e).scrollLeft;return t?t.left+n:v((0,u.ep)(e)).left+n}function g(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-m(e,n),y:n.top+t.scrollTop}}function b(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,u.zk)(e),r=(0,u.ep)(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=(0,u.Tc)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let c=m(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}
1(e,n);else if("document"===t)o=function(e){let t=(0,u.ep)(e),n=(0,u.CP)(e),o=e.ownerDocument.body,i=(0,r.T9)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.T9)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+m(e),s=-n.scrollTop;return"rtl"===(0,u.L9)(o).direction&&(a+=(0,r.T9)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:a,y:s}}((0,u.ep)(e));else if((0,u.vq)(t))o=function(e,t){let n=v(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,u.sb)(e)?f(e):(0,r.Jx)(1),a=e.clientWidth*l.x,s=e.clientHeight*l.y;return{width:a,height:s,x:i*l.x,y:o*l.y}}(t,n);else{let n=h(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.B1)(o)}function y(e){return"static"===(0,u.L9)(e).position}function x(e,t){if(!(0,u.sb)(e)||"fixed"===(0,u.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,u.ep)(e)===n&&(n=n.ownerDocument.body),n}function w(e,t){let n=(0,u.zk)(e);if((0,u.Tf)(e))return n;if(!(0,u.sb)(e)){let t=(0,u.$4)(e);for(;t&&!(0,u.eu)(t);){if((0,u.vq)(t)&&!y(t))return t;t=(0,u.$4)(t)}return n}let r=x(e,t);for(;r&&(0,u.Lv)(r)&&y(r);)r=x(r,t);return r&&(0,u.eu)(r)&&y(r)&&!(0,u.sQ)(r)?n:r||(0,u.gJ)(e)||n}let S=async function(e){let t=this.getOffsetParent||w,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,u.sb)(t),i=(0,u.ep)(t),l="fixed"===n,a=v(e,!0,l,t),s={scrollLeft:0,scrollTop:0},c=(0,r.Jx)(0);if(o||!o&&!l)if(("body"!==(0,u.mq)(t)||(0,u.ZU)(i))&&(s=(0,u.CP)(t)),o){let e=v(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=m(i));l&&!o&&i&&(c.x=m(i));let d=!i||o||l?(0,r.Jx)(0):g(i,s);return{x:a.left+s.scrollLeft-c.x-d.x,y:a.top+s.scrollTop-c.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},E={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,a=(0,u.ep)(o),s=!!t&&(0,u.Tf)(t.floating);if(o===a||s&&l)return n;let c={scrollLeft:0,scrollTop:0},d=(0,r.Jx)(1),p=(0,r.Jx)(0),h=(0,u.sb)(o);if((h||!h&&!l)&&(("body"!==(0,u.mq)(o)||(0,u.ZU)(a))&&(c=(0,u.CP)(o)),h)){let e=v(o);d=f(o),p.x=e.x+o.clientLeft,p.y=e.y+o.clientTop}
1let m=!a||h||l?(0,r.Jx)(0):g(a,c);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+p.x+m.x,y:n.y*d.y-c.scrollTop*d.y+p.y+m.y}},getDocumentElement:u.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,u.Tf)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,u.v9)(e,[],!1).filter(e=>(0,u.vq)(e)&&"body"!==(0,u.mq)(e)),o=null,i="fixed"===(0,u.L9)(e).position,l=i?(0,u.$4)(e):e;for(;(0,u.vq)(l)&&!(0,u.eu)(l);){let t=(0,u.L9)(l),n=(0,u.sQ)(l);n||"fixed"!==t.position||(o=null),(i?n||o:!(!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||(0,u.ZU)(l)&&!n&&function e(t,n){let r=(0,u.$4)(t);return!(r===n||!(0,u.vq)(r)||(0,u.eu)(r))&&("fixed"===(0,u.L9)(r).position||e(r,n))}(e,l)))?o=t:r=r.filter(e=>e!==l),l=(0,u.$4)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=b(t,l[0],i),s=a.top,c=a.right,d=a.bottom,f=a.left;for(let e=1;e<l.length;e++){let n=b(t,l[e],i);s=(0,r.T9)(n.top,s),c=(0,r.jk)(n.right,c),d=(0,r.jk)(n.bottom,d),f=(0,r.T9)(n.left,f)}return{width:c-f,height:d-s,x:f,y:s}},getOffsetParent:w,getElementRects:S,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:f,isElement:u.vq,isRTL:function(e){return"rtl"===(0,u.L9)(e).direction}};function O(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function P(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=d(e),h=l||a?[...p?(0,u.v9)(p):[],...t?(0,u.v9)(t):[]]:[];h.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let m=p&&c?function(e,t){let n,o=null,i=(0,u.ep)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),l();let c=e.getBoundingClientRect(),{left:d,top:f,width:p,height:h}=c;if(s||t(),!p||!h)return;let v=(0,r.RI)(f),m=(0,r.RI)(i.clientWidth-(d+p)),g={rootMargin:-v+"px "+-m+"px "+-(0,r.RI)(i.clientHeight-(f+h))+"px "+-(0,r.RI)(d)+"px",threshold:(0,r.T9)(0,(0,r.jk)(1,u))||1},b=!0;function y(t){let r=t[0].intersectionRatio;if(r!==u){if(!b)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||O(c,e.getBoundingClientRect())||a(),b=!1}try{o=new IntersectionObserver(y,{...g,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(y,g)}o.observe(e)}(!0),l}(p,n):null,g=-1,b=null;s&&(b=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&b&&t&&(b.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=b)||e.observe(t)})),n()}),p&&!f&&b.observe(p),t&&b.observe(t));let y=f?v(e):null;return f&&function t(){let r=v(e);y&&!O(y,r)&&n(),y=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=b)||e.disconnect(),b=null,f&&cancelAnimationFrame(i)}}let C=i,R=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await s(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},T=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i,platform:l}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r._3)(e,t),d={x:n,y:o},f=await l.detectOverflow(t,c),p=(0,r.TV)((0,r.C0)(i)),h=(0,r.PG)(p),v=d[h],m=d[p];if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=v+f[e],o=v-f[t];v=(0,r.qE)(n,v,o)}
1if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+f[e],o=m-f[t];m=(0,r.qE)(n,m,o)}let g=u.fn({...t,[h]:v,[p]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[h]:a,[p]:s}}}}}},L=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,l,a;let{placement:s,middlewareData:u,rects:c,initialPlacement:d,platform:f,elements:p}=t,{mainAxis:h=!0,crossAxis:v=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...x}=(0,r._3)(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let w=(0,r.C0)(s),S=(0,r.TV)(d),E=(0,r.C0)(d)===d,O=await (null==f.isRTL?void 0:f.isRTL(p.floating)),P=m||(E||!y?[(0,r.bV)(d)]:(0,r.WJ)(d)),C="none"!==b;!m&&C&&P.push(...(0,r.lP)(d,y,b,O));let R=[d,...P],T=await f.detectOverflow(t,x),L=[],k=(null==(o=u.flip)?void 0:o.overflows)||[];if(h&&L.push(T[w]),v){let e=(0,r.w7)(s,c,O);L.push(T[e[0]],T[e[1]])}if(k=[...k,{placement:s,overflows:L}],!L.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=R[e];if(t&&("alignment"!==v||S===(0,r.TV)(t)||k.every(e=>(0,r.TV)(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(l=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(g){case"bestFit":{let e=null==(a=k.filter(e=>{if(C){let t=(0,r.TV)(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=d}if(s!==n)return{reset:{placement:n}}}return{}}}},k=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,l,{placement:a,rects:s,platform:u,elements:c}=t,{apply:d=()=>{},...f}=(0,r._3)(e,t),p=await u.detectOverflow(t,f),h=(0,r.C0)(a),v=(0,r.Sg)(a),m="y"===(0,r.TV)(a),{width:g,height:b}=s.floating;"top"===h||"bottom"===h?(i=h,l=v===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(l=h,i="end"===v?"top":"bottom");let y=b-p.top-p.bottom,x=g-p.left-p.right,w=(0,r.jk)(b-p[i],y),S=(0,r.jk)(g-p[l],x),E=!t.middlewareData.shift,O=w,P=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=x),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(O=y),E&&!v){let e=(0,r.T9)(p.left,0),t=(0,r.T9)(p.right,0),n=(0,r.T9)(p.top,0),o=(0,r.T9)(p.bottom,0);m?P=g-2*(0!==e||0!==t?e+t:(0,r.T9)(p.left,p.right)):O=b-2*(0!==n||0!==o?n+o:(0,r.T9)(p.top,p.bottom))}await d({...t,availableWidth:P,availableHeight:O});let C=await u.getDimensions(c.floating);return g!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}},F=(e,t,n)=>{let r=new Map,o={platform:E,...n},i={...o.platform,_c:r};return l(e,t,{...o,platform:i})}},28138:(e,t,n)=>{e.exports=n(95962)},73473:(e,t,n)=>{n.d(t,{$t:()=>r});function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}},88334:(e,t,n)=>{n.d(t,{BN:()=>p,Ej:()=>v,UU:()=>h,cY:()=>f,we:()=>d});var r=n(20861),o=n(12115),i=n(47650),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!a(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=s(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:p,floating:h}={},transform:v=!0,whileElementsMounted:m,open:g}=e,[b,y]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,w]=o.useState(d);a(x,d)||w(d);let[S,E]=o.useState(null),[O,P]=o.useState(null),C=o.useCallback(e=>
1{e!==k.current&&(k.current=e,E(e))},[]),R=o.useCallback(e=>{e!==F.current&&(F.current=e,P(e))},[]),T=p||S,L=h||O,k=o.useRef(null),F=o.useRef(null),I=o.useRef(b),A=null!=m,M=c(m),D=c(f),_=c(g),N=o.useCallback(()=>{if(!k.current||!F.current)return;let e={placement:t,strategy:n,middleware:x};D.current&&(e.platform=D.current),(0,r.rD)(k.current,F.current,e).then(e=>{let t={...e,isPositioned:!1!==_.current};j.current&&!a(I.current,t)&&(I.current=t,i.flushSync(()=>{y(t)}))})},[x,t,n,D,_]);l(()=>{!1===g&&I.current.isPositioned&&(I.current.isPositioned=!1,y(e=>({...e,isPositioned:!1})))},[g]);let j=o.useRef(!1);l(()=>(j.current=!0,()=>{j.current=!1}),[]),l(()=>{if(T&&(k.current=T),L&&(F.current=L),T&&L){if(M.current)return M.current(T,L,N);N()}},[T,L,N,M,A]);let V=o.useMemo(()=>({reference:k,floating:F,setReference:C,setFloating:R}),[C,R]),B=o.useMemo(()=>({reference:T,floating:L}),[T,L]),W=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=u(B.floating,b.x),r=u(B.floating,b.y);return v?{...e,transform:"translate("+t+"px, "+r+"px)",...s(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,v,B.floating,b.x,b.y]);return o.useMemo(()=>({...b,update:N,refs:V,elements:B,floatingStyles:W}),[b,N,V,B,W])}let f=(e,t)=>{let n=(0,r.cY)(e);return{name:n.name,fn:n.fn,options:[e,t]}},p=(e,t)=>{let n=(0,r.BN)(e);return{name:n.name,fn:n.fn,options:[e,t]}},h=(e,t)=>{let n=(0,r.UU)(e);return{name:n.name,fn:n.fn,options:[e,t]}},v=(e,t)=>{let n=(0,r.Ej)(e);return{name:n.name,fn:n.fn,options:[e,t]}}},95962:(e,t,n)=>{var r=n(12115),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.useSyncExternalStore,l=r.useRef,a=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=i(e,(d=s(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return l=t}return l=e}if(t=l,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,l=n)}var i,l,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,c]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}}}]);
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.