1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,39100,94421,40721,e=>{"use strict";var t=e.i(71645),n=e.i(55743),r=e.i(1893),o=e.i(74080),i=e.i(46725);function l(e={},n=null,r=[]){for(let[o,i]of Object.entries(e))!function e(n,r,o){if(Array.isArray(o))for(let[t,i]of o.entries())e(n,s(r,t.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,`${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,t.isValidElement)(o)&&l(o,r,n)}(r,s(n,o),i);return r}function s(e,t){return e?e+"["+t+"]":t}e.s(["attemptSubmit",0,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)}},"objectToFormEntries",0,l],94421);var a=e.i(20),u=e.i(2788);let c=(0,t.createContext)(null);function d(e){let[n,r]=(0,t.useState)(null);return t.default.createElement(c.Provider,{value:{target:n}},e.children,t.default.createElement(u.Hidden,{features:u.HiddenFeatures.Hidden,ref:r}))}function f({children:e}){let n=(0,t.useContext)(c);if(!n)return t.default.createElement(t.default.Fragment,null,e);let{target:r}=n;return r?(0,o.createPortal)(t.default.createElement(t.default.Fragment,null,e),r):null}function p({setForm:e,formId:n}){return(0,t.useEffect)(()=>{if(n){let t=document.getElementById(n);t&&e(t)}},[e,n]),n?null:t.default.createElement(u.Hidden,{features:u.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}e.s(["FormFields",0,function({data:e,form:n,disabled:r,onReset:o,overrides:s}){let[c,d]=(0,t.useState)(null),m=(0,i.useDisposables)();return(0,t.useEffect)(()=>{if(o&&c)return m.addEventListener(c,"reset",o)},[c,n,o]),t.default.createElement(f,null,t.default.createElement(p,{setForm:d,formId:n}),l(e).map(([e,o])=>t.default.createElement(u.Hidden,{features:u.HiddenFeatures.Hidden,...(0,a.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:e,value:o,...s})})))},"FormFieldsProvider",0,d],40721);var m=e.i(42803),g=e.i(35889),h=e.i(22678);let v=(0,a.forwardRefWithAs)(function(e,o){let i=`headlessui-control-${(0,t.useId)()}`,[l,s]=(0,h.useLabels)(),[u,c]=(0,g.useDescriptions)(),f=(0,r.useDisabled)(),{disabled:p=f||!1,...v}=e,b=(0,n.useSlot)({disabled:p}),y=(0,a.useRender)();return t.default.createElement(r.DisabledProvider,{value:p},t.default.createElement(s,{value:l},t.default.createElement(c,{value:u},t.default.createElement(m.IdProvider,{id:i},y({ourProps:{ref:o,disabled:p||void 0,"aria-disabled":p||void 0},theirProps:{...v,children:t.default.createElement(d,null,"function"==typeof v.children?v.children(b):v.children)},slot:b,defaultTag:"div",name:"Field"})))))});e.s(["Field",0,v],39100)},13589,e=>{"use strict";var t=e.i(83222),n=e.i(33336),r=e.i(71645),o=e.i(55743),i=e.i(1893),l=e.i(42803),s=e.i(20),a=e.i(35889),u=e.i(22678);let c=(0,s.forwardRefWithAs)(function(e,c){let d=(0,r.useId)(),f=(0,l.useProvidedId)(),p=(0,i.useDisabled)(),{id:m=f||`headlessui-input-${d}`,disabled:g=p||!1,autoFocus:h=!1,invalid:v=!1,...b}=e,y=(0,u.useLabelledBy)(),x=(0,a.useDescribedBy)(),{isFocused:w,focusProps:S}=(0,t.useFocusRing)({autoFocus:h}),{isHovered:E,hoverProps:R}=(0,n.useHover)({isDisabled:g}),O=(0,s.mergeProps)({ref:c,id:m,"aria-labelledby":y,"aria-describedby":x,"aria-invalid":v?"true":void 0,disabled:g||void 0,autoFocus:h},S,R),T=(0,o.useSlot)({disabled:g,invalid:v,hover:E,focus:w,autofocus:h});return(0,s.useRender)()({ourProps:O,theirProps:b,slot:T,defaultTag:"input",name:"Input"})});e.s(["Input",0,c])},36289,3269,14520,92704,63516,e=>{"use strict";let t;var n=e.i(71645);function r(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}e.s(["useByComparator",0,function(e=r){return(0,n.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}],36289);var o=e.i(74080),i=e.i(14189);
1e.s(["useControllable",0,function(e,t,r){let[l,s]=(0,n.useState)(r),a=void 0!==e,u=(0,n.useRef)(a),c=(0,n.useRef)(!1),d=(0,n.useRef)(!1);return!a||u.current||c.current?a||!u.current||d.current||(d.current=!0,u.current=a,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.")):(c.current=!0,u.current=a,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.")),[a?e:l,(0,i.useEvent)(e=>(a||(0,o.flushSync)(()=>s(e)),null==t?void 0:t(e)))]}],3269),e.s(["useDefaultValue",0,function(e){let[t]=(0,n.useState)(e);return t}],14520);var l=e.i(44508),s=e.i(35696);function a(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}e.s(["useElementSize",0,function(e,t,r=!1){let[o,i]=(0,n.useState)(()=>a(t));return(0,s.useIsoMorphicEffect)(()=>{if(!t||!e)return;let n=(0,l.disposables)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),i(e=>{let n=a(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),r?{width:`${o.width}px`,height:`${o.height}px`}:o}],92704);var u=((t=u||{})[t.Left=0]="Left",t[t.Right=2]="Right",t);e.s(["MouseButton",0,u],63516)},88374,57138,e=>{"use strict";let t;var n=e.i(71645),r=e.i(63516),o=e.i(33538),i=e.i(14189);e.s(["useHandleToggle",0,function(e){let t=(0,n.useRef)(null);return{onPointerDown:(0,i.useEvent)(n=>{t.current=n.pointerType,(0,o.isDisabledReactIssue7711)(n.currentTarget)||"mouse"!==n.pointerType||n.button!==r.MouseButton.Left||(n.preventDefault(),e(n))}),onClick:(0,i.useEvent)(n=>{"mouse"!==t.current&&((0,o.isDisabledReactIssue7711)(n.currentTarget)||e(n))})}}],88374);var l=e.i(13581),s=e.i(22357),a=((t=a||{})[t.Ignore=0]="Ignore",t[t.Select=1]="Select",t[t.Close=2]="Close",t);e.s(["Action",0,{Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},"useQuickRelease",0,function(e,{trigger:t,action:r,close:o,select:i}){let a=(0,n.useRef)(null),u=(0,n.useRef)(null),c=(0,n.useRef)(null);(0,s.useDocumentEvent)(e&&null!==t,"pointerdown",e=>{l.isNode(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(u.current=e.x,c.current=e.y,a.current=e.timeStamp)}),(0,s.useDocumentEvent)(e&&null!==t,"pointerup",e=>{var t,n;let s=a.current;if(null===s||(a.current=null,!l.isHTMLorSVGElement(e.target))||5>Math.abs(e.x-(null!=(t=u.current)?t:e.x))&&5>Math.abs(e.y-(null!=(n=c.current)?n:e.y)))return;let d=r(e);switch(d.kind){case 0:return;case 1:e.timeStamp-s>200&&(i(d.target),o());break;case 2:o()}},{capture:!0})}],57138)},44279,e=>{"use strict";var t=e.i(71645);e.s(["useResolveButtonType",0,function(e,n){return(0,t.useMemo)(()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==n?void 0:n.tagName)==="BUTTON"&&!n.hasAttribute("type"))return"button"},[e.type,e.as,n])}])},42803,22678,e=>{"use strict";var t=e.i(71645);let n=(0,t.createContext)(void 0);function r(){return(0,t.useContext)(n)}e.s(["IdProvider",0,function({id:e,children:r}){return t.default.createElement(n.Provider,{value:e},r)},"useProvidedId",0,r],42803);var o=e.i(14189),i=e.i(35696),l=e.i(55743),s=e.i(94316),a=e.i(1893),u=e.i(13581),c=e.i(20);let d=(0,t.createContext)(null);function f(e){var n,r,o;let i=null!=(r=null==(n=(0,t.useContext)(d))?void 0:n.value)?r:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}d.displayName="LabelContext";let p=Object.assign((0,c.forwardRefWithAs)(function(e,n){var f;let p=(0,t.useId)(),m=function e(){let n=(0,t.useContext)(d);if(null===n){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 n}(),g=r(),h=(0,a.useDisabled)(),{id:v=`headlessui-label-${p}`,htmlFor:b=null!=g?g:null==(f=m.props)?void 0:f.htmlFor,passive:y=!1,...x}=e,w=(0,s.useSyncRefs)(n);(0,i.useIsoMorphicEffect)(()=>m.register(v),[v,m.register]);let S=(0,o.useEvent)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&u.isInteractiveElement(e.target))&&(u.isHTMLLabelElement(t)&&e.preventDefault(),m.props&&"onClick"in m.props&&"function"==typeof m.props.onClick&&m.props.onClick(e),u.isHTMLLabelElement(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;(u.isHTMLInputElement(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})}}}),E=(0,l.useSlot)({...m.slot,disabled:h||!1}),R={ref:w,...m.props,id:v,htmlFor:b,onClick:S};return y&&("onClick"in R&&(delete R.htmlFor,delete R.onClick),"onClick"in x&&delete x.onClick),(0,c.useRender)()({ourProps:R,theirProps:x,slot:E,defaultTag:b?"label":"div",name:m.name||"Label"})}),{});e.s(["Label",0,p,"useLabelledBy",0,f,"useLabels",0,function({inherit:e=!1}={}
1){let n=f(),[r,i]=(0,t.useState)([]),l=e?[n,...r].filter(Boolean):r;return[l.length>0?l.join(" "):void 0,(0,t.useMemo)(()=>function(e){let n=(0,o.useEvent)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,t.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return t.default.createElement(d.Provider,{value:r},e.children)},[i])]}],22678)},33538,e=>{"use strict";var t=e.i(13581);e.s(["isDisabledReactIssue7711",0,function(e){let n=e.parentElement,r=null;for(;n&&!t.isHTMLFieldSetElement(n);)t.isHTMLLegendElement(n)&&(r=n),n=n.parentElement;let o=(null==n?void 0:n.getAttribute("disabled"))==="";return!(o&&function(e){if(!e)return!1;let n=e.previousElementSibling;for(;null!==n;){if(t.isHTMLLegendElement(n))return!1;n=n.previousElementSibling}return!0}(r))&&o}])},75082,e=>{"use strict";var t=e.i(43476),n=e.i(19056),r=e.i(93348);function o({id:e,template:i,major:l="column",gap:s,alignment:a,children:u,className:c}){let d=(0,r.tv)({base:"grid gap-x-(--uofg-grid-gap-x) gap-y-(--uofg-grid-gap-y)",variants:{major:{row:"grid-flow-col",column:""},hasBaseTemplate:{true:""},hasSmTemplate:{true:""},hasMdTemplate:{true:""},hasLgTemplate:{true:""},hasXlTemplate:{true:""},has2XlTemplate:{true:""},alignmentX:{start:"justify-items-start",center:"justify-items-center",end:"justify-items-end",stretch:"justify-items-stretch"},alignmentY:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"}},compoundVariants:[{hasBaseTemplate:!0,major:"column",class:"grid-cols-(--uofg-grid-template-column)"},{hasSmTemplate:!0,major:"column",class:"sm:grid-cols-(--uofg-grid-sm-template-column)"},{hasMdTemplate:!0,major:"column",class:"md:grid-cols-(--uofg-grid-md-template-column)"},{hasLgTemplate:!0,major:"column",class:"lg:grid-cols-(--uofg-grid-lg-template-column)"},{hasXlTemplate:!0,major:"column",class:"xl:grid-cols-(--uofg-grid-xl-template-column)"},{has2XlTemplate:!0,major:"column",class:"2xl:grid-cols-(--uofg-grid-2xl-template-column)"},{hasBaseTemplate:!0,major:"row",class:"grid-rows-(--uofg-grid-template-row)"},{hasSmTemplate:!0,major:"row",class:"sm:grid-rows-(--uofg-grid-sm-template-row)"},{hasMdTemplate:!0,major:"row",class:"md:grid-rows-(--uofg-grid-md-template-row)"},{hasLgTemplate:!0,major:"row",class:"lg:grid-rows-(--uofg-grid-lg-template-row)"},{hasXlTemplate:!0,major:"row",class:"xl:grid-rows-(--uofg-grid-xl-template-row)"},{has2XlTemplate:!0,major:"row",class:"2xl:grid-rows-(--uofg-grid-2xl-template-row)"}]})({major:l,hasBaseTemplate:void 0!==i.base,hasSmTemplate:void 0!==i.sm,hasMdTemplate:void 0!==i.md,hasLgTemplate:void 0!==i.lg,hasXlTemplate:void 0!==i.xl,has2XlTemplate:void 0!==i["2xl"],alignmentX:a?.x??"start",alignmentY:a?.y??"start"}),f=Object.entries(i).reduce((e,[t,n])=>(e[`--uofg-grid-${t}-template-${l}`]=n.join(" "),e),{});return(0,t.jsx)("div",{id:e,className:`uofg-grid ${(0,n.twMerge)(d,c)}`,style:{...f,"--uofg-grid-gap-x":"string"==typeof s?.x?s?.x:`${s?.x}px`,"--uofg-grid-gap-y":"string"==typeof s?.y?s?.y:`${s?.y}px`},children:u})}o.displayName="Grid",e.s(["Grid",0,o])},68904,71616,19751,4016,65659,67310,1020,67468,13487,e=>{"use strict";let t,n,r,o,i,l;var s=e.i(43476),a=e.i(83222),u=e.i(33336),c=e.i(71645),d=e.i(74080),f=e.i(94487),p=e.i(36289),m=e.i(3269),g=e.i(14520),h=e.i(46725),v=e.i(92704),b=e.i(14189),y=e.i(88374),x=e.i(84653),w=e.i(35696),S=e.i(95992),E=e.i(77891),R=e.i(52744),O=e.i(5083),T=e.i(57138),C=e.i(44279),P=e.i(1852),L=e.i(55743),M=e.i(94316),F=e.i(13581);let I=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function A(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!F.isHTMLElement(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 I.test(l)&&(l=l.replace(I,"")),l}function D(e){return[e.screenX,e.screenY]}function k(){let e=(0,c.useRef)([-1,-1]);return{wasMoved(t){let n=D(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=D(t)}}}e.s(["useTrackedPointer",0,k],71616);var N=e.i(83733),j=e.i(1893);let B=Math.min,H=Math.max,V=Math.round,$=Math.floor,_=e=>({x:e,y:e}
vendor: 5,610 bytes, line 1
1),z={left:"right",right:"left",bottom:"top",top:"bottom"};function K(e,t){return"function"==typeof e?e(t):e}function W(e){return e.split("-")[0]}function U(e){return e.split("-")[1]}function X(e){return"x"===e?"y":"x"}function q(e){return"y"===e?"height":"width"}function Q(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function G(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let Y=["left","right"],J=["right","left"],Z=["top","bottom"],ee=["bottom","top"];function et(e){let t=W(e);return z[t]+e.slice(t.length)}function en(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}}function er(e,t,n){let r,{reference:o,floating:i}=e,l=Q(t),s=X(Q(t)),a=q(s),u=W(t),c=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[a]/2-i[a]/2;switch(u){case"top":r={x:c,y:o.y-i.height};break;case"bottom":r={x:c,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:d};break;case"left":r={x:o.x-i.width,y:d};break;default:r={x:o.x,y:o.y}}let p=U(t);return p&&(r[s]+=f*("end"===p?1:-1)*(n&&"y"===l?-1:1)),r}async function eo(e,t){var n,r,o,i,l;void 0===t&&(t={});let{x:s,y:a,platform:u,rects:c,elements:d,strategy:f}=e,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:h=!1,padding:v=0}=K(t,e),b="number"!=typeof v?{top:null!=(r=v.top)?r:0,right:null!=(o=v.right)?o:0,bottom:null!=(i=v.bottom)?i:0,left:null!=(l=v.left)?l:0}:{top:v,right:v,bottom:v,left:v},y=d[h?"floating"===g?"reference":"floating":g],x=en(await u.getClippingRect({element:null==(n=await (null==u.isElement?void 0:u.isElement(y)))||n?y:y.contextElement||await (null==u.getDocumentElement?void 0:u.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:f})),w="floating"===g?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,S=await (null==u.getOffsetParent?void 0:u.getOffsetParent(d.floating)),E=await (null==u.isElement?void 0:u.isElement(S))&&await (null==u.getScale?void 0:u.getScale(S))||{x:1,y:1},R=en(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:w,offsetParent:S,strategy:f}):w);return{top:(x.top-R.top+b.top)/E.y,bottom:(R.bottom-x.bottom+b.bottom)/E.y,left:(x.left-R.left+b.left)/E.x,right:(R.right-x.right+b.right)/E.x}}let ei=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=l.detectOverflow?l:{...l,detectOverflow:eo},a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=er(u,r,a),f=r,p=0,m={};for(let n=0;n<i.length;n++){let g=i[n];if(!g)continue;let{name:h,fn:v}=g,{x:b,y:y,data:x,reset:w}=await v({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=b?b:c,d=null!=y?y:d,m[h]={...m[h],...x},w&&p<50&&(p++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=er(u,f,a)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:m}},el=new Set(["left","top"]);async function es(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=W(n),s=U(n),a="y"===Q(n),u=el.has(l)?-1:1,c=i&&a?-1:1,d=K(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),a?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function ea(){return"u">typeof window}function eu(e){return ef(e)?(e.nodeName||"").toLowerCase():"#document"}function ec(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ed(e){var t;return null==(t=(ef(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ef(e){return!!ea()&&(e instanceof Node||e instanceof ec(e).Node)}function ep(e){return!!ea()&&(e instanceof Element||e instanceof ec(e).Element)}function em(e){return!!ea()&&(e instanceof HTMLElement||e instanceof ec(e).HTMLElement)}function eg(e){return!(!ea()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ec(e).ShadowRoot)}function eh(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=eR(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function ev(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let eb=/transform|translate|scale|rotate|perspective|filter/,ey=/paint|layout|strict|content/,ex=e=>!!e&&"none"!==e;function ew(e){let t=ep(e)?eR(e):e;return ex(t.transform)||ex(t.translate)||ex(t.scale)||ex(t.rotate)||ex(t.perspective)||!eS()&&(ex(t.backdropFilter)||ex(t.filter))||eb.test(t.willChange||"")||ey.test(t.contain||"")}function eS(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function eE(e){return/^(html|body|#document)$/.test(eu(e))}function eR(e){return ec(e).getComputedStyle(e)}function eO(e){return ep(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eT(e){if("html"===eu(e))return e;let t=e.assignedSlot||e.parentNode||eg(e)&&e.host||ed(e);return eg(t)?t.host:t}function eC(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=eT(t);return eE(n)?(t.ownerDocument||t).body:em(n)&&eh(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=ec(o);if(!i)return t.concat(o,eC(o,[],n));{let e=eP(l);
1return t.concat(l,l.visualViewport||[],eh(o)?o:[],e&&n?eC(e):[])}}function eP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eL(e){let t=eR(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=em(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=V(n)!==i||V(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function eM(e){return ep(e)?e:e.contextElement}function eF(e){let t=eM(e);if(!em(t))return _(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=eL(t),l=(i?V(n.width):n.width)/r,s=(i?V(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let eI=_(0);function eA(e){let t=ec(e);return eS()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eI}function eD(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=eM(e),s=_(1);t&&(r?ep(r)&&(s=eF(r)):s=eF(e));let a=(void 0===(o=n)&&(o=!1),r&&o&&r===ec(l))?eA(l):_(0),u=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(l&&r){let e=ec(l),t=ep(r)?ec(r):r,n=e,o=eP(n);for(;o&&t!==n;){let e=eF(o),t=o.getBoundingClientRect(),r=eR(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=l,o=eP(n=ec(o))}}return en({width:d,height:f,x:u,y:c})}function ek(e,t){let n=eO(e).scrollLeft;return t?t.left+n:eD(ed(e)).left+n}function eN(e,t){let n=e.getBoundingClientRect();
1return{x:n.left+t.scrollLeft-ek(e,n),y:n.top+t.scrollTop}}function ej(e,t,n){var r;let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,o=ec(e),i=ed(e),l=o.visualViewport,s=i.clientWidth,a=i.clientHeight,u=0,c=0;if(l){let e=!eS()||"fixed"===t;r?e||(u=-l.offsetLeft,c=-l.offsetTop):(s=l.width,a=l.height,e&&(u=l.offsetLeft,c=l.offsetTop))}if(0>=ek(i)){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),l="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;l<=25&&(s-=l)}return{width:s,height:a,x:u,y:c}}(e,n,t);else if("document"===t){let t,n,i,l,s,a;t=eO(r=ed(e)),n=r.ownerDocument.body,i=H(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),l=H(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),s=-t.scrollLeft+ek(r),a=-t.scrollTop,"rtl"===eR(n).direction&&(s+=H(r.clientWidth,n.clientWidth)-i),o={width:i,height:l,x:s,y:a}}else if(ep(t)){let e,r,i,l,s,a;r=(e=eD(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=eF(t),s=t.clientWidth*l.x,a=t.clientHeight*l.y,o={width:s,height:a,x:i*l.x,y:r*l.y}}else{let n=eA(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return en(o)}function eB(e){return"static"===eR(e).position}function eH(e,t){if(!em(e)||"fixed"===eR(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ed(e)===n&&(n=n.ownerDocument.body),n}function eV(e,t){var n;let r=ec(e);if(ev(e))return r;if(!em(e)){let t=eT(e);for(;t&&!eE(t);){if(ep(t)&&!eB(t))return t;t=eT(t)}return r}let o=eH(e,t);for(;o&&(n=o,/^(table|td|th)$/.test(eu(n)))&&eB(o);)o=eH(o,t);return o&&eE(o)&&eB(o)&&!ew(o)?r:o||function(e){let t=eT(e);for(;em(t)&&!eE(t);){if(ew(t))return t;if(ev(t))break;t=eT(t)}return null}(e)||r}let e$=async function(e){let t=this.getOffsetParent||eV,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=em(t),o=ed(t),i="fixed"===n,l=eD(e,!0,i,t),s={scrollLeft:0,scrollTop:0},a=_(0);if((r||!i)&&(("body"!==eu(t)||eh(o))&&(s=eO(t)),r)){let e=eD(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}!r&&o&&(a.x=ek(o));let u=!o||r||i?_(0):eN(o,s);return{x:l.left+s.scrollLeft-a.x-u.x,y:l.top+s.scrollTop-a.y-u.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}}},e_={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=ed(r),s=!!t&&ev(t.floating);if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=_(1),c=_(0),d=em(r);if((d||!i)&&(("body"!==eu(r)||eh(l))&&(a=eO(r)),d)){let e=eD(r);u=eF(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?_(0):eN(l,a);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-a.scrollTop*u.y+c.y+f.y}},getDocumentElement:ed,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?ev(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eC(e,[],!1).filter(e=>ep(e)&&"body"!==eu(e)),o=null,i="fixed"===eR(e).position,l=i?eT(e):e;for(;ep(l)&&!eE(l);){let e=eR(l),t=ew(l),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==l),l=eT(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=ej(t,i[0],o),s=l.top,a=l.right,u=l.bottom,c=l.left;for(let e=1;e<i.length;e++){let n=ej(t,i[e],o);s=H(n.top,s),a=B(n.right,a),u=B(n.bottom,u),c=H(n.left,c)}return{width:a-c,height:u-s,x:c,y:s}},getOffsetParent:eV,getElementRects:e$,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=eL(e);return{width:t,height:n}},getScale:eF,isElement:ep,isRTL:function(e){return"rtl"===eR(e).direction}};function ez(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eK(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eM(e),d=i||l?[...c?eC(c):[],...t?eC(t):[]]:[];
1d.forEach(e=>{i&&e.addEventListener("scroll",n),l&&e.addEventListener("resize",n)});let f=c&&a?function(e,t,n){let r,o=null,i=ed(e);function l(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function s(n,a){void 0===n&&(n=!1),void 0===a&&(a=1),l();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(n||t(),!f||!p)return;let m={rootMargin:-$(d)+"px "+-$(i.clientWidth-(c+f))+"px "+-$(i.clientHeight-(d+p))+"px "+-$(c)+"px",threshold:H(0,B(1,a))||1},g=!0;function h(t){let n=t[0].intersectionRatio;if(!ez(u,e.getBoundingClientRect()))return s();if(n!==a){if(!g)return s();n?s(!1,n):r=setTimeout(()=>{s(!1,1e-7)},1e3)}g=!1}try{o=new IntersectionObserver(h,{...m,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(h,m)}o.observe(e)}let a=ec(e),u=()=>s(n);return a.addEventListener("resize",u),s(!0),()=>{a.removeEventListener("resize",u),l()}}(c,n,l):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),t&&m.observe(t));let g=u?eD(e):null;return u&&function t(){let r=eD(e);g&&!ez(g,r)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}}var eW="u">typeof document?c.useLayoutEffect:function(){};function eU(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(!eU(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)&&!eU(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eX(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eq(e,t){let n=eX(e);return Math.round(t*n)/n}function eQ(e){let t=c.useRef(e);return eW(()=>{t.current=e}),t}let eG=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:s}=e,a=await es(e,n);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}});return{name:r.name,fn:r.fn,options:[e,t]}};var eY="u"<typeof Element;eY||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,eY||Element.prototype.getRootNode;let eJ={...c},eZ=eJ.useInsertionEffect||(e=>e());function e0(e){let t=c.useRef(()=>{});return eZ(()=>{t.current=e}),c.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var e1="u">typeof document?c.useLayoutEffect:c.useEffect;let e2=!1,e3=0,e4=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+e3++,e5=eJ.useId||function(){let[e,t]=c.useState(()=>e2?e4():void 0);return e1(()=>{null==e&&t(e4())},[]),c.useEffect(()=>{e2=!0},[]),e},e8=c.createContext(null),e7=c.createContext(null),e6="active",e9="selected";function te(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[e6]:t,[e9]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[e6,e9].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}function tt(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let tn=(0,c.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});tn.displayName="FloatingContext";let tr=(0,c.createContext)(null);function to(e){return(0,c.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function ti(){return(0,c.useContext)(tn).setReference}function tl(){return(0,c.useContext)(tn).getReferenceProps}function ts(){let{getFloatingProps:e,slot:t}=(0,c.useContext)(tn);return(0,c.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function ta(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,c.useContext)(tr),n=(0,c.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,w.useIsoMorphicEffect)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,c.useContext)(tn);return(0,c.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function tu({children:e,enabled:t=!0}){var n,r,o,i,l,s,a,u,f,p,m,g,h;let v,y,x,S,E,R,O,T,C,P,L,M,I,[A,D]=(0,c.useState)(null),[k,N]=(0,c.useState)(0),j=(0,c.useRef)(null),[$,_]=(0,c.useState)(null);u=$,(0,w.useIsoMorphicEffect)(()=>
1{if(!u)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(u).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(u.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(u,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[u]);let z=t&&null!==A&&null!==$,{to:en="bottom",gap:er=0,offset:el=0,padding:es=0,inner:ea}=(f=A,p=$,v=tc(null!=(m=null==f?void 0:f.gap)?m:"var(--anchor-gap, 0)",p),y=tc(null!=(g=null==f?void 0:f.offset)?g:"var(--anchor-offset, 0)",p),x=tc(null!=(h=null==f?void 0:f.padding)?h:"var(--anchor-padding, 0)",p),{...f,gap:v,offset:y,padding:x}),[eu,ec="center"]=en.split(" ");(0,w.useIsoMorphicEffect)(()=>{z&&N(0)},[z]);let{refs:ed,floatingStyles:ef,context:em}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t;let{open:n=!1,onOpenChange:r,elements:o}=e,i=e5(),l=c.useRef({}),[s]=c.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),a=null!=((null==(t=c.useContext(e8))?void 0:t.id)||null),[u,d]=c.useState(o.reference),f=e0((e,t,n)=>{l.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:a}),null==r||r(e,t,n)}),p=c.useMemo(()=>({setPositionReference:d}),[]),m=c.useMemo(()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference}),[u,o.reference,o.floating]);return c.useMemo(()=>({dataRef:l,open:n,onOpenChange:f,elements:m,events:s,floatingId:i,refs:p}),[n,f,m,s,i,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=c.useState(null),[s,a]=c.useState(null),u=(null==o?void 0:o.domReference)||i,f=c.useRef(null),p=c.useContext(e7);e1(()=>{u&&(f.current=u)},[u]);let m=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=c.useState(r);eU(m,r)||g(r);let[h,v]=c.useState(null),[b,y]=c.useState(null),x=c.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),w=c.useCallback(e=>{e!==O.current&&(O.current=e,y(e))},[]),S=i||h,E=l||b,R=c.useRef(null),O=c.useRef(null),T=c.useRef(f),C=null!=a,P=eQ(a),L=eQ(o),M=eQ(u),F=c.useCallback(()=>{var e,r;let o,i,l;if(!R.current||!O.current)return;let s={placement:t,strategy:n,middleware:m};L.current&&(s.platform=L.current),(e=R.current,r=O.current,o=new Map,i=null!=s?s:{},l={...e_,...i.platform,_c:o},ei(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==M.current};I.current&&!eU(T.current,t)&&(T.current=t,d.flushSync(()=>{p(t)}))})},[m,t,n,L,M]);eW(()=>{!1===u&&T.current.isPositioned&&(T.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[u]);let I=c.useRef(!1);eW(()=>(I.current=!0,()=>{I.current=!1}),[]),eW(()=>{if(S&&(R.current=S),E&&(O.current=E),S&&E){if(P.current)return P.current(S,E,F);F()}},[S,E,F,P,C]);let A=c.useMemo(()=>({reference:R,floating:O,setReference:x,setFloating:w}),[x,w]),D=c.useMemo(()=>({reference:S,floating:E}),[S,E]),k=c.useMemo(()=>{let e={position:n,left:0,top:0};if(!D.floating)return e;let t=eq(D.floating,f.x),r=eq(D.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...eX(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,D.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:F,refs:A,elements:D,floatingStyles:k}),[f,F,A,D,k])}({...e,elements:{...o,...s&&{reference:s}}}),g=c.useCallback(e=>{let t=ep(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a(t),m.refs.setReference(t)},[m.refs]),h=c.useCallback(e=>{(ep(e)||null===e)&&(f.current=e,l(e)),(ep(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!ep(e))&&m.refs.setReference(e)},[m.refs]),v=c.useMemo(()=>({...m.refs,setReference:h,setPositionReference:g,domReference:f}),[m.refs,h,g]),b=c.useMemo(()=>({...m.elements,domReference:u}),[m.elements,u]),y=c.useMemo(()=>({...m,...r,refs:v,elements:b,nodeId:t}),[m,v,b,t,r]);return e1(()=>{r.dataRef.current.floatingContext=y;let e=null==p?void 0:p.nodesRef.current.find(e=>e.id===t);e&&(e.context=y)}),c.useMemo(()=>({...m,context:y,refs:v,elements:b}),[m,v,b,y])}({open:z,placement:"selection"===eu?"center"===ec?"bottom":`bottom-${ec}`:"center"===ec?`${eu}`:`${eu}-${ec}`,strategy:"absolute",transform:!1,middleware:[eG({mainAxis:"selection"===eu?0:er,crossAxis:el}),{name:(S={name:"shift",options:r=n={padding:es},async fn(e){let{x:t,y:n,placement:o,platform:i}=e,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=K(r,e),c={x:t,y:n},d=await i.detectOverflow(e,u),f=Q(o),p=X(f),m=c[p],g=c[f],h=(e,t)=>H(t+d["y"===e?"top":"left"],B(t,t-d["y"===e?"bottom":"right"]));l&&(m=h(p,m)),s&&(g=h(f,g));let v=a.fn({...e,[p]:m,[f]:g});return{...v,data:{x:v.x-t,y:v.y-n,enabled:{[p]:l,[f]:s}}}}}).name,fn:S.fn,options:[n,void 0]},"selection"!==eu&&{name:(E={name:"flip",options:i=o={padding:es},async fn(e){var t,n,r,o,l,s,a,u;let c,d,f,{placement:p,middlewareData:m,rects:g,initialPlacement:h,platform:v,elements:b}=e,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:R=!0,...O}=K(i,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let T=W(p),C=Q(h),P=W(h)===h,L=await (null==v.isRTL?void 0:v.isRTL(b.floating)),M=w||(P||!R?[et(h)]:(c=et(h),[G(h),c,G(c)])),F="none"!==E;!w&&F&&M.push(...(d=U(h),f=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?J:Y;return t?Y:J;case"left":case"right":return t?Z:ee;default:return[]}}(W(h),"start"===E,L),d&&(f=f.map(e=>e+"-"+d),R&&(f=f.concat(f.map(G)))),f));let I=[h,...M],A=await v.detectOverflow(e,O),D=[],k=(null==(n=m.flip)?void 0:n.overflows)||[];if(y&&D.push(A[T]),x){let e,t,n,r,o=(s=p,a=g,void 0===(u=L)&&(u=!1),e=U(s),n=q(t=X(Q(s))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=et(r)),[r,et(r)]);D.push(A[o[0]],A[o[1]])}if(k=[...k,{placement:p,overflows:D}],!D.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=I[e];if(t&&("alignment"!==x||C===Q(t)||k.every(e=>Q(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(o=k.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(S){case"bestFit":{let e=null==(l=k.filter(e=>{if(F){let t=Q(e.placement);return t===C||"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=h}if(p!==n)return{reset:{placement:n}}}return{}}}).name,fn:E.fn,options:[o,void 0]},"selection"===eu&&ea?{name:"inner",options:R={...ea,padding:es,overflowRef:j,offset:k,minItemsVisible:4,referenceOverflowThreshold:es,onFallbackChange(e){var t,n;if(!e)return;let r=em.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,s=0;for(let e of null!=(n=null==(t=em.elements.floating)?void 0:t.childNodes)?n:[])if(F.isHTMLElement(e)){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,u=a+r.clientHeight;if(t>=a&&n<=u)i--;else{s=Math.max(0,Math.min(n,u)-Math.max(t,a)),l=e.clientHeight;break}}i>=1&&N(e=>{let t=l*i-s+o;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:i=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:a,...u}=K(R,e),{rects:c,elements:{floating:f}}=e,p=t.current[i],m=(null==a?void 0:a.current)||f,g=f.clientTop||m.clientTop,h=0!==f.clientTop,v=0!==m.clientTop,b=f===m;if(!p)return{};let y={...e,...await eG(-p.offsetTop-f.clientTop-c.reference.height/2-p.offsetHeight/2-o).fn(e)},x=await eo(tt(y,m.scrollHeight+g+f.clientTop),u),w=await eo(y,{...u,elementContext:"reference"}),S=H(0,x.top),E=y.y+S,O=(m.scrollHeight>m.clientHeight?e=>e:V)(H(0,m.scrollHeight+(h&&b||v?2*g:0)-S-H(0,x.bottom)));if(m.style.maxHeight=O+"px",m.scrollTop=S,r){let e=m.offsetHeight<p.offsetHeight*B(l,t.current.length)-1||w.top>=-s||w.bottom>=-s;d.flushSync(()=>r(e))}return n&&(n.current=await eo(tt({...y,y:E},m.offsetHeight+g+f.clientTop),u)),{y:E}}}:null,{name:(O={name:"size",options:s=l={padding:es,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){let t,n,{placement:r,rects:o,platform:i,elements:l}=e,{apply:a=()=>{},...u}=K(s,e),c=await i.detectOverflow(e,u),d=W(r),f=U(r),p="y"===Q(r),{width:m,height:g}=o.floating;"top"===d||"bottom"===d?(t=d,n=f===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(n=d,t="end"===f?"top":"bottom");let h=g-c.top-c.bottom,v=m-c.left-c.right,b=B(g-c[t],h),y=B(m-c[n],v),x=e.middlewareData.shift,w=!x,S=b,E=y;null!=x&&x.enabled.x&&(E=v),null!=x&&x.enabled.y&&(S=h),w&&!f&&(p?E=m-2*H(c.left,c.right):S=g-2*H(c.top,c.bottom)),await a({...e,availableWidth:E,availableHeight:S});let R=await i.getDimensions(l.floating);return m!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}).name,fn:O.fn,options:[l,void 0]}].filter(Boolean),whileElementsMounted:eK}),[eg=eu,eh=ec]=em.placement.split("-");"selection"===eu&&(eg="selection");let ev=(0,c.useMemo)(()=>({anchor:[eg,eh].filter(Boolean).join(" ")}),[eg,eh]),{getReferenceProps:eb,getFloatingProps:ey}=(T=(a=[function(e,t){let{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:s}=t,a=e0(s),u=c.useRef(!1),f=c.useRef(null),p=c.useRef(null);c.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,l=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!o&&n<0)e.preventDefault(),d.flushSync(()=>{a(e=>e+Math[u](n,l*s))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==l?void 0:l.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{f.current=t.scrollTop,null!=i.current&&(p.current={...i.current})}),()=>{f.current=null,p.current=null,t.removeEventListener("wheel",e)}},[o,n,r.floating,i,l,a]);let m=c.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&u.current){if(null!==f.current){let t=e.scrollTop-f.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&d.flushSync(()=>a(e=>e+t))}requestAnimationFrame(()=>{f.current=e.scrollTop})}}}),[r.floating,a,i,l]);return c.useMemo(()=>o?{floating:m}:{},[o,m])}(em,{overflowRef:j,onChange:N})]).map(e=>null==e?void 0:e.reference),C=a.map(e=>null==e?void 0:e.floating),P=a.map(e=>null==e?void 0:e.item),L=c.useCallback(e=>te(e,a,"reference"),T),M=c.useCallback(e=>te(e,a,"floating"),C),I=c.useCallback(e=>te(e,a,"item"),P),c.useMemo(()=>({getReferenceProps:L,getFloatingProps:M,getItemProps:I}),[L,M,I])),ex=(0,b.useEvent)(e=>{_(e),ed.setFloating(e)});return c.createElement(tr.Provider,{value:D},c.createElement(tn.Provider,{value:{setFloating:ex,setReference:ed.setReference,styles:ef,getReferenceProps:eb,getFloatingProps:ey,slot:ev}},e))}
1function tc(e,t,n){let r=(0,h.useDisposables)(),o=(0,b.useEvent)((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=td(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 s(){r.nextFrame(s);let a=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,a=!0;break}}if(!a)return;let u=td(e,t);o!==u&&(n(u),o=u)})}return r.dispose}]}return[n,null]}),i=(0,c.useMemo)(()=>o(e,t)[0],[e,t]),[l=i,s]=(0,c.useState)();return(0,w.useIsoMorphicEffect)(()=>{let[n,r]=o(e,t);if(s(n),r)return r(s)},[e,t]),l}function td(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}tr.displayName="PlacementContext",e.s(["FloatingProvider",0,tu,"useFloatingPanel",0,ta,"useFloatingPanelProps",0,ts,"useFloatingReference",0,ti,"useFloatingReferenceProps",0,tl,"useResolvedAnchor",0,to],19751);var tf=e.i(40721);let tp=c.default.forwardRef(function({children:e,freeze:t},n){let r=tm(t,e);return(0,c.isValidElement)(r)?(0,c.cloneElement)(r,{ref:n}):c.default.createElement(c.default.Fragment,null,r)});function tm(e,t){let[n,r]=(0,c.useState)(t);return e||n===t||r(t),e?n:t}e.s(["Frozen",0,tp,"useFrozenData",0,tm],4016);
1var tg=e.i(42803),th=e.i(33137),tv=e.i(41650),tb=e.i(40407),ty=((n=ty||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n);function tx(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)}}e.s(["Focus",0,ty,"calculateActiveIndex",0,tx],65659);var tw=e.i(44508),tS=e.i(52265),tE=e.i(94421),tR=e.i(97701),tO=e.i(2155),tT=e.i(20),tC=e.i(35889),tP=e.i(98348),tL=e.i(22678),tM=e.i(35307),tF=e.i(25720);let tI={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function tA(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function tD(e,t,n){let r=(0,tw.disposables)();if("Tracked"===t.kind){let o=function(){i!==tA(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()}e.s(["ElementPositionState",0,tI,"computeVisualPosition",0,tA,"detectMovement",0,tD],67310);var tk=Object.defineProperty,tN=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?tk(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},tj=((r=tj||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),tB=((o=tB||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),tH=((i=tH||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),tV=((l=tV||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.SelectOption=5]="SelectOption",l[l.RegisterOptions=6]="RegisterOptions",l[l.UnregisterOptions=7]="UnregisterOptions",l[l.SetButtonElement=8]="SetButtonElement",l[l.SetOptionsElement=9]="SetOptionsElement",l[l.SortOptions=10]="SortOptions",l[l.MarkButtonAsMoved=11]="MarkButtonAsMoved",l);function t$(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,tS.sortByDomNode)(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 t_={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?tI.Tracked(tA(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:ty.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:tI.Idle}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===ty.Nothing)return{...s,activeOptionIndex:null};if(t.focus===ty.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===ty.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=tx(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{...s,activeOptionIndex:l}}}}else if(t.focus===ty.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=tx(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{...s,activeOptionIndex:o}}}}let a=t$(e),u=tx(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,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!==ty.Nothing&&(r=tx(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:ty.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,...t$(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:tI.Moved}};class tz extends tF.Machine{constructor(e){super(e),tN(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,tR.match)(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:(0,tF.batch)(()=>{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:(0,tF.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,tF.batch)(()=>{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})}}),tN(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=tv.stackMachines.get(null);this.disposables.add(t.on(tv.ActionTypes.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=>{t.buttonElement&&(e.dispose(),e.add(tD(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}))})}static new({id:e,__demoMode:t=!1}){return new tz({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:ty.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:tI.Idle})}reduce(e,t){return(0,tR.match)(t.type,t_,e,t)}}var tK=e.i(26599);let tW=(0,c.createContext)(null);function tU(e){let t=(0,c.useContext)(tW);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tX),t}return t}function tX({id:e,__demoMode:t=!1}){let n=(0,c.useMemo)(()=>tz.new({id:e,__demoMode:t}),[]);return(0,tK.useOnUnmount)(()=>n.dispose()),n}let tq=(0,c.createContext)(null);function tQ(e){let t=(0,c.useContext)(tq);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tQ),t}return t}tq.displayName="ListboxDataContext";let tG=c.Fragment,tY=(0,c.createContext)(!1),tJ=tT.RenderFeatures.RenderStrategy|tT.RenderFeatures.Static,tZ=c.Fragment,t0=(0,tT.forwardRefWithAs)(function(e,t){let n=(0,c.useId)(),r=(0,j.useDisabled)(),{value:o,defaultValue:i,form:l,name:s,onChange:a,by:u,invalid:d=!1,disabled:f=r||!1,horizontal:h=!1,multiple:v=!1,__demoMode:b=!1,...y}=e,x=(0,M.useSyncRefs)(t),S=(0,g.useDefaultValue)(i),[E=v?[]:void 0,O]=(0,m.useControllable)(o,a,S),T=tX({id:n,__demoMode:b}),C=(0,c.useRef)({static:!1,hold:!1}),P=(0,c.useRef)(new Map),F=(0,p.useByComparator)(u),I=(0,c.useCallback)(e=>(0,tR.match)(A.mode,{[tB.Multi]:()=>E.some(t=>F(t,e)),[tB.Single]:()=>F(E,e)}
1),[E]),A=(0,L.useSlot)({value:E,disabled:f,invalid:d,mode:v?tB.Multi:tB.Single,orientation:h?"horizontal":"vertical",onChange:O,compare:F,isSelected:I,optionsPropsRef:C,listRef:P});(0,w.useIsoMorphicEffect)(()=>{T.state.dataRef.current=A},[A]);let D=(0,tb.useSlice)(T,e=>e.listboxState),k=tv.stackMachines.get(null),N=(0,tb.useSlice)(k,(0,c.useCallback)(e=>k.selectors.isTop(e,n),[k,n])),[B,H]=(0,tb.useSlice)(T,e=>[e.buttonElement,e.optionsElement]);(0,R.useOutsideClick)(N,[B,H],(e,t)=>{T.send({type:tV.CloseListbox}),(0,tS.isFocusableElement)(t,tS.FocusableMode.Loose)||(e.preventDefault(),null==B||B.focus())});let V=(0,L.useSlot)({open:D===tj.Open,disabled:f,invalid:d,value:E}),[$,_]=(0,tL.useLabels)({inherit:!0}),z=(0,c.useCallback)(()=>{if(void 0!==S)return null==O?void 0:O(S)},[O,S]),K=(0,tT.useRender)();return c.default.createElement(_,{value:$,props:{htmlFor:null==B?void 0:B.id},slot:{open:D===tj.Open,disabled:f}},c.default.createElement(tu,null,c.default.createElement(tW.Provider,{value:T},c.default.createElement(tq.Provider,{value:A},c.default.createElement(th.OpenClosedProvider,{value:(0,tR.match)(D,{[tj.Open]:th.State.Open,[tj.Closed]:th.State.Closed})},null!=s&&null!=E&&c.default.createElement(tf.FormFields,{disabled:f,data:{[s]:E},form:l,onReset:z}),K({ourProps:{ref:x},theirProps:y,slot:V,defaultTag:tG,name:"Listbox"}))))))}),t1=(0,tT.forwardRefWithAs)(function(e,t){let n=(0,c.useId)(),r=(0,tg.useProvidedId)(),o=tQ("Listbox.Button"),i=tU("Listbox.Button"),{id:l=r||`headlessui-listbox-button-${n}`,disabled:s=o.disabled||!1,autoFocus:p=!1,...m}=e,g=(0,M.useSyncRefs)(t,ti(),i.actions.setButtonElement),h=tl(),[v,x,w]=(0,tb.useSlice)(i,e=>[e.listboxState,e.buttonElement,e.optionsElement]),S=v===tj.Open;(0,T.useQuickRelease)(S,{trigger:x,action:(0,c.useCallback)(e=>{if(null!=x&&x.contains(e.target))return T.Action.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return F.isHTMLElement(t)?T.Action.Select(t):null!=w&&w.contains(e.target)?T.Action.Ignore:T.Action.Close},[x,w]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let E=(0,b.useEvent)(e=>{switch(e.key){case tP.Keys.Enter:(0,tE.attemptSubmit)(e.currentTarget);break;case tP.Keys.Space:case tP.Keys.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:o.value?ty.Nothing:ty.First});break;case tP.Keys.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:o.value?ty.Nothing:ty.Last})}}),R=(0,b.useEvent)(e=>{e.key===tP.Keys.Space&&e.preventDefault()}),O=(0,y.useHandleToggle)(e=>{var t;i.state.listboxState===tj.Open?((0,d.flushSync)(()=>i.actions.closeListbox()),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:ty.Nothing}))}),P=(0,b.useEvent)(e=>e.preventDefault()),I=(0,tL.useLabelledBy)([l]),A=(0,tC.useDescribedBy)(),{isFocusVisible:D,focusProps:k}=(0,a.useFocusRing)({autoFocus:p}),{isHovered:N,hoverProps:j}=(0,u.useHover)({isDisabled:s}),{pressed:B,pressProps:H}=(0,f.useActivePress)({disabled:s}
1),V=(0,L.useSlot)({open:v===tj.Open,active:B||v===tj.Open,disabled:s,invalid:o.invalid,value:o.value,hover:N,focus:D,autofocus:p}),$=(0,tb.useSlice)(i,e=>e.listboxState===tj.Open),_=(0,tT.mergeProps)(h(),{ref:g,id:l,type:(0,C.useResolveButtonType)(e,x),"aria-haspopup":"listbox","aria-controls":null==w?void 0:w.id,"aria-expanded":$,"aria-labelledby":I,"aria-describedby":A,disabled:s||void 0,autoFocus:p,onKeyDown:E,onKeyUp:R,onKeyPress:P},O,k,j,H);return(0,tT.useRender)()({ourProps:_,theirProps:m,slot:V,defaultTag:"button",name:"Listbox.Button"})}),t2=tL.Label,t3=(0,tT.forwardRefWithAs)(function(e,t){let n=(0,c.useId)(),{id:r=`headlessui-listbox-options-${n}`,anchor:o,portal:i=!1,modal:l=!0,transition:s=!1,...a}=e,u=to(o),[f,p]=(0,c.useState)(null);u&&(i=!0);let m=tQ("Listbox.Options"),g=tU("Listbox.Options"),[y,w,S,R]=(0,tb.useSlice)(g,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),T=(0,O.useOwnerDocument)(w),C=(0,O.useOwnerDocument)(S),F=(0,th.useOpenClosed)(),[I,A]=(0,N.useTransition)(s,f,null!==F?(F&th.State.Open)===th.State.Open:y===tj.Open);(0,E.useOnDisappear)(I,w,g.actions.closeListbox);let D=!R&&l&&y===tj.Open;(0,P.useScrollLock)(D,C);let k=!R&&l&&y===tj.Open;(0,x.useInertOthers)(k,{allowed:(0,c.useCallback)(()=>[w,S],[w,S])});let j=!(0,tb.useSlice)(g,g.selectors.didButtonMove)&&I,B=tm((0,tb.useSlice)(g,g.selectors.hasFrozenValue)&&!e.static,m.value),H=(0,c.useCallback)(e=>m.compare(B,e),[m.compare,B]),V=(0,tb.useSlice)(g,e=>{var t;if(null==u||!(null!=(t=null==u?void 0:u.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>H(e.dataRef.current.value));return -1===n&&(n=0),n}),[$,_]=ta((()=>{if(null==u)return;if(null===V)return{...u,inner:void 0};let e=Array.from(m.listRef.current.values());return{...u,inner:{listRef:{current:e},index:V}}})()),z=ts(),K=(0,M.useSyncRefs)(t,u?$:null,g.actions.setOptionsElement,p),W=(0,h.useDisposables)();(0,c.useEffect)(()=>{S&&y===tj.Open&&((0,tO.isActiveElement)(S)||null==S||S.focus({preventScroll:!0}))},[y,S]);let U=(0,b.useEvent)(e=>{var t;switch(W.dispose(),e.key){case tP.Keys.Space:if(""!==g.state.searchQuery)return e.preventDefault(),e.stopPropagation(),g.actions.search(e.key);case tP.Keys.Enter:e.preventDefault(),e.stopPropagation(),g.actions.selectActiveOption();break;case(0,tR.match)(m.orientation,{vertical:tP.Keys.ArrowDown,horizontal:tP.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:ty.Next});case(0,tR.match)(m.orientation,{vertical:tP.Keys.ArrowUp,horizontal:tP.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:ty.Previous});case tP.Keys.Home:case tP.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:ty.First});case tP.Keys.End:case tP.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),g.actions.goToOption({focus:ty.Last});case tP.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,d.flushSync)(()=>g.actions.closeListbox()),null==(t=g.state.buttonElement)||t.focus({preventScroll:!0});return;case tP.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,d.flushSync)(()=>g.actions.closeListbox()),(0,tS.focusFrom)(g.state.buttonElement,e.shiftKey?tS.Focus.Previous:tS.Focus.Next);break;default:1===e.key.length&&(g.actions.search(e.key),W.setTimeout(()=>g.actions.clearSearch(),350))}}),X=(0,tb.useSlice)(g,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),q=(0,L.useSlot)({open:y===tj.Open}),Q=(0,tT.mergeProps)(u?z():{},{id:r,ref:K,"aria-activedescendant":(0,tb.useSlice)(g,g.selectors.activeDescendantId),"aria-multiselectable":m.mode===tB.Multi||void 0,"aria-labelledby":X,"aria-orientation":m.orientation,onKeyDown:U,role:"listbox",tabIndex:y===tj.Open?0:void 0,style:{...a.style,..._,"--button-width":(0,v.useElementSize)(I,w,!0).width},...(0,N.transitionDataAttributes)(A)}),G=(0,tT.useRender)(),Y=(0,c.useMemo)(()=>m.mode===tB.Multi?m:{...m,isSelected:H},[m,H]);return c.default.createElement(tM.Portal,{enabled:!!i&&(e.static||I),ownerDocument:T},c.default.createElement(tq.Provider,{value:Y},G({ourProps:Q,theirProps:a,slot:q,defaultTag:"div",features:tJ,visible:j,name:"Listbox.Options"}
1)))}),t4=(0,tT.forwardRefWithAs)(function(e,t){let n,r,o=(0,c.useId)(),{id:i=`headlessui-listbox-option-${o}`,disabled:l=!1,value:s,...a}=e,u=!0===(0,c.useContext)(tY),d=tQ("Listbox.Option"),f=tU("Listbox.Option"),p=(0,tb.useSlice)(f,e=>f.selectors.isActive(e,i)),m=d.isSelected(s),g=(0,c.useRef)(null),h=(n=(0,c.useRef)(""),r=(0,c.useRef)(""),(0,b.useEvent)(()=>{let e=g.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():A(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return A(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),v=(0,S.useLatestValue)({disabled:l,value:s,domRef:g,get textValue(){return h()}}),y=(0,M.useSyncRefs)(t,g,e=>{e?d.listRef.current.set(i,e):d.listRef.current.delete(i)}),x=(0,tb.useSlice)(f,e=>f.selectors.shouldScrollIntoView(e,i));(0,w.useIsoMorphicEffect)(()=>{if(x)return(0,tw.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[x,g]),(0,w.useIsoMorphicEffect)(()=>{if(!u)return f.actions.registerOption(i,v),()=>f.actions.unregisterOption(i)},[v,i,u]);let E=(0,b.useEvent)(e=>{if(l)return e.preventDefault();f.actions.selectOption(s)}),R=(0,b.useEvent)(()=>{if(l)return f.actions.goToOption({focus:ty.Nothing});f.actions.goToOption({focus:ty.Specific,id:i})}),O=k(),T=(0,b.useEvent)(e=>O.update(e)),C=(0,b.useEvent)(e=>{O.wasMoved(e)&&(l||p&&f.state.activationTrigger===tH.Pointer||f.actions.goToOption({focus:ty.Specific,id:i},tH.Pointer))}),P=(0,b.useEvent)(e=>{O.wasMoved(e)&&(l||p&&f.state.activationTrigger===tH.Pointer&&f.actions.goToOption({focus:ty.Nothing}))}),F=(0,L.useSlot)({active:p,focus:p,selected:m,disabled:l,selectedOption:m&&u}),I=u?{}:{id:i,ref:y,role:"option",tabIndex:!0===l?void 0:-1,"aria-disabled":!0===l||void 0,"aria-selected":m,disabled:void 0,onClick:E,onFocus:R,onPointerEnter:T,onMouseEnter:T,onPointerMove:C,onMouseMove:C,onPointerLeave:P,onMouseLeave:P},D=(0,tT.useRender)();return!m&&u?null:D({ourProps:I,theirProps:a,slot:F,defaultTag:"div",name:"Listbox.Option"})}),t5=Object.assign(t0,{Button:t1,Label:t2,Options:t3,Option:t4,SelectedOption:(0,tT.forwardRefWithAs)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,M.useSyncRefs)(t)},l=tQ("ListboxSelectedOption"),s=(0,L.useSlot)({}),a=void 0===l.value||null===l.value||l.mode===tB.Multi&&Array.isArray(l.value)&&0===l.value.length,u=(0,tT.useRender)();return c.default.createElement(tY.Provider,{value:!0},u({ourProps:i,theirProps:{...o,children:c.default.createElement(c.default.Fragment,null,r&&a?r:n)},slot:s,defaultTag:tZ,name:"ListboxSelectedOption"}))})});var t8=e.i(19056),t7=e.i(48601),t6=e.i(49721),t9=e.i(93348);function ne({children:e,className:t,...n}){let{button:r,icon:o}=(0,t9.tv)({slots:{button:"uofg-select-button ui-open:rounded-b-none ui-open:border-blue flex w-full items-center justify-between gap-2 rounded-md border border-grey-light bg-white px-4 py-2.5 shadow-sm transition-colors group-focus-within:border-blue group-focus-within:outline-none",icon:"ui-open:rotate-180 h-5 w-5 text-body-copy transition-transform"}})();return(0,s.jsx)(t1,{...n,className:(0,t8.twMerge)(r(),t),children:t=>(0,s.jsxs)(s.Fragment,{children:["function"==typeof e?e(t):e,(0,s.jsx)(t6.FontAwesomeIcon,{className:o(),icon:t7.f})]})})}ne.displayName="SelectButton",e.s(["SelectButton",0,ne],1020);var nt=e.i(55833);function nn({children:e,className:t,...n}){let{option:r,icon:o,wrapper:i,content:l}=(0,t9.tv)({slots:{option:"uofg-select-option ui-active:bg-grey-light relative cursor-pointer gap-2 border-b border-grey-dark px-4 py-2 text-gray-900 transition-colors select-none last:border-b-0 hover:bg-grey-light focus:bg-grey-light focus:outline-none",icon:"h-5 w-5 text-blue",wrapper:"flex items-center",content:"flex-1"},variants:{selected:{true:{icon:"visible"},false:{icon:"invisible"}}}})();return(0,s.jsx)(t4,{...n,className:(0,t8.twMerge)(r(),t),children:({focus:t,selected:n,...r})=>(0,s.jsxs)("div",{className:i(),children:[(0,s.jsx)("span",{className:l(),children:"function"==typeof e?e({focus:t,selected:n,...r}):e}),(0,s.jsx)(t6.FontAwesomeIcon,{icon:nt.f,className:o({selected:n})})]})})}function nr({children:e,className:t,...n}){let r=(0,t8.twMerge)("ui-open:border-blue z-10 max-h-[20rem] w-(--button-width) overflow-auto rounded-b-md border border-t-0 border-grey-light bg-white shadow-md transition duration-300 ease-out group-focus-within:border-blue group-focus-within:outline-none data-[closed]:opacity-0 md:absolute",t);return(0,s.jsx)(t3,{...n,className:r,children:e})}function no({children:e,className:t,value:n,as:r,...o}
1){return(0,s.jsx)(t5,{...o,value:n,className:(0,t8.twMerge)("uofg-select group relative w-full",t),as:"div",children:e})}nn.displayName="SelectOption",e.s(["SelectOption",0,nn],67468),nr.displayName="SelectOptions",e.s(["SelectOptions",0,nr],13487),no.displayName="Select",e.s(["Select",0,no],68904)},10400,e=>{"use strict";var t=e.i(43476),n=e.i(55833),r=e.i(49721),o=e.i(39100),i=e.i(22678),l=e.i(13589),s=e.i(71645),a=e.i(19056),u=e.i(93348);e.s(["TextInput",0,function({initialValue:e="",type:c="text",placeholder:d="",onInput:f,children:p,className:m,hideClear:g,value:h,...v}){let[b,y]=(0,s.useState)(e),x=(0,s.useRef)(null);(0,s.useEffect)(()=>{y(h??"")},[h]);let{base:w,wrapper:S,input:E,clearButton:R}=(0,u.tv)({slots:{base:"flex flex-col gap-0.5",wrapper:"text-input flex rounded-md border border-grey-light bg-white px-4 py-2 transition-colors focus-within:border-blue focus:outline-none",input:"flex-1 bg-white focus:outline-none",clearButton:"rounded-full text-xl"},variants:{empty:{true:{clearButton:"pointer-events-none invisible"}},hide:{true:{clearButton:"pointer-events-none invisible"}}}})({empty:b?.length===0});return(0,t.jsxs)(o.Field,{className:`uofg-text-input-field ${(0,a.twMerge)(w(),m)}`,children:[p&&(0,t.jsx)(i.Label,{className:"uofg-text-input-label",children:p}),(0,t.jsxs)("div",{className:`uofg-text-input-wrapper ${S()}`,children:[(0,t.jsx)(l.Input,{...v,ref:x,value:b,type:c,placeholder:d,onInput:e=>{y(e?.target?.value),f?.(e)},className:`uofg-text-input ${E()}`}),(0,t.jsxs)("button",{className:`uofg-text-input-clear-button ${R({hide:g})}`,onClick:()=>{x.current&&(Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value")?.set?.call(x.current,""),x.current.dispatchEvent(new Event("input",{bubbles:!0})),x.current.focus())},children:[(0,t.jsx)(r.FontAwesomeIcon,{icon:n.i}),(0,t.jsx)("span",{className:"sr-only",children:"Clear text"})]})]})]})}])}]);
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.