1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,80758,e=>{"use strict";var t=Object.defineProperty,n=(e,n,r)=>{let i;return(i="symbol"!=typeof n?n+"":n)in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,r};let r=new class{constructor(){n(this,"current",this.detect()),n(this,"handoffState","pending"),n(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};e.s(["env",0,r])},941444,835696,e=>{"use strict";var t=e.i(271645),n=e.i(80758);let r=(e,r)=>{n.env.isServer?(0,t.useEffect)(e,r):(0,t.useLayoutEffect)(e,r)};e.s(["useIsoMorphicEffect",0,r],835696),e.s(["useLatestValue",0,function(e){let n=(0,t.useRef)(e);return r(()=>{n.current=e},[e]),n}],941444)},544508,368578,e=>{"use strict";function t(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}e.s(["microTask",0,t],368578),e.s(["disposables",0,function e(){let n=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let n={current:!0};return t(()=>{n.current&&e[0]()}),r.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(n.includes(e)||n.push(e),()=>{let t=n.indexOf(e);if(t>=0)for(let e of n.splice(t,1))e()}),dispose(){for(let e of n.splice(0))e()}};return r}],544508)},397701,e=>{"use strict";e.s(["match",0,function e(t,n,...r){if(t in n){let e=n[t];return"function"==typeof e?e(...r):e}let i=Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,e),i}])},914189,e=>{"use strict";var t=e.i(271645),n=e.i(941444);e.s(["useEvent",0,function(e){let r=(0,n.useLatestValue)(e);return t.default.useCallback((...e)=>r.current(...e),[r])}])},732607,e=>{"use strict";e.s(["classNames",0,function(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}])},700020,e=>{"use strict";let t,n;var r=e.i(271645),i=e.i(732607),o=e.i(397701),l=((t=l||{})[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t),s=((n=s||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function u(e,t={},n,o,l){let{as:s=n,children:a,refName:p="ref",...h}=d(e,["unmount","static"]),v=void 0!==e.ref?{[p]:e.ref}:{},g="function"==typeof a?a(t):a;g=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let n=t._payload;if(null!=n&&"fulfilled"===n.status)return e(n.value)}return t}(g),"className"in h&&h.className&&"function"==typeof h.className&&(h.className=h.className(t)),h["aria-labelledby"]&&h["aria-labelledby"]===h.id&&(h["aria-labelledby"]=void 0);let y={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(y["data-headlessui-state"]=n.join(" "),n))y[`data-${e}`]=""}if(m(s)&&(Object.keys(f(h)).length>0||Object.keys(f(y)).length>0))if(!(0,r.isValidElement)(g)||Array.isArray(g)&&g.length>1||m(g.type)){if(Object.keys(f(h)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f(h)).concat(Object.keys(f(y))).map(e=>` - ${e}`).join(` 2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` 3`)].join(` 4`))}else{var w;let e=g.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>(0,i.classNames)(t(...e),h.className):(0,i.classNames)(t,h.className),o=c(g.props,f(d(h,["ref"])));for(let e in y)e in o&&delete y[e];return(0,r.cloneElement)(g,Object.assign({},o,y,v,{ref:l((w=g,r.default.version.split(".")[0]>="19"?w.props.ref:w.ref),v.ref)},n?{className:n}:{}))}return(0,r.createElement)(s,Object.assign({},d(h,["ref"]),!m(s)&&v,!m(s)&&y),g)}function a(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function c(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let i of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...r)}}});return t}function f(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function d(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function m(e){return e===r.Fragment||e===Symbol.for("react.fragment")}e.s(["RenderFeatures",0,l,"RenderStrategy",0,s,"compact",0,f,"forwardRefWithAs",0,function(e){var t;return Object.assign((0,r.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})},"isFragment",0,m,"mergeProps",0,function(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t},"useRender",0,function(){let e,t,n=(e=(0,r.useRef)([]),t=(0,r.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,r.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:l=!0,name:s,mergeRefs:f}){f=null!=f?f:a;let d=c(t,e);if(l)return u(d,n,r,s,f);let m=null!=i?i:0;if(2&m){let{static:e=!1,...t}=d;if(e)return u(t,n,r,s,f)}if(1&m){let{unmount:e=!0,...t}=d;return(0,o.match)(+!e,{0:()=>null,1:()=>u({...t,hidden:!0,style:{display:"none"}},n,r,s,f)})}return u(d,n,r,s,f)})({mergeRefs:n,...e}),[n])}])},294316,e=>{"use strict";var t=e.i(271645),n=e.i(914189);let r=Symbol();e.s(["optionalRef",0,function(e,t=!0){return Object.assign(e,{[r]:t})},"useSyncRefs",0,function(...e){let i=(0,t.useRef)(e);(0,t.useEffect)(()=>{i.current=e},[e]);let o=(0,n.useEvent)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return e.every(e=>null==e||(null==e?void 0:e[r]))?void 0:o}])},746725,e=>{"use strict";var t=e.i(271645),n=e.i(544508);e.s(["useDisposables",0,function(){let[e]=(0,t.useState)(n.disposables);return(0,t.useEffect)(()=>()=>
4e.dispose(),[e]),e}])},998348,e=>{"use strict";let t;var n=((t=n||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t);e.s(["Keys",0,n])},402155,e=>{"use strict";var t=e.i(80758);function n(e){var n,r;return t.env.isServer?null:null==e?document:null!=(r=null==(n=null==e?void 0:e.getRootNode)?void 0:n.call(e))?r:document}function r(e){var t,r;return null!=(r=null==(t=n(e))?void 0:t.activeElement)?r:null}e.s(["getActiveElement",0,r,"getOwnerDocument",0,function(e){var n;return t.env.isServer?null:null==e?document:null!=(n=null==e?void 0:e.ownerDocument)?n:document},"getRootNode",0,n,"isActiveElement",0,function(e){return r(e)===e}])},813581,e=>{"use strict";function t(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function n(e){return t(e)&&"tagName"in e}function r(e){return n(e)&&"accessKey"in e}e.s(["hasInlineStyle",0,function(e){return n(e)&&"style"in e},"isElement",0,n,"isHTMLElement",0,r,"isHTMLFieldSetElement",0,function(e){return r(e)&&"FIELDSET"===e.nodeName},"isHTMLIframeElement",0,function(e){return r(e)&&"IFRAME"===e.nodeName},"isHTMLInputElement",0,function(e){return r(e)&&"INPUT"===e.nodeName},"isHTMLLabelElement",0,function(e){return r(e)&&"LABEL"===e.nodeName},"isHTMLLegendElement",0,function(e){return r(e)&&"LEGEND"===e.nodeName},"isHTMLorSVGElement",0,function(e){return n(e)&&"tabIndex"in e},"isInteractiveElement",0,function(e){return!!n(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')},"isNode",0,t])},255743,e=>{"use strict";var t=e.i(271645);e.s(["useSlot",0,function(e){return(0,t.useMemo)(()=>e,Object.values(e))}])},2788,e=>{"use strict";let t;var n=e.i(700020),r=((t=r||{})[t.None=1]="None",t[t.Focusable=2]="Focusable",t[t.Hidden=4]="Hidden",t);let i=(0,n.forwardRefWithAs)(function(e,t){var r;let{features:i=1,...o}=e,l={ref:t,"aria-hidden":(2&i)==2||(null!=(r=o["aria-hidden"])?r:void 0),hidden:(4&i)==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&i)==4&&(2&i)!=2&&{display:"none"}}};return(0,n.useRender)()({ourProps:l,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})});e.s(["Hidden",0,i,"HiddenFeatures",0,r])},652265,e=>{"use strict";let t,n,r,i,o;var l=e.i(544508),s=e.i(813581),u=e.i(397701),a=e.i(402155);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),f=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var d=((t=d||{})[t.First=1]="First",t[t.Previous=2]="Previous",t[t.Next=4]="Next",t[t.Last=8]="Last",t[t.WrapAround=16]="WrapAround",t[t.NoScroll=32]="NoScroll",t[t.AutoFocus=64]="AutoFocus",t),m=((n=m||{})[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n),p=((r=p||{})[r.Previous=-1]="Previous",r[r.Next=1]="Next",r);function h(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var v=((i=v||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function g(e,t=0){var n;return e!==(null==(n=(0,a.getOwnerDocument)(e))?void 0:n.body)&&(0,u.match)(t,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var y=((o=y||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function w(e){null==e||e.focus({preventScroll:!0})}function b(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function E(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o,l,s;let u=Array.isArray(e)?e.length>0?(0,a.getRootNode)(e[0]):document:(0,a.getRootNode)(e),c=Array.isArray(e)?n?b(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(f)).sort((e,t)=>
4Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):h(e);i.length>0&&c.length>1&&(c=c.filter(e=>!i.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==u?void 0:u.activeElement;let d=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(r))-1;if(4&t)return Math.max(0,c.indexOf(r))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},v=0,g=c.length,y;do{if(v>=g||v+g<=0)return 0;let e=m+v;if(16&t)e=(e+g)%g;else{if(e<0)return 3;if(e>=g)return 1}null==(y=c[e])||y.focus(p),v+=d}while(y!==(0,a.getActiveElement)(y))return 6&t&&null!=(s=null==(l=null==(o=y)?void 0:o.matches)?void 0:l.call(o,"textarea,input"))&&s&&y.select(),2}"u">typeof window&&"u">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)),e.s(["Focus",0,d,"FocusResult",0,m,"FocusableMode",0,v,"focusElement",0,w,"focusFrom",0,function(e,t,n=null===e?document.body:(0,a.getRootNode)(e)){return E(h(n),t,{relativeTo:e})},"focusIn",0,E,"focusableSelector",0,c,"getFocusableElements",0,h,"isFocusableElement",0,g,"restoreFocusIfNecessary",0,function(e){(0,l.disposables)().nextFrame(()=>{let t=(0,a.getActiveElement)(e);t&&s.isHTMLorSVGElement(t)&&!g(t,0)&&w(e)})},"sortByDomNode",0,b])},233137,e=>{"use strict";let t;var n=e.i(271645);let r=(0,n.createContext)(null);r.displayName="OpenClosedContext";var i=((t=i||{})[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t);e.s(["OpenClosedProvider",0,function({value:e,children:t}){return n.default.createElement(r.Provider,{value:e},t)},"ResetOpenClosedProvider",0,function({children:e}){return n.default.createElement(r.Provider,{value:null},e)},"State",0,i,"useOpenClosed",0,function(){return(0,n.useContext)(r)}])},83733,e=>{"use strict";let t;var n,r,i=e.i(247167),o=e.i(271645),l=e.i(544508),s=e.i(746725),u=e.i(835696);void 0!==i.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(n=null==i.default?void 0:i.default.env)?void 0:n.NODE_ENV)==="test"&&void 0===(null==(r=null==Element?void 0:Element.prototype)?void 0:r.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` 5`)),[]});var a=((t=a||{})[t.None=0]="None",t[t.Closed=1]="Closed",t[t.Enter=2]="Enter",t[t.Leave=4]="Leave",t);e.s(["transitionDataAttributes",0,function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t},"useTransition",0,function(e,t,n,r){let[i,a]=(0,o.useState)(n),{hasFlag:c,addFlag:f,removeFlag:d}=function(e=0){let[t,n]=(0,o.useState)(e),r=(0,o.useCallback)(e=>n(e),[]),i=(0,o.useCallback)(e=>n(t=>t|e),[]),l=(0,o.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:l,removeFlag:(0,o.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,o.useCallback)(e=>n(t=>t^e),[])}}(e&&i?3:0),m=(0,o.useRef)(!1),p=(0,o.useRef)(!1),h=(0,s.useDisposables)();return(0,u.useIsoMorphicEffect)(()=>{var i;if(e){if(n&&a(!0),!t){n&&f(3);return}return null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=(0,l.disposables)();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let i=(0,l.disposables)();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?t():Promise.allSettled(s.map(e=>e.finished)).then(()=>{o||t()}),i.dispose}(e,r))})}),o.dispose}(t,{inFlight:m,prepare(){p.current?p.current=!1:p.current=m.current,m.current=!0,p.current||(n?(f(3),d(4)):(f(4),d(2)))},run(){p.current?n?(d(3),f(4)):(d(4),f(3)):n?d(1):f(1)},done(){var e,i,o,l;p.current&&(null!=(l=null==(o=(i=t).getAnimations)?void 0:o.call(i))?l:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(m.current=!1,d(7),n||a(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,h]),e?[i,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}],83733)},674175,e=>{"use strict";var t=e.i(271645);let n=(0,t.createContext)(()=>{});e.s(["CloseProvider",0,function({value:e,children:r}){return t.default.createElement(n.Provider,{value:e},r)}])},614595,(e,t,n)=>{"use strict";var r=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,l=r.useRef,s=r.useEffect,u=r.useMemo,a=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var m=o(e,(f=u(function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==c&&d.hasValue){var t=d.value;if(c(t,e))return l=t}return l=e}if(t=l,i(o,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(o=e,t):(o=e,l=n)}var o,l,s=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,n,r,c]))[0],f[1]);return s(function(){d.hasValue=!0,d.value=m},[m]),a(m),m}},313027,(e,t,n)=>{"use strict";
5t.exports=e.r(614595)},178677,e=>{"use strict";var t=e.i(271645),n=e.i(80758);e.s(["useServerHandoffComplete",0,function(){let e,r=(e="u"<typeof document,"useSyncExternalStore"in t&&(0,t.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,o]=t.useState(n.env.isHandoffComplete);return i&&!1===n.env.isHandoffComplete&&o(!1),t.useEffect(()=>{!0!==i&&o(!0)},[i]),t.useEffect(()=>n.env.handoff(),[]),!r&&i}])},929644,825720,341650,140407,e=>{"use strict";let t;var n,r,i,o=e.i(271645);class l extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var s=e.i(544508),u=e.i(80758),a=Object.defineProperty,c=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},f=(e,t,n)=>(c(e,t,"read from private field"),n?n.call(e):t.get(e)),d=(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)},m=(e,t,n,r)=>(c(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class p{constructor(e){d(this,n,{}),d(this,r,new l(()=>new Set)),d(this,i,new Set),((e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?a(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n})(this,"disposables",(0,s.disposables)()),m(this,n,e),u.env.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return f(this,n)}subscribe(e,t){if(u.env.isServer)return()=>{};let r={selector:e,callback:t,current:e(f(this,n))};return f(this,i).add(r),this.disposables.add(()=>{f(this,i).delete(r)})}on(e,t){return u.env.isServer?()=>{}:(f(this,r).get(e).add(t),this.disposables.add(()=>{f(this,r).get(e).delete(t)}))}send(e){let t=this.reduce(f(this,n),e);if(t!==f(this,n)){for(let e of(m(this,n,t),f(this,i))){let t=e.selector(f(this,n));h(e.current,t)||(e.current=t,e.callback(t))}for(let t of f(this,r).get(e.type))t(f(this,n),e)}}}function h(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&&v(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&v(e.entries(),t.entries()):!!(g(e)&&g(t))&&v(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function v(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 g(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}n=new WeakMap,r=new WeakMap,i=new WeakMap,e.s(["Machine",0,p,"batch",0,function(e){let[t,n]=e(),r=(0,s.disposables)();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}},"shallowEqual",0,h],825720);var y=e.i(397701),w=Object.defineProperty,b=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?w(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},E=((t=E||{})[t.Push=0]="Push",t[t.Pop=1]="Pop",t);let x={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(-1!==i){let t=e.stack.slice();return t.splice(i,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 i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}};class S extends p{constructor(){super(...arguments),b(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),b(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new S({stack:[]})}reduce(e,t){return(0,y.match)(t.type,x,e,t)}}let O=new l(()=>S.new());e.s(["ActionTypes",0,E,"stackMachines",0,O],341650);var R=e.i(313027),A=e.i(914189);function T(e,t,n=h){return(0,R.useSyncExternalStoreWithSelector)((0,A.useEvent)(t=>e.subscribe(L,t)),(0,A.useEvent)(()=>e.state),(0,A.useEvent)(()=>e.state),(0,A.useEvent)(t),n)}function L(e){return e}e.s(["useSlice",0,T],140407);var P=e.i(835696);e.s(["useIsTopLayer",0,function(e,t){let n=(0,o.useId)(),r=O.get(t),[i,l]=T(r,(0,o.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return(0,P.useIsoMorphicEffect)(()=>
5{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!l||i)}],929644)},877891,22357,401141,952744,605083,808417,e=>{"use strict";let t,n;var r,i,o=e.i(271645),l=e.i(544508),s=e.i(813581),u=e.i(941444);e.s(["useOnDisappear",0,function(e,t,n){let r=(0,u.useLatestValue)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,o.useEffect)(()=>{if(!e)return;let n=null===t?null:s.isHTMLElement(t)?t:t.current;if(!n)return;let i=(0,l.disposables)();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,r,e])}],877891);var a=e.i(652265);function c(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function f(){return c()||/Android/gi.test(window.navigator.userAgent)}function d(e,t,n,r){let i=(0,u.useLatestValue)(n);(0,o.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function m(e,t,n,r){let i=(0,u.useLatestValue)(n);(0,o.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}e.s(["useDocumentEvent",0,d],22357),e.s(["useWindowEvent",0,m],401141),e.s(["useOutsideClick",0,function(e,t,n){let r=(0,u.useLatestValue)(n),i=(0,o.useCallback)(function(e,n){if(e.defaultPrevented)return;let i=n(e);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(i)||e.composed&&e.composedPath().includes(n)))return;return(0,a.isFocusableElement)(i,a.FocusableMode.Loose)||-1===i.tabIndex||e.preventDefault(),r.current(e,i)}},[r,t]),l=(0,o.useRef)(null);d(e,"pointerdown",e=>{var t,n;f()||(l.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),d(e,"pointerup",e=>{if(f()||!l.current)return;let t=l.current;return l.current=null,i(e,()=>t)},!0);let c=(0,o.useRef)({x:0,y:0});d(e,"touchstart",e=>{c.current.x=e.touches[0].clientX,c.current.y=e.touches[0].clientY},!0),d(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-c.current.x)>=30||Math.abs(t.y-c.current.y)>=30))return i(e,()=>s.isHTMLorSVGElement(e.target)?e.target:null)},!0),m(e,"blur",e=>i(e,()=>s.isHTMLIframeElement(window.document.activeElement)?window.document.activeElement:null),!0)}],952744);var p=e.i(402155);e.s(["useOwnerDocument",0,function(...e){return(0,o.useMemo)(()=>(0,p.getOwnerDocument)(...e),[...e])},"useRootDocument",0,function(...e){return(0,o.useMemo)(()=>(0,p.getRootNode)(...e),[...e])}],605083);var h=e.i(835696);function v(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let g=(r=()=>new Map,i={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,l.disposables)(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=v(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=v(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[c()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,l.disposables)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(s.isHTMLorSVGElement(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),l=e.querySelector(i);s.isHTMLorSVGElement(l)&&!r(l)&&(o=l)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),s.isHTMLorSVGElement(e.target)&&s.hasInlineStyle(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(s.isHTMLorSVGElement(e.target)&&!s.isHTMLInputElement(e.target))if(r(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}),t.add(()=>{var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var n;let r=e.documentElement;t=Math.max(0,(null!=(n=e.defaultView)?n:window).innerWidth-r.clientWidth)},after({doc:e,d:n}){let r=e.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,t-i);n.style(r,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(n)),r.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},t=r(),n=new Set,{getSnapshot:()=>t,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...r){let o=i[e].call(t,...r);
5o&&(t=o,n.forEach(e=>e()))}});g.subscribe(()=>{let e=g.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)&&g.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&g.dispatch("TEARDOWN",n)}}),e.s(["useDocumentOverflowLockedEffect",0,function(e,t,n=()=>({containers:[]})){let r=(0,o.useSyncExternalStore)(g.subscribe,g.getSnapshot,g.getSnapshot),i=t?r.get(t):void 0,l=!!i&&i.count>0;return(0,h.useIsoMorphicEffect)(()=>{if(!(!t||!e))return g.dispatch("PUSH",t,n),()=>g.dispatch("POP",t,n)},[e,t]),l}],808417)},101852,e=>{"use strict";var t=e.i(808417),n=e.i(929644);e.s(["useScrollLock",0,function(e,r,i=()=>[document.body]){let o=(0,n.useIsTopLayer)(e,"scroll-lock");(0,t.useDocumentOverflowLockedEffect)(o,r,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],i]}})}])},496629,e=>{"use strict";var t=e.i(271645);let n=(0,t.createContext)(!1);e.s(["ForcePortalRoot",0,function(e){return t.default.createElement(n.Provider,{value:e.force},e.children)},"usePortalRoot",0,function(){return(0,t.useContext)(n)}])},526599,e=>{"use strict";var t=e.i(271645),n=e.i(368578),r=e.i(914189);e.s(["useOnUnmount",0,function(e){let i=(0,r.useEvent)(e),o=(0,t.useRef)(!1);(0,t.useEffect)(()=>(o.current=!1,()=>{o.current=!0,(0,n.microTask)(()=>{o.current&&i()})}),[i])}])},693456,185935,661130,e=>{"use strict";let t;var n=e.i(271645),r=e.i(941444);e.s(["useEventListener",0,function(e,t,i,o){let l=(0,r.useLatestValue)(i);(0,n.useEffect)(()=>{function n(e){l.current(e)}return(e=null!=e?e:window).addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)},[e,t,o])}],693456);var i=e.i(2788),o=e.i(813581),l=e.i(402155),s=e.i(914189);let u=(0,n.createContext)(null);function a(e=null){var t;return null!=(t=(0,n.useContext)(u))?t:e}e.s(["MainTreeProvider",0,function({children:e,node:t}){let[r,s]=(0,n.useState)(null),c=a(null!=t?t:r);return n.default.createElement(u.Provider,{value:c},e,null===c&&n.default.createElement(i.Hidden,{features:i.HiddenFeatures.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,l.getOwnerDocument)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&o.isElement(r)&&null!=r&&r.contains(e)){s(r);break}}}}))},"useMainTreeNode",0,a,"useRootContainers",0,function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=(0,s.useEvent)(()=>{var r,i;let s=(0,l.getOwnerDocument)(n),u=[];for(let t of e)null!==t&&(o.isElement(t)?u.push(t):"current"in t&&o.isElement(t.current)&&u.push(t.current));if(null!=t&&t.current)for(let e of t.current)u.push(e);for(let e of null!=(r=null==s?void 0:s.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&o.isElement(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(i=null==n?void 0:n.getRootNode())?void 0:i.host))||u.some(t=>e.contains(t))||u.push(e));return u});
5return{resolveContainers:r,contains:(0,s.useEvent)(e=>r().some(t=>t.contains(e)))}}],185935);var c=e.i(401141),f=((t=f||{})[t.Forwards=0]="Forwards",t[t.Backwards=1]="Backwards",t);e.s(["Direction",0,f,"useTabDirection",0,function(){let e=(0,n.useRef)(0);return(0,c.useWindowEvent)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}],661130)},635307,e=>{"use strict";var t=e.i(271645),n=e.i(174080),r=e.i(746725),i=e.i(914189),o=e.i(526599),l=e.i(605083),s=e.i(178677),u=e.i(294316),a=e.i(496629),c=e.i(80758),f=e.i(700020);let d=t.Fragment,m=(0,f.forwardRefWithAs)(function(e,i){let{ownerDocument:m=null,...p}=e,g=(0,t.useRef)(null),y=(0,u.useSyncRefs)((0,u.optionalRef)(e=>{g.current=e}),i),w=(0,l.useOwnerDocument)(g.current),b=function(e){let n=(0,a.usePortalRoot)(),r=(0,t.useContext)(h),[i,o]=(0,t.useState)(()=>{var t;if(!n&&null!==r)return null!=(t=r.current)?t:null;if(c.env.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,t.useEffect)(()=>{null!==i&&(null!=e&&e.body.contains(i)||null==e||e.body.appendChild(i))},[i,e]),(0,t.useEffect)(()=>{n||null!==r&&o(r.current)},[r,o,n]),i}(null!=m?m:w),E=(0,t.useContext)(v),x=(0,r.useDisposables)(),S=(0,s.useServerHandoffComplete)(),O=(0,f.useRender)();return(0,o.useOnUnmount)(()=>{var e;b&&b.childNodes.length<=0&&(null==(e=b.parentElement)||e.removeChild(b))}),b&&S?(0,n.createPortal)(t.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{x.dispose(),E&&e&&x.add(E.register(e))}},O({ourProps:{ref:y},theirProps:p,slot:{},defaultTag:d,name:"Portal"})),b):null}),p=t.Fragment,h=(0,t.createContext)(null),v=(0,t.createContext)(null),g=(0,f.forwardRefWithAs)(function(e,n){let r=(0,u.useSyncRefs)(n),{enabled:i=!0,ownerDocument:o,...l}=e,s=(0,f.useRender)();return i?t.default.createElement(m,{...l,ownerDocument:o,ref:r}):s({ourProps:{ref:r},theirProps:l,slot:{},defaultTag:d,name:"Portal"})}),y=(0,f.forwardRefWithAs)(function(e,n){let{target:r,...i}=e,o={ref:(0,u.useSyncRefs)(n)},l=(0,f.useRender)();return t.default.createElement(h.Provider,{value:r},l({ourProps:o,theirProps:i,defaultTag:p,name:"Popover.Group"}))}),w=Object.assign(g,{Group:y});e.s(["Portal",0,w,"PortalGroup",0,y,"useNestedPortals",0,function(){let e=(0,t.useContext)(v),n=(0,t.useRef)([]),r=(0,i.useEvent)(t=>(n.current.push(t),e&&e.register(t),()=>o(t))),o=(0,i.useEvent)(t=>{let r=n.current.indexOf(t);-1!==r&&n.current.splice(r,1),e&&e.unregister(t)}),l=(0,t.useMemo)(()=>({register:r,unregister:o,portals:n}),[r,o,n]);return[n,(0,t.useMemo)(()=>function({children:e}){return t.default.createElement(v.Provider,{value:l},e)},[l])]}])},953760,343084,229315,e=>{"use strict";let t,n=["top","right","bottom","left"],r=n.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,o=Math.max,l=Math.round,s=Math.floor,u=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"};function c(e,t,n){return o(e,i(t,n))}function f(e,t){return"function"==typeof e?e(t):e}function d(e){return e.split("-")[0]}function m(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 g(e){return p(v(e))}function y(e,t,n){void 0===n&&(n=!1);let r=m(e),i=g(e),o=h(i),l="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=A(l)),[l,A(l)]}function w(e){let t=A(e);return[b(e),t,b(t)]}function b(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let E=["left","right"],x=["right","left"],S=["top","bottom"],O=["bottom","top"];function R(e,t,n,r){let i=m(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?x:E;return t?E:x;case"left":case"right":return t?S:O;default:return[]}}(d(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(b)))),o}function A(e){let t=d(e);return a[t]+e.slice(t.length)}function T(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function P(e,t,n){let r,{reference:i,floating:o}
5=e,l=v(t),s=g(t),u=h(s),a=d(t),c="y"===l,f=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,y=i[u]/2-o[u]/2;switch(a){case"top":r={x:f,y:i.y-o.height};break;case"bottom":r={x:f,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:p};break;case"left":r={x:i.x-o.width,y:p};break;default:r={x:i.x,y:i.y}}switch(m(t)){case"start":r[s]-=y*(n&&c?-1:1);break;case"end":r[s]+=y*(n&&c?-1:1)}return r}async function C(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:l,elements:s,strategy:u}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:m=!1,padding:p=0}=f(t,e),h=T(p),v=s[m?"floating"===d?"reference":"floating":d],g=L(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:a,rootBoundary:c,strategy:u})),y="floating"===d?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},E=L(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:w,strategy:u}):y);return{top:(g.top-E.top+h.top)/b.y,bottom:(E.bottom-g.bottom+h.bottom)/b.y,left:(g.left-E.left+h.left)/b.x,right:(E.right-g.right+h.right)/b.x}}e.s(["clamp",0,c,"createCoords",0,u,"evaluate",0,f,"floor",0,s,"getAlignment",0,m,"getAlignmentAxis",0,g,"getAlignmentSides",0,y,"getAxisLength",0,h,"getExpandedPlacements",0,w,"getOppositeAlignmentPlacement",0,b,"getOppositeAxis",0,p,"getOppositeAxisPlacements",0,R,"getOppositePlacement",0,A,"getPaddingObject",0,T,"getSide",0,d,"getSideAxis",0,v,"max",0,o,"min",0,i,"placements",0,r,"rectToClientRect",0,L,"round",0,l,"sides",0,n],343084);let F=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:C},u=await (null==l.isRTL?void 0:l.isRTL(t)),a=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=P(a,r,u),d=r,m=0,p={};for(let n=0;n<o.length;n++){let h=o[n];if(!h)continue;let{name:v,fn:g}=h,{x:y,y:w,data:b,reset:E}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:a,platform:s,elements:{reference:e,floating:t}});c=null!=y?y:c,f=null!=w?w:f,p[v]={...p[v],...b},E&&m<50&&(m++,"object"==typeof E&&(E.placement&&(d=E.placement),E.rects&&(a=!0===E.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):E.rects),{x:c,y:f}=P(a,d,u)),n=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function k(e){return n.some(t=>e[t]>=0)}function M(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:o(...e.map(e=>e.right))-t,height:o(...e.map(e=>e.bottom))-n}}let D=new Set(["left","top"]);async function H(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),l=d(n),s=m(n),u="y"===v(n),a=D.has(l)?-1:1,c=o&&u?-1:1,p=f(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:y}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&"number"==typeof y&&(g="end"===s?-1*y:y),u?{x:g*c,y:h*a}:{x:h*a,y:g*c}}function j(){return"u">typeof window}function I(e){return B(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function V(e){var t;return null==(t=(B(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function B(e){return!!j()&&(e instanceof Node||e instanceof W(e).Node)}function _(e){return!!j()&&(e instanceof Element||e instanceof W(e).Element)}function U(e){return!!j()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function $(e){return!(!j()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}function G(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=et(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function q(e){return/^(table|td|th)$/.test(I(e))}function K(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let z=/transform|translate|scale|rotate|perspective|filter/,Y=/paint|layout|strict|content/,X=e=>!!e&&"none"!==e;function Z(e){let t=_(e)?et(e):e;return X(t.transform)||X(t.translate)||X(t.scale)||X(t.rotate)||X(t.perspective)||!Q()&&(X(t.backdropFilter)||X(t.filter))||z.test(t.willChange||"")||Y.test(t.contain||"")}function J(e){let t=er(e);for(;
5U(t)&&!ee(t);){if(Z(t))return t;if(K(t))break;t=er(t)}return null}function Q(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function ee(e){return/^(html|body|#document)$/.test(I(e))}function et(e){return W(e).getComputedStyle(e)}function en(e){return _(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function er(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||$(e)&&e.host||V(e);return $(t)?t.host:t}function ei(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=er(t);return ee(n)?t.ownerDocument?t.ownerDocument.body:t.body:U(n)&&G(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),l=W(i);if(!o)return t.concat(i,ei(i,[],n));{let e=eo(l);return t.concat(l,l.visualViewport||[],G(i)?i:[],e&&n?ei(e):[])}}function eo(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function el(e){let t=et(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=U(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=l(n)!==o||l(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function es(e){return _(e)?e:e.contextElement}function eu(e){let t=es(e);if(!U(t))return u(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=el(t),s=(o?l(n.width):n.width)/r,a=(o?l(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}e.s(["getComputedStyle",0,et,"getContainingBlock",0,J,"getDocumentElement",0,V,"getFrameElement",0,eo,"getNodeName",0,I,"getNodeScroll",0,en,"getOverflowAncestors",0,ei,"getParentNode",0,er,"getWindow",0,W,"isContainingBlock",0,Z,"isElement",0,_,"isHTMLElement",0,U,"isLastTraversableNode",0,ee,"isOverflowElement",0,G,"isShadowRoot",0,$,"isTableElement",0,q,"isTopLayer",0,K,"isWebKit",0,Q],229315);let ea=u(0);function ec(e){let t=W(e);return Q()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ea}function ef(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),l=es(e),s=u(1);t&&(r?_(r)&&(s=eu(r)):s=eu(e));let a=(void 0===(i=n)&&(i=!1),r&&(!i||r===W(l))&&i)?ec(l):u(0),c=(o.left+a.x)/s.x,f=(o.top+a.y)/s.y,d=o.width/s.x,m=o.height/s.y;if(l){let e=W(l),t=r&&_(r)?W(r):r,n=e,i=eo(n);for(;i&&r&&t!==n;){let e=eu(i),t=i.getBoundingClientRect(),r=et(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,f*=e.y,d*=e.x,m*=e.y,c+=o,f+=l,i=eo(n=W(i))}}return L({width:d,height:m,x:c,y:f})}function ed(e,t){let n=en(e).scrollLeft;return t?t.left+n:ef(V(e)).left+n}function em(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ed(e,n),y:n.top+t.scrollTop}}function ep(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=W(e),r=V(e),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,s=0,u=0;if(i){o=i.width,l=i.height;let e=Q();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}let a=ed(r);if(a<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else a<=25&&(o+=a);return{width:o,height:l,x:s,y:u}}(e,n);else if("document"===t){let t,n,l,s,u,a,c;r=V(e),t=V(r),n=en(r),l=r.ownerDocument.body,s=o(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),u=o(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight),a=-n.scrollLeft+ed(r),c=-n.scrollTop,"rtl"===et(l).direction&&(a+=o(t.clientWidth,l.clientWidth)-s),i={width:s,height:u,x:a,y:c}}else if(_(t)){let e,r,o,l,s,a;r=(e=ef(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,l=U(t)?eu(t):u(1),s=t.clientWidth*l.x,a=t.clientHeight*l.y,i={width:s,height:a,x:o*l.x,y:r*l.y}}else{let n=ec(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(i)}function eh(e){return"static"===et(e).position}function ev(e,t){if(!U(e)||"fixed"===et(e).position)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function eg(e,t){let n=W(e);if(K(e))return n;if(!U(e)){let t=er(e);for(;t&&!ee(t);){if(_(t)&&!eh(t))return t;t=er(t)}return n}let r=ev(e,t);for(;r&&q(r)&&eh(r);)r=ev(r,t);return r&&ee(r)&&eh(r)&&!Z(r)?n:r||J(e)||n}let ey=async function(e){let t=this.getOffsetParent||eg,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=U(t),i=V(t),o="fixed"===n,l=ef(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=u(0);if(r||!r&&!o)if(("body"!==I(t)||G(i))&&(s=en(t)),r){let e=ef(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=ed(i));o&&!r&&i&&(a.x=ed(i));let c=!i||r||o?u(0):em(i,s);return{x:l.left+s.scrollLeft-a.x-c.x,y:l.top+s.scrollTop-a.y-c.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ew={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,l=V(r),s=!!t&&K(t.floating);if(r===l||s&&o)return n;let a={scrollLeft:0,scrollTop:0},c=u(1),f=u(0),d=U(r);
5if((d||!d&&!o)&&(("body"!==I(r)||G(l))&&(a=en(r)),d)){let e=ef(r);c=eu(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}let m=!l||d||o?u(0):em(l,a);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+f.x+m.x,y:n.y*c.y-a.scrollTop*c.y+f.y+m.y}},getDocumentElement:V,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:l}=e,s=[..."clippingAncestors"===n?K(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=ei(e,[],!1).filter(e=>_(e)&&"body"!==I(e)),i=null,o="fixed"===et(e).position,l=o?er(e):e;for(;_(l)&&!ee(l);){let t=et(l),n=Z(l);n||"fixed"!==t.position||(i=null),(o?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||G(l)&&!n&&function e(t,n){let r=er(t);return!(r===n||!_(r)||ee(r))&&("fixed"===et(r).position||e(r,n))}(e,l)))?i=t:r=r.filter(e=>e!==l),l=er(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],u=ep(t,s[0],l),a=u.top,c=u.right,f=u.bottom,d=u.left;for(let e=1;e<s.length;e++){let n=ep(t,s[e],l);a=o(n.top,a),c=i(n.right,c),f=i(n.bottom,f),d=o(n.left,d)}return{width:c-d,height:f-a,x:d,y:a}},getOffsetParent:eg,getElementRects:ey,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=el(e);return{width:t,height:n}},getScale:eu,isElement:_,isRTL:function(e){return"rtl"===et(e).direction}};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}e.s(["arrow",0,e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:l,platform:s,elements:u,middlewareData:a}=t,{element:d,padding:p=0}=f(e,t)||{};if(null==d)return{};let v=T(p),y={x:n,y:r},w=g(o),b=h(w),E=await s.getDimensions(d),x="y"===w,S=x?"clientHeight":"clientWidth",O=l.reference[b]+l.reference[w]-y[w]-l.floating[b],R=y[w]-l.reference[w],A=await (null==s.getOffsetParent?void 0:s.getOffsetParent(d)),L=A?A[S]:0;L&&await (null==s.isElement?void 0:s.isElement(A))||(L=u.floating[S]||l.floating[b]);let P=L/2-E[b]/2-1,C=i(v[x?"top":"left"],P),F=i(v[x?"bottom":"right"],P),N=L-E[b]-F,k=L/2-E[b]/2+(O/2-R/2),M=c(C,k,N),D=!a.arrow&&null!=m(o)&&k!==M&&l.reference[b]/2-(k<C?C:F)-E[b]/2<0,H=D?k<C?k-C:k-N:0;return{[w]:y[w]+H,data:{[w]:M,centerOffset:k-M-H,...D&&{alignmentOffset:H}},reset:D}}}),"autoPlacement",0,function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,i,o,l;let{rects:s,middlewareData:u,placement:a,platform:c,elements:p}=t,{crossAxis:h=!1,alignment:v,allowedPlacements:g=r,autoAlignment:w=!0,...E}=f(e,t),x=void 0!==v||g===r?((l=v||null)?[...g.filter(e=>m(e)===l),...g.filter(e=>m(e)!==l)]:g.filter(e=>d(e)===e)).filter(e=>!l||m(e)===l||!!w&&b(e)!==e):g,S=await c.detectOverflow(t,E),O=(null==(n=u.autoPlacement)?void 0:n.index)||0,R=x[O];if(null==R)return{};let A=y(R,s,await (null==c.isRTL?void 0:c.isRTL(p.floating)));if(a!==R)return{reset:{placement:x[0]}};let T=[S[d(R)],S[A[0]],S[A[1]]],L=[...(null==(i=u.autoPlacement)?void 0:i.overflows)||[],{placement:R,overflows:T}],P=x[O+1];if(P)return{data:{index:O+1,overflows:L},reset:{placement:P}};let C=L.map(e=>{let t=m(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),F=(null==(o=C.filter(e=>e[2].slice(0,m(e[0])?2:3).every(e=>e<=0))[0])?void 0:o[0])||C[0][0];return F!==a?{data:{index:O+1,overflows:L},reset:{placement:F}}:{}}}},"autoUpdate",0,function(e,t,n,r){let l;void 0===r&&(r={});let{ancestorScroll:u=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:d=!1}=r,m=es(e),p=u||a?[...m?ei(m):[],...t?ei(t):[]]:[];p.forEach(e=>{u&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let h=m&&f?function(e,t){let n,r=null,l=V(e);function u(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),u();let d=e.getBoundingClientRect(),{left:m,top:p,width:h,height:v}=d;if(c||t(),!h||!v)return;let g={rootMargin:-s(p)+"px "+-s(l.clientWidth-(m+h))+"px "+-s(l.clientHeight-(p+v))+"px "+-s(m)+"px",threshold:o(0,i(1,f))||1},y=!0;function w(t){let r=t[0].intersectionRatio;if(r!==f){if(!y)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eb(d,e.getBoundingClientRect())||a(),y=!1}try{r=new IntersectionObserver(w,{...g,root:l.ownerDocument})}catch(e){r=new IntersectionObserver(w,g)}r.observe(e)}(!0),u}
5(m,n):null,v=-1,g=null;c&&(g=new ResizeObserver(e=>{let[r]=e;r&&r.target===m&&g&&t&&(g.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),n()}),m&&!d&&g.observe(m),t&&g.observe(t));let y=d?ef(e):null;return d&&function t(){let r=ef(e);y&&!eb(y,r)&&n(),y=r,l=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach(e=>{u&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,d&&cancelAnimationFrame(l)}},"computePosition",0,(e,t,n)=>{let r=new Map,i={platform:ew,...n},o={...i.platform,_c:r};return F(e,t,{...i,platform:o})},"detectOverflow",0,C,"flip",0,function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,l;let{placement:s,middlewareData:u,rects:a,initialPlacement:c,platform:m,elements:p}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...O}=f(e,t);if(null!=(n=u.arrow)&&n.alignmentOffset)return{};let T=d(s),L=v(c),P=d(c)===c,C=await (null==m.isRTL?void 0:m.isRTL(p.floating)),F=b||(P||!S?[A(c)]:w(c)),N="none"!==x;!b&&N&&F.push(...R(c,S,x,C));let k=[c,...F],M=await m.detectOverflow(t,O),D=[],H=(null==(r=u.flip)?void 0:r.overflows)||[];if(h&&D.push(M[T]),g){let e=y(s,a,C);D.push(M[e[0]],M[e[1]])}if(H=[...H,{placement:s,overflows:D}],!D.every(e=>e<=0)){let e=((null==(i=u.flip)?void 0:i.index)||0)+1,t=k[e];if(t&&("alignment"!==g||L===v(t)||H.every(e=>v(e.placement)!==L||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(o=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(l=H.filter(e=>{if(N){let t=v(e.placement);return t===L||"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:l[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}},"hide",0,function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=f(e,t);switch(i){case"referenceHidden":{let e=N(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:k(e)}}}case"escaped":{let e=N(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:k(e)}}}default:return{}}}}},"inline",0,function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:r,rects:l,platform:s,strategy:u}=t,{padding:a=2,x:c,y:m}=f(e,t),p=Array.from(await (null==s.getClientRects?void 0:s.getClientRects(r.reference))||[]),h=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>L(M(e)))}(p),g=L(M(p)),y=T(a),w=await s.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=m)return h.find(e=>c>e.left-y.left&&c<e.right+y.right&&m>e.top-y.top&&m<e.bottom+y.bottom)||g;if(h.length>=2){if("y"===v(n)){let e=h[0],t=h[h.length-1],r="top"===d(n),i=e.top,o=t.bottom,l=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:o,left:l,right:s,width:s-l,height:o-i,x:l,y:i}}let e="left"===d(n),t=o(...h.map(e=>e.right)),r=i(...h.map(e=>e.left)),l=h.filter(n=>e?n.left===r:n.right===t),s=l[0].top,u=l[l.length-1].bottom;return{top:s,bottom:u,left:r,right:t,width:t-r,height:u-s,x:r,y:s}}return g}},floating:r.floating,strategy:u});return l.reference.x!==w.reference.x||l.reference.y!==w.reference.y||l.reference.width!==w.reference.width||l.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},"limitShift",0,function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:s=0,mainAxis:u=!0,crossAxis:a=!0}=f(e,t),c={x:n,y:r},m=v(i),h=p(m),g=c[h],y=c[m],w=f(s,t),b="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+b.mainAxis,n=o.reference[h]+o.reference[e]-b.mainAxis;g<t?g=t:g>n&&(g=n)}if(a){var E,x;let e="y"===h?"width":"height",t=D.has(d(i)),n=o.reference[m]-o.floating[e]+(t&&(null==(E=l.offset)?void 0:E[m])||0)+(t?0:b.crossAxis),r=o.reference[m]+o.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[m])||0)-(t?b.crossAxis:0);y<n?y=n:y>r&&(y=r)}return{[h]:g,[m]:y}}}},"offset",0,function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:l,middlewareData:s}=t,u=await H(t,e);return l===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+u.x,y:o+u.y,data:{...u,placement:l}}}}},"shift",0,function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:o}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=f(e,t),m={x:n,y:r},h=await o.detectOverflow(t,a),g=v(d(i)),y=p(g),w=m[y],b=m[g];if(l){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=w+h[e],r=w-h[t];w=c(n,w,r)}if(s){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=b+h[e],r=b-h[t];b=c(n,b,r)}let E=u.fn({...t,[y]:w,[g]:b});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[y]:l,[g]:s}}}}}},"size",0,function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let l,s,{placement:u,rects:a,platform:c,elements:p}=t,{apply:h=()=>{},...g}=f(e,t),y=await c.detectOverflow(t,g),w=d(u),b=m(u),E="y"===v(u),{width:x,height:S}=a.floating;"top"===w||"bottom"===w?(l=w,s=b===(await (null==c.isRTL?void 0:c.isRTL(p.floating))?"start":"end")?"left":"right"):(s=w,l="end"===b?"top":"bottom");let O=S-y.top-y.bottom,R=x-y.left-y.right,A=i(S-y[l],O),T=i(x-y[s],R),L=!t.middlewareData.shift,P=A,C=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=R),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(P=O),L&&!b){let e=o(y.left,0),t=o(y.right,0),n=o(y.top,0),r=o(y.bottom,0);E?C=x-2*(0!==e||0!==t?e+t:o(y.left,y.right)):P=S-2*(0!==n||0!==r?n+r:o(y.top,y.bottom))}await h({...t,availableWidth:C,availableHeight:P});let F=await c.getDimensions(p.floating);return x!==F.width||S!==F.height?{reset:{rects:!0}}:{}}}}],953760)}]);
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.