1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,81901,e=>{"use strict";var t=e.i(12814),r=e.i(17975),n=e.i(19458),l=e.i(61362),i=e.i(23341),o=e.i(69996);function a(){return new Map}function s(){return new Set}function u(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}e.s(["CompositeList",0,function(e){let{children:c,elementsRef:d,labelsRef:f,onMapChange:m}=e,p=(0,n.useStableCallback)(m),[,g]=t.useState(!1),h=(0,r.useRefWithInit)(s).current,b=(0,r.useRefWithInit)(a).current,v=t.useRef(0),y=t.useRef(!0),x=t.useRef([]),w=t.useRef(null),E=(0,n.useStableCallback)(()=>{y.current||(y.current=!0,g(e=>!e))}),S=(0,n.useStableCallback)((e,t)=>{b.set(e,t),E()}),R=(0,n.useStableCallback)(e=>{b.delete(e),E()}),C=(0,n.useStableCallback)(e=>{let t=new Map;return d.current.length=0,f&&(f.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),d.current[e.index]=e.element,f&&(f.current[e.index]=void 0!==e.registration.label?e.registration.label:e.registration.textRef?.current?.textContent??e.element.textContent)}),v.current=d.current.length,t}),M=(0,n.useStableCallback)(()=>{var e;let t,r,n,l,[i,o]=(e=b,t=new Set,r=[],n=[],e.forEach((e,l)=>{if(!l.isConnected)return;let i=e.index,o={index:i??-1,element:l,registration:e};null===i?n.push(o):i>=0&&(t.add(i),r.push(o))}),l=0,n.sort((e,t)=>u(e.element,t.element)),n.forEach(e=>{for(;t.has(l);)l+=1;e.index=l,r.push(e),l+=1}),t.size>0&&r.sort((e,t)=>e.index-t.index),[r,n.map(e=>e.element)]),a=C(i);!function(e){if(w.current?.disconnect(),w.current=null,"function"!=typeof MutationObserver||e.length<2)return;let t=new MutationObserver(r=>{if(!function(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}(r))return;let n=null;for(let r of e)if(r.isConnected){if(n&&u(n,r)>0){t.disconnect(),E();return}n=r}});w.current=t;let r=new Set;for(let t=1;t<e.length;t+=1){let n=function(e,t){let r=e.parentElement;for(;r&&!r.contains(t);)r=r.parentElement;return r}(e[t-1],e[t]);n&&r.add(n)}r.forEach(e=>t.observe(e,{childList:!0}))}(o),x.current=i,y.current=!1,h.forEach(e=>e(a)),p(a)});(0,l.useIsoLayoutEffect)(()=>(y.current||C(x.current),()=>{d.current=[],f&&(f.current=[])}),[d,f,C]),(0,l.useIsoLayoutEffect)(()=>{y.current&&M()}),(0,l.useIsoLayoutEffect)(()=>()=>{w.current?.disconnect(),y.current=!0},[]);let O=(0,n.useStableCallback)(e=>(h.add(e),()=>{h.delete(e)})),I=t.useMemo(()=>({register:S,unregister:R,subscribeMapChange:O,nextIndexRef:v}),[S,R,O,v]);return(0,o.jsx)(i.CompositeListContext.Provider,{value:I,children:c})}])},36505,e=>{"use strict";var t=e.i(12814),r=e.i(61362),n=e.i(23341);e.s(["useCompositeListItem",0,function(e={}){let{guess:l,label:i,metadata:o,textRef:a,index:s}=e,{register:u,unregister:c,subscribeMapChange:d,nextIndexRef:f}=(0,n.useCompositeListContext)(),m=t.useRef(-1),[p,g]=t.useState(null==s&&l?()=>{if(-1===m.current){let e=f.current;f.current+=1,m.current=e}return m.current}:-1),h=s??p,b=t.useRef(null),v=t.useCallback(e=>{let t=b.current;t&&c(t),b.current=e,e&&u(e,{metadata:o??null,index:s??null,label:i,textRef:a})},[s,u,c,o,i,a]);return(0,r.useIsoLayoutEffect)(()=>{if(null==s)return d(e=>{let t=b.current?e.get(b.current)?.index:null;null!=t&&g(t)})},[s,d]),{ref:v,index:h}}])},25587,23341,e=>{"use strict";var t=e.i(12814);e.s(["useControlled",0,function({controlled:e,default:r,name:n,state:l="value"}){let{current:i}=t.useRef(void 0!==e),[o,a]=t.useState(r),s=t.useCallback(e=>{i||a(e)},[]);return[i?e:o,s]}],25587);let r=t.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});e.s(["CompositeListContext",0,r,"useCompositeListContext",0,function(){return t.useContext(r)}],23341)},83947,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function({html:e,height:t=null,width:r=null,children:i,dataNtpc:o=""}){return(0,l.useEffect)(()=>{o&&performance.mark("mark_feature_usage",{detail:{feature:`next-third-parties-${o}`}})}
1,[o]),(0,n.jsxs)(n.Fragment,{children:[i,e?(0,n.jsx)("div",{style:{height:null!=t?`${t}px`:"auto",width:null!=r?`${r}px`:"auto"},"data-ntpc":o,dangerouslySetInnerHTML:{__html:e}}):null]})};let n=e.r(69996),l=e.r(12814)},82392,(e,t,r)=>{"use strict";let n;var l=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=function(e){let{gaId:t,debugMode:r,dataLayerName:l="dataLayer",nonce:s}=e;return void 0===n&&(n=l),(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:` 2 window['${l}'] = window['${l}'] || []; 3 function gtag(){window['${l}'].push(arguments);} 4 gtag('js', new Date()); 5 6 gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`},nonce:s}),(0,i.jsx)(a.default,{id:"_next-ga",src:`https://www.googletagmanager.com/gtag/js?id=${t}`,nonce:s})]})},r.sendGAEvent=function(){void 0===n?console.warn("@next/third-parties: GA has not been initialized"):window[n]?window[n].push(arguments):console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)};let i=e.r(69996),o=e.r(12814),a=l(e.r(3403))},77996,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{apiKey:t,...r}=e,n={...r,key:t},{html:a}=(0,i.GoogleMapsEmbed)(n);return(0,l.jsx)(o.default,{height:n.height||null,width:n.width||null,html:a,dataNtpc:"GoogleMapsEmbed"})};let l=e.r(69996),i=e.r(8751),o=n(e.r(83947))},10922,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGTMEvent=void 0,r.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:r,dataLayerName:n="dataLayer",auth:s,preview:u,dataLayer:c,nonce:d}=e;a=n;let f=new URL(r||"https://www.googletagmanager.com/gtm.js");return t&&f.searchParams.set("id",t),"dataLayer"!==n&&f.searchParams.set("l",n),s&&f.searchParams.set("gtm_auth",s),u&&(f.searchParams.set("gtm_preview",u),f.searchParams.set("gtm_cookies_win","x")),(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:` 7 (function(w,l){ 8 w[l]=w[l]||[]; 9 w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'}); 10 ${c?`w[l].push(${JSON.stringify(c)})`:""} 11 })(window,'${n}');`},nonce:d}),(0,l.jsx)(o.default,{id:"_next-gtm","data-ntpc":"GTM",src:f.href,nonce:d})]})};let l=e.r(69996),i=e.r(12814),o=n(e.r(3403)),a="dataLayer";r.sendGTMEvent=(e,t)=>{let r=t||a;window[r]=window[r]||[],window[r].push(e)}},91589,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.sendGAEvent=r.GoogleAnalytics=r.sendGTMEvent=r.GoogleTagManager=r.YouTubeEmbed=r.GoogleMapsEmbed=void 0;var l=e.r(77996);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return n(l).default}});var i=e.r(83629);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return n(i).default}});var o=e.r(10922);Object.defineProperty(r,"GoogleTagManager",{enumerable:!0,get:function(){return o.GoogleTagManager}}),Object.defineProperty(r,"sendGTMEvent",{enumerable:!0,get:function(){return o.sendGTMEvent}});var a=e.r(82392);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return a.GoogleAnalytics}}),Object.defineProperty(r,"sendGAEvent",{enumerable:!0,get:function(){return a.sendGAEvent}})},83629,(e,t,r)=>{"use strict";var n=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){let{html:t,scripts:r,stylesheets:n}=(0,o.YouTubeEmbed)(e);return(0,l.jsx)(a.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==r?void 0:r.map(e=>(0,l.jsx)(i.default,{src:e.url,strategy:s[e.strategy],stylesheets:n},e.url))})};let l=e.r(69996),i=n(e.r(3403)),o=e.r(8751),a=n(e.r(83947)),s={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}}
11,65706,32360,99599,59742,7164,79107,36439,55433,46115,54130,39826,83072,10242,49624,81543,78754,45938,49910,98464,67489,e=>{"use strict";var t=e.i(13496);let r=(0,t.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["CheckIcon",0,r],65706);var n=e.i(82420),l=e.i(12814),i=e.i(53076);let o={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},a={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},s={valid:e=>null===e?null:e?{"data-valid":""}:{"data-invalid":""}};e.s(["DEFAULT_FIELD_ROOT_STATE",0,a,"DEFAULT_VALIDITY_STATE",0,o,"fieldValidityMapping",0,s],32360);let u={invalid:void 0,name:void 0,validityData:{state:o,errors:[],error:"",value:"",initialValue:null},setValidityData:i.NOOP,disabled:void 0,setTouched:i.NOOP,setDirty:i.NOOP,setFilled:i.NOOP,setFocused:i.NOOP,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:a,registerFieldControl:i.NOOP,validation:{getValidationProps:(e,t=i.EMPTY_OBJECT)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:i.NOOP,getInputControl:()=>null,commit:async()=>{},change:i.NOOP}},c=l.createContext(u);function d(e=!0){let t=l.useContext(c);if(t.setValidityData===i.NOOP&&!e)throw Error((0,n.default)(28));return t}e.s(["FieldRootContext",0,c,"useFieldRootContext",0,d],99599);let f=l.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:i.NOOP,validationMode:"onSubmit",submitAttemptedRef:{current:!1}});function m(){return l.useContext(f)}e.s(["useFormContext",0,m],59742);let p=l.createContext({controlId:void 0,registerControlId:i.NOOP,labelId:void 0,setLabelId:i.NOOP,messageIds:[],setMessageIds:i.NOOP,getDescriptionProps:e=>e});function g(){return l.useContext(p)}e.s(["LabelableContext",0,p,"useLabelableContext",0,g],7164);var h=e.i(80269),b=e.i(52515),v=e.i(19458),y=e.i(67617),x=e.i(61362),w=e.i(56191);function E(e={}){let t,{id:r,fallbackControlId:n,native:l=!1,setLabelId:i,focusControl:o}=e,{controlId:a,setLabelId:s}=g(),u=(0,v.useStableCallback)(e=>{s(e),i?.(e)}),c=(t=(0,w.useBaseUiId)(r),(0,x.useIsoLayoutEffect)(()=>(u(t),()=>{u(e=>e===t?void 0:e)}),[t,u]),t),d=a??n;function f(e){let t=(0,y.getTarget)(e.nativeEvent);t?.closest("button,input,select,textarea")||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),l||function(e){if(o)return o(e,d);if(!d)return;let t=(0,b.ownerDocument)(e.currentTarget).getElementById(d);(0,h.isHTMLElement)(t)&&t.focus({focusVisible:!0})}(e))}return l?{id:c,htmlFor:d??void 0,onMouseDown:f}:{id:c,onClick:f,onPointerDown(e){e.preventDefault()}}}e.s(["useLabel",0,E],79107);var S=e.i(17975);function R(e,t,r,n,l=!0,i){let{registerFieldControl:o}=d(),a=(0,S.useRefWithInit)(()=>Symbol());(0,x.useIsoLayoutEffect)(()=>{let s=a.current;l?o(s,{controlRef:e,getValue:n,id:t,name:i,value:r}):o(s,void 0)},[e,l,n,t,i,o,a,r]),(0,x.useIsoLayoutEffect)(()=>{let e=a.current;return()=>{o(e,void 0)}},[o,a])}function C(e={}){let{id:t,implicit:r=!1,controlRef:n}=e,{controlId:o,registerControlId:a}=g(),s=(0,w.useBaseUiId)(t),u=r?o:void 0,c=(0,S.useRefWithInit)(()=>Symbol()),d=l.useRef(!1),f=l.useRef(null!=t),m=(0,v.useStableCallback)(()=>{d.current&&a!==i.NOOP&&(d.current=!1,a(c.current,void 0))});return(0,x.useIsoLayoutEffect)(()=>{let e;if(a!==i.NOOP){if(r){let r=n?.current;e=(0,h.isElement)(r)&&null!=r.closest("label")?t??null:u??s}else if(null!=t)f.current=!0,e=t;else{if(!f.current)return void m();e=s}if(void 0===e)return void m();d.current=!0,a(c.current,e)}},[t,n,u,a,r,s,c,m]),l.useEffect(()=>m,[m]),o??s}function M(e){if(null==e)return"";if("string"==typeof e)return e;try{return JSON.stringify(e)}catch{return String(e)}}function O(e){return null==e||e.hasAttribute("disabled")||"true"===e.getAttribute("aria-disabled")}e.s(["useRegisterFieldControl",0,R],36439),e.s(["useLabelableId",0,C],55433),e.s(["serializeValue",0,M],46115),e.s(["isElementDisabled",0,O],54130);let I=l.createContext(void 0);function A(){let e=l.useContext(I);return e?.direction??"ltr"}e.s(["useDirection",0,A],39826);var k=e.i(69996);e.s([],88596),e.i(88596);var T=e.i(88333),P=e.i(49939),j=e.i(25587),L=e.i(46230),_=e.i(68947),N=e.i(68790),D=e.i(98658),F=e.i(27123),V=e.i(25804),H=e.i(6224),W=e.i(46013),B=e.i(93856);function $(e){let{open:t=!1,onOpenChange:r,elements:n={}}=e,l=(0,V.useId)(),i=null!=(0,W.useFloatingParentNodeId)(),o=(0,S.useRefWithInit)(()=>new B.FloatingRootStore({open:t,transitionStatus:void 0,onOpenChange:r,referenceElement:n.reference??null,floatingElement:n.floating??null,triggerElements:new H.PopupTriggerMap,floatingId:l,syncOnly:!1,nested:i})).current;return(0,x.useIsoLayoutEffect)(()=>{let e={open:t,floatingId:l};void 0!==n.reference&&(e.referenceElement=n.reference,e.domReferenceElement=(0,h.isElement)(n.reference)?n.reference:null),void 0!==n.floating&&(e.floatingElement=n.floating),o.update(e)},[t,l,n.reference,n.floating,o]),o.context.onOpenChange=r,o.context.nested=i,o}e.s(["useFloatingRootContext",0,$],83072);var z=e.i(99124),U=e.i(33858),Y=e.i(5250),G=e.i(34287),q=e.i(91143),K=e.i(45268),J=e.i(55896),X=e.i(69538),Q=e.i(98498);function Z(e){return U.platform.engine.webkit&&0===e.movementX&&0===e.movementY}function ee(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function et(e,t){return ee(t,e===K.ARROW_UP||e===K.ARROW_DOWN,e===K.ARROW_LEFT||e===K.ARROW_RIGHT)}function er(e,t,r){return ee(t,e===K.ARROW_DOWN,r?e===K.ARROW_LEFT:e===K.ARROW_RIGHT)||"Enter"===e||" "===e||""===e}var en=e.i(2304);let el=l.createContext(null);function ei(){let e=l.useContext(el);if(null===e)throw Error((0,n.default)(60));return e}var eo=e.i(95188);let ea=(e,t)=>Object.is(e,t);function es(e,t,r){return null==e||null==t?Object.is(e,t):r(e,t)}function eu(e,t,r){return e&&0!==e.length?e.findIndex(e=>void 0!==e&&es(e,t,r)):-1}function ec(e){return null!=e&&e.length>0&&"object"==typeof e[0]&&null!=e[0]&&"items"in e[0]}function ed(e,t){if(t&&null!=e)return t(e)??"";if(e&&"object"==typeof e){if("label"in e&&null!=e.label)return String(e.label);if("value"in e)return String(e.value)}return M(e)}function ef(e,t){return t&&null!=e?t(e)??"":e&&"object"==typeof e&&"value"in e&&"label"in e?M(e.value):M(e)}function em(e,t,r){if(r&&null!=e)return r(e);if(e&&"object"==typeof e&&"label"in e&&null!=e.label)return e.label;if(t&&!Array.isArray(t))return t[e]??ed(e,r);if(Array.isArray(t)){let n=ec(t)?t.flatMap(e=>e.items):t;if(null==e||"object"!=typeof e){let t=n.find(t=>t.value===e);return t&&null!=t.label?t.label:ed(e,r)}if("value"in e){let t=n.find(t=>t&&t.value===e.value);if(t&&null!=t.label)return t.label}}return ed(e,r)}let ep=e=>e.id,eg=e=>
11e.labelId,eh=e=>e.modal,eb=e=>e.items,ev=e=>e.itemToStringLabel,ey=e=>e.isItemEqualToValue,ex=e=>e.value,ew=e=>{let{value:t,multiple:r,itemToStringValue:n}=e;return null!=t&&(r&&Array.isArray(t)?t.length>0:""!==ef(t,n))},eE=(e,t)=>!!t&&function(e){if(!Array.isArray(e))return null!=e&&"null"in e;if(ec(e)){for(let t of e)for(let e of t.items)if(e&&null==e.value&&null!=e.label)return!0;return!1}for(let t of e)if(t&&null==t.value&&null!=t.label)return!0;return!1}(e.items),eS=e=>e.open,eR=e=>e.mounted,eC=e=>e.forceMount,eM=e=>e.transitionStatus,eO=e=>e.openMethod,eI=e=>e.activeIndex,eA=e=>e.selectedIndex,ek=(e,t)=>e.activeIndex===t,eT=(e,t)=>{let r=e.isItemEqualToValue,n=e.value;return e.multiple?Array.isArray(n)&&n.some(e=>es(t,e,r)):es(t,n,r)},eP=(e,t)=>e.selectedIndex===t,ej=e=>e.popupProps,eL=e=>e.triggerProps,e_=e=>e.triggerElement,eN=e=>e.positionerElement,eD=e=>e.listElement,eF=e=>e.popupSide,eV=e=>e.scrollUpArrowVisible,eH=e=>e.scrollDownArrowVisible,eW=e=>e.hasScrollArrows;var eB=e.i(74514),e$=e.i(79191),ez=e.i(6311);function eU(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}function eY(e,t){return Math.max(0,e-t)}function eG(e,t){if(t<=0)return 0;let r=eU(e,0,t),n=t-r,l=r<=1,i=n<=1;return l&&i?r<=n?0:t:l?0:i?t:r}var eq=e.i(19043),eK=e.i(9015),eJ=e.i(9476);let eX=l.forwardRef(function(e,t){let{render:r,className:n,style:l,...i}=e;delete i.id;let o=d(),{store:a}=ei(),u=(0,_.useStore)(a,e_),c=(0,_.useStore)(a,ep),f=E({id:null==c?void 0:`${c}-label`,fallbackControlId:u?.id??c,setLabelId(e){let t="function"==typeof e?e(a.state.labelId):e;a.set("labelId",t)}});return(0,eJ.useRenderElement)("div",e,{ref:t,state:o.state,props:[f,i],stateAttributesMapping:s})});var eQ=e.i(86476),eZ=e.i(79995),e0=e.i(42186);let e1={...eQ.pressableTriggerOpenStateMapping,...s,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},e2=l.forwardRef(function(e,t){let{render:r,className:n,id:i,disabled:o=!1,nativeButton:a=!0,style:s,...u}=e,{setTouched:c,setFocused:f,validationMode:m,state:p,disabled:h}=d(),{labelId:v}=g(),{store:x,setOpen:w,selectionRef:E,validation:S,readOnly:R,required:M,alignItemWithTriggerActiveRef:O,disabled:I}=ei(),A=h||I||o,k=(0,_.useStore)(x,eS),T=(0,_.useStore)(x,eR),P=(0,_.useStore)(x,ex),j=(0,_.useStore)(x,eL),N=(0,_.useStore)(x,eN),D=(0,_.useStore)(x,eD),F=(0,_.useStore)(x,eF),V=(0,_.useStore)(x,ep),H=(0,_.useStore)(x,eg),W=(0,_.useStore)(x,ew),B=T&&N?F:null,$=i??V;C({id:$});let z=(0,L.useValueAsRef)(N),q=l.useRef(null),{getButtonProps:K,buttonRef:X}=(0,e0.useButton)({disabled:A,native:a}),Q=x.useStateSetter("triggerElement"),Z=(0,en.useTimeout)(),ee=(0,en.useTimeout)(),et=(0,en.useTimeout)();l.useEffect(()=>{if(k)return et.start(400,()=>{E.current.allowUnselectedMouseUp=!0,E.current.allowSelectedMouseUp=!0}),()=>{et.clear()};E.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},ee.clear()},[k,E,ee,et]);let er=(0,eK.mergeProps)(j,{id:$,role:"combobox","aria-expanded":k,"aria-haspopup":"listbox","aria-controls":k?D?.id??(0,J.getFloatingFocusElement)(N)?.id:void 0,"aria-labelledby":v??H,"aria-readonly":R||void 0,"aria-required":M||void 0,tabIndex:A?-1:0,onFocus(e){f(!0),k&&O.current&&w(!1,(0,Y.createChangeEventDetails)(G.REASONS.none,e.nativeEvent)),Z.start(0,()=>{x.set("forceMount",!0)})},onBlur(e){(0,y.contains)(N,e.relatedTarget)||(c(!0),f(!1),"onBlur"===m&&S.commit(P))},onMouseDown(e){if(k)return;let t=(0,b.ownerDocument)(e.currentTarget);function r(e){let t;if(!q.current)return;let r=e.target;!((0,y.contains)(q.current,r)||(0,y.contains)(z.current,r))&&(t=function(e){let t=e.getBoundingClientRect(),r=(0,eZ.ownerWindow)(e);if(U.platform.env.jsdom)return t;let n=r.getComputedStyle(e,"::before"),l=r.getComputedStyle(e,"::after");if("none"===n.content&&"none"===l.content)return t;let i=parseFloat(n.width)||0,o=parseFloat(n.height)||0,a=parseFloat(l.width)||0,s=parseFloat(l.height)||0,u=Math.max(t.width,i,a),c=Math.max(t.height,o,s),d=u-t.width,f=c-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}(q.current),e.clientX>=t.left-5&&e.clientX<=t.right+5&&e.clientY>
11=t.top-5&&e.clientY<=t.bottom+5||w(!1,(0,Y.createChangeEventDetails)(G.REASONS.cancelOpen,e)))}ee.start(0,()=>{t.addEventListener("mouseup",r,{once:!0})})}},u,K),el=S.getValidationProps(A,er);el.role="combobox";let eo={...p,open:k,disabled:A,value:P,readOnly:R,popupSide:B,placeholder:!W};return(0,eJ.useRenderElement)("button",e,{ref:[t,q,X,Q],state:eo,stateAttributesMapping:e1,props:el})}),e9={value:()=>null},e5=l.forwardRef(function(e,t){let{className:r,render:n,children:i,placeholder:o,style:a,...s}=e,{store:u,valueRef:c}=ei(),d=(0,_.useStore)(u,ex),f=(0,_.useStore)(u,eb),m=(0,_.useStore)(u,ev),p=(0,_.useStore)(u,ew),g=!p&&null!=o&&null==i,h=(0,_.useStore)(u,eE,g),b=null;if("function"==typeof i)b=i(d);else if(null!=i)b=i;else if(g&&!h)b=o;else if(Array.isArray(d))b=d.reduce((e,t,r)=>(r>0&&e.push(", "),e.push((0,k.jsx)(l.Fragment,{children:em(t,f,m)},r)),e),[]);else b=em(d,f,m);return(0,eJ.useRenderElement)("span",e,{state:{value:d,placeholder:!p},ref:[t,c],props:[{children:b},s],stateAttributesMapping:e9})}),e4=l.forwardRef(function(e,t){let{render:r,className:n,style:l,...i}=e,{store:o}=ei(),a=(0,_.useStore)(o,eS);return(0,eJ.useRenderElement)("span",e,{state:{open:a},ref:t,props:[{"aria-hidden":!0,children:"â¼"},i],stateAttributesMapping:eQ.triggerOpenStateMapping})});var e6=e.i(95049);let e3=l.forwardRef(function(e,t){let{store:r}=ei(),n=(0,_.useStore)(r,eR),l=(0,_.useStore)(r,eC);return n||l?(0,k.jsx)(e6.FloatingPortal,{ref:t,...e}):null});var e8=e.i(34472);let e7={...eQ.popupStateMapping,...e8.transitionStatusMapping},te=l.forwardRef(function(e,t){let{render:r,className:n,style:l,...i}=e,{store:o}=ei(),a=(0,_.useStore)(o,eS),s=(0,_.useStore)(o,eR),u=(0,_.useStore)(o,eM);return(0,eJ.useRenderElement)("div",e,{state:{open:a,transitionStatus:u},ref:t,props:[{role:"presentation",hidden:!s,style:{userSelect:"none",WebkitUserSelect:"none"}},i],stateAttributesMapping:e7})});var tt=e.i(33262),tr=e.i(81901);let tn=["top","right","bottom","left"],tl=tn.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),ti=Math.min,to=Math.max,ta=Math.round,ts=Math.floor,tu=e=>({x:e,y:e}),tc={left:"right",right:"left",bottom:"top",top:"bottom"};function td(e,t,r){return to(e,ti(t,r))}function tf(e,t){return"function"==typeof e?e(t):e}function tm(e){return e.split("-")[0]}function tp(e){return e.split("-")[1]}function tg(e){return"x"===e?"y":"x"}function th(e){return"y"===e?"height":"width"}function tb(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function tv(e){return tg(tb(e))}function ty(e,t,r){void 0===r&&(r=!1);let n=tp(e),l=tv(e),i=th(l),o="x"===l?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=tO(o)),[o,tO(o)]}function tx(e){let t=tO(e);return[tw(e),t,tw(t)]}function tw(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let tE=["left","right"],tS=["right","left"],tR=["top","bottom"],tC=["bottom","top"];function tM(e,t,r,n){let l=tp(e),i=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?tS:tE;return t?tE:tS;case"left":case"right":return t?tR:tC;default:return[]}}(tm(e),"start"===r,n);return l&&(i=i.map(e=>e+"-"+l),t&&(i=i.concat(i.map(tw)))),i}function tO(e){let t=tm(e);return tc[t]+e.slice(t.length)}function tI(e){var t,r,n,l;return"number"!=typeof e?{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(l=e.left)?l:0}:{top:e,right:e,bottom:e,left:e}}function tA(e){let{x:t,y:r,width:n,height:l}=e;return{width:n,height:l,top:r,left:t,right:t+n,bottom:r+l,x:t,y:r}}function tk(e,t,r){let n,{reference:l,floating:i}=e,o=tb(t),a=tv(t),s=th(a),u=tm(t),c=l.x+l.width/2-i.width/2,d=l.y+l.height/2-i.height/2,f=l[s]/2-i[s]/2;switch(u){case"top":n={x:c,y:l.y-i.height};break;case"bottom":n={x:c,y:l.y+l.height};break;case"right":n={x:l.x+l.width,y:d};break;case"left":n={x:l.x-i.width,y:d};break;default:n={x:l.x,y:l.y}}let m=tp(t);return m&&(n[a]+=f*("end"===m?1:-1)*(r&&"y"===o?-1:1)),n}async function tT(e,t){var r;void 0===t&&(t={});let{x:n,y:l,platform:i,rects:o,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=tf(t,e),p=tI(m),g=a[f?"floating"===d?"reference":"floating":d],h=tA(await i.getClippingRect
11({element:null==(r=await (null==i.isElement?void 0:i.isElement(g)))||r?g:g.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),b="floating"===d?{x:n,y:l,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await (null==i.isElement?void 0:i.isElement(v))&&await (null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=tA(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:s}):b);return{top:(h.top-x.top+p.top)/y.y,bottom:(x.bottom-h.bottom+p.bottom)/y.y,left:(h.left-x.left+p.left)/y.x,right:(x.right-h.right+p.right)/y.x}}e.s(["clamp",0,td,"createCoords",0,tu,"evaluate",0,tf,"floor",0,ts,"getAlignment",0,tp,"getAlignmentAxis",0,tv,"getAlignmentSides",0,ty,"getAxisLength",0,th,"getExpandedPlacements",0,tx,"getOppositeAlignmentPlacement",0,tw,"getOppositeAxis",0,tg,"getOppositeAxisPlacements",0,tM,"getOppositePlacement",0,tO,"getPaddingObject",0,tI,"getSide",0,tm,"getSideAxis",0,tb,"max",0,to,"min",0,ti,"placements",0,tl,"rectToClientRect",0,tA,"round",0,ta,"sides",0,tn],10242);let tP=async(e,t,r)=>{let{placement:n="bottom",strategy:l="absolute",middleware:i=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:tT},s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:l}),{x:c,y:d}=tk(u,n,s),f=n,m=0,p={};for(let r=0;r<i.length;r++){let g=i[r];if(!g)continue;let{name:h,fn:b}=g,{x:v,y:y,data:x,reset:w}=await b({x:c,y:d,initialPlacement:n,placement:f,strategy:l,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=y?y:d,p[h]={...p[h],...x},w&&m<50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await o.getElementRects({reference:e,floating:t,strategy:l}):w.rects),{x:c,y:d}=tk(u,f,s)),r=-1)}return{x:c,y:d,placement:f,strategy:l,middlewareData:p}},tj=new Set(["left","top"]);async function tL(e,t){let{placement:r,platform:n,elements:l}=e,i=await (null==n.isRTL?void 0:n.isRTL(l.floating)),o=tm(r),a=tp(r),s="y"===tb(r),u=tj.has(o)?-1:1,c=i&&s?-1:1,d=tf(t,e),{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(m="end"===a?-1*p:p),s?{x:m*c,y:f*u}:{x:f*u,y:m*c}}function t_(e){let t=(0,h.getComputedStyle)(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,l=(0,h.isHTMLElement)(e),i=l?e.offsetWidth:r,o=l?e.offsetHeight:n,a=ta(r)!==i||ta(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function tN(e){return(0,h.isElement)(e)?e:e.contextElement}function tD(e){let t=tN(e);if(!(0,h.isHTMLElement)(t))return tu(1);let r=t.getBoundingClientRect(),{width:n,height:l,$:i}=t_(t),o=(i?ta(r.width):r.width)/n,a=(i?ta(r.height):r.height)/l;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let tF=tu(0);function tV(e){let t=(0,h.getWindow)(e);return(0,h.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tF}function tH(e,t,r,n){var l;void 0===t&&(t=!1),void 0===r&&(r=!1);let i=e.getBoundingClientRect(),o=tN(e),a=tu(1);t&&(n?(0,h.isElement)(n)&&(a=tD(n)):a=tD(e));let s=(void 0===(l=r)&&(l=!1),n&&l&&n===(0,h.getWindow)(o))?tV(o):tu(0),u=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,f=i.height/a.y;if(o&&n){let e=(0,h.getWindow)(o),t=(0,h.isElement)(n)?(0,h.getWindow)(n):n,r=e,l=(0,h.getFrameElement)(r);for(;l&&t!==r;){let e=tD(l),t=l.getBoundingClientRect(),n=(0,h.getComputedStyle)(l),i=t.left+(l.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(l.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=o,r=(0,h.getWindow)(l),l=(0,h.getFrameElement)(r)}}return tA({width:d,height:f,x:u,y:c})}function tW(e,t){let r=(0,h.getNodeScroll)(e).scrollLeft;return t?t.left+r:tH((0,h.getDocumentElement)(e)).left+r}function tB(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-tW(e,r),y:r.top+t.scrollTop}}function t$(e,t,r){var n;let l;if("viewport"===t||"layoutViewport"===t)l=function(e,t,r){void 0===r&&(r="viewport");let n="layoutViewport"===r,l=(0,h.getWindow)(e),i=(0,h.getDocumentElement)(e),o=l.visualVie
vendor: 4,754 bytes, line 11
11wport,a=i.clientWidth,s=i.clientHeight,u=0,c=0;if(o){let e=!(0,h.isWebKit)()||"fixed"===t;n?e||(u=-o.offsetLeft,c=-o.offsetTop):(a=o.width,s=o.height,e&&(u=o.offsetLeft,c=o.offsetTop))}if(0>=tW(i)){let e=i.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(i.clientWidth-t.clientWidth-n),o="stable both-edges"===getComputedStyle(i).scrollbarGutter?l/2:l;o<=25&&(a-=o)}return{width:a,height:s,x:u,y:c}}(e,r,t);else if("document"===t){let t,r,i,o,a,s;n=(0,h.getDocumentElement)(e),t=(0,h.getNodeScroll)(n),r=n.ownerDocument.body,i=to(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),o=to(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight),a=-t.scrollLeft+tW(n),s=-t.scrollTop,"rtl"===(0,h.getComputedStyle)(r).direction&&(a+=to(n.clientWidth,r.clientWidth)-i),l={width:i,height:o,x:a,y:s}}else if((0,h.isElement)(t)){let e,n,i,o,a,s;n=(e=tH(t,!0,"fixed"===r)).top+t.clientTop,i=e.left+t.clientLeft,o=tD(t),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:a,height:s,x:i*o.x,y:n*o.y}}else{let r=tV(e);l={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return tA(l)}function tz(e){return"static"===(0,h.getComputedStyle)(e).position}function tU(e,t){if(!(0,h.isHTMLElement)(e)||"fixed"===(0,h.getComputedStyle)(e).position)return null;if(t)return t(e);let r=e.offsetParent;return(0,h.getDocumentElement)(e)===r&&(r=r.ownerDocument.body),r}function tY(e,t){let r=(0,h.getWindow)(e);if((0,h.isTopLayer)(e))return r;if(!(0,h.isHTMLElement)(e)){let t=(0,h.getParentNode)(e);for(;t&&!(0,h.isLastTraversableNode)(t);){if((0,h.isElement)(t)&&!tz(t))return t;t=(0,h.getParentNode)(t)}return r}let n=tU(e,t);for(;n&&(0,h.isTableElement)(n)&&tz(n);)n=tU(n,t);return n&&(0,h.isLastTraversableNode)(n)&&tz(n)&&!(0,h.isContainingBlock)(n)?r:n||(0,h.getContainingBlock)(e)||r}let tG=async function(e){let t=this.getOffsetParent||tY,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=(0,h.isHTMLElement)(t),l=(0,h.getDocumentElement)(t),i="fixed"===r,o=tH(e,!0,i,t),a={scrollLeft:0,scrollTop:0},s=tu(0);if((n||!i)&&(("body"!==(0,h.getNodeName)(t)||(0,h.isOverflowElement)(l))&&(a=(0,h.getNodeScroll)(t)),n)){let e=tH(t,!0,i,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}!n&&l&&(s.x=tW(l));let u=!l||n||i?tu(0):tB(l,a);return{x:o.left+a.scrollLeft-s.x-u.x,y:o.top+a.scrollTop-s.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tq={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:l}=e,i="fixed"===l,o=(0,h.getDocumentElement)(n),a=!!t&&(0,h.isTopLayer)(t.floating);if(n===o||a&&i)return r;let s={scrollLeft:0,scrollTop:0},u=tu(1),c=tu(0),d=(0,h.isHTMLElement)(n);if((d||!i)&&(("body"!==(0,h.getNodeName)(n)||(0,h.isOverflowElement)(o))&&(s=(0,h.getNodeScroll)(n)),d)){let e=tH(n);u=tD(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!o||d||i?tu(0):tB(o,s);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-s.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-s.scrollTop*u.y+c.y+f.y}},getDocumentElement:h.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:l}=e,i=[..."clippingAncestors"===r?(0,h.isTopLayer)(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=(0,h.getOverflowAncestors)(e,[],!1).filter(e=>(0,h.isElement)(e)&&"body"!==(0,h.getNodeName)(e)),l=null,i="fixed"===(0,h.getComputedStyle)(e).position,o=i?(0,h.getParentNode)(e):e;for(;(0,h.isElement)(o)&&!(0,h.isLastTraversableNode)(o);){let e=(0,h.getComputedStyle)(o),t=(0,h.isContainingBlock)(o),r=l?l.position:i?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?l=e:n=n.filter(e=>e!==o),o=(0,h.getParentNode)(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=t$(t,i[0],l),a=o.top,s=o.right,u=o.bottom,c=o.left;for(let e=1;e<i.length;e++){let r=t$(t,i[e],l);a=to(r.top,a),s=ti(r.right,s),u=ti(r.bottom,u),c=to(r.left,c)}return{width:s-c,height:u-a,x:c,y:a}},getOffsetParent:tY,getElementRects:tG,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:r}=t_(e);return{width:t,height:r}},getScale:tD,isElement:h.isElement,isRTL:function(e){return"rtl"===(0,h.getComputedStyle)(e).direction}};function tK(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tJ(e,t,r,n){let l;void 0===n&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=tN(e),d=i||o?[...c?(0,h.getOverflowAncestors)(c):[],...t?(0,h.getOverflowAncestors)(t):[]]:[];
11d.forEach(e=>{i&&e.addEventListener("scroll",r),o&&e.addEventListener("resize",r)});let f=c&&s?function(e,t,r){let n,l=null,i=(0,h.getDocumentElement)(e);function o(){var e;clearTimeout(n),null==(e=l)||e.disconnect(),l=null}function a(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:m}=u;if(r||t(),!f||!m)return;let p={rootMargin:-ts(d)+"px "+-ts(i.clientWidth-(c+f))+"px "+-ts(i.clientHeight-(d+m))+"px "+-ts(c)+"px",threshold:to(0,ti(1,s))||1},g=!0;function h(t){let r=t[0].intersectionRatio;if(!tK(u,e.getBoundingClientRect()))return a();if(r!==s){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}g=!1}try{l=new IntersectionObserver(h,{...p,root:i.ownerDocument})}catch(e){l=new IntersectionObserver(h,p)}l.observe(e)}let s=(0,h.getWindow)(e),u=()=>a(r);return s.addEventListener("resize",u),a(!0),()=>{s.removeEventListener("resize",u),o()}}(c,r,o):null,m=-1,p=null;a&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),t&&p.observe(t));let g=u?tH(e):null;return u&&function t(){let n=tH(e);g&&!tK(g,n)&&r(),g=n,l=requestAnimationFrame(t)}(),r(),()=>{var e;d.forEach(e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(l)}}var tX=e.i(92619),tQ="u">typeof document?l.useLayoutEffect:function(){};function tZ(e,t){let r,n,l;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((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!tZ(e[n],t[n]))return!1;return!0}if((r=(l=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,l[n]))return!1;for(n=r;0!=n--;){let r=l[n];if(("_owner"!==r||!e.$$typeof)&&!tZ(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function t0(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function t1(e,t){let r=t0(e);return Math.round(t*r)/r}function t2(e){let t=l.useRef(e);return tQ(()=>{t.current=e}),t}function t9(e){return t5(e,e.rootContext)}function t5(e,t){let{nodeId:r,externalTree:n}=e,i=t.useState("referenceElement"),o=t.useState("floatingElement"),a=t.useState("domReferenceElement"),s=t.useState("open"),u=t.useState("floatingId"),[c,d]=l.useState(null),[f,m]=l.useState(void 0),[p,g]=l.useState(void 0),b=l.useRef(null),v=(0,W.useFloatingTree)(n),y=l.useMemo(()=>({reference:i,floating:o,domReference:a}),[i,o,a]),w=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=l.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,p]=l.useState(n);tZ(m,n)||p(n);let[g,h]=l.useState(null),[b,v]=l.useState(null),y=l.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),x=l.useCallback(e=>{e!==R.current&&(R.current=e,v(e))},[]),w=o||g,E=a||b,S=l.useRef(null),R=l.useRef(null),C=l.useRef(d),M=null!=u,O=t2(u),I=t2(i),A=t2(c),k=l.useCallback(()=>{var e,n;let l,i,o;if(!S.current||!R.current)return;let a={placement:t,strategy:r,middleware:m};I.current&&(a.platform=I.current),(e=S.current,n=R.current,l=new Map,i=null!=a?a:{},o={...tq,...i.platform,_c:l},tP(e,n,{...i,platform:o})).then(e=>{let t={...e,isPositioned:!1!==A.current};T.current&&!tZ(C.current,t)&&(C.current=t,tX.flushSync(()=>{f(t)}))})},[m,t,r,I,A]);tQ(()=>{!1===c&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let T=l.useRef(!1);tQ(()=>(T.current=!0,()=>{T.current=!1}),[]),tQ(()=>{if(w&&(S.current=w),E&&(R.current=E),w&&E){if(O.current)return O.current(w,E,k);k()}},[w,E,k,O,M]);let P=l.useMemo(()=>({reference:S,floating:R,setReference:y,setFloating:x}),[y,x]),j=l.useMemo(()=>({reference:w,floating:E}),[w,E]),L=l.useMemo(()=>{let e={position:r,left:0,top:0};if(!j.floating)return e;let t=t1(j.floating,d.x),n=t1(j.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...t0(j.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,j.floating,d.x,d.y]);return l.useMemo(()=>({...d,update:k,refs:P,elements:j,floatingStyles:L}),[d,k,P,j,L])}({...e,elements:{...y,...c&&{reference:c}}}),E=(0,h.isElement)(f)?f:null,S=void 0===p?t.state.floatingElement:p;t.useSyncedValue("referenceElement",f??null),t.useSyncedValue("domReferenceElement",void 0===f?a:E),t.useSyncedValue("floatingElement",S);let R=l.useCallback(e=>{let t=(0,h.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),w.refs.setReference(t)},[w.refs]),C=l.useCallback(e=>{((0,h.isElement)(e)||null===e)&&(b.current=e,m(e)),((0,h.isElement)(w.refs.reference.current)||null===w.refs.reference.current||null!==e&&!(0,h.isElement)(e))&&w.refs.setReference(e)},[w.refs,m]),M=l.useCallback(e=>{g(e),w.refs.setFloating(e)},[w.refs]),O=l.useMemo(()=>({...w.refs,setReference:C,setFloating:M,setPositionReference:R,domReference:b}),[w.refs,C,M,R]),I=l.useMemo(()=>({...w.elements,domReference:a}
11),[w.elements,a]),A=l.useMemo(()=>({...w,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:u,refs:O,elements:I,nodeId:r,rootStore:t}),[w,O,I,r,t,s,u]);return(0,x.useIsoLayoutEffect)(()=>{a&&(b.current=a)},[a]),(0,x.useIsoLayoutEffect)(()=>{t.context.dataRef.current.floatingContext=A;let e=v?.nodesRef.current.find(e=>e.id===r);e&&(e.context=A)}),l.useMemo(()=>({...w,context:A,refs:O,elements:I,rootStore:t}),[w,O,I,A,t])}e.s(["useBaseUIFloating",0,t9,"useFloating",0,function(e={}){let t=$(e),r=e.rootContext||t;return t5(e,r)}],49624);let t4={name:"hide",async fn(e){let{width:t,height:r,x:n,y:l}=e.rects.reference,i=await e.platform.detectOverflow(e,{elementContext:"reference"});return{data:{referenceHidden:i.top-r>=0||i.right-t>=0||i.bottom-r>=0||i.left-t>=0||0===t&&0===r&&0===n&&0===l}}}},t6={sideX:"left",sideY:"top"};e.s(["DEFAULT_SIDES",0,t6],81543);let t3="--available-width",t8="--available-height";function t7(e,t,r){let n="inline-start"===e||"inline-end"===e;return({top:"top",right:n?r?"inline-start":"inline-end":"right",bottom:"bottom",left:n?r?"inline-end":"inline-start":"left"})[t]}function re(e,t,r){let{rects:n,placement:l}=e;return{side:t7(t,tm(l),r),align:tp(l)||"center",anchor:{width:n.reference.width,height:n.reference.height},positioner:{width:n.floating.width,height:n.floating.height}}}function rt(e){return rr(e,t9)}function rr(e,t){var r,n,i,o,a,s,u,c,d,f,m,p,g,h;let y,w,E,S,{anchor:R,positionMethod:C="absolute",side:M="bottom",sideOffset:O=0,align:I="center",alignOffset:k=0,collisionBoundary:T,collisionPadding:P=5,sticky:j=!1,arrowPadding:_=5,disableAnchorTracking:N=!1,inline:D,keepMounted:F=!1,floatingRootContext:V,mounted:H,collisionAvoidance:W,shift:B,nodeId:$,adaptiveOrigin:z,lazyFlip:U=!1,externalTree:Y}=e,[G,q]=l.useState(null);H||null===G||q(null);let K=W.side||"flip",J=W.align||"flip",X=W.fallbackAxisSide||"end",Q=B?.crossAxis??!1,Z=B?.rootBoundary,ee="function"==typeof R?R:void 0,et=(0,v.useStableCallback)(ee),er=ee?et:R,en=(0,L.useValueAsRef)(R),el=(0,L.useValueAsRef)(H),ei="rtl"===A(),eo=G||({top:"top",right:"right",bottom:"bottom",left:"left","inline-end":ei?"left":"right","inline-start":ei?"right":"left"})[M],ea="center"===I?eo:`${eo}-${I}`,es=P;"number"==typeof es?es={top:es,right:es,bottom:es,left:es}:es&&(es={top:es.top||0,right:es.right||0,bottom:es.bottom||0,left:es.left||0});let eu=+("bottom"===M),ec=+("top"===M),ed=+("right"===M),ef=+("left"===M),em={boundary:"clipping-ancestors"===T?"clippingAncestors":T,padding:es},ep=l.useRef(null),eg=(0,L.useValueAsRef)(O),eh=(0,L.useValueAsRef)(k),eb=[];D&&eb.push(D),eb.push((r=e=>{let t=re(e,M,ei),r="function"==typeof eg.current?eg.current(t):eg.current,n="function"==typeof eh.current?eh.current(t):eh.current;return{mainAxis:r,crossAxis:n,alignmentAxis:n}},n=["function"!=typeof O?O:0,"function"!=typeof k?k:0,ei,M],void 0===(i=r)&&(i=0),{name:(y={name:"offset",options:i,async fn(e){var t,r;let{x:n,y:l,placement:o,middlewareData:a}=e,s=await tL(e,i);return o===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:n+s.x,y:l+s.y,data:{...s,placement:o}}}}).name,fn:y.fn,options:[r,n]}));let ev="none"===J&&"shift"!==K,ey=!ev&&(j||Q||"shift"===K),ex="none"===K?null:{name:(w={name:"flip",options:a=o={...em,padding:{top:es.top+1+eu,right:es.right+1+ef,bottom:es.bottom+1+ec,left:es.left+1+ed},mainAxis:!Q&&"flip"===K,crossAxis:"flip"===J&&"alignment",fallbackAxisSideDirection:X},async fn(e){var t,r,n,l,i;let{placement:o,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=tf(a,e);if(null!=(t=s.arrow)&&t.alignmentOffset)return{};let x=tm(o),w=tb(c),E=tm(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(f.floating)),R=g||(E||!v?[tO(c)]:tx(c)),C="none"!==b;!g&&C&&R.push(...tM(c,v,b,S));let M=[c,...R],O=await d.detectOverflow(e,y),I=[],A=(null==(r=s.flip)?void 0:r.overflows)||[];if(m&&I.push(O[x]),p){let e=ty(o,u,S);I.push(O[e[0]],O[e[1]])}if(A=[...A,{placement:o,overflows:I}],!I.every(e=>e<=0)){let e=((null==(n=s.flip)?void 0:n.index)||0)+1,t=M[e];if(t&&("alignment"!==p||w===tb(t)||A.every(e=>tb(e.placement)!==w||e.overflows[0]>0)))return{data:{index:e,overflows:A},reset:{placement:t}};let r=null==(l=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>
11e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!r)switch(h){case"bestFit":{let e=null==(i=A.filter(e=>{if(C){let t=tb(e.placement);return t===w||"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:i[0];e&&(r=e);break}case"initialPlacement":r=c}if(o!==r)return{reset:{placement:r}}}return{}}}).name,fn:w.fn,options:[o,void 0]},ew=ev?null:(c={...em,rootBoundary:Z,mainAxis:"none"!==J,crossAxis:ey,limiter:j||Q?void 0:{fn:(void 0===(u=s=e=>{if(!ep.current)return{};let{width:t,height:r}=ep.current.getBoundingClientRect(),n=tb(tm(e.placement)),l="y"===n?es.left+es.right:es.top+es.bottom;return{offset:("y"===n?t:r)/2+l/2}})&&(u={}),{options:u,fn(e){var t,r,n,l;let{x:i,y:o,placement:a,rects:s,middlewareData:c}=e,{offset:d=0,mainAxis:f=!0,crossAxis:m=!0}=tf(u,e),p={x:i,y:o},g=tb(a),h=tg(g),b=p[h],v=p[g],y=tf(d,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(t=y.mainAxis)?t:0,crossAxis:null!=(r=y.crossAxis)?r:0};if(f){let e="y"===h?"height":"width",t=s.reference[h]-s.floating[e]+x.mainAxis,r=s.reference[h]+s.reference[e]-x.mainAxis;b<t?b=t:b>r&&(b=r)}if(m){let e="y"===h?"width":"height",t=tj.has(tm(a)),r=s.reference[g]-s.floating[e]+(t&&(null==(n=c.offset)?void 0:n[g])||0)+(t?0:x.crossAxis),i=s.reference[g]+s.reference[e]+(t?0:(null==(l=c.offset)?void 0:l[g])||0)-(t?x.crossAxis:0);v<r?v=r:v>i&&(v=i)}return{[h]:b,[g]:v}}}).fn,options:[s,void 0]}},d=[em,j,Q,Z,es,J],void 0===(f=c)&&(f={}),{name:(E={name:"shift",options:f,async fn(e){let{x:t,y:r,placement:n,platform:l}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...s}=tf(f,e),u={x:t,y:r},c=await l.detectOverflow(e,s),d=tb(n),m=tg(d),p=u[m],g=u[d],h=(e,t)=>td(t+c["y"===e?"top":"left"],t,t-c["y"===e?"bottom":"right"]);i&&(p=h(m,p)),o&&(g=h(d,g));let b=a.fn({...e,[m]:p,[d]:g});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[m]:i,[d]:o}}}}}).name,fn:E.fn,options:[c,d]});"shift"===K||"shift"===J||"center"===I?eb.push(ew,ex):eb.push(ex,ew),eb.push({name:(S={name:"size",options:p=m={...em,apply({elements:{floating:e},availableWidth:t,availableHeight:r,rects:n}){if(!el.current)return;let l=e.style;l.setProperty(t3,`${t}px`),l.setProperty(t8,`${r}px`);let i=(0,eZ.ownerWindow)(e).devicePixelRatio||1,{x:o,y:a,width:s,height:u}=n.reference,c=(Math.round((o+s)*i)-Math.round(o*i))/i,d=(Math.round((a+u)*i)-Math.round(a*i))/i;l.setProperty("--anchor-width",`${c}px`),l.setProperty("--anchor-height",`${d}px`)}},async fn(e){let t,r,{placement:n,rects:l,platform:i,elements:o}=e,{apply:a=()=>{},...s}=tf(p,e),u=await i.detectOverflow(e,s),c=tm(n),d=tp(n),f="y"===tb(n),{width:m,height:g}=l.floating;"top"===c||"bottom"===c?(t=c,r=d===(await (null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(r=c,t="end"===d?"top":"bottom");let h=g-u.top-u.bottom,b=m-u.left-u.right,v=ti(g-u[t],h),y=ti(m-u[r],b),x=e.middlewareData.shift,w=!x,E=v,S=y;null!=x&&x.enabled.x&&(S=b),null!=x&&x.enabled.y&&(E=h),w&&!d&&(f?S=m-2*to(u.left,u.right):E=g-2*to(u.top,u.bottom)),await a({...e,availableWidth:S,availableHeight:E});let R=await i.getDimensions(o.floating);return m!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}).name,fn:S.fn,options:[m,void 0]},(g=e=>({element:ep.current||(0,b.ownerDocument)(e.elements.floating).createElement("div"),padding:_,offsetParent:"floating"}),h=[_],{...{name:"arrow",options:g,async fn(e){let{x:t,y:r,placement:n,rects:l,platform:i,elements:o,middlewareData:a}=e,{element:s,padding:u=0,offsetParent:c="real"}=tf(g,e)||{};if(null==s)return{};let d=tI(u),f={x:t,y:r},m=tv(n),p=th(m),h=await i.getDimensions(s),b="y"===m,v=b?"clientHeight":"clientWidth",y=l.reference[p]+l.reference[m]-f[m]-l.floating[p],x=f[m]-l.reference[m],w="real"===c?await i.getOffsetParent?.(s):o.floating,E=o.floating[v]||l.floating[p];E&&await i.isElement?.(w)||(E=o.floating[v]||l.floating[p]);let S=E/2-h[p]/2-1,R=Math.min(d[b?"top":"left"],S),C=Math.min(d[b?"bottom":"right"],S),M=E-h[p]-C,O=E/2-h[p]/2+(y/2-x/2),I=td(R,O,M),A=!a.arrow&&null!=tp(n)&&O!==I&&l.reference[p]/2-(O<R?R:C)-h[p]/2<0,k=A?O<R?O-R:O-M:0;return{[m]:f[m]+k,data:{[m]:I,centerOffset:O-I-k,...A&&{alignmentOffset:k}},reset:A}}},options:[g,h]}),{name:"transformOrigin",fn(e){let{elements:t,middlewareData:r,placement:n,rects:l,y:i}=e,o=tm(n),a=tb(o),s=ep.current,u=r.arrow?.x||0,c=r.arrow?.y||0,d=s?.clientWidth||0,f=s?.clientHeight||0,m=u+d/2,p=c+f/2,g=Math.abs(r.shift?.y||0),h=l.reference.height/2,b="function"==typeof O?O(re(e,M,ei)):O,v=g>b,y={top:`${m}px calc(100% + ${b}px)`,bottom:`${m}px ${-b}px`,left:`calc(100% + ${b}px) ${p}px`,right:`${-b}px ${p}px`}[o],x=`${m}px ${l.reference.y+h-i}px`;return t.floating.style.setProperty("--transform-origin",ey&&"y"===a&&v?x:y),{}}},t4,z),(0,x.useIsoLayoutEffect)(()=>{!H&&V&&V.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[H,V]);let eE=l.useMemo(()=>({elementResize:!N&&"u">typeof ResizeObserver,layoutShift:!N&&"u">typeof IntersectionObserver}),[N]),{refs:eS,elements:eR,x:eC,y:eM,middlewareData:eO,update:eI,placement:eA,context:ek,isPositioned:eT,floatingStyles:eP}=t({rootContext:V,open:F?H:void 0,placement:ea,middleware:eb,strategy:C,whileElementsMounted:F?void 0:(...e)=>tJ(...e,eE),nodeId:$,externalTree:Y}),{sideX:ej,sideY:eL}=eO.adaptiveOrigin||t6,e_=eT?C:"fixed",eN=l.useMemo(()=>{let e;return(e=eT?z?{position:e_,[ej]:eC,[eL]:eM}:{...eP,position:e_}:{position:e_,top:0,left:0})[t3]="100vw",e[t8]="100vh",eT||(e.opacity=0),e},[z,e_,ej,eC,eL,eM,eP,eT]),eD=l.useRef(null);(0,x.useIsoLayoutEffect)(()=>
11{if(!H)return;let e=en.current,t="function"==typeof e?e():e,r=(rn(t)?t.current:t)||null;r!==eD.current&&(eS.setPositionReference(r),eD.current=r)},[H,eS,er,en]),l.useEffect(()=>{if(!H)return;let e=en.current;"function"!=typeof e&&rn(e)&&e.current!==eD.current&&(eS.setPositionReference(e.current),eD.current=e.current)},[H,eS,er,en]),l.useEffect(()=>{if(F&&H&&eR.reference&&eR.floating)return tJ(eR.reference,eR.floating,eI,eE)},[F,H,eR,eI,eE]);let eF=tm(eA),eV=t7(M,eF,ei),eH=tp(eA)||"center",eW=!!eO.hide?.referenceHidden;(0,x.useIsoLayoutEffect)(()=>{U&&H&&eT&&eF!==eo&&q(eF)},[U,H,eT,eF,eo]);let eB=l.useMemo(()=>({position:"absolute",top:eO.arrow?.y,left:eO.arrow?.x}),[eO.arrow]),e$=eO.arrow?.centerOffset!==0;return l.useMemo(()=>({positionerStyles:eN,arrowStyles:eB,arrowRef:ep,arrowUncentered:e$,side:eV,align:eH,physicalSide:eF,anchorHidden:eW,refs:eS,context:ek,isPositioned:eT,update:eI}),[eN,eB,ep,e$,eV,eH,eF,eW,eS,ek,eT,eI])}function rn(e){return null!=e&&"current"in e}e.s(["useAnchorPositioning",0,rt,"useAnchorPositioningWithHook",0,rr],78754);let rl=l.createContext(void 0);function ri(){let e=l.useContext(rl);if(!e)throw Error((0,n.default)(59));return e}var ro=e.i(67992),ra=e.i(34541);function rs(e,t){e&&Object.assign(e.style,t)}let ru={position:"relative",maxHeight:"100%",overflowX:"hidden",overflowY:"auto"};function rc(e){return"starting"===e?ra.DISABLED_TRANSITIONS_STYLE:i.EMPTY_OBJECT}function rd(e,t,{styles:r,transitionStatus:n,props:l,refs:i,hidden:o,inert:a=!1}){let s={...r};return a&&(s.pointerEvents="none"),(0,eJ.useRenderElement)("div",e,{state:t,ref:i,props:[{role:"presentation",hidden:o,style:s},rc(n),l],stateAttributesMapping:eQ.popupStateMapping})}e.s(["getDisabledMountTransitionStyles",0,rc],45938),e.s(["usePositioner",0,rd],49910);var rf=e.i(87252);let rm={position:"fixed"},rp=l.forwardRef(function(e,t){let{anchor:r,className:n,render:i,positionMethod:o,side:a,align:s,sideOffset:u,alignOffset:c,collisionBoundary:d="clipping-ancestors",collisionPadding:f,arrowPadding:m,sticky:p,disableAnchorTracking:g,alignItemWithTrigger:h=!0,collisionAvoidance:y=ra.DROPDOWN_COLLISION_AVOIDANCE,style:w,...E}=e,{store:S,listRef:R,labelsRef:C,alignItemWithTriggerActiveRef:M,selectedItemTextRef:O,valuesRef:I,initialValueRef:A,popupRef:T,setValue:P,floatingContext:j}=ei(),L=(0,_.useStore)(S,eS),N=(0,_.useStore)(S,eR),D=(0,_.useStore)(S,eh),F=(0,_.useStore)(S,ex),V=(0,_.useStore)(S,eO),H=(0,_.useStore)(S,eN),W=(0,_.useStore)(S,e_),B=(0,_.useStore)(S,ey),$=(0,_.useStore)(S,eM),z=l.useRef(null),U=l.useRef(null),[q,K]=l.useState(h),J=N&&q&&"touch"!==V;N||q===h||K(h),l.useImperativeHandle(M,()=>J),function(e,t,r,n){let[i,o]=l.useState(!1);(0,x.useIsoLayoutEffect)(()=>{if(!e||!t||null==r)return void o(!1);let n=(0,b.ownerDocument)(r).documentElement.clientWidth,l=r.offsetWidth;o(n>0&&l>0&&l>=n-20)},[e,t,r]),(0,rf.useScrollLock)(e&&(!t||i),n)}((J||D)&&L,"touch"===V,H,W);let X=rt({anchor:r,floatingRootContext:j,positionMethod:o,mounted:N,side:a,sideOffset:u,align:s,alignOffset:c,arrowPadding:m,collisionBoundary:d,collisionPadding:f,sticky:p,disableAnchorTracking:g??J,collisionAvoidance:y,keepMounted:!0}),Q=J?"none":X.side,Z=J?rm:X.positionerStyles,ee={open:L,side:Q,align:X.align,anchorHidden:X.anchorHidden};(0,x.useIsoLayoutEffect)(()=>{S.set("popupSide",X.side)},[S,X.side]);let et=rd(e,ee,{styles:Z,transitionStatus:$,props:E,refs:[t,S.useStateSetter("positionerElement")],hidden:!N,inert:!L}),er=l.useRef(0),en=(0,v.useStableCallback)(e=>{if(0===I.current.length)return;let t=er.current;if(er.current=e.size,e.size===t)return;let r=(0,Y.createChangeEventDetails)(G.REASONS.none);if(0!==t&&!S.state.multiple&&null!==F&&-1===eu(I.current,F,B)){let e=A.current,t=null!=e&&-1!==eu(I.current,e,B)?e:null;P(t,r),null===t&&(S.set("selectedIndex",null),O.current=null)}if(0!==t&&S.state.multiple&&Array.isArray(F)){let e=F.filter(e=>-1!==eu(I.current,e,B));e.length!==F.length&&(P(e,r),0===e.length&&(S.set("selectedIndex",null),O.current=null))}if(L&&J){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:""};rs(H,e),rs(T.current,e)}}),el=l.useMemo(()=>
11({...X,side:Q,alignItemWithTriggerActive:J,setControlledAlignItemWithTrigger:K,scrollUpArrowRef:z,scrollDownArrowRef:U}),[X,Q,J,K]);return(0,k.jsx)(tr.CompositeList,{elementsRef:R,labelsRef:C,onMapChange:en,children:(0,k.jsxs)(rl.Provider,{value:el,children:[N&&D&&(0,k.jsx)(ro.InternalBackdrop,{inert:(0,tt.inertValue)(!L),cutout:W}),et]})})});var rg=e.i(78645),rh=e.i(85637);let rb="base-ui-disable-scrollbar",rv=l.createContext(void 0);var ry=e.i(21064);let rx=l.createContext(void 0),rw={disableStyleElements:!1},rE={...eQ.popupStateMapping,...e8.transitionStatusMapping},rS=l.forwardRef(function(e,t){let r,{render:i,className:o,style:a,finalFocus:s,...u}=e,{store:c,popupRef:d,onOpenChangeComplete:f,setOpen:m,valueRef:p,firstItemTextRef:g,selectedItemTextRef:h,multiple:y,handleScrollArrowVisibility:w,scrollHandlerRef:E,listRef:S,highlightItemOnHover:R,floatingContext:C}=ei(),{side:M,align:O,alignItemWithTriggerActive:I,isPositioned:T,setControlledAlignItemWithTrigger:P}=ri(),j=null!=function(e){let t=l.useContext(rv);if(void 0===t&&!e)throw Error((0,n.default)(69));return t}(!0),L=A(),{nonce:N,disableStyleElements:D}=l.useContext(rx)??rw,F=(0,_.useStore)(c,ep),V=(0,_.useStore)(c,eS),H=(0,_.useStore)(c,eO),W=(0,_.useStore)(c,eR),B=(0,_.useStore)(c,ej),$=(0,_.useStore)(c,eM),q=(0,_.useStore)(c,e_),K=(0,_.useStore)(c,eN),J=(0,_.useStore)(c,eD),X=l.useRef(!1),Q=l.useRef(!1),Z=l.useRef({}),ee=(0,z.useAnimationFrame)(),et=(0,v.useStableCallback)(e=>{var t;if(!K||!d.current||!Q.current)return;let r="0px"===K.style.top,n="0px"===K.style.bottom;if(X.current||!I||!r&&!n)return void w(e);let l=rM(K),i=(t=K.getBoundingClientRect().height,t/l.y),o=(0,b.ownerDocument)(K),a=(0,eZ.ownerWindow)(K),s=a.getComputedStyle(K),u=parseFloat(s.marginTop),c=parseFloat(s.marginBottom),f=rR(a.getComputedStyle(d.current)),m=Math.min(o.documentElement.clientHeight-u-c,f),p=e.scrollTop,g=rC(e),h=null,v=e=>{K.style.height=`${e}px`},y=r?g-p:p,x=Math.min(i+y,m);if(y<=1){let t=eU(y,0,m-i);t>0&&v(i+t),e.scrollTop=r?g:0,m-(i+t)<=1&&(X.current=!0),w(e);return}if(m-x>1)h=r?1/0:0;else if(n&&p<g){let e=i+y-m;h=p-(y-e)}let E=Math.ceil(x);if(0!==E&&v(E),null!=h){let t=eU(h,0,rC(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}E>=m-1&&(X.current=!0),w(e)});l.useImperativeHandle(E,()=>et,[et]),(0,eB.useOpenChangeComplete)({open:V,ref:d,onComplete(){V&&f?.(!0)}}),(0,x.useIsoLayoutEffect)(()=>{K&&d.current&&!Object.keys(Z.current).length&&(Z.current={top:K.style.top||"0",left:K.style.left||"0",right:K.style.right,height:K.style.height,bottom:K.style.bottom,minHeight:K.style.minHeight,maxHeight:K.style.maxHeight,marginTop:K.style.marginTop,marginBottom:K.style.marginBottom})},[d,K]),(0,x.useIsoLayoutEffect)(()=>{V||I||(Q.current=!1,X.current=!1,rs(K,Z.current))},[V,I,K,d]),(0,x.useIsoLayoutEffect)(()=>{let e=d.current;if(!V||!q||!K||!e||I&&!T||"ending"===c.state.transitionStatus)return;if(Q.current=!0,e.style.removeProperty("--transform-origin"),!I)return void ee.request(()=>w(J||e));let t=function(e){let{style:t}=e,r={};for(let[e,n]of rI)r[e]=t.getPropertyValue(e),t.setProperty(e,n,"important");return()=>{for(let[e]of rI){let n=r[e];n?t.setProperty(e,n):t.removeProperty(e)}}}(e);try{let t,r=h.current;r?.isConnected||(r=!ew(c.state)&&g.current?.isConnected?g.current:null);let n=p.current,l=(0,eZ.ownerWindow)(K),i=l.getComputedStyle(K),o=l.getComputedStyle(e),a=(0,b.ownerDocument)(q),s=rM(q),u=rO(q.getBoundingClientRect(),s),d=rO(K.getBoundingClientRect(),s),f=u.height,m=J||e,v=m.scrollHeight,y=parseFloat(o.borderBottomWidth),x=parseFloat(i.marginTop)||10,E=parseFloat(i.marginBottom)||10,C=parseFloat(i.minHeight)||100,M=rR(o),O=a.documentElement.clientHeight-x-E,I=a.documentElement.clientWidth,A=O-u.bottom+f,k="rtl"===L?u.right-d.width:u.left,T=0;if(r&&n){let e=rO(n.getBoundingClientRect(),s);t=rO(r.getBoundingClientRect(),s),k=d.left+("rtl"===L?e.right-t.right:e.left-t.left);let l=e.top-u.top+e.height/2;T=t.top-d.top+t.height/2-l}let j=A+T+E+y,_=Math.min(O,j),N=O-x-E,D=j-_;K.style.left=`${eU(k,5,I-5-d.width)}px`,K.style.height=`${_}px`,K.style.maxHeight="none",K.style.marginTop=`${x}px`,K.style.marginBottom=`${E}px`,e.style.height="100%";let F=rC(m),V=D>=F-1;V&&(_=Math.min(O,d.height)-(D-F));let H=u.top<20||u.bottom>
11O-20||Math.ceil(_)+1<Math.min(v,C),W=(l.visualViewport?.scale??1)!==1&&U.platform.engine.webkit;if(H||W){rs(K,Z.current),P(!1);return}let B=Math.max(C,_);if(V){let e=Math.max(0,O-j);K.style.top=d.height>=N?"0":`${e}px`,K.style.height=`${_}px`,m.scrollTop=rC(m)}else K.style.bottom="0",m.scrollTop=D;if(t){let r=d.top,n=d.height,l=t.top+t.height/2,i=eU(n>0?(l-r)/n*100:50,0,100);e.style.setProperty("--transform-origin",`50% ${i}%`)}(B===O||_>=M)&&(X.current=!0),w(m),R&&null===c.state.selectedIndex&&null===c.state.activeIndex&&null!=S.current[0]&&c.set("activeIndex",0)}finally{t()}},[c,V,K,q,p,g,h,d,w,I,P,ee,J,S,R,L,T]),l.useEffect(()=>{if(!I||!K||!V)return;let e=(0,eZ.ownerWindow)(K);return(0,rg.addEventListener)(e,"resize",function(e){m(!1,(0,Y.createChangeEventDetails)(G.REASONS.windowResize,e))})},[m,I,K,V]);let er={...J?{role:"presentation","aria-orientation":void 0}:{role:"listbox","aria-multiselectable":y||void 0,id:`${F}-list`},onKeyDown(e){j&&ry.COMPOSITE_KEYS.has(e.key)&&e.stopPropagation()},onScroll(e){J||et(e.currentTarget)},...I&&{style:J?{height:"100%"}:ru},className:!J&&I?rb:void 0},en=(0,eJ.useRenderElement)("div",e,{ref:[t,d],state:{open:V,transitionStatus:$,side:M,align:O},stateAttributesMapping:rE,props:[B,er,rc($),u]});return(0,k.jsxs)(l.Fragment,{children:[!D&&(r=N,(0,k.jsx)("style",{nonce:r,href:rb,precedence:"base-ui:low",children:`.${rb}{scrollbar-width:none}.${rb}::-webkit-scrollbar{display:none}`})),(0,k.jsx)(rh.FloatingFocusManager,{context:C,modal:!1,disabled:!W,openInteractionType:H,returnFocus:s,restoreFocus:!0,children:en})]})});function rR(e){let t=e.maxHeight;return t.endsWith("px")&&parseFloat(t)||1/0}function rC(e){return eY(e.scrollHeight,e.clientHeight)}function rM(e){return tq.getScale(e)}function rO(e,t){return tA({x:e.x/t.x,y:e.y/t.y,width:e.width/t.x,height:e.height/t.y})}let rI=[["transform","none"],["scale","1"],["translate","0 0"]],rA=l.forwardRef(function(e,t){let{render:r,className:n,style:l,...i}=e,{store:o,scrollHandlerRef:a,multiple:s}=ei(),{alignItemWithTriggerActive:u}=ri(),c=(0,_.useStore)(o,eW),d=(0,_.useStore)(o,eO),f=(0,_.useStore)(o,ep),m={id:`${f}-list`,role:"listbox","aria-multiselectable":s||void 0,onScroll(e){a.current?.(e.currentTarget)},...u&&{style:ru},className:c&&"touch"!==d?rb:void 0},p=o.useStateSetter("listElement");return(0,eJ.useRenderElement)("div",e,{ref:[t,p],props:[m,i]})});var rk=e.i(36505);let rT=l.createContext(void 0);function rP(){let e=l.useContext(rT);if(!e)throw Error((0,n.default)(57));return e}let rj=l.memo(l.forwardRef(function(e,t){let{render:r,className:n,style:i,value:o=null,label:a,disabled:s=!1,nativeButton:u=!1,...c}=e,d=l.useRef(null),f=(0,rk.useCompositeListItem)({guess:!0,label:a,textRef:d}),{store:m,itemProps:p,setOpen:g,setValue:h,selectionRef:b,typingRef:v,valuesRef:y,multiple:w,selectedItemTextRef:E,disabled:S,readOnly:R}=ei(),C=S||s,M=(0,_.useStore)(m,ek,f.index),O=(0,_.useStore)(m,eS),I=(0,_.useStore)(m,eT,o),A=(0,_.useStore)(m,eP,f.index),T=(0,_.useStore)(m,ey),P=f.index,j=l.useRef(null);(0,x.useIsoLayoutEffect)(()=>{let e=y.current;return e[P]=o,()=>{delete e[P]}},[P,o,y]),(0,x.useIsoLayoutEffect)(()=>{let e=m.state.value,t=e;w&&Array.isArray(e)&&(t=e.length>0?e[e.length-1]:void 0),void 0!==t&&es(o,t,T)&&(m.set("selectedIndex",P),d.current&&(E.current=d.current))},[P,w,T,m,o,E]);let L=l.useRef("mouse"),N=l.useRef(!1),{getButtonProps:D,buttonRef:F}=(0,e0.useButton)({disabled:C,focusableWhenDisabled:!0,native:u,composite:!0});function V(){b.current.dragY=0}let H=(0,eJ.useRenderElement)("div",e,{ref:[F,t,f.ref,j],state:{disabled:C,selected:I,highlighted:M},props:[p,{role:"option","aria-selected":I,tabIndex:O&&M?0:-1,onKeyDown(e){m.set("activeIndex",P)," "===e.key&&v.current&&e.preventDefault()},onClick(e){let t="touch"!==L.current,r=e.nativeEvent.pointerType,n=t&&(0,Q.isVirtualClick)(e.nativeEvent)&&(void 0!==r||M),l=t&&!n&&!N.current;N.current=!1,C||l||function(e){if(S||R)return;let t=m.state.value;if(w){let r=Array.isArray(t)?t:[];h(I?r.filter(e=>!es(o,e,T)):[...r,o],(0,Y.createChangeEventDetails)(G.REASONS.itemPress,e))}else h(o,(0,Y.createChangeEventDetails)(G.REASONS.itemPress,e)),g(!1,(0,Y.createChangeEventDetails)(G.REASONS.itemPress,e))}(e.nativeEvent)},onPointerEnter(e){L.current=e.pointerType},onPointerMove(e){if("mouse"===e.pointerType&&1===e.buttons){let t=b.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){L.current=e.pointerType,N.current=!0,V()},onMouseUp(){if(V(),C||"touch"===L.current||N.current)return;let e=!b.current.allowSelectedMouseUp&&I,t=!b.current.allowUnselectedMouseUp&&!I;e||t||(N.current=!0,j.current?.click(),N.current=!1)}},c,D]}),W=l.useMemo(()=>({selected:I,index:P,textRef:d,selectedByFocus:A}),[I,P,d,A]);return(0,k.jsx)(rT.Provider,{value:W,children:H})})),rL=l.forwardRef(function(e,t){let{selected:r}=rP();return e.keepMounted||r?(0,k.jsx)(r_,{...e,ref:t}):null}),r_=l.memo(l.forwardRef((e,t)=>
11{let{render:r,className:n,style:i,keepMounted:o,...a}=e,{selected:s}=rP(),u=l.useRef(null),{transitionStatus:c,setMounted:d}=(0,eo.useTransitionStatus)(s),f=(0,eJ.useRenderElement)("span",e,{ref:[t,u],state:{selected:s,transitionStatus:c},props:[{"aria-hidden":!0,children:"âï¸"},a],stateAttributesMapping:e8.transitionStatusMapping});return(0,eB.useOpenChangeComplete)({open:s,ref:u,onComplete(){s||d(!1)}}),f})),rN=l.memo(l.forwardRef(function(e,t){let{index:r,textRef:n,selectedByFocus:i}=rP(),{firstItemTextRef:o,selectedItemTextRef:a}=ei(),{render:s,className:u,style:c,...d}=e,f=l.useCallback(e=>{e&&(0===r&&(o.current=e),i&&(a.current=e))},[o,a,r,i]);return(0,eJ.useRenderElement)("div",e,{ref:[f,t,n],props:d})})),rD=l.forwardRef(function(e,t){let{render:r,className:n,style:l,...i}=e,{store:o}=ei(),{side:a,align:s,arrowRef:u,arrowStyles:c,arrowUncentered:d,alignItemWithTriggerActive:f}=ri(),m=(0,_.useStore)(o,eS),p=(0,eJ.useRenderElement)("div",e,{state:{open:m,side:a,align:s,uncentered:d},ref:[u,t],props:[{style:c,"aria-hidden":!0},i],stateAttributesMapping:eQ.popupTransitionStateMapping});return f?null:p}),rF=l.forwardRef(function(e,t){let{render:r,className:n,style:l,direction:i,keepMounted:o,...a}=e,s="up"===i,{store:u,popupRef:c,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:m}=ei(),{side:p,scrollDownArrowRef:g,scrollUpArrowRef:h}=ri(),b=(0,_.useStore)(u,s?eV:eH),v=(0,_.useStore)(u,eO),y=b&&"touch"!==v,w=(0,en.useTimeout)(),E=s?h:g,{mounted:S,transitionStatus:R,setMounted:C}=(0,eo.useTransitionStatus)(y);(0,x.useIsoLayoutEffect)(()=>(m.current+=1,u.set("hasScrollArrows",!0),()=>{m.current=Math.max(0,m.current-1),0===m.current&&u.set("hasScrollArrows",!1)}),[u,m]),(0,eB.useOpenChangeComplete)({open:y,ref:E,onComplete(){y||C(!1)}});let M=(0,eJ.useRenderElement)("div",e,{ref:[t,E],state:{direction:i,visible:y,side:p,transitionStatus:R},props:[{"aria-hidden":!0,children:s?"â²":"â¼",style:{position:"absolute"},onMouseMove(e){0===e.movementX&&0===e.movementY||w.isStarted()||(u.set("activeIndex",null),w.start(40,function e(){let t=u.state.listElement??c.current;if(!t)return;u.set("activeIndex",null),f(t);let r=eY(t.scrollHeight,t.clientHeight),n=eG(t.scrollTop,r),l=n===(s?0:r),i=d.current;if(n!==t.scrollTop&&(t.scrollTop=n),l)return void w.clear();if(i.length>0){let e=E.current?.offsetHeight||0;t.scrollTop=function(e,t,r,n,l,i){if(t){let t=0,n=r+l-1;for(let r=0;r<e.length;r+=1){let l=e[r];if(l&&l.offsetTop>=n){t=r;break}}let o=Math.max(0,t-1),a=e[o];return o<t&&a?eG(a.offsetTop-l,i):0}let o=e.length-1,a=r+n-l+1;for(let t=0;t<e.length;t+=1){let r=e[t];if(r&&r.offsetTop+r.offsetHeight>a){o=Math.max(0,t-1);break}}let s=Math.min(e.length-1,o+1),u=e[s];return s>o&&u?eG(u.offsetTop+u.offsetHeight-n+l,i):i}(i,s,n,t.clientHeight,e,r)}w.start(40,e)}))},onMouseLeave(){w.clear()}},a],stateAttributesMapping:e8.transitionStatusMapping});return S||o?M:null}),rV=l.forwardRef(function(e,t){return(0,k.jsx)(rF,{...e,ref:t,direction:"down"})}),rH=l.forwardRef(function(e,t){return(0,k.jsx)(rF,{...e,ref:t,direction:"up"})}),rW=l.createContext(void 0),rB=l.forwardRef(function(e,t){let{render:r,className:n,style:i,...o}=e,[a,s]=l.useState(),u=l.useMemo(()=>({labelId:a,setLabelId:s}),[a,s]),c=(0,eJ.useRenderElement)("div",e,{ref:t,props:[{role:"group","aria-labelledby":a},o]});return(0,k.jsx)(rW.Provider,{value:u,children:c})}),r$=l.forwardRef(function(e,t){let{render:r,className:i,style:o,id:a,...s}=e,{setLabelId:u}=function(){let e=l.useContext(rW);if(void 0===e)throw Error((0,n.default)(56));return e}(),c=(0,w.useBaseUiId)(a);return(0,x.useIsoLayoutEffect)(()=>(u(c),()=>{u(e=>e===c?void 0:e)}),[c,u]),(0,eJ.useRenderElement)("div",e,{ref:t,props:[{id:c},s]})}),rz=l.forwardRef(function(e,t){let{className:r,render:n,orientation:l="horizontal",style:i,...o}=e;return(0,eJ.useRenderElement)("div",e,{state:{orientation:l},ref:t,props:[{role:"presentation"},o]})});e.s(["Arrow",0,rD,"Backdrop",0,te,"Group",0,rB,"GroupLabel",0,r$,"Icon",0,e4,"Item",0,rj,"ItemIndicator",0,rL,"ItemText",0,rN,"Label",0,eX,"List",0,rA,"Popup",0,rS,"Portal",0,e3,"Positioner",0,rp,"Root",0,function(e){let t,{id:r,value:n,defaultValue:o=null,onValueChange:a,open:s,defaultOpen:u=!1,onOpenChange:c,name:f,form:p,autoComplete:g,disabled:w=!1,readOnly:E=!1,required:M=!1,modal:I=!0,actionsRef:A,inputRef:V,onOpenChangeComplete:H,items:B,multiple:U=!1,itemToStringLabel:ei,itemToStringValue:ec,isItemEqualToValue:em=ea,highlightItemOnHover:ep=!0,children:eg}=e,{clearErrors:eh}=m(),{setDirty:eb,setTouched:ev,setFocused:ey,validityData:ex,setFilled:ew,name:eE,disabled:eS,validation:eR,validationMode:eC}=d(),eM=C({id:r}),eO=eS||w,ek=eE??f,[eT,eP]=(0,j.useControlled)({controlled:n,default:U?o??i.EMPTY_ARRAY:o,name:"Select",state:"value"}),[ej,eL]=(0,j.useControlled)({controlled:s,default:u,name:"Select",state:"open"}),eD=l.useRef([]),eF=l.useRef([]),eV=l.useRef(null),eH=l.useRef(null),eW=l.useRef(0),eU=l.useRef(null),eJ=l.useRef([]),eX=l.useRef(!1),eQ=l.useRef(null),eZ=l.useRef(null),e0=l.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),e1=l.useRef(!1),{mounted:e2,setMounted:e9,transitionStatus:e5}=(0,eo.useTransitionStatus)(ej),{openMethod:e4,triggerProps:e6}=(0,ez.useOpenInteractionType)(ej),e3=(0,S.useRefWithInit)(()=>new N.ReactStore({id:eM,labelId:void 0,modal:I,multiple:U,itemToStringLabel:ei,itemToStringValue:ec,isItemEqualToValue:em,value:eT,open:ej,mounted:e2,transitionStatus:e5,items:B,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,e8=(0,_.useStore)(e3,eI),e7=(0,_.useStore)(e3,eA),te=(0,_.useStore)(e3,e_),tt=(0,_.useStore)(e3,eN),tr=function(e){let[t,r]=l.useState({current:e,previous:null});return Object.is(e,t.current)||r({current:e,previous:t.current}),t.previous}(e4),tn=e4??tr,tl=l.useMemo(()=>U?"":ef(eT,ec),[U,eT,ec]),ti=l.useMemo(()=>U&&Array.isArray(eT)?eT.map(e=>ef(e,ec)):ef(eT,ec),[U,eT,ec]);R((0,L.useValueAsRef)(te),eM,eT,(0,v.useStableCallback)(()=>ti),!eO,f);let to=l.useRef(eT),ta=U?Array.isArray(eT)&&eT.length>0:null!=eT&&""!==tl;(0,x.useIsoLayoutEffect)(()=>{ew(ta)},[ta,ew]),(0,x.useIsoLayoutEffect)(function(){let e=eT,t=!1;if(U){let r=Array.isArray(eT)?eT:[];t=0===r.length,e=r[r.length-1]}let r=t?-1:eu(eJ.current,e,em),n=-1===r?null:r;null===n&&(eZ.current=null),ej||e3.set("selectedIndex",n)},[U,ej,eT,em,e3]),(0,e$.useValueChanged)(eT,()=>{let e;eh(ek),eb((e=ex.initialValue,Array.isArray(eT)&&Array.isArray(e)?!function(e,t,r=(e,t)=>e===t){return e.length===t.length&&e.every((e,n)=>r(e,t[n]))}(eT,e,(e,t)=>es(e,t,em)):eT!==e)),eR.change(eT)});let ts=(0,v.useStableCallback)((e,t)=>
11{c?.(e,t),!t.isCanceled&&(eL(e),e||t.reason!==G.REASONS.focusOut&&t.reason!==G.REASONS.outsidePress||(ev(!0),ey(!1),"onBlur"===eC&&eR.commit(eT)))}),tu=(0,v.useStableCallback)(()=>{e9(!1),e3.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),H?.(!1)});(0,eB.useOpenChangeComplete)({enabled:!A,open:ej,ref:eV,onComplete(){ej||tu()}}),l.useImperativeHandle(A,()=>({unmount:tu}),[tu]);let tc=(0,v.useStableCallback)((e,t)=>{a?.(e,t),t.isCanceled||eP(e)}),td=(0,v.useStableCallback)(e=>{let t=eY(e.scrollHeight,e.clientHeight),r=eG(e.scrollTop,t);e3.set("scrollUpArrowVisible",r>0),e3.set("scrollDownArrowVisible",r<t)}),tf=$({open:ej,onOpenChange:ts,elements:{reference:te,floating:tt}}),tm=(0,D.useClick)(tf,{enabled:!E&&!eO,event:"mousedown"}),tp=(0,F.useDismiss)(tf),tg=function(e,t){let{listRef:r,activeIndex:n,onNavigate:i=()=>{},enabled:o=!0,selectedIndex:a=null,allowEscape:s=!1,loopFocus:u=!1,nested:c=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:m="auto",focusItemOnHover:p=!0,openOnArrowKeyDown:g=!0,disabledIndices:w,orientation:E="vertical",parentOrientation:S,id:R,resetOnPointerLeave:C=!0,externalTree:M,grid:O}=t,I=null!=O,A="rootStore"in e?e.rootStore:e,k=A.useState("open"),T=A.useState("floatingElement"),P=A.useState("domReferenceElement"),j=A.context.dataRef,_=(0,J.getFloatingFocusElement)(T),N=(0,J.isTypeableCombobox)(P),D=(0,L.useValueAsRef)(_),F=(0,W.useFloatingParentNodeId)(),V=(0,W.useFloatingTree)(M),H=l.useRef(m),B=l.useRef(a??-1),$=l.useRef(null),U=l.useRef(!0),en=(0,v.useStableCallback)(e=>{i(-1===B.current?null:B.current,e)}),el=l.useRef(!!T),ei=l.useRef(k),eo=l.useRef(!1),ea=l.useRef(!1),es=l.useRef(null),eu=(0,L.useValueAsRef)(w),ec=(0,L.useValueAsRef)(k),ed=(0,L.useValueAsRef)(a),ef=(0,L.useValueAsRef)(C),em=(0,z.useAnimationFrame)(),ep=(0,z.useAnimationFrame)(),eg=(0,v.useStableCallback)(()=>{function e(e){f?V?.events.emit("virtualfocus",e):es.current=(0,X.enqueueFocus)(e,{sync:eo.current,preventScroll:!0})}let t=r.current[B.current],n=ea.current;t&&e(t),(eo.current?e=>e():e=>em.request(e))(()=>{let l=r.current[B.current]||t;!l||(t||e(l),ew&&(n||!U.current)&&l.scrollIntoView?.({block:"nearest",inline:"nearest"}))})});(0,x.useIsoLayoutEffect)(()=>{j.current.orientation=E},[j,E]),(0,x.useIsoLayoutEffect)(()=>{o&&(k&&T?(B.current=a??-1,H.current&&null!=a&&(ea.current=!0,en())):el.current&&(B.current=-1,en()))},[o,k,T,a,en]),(0,x.useIsoLayoutEffect)(()=>{if(o){if(!k){eo.current=!1;return}if(T)if(null==n){if(eo.current=!1,null!=ed.current)return;if(el.current&&(B.current=-1,eg()),(!ei.current||!el.current)&&H.current&&(null!=$.current||!0===H.current&&null==$.current)){let e=0,t=()=>{null==r.current[0]?(e<2&&(e?e=>ep.request(e):queueMicrotask)(t),e+=1):(B.current=null==$.current||er($.current,E,d)||c?(0,q.getMinListIndex)(r):(0,q.getMaxListIndex)(r),$.current=null,en())};t()}}else(0,q.isIndexOutOfListBounds)(r.current,n)||(B.current=n,eg(),ea.current=!1)}},[o,k,T,n,ed,c,r,E,d,en,eg,ep]),(0,x.useIsoLayoutEffect)(()=>{if(!o||T||!V||f||!el.current)return;let e=V.nodesRef.current,t=e.find(e=>e.id===F)?.context?.elements.floating,r=(0,y.activeElement)((0,b.ownerDocument)(P??t??null)),n=e.some(e=>e.context&&(0,y.contains)(e.context.elements.floating,r));t&&!n&&U.current&&t.focus({preventScroll:!0})},[o,T,P,V,F,f]),(0,x.useIsoLayoutEffect)(()=>{ei.current=k,el.current=!!T}),(0,x.useIsoLayoutEffect)(()=>{k||($.current=null,H.current=m)},[k,m]);let eh=null!=n,eb=(0,v.useStableCallback)(e=>{if(!ec.current)return;let t=r.current.indexOf(e.currentTarget);-1!==t&&(B.current!==t||n!==t)&&(B.current=t,en(e))}),ev=(0,v.useStableCallback)(()=>S??V?.nodesRef.current.find(e=>e.id===F)?.context?.dataRef?.current.orientation),ey=(0,v.useStableCallback)(()=>(0,q.getMinListIndex)(r,eu.current)),ex=(0,v.useStableCallback)(e=>{var t;let n,l;if(U.current=!1,eo.current=!0,229===e.which||!ec.current&&e.currentTarget===D.current)return;if(c&&(t=e.key,n=d?t===K.ARROW_RIGHT:t===K.ARROW_LEFT,l=t===K.ARROW_UP,"both"===E||"horizontal"===E&&I?"Escape"===t:ee(E,n,l))){et(e.key,ev())||(0,Q.stopEvent)(e),A.setOpen(!1,(0,Y.createChangeEventDetails)(G.REASONS.listNavigation,e.nativeEvent)),(0,h.isHTMLElement)(P)&&(f?V?.events.emit("virtualfocus",P):P.focus());return}let i=B.current,o=(0,q.getMinListIndex)(r,w),a=(0,q.getMaxListIndex)(r,w);if(N||("Home"===e.key&&((0,Q.stopEvent)(e),B.current=o,en(e)),"End"===e.key&&((0,Q.stopEvent)(e),B.current=a,en(e))),null!=O){let t=O(e,B.current,r,E,u,d,w,o,a);if(null!=t&&(B.current=t,en(e)),"both"===E)return}
11if(et(e.key,E)){if((0,Q.stopEvent)(e),k&&!f&&(0,y.activeElement)(e.currentTarget.ownerDocument)===e.currentTarget){B.current=er(e.key,E,d)?o:a,en(e);return}er(e.key,E,d)?u?i>=a?s&&i!==r.current.length?B.current=-1:(eo.current=!1,B.current=o):B.current=(0,q.findNonDisabledListIndex)(r.current,{startingIndex:i,disabledIndices:w}):B.current=Math.min(a,(0,q.findNonDisabledListIndex)(r.current,{startingIndex:i,disabledIndices:w})):u?i<=o?s&&-1!==i?B.current=r.current.length:(eo.current=!1,B.current=a):B.current=(0,q.findNonDisabledListIndex)(r.current,{startingIndex:i,decrement:!0,disabledIndices:w}):B.current=Math.max(o,(0,q.findNonDisabledListIndex)(r.current,{startingIndex:i,decrement:!0,disabledIndices:w})),(0,q.isIndexOutOfListBounds)(r.current,B.current)&&(B.current=-1),en(e)}}),ew=l.useMemo(()=>({onFocus(e){eo.current=!0,eb(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){!Z(e)&&(eo.current=!0,ea.current=!1,p&&eb(e))},onPointerLeave(e){if(!ec.current||!U.current||"touch"===e.pointerType)return;eo.current=!0;let t=e.relatedTarget;if(!(!p||r.current.includes(t))&&ef.current&&(es.current?.(),es.current=null,B.current=-1,en(e),!f)){let e=D.current,t=(0,y.activeElement)((0,b.ownerDocument)(e));e&&(0,y.contains)(e,t)&&e.focus({preventScroll:!0})}}}),[eb,ec,D,p,r,en,ef,f]),eE=l.useMemo(()=>f&&k&&eh&&{"aria-activedescendant":`${R}-${n}`},[f,k,eh,R,n]),eS=l.useMemo(()=>({"aria-orientation":"both"===E?void 0:E,...!N?eE:{},onKeyDown(e){if("Tab"===e.key&&e.shiftKey&&k&&!f){let t=(0,y.getTarget)(e.nativeEvent);if(t&&!(0,y.contains)(D.current,t))return;(0,Q.stopEvent)(e),A.setOpen(!1,(0,Y.createChangeEventDetails)(G.REASONS.focusOut,e.nativeEvent)),(0,h.isHTMLElement)(P)&&P.focus();return}ex(e)},onPointerMove(e){Z(e)||(U.current=!0)}}),[eE,ex,D,E,N,A,k,f,P]),eR=l.useMemo(()=>{function e(e){A.setOpen(!0,(0,Y.createChangeEventDetails)(G.REASONS.listNavigation,e.nativeEvent,e.currentTarget))}function t(e){"auto"===m&&(0,Q.isVirtualClick)(e.nativeEvent)&&(H.current=!f)}function r(e){H.current=m,"auto"===m&&(0,Q.isVirtualPointerEvent)(e.nativeEvent)&&(H.current=!0)}return{onKeyDown(t){var r,n;let l=A.select("open");U.current=!1;let i=t.key.startsWith("Arrow"),o=(r=t.key,n=ev(),ee(n,d?r===K.ARROW_LEFT:r===K.ARROW_RIGHT,r===K.ARROW_DOWN)),a=et(t.key,E),s=(c?o:a)||"Enter"===t.key||""===t.key.trim();if(f&&l)return ex(t);if(l||g||!i){if(s){let e=et(t.key,ev());$.current=c&&e?null:t.key}if(c){o&&((0,Q.stopEvent)(t),l?(B.current=ey(),en(t)):e(t));return}a&&(null!=ed.current&&(B.current=ed.current),(0,Q.stopEvent)(t),!l&&g?e(t):ex(t),l&&en(t))}},onFocus(e){A.select("open")&&!f&&(B.current=-1,en(e))},onPointerDown:r,onPointerEnter:r,onMouseDown:t,onClick:t}},[ex,m,ey,c,en,A,g,E,ev,d,ed,f]),eC=l.useMemo(()=>({...eE,...eR}),[eE,eR]);return l.useMemo(()=>o?{reference:eC,floating:eS,item:ew,trigger:eR}:{},[o,eC,eS,eR,ew])}(tf,{enabled:!E&&!eO,listRef:eD,activeIndex:e8,selectedIndex:e7,disabledIndices:i.EMPTY_ARRAY,onNavigate(e){(null!==e||ej)&&e3.set("activeIndex",e)},focusItemOnHover:ep}),th=function(e,t){let{listRef:r,elementsRef:n,activeIndex:o,onMatch:a,disabledIndices:s,onTyping:u,enabled:c=!0,resetMs:d=750,selectedIndex:f=null}=t,m="rootStore"in e?e.rootStore:e,p=m.useState("open"),g=(0,en.useTimeout)(),h=l.useRef(""),b=l.useRef(f??o??-1),w=l.useRef(null),E=(0,v.useStableCallback)(e=>{function t(e){let t=n?.current[e];return!(t&&!(0,q.isElementVisible)(t)||t?.matches(":disabled"))&&(null==s||!(0,q.isListIndexDisabled)(i.EMPTY_ARRAY,e,s))}function l(e,r,n=0){if(0===e.length)return -1;let i=(n%e.length+e.length)%e.length,o=r.toLowerCase();for(let r=0;r<e.length;r+=1){let n=(i+r)%e.length,l=e[n];if(l?.toLowerCase().startsWith(o)&&t(n))return n}return -1}let c=r.current;if(h.current.length>0&&" "===e.key&&((0,Q.stopEvent)(e),u?.(!0)),h.current.length>0&&" "!==h.current[0]&&-1===l(c,h.current)&&" "!==e.key&&u?.(!1),null==c||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;p&&" "!==e.key&&((0,Q.stopEvent)(e),u?.(!0));let m=""===h.current;m&&(b.current=f??o??-1),c.every((e,r)=>!(e&&t(r))||e[0]?.toLowerCase()!==e[1]?.toLowerCase())&&h.current===e.key&&(h.current="",b.current=w.current),h.current+=e.key,g.start(d,()=>{h.current="",b.current=w.current,u?.(!1)});let v=m?f??o??-1:b.current,y=l(c,h.current,(v??0)+1);-1!==y?(a?.(y),w.current=y):" "!==e.key&&(h.current="",u?.(!1))}),S=(0,v.useStableCallback)(e=>{let t=e.relatedTarget,r=m.select("domReferenceElement"),n=m.select("floatingElement");(0,y.contains)(r,t)||(0,y.contains)(n,t)||(g.clear(),h.current="",b.current=w.current,u?.(!1))});(0,x.useIsoLayoutEffect)(()=>{(p||null===f)&&(g.clear(),w.current=null,""!==h.current&&(h.current=""))},[p,f,g]);let R=l.useMemo(()=>({onKeyDown:E,onBlur:S}),[E,S]);return l.useMemo(()=>c?{reference:R,floating:R}:{},[c,R])}(tf,{enabled:!E&&!eO&&(ej||!U),listRef:eF,activeIndex:e8,selectedIndex:e7,disabledIndices:e=>O(eD.current[e]),onMatch(e){ej?e3.set("activeIndex",e):tc(eJ.current[e],(0,Y.createChangeEventDetails)(G.REASONS.none))},onTyping(e){eX.current=e}}),tb=l.useMemo(()=>(0,eK.mergeProps)(th.reference,tg.reference,tp.reference,tm.reference,e6),[tm.reference,th.reference,tg.reference,tp.reference,e6]),tv=l.useMemo(()=>(0,eK.mergeProps)(eq.FOCUSABLE_POPUP_PROPS,th.floating,tg.floating,tp.floating),[th.floating,tg.floating,tp.floating]),ty=tg.item??i.EMPTY_OBJECT;(t=l.useRef(!0)).current&&(t.current=!1,(()=>{e3.update({popupProps:tv,triggerProps:tb})})()),e3.useSyncedValues({id:eM,modal:I,multiple:U,value:eT,open:ej,mounted:e2,transitionStatus:e5,popupProps:tv,triggerProps:tb,items:B,itemToStringLabel:ei,itemToStringValue:ec,isItemEqualToValue:em,openMethod:tn});let tx=l.useMemo(()=>({store:e3,floatingContext:tf,required:M,disabled:eO,readOnly:E,multiple:U,highlightItemOnHover:ep,setValue:tc,setOpen:ts,listRef:eD,popupRef:eV,scrollHandlerRef:eH,handleScrollArrowVisibility:td,scrollArrowsMountedCountRef:eW,itemProps:ty,valueRef:eU,valuesRef:eJ,labelsRef:eF,typingRef:eX,selectionRef:e0,firstItemTextRef:eQ,selectedItemTextRef:eZ,validation:eR,onOpenChangeComplete:H,alignItemWithTriggerActiveRef:e1,initialValueRef:to}),[e3,tf,M,eO,E,U,ep,tc,ts,ty,eR,H,td]),tw=(0,P.useMergedRefs)(V,eR.inputRef),tE=U?void 0:ek,tS=l.useMemo(()=>U&&Array.isArray(eT)&&ek?eT.map(e=>{let t=ef(e,ec);return(0,k.jsx)("input",{type:"hidden",form:p,name:ek,value:t,disabled:eO},t)}):null,[U,eT,p,ek,ec,eO]);return(0,k.jsxs)(el.Provider,{value:tx,children:[eg,(0,k.jsx)("input",{...eR.getValidationProps(eO,{onFocus(){e3.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||eO||E)return;let t=e.currentTarget.value,r=(0,Y.createChangeEventDetails)(G.REASONS.none,e.nativeEvent);e3.set("forceMount",!0),queueMicrotask(function(){if(U)return;let e=t.toLowerCase(),n=eJ.current.findIndex(t=>ef(t,ec).toLowerCase()===e||ed(t,ei).toLowerCase()===e);-1===n&&(n=eJ.current.findIndex((t,r)=>{let n=eF.current[r];return null!=n&&n.toLowerCase()===e}));let l=eJ.current[n];null!=l&&tc(l,r)})}}),id:eM&&null==tE?`${eM}-hidden-input`:void 0,form:p,name:tE,autoComplete:g,value:tl,disabled:eO,required:M&&!(U&&ta),readOnly:E,ref:tw,style:ek?T.visuallyHiddenInput:T.visuallyHidden,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),tS]})},"ScrollDownArrow",0,rV,"ScrollUpArrow",0,rH,"Separator",0,rz,"Trigger",0,e2,"Value",0,e5],26237);var rU=e.i(26237),rU=rU,rY=e.i(75157);let rG=(0,t.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDownIcon",0,rG],98464);let rq=(0,t.default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),rK=rU.Root;function rJ({className:e,...t}){return(0,k.jsx)(rU.ScrollUpArrow,{"data-slot":"select-scroll-up-button",className:(0,rY.cn)("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,k.jsx)(rq,{})})}function rX({className:e,...t}){return(0,k.jsx)(rU.ScrollDownArrow,{"data-slot":"select-scroll-down-button",className:(0,rY.cn)("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",e),...t,children:(0,k.jsx)(rG,{})})}e.s(["Select",0,rK,"SelectContent",0,function({className:e,children:t,side:r="bottom",sideOffset:n=4,align:l="center",alignOffset:i=0,alignItemWithTrigger:o=!0,...a}){return(0,k.jsx)(rU.Portal,{children:(0,k.jsx)(rU.Positioner,{side:r,sideOffset:n,align:l,alignOffset:i,alignItemWithTrigger:o,className:"isolate z-50",children:(0,k.jsxs)(rU.Popup,{"data-slot":"select-content","data-align-trigger":o,className:(0,rY.cn)("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground
11/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e),...a,children:[(0,k.jsx)(rJ,{}),(0,k.jsx)(rU.List,{children:t}),(0,k.jsx)(rX,{})]})})})},"SelectItem",0,function({className:e,children:t,...n}){return(0,k.jsxs)(rU.Item,{"data-slot":"select-item",className:(0,rY.cn)("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[(0,k.jsx)(rU.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:t}),(0,k.jsx)(rU.ItemIndicator,{render:(0,k.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:(0,k.jsx)(r,{className:"pointer-events-none"})})]})},"SelectTrigger",0,function({className:e,size:t="default",children:r,...n}){return(0,k.jsxs)(rU.Trigger,{"data-slot":"select-trigger","data-size":t,className:(0,rY.cn)("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...n,children:[r,(0,k.jsx)(rU.Icon,{render:(0,k.jsx)(rG,{className:"pointer-events-none size-4 text-muted-foreground"})})]})},"SelectValue",0,function({className:e,...t}){return(0,k.jsx)(rU.Value,{"data-slot":"select-value",className:(0,rY.cn)("flex flex-1 text-left",e),...t})}],67489)},60436,e=>{"use strict";var t=e.i(76922),r=e.i(69996);e.s(["default",0,function({locale:e,...n}){if(!e)throw Error(void 0);return(0,r.jsx)(t.IntlProvider,{locale:e,...n})}])},55826,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return i}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3813,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let i={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},s=/[&"'<>]/g;function u(e){return e.replace(o,e=>i[e])}function c(e){return e.replace(s,e=>a[e])}},10521,(e,t,r)=>{"use strict";
11Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},handleClientScriptLoad:function(){return b},initScriptLoader:function(){return v}};for(var l in n)Object.defineProperty(r,l,{enumerable:!0,get:n[l]});let i=e.r(81258),o=e.r(44066),a=e.r(69996),s=i._(e.r(92619)),u=o._(e.r(12814)),c=e.r(880),d=e.r(49239),f=e.r(55826),m=e.r(3813),p=new Map,g=new Set,h=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:l=null,dangerouslySetInnerHTML:i,children:o="",strategy:a="afterInteractive",onError:u,stylesheets:c}=e,f=r||t;if(f&&g.has(f))return;if(p.has(t)){g.add(f),p.get(t).then(n,u);return}let m=()=>{l&&l(),g.add(f)},h=document.createElement("script"),b=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});i?(h.innerHTML=i.__html||"",m()):o?(h.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(h.src=t,p.set(t,b)),(0,d.setAttributesFromProps)(h,e),"worker"===a&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",a),c&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(h)};function b(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}):h(e)}function v(e){e.forEach(b),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");g.add(t)})}function y(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:l=null,strategy:i="afterInteractive",onError:o,stylesheets:d,...p}=e,{updateScripts:b,scripts:v,getIsSsr:y,appDir:x,nonce:w}=(0,u.useContext)(c.HeadManagerContext);w=p.nonce||w;let E=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;E.current||(l&&e&&g.has(e)&&l(),E.current=!0)},[l,t,r]);let S=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!S.current){if("afterInteractive"===i)h(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>h(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>h(e))}));S.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(b?(v[i]=(v[i]||[]).concat([{id:t,src:r,onLoad:n,onReady:l,onError:o,...p,nonce:w}]),b(v)):y&&y()?g.add(t||r):y&&!y()&&h({...e,nonce:w})),x){if(d&&d.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return s.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin}),(0,a.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))})`}});"afterInteractive"===i&&r&&s.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(y,"__nextScript",{value:!0});let x=y;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3403,(e,t,r)=>{t.exports=e.r(10521)},18704,(e,t,r)=>{t.exports={id:"google-analytics",description:"Install a Google Analytics tag on your website",website:"https://analytics.google.com/analytics/web/",scripts:[{url:"https://www.googletagmanager.com/gtag/js",params:["id"],strategy:"worker",location:"head",action:"append"},{code:"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",strategy:"worker",location:"head",action:"append"}]}},6154,(e,t,r)=>{"use strict";function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,r)=>(t[r]=e[r],t),{}):{}}function l(e,t,r,n){let l=n&&Object.keys(n).length>0?new URL(Object.values(n)[0],e):new URL(e);
11return t&&r&&t.forEach(e=>{r[e]&&l.searchParams.set(e,r[e])}),l.toString()}function i(e,t,r,n,i){var o;if(!t)return`<${e}></${e}>`;let a=(null==(o=t.src)?void 0:o.url)?Object.assign(Object.assign({},t),{src:l(t.src.url,t.src.params,n,i)}):t,s=Object.keys(Object.assign(Object.assign({},a),r)).reduce((e,t)=>{let n=null==r?void 0:r[t],l=a[t],i=null!=n?n:l,o=!0===i?t:`${t}="${i}"`;return i?e+` ${o}`:e},"");return`<${e}${s}></${e}>`}Object.defineProperty(r,"__esModule",{value:!0}),r.formatData=r.createHtml=r.formatUrl=void 0,r.formatUrl=l,r.createHtml=i,r.formatData=function(e,t){var r,o,a,s,u;let c=n(t,null==(r=e.scripts)?void 0:r.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),d=n(t,null==(a=null==(o=e.html)?void 0:o.attributes.src)?void 0:a.params),f=n(t,[null==(u=null==(s=e.html)?void 0:s.attributes.src)?void 0:u.slugParam]),m=n(t,[...Object.keys(c),...Object.keys(d),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,m,d,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:l(e.url,e.params,c)})):null})}},80092,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)0>t.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r},l=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleAnalytics=void 0;let i=l(e.r(18704)),o=e.r(6154);r.GoogleAnalytics=e=>{var t=n(e,[]);return(0,o.formatData)(i.default,t)}},31292,(e,t,r)=>{t.exports={id:"google-maps-embed",description:"Embed a Google Maps embed on your webpage",website:"https://developers.google.com/maps/documentation/embed/get-started",html:{element:"iframe",attributes:{loading:"lazy",src:{url:"https://www.google.com/maps/embed/v1/place",slugParam:"mode",params:["key","q","center","zoom","maptype","language","region"]},referrerpolicy:"no-referrer-when-downgrade",frameborder:"0",style:"border:0",allowfullscreen:!0,width:null,height:null}}}},90057,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)0>t.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r},l=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.GoogleMapsEmbed=void 0;let i=l(e.r(31292)),o=e.r(6154);r.GoogleMapsEmbed=e=>{var t=n(e,[]);return(0,o.formatData)(i.default,t)}},47716,(e,t,r)=>{t.exports={id:"youtube-embed",description:"Embed a YouTube embed on your webpage.",website:"https://github.com/paulirish/lite-youtube-embed",html:{element:"lite-youtube",attributes:{videoid:null,playlabel:null}},stylesheets:["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],scripts:[{url:"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",strategy:"idle",location:"head",action:"append"}]}},61564,(e,t,r)=>{"use strict";var n=e.e&&e.e.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)0>t.indexOf(n[l])&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(r[n[l]]=e[n[l]]);return r},l=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=void 0;let i=l(e.r(47716)),o=e.r(6154);r.YouTubeEmbed=e=>{var t=n(e,[]);return(0,o.formatData)(i.default,t)}},8751,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.YouTubeEmbed=r.GoogleMapsEmbed=r.GoogleAnalytics=void 0;var n=e.r(80092);Object.defineProperty(r,"GoogleAnalytics",{enumerable:!0,get:function(){return n.GoogleAnalytics}});var l=e.r(90057);Object.defineProperty(r,"GoogleMapsEmbed",{enumerable:!0,get:function(){return l.GoogleMapsEmbed}});
11var i=e.r(61564);Object.defineProperty(r,"YouTubeEmbed",{enumerable:!0,get:function(){return i.YouTubeEmbed}})},80617,68955,99566,e=>{"use strict";var t=e.i(69996),r=e.i(91589),n=e.i(65706),l=e.i(87967),i=e.i(94944),o=e.i(60436),o=o,a=e.i(76922),s=e.i(10559),u=e.i(12814),c=e.i(75157);function d({className:e,...r}){return(0,t.jsx)("label",{"data-slot":"label",className:(0,c.cn)("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}function f({label:e,htmlFor:r,error:n,errorId:l,legend:i=!1,children:o}){let a=(0,t.jsx)("span",{"aria-hidden":"true",children:"*"}),s=i?(0,t.jsxs)("p",{className:"text-small font-medium",children:[e," ",a]}):(0,t.jsxs)(d,{htmlFor:r,className:"gap-1",children:[e,a]}),u=(0,t.jsxs)(t.Fragment,{children:[s,o,n?(0,t.jsx)("p",{id:l,role:"alert",className:"text-small text-red",children:n}):null]});return i?(0,t.jsx)("fieldset",{"aria-label":e,className:"flex min-w-0 flex-col gap-2",children:u}):(0,t.jsx)("div",{className:"flex flex-col gap-2",children:u})}var m=e.i(19455);e.s([],88344),e.i(88344);var p=e.i(61362),g=e.i(19458),h=e.i(99599),b=e.i(32360),v=e.i(82420);let y=u.createContext(void 0);function x(e=!1){let t=u.useContext(y);if(!t&&!e)throw Error((0,v.default)(86));return t}var w=e.i(59742),E=e.i(17975),S=e.i(56191),R=e.i(7164);let C=function(e){let r=(0,S.useBaseUiId)(),n=void 0===e.controlId?r:e.controlId,[l,i]=u.useState(n),[o,a]=u.useState(e.labelId),[s,c]=u.useState([]),d=(0,E.useRefWithInit)(()=>new Map),{messageIds:f}=(0,R.useLabelableContext)(),m=(0,g.useStableCallback)((e,t)=>{let r=d.current;void 0===t?r.delete(e):(r.set(e,t),i(e=>{let t;if(0!==r.size){for(let n of r.values()){if(void 0!==e&&n===e)return e;void 0===t&&(t=n)}return t}}))}),p=u.useCallback(e=>{let t=e["aria-describedby"]?e["aria-describedby"].split(" "):[];return t.push(...f,...s),{...e,"aria-describedby":Array.from(new Set(t)).join(" ")||void 0}},[f,s]),h=u.useMemo(()=>({controlId:l,registerControlId:m,labelId:o,setLabelId:a,messageIds:s,setMessageIds:c,getDescriptionProps:p}),[l,m,o,a,s,c,p]);return(0,t.jsx)(R.LabelableContext.Provider,{value:h,children:e.children})};var M=e.i(9476),O=e.i(53076),I=e.i(2304),A=e.i(9015);function k(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}let T=Object.keys(b.DEFAULT_VALIDITY_STATE);function P(e,t){return!e.matches(":disabled")&&(!t||e.form===t||null===e.form&&!e.hasAttribute("form"))}function j(e,t){let r=null;for(let n of e.keys())if(P(n,t)){if(!n.validity.valid)return n;r??=n}return r}function L(e,t){for(let e of t.keys())e.setCustomValidity("");e?.setCustomValidity("")}let _=u.forwardRef(function(e,r){let{errors:n,validationMode:l,submitAttemptedRef:i}=(0,w.useFormContext)(),{render:o,className:a,validate:s,validationDebounceTime:c=0,validationMode:d=l,name:f,disabled:m=!1,invalid:v,dirty:y,touched:S,actionsRef:C,style:P,..._}=e,N=x(!0)?.disabled,D=(0,g.useStableCallback)(s||(()=>null)),F=N||m,[V,H]=u.useState(!1),[W,B]=u.useState(!1),[$,z]=u.useState(!1),[U,Y]=u.useState(!1),G=y??W,q=S??V,K=u.useRef(G),J=u.useRef(void 0),[X,Q]=u.useState(),Z=f??X;(0,p.useIsoLayoutEffect)(()=>{void 0!==y&&(K.current=y)},[y]);let ee=(0,g.useStableCallback)(e=>{void 0===y&&(e&&(K.current=!0),B(e))}),et=(0,g.useStableCallback)(e=>{void 0===S&&H(e)}),er=(0,g.useStableCallback)(()=>"onChange"===d||"onSubmit"===d&&i.current),en=Z&&Object.hasOwn(n,Z)?n[Z]:null,el=!!(Array.isArray(en)?en.length:en),ei=!0===v||el,[eo,ea]=u.useState({state:b.DEFAULT_VALIDITY_STATE,error:"",errors:[],value:null,initialValue:null}),es=!ei&&(F?null:eo.state.valid),eu=u.useMemo(()=>({disabled:F,touched:q,dirty:G,valid:es,filled:$,focused:U}),[F,q,G,es,$,U]),ec=function(e){let{elementRef:t,formRef:r}=(0,w.useFormContext)(),{setValidityData:n,validate:l,validityData:i,validationDebounceTime:o,invalid:a,markedDirtyRef:s,state:c,shouldValidateOnChange:d,registeredFieldIdRef:f}=e,{controlId:m,getDescriptionProps:p}=(0,R.useLabelableContext)(),h=(0,I.useTimeout)(),v=u.useRef(null),y=(0,E.useRefWithInit)(()=>new Map).current,x=u.useRef(0),S=u.useCallback((e,t)=>(y.set(e,t),()=>{y.delete(e)}),[y]),C=(0,g.useStableCallback)(()=>{let e=j(y,t.current);return e&&y.get(e)?.controlRef.current||null}),M=(0,g.useStableCallback)(async(e,o=!1)=>{let u;x.current+=1;let p=x.current;function g(e,t=a){let n=f.current??m;if(null==n)return;let l=r.current.fields.get(n);if(!l)return;let i=k(e,t);r.current.fields.set(n,{...l,validityData:i})}let w=y.size>0?j(y,t.current):v.current;if(o){if(!1!==c.valid||!w)return;let t=w.validity;if(!t.valueMissing){let t;return void(t={value:e,state:{...b.DEFAULT_VALIDITY_STATE,valid:!0},error:"",errors:[],initialValue:i.initialValue},L(w,y),g(t,!1),n(t))}for(let e of T)if("valid"!==e&&"valueMissing"!==e&&"customError"!==e&&t[e])return}h.clear();let E=null,S=[],R=w?function(e){let t=T.reduce((t,r)=>(t[r]=e.validity[r],t),{}),r=!1;for(let e of T)if("valid"!==e){if("valueMissing"===e&&t[e])r=!0;else if(t[e])return t}return r&&!s.current&&(t.valid=!0,t.valueMissing=!1),t}(w):{...b.DEFAULT_VALIDITY_STATE,valid:!0},C=d();
11if(w&&w.validationMessage&&!C)u=w.validationMessage,S=[w.validationMessage];else{let t=l(e,Array.from(r.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}));if("object"==typeof t&&null!==t&&"then"in t){if(E=await t,p!==x.current)return}else E=t;null!==E?(R.valid=!1,R.customError=!0,Array.isArray(E)?(S=E,w?.setCustomValidity(E.join("\n"))):E&&(S=[E],w?.setCustomValidity(E))):C&&(L(w,y),R.customError=!1,w&&w.validationMessage?(u=w.validationMessage,S=[w.validationMessage]):w&&!w.validity.valid||R.valid||(R.valid=!0))}let M={value:e,state:R,error:u??(Array.isArray(E)?E[0]:E??""),errors:S,initialValue:i.initialValue};g(M),n(M)}),P=(0,g.useStableCallback)(e=>{h.clear();let t=d();t&&""!==e&&o?(x.current+=1,h.start(o,()=>{M(e)})):M(e,!t)}),_=u.useCallback((e,t={})=>(0,A.mergeProps)(p(t),!1!==c.valid||c.disabled||e?O.EMPTY_OBJECT:{"aria-invalid":!0}),[p,c.disabled,c.valid]);return u.useMemo(()=>({getValidationProps:_,inputRef:v,registeredInputs:y,registerInput:S,getInputControl:C,commit:M,change:P}),[_,y,S,C,M,P])}({setValidityData:ea,validate:D,validityData:eo,validationDebounceTime:c,invalid:ei,markedDirtyRef:K,state:eu,shouldValidateOnChange:er,registeredFieldIdRef:J}),[ed,ef]=function(e){let{commit:t,invalid:r,markedDirtyRef:n,name:l,setRegisteredFieldName:i,registeredFieldIdRef:o,setValidityData:a,validityData:s}=e,{formRef:c}=(0,w.useFormContext)(),d=u.useRef(null),f=u.useRef(null),m=u.useRef(!1),h=(0,g.useStableCallback)(()=>{let e=f.current;if(e)return e.getValue?e.getValue():e.value});function b(e){return void 0===e.value?h():e.value}let v=(0,g.useStableCallback)(()=>{let e=f.current;(n.current=!0,e)?t(b(e)):t(s.value)});function y(e=f.current?.id){e&&c.current.fields.delete(e)}(0,p.useIsoLayoutEffect)(()=>{let e=f.current;e&&e.id&&(i(l?void 0:e.name),c.current.fields.set(e.id,{getValue:h,name:l??e.name,controlRef:e.controlRef,validityData:k(s,r),validate:v}))},[c,h,r,l,i,v,s]),(0,p.useIsoLayoutEffect)(()=>{let e=c.current.fields;return()=>{let t=f.current?.id;t&&e.delete(t)}},[c]);let x=(0,g.useStableCallback)((e,t)=>{let n;if(!t){d.current===e&&(d.current=null,y(),f.current=null,i(void 0),o.current=void 0);return}let u=f.current?.id;d.current=e,f.current=t,l||i(t.name),o.current=t.id,u&&u!==t.id&&y(u),function(e){if(m.current)return;m.current=!0;let t=b(e);a(e=>e.initialValue===t?e:{...e,initialValue:t})}(t),(n=f.current)&&n.id&&c.current.fields.set(n.id,{getValue:h,name:l??n.name,controlRef:n.controlRef,validityData:k(s,r),validate:v})});return[v,x]}({commit:ec.commit,invalid:ei,markedDirtyRef:K,name:f,setRegisteredFieldName:Q,registeredFieldIdRef:J,setValidityData:ea,validityData:eo});u.useImperativeHandle(C,()=>({validate:ed}),[ed]);let em=u.useMemo(()=>({invalid:ei,name:Z,validityData:eo,setValidityData:ea,disabled:F,setTouched:et,setDirty:ee,setFilled:z,setFocused:Y,validationMode:d,shouldValidateOnChange:er,state:eu,registerFieldControl:ef,validation:ec}),[ei,Z,eo,F,et,ee,z,Y,d,er,eu,ef,ec]),ep=(0,M.useRenderElement)("div",e,{ref:r,state:eu,props:_,stateAttributesMapping:b.fieldValidityMapping});return(0,t.jsx)(h.FieldRootContext.Provider,{value:em,children:ep})}),N=u.forwardRef(function(e,r){return(0,t.jsx)(C,{children:(0,t.jsx)(_,{...e,ref:r})})});var D=e.i(79107);let F=u.createContext({disabled:!1});function V(){return u.useContext(F)}let H=u.forwardRef(function(e,t){let{render:r,className:n,style:l,id:i,nativeLabel:o=!0,...a}=e,s=(0,h.useFieldRootContext)(!1),c=V(),{labelId:d}=(0,R.useLabelableContext)(),f={...s.state,disabled:s.disabled||c.disabled},m=u.useRef(null),p=(0,D.useLabel)({id:d??i,native:o});return(0,M.useRenderElement)("label",e,{ref:[t,m],state:f,props:[p,a],stateAttributesMapping:b.fieldValidityMapping})});var W=e.i(74514),B=e.i(34472),$=e.i(95188);let z={...b.fieldValidityMapping,...B.transitionStatusMapping},U=u.forwardRef(function(e,r){let{render:n,id:l,className:i,match:o,style:a,...s}=e,c=(0,S.useBaseUiId)(l),{validityData:d,state:f,name:m}=(0,h.useFieldRootContext)(!1),{setMessageIds:g}=(0,R.useLabelableContext)(),{errors:b}=(0,w.useFormContext)(),v=m&&Object.hasOwn(b,m)?b[m]:null,y=!!(Array.isArray(v)?v.length:v),x="string"==typeof o,E=!1;E=!0===o||!f.disabled&&(x?!!d.state[o]:y||!1===d.state.valid);let{mounted:C,transitionStatus:O,setMounted:I}=(0,$.useTransitionStatus)(E);(0,p.useIsoLayoutEffect)(()=>
11{if(E&&c)return g(e=>e.concat(c)),()=>{g(e=>e.filter(e=>e!==c))}},[E,c,g]);let A=u.useRef(null),[k,T]=u.useState(null),[P,j]=u.useState(null),L=d.error;!x&&y?L=v:d.errors.length>1&&(L=d.errors);let _=L;Array.isArray(L)&&(_=L.length>1?(0,t.jsx)("ul",{children:L.map(e=>(0,t.jsx)("li",{children:e},e))}):L[0]);let N=Array.isArray(L)?JSON.stringify(L):L;E&&N!==P&&(j(N),T(_)),(0,W.useOpenChangeComplete)({open:E,ref:A,onComplete(){E||I(!1)}});let D={...f,transitionStatus:O},F=(0,M.useRenderElement)("div",e,{ref:[r,A],state:D,props:[{id:c,children:E?_:k},s],stateAttributesMapping:z,enabled:C});return C?F:null}),Y=u.forwardRef(function(e,t){let{render:r,id:n,className:l,style:i,...o}=e,a=(0,S.useBaseUiId)(n),s=(0,h.useFieldRootContext)(!1),u=V(),{setMessageIds:c}=(0,R.useLabelableContext)(),d={...s.state,disabled:s.disabled||u.disabled};return(0,p.useIsoLayoutEffect)(()=>{if(a)return c(e=>e.concat(a)),()=>{c(e=>e.filter(e=>e!==a))}},[a,c]),(0,M.useRenderElement)("p",e,{ref:t,state:d,props:[{id:a},o],stateAttributesMapping:b.fieldValidityMapping})});var G=e.i(25587),q=e.i(52515),K=e.i(36439),J=e.i(55433),X=e.i(5250),Q=e.i(34287),Z=e.i(67617);let ee=u.forwardRef(function(e,t){let{render:r,className:n,id:l,name:i,value:o,disabled:a=!1,onValueChange:s,defaultValue:c,autoFocus:d=!1,style:f,...m}=e,{state:v,name:y,disabled:x,setTouched:E,setDirty:S,validityData:C,setFocused:O,setFilled:I,validationMode:A,validation:k}=(0,h.useFieldRootContext)(),{clearErrors:T}=(0,w.useFormContext)(),P=x||a,j=y??i,L={...v,disabled:P},{labelId:_}=(0,R.useLabelableContext)(),N=(0,J.useLabelableId)({id:l});(0,p.useIsoLayoutEffect)(()=>{let e=null!=o;k.inputRef.current?.value||e&&""!==o?I(!0):e&&""===o&&I(!1)},[k.inputRef,I,o]);let D=u.useRef(null);(0,p.useIsoLayoutEffect)(()=>{d&&D.current===(0,Z.activeElement)((0,q.ownerDocument)(D.current))&&O(!0)},[d,O]);let[F]=(0,G.useControlled)({controlled:o,default:c,name:"FieldControl",state:"value"}),V=void 0!==o,H=V?F:void 0,W=(0,g.useStableCallback)(()=>k.inputRef.current?.value);return(0,K.useRegisterFieldControl)(k.inputRef,N,H,W,!P,i),(0,M.useRenderElement)("input",e,{ref:[t,D],state:L,props:[{id:N,disabled:P,name:j,ref:k.inputRef,"aria-labelledby":_,autoFocus:d,...V?{value:H}:{defaultValue:c},onChange(e){let t=e.currentTarget.value;s?.(t,(0,X.createChangeEventDetails)(Q.REASONS.none,e.nativeEvent)),S(t!==(C.initialValue??"")),I(""!==t),e.nativeEvent.defaultPrevented||(T(j),k.change(t))},onFocus(){O(!0)},onBlur(e){E(!0),O(!1),"onBlur"===A&&k.commit(e.currentTarget.value)},onKeyDown(e){"INPUT"===e.currentTarget.tagName&&"Enter"===e.key&&(E(!0),k.commit(e.currentTarget.value))}},m,e=>k.getValidationProps(P,e)],stateAttributesMapping:b.fieldValidityMapping})}),et=u.forwardRef(function(e,r){let{render:n,className:l,style:i,disabled:o=!1,...a}=e,{state:s,disabled:c}=(0,h.useFieldRootContext)(!1),d=c||o,f={...s,disabled:d},m=u.useMemo(()=>({disabled:d}),[d]),p=(0,M.useRenderElement)("div",e,{ref:r,state:f,props:a,stateAttributesMapping:b.fieldValidityMapping});return(0,t.jsx)(C,{children:(0,t.jsx)(F.Provider,{value:m,children:p})})});e.s(["Control",0,ee,"Description",0,Y,"Error",0,U,"Item",0,et,"Label",0,H,"Root",0,N,"Validity",0,function(e){let{children:r}=e,{validityData:n,invalid:l}=(0,h.useFieldRootContext)(!1),i=u.useMemo(()=>k(n,l),[n,l]),o=!1===i.state.valid,{transitionStatus:a}=(0,$.useTransitionStatus)(o),s=u.useMemo(()=>({...i,validity:i.state,transitionStatus:a}),[i,a]);return(0,t.jsx)(u.Fragment,{children:r(s)})}],82749);var er=e.i(82749),er=er;let en=u.forwardRef(function(e,r){return(0,t.jsx)(er.Control,{ref:r,...e})});function el({className:e,type:r,...n}){return(0,t.jsx)(en,{type:r,"data-slot":"input",className:(0,c.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e),...n})}e.s([],45883),e.i(45883);var ei=e.i(49939),eo=e.i(88333);let ea={checked:e=>e?{"data-checked":""}:{"data-unchecked":""}
11,...B.transitionStatusMapping,...b.fieldValidityMapping};var es=e.i(83876),eu=e.i(42186);let ec="data-composite-item-active";var ed=e.i(91127),ef=e.i(36505);function em(e){let{render:t,className:r,style:n,state:l=O.EMPTY_OBJECT,props:i=O.EMPTY_ARRAY,refs:o=O.EMPTY_ARRAY,metadata:a,stateAttributesMapping:s,tag:c="div",...d}=e,{compositeProps:f,compositeRef:m}=function(e={}){let{highlightItemOnHover:t,highlightedIndex:r,onHighlightedIndexChange:n}=(0,ed.useCompositeRootContext)(),{ref:l,index:i}=(0,ef.useCompositeListItem)(e),o=r===i,a=u.useRef(null),s=(0,ei.useMergedRefs)(l,a);return{compositeProps:{tabIndex:o?0:-1,onFocus(){n(i)},onMouseMove(){let e=a.current;if(!t||!e)return;let r=e.hasAttribute("disabled")||"true"===e.ariaDisabled;o||r||e.focus()}},compositeRef:s,index:i}}({metadata:a});return(0,M.useRenderElement)(c,e,{state:l,ref:[m,...o],props:[f,...i,d],stateAttributesMapping:s})}e.s(["CompositeItem",0,em],68955);let ep=u.createContext(void 0);var eg=e.i(46115);let eh=u.createContext(void 0),eb=u.forwardRef(function(e,r){let{render:n,className:l,disabled:i=!1,readOnly:o=!1,required:a=!1,"aria-labelledby":s,value:c,inputRef:d,nativeButton:f=!1,id:m,style:g,...b}=e,v=u.useContext(ep),{disabled:y,readOnly:x,required:w,form:E,checkedValue:C,touched:I=!1,validation:A,name:k,setCheckedValue:T=O.NOOP,setTouched:P=O.NOOP,registerInputRef:j=O.NOOP}=v??{},{setTouched:L,setFilled:_,state:N,disabled:D}=(0,h.useFieldRootContext)(),F=V(),{labelId:H,getDescriptionProps:W}=(0,R.useLabelableContext)(),B=D||F.disabled||y||i,$=x||o,z=w||a,U=v?C===c:""===c,Y=u.useRef(null),G=u.useRef(null),q=A?.registerInput,K=u.useCallback(e=>q?.(e,{controlRef:Y,value:void 0}),[q]),Z=(0,ei.useMergedRefs)(d,G,j,K);(0,p.useIsoLayoutEffect)(()=>{G.current?.checked&&_(!0)},[_]),(0,p.useIsoLayoutEffect)(()=>{if(G.current){if(B&&U)return void j(null);j(G.current)}},[U,B,j]);let ee=(0,S.useBaseUiId)(),et=(0,J.useLabelableId)({id:m,implicit:!1,controlRef:Y}),er=f?void 0:et,en=function(e,t,r,n=!0,l){let[i,o]=u.useState(),a=(0,S.useBaseUiId)(l?`${l}-label`:void 0),s=e??t??i;return(0,p.useIsoLayoutEffect)(()=>{let l=e||t||!n?void 0:function(e,t){let r=function(e){if(!e)return;let t=e.parentElement;if(t&&"LABEL"===t.tagName)return t;let r=e.id;if(r){let t=e.nextElementSibling;if(t&&t.htmlFor===r)return t}let n=e.labels;return n&&n[0]}(e);if(r)return!r.id&&t&&(r.id=t),r.id||void 0}(r.current,a);i!==l&&o(l)}),s}(s,H,G,!f,er),{getButtonProps:el,buttonRef:ed}=(0,eu.useButton)({disabled:B,native:f,composite:!1}),ef={type:"radio",ref:Z,form:E,id:er,name:k,tabIndex:-1,style:k?eo.visuallyHiddenInput:eo.visuallyHidden,"aria-hidden":!0,...void 0!==c?{value:(0,eg.serializeValue)(c)}:O.EMPTY_OBJECT,disabled:B,checked:U,required:z,readOnly:$,onChange(e){if(e.nativeEvent.defaultPrevented||B||$||void 0===c)return;let t=(0,X.createChangeEventDetails)(Q.REASONS.none,e.nativeEvent);T(c,t),t.isCanceled||L(!0)},onClick(e){e.stopPropagation()},onFocus(){Y.current?.focus()}},eb=u.useMemo(()=>({...N,required:z,disabled:B,readOnly:$,checked:U}),[N,B,$,U,z]),ev=void 0!==v,ey=[r,Y,ed],ex=[{role:"radio","aria-checked":U,"aria-labelledby":en,[ec]:U?"":void 0,id:f?et:ee,onKeyDown(e){"Enter"===e.key&&e.preventDefault()},onClick(e){if(e.defaultPrevented||B||$)return;e.preventDefault();let t=G.current;t&&(0,es.dispatchClickWithModifiers)(t,e)},onFocus(e){e.defaultPrevented||B||$||!I||(G.current?.click(),P(!1))}},b,el,W,A?e=>A.getValidationProps(B,e):O.EMPTY_OBJECT],ew=(0,M.useRenderElement)("span",e,{enabled:!ev,state:eb,ref:ey,props:ex,stateAttributesMapping:ea});return(0,t.jsxs)(eh.Provider,{value:eb,children:[ev?(0,t.jsx)(em,{tag:"span",render:n,className:l,style:g,state:eb,refs:ey,props:ex,stateAttributesMapping:ea}):ew,(0,t.jsx)("input",{...ef,suppressHydrationWarning:!0})]})}),ev=u.forwardRef(function(e,t){let{render:r,className:n,style:l,keepMounted:i=!1,...o}=e,a=function(){let e=u.useContext(eh);if(void 0===e)throw Error((0,v.default)(52));return e}(),s=a.checked,{mounted:c,transitionStatus:d,setMounted:f}=(0,$.useTransitionStatus)(s),m={...a,transitionStatus:d},p=u.useRef(null),g=(0,M.useRenderElement)("span",e,{ref:[t,p],state:m,props:o,stateAttributesMapping:ea});return((0,W.useOpenChangeComplete)({open:s,ref:p,onComplete(){s||f(!1)}}),i||c)?g:null});e.s(["Indicator",0,ev,"Root",0,eb],54824);var ey=e.i(54824),ey=ey,ex=e.i(21064),ew=e.i(81901),eE=e.i(54130),eS=e.i(91143);let eR=[];var eC=e.i(39826);function eM(e){let{render:r,className:n,style:l,refs:i=O.EMPTY_ARRAY,props:o=O.EMPTY_ARRAY,state:a=O.EMPTY_OBJECT,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:d,orientation:f,grid:m,loopFocus:h,onLoop:b,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:x=!0,rootRef:w,disabledIndices:E,modifierKeys:S,highlightItemOnHover:R=!1,tag:C="div",...I}=e,{props:A,highlightedIndex:k,onHighlightedIndexChange:T,elementsRef:P,onMapChange:j,relayKeyboardEvent:L}=function(e){let{loopFocus:t=!0,orientation:r="both",grid:n,onLoop:l,direction:i,highlightedIndex:o,onHighlightedIndexChange:a,rootRef:s,enableHomeAndEndKeys:c=!1,stopEventPropagation:d,disabledIndices:f,modifierKeys:m=eR}=e,[h,b]=u.useState(0),v=null!=n,y=u.useRef(null),x=(0,ei.useMergedRefs)(y,s),w=u.useRef([]),E=u.useRef(!1),S=o??h,R=(0,g.useStableCallback)((e,t=!1)=>
11{if((a??b)(e),t){let t=w.current[e];(0,ex.scrollIntoViewIfNeeded)(y.current,t,i,r)}}),C=(0,g.useStableCallback)(e=>{if(0===e.size||E.current)return;E.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(ec))??null,l=n?e.get(n)?.index??-1:-1;if(-1!==l)R(l);else if((0,eS.isListIndexDisabled)(t,S,f)){let e=(0,eS.findNonDisabledListIndex)(t,{disabledIndices:f});(0,eS.isIndexOutOfListBounds)(t,e)||R(e)}(0,ex.scrollIntoViewIfNeeded)(y.current,n,i,r)});(0,p.useIsoLayoutEffect)(()=>{if(null==f||null!=o||!E.current)return;let e=w.current;if((0,eS.isListIndexDisabled)(e,S,f)){let t=(0,eS.findNonDisabledListIndex)(e,{disabledIndices:f});(0,eS.isIndexOutOfListBounds)(e,t)||R(t)}},[f,o,S,w,R]);let M=(0,g.useStableCallback)((e,t,r)=>l?l(e,t,r,w):r),O=(0,g.useStableCallback)(e=>{let o=e.key===ex.HOME||e.key===ex.END;if(!ex.COMPOSITE_KEYS.has(e.key)||!c&&o||function(e,t){for(let r of ex.MODIFIER_KEYS)if(!t.includes(r)&&e.getModifierState(r))return!0;return!1}(e,m)||!y.current)return;let a="rtl"===i,s=a?ex.ARROW_LEFT:ex.ARROW_RIGHT,u=a?ex.ARROW_RIGHT:ex.ARROW_LEFT,p="vertical"===r?ex.ARROW_DOWN:s,g="vertical"===r?ex.ARROW_UP:u,h=(0,Z.getTarget)(e.nativeEvent);if(null!=h&&(0,ex.isNativeInput)(h)&&!(0,eE.isElementDisabled)(h)){let t=h.selectionStart,r=h.selectionEnd,n=h.value;if(null==t||e.shiftKey||t!==r||e.key!==g&&t<n.length||e.key!==p&&t>0)return}let b=S,x=(0,eS.getMinListIndex)(w,f),E=(0,eS.getMaxListIndex)(w,f);null!=n&&(b=n({disabledIndices:f,elementsRef:w,event:e,highlightedIndex:S,loopFocus:t,maxIndex:E,minIndex:x,onLoop:M,orientation:r,rtl:a}));let C="vertical"!==r&&e.key===s||"horizontal"!==r&&e.key===ex.ARROW_DOWN,O="vertical"!==r&&e.key===u||"horizontal"!==r&&e.key===ex.ARROW_UP;c&&(e.key===ex.HOME?b=x:e.key===ex.END&&(b=E)),b===S&&(C||O)&&(t&&b===E&&C?(b=x,l&&(b=l(e,S,b,w))):t&&b===x&&O?(b=E,l&&(b=l(e,S,b,w))):b=(0,eS.findNonDisabledListIndex)(w.current,{startingIndex:b,decrement:O,disabledIndices:f})),b===S||(0,eS.isIndexOutOfListBounds)(w.current,b)||(d&&e.stopPropagation(),(v||o||C||O)&&e.preventDefault(),R(b,!0),queueMicrotask(()=>{w.current[b]?.focus()}))});return{props:{ref:x,onFocus(e){let t=y.current,r=(0,Z.getTarget)(e.nativeEvent);t&&null!=r&&(0,ex.isNativeInput)(r)&&r.setSelectionRange(0,r.value.length)},onKeyDown:O},highlightedIndex:S,onHighlightedIndexChange:R,elementsRef:w,onMapChange:C,relayKeyboardEvent:O}}({grid:m,loopFocus:h,onLoop:b,orientation:f,highlightedIndex:c,onHighlightedIndexChange:d,rootRef:w,stopEventPropagation:x,enableHomeAndEndKeys:v,direction:(0,eC.useDirection)(),disabledIndices:E,modifierKeys:S}),_=(0,M.useRenderElement)(C,e,{state:a,ref:i,props:[A,...o,I],stateAttributesMapping:s}),N=u.useMemo(()=>({highlightedIndex:k,onHighlightedIndexChange:T,highlightItemOnHover:R,relayKeyboardEvent:L}),[k,T,R,L]);return(0,t.jsx)(ed.CompositeRootContext.Provider,{value:N,children:(0,t.jsx)(ew.CompositeList,{elementsRef:P,onMapChange:e=>{y?.(e),j(e)},children:_})})}e.s(["CompositeRoot",0,eM],99566);var eO=e.i(79191);let eI=[ex.SHIFT],eA=u.forwardRef(function(e,r){let{render:n,className:l,disabled:i,readOnly:o,required:a,onValueChange:s,value:c,defaultValue:d,form:f,name:m,inputRef:p,id:v,style:y,...E}=e,{setTouched:C,setFocused:M,validationMode:O,name:I,disabled:A,state:k,validation:T,setDirty:j,setFilled:L,validityData:_}=(0,h.useFieldRootContext)(),{labelId:N}=(0,R.useLabelableContext)(),{clearErrors:D,elementRef:F}=(0,w.useFormContext)(),V=x(!0),H=A||i,W=I??m,B=(0,S.useBaseUiId)(v),[$,z]=(0,G.useControlled)({controlled:c,default:d,name:"RadioGroup",state:"value"}),[U,Y]=u.useState(!1),q=(0,g.useStableCallback)((e,t)=>{s?.(e,t),t.isCanceled||z(e)}),J=T.getInputControl,X=u.useMemo(()=>({get current(){return J()}}),[J]),Q=u.useRef(null),ee=u.useRef(null);function et(e){let t;return p&&("function"==typeof p?t=p(e):p.current=e),Q.current=e,t}let er=(0,g.useStableCallback)(e=>{if(!e||e.disabled)return;ee.current||(ee.current=e);let t=Q.current,r=e.checked||null==t||t.disabled?et(e):void 0;return()=>{ee.current===e&&(ee.current=null),Q.current===e?r?(r(),Q.current=null):et(null):r?.()}}),en=(0,g.useStableCallback)(()=>{let e=F.current;if(!e)return $??null;for(let t of T.registeredInputs.keys())if(t.checked&&P(t,e))return $??null;return null});(0,K.useRegisterFieldControl)(X,B,$??null,en,!H,m),(0,eO.useValueChanged)($,()=>{D(W),j($!==_.initialValue),L(null!=$),T.change($);let e=ee.current;null==$&&e&&!e.disabled&&et(e)});let el=N??V?.legendId,ei={...k,disabled:H??!1,required:a??!1,readOnly:o??!1},eo=u.useMemo(()=>({checkedValue:$,disabled:H,form:f,validation:T,name:W,readOnly:o,registerInputRef:er,required:a,setCheckedValue:q,setTouched:Y,touched:U}
11),[$,H,f,T,W,o,er,a,q,Y,U]);return(0,t.jsx)(ep.Provider,{value:eo,children:(0,t.jsx)(eM,{render:n,className:l,style:y,state:ei,props:[{id:v,role:"radiogroup","aria-required":a||void 0,"aria-disabled":H||void 0,"aria-readonly":o||void 0,"aria-labelledby":el,onFocus(){M(!0)},onBlur(e){(0,Z.contains)(e.currentTarget,e.relatedTarget)||(C(!0),M(!1),"onBlur"===O&&T.commit($))},onKeyDownCapture(e){e.key.startsWith("Arrow")&&(Y(!0),M(!0))}},E,e=>T.getValidationProps(H??!1,e)],refs:[r],stateAttributesMapping:b.fieldValidityMapping,enableHomeAndEndKeys:!1,modifierKeys:eI})})});function ek({className:e,...r}){return(0,t.jsx)(eA,{"data-slot":"radio-group",className:(0,c.cn)("grid w-full gap-2",e),...r})}function eT({className:e,...r}){return(0,t.jsx)(ey.Root,{"data-slot":"radio-group-item",className:(0,c.cn)("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary",e),...r,children:(0,t.jsx)(ey.Indicator,{"data-slot":"radio-group-indicator",className:"flex size-4 items-center justify-center",children:(0,t.jsx)("span",{className:"absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground"})})})}var eP=e.i(67489);let ej=["1To25","26To50","51To100","101To300","Over300"],eL=["UnderHalf","Half","Full"];var e_=e.i(20133),eN=e.i(42522);let eD=["name","email","instagram","clients","hours","background"],eF=["clients","hours","background"],eV=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,eH=(e,t)=>t.trim()?"email"!==e||eV.test(t)?null:"errorEmail":eF.includes(e)?"errorChoose":"errorRequired",eW="h-10 border-black/10 bg-field",eB="w-full border-black/10 bg-field data-[size=default]:h-10";function e$({onSent:e}){let n=(0,s.useTranslations)("demo"),[l,i]=(0,u.useState)("idle"),[o,a]=(0,u.useState)({}),c=(0,u.useId)(),p=e=>`${c}-${e}`,g=e=>`${c}-${e}-error`,h=(e,t)=>a(r=>{let n={...r};return t?n[e]=t:delete n[e],n}),b=e=>t=>h(e,eH(e,t.target.value)),v=e=>t=>{o[e]&&!eH(e,t.currentTarget.value)&&h(e,null)},y=async t=>{t.preventDefault();let n=t.currentTarget,l=new FormData(n),o={};for(let e of eD){let t=eH(e,String(l.get(e)??""));t&&(o[e]=t)}if(Object.keys(o).length>0){a(o);let e=eD.find(e=>o[e]),t=(e&&n.querySelector(`#${CSS.escape(p(e))}`))??n.querySelector("[data-slot=radio-group-item]");t?.focus();return}i("sending");try{let{capturedAt:t,...n}=(0,eN.readFresh)(Date.now())??{};if(!(await fetch("/api/demo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...t?{capturedAt:t}:{},...Object.fromEntries(l)})})).ok)return void i("error");(0,r.sendGTMEvent)({event:"demo_submitted"}),(0,eN.clear)(),e(String(l.get("email")??""))}catch{i("error")}},x=e=>o[e]?g(e):void 0;return(0,t.jsxs)("form",{onSubmit:y,noValidate:!0,className:"flex flex-col gap-5 pt-8",children:[(0,t.jsx)(f,{label:n("nameLabel"),htmlFor:p("name"),error:o.name&&n(o.name),errorId:g("name"),children:(0,t.jsx)(el,{id:p("name"),name:"name",autoComplete:"name",required:!0,"aria-invalid":!!o.name,"aria-describedby":x("name"),onBlur:b("name"),onInput:v("name"),className:eW})}),(0,t.jsx)(f,{label:n("emailLabel"),htmlFor:p("email"),error:o.email&&n(o.email),errorId:g("email"),children:(0,t.jsx)(el,{id:p("email"),name:"email",type:"email",autoComplete:"email",required:!0,"aria-invalid":!!o.email,"aria-describedby":x("email"),onBlur:b("email"),onInput:v("email"),className:eW})}),(0,t.jsx)(f,{label:n("instagramLabel"),htmlFor:p("instagram"),error:o.instagram&&n(o.instagram),errorId:g("instagram"),children:(0,t.jsx)(el,{id:p("instagram"),name:"instagram",placeholder:n("instagramPlaceholder"),required:!0,"aria-invalid":!!o.instagram,"aria-describedby":x("instagram"),onBlur:b("instagram"),onInput:v("instagram"),className:eW})}),(0,t.jsx)(f,{label:n("clientsLabel"),htmlFor:p("clients"),error:o.clients&&n(o.clients),errorId:g("clients"),children:(0,t.jsxs)(eP.Select,{name:"clients",required:!0,onValueChange:()=>h("clients",null),children:[(0,t.jsx)(eP.SelectTrigger,{id:p("clients"),"aria-invalid":!!o.clients,"aria-describedby":x("clients"),className:eB,children:(0,t.jsx)(eP.SelectValue,{placeholder:n("selectPlaceholder"),children:e=>e?n(`clients${e}`):n("selectPlaceholder")})}),(0,t.jsx)(eP.SelectContent,{children:ej.map(e=>(0,t.jsx)(eP.SelectItem,{value:e,children:n(`clients${e}`)},e))})]})}),(0,t.jsx)(f,{label:n("hoursLabel"),htmlFor:p("hours"),error:o.hours&&n(o.hours),errorId:g("hours"),children:(0,t.jsxs)(eP.Select,{name:"hours",required:!0,onValueChange:()=>h("hours",null),children:[(0,t.jsx)(eP.SelectTrigger,{id:p("hours"),"aria-invalid":!!o.hours,"aria-describedby":x("hours"),className:eB,children:(0,t.jsx)(eP.SelectValue,{placeholder:n("selectPlaceholder"),children:e=>e?n(`hours${e}`):n("selectPlaceholder")})}),(0,t.jsx)(eP.SelectContent,{children:eL.map(e=>(0,t.jsx)(eP.SelectItem,{value:e,children:n(`hours${e}`)},e))})]})}),(0,t.jsx)(f,{legend:!0,label:n("backgroundLabel"),error:o.background&&n(o.background),errorId:g("background"),children:(0,t.jsxs)(ek,{name:"background",required:!0,"aria-describedby":x("background"),onValueChange:()=>h("background",null),className:"flex flex-row items-center gap-6",children:[(0,t.jsxs)(d,{className:"gap-2",children:[(0,t.jsx)(eT,{value:"Yes","aria-label":n("backgroundYes")}),n("backgroundYes")]}),(0,t.jsxs)(d,{className:"gap-2",children:[(0,t.jsx)(eT,{value:"No","aria-label":n("backgroundNo")}),n("backgroundNo")]})]})}),"error"===l&&(0,t.jsx)("p",{className:"text-small text-red",role:"alert",children:n("errorBody")}),(0,t.jsx)(m.Button,{type:"submit",disabled:"sending"===l,className:"h-10 w-full rounded-full px-4 text-base font-medium tracking-btn",children:"sending"===l?n("submitting"):n("submit")}),(0,t.jsx)("p",{className:"text-center text-small text-body-grey",children:n.rich("consent",{privacy:e
11=>(0,t.jsx)(e_.Link,{href:"/privacy",className:"underline underline-offset-2 hover:text-black",children:e})})})]})}var ez=e.i(76639);let eU=(0,u.createContext)(null),eY="demo";function eG(){let e=(0,u.useContext)(eU);if(!e)throw Error("useDemoModal must be used inside <DemoModalProvider>");return e}function eq({onOpen:e}){let t="open"===(0,i.useSearchParams)().get(eY);return(0,u.useEffect)(()=>{t&&e()},[t,e]),null}function eK({email:e}){let r=(0,s.useTranslations)("demo");return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-5 py-4 text-center",children:[(0,t.jsx)("span",{className:"flex size-14 items-center justify-center rounded-full bg-black text-white duration-500 animate-in zoom-in-50",children:(0,t.jsx)(n.CheckIcon,{className:"size-7"})}),(0,t.jsx)(ez.DialogTitle,{children:(0,t.jsx)("span",{className:"font-serif text-h2 text-black",children:r("sentTitle")})}),(0,t.jsx)("p",{className:"font-medium text-body text-body-grey",children:r("sentBody")}),(0,t.jsx)("p",{className:"font-medium text-body text-body-grey",children:r.rich("sentTo",{email:e,address:e=>(0,t.jsx)("span",{className:"font-medium text-black",children:e})})}),(0,t.jsx)(ez.DialogClose,{className:"mt-1 h-10 w-full rounded-full px-4 text-base font-medium tracking-btn",render:(0,t.jsx)(m.Button,{}),children:r("sentClose")})]})}function eJ(){let{open:e,closeDemo:r}=eG(),n=(0,s.useTranslations)("demo"),[i,o]=(0,u.useState)(null);return(0,t.jsx)(ez.Dialog,{open:e,onOpenChange:e=>{e||(r(),o(null))},children:(0,t.jsxs)(ez.DialogContent,{showCloseButton:!1,className:"max-h-svh gap-0 overflow-y-auto rounded-card bg-white p-6 ring-0 sm:max-w-demo-modal! md:p-8",children:[(0,t.jsx)(ez.DialogClose,{"aria-label":n("close"),className:"absolute top-4 right-4 z-10",render:(0,t.jsx)(m.Button,{variant:"ghost",size:"icon-sm"}),children:(0,t.jsx)(l.XIcon,{})}),i?(0,t.jsx)(eK,{email:i}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col gap-4 pr-10",children:[(0,t.jsx)(ez.DialogTitle,{children:(0,t.jsx)("span",{className:"font-serif text-h2 text-black",children:n("title")})}),(0,t.jsx)("p",{className:"font-medium text-body text-body-grey",children:n("lead")})]}),(0,t.jsx)(e$,{onSent:o})]})]})})}e.s(["DemoModalProvider",0,function({children:e,messages:n}){let[l,i]=(0,u.useState)(!1),s=(0,a.useLocale)(),c=(0,u.useCallback)(()=>i(!0),[]),d=(0,u.useCallback)(()=>{i(!1);let e=new URL(window.location.href);e.searchParams.has(eY)&&(e.searchParams.delete(eY),window.history.replaceState(null,"",e.toString()))},[]);(0,u.useEffect)(()=>{l&&(0,r.sendGTMEvent)({event:"demo_form_opened"})},[l]);let f=(0,u.useMemo)(()=>({open:l,openDemo:c,closeDemo:d}),[l,c,d]);return(0,t.jsxs)(eU.Provider,{value:f,children:[e,(0,t.jsx)(u.Suspense,{fallback:null,children:(0,t.jsx)(eq,{onOpen:c})}),(0,t.jsx)(o.default,{locale:s,messages:n,children:(0,t.jsx)(eJ,{})})]})},"DemoTrigger",0,function({children:e,className:r,inert:n,size:l,inline:i=!1,onClick:o}){let{openDemo:a}=eG(),s=()=>{o?.(),a()};return i?(0,t.jsx)("button",{type:"button",onClick:s,className:(0,c.cn)("underline underline-offset-4 hover:no-underline",r),children:e}):(0,t.jsx)(m.Button,{className:r,inert:n,size:l,onClick:s,children:e})},"useDemoModal",0,eG],80617)},20133,e=>{"use strict";var t=e.i(94944),r=e.i(12814),n=e.i(76922),l=r["use".trim()],i=e.i(49993),o=e.i(58393),a=e.i(14117),s=e.i(69996),u=e.i(80286);let{Link:c,redirect:d,permanentRedirect:f,usePathname:m,useRouter:p,getPathname:g}=function(e){let{Link:c,config:d,getPathname:f,...m}=function(e,n){var u,c,d;let f={...u=n||{},localePrefix:"object"==typeof(d=u.localePrefix)?d:{mode:d||"always"},localeCookie:!!((c=u.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof c&&c},localeDetection:u.localeDetection??!0,alternateLinks:u.alternateLinks??!0},m=f.pathnames,p=(0,r.forwardRef)(function({href:t,locale:r,...n},a){let u,c;"object"==typeof t?(u=t.pathname,c=t.params):u=t;let d=(0,i.isLocalizableHref)(t),p=e(),h=(0,i.isPromise)(p)?l(p):p,b=d?g({locale:r||h,href:null==m?u:{pathname:u,params:c},forcePrefix:null!=r||void 0}):u;return(0,s.jsx)(o.default,{ref:a,href:"object"==typeof t?{...t,pathname:b}:b,locale:r,localeCookie:f.localeCookie,...n})});function g(e){let t,{forcePrefix:r,href:n,locale:l}=e;return null==m?"object"==typeof n?(t=n.pathname,n.query&&(t+=(0,a.seri
11alizeSearchParams)(n.query))):t=n:t=(0,a.compileLocalizedPathname)({locale:l,...(0,a.normalizeNameOrNameWithParams)(n),pathnames:f.pathnames}),(0,a.applyPathnamePrefix)(t,l,f,r)}function h(e){return function(t,...r){return e(g(t),...r)}}return{config:f,Link:p,redirect:h(t.redirect),permanentRedirect:h(t.permanentRedirect),getPathname:g}}(n.useLocale,e);return{...m,Link:c,usePathname:function(){let e,l,o=(e=(0,t.usePathname)(),l=(0,n.useLocale)(),(0,r.useMemo)(()=>{if(!e)return e;let t=e,r=(0,i.getLocalePrefix)(l,d.localePrefix);if((0,i.hasPathnamePrefixed)(r,e))t=(0,i.unprefixPathname)(e,r);else if("never"!==d.localePrefix.mode&&d.localePrefix.prefixes){let r=(0,i.getLocaleAsPrefix)(l);(0,i.hasPathnamePrefixed)(r,e)&&(t=(0,i.unprefixPathname)(e,r))}return t},[d.localePrefix,l,e])),s=(0,n.useLocale)();return(0,r.useMemo)(()=>o&&d.pathnames?(0,a.getRoute)(s,o,d.pathnames):o,[s,o])},useRouter:function(){let e=(0,t.useRouter)(),l=(0,n.useLocale)(),i=(0,t.usePathname)();return(0,r.useMemo)(()=>{function t(e){return function(t,r){let{locale:n,...o}=r||{},a=[f({href:t,locale:n||l,forcePrefix:null!=n||void 0})];Object.keys(o).length>0&&a.push(o),(0,u.default)(d.localeCookie,i,l,n),e(...a)}}return{...e,push:t(e.push),replace:t(e.replace),prefetch:t(e.prefetch)}},[l,i,e])},getPathname:f}}({locales:["en","dk","se","no","fi","de"],defaultLocale:"en",localePrefix:"as-needed",localeDetection:!1,localeCookie:!1,alternateLinks:!1,pathnames:{"/":"/","/platform":"/platform","/migration":"/migration","/mission":"/mission","/blog":"/blog","/login":"/login","/contact":"/contact","/privacy":"/privacy","/terms":"/terms","/cookies":"/cookies","/certifications-pricing-client-retention":"/certifications-pricing-client-retention","/best-online-coaching-platforms-2026":"/best-online-coaching-platforms-2026","/cancel-group-coaching-programme":"/cancel-group-coaching-programme","/promote-online-group-coaching-programme":"/promote-online-group-coaching-programme","/online-fitness-coaching":"/online-fitness-coaching","/niche-and-brand":"/niche-and-brand","/from-in-person-to-online-coaching":"/from-in-person-to-online-coaching","/best-online-coaching-apps":"/best-online-coaching-apps","/create-workout-plan":"/create-workout-plan","/online-fitness-coaching-platforms-in-2025":"/online-fitness-coaching-platforms-in-2025","/1-1-or-group-coaching":"/1-1-or-group-coaching","/coaching-lead-magnet":"/coaching-lead-magnet","/how-to-price-your-coaching-program-perfectly":"/how-to-price-your-coaching-program-perfectly","/payments-resources-programmes":"/payments-resources-programmes","/building-online-coaching-business":"/building-online-coaching-business","/write-better-headlines":"/write-better-headlines","/attract-more-followers-social-media":"/attract-more-followers-social-media","/how-to-convert-a-follower-into-a-client":"/how-to-convert-a-follower-into-a-client","/book-more-sales-call-coach":"/book-more-sales-call-coach","/ultimate-guide-to-online-group-coaching":"/ultimate-guide-to-online-group-coaching"}});e.s(["Link",0,c,"usePathname",0,m,"useRouter",0,p],20133)},42522,e=>{"use strict";let t="cocoach_attribution",r="cocoach_fbclid",n="cocoach_fbc",l=["fbclid","utm_source","utm_medium","utm_campaign","utm_content"],i=(e,t)=>{let r=JSON.parse(e),n=Number(r.capturedAt);if(!Number.isFinite(n))return null;if(t){let e="string"==typeof r.value?r.value:"";return e?{fbclid:e,capturedAt:n}:null}let i={};for(let e of l){let t=r[e];"string"==typeof t&&t&&(i[e]=t)}return Object.keys(i).length>0?{...i,capturedAt:n}:null};e.s(["clear",0,()=>{try{for(let e of[t,r,n])window.localStorage.removeItem(e)}catch{}},"readFresh",0,e=>{for(let[n,l]of[[t,!1],[r,!0]])try{let t=window.localStorage.getItem(n);if(!t)continue;let r=i(t,l);if(r&&e-r.capturedAt<6048e5)return r;window.localStorage.removeItem(n)}catch{}return null},"readFromSearch",0,e=>{let t=new URLSearchParams(e),r={};for(let e of l){let n=t.get(e)?.trim();n&&(r[e]=n)}return Object.keys(r).length>0?r:null},"store",0,(e,l)=>{try{let i={...e,capturedAt:l};window.localStorage.setItem(t,JSON.stringify(i)),window.localStorage.removeItem(r),window.localStorage.removeItem(n)}catch{}}])}]);
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.