@mobielnl/elements 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/elements.css +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.umd.cjs +147 -74
- package/dist/{index-DPm2lMF_.js → index-COkpTNMQ.js} +1 -1
- package/dist/{index-BlJG1vwG.js → index-gTGsN7B4.js} +17678 -16900
- package/dist/index.d.ts +176 -105
- package/package.json +2 -1
package/dist/elements.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Et,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],f):(Et=typeof globalThis<"u"?globalThis:Et||self,f(Et.Elements={},Et.React,Et.ReactDOM))})(this,function(Et,f,Wn){"use strict";"use client";var process=typeof globalThis<"u"&&globalThis.process?globalThis.process:{env:{NODE_ENV:"production"}};function i1(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const At=i1(f);var Ts={exports:{}},Do={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var pd;function a1(){if(pd)return Do;pd=1;var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(a,l,c){var u,d={},p=null,h=null;c!==void 0&&(p=""+c),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(h=l.ref);for(u in l)n.call(l,u)&&!s.hasOwnProperty(u)&&(d[u]=l[u]);if(a&&a.defaultProps)for(u in l=a.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:a,key:p,ref:h,props:d,_owner:o.current}}return Do.Fragment=r,Do.jsx=i,Do.jsxs=i,Do}var Ao={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,44 +14,30 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+R+O}}var
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var hd;function l1(){return hd||(hd=1,process.env.NODE_ENV!=="production"&&function(){var e=f,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=Symbol.iterator,m="@@iterator";function x(O){if(O===null||typeof O!="object")return null;var J=g&&O[g]||O[m];return typeof J=="function"?J:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function $(O){{for(var J=arguments.length,se=new Array(J>1?J-1:0),ve=1;ve<J;ve++)se[ve-1]=arguments[ve];C("error",O,se)}}function C(O,J,se){{var ve=v.ReactDebugCurrentFrame,re=ve.getStackAddendum();re!==""&&(J+="%s",se=se.concat([re]));var Ae=se.map(function(De){return String(De)});Ae.unshift("Warning: "+J),Function.prototype.apply.call(console[O],console,Ae)}}var E=!1,T=!1,k=!1,D=!1,P=!1,V;V=Symbol.for("react.module.reference");function F(O){return!!(typeof O=="string"||typeof O=="function"||O===n||O===s||P||O===o||O===c||O===u||D||O===h||E||T||k||typeof O=="object"&&O!==null&&(O.$$typeof===p||O.$$typeof===d||O.$$typeof===i||O.$$typeof===a||O.$$typeof===l||O.$$typeof===V||O.getModuleId!==void 0))}function y(O,J,se){var ve=O.displayName;if(ve)return ve;var re=J.displayName||J.name||"";return re!==""?se+"("+re+")":se}function M(O){return O.displayName||"Context"}function A(O){if(O==null)return null;if(typeof O.tag=="number"&&$("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case a:var J=O;return M(J)+".Consumer";case i:var se=O;return M(se._context)+".Provider";case l:return y(O,O.render,"ForwardRef");case d:var ve=O.displayName||null;return ve!==null?ve:A(O.type)||"Memo";case p:{var re=O,Ae=re._payload,De=re._init;try{return A(De(Ae))}catch{return null}}}return null}var I=Object.assign,N=0,w,S,_,B,L,K,z;function W(){}W.__reactDisabledLog=!0;function U(){{if(N===0){w=console.log,S=console.info,_=console.warn,B=console.error,L=console.group,K=console.groupCollapsed,z=console.groupEnd;var O={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:O,log:O,warn:O,error:O,group:O,groupCollapsed:O,groupEnd:O})}N++}}function ee(){{if(N--,N===0){var O={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},O,{value:w}),info:I({},O,{value:S}),warn:I({},O,{value:_}),error:I({},O,{value:B}),group:I({},O,{value:L}),groupCollapsed:I({},O,{value:K}),groupEnd:I({},O,{value:z})})}N<0&&$("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var G=v.ReactCurrentDispatcher,R;function me(O,J,se){{if(R===void 0)try{throw Error()}catch(re){var ve=re.stack.trim().match(/\n( *(at )?)/);R=ve&&ve[1]||""}return`
|
|
18
|
+
`+R+O}}var ue=!1,Q;{var ie=typeof WeakMap=="function"?WeakMap:Map;Q=new ie}function q(O,J){if(!O||ue)return"";{var se=Q.get(O);if(se!==void 0)return se}var ve;ue=!0;var re=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=G.current,G.current=null,U();try{if(J){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(Dt){ve=Dt}Reflect.construct(O,[],De)}else{try{De.call()}catch(Dt){ve=Dt}O.call(De.prototype)}}else{try{throw Error()}catch(Dt){ve=Dt}O()}}catch(Dt){if(Dt&&ve&&typeof Dt.stack=="string"){for(var Se=Dt.stack.split(`
|
|
19
|
+
`),St=ve.stack.split(`
|
|
20
|
+
`),rt=Se.length-1,st=St.length-1;rt>=1&&st>=0&&Se[rt]!==St[st];)st--;for(;rt>=1&&st>=0;rt--,st--)if(Se[rt]!==St[st]){if(rt!==1||st!==1)do if(rt--,st--,st<0||Se[rt]!==St[st]){var Ht=`
|
|
21
|
+
`+Se[rt].replace(" at new "," at ");return O.displayName&&Ht.includes("<anonymous>")&&(Ht=Ht.replace("<anonymous>",O.displayName)),typeof O=="function"&&Q.set(O,Ht),Ht}while(rt>=1&&st>=0);break}}}finally{ue=!1,G.current=Ae,ee(),Error.prepareStackTrace=re}var tn=O?O.displayName||O.name:"",Or=tn?me(tn):"";return typeof O=="function"&&Q.set(O,Or),Or}function X(O,J,se){return q(O,!1)}function le(O){var J=O.prototype;return!!(J&&J.isReactComponent)}function ae(O,J,se){if(O==null)return"";if(typeof O=="function")return q(O,le(O));if(typeof O=="string")return me(O);switch(O){case c:return me("Suspense");case u:return me("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case l:return X(O.render);case d:return ae(O.type,J,se);case p:{var ve=O,re=ve._payload,Ae=ve._init;try{return ae(Ae(re),J,se)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,be={},Me=v.ReactDebugCurrentFrame;function ye(O){if(O){var J=O._owner,se=ae(O.type,O._source,J?J.type:null);Me.setExtraStackFrame(se)}else Me.setExtraStackFrame(null)}function te(O,J,se,ve,re){{var Ae=Function.call.bind(oe);for(var De in O)if(Ae(O,De)){var Se=void 0;try{if(typeof O[De]!="function"){var St=Error((ve||"React class")+": "+se+" type `"+De+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[De]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw St.name="Invariant Violation",St}Se=O[De](J,De,ve,se,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(rt){Se=rt}Se&&!(Se instanceof Error)&&(ye(re),$("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",se,De,typeof Se),ye(null)),Se instanceof Error&&!(Se.message in be)&&(be[Se.message]=!0,ye(re),$("Failed %s type: %s",se,Se.message),ye(null))}}}var je=Array.isArray;function xe(O){return je(O)}function We(O){{var J=typeof Symbol=="function"&&Symbol.toStringTag,se=J&&O[Symbol.toStringTag]||O.constructor.name||"Object";return se}}function lt(O){try{return Te(O),!1}catch{return!0}}function Te(O){return""+O}function Ge(O){if(lt(O))return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",We(O)),Te(O)}var pt=v.ReactCurrentOwner,Ft={key:!0,ref:!0,__self:!0,__source:!0},Oe,Ct;function It(O){if(oe.call(O,"ref")){var J=Object.getOwnPropertyDescriptor(O,"ref").get;if(J&&J.isReactWarning)return!1}return O.ref!==void 0}function _t(O){if(oe.call(O,"key")){var J=Object.getOwnPropertyDescriptor(O,"key").get;if(J&&J.isReactWarning)return!1}return O.key!==void 0}function Wt(O,J){typeof O.ref=="string"&&pt.current}function Ze(O,J){{var se=function(){Oe||(Oe=!0,$("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",J))};se.isReactWarning=!0,Object.defineProperty(O,"key",{get:se,configurable:!0})}}function Ar(O,J){{var se=function(){Ct||(Ct=!0,$("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",J))};se.isReactWarning=!0,Object.defineProperty(O,"ref",{get:se,configurable:!0})}}var lr=function(O,J,se,ve,re,Ae,De){var Se={$$typeof:t,type:O,key:J,ref:se,props:De,_owner:Ae};return Se._store={},Object.defineProperty(Se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(Se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:re}),Object.freeze&&(Object.freeze(Se.props),Object.freeze(Se)),Se};function Qr(O,J,se,ve,re){{var Ae,De={},Se=null,St=null;se!==void 0&&(Ge(se),Se=""+se),_t(J)&&(Ge(J.key),Se=""+J.key),It(J)&&(St=J.ref,Wt(J,re));for(Ae in J)oe.call(J,Ae)&&!Ft.hasOwnProperty(Ae)&&(De[Ae]=J[Ae]);if(O&&O.defaultProps){var rt=O.defaultProps;for(Ae in rt)De[Ae]===void 0&&(De[Ae]=rt[Ae])}if(Se||St){var st=typeof O=="function"?O.displayName||O.name||"Unknown":O;Se&&Ze(De,st),St&&Ar(De,st)}return lr(O,Se,St,re,ve,pt.current,De)}}var Vt=v.ReactCurrentOwner,Ce=v.ReactDebugCurrentFrame;function ze(O){if(O){var J=O._owner,se=ae(O.type,O._source,J?J.type:null);Ce.setExtraStackFrame(se)}else Ce.setExtraStackFrame(null)}var Mt;Mt=!1;function $t(O){return typeof O=="object"&&O!==null&&O.$$typeof===t}function rr(){{if(Vt.current){var O=A(Vt.current.type);if(O)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+O+"`."}return""}}function _o(O){return""}var
|
|
23
|
+
Check the render method of \``+O+"`."}return""}}function _o(O){return""}var Nr={};function Ut(O){{var J=rr();if(!J){var se=typeof O=="string"?O:O.displayName||O.name;se&&(J=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+se+">.")}return J}}function Vn(O,J){{if(!O._store||O._store.validated||O.key!=null)return;O._store.validated=!0;var se=Ut(J);if(Nr[se])return;Nr[se]=!0;var ve="";O&&O._owner&&O._owner!==Vt.current&&(ve=" It was passed a child from "+A(O._owner.type)+"."),ze(O),$('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',se,ve),ze(null)}}function jn(O,J){{if(typeof O!="object")return;if(xe(O))for(var se=0;se<O.length;se++){var ve=O[se];$t(ve)&&Vn(ve,J)}else if($t(O))O._store&&(O._store.validated=!0);else if(O){var re=x(O);if(typeof re=="function"&&re!==O.entries)for(var Ae=re.call(O),De;!(De=Ae.next()).done;)$t(De.value)&&Vn(De.value,J)}}}function qe(O){{var J=O.type;if(J==null||typeof J=="string")return;var se;if(typeof J=="function")se=J.propTypes;else if(typeof J=="object"&&(J.$$typeof===l||J.$$typeof===d))se=J.propTypes;else return;if(se){var ve=A(J);te(se,O.props,"prop",ve,O)}else if(J.PropTypes!==void 0&&!Mt){Mt=!0;var re=A(J);$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",re||"Unknown")}typeof J.getDefaultProps=="function"&&!J.getDefaultProps.isReactClassApproved&&$("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function zn(O){{for(var J=Object.keys(O.props),se=0;se<J.length;se++){var ve=J[se];if(ve!=="children"&&ve!=="key"){ze(O),$("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),ze(null);break}}O.ref!==null&&(ze(O),$("Invalid attribute `ref` supplied to `React.Fragment`."),ze(null))}}var Bn={};function en(O,J,se,ve,re,Ae){{var De=F(O);if(!De){var Se="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(Se+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var St=_o();St?Se+=St:Se+=rr();var rt;O===null?rt="null":xe(O)?rt="array":O!==void 0&&O.$$typeof===t?(rt="<"+(A(O.type)||"Unknown")+" />",Se=" Did you accidentally export a JSX literal instead of a component?"):rt=typeof O,$("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",rt,Se)}var st=Qr(O,J,se,re,Ae);if(st==null)return st;if(De){var Ht=J.children;if(Ht!==void 0)if(ve)if(xe(Ht)){for(var tn=0;tn<Ht.length;tn++)jn(Ht[tn],O);Object.freeze&&Object.freeze(Ht)}else $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else jn(Ht,O)}if(oe.call(J,"key")){var Or=A(O),Dt=Object.keys(J).filter(function(fd){return fd!=="key"}),Ss=Dt.length>0?"{key: someKey, "+Dt.join(": ..., ")+": ...}":"{key: someKey}";if(!Bn[Or+Ss]){var dd=Dt.length>0?"{"+Dt.join(": ..., ")+": ...}":"{}";$(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Si,Nr,yd,Nr),Vn[Nr+Si]=!0}}return O===n?Fn(ot):Ye(ot),ot}}function ke(O,X,oe){return Qr(O,X,oe,!0)}function Mo(O,X,oe){return Qr(O,X,oe,!1)}var jn=Mo,Pi=ke;Ao.Fragment=n,Ao.jsx=jn,Ao.jsxs=Pi}()),Ao}var Ed;function E1(){return Ed||(Ed=1,process.env.NODE_ENV==="production"?Ci.exports=w1():Ci.exports=$1()),Ci.exports}var y=E1(),P1={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},S1={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},C1={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},T1={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},k1={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},I1={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},_1={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},J={solid:P1,shadow:S1,bordered:C1,flat:T1,faded:k1,light:I1,ghost:_1},M1={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},D1={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},A1={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},O1={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},dr="250ms",N1={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":dr},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":dr},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":dr},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":dr},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":dr},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":dr},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":dr},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":dr},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":dr},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":dr}},L1={...D1,...N1,...A1,...O1,...M1},Ti=["small","medium","large"],Na={theme:{spacing:["divider"],radius:Ti},classGroups:{shadow:[{shadow:Ti}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...Ti]}],"border-w":[{border:Ti}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys(L1).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},Pd=e=>e===!1?"false":e===!0?"true":e===0?"0":e,jt=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},F1=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let i=r[o];if(!n.includes(i)||e[i]!==t[i])return!1}return!0};function Sd(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Sd(n,t):t.push(n)}}var Cd=(...e)=>{let t=[];Sd(e,t);let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},Td=(e,t)=>{let r={};for(let n in e){let o=e[n];if(n in t){let i=t[n];Array.isArray(o)||Array.isArray(i)?r[n]=Cd(i,o):typeof o=="object"&&typeof i=="object"&&o&&i?r[n]=Td(o,i):r[n]=i+" "+o}else r[n]=o}for(let n in t)n in e||(r[n]=t[n]);return r},V1=/\s+/g,kd=e=>!e||typeof e!="string"?e:e.replace(V1," ").trim();const La="-",j1=e=>{const t=B1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:s=>{const a=s.split(La);return a[0]===""&&a.length!==1&&a.shift(),Id(a,t)||z1(s)},getConflictingClassGroupIds:(s,a)=>{const l=r[s]||[];return a&&n[s]?[...l,...n[s]]:l}}},Id=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Id(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(La);return t.validators.find(({validator:s})=>s(i))?.classGroupId},_d=/^\[(.+)\]$/,z1=e=>{if(_d.test(e)){const t=_d.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},B1=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Fa(r[o],n,o,t);return n},Fa=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Md(t,o);i.classGroupId=r;return}if(typeof o=="function"){if(R1(o)){Fa(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,s])=>{Fa(s,Md(t,i),r,n)})})},Md=(e,t)=>{let r=e;return t.split(La).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},R1=e=>e.isThemeGetter,K1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(i,s)=>{r.set(i,s),t++,t>e&&(t=0,n=r,r=new Map)};return{get(i){let s=r.get(i);if(s!==void 0)return s;if((s=n.get(i))!==void 0)return o(i,s),s},set(i,s){r.has(i)?r.set(i,s):o(i,s)}}},Va="!",ja=":",W1=ja.length,U1=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let s=0,a=0,l=0,c;for(let g=0;g<o.length;g++){let m=o[g];if(s===0&&a===0){if(m===ja){i.push(o.slice(l,g)),l=g+W1;continue}if(m==="/"){c=g;continue}}m==="["?s++:m==="]"?s--:m==="("?a++:m===")"&&a--}const u=i.length===0?o:o.substring(l),d=H1(u),h=d!==u,p=c&&c>l?c-l:void 0;return{modifiers:i,hasImportantModifier:h,baseClassName:d,maybePostfixModifierPosition:p}};if(t){const o=t+ja,i=n;n=s=>s.startsWith(o)?i(s.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:s,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},H1=e=>e.endsWith(Va)?e.substring(0,e.length-1):e.startsWith(Va)?e.substring(1):e,G1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let i=[];return n.forEach(s=>{s[0]==="["||t[s]?(o.push(...i.sort(),s),i=[]):i.push(s)}),o.push(...i.sort()),o}},Z1=e=>({cache:K1(e.cacheSize),parseClassName:U1(e),sortModifiers:G1(e),...j1(e)}),q1=/\s+/,Y1=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(q1);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:h,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!m,v=n(x?g.substring(0,m):g);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=n(g),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const $=i(h).join(":"),S=p?$+Va:$,C=S+v;if(s.includes(C))continue;s.push(C);const T=o(v,x);for(let k=0;k<T.length;++k){const D=T[k];s.push(S+D)}l=u+(l.length>0?" "+l:l)}return l};function X1(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Dd(t))&&(n&&(n+=" "),n+=r);return n}const Dd=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Dd(e[n]))&&(r&&(r+=" "),r+=t);return r};function za(e,...t){let r,n,o,i=s;function s(l){const c=t.reduce((u,d)=>d(u),e());return r=Z1(c),n=r.cache.get,o=r.cache.set,i=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=Y1(l,r);return o(l,u),u}return function(){return i(X1.apply(null,arguments))}}const pt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Ad=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Od=/^\((?:(\w[\w-]*):)?(.+)\)$/i,J1=/^\d+\/\d+$/,Q1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ex=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,tx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,nx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rn=e=>J1.test(e),$e=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>!!e&&Number.isInteger(Number(e)),Ba=e=>e.endsWith("%")&&$e(e.slice(0,-1)),wr=e=>Q1.test(e),ox=()=>!0,ix=e=>ex.test(e)&&!tx.test(e),Nd=()=>!1,sx=e=>rx.test(e),ax=e=>nx.test(e),lx=e=>!le(e)&&!ue(e),ux=e=>Kn(e,zd,Nd),le=e=>Ad.test(e),tn=e=>Kn(e,Bd,ix),Ra=e=>Kn(e,hx,$e),Ld=e=>Kn(e,Vd,Nd),cx=e=>Kn(e,jd,ax),ki=e=>Kn(e,Rd,sx),ue=e=>Od.test(e),Oo=e=>Wn(e,Bd),dx=e=>Wn(e,mx),Fd=e=>Wn(e,Vd),fx=e=>Wn(e,zd),px=e=>Wn(e,jd),Ii=e=>Wn(e,Rd,!0),Kn=(e,t,r)=>{const n=Ad.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Wn=(e,t,r=!1)=>{const n=Od.exec(e);return n?n[1]?t(n[1]):r:!1},Vd=e=>e==="position"||e==="percentage",jd=e=>e==="image"||e==="url",zd=e=>e==="length"||e==="size"||e==="bg-size",Bd=e=>e==="length",hx=e=>e==="number",mx=e=>e==="family-name",Rd=e=>e==="shadow",Ka=()=>{const e=pt("color"),t=pt("font"),r=pt("text"),n=pt("font-weight"),o=pt("tracking"),i=pt("leading"),s=pt("breakpoint"),a=pt("container"),l=pt("spacing"),c=pt("radius"),u=pt("shadow"),d=pt("inset-shadow"),h=pt("text-shadow"),p=pt("drop-shadow"),g=pt("blur"),m=pt("perspective"),x=pt("aspect"),v=pt("ease"),$=pt("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...C(),ue,le],k=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],E=()=>[ue,le,l],V=()=>[Rn,"full","auto",...E()],F=()=>[Lr,"none","subgrid",ue,le],b=()=>["auto",{span:["full",Lr,ue,le]},Lr,ue,le],M=()=>[Lr,"auto",ue,le],A=()=>["auto","min","max","fr",ue,le],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...E()],P=()=>[Rn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],_=()=>[e,ue,le],B=()=>[...C(),Fd,Ld,{position:[ue,le]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",fx,ux,{size:[ue,le]}],z=()=>[Ba,Oo,tn],W=()=>["","none","full",c,ue,le],U=()=>["",$e,Oo,tn],ee=()=>["solid","dashed","dotted","double"],Z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[$e,Ba,Fd,Ld],he=()=>["","none",g,ue,le],fe=()=>["none",$e,ue,le],Q=()=>["none",$e,ue,le],se=()=>[$e,ue,le],q=()=>[Rn,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wr],breakpoint:[wr],color:[ox],container:[wr],"drop-shadow":[wr],ease:["in","out","in-out"],font:[lx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wr],shadow:[wr],spacing:["px",$e],text:[wr],"text-shadow":[wr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rn,le,ue,x]}],container:["container"],columns:[{columns:[$e,le,ue,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Lr,"auto",ue,le]}],basis:[{basis:[Rn,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$e,Rn,"auto","initial","none",le]}],grow:[{grow:["",$e,ue,le]}],shrink:[{shrink:["",$e,ue,le]}],order:[{order:[Lr,"first","last","none",ue,le]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:b()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:b()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[a,"screen",...P()]}],"min-w":[{"min-w":[a,"screen","none",...P()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",r,Oo,tn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,ue,Ra]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ba,le]}],"font-family":[{font:[dx,le,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ue,le]}],"line-clamp":[{"line-clamp":[$e,"none",ue,Ra]}],leading:[{leading:[i,...E()]}],"list-image":[{"list-image":["none",ue,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ue,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[$e,"from-font","auto",ue,tn]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[$e,"auto",ue,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ue,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ue,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lr,ue,le],radial:["",ue,le],conic:[Lr,ue,le]},px,cx]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$e,ue,le]}],"outline-w":[{outline:["",$e,Oo,tn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,Ii,ki]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,Ii,ki]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[$e,tn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",h,Ii,ki]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[$e,ue,le]}],"mix-blend":[{"mix-blend":[...Z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[$e]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[ue,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[$e]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ue,le]}],filter:[{filter:["","none",ue,le]}],blur:[{blur:he()}],brightness:[{brightness:[$e,ue,le]}],contrast:[{contrast:[$e,ue,le]}],"drop-shadow":[{"drop-shadow":["","none",p,Ii,ki]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",$e,ue,le]}],"hue-rotate":[{"hue-rotate":[$e,ue,le]}],invert:[{invert:["",$e,ue,le]}],saturate:[{saturate:[$e,ue,le]}],sepia:[{sepia:["",$e,ue,le]}],"backdrop-filter":[{"backdrop-filter":["","none",ue,le]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[$e,ue,le]}],"backdrop-contrast":[{"backdrop-contrast":[$e,ue,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$e,ue,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$e,ue,le]}],"backdrop-invert":[{"backdrop-invert":["",$e,ue,le]}],"backdrop-opacity":[{"backdrop-opacity":[$e,ue,le]}],"backdrop-saturate":[{"backdrop-saturate":[$e,ue,le]}],"backdrop-sepia":[{"backdrop-sepia":["",$e,ue,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ue,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$e,"initial",ue,le]}],ease:[{ease:["linear","initial",v,ue,le]}],delay:[{delay:[$e,ue,le]}],animate:[{animate:["none",$,ue,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,ue,le]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[ue,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ue,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ue,le]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[$e,Oo,tn,Ra]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},gx=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:i={}})=>(No(e,"cacheSize",t),No(e,"prefix",r),No(e,"experimentalParseClassName",n),_i(e.theme,i.theme),_i(e.classGroups,i.classGroups),_i(e.conflictingClassGroups,i.conflictingClassGroups),_i(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),No(e,"orderSensitiveModifiers",i.orderSensitiveModifiers),Mi(e.theme,o.theme),Mi(e.classGroups,o.classGroups),Mi(e.conflictingClassGroups,o.conflictingClassGroups),Mi(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Kd(e,o,"orderSensitiveModifiers"),e),No=(e,t,r)=>{r!==void 0&&(e[t]=r)},_i=(e,t)=>{if(t)for(const r in t)No(e,r,t[r])},Mi=(e,t)=>{if(t)for(const r in t)Kd(e,t,r)},Kd=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Wd=(e,...t)=>typeof e=="function"?za(Ka,e,...t):za(()=>gx(Ka(),e),...t),vx=za(Ka);var bx=e=>jt(e)?vx:Wd({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),yx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},Di=(...e)=>{let t=[];Ud(e,t);let r="";for(let n=0;n<t.length;n++)t[n]&&(r&&(r+=" "),r+=t[n]);return r||void 0};function Ud(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Ud(n,t):n&&t.push(n)}}var Wa=null,Ua={},Ha=!1,Ai=(...e)=>t=>{let r=Di(e);return!r||!t.twMerge?r:((!Wa||Ha)&&(Ha=!1,Wa=bx(Ua)),Wa(r)||void 0)},Hd=(e,t)=>{for(let r in t)r in e?e[r]=Di(e[r],t[r]):e[r]=t[r];return e},xx=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=e,l={...yx,...t},c=r?.base?Di(r.base,e?.base):e?.base,u=r?.variants&&!jt(r.variants)?Td(o,r.variants):o,d=r?.defaultVariants&&!jt(r.defaultVariants)?{...r.defaultVariants,...a}:a;!jt(l.twMergeConfig)&&!F1(l.twMergeConfig,Ua)&&(Ha=!0,Ua=l.twMergeConfig);let h=jt(r?.slots),p=jt(n)?{}:{base:Di(e?.base,h&&r?.base),...n},g=h?p:Hd({...r?.slots},jt(p)?{base:e?.base}:p),m=jt(r?.compoundVariants)?i:Cd(r?.compoundVariants,i),x=$=>{if(jt(u)&&jt(n)&&h)return Ai(c,$?.class,$?.className)(l);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof m}`);if(s&&!Array.isArray(s))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof s}`);let S=(M,A,I=[],N)=>{let w=I;if(typeof A=="string"){let P=kd(A).split(" ");for(let _=0;_<P.length;_++)w.push(`${M}:${P[_]}`)}else if(Array.isArray(A))for(let P=0;P<A.length;P++)w.push(`${M}:${A[P]}`);else if(typeof A=="object"&&typeof N=="string"&&N in A){let P=A[N];if(P&&typeof P=="string"){let _=kd(P).split(" "),B=[];for(let L=0;L<_.length;L++)B.push(`${M}:${_[L]}`);w[N]=w[N]?w[N].concat(B):B}else if(Array.isArray(P)&&P.length>0){let _=[];for(let B=0;B<P.length;B++)_.push(`${M}:${P[B]}`);w[N]=_}}return w},C=(M,A=u,I=null,N=null)=>{let w=A[M];if(!w||jt(w))return null;let P=N?.[M]??$?.[M];if(P===null)return null;let _=Pd(P),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,L=d?.[M],K=[];if(typeof _=="object"&&B)for(let[U,ee]of Object.entries(_)){let Z=w[ee];if(U==="initial"){L=ee;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(U)||(K=S(U,Z,K,I))}let z=_!=null&&typeof _!="object"?_:Pd(L),W=w[z||"false"];return typeof K=="object"&&typeof I=="string"&&K[I]?Hd(K,W):K.length>0?(K.push(W),I==="base"?K.join(" "):K):W},T=()=>{if(!u)return null;let M=Object.keys(u),A=[];for(let I=0;I<M.length;I++){let N=C(M[I],u);N&&A.push(N)}return A},k=(M,A)=>{if(!u||typeof u!="object")return null;let I=[];for(let N in u){let w=C(N,u,M,A),P=M==="base"&&typeof w=="string"?w:w&&w[M];P&&I.push(P)}return I},D={};for(let M in $){let A=$[M];A!==void 0&&(D[M]=A)}let E=(M,A)=>{let I=typeof $?.[M]=="object"?{[M]:$[M]?.initial}:{};return{...d,...D,...I,...A}},V=(M=[],A)=>{let I=[],N=M.length;for(let w=0;w<N;w++){let{class:P,className:_,...B}=M[w],L=!0,K=E(null,A);for(let z in B){let W=B[z],U=K[z];if(Array.isArray(W)){if(!W.includes(U)){L=!1;break}}else{if((W==null||W===!1)&&(U==null||U===!1))continue;if(U!==W){L=!1;break}}}L&&(P&&I.push(P),_&&I.push(_))}return I},F=M=>{let A=V(m,M);if(!Array.isArray(A))return A;let I={},N=Ai;for(let w=0;w<A.length;w++){let P=A[w];if(typeof P=="string")I.base=N(I.base,P)(l);else if(typeof P=="object")for(let _ in P)I[_]=N(I[_],P[_])(l)}return I},b=M=>{if(s.length<1)return null;let A={},I=E(null,M);for(let N=0;N<s.length;N++){let{slots:w=[],class:P,className:_,...B}=s[N];if(!jt(B)){let L=!0;for(let K in B){let z=I[K],W=B[K];if(z===void 0||(Array.isArray(W)?!W.includes(z):W!==z)){L=!1;break}}if(!L)continue}for(let L=0;L<w.length;L++){let K=w[L];A[K]||(A[K]=[]),A[K].push([P,_])}}return A};if(!jt(n)||!h){let M={};if(typeof g=="object"&&!jt(g)){let A=Ai;for(let I in g)M[I]=N=>{let w=F(N),P=b(N);return A(g[I],k(I,N),w?w[I]:void 0,P?P[I]:void 0,N?.class,N?.className)(l)}}return M}return Ai(c,T(),V(m),$?.class,$?.className)(l)},v=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return x.variantKeys=v(),x.extend=r,x.base=c,x.slots=g,x.variants=u,x.defaultVariants=d,x.compoundSlots=s,x.compoundVariants=m,x},it=(e,t)=>{var r,n,o;return xx(e,{...t,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(n=void 0)==null?void 0:n.theme,...Na.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,...Na.classGroups}}})},Oi=it({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),$r=["outline-solid outline-transparent","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ga=["outline-solid outline-transparent","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],wx=["outline-solid outline-transparent","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Un={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},Gd=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],Ni=it({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...$r],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:J.solid.foreground},primary:{base:"before:bg-primary",content:J.solid.primary},secondary:{base:"before:bg-secondary",content:J.solid.secondary},success:{base:"before:bg-success",content:J.solid.success},warning:{base:"before:bg-warning",content:J.solid.warning},danger:{base:"before:bg-danger",content:J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),$x=it({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Ga],hiddenInput:Gd,labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ms-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ms-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1}}),Ex=it({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),Px=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Sx=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Li=it({base:[],variants:{orientation:{vertical:["overflow-y-auto",...Px],horizontal:["overflow-x-auto",...Sx]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),Zd=it({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none","group-data-[has-label-outside=true]:pointer-events-auto"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-xs outline-solid outline-transparent tap-highlight-transparent",innerWrapper:"inline-flex h-fit w-[calc(100%_-theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",clearButton:["w-4","h-4","z-10","mb-4","relative","start-auto","appearance-none","outline-none","select-none","opacity-70","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...$r],helperWrapper:"p-1 flex relative flex-col gap-1.5 group-data-[has-helper=true]:flex",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger",endWrapper:"flex end-18",endContent:"mb-4"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"],clearButton:"mb-4"},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4 me-2"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small",clearButton:"text-medium"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small",clearButton:"text-large"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium",clearButton:"mb-5 text-large"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col",clearButton:"mb-0"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",label:"relative pe-2 text-foreground",clearButton:"mb-0"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isClearable:{true:{clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",endContent:"ms-3"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity,translate,scale]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none",clearButton:["transition-opacity","motion-reduce:transition-none"]}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...$r]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+var(--heroui-font-size-tiny)/2_+_16px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_26px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_30px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_34px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{labelPlacement:["outside","outside-left"],isClearable:!0,class:{endContent:["mt-4"],clearButton:["group-data-[has-end-content=true]:mt-4"]}},{isClearable:!1,labelPlacement:["outside","outside-left"],class:{endContent:["mt-4"]}},{isClearable:!0,variant:["underlined"],class:{clearButton:["relative group-data-[has-end-content=true]:left-2"],endContent:["me-2"]}},{isClearable:!1,variant:["underlined"],class:{endContent:["me-2"]}},{isClearable:!0,size:"sm",class:{endContent:"ms-2"}}]}),Za=it({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",$r],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),qd=it({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-solid outline-transparent","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...$r],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Ga]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),Cx=it({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-solid outline-transparent",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),Yd=it({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-solid outline-transparent","cursor-pointer","tap-highlight-transparent",...$r,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","shrink-0"],shortcut:["px-1","py-0.5","rounded-sm","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),Tx=it({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),Xd=it({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-solid outline-transparent","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-solid outline-transparent","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...$r]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),Jd=it({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),Qd=it({base:"flex flex-col gap-2 items-start"}),ef=it({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),kx=it({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...$r],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:J.solid.default},{variant:"solid",color:"primary",class:J.solid.primary},{variant:"solid",color:"secondary",class:J.solid.secondary},{variant:"solid",color:"success",class:J.solid.success},{variant:"solid",color:"warning",class:J.solid.warning},{variant:"solid",color:"danger",class:J.solid.danger},{variant:"shadow",color:"default",class:J.shadow.default},{variant:"shadow",color:"primary",class:J.shadow.primary},{variant:"shadow",color:"secondary",class:J.shadow.secondary},{variant:"shadow",color:"success",class:J.shadow.success},{variant:"shadow",color:"warning",class:J.shadow.warning},{variant:"shadow",color:"danger",class:J.shadow.danger},{variant:"bordered",color:"default",class:J.bordered.default},{variant:"bordered",color:"primary",class:J.bordered.primary},{variant:"bordered",color:"secondary",class:J.bordered.secondary},{variant:"bordered",color:"success",class:J.bordered.success},{variant:"bordered",color:"warning",class:J.bordered.warning},{variant:"bordered",color:"danger",class:J.bordered.danger},{variant:"flat",color:"default",class:J.flat.default},{variant:"flat",color:"primary",class:J.flat.primary},{variant:"flat",color:"secondary",class:J.flat.secondary},{variant:"flat",color:"success",class:J.flat.success},{variant:"flat",color:"warning",class:J.flat.warning},{variant:"flat",color:"danger",class:J.flat.danger},{variant:"faded",color:"default",class:J.faded.default},{variant:"faded",color:"primary",class:J.faded.primary},{variant:"faded",color:"secondary",class:J.faded.secondary},{variant:"faded",color:"success",class:J.faded.success},{variant:"faded",color:"warning",class:J.faded.warning},{variant:"faded",color:"danger",class:J.faded.danger},{variant:"light",color:"default",class:[J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[J.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[J.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[J.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[J.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[J.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[J.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Un.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Un.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Un.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Un.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Un.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Un.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});it({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var tf=it({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-solid outline-transparent","text-foreground","box-border","bg-content1",...$r],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),Ix=it({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Ga],hiddenInput:Gd,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}}),_x=it({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),rf=it({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"shrink-0",closeButton:["z-10","appearance-none","outline-solid outline-transparent","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...wx,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:J.solid.default}},{variant:"solid",color:"primary",class:{base:J.solid.primary}},{variant:"solid",color:"secondary",class:{base:J.solid.secondary}},{variant:"solid",color:"success",class:{base:J.solid.success}},{variant:"solid",color:"warning",class:{base:J.solid.warning}},{variant:"solid",color:"danger",class:{base:J.solid.danger}},{variant:"shadow",color:"default",class:{base:J.shadow.default}},{variant:"shadow",color:"primary",class:{base:J.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:J.shadow.secondary}},{variant:"shadow",color:"success",class:{base:J.shadow.success}},{variant:"shadow",color:"warning",class:{base:J.shadow.warning}},{variant:"shadow",color:"danger",class:{base:J.shadow.danger}},{variant:"bordered",color:"default",class:{base:J.bordered.default}},{variant:"bordered",color:"primary",class:{base:J.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:J.bordered.secondary}},{variant:"bordered",color:"success",class:{base:J.bordered.success}},{variant:"bordered",color:"warning",class:{base:J.bordered.warning}},{variant:"bordered",color:"danger",class:{base:J.bordered.danger}},{variant:"flat",color:"default",class:{base:J.flat.default}},{variant:"flat",color:"primary",class:{base:J.flat.primary}},{variant:"flat",color:"secondary",class:{base:J.flat.secondary}},{variant:"flat",color:"success",class:{base:J.flat.success}},{variant:"flat",color:"warning",class:{base:J.flat.warning}},{variant:"flat",color:"danger",class:{base:J.flat.danger}},{variant:"faded",color:"default",class:{base:J.faded.default}},{variant:"faded",color:"primary",class:{base:J.faded.primary}},{variant:"faded",color:"secondary",class:{base:J.faded.secondary}},{variant:"faded",color:"success",class:{base:J.faded.success}},{variant:"faded",color:"warning",class:{base:J.faded.warning}},{variant:"faded",color:"danger",class:{base:J.faded.danger}},{variant:"light",color:"default",class:{base:J.light.default}},{variant:"light",color:"primary",class:{base:J.light.primary}},{variant:"light",color:"secondary",class:{base:J.light.secondary}},{variant:"light",color:"success",class:{base:J.light.success}},{variant:"light",color:"warning",class:{base:J.light.warning}},{variant:"light",color:"danger",class:{base:J.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),Mx=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function qa(e){return Array.isArray(e)}function Dx(e){return qa(e)&&e.length===0}function nf(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!qa(e)}function Ax(e){return nf(e)&&Object.keys(e).length===0}function Ox(e){return qa(e)?Dx(e):nf(e)?Ax(e):e==null||e===""}function Nx(e){return typeof e=="function"}var pe=e=>e?"true":void 0;function of(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=of(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Be(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=of(r))&&(o&&(o+=" "),o+=n);return o}var Ya=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function Lx(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function rn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function Fx(e,t,r){return Math.min(Math.max(e,t),r)}var sf={};function Fi(e,t,...r){const o=`[Hero UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!sf[o]&&(sf[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Fr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var af=new Map;function Vx(e,t){if(e===t)return e;let r=af.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=af.get(t);return n?(n.forEach(o=>o.current=e),e):t}function ht(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Fr(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Be(i,s):o==="id"&&i&&s?t.id=Vx(i,s):t[o]=s!==void 0?s:i}}return t}function jx(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=lf(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o?.():lf(e[i],null)})}}}function lf(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function uf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=uf(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function zx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=uf(e))&&(n&&(n+=" "),n+=t);return n}var Bx=Wd({extend:Na});function j(...e){return Bx(zx(e))}function Rx({children:e,classNames:t}){return y.jsx("div",{className:j("mobielnl-elements",t?.base),children:e})}function Vi(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Nt.createContext(void 0);o.displayName=n;function i(){var s;const a=Nt.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function Kx(e){return{UNSAFE_getDOMNode(){return e.current}}}function zt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function Wx(e,t){if(e!=null){if(Nx(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function cf(...e){return t=>{e.forEach(r=>Wx(r,t))}}function Ux(){const e=()=>()=>{};return Nt.useSyncExternalStore(e,()=>!0,()=>!1)}var Hx=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),Gx=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),df=/^(data-.*)$/,Zx=/^(aria-.*)$/,ji=/^(on[A-Z].*)$/;function Tt(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:i,omitEventNames:s,omitDataProps:a,omitEventProps:l}=t,c={};if(!n)return e;for(const u in e)i?.has(u)||s?.has(u)&&ji.test(u)||ji.test(u)&&!Gx.has(u)||a&&df.test(u)||l&&ji.test(u)||(Object.prototype.hasOwnProperty.call(e,u)&&(Hx.has(u)||r&&Zx.test(u)||o?.has(u)||df.test(u))||ji.test(u))&&(c[u]=e[u]);return c}function Xa({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):Nt.createElement(e,t)}var[aM,gt]=Vi({name:"ProviderContext",strict:!1});const qx=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Yx=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Xx(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return qx.has(r.script)}let t=e.split("-")[0];return Yx.has(t)}const zi={prefix:String(Math.round(Math.random()*1e10)),current:0},ff=f.createContext(zi),Jx=f.createContext(!1);let Qx=!!(typeof window<"u"&&window.document&&window.document.createElement),Ja=new WeakMap;function ew(e=!1){let t=f.useContext(ff),r=f.useRef(null);if(r.current===null&&!e){var n,o;let i=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(i){let s=Ja.get(i);s==null?Ja.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==s.state&&(t.current=s.id,Ja.delete(i))}r.current=++t.current}return r.current}function tw(e){let t=f.useContext(ff);t===zi&&!Qx&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=ew(!!e),n=t===zi&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function rw(e){let t=f.useId(),[r]=f.useState(Hn()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${zi.prefix}`;return e||`${n}-${t}`}const pf=typeof f.useId=="function"?rw:tw;function nw(){return!1}function ow(){return!0}function iw(e){return()=>{}}function Hn(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(iw,nw,ow):f.useContext(Jx)}const sw=Symbol.for("react-aria.i18n.locale");function hf(){let e=typeof window<"u"&&window[sw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Xx(e)?"rtl":"ltr"}}let Qa=hf(),Lo=new Set;function mf(){Qa=hf();for(let e of Lo)e(Qa)}function aw(){let e=Hn(),[t,r]=f.useState(Qa);return f.useEffect(()=>(Lo.size===0&&window.addEventListener("languagechange",mf),Lo.add(r),()=>{Lo.delete(r),Lo.size===0&&window.removeEventListener("languagechange",mf)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const lw=f.createContext(null);function Fo(){let e=aw();return f.useContext(lw)||e}const uw=Symbol.for("react-aria.i18n.locale"),cw=Symbol.for("react-aria.i18n.strings");let Gn;class Bi{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=dw(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[uw];if(Gn===void 0){let o=window[cw];if(!o)return null;Gn={};for(let i in o)Gn[i]=new Bi({[r]:o[i]},r)}let n=Gn?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function dw(e,t,r="en-US"){if(t[e])return t[e];let n=fw(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function fw(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const gf=new Map,vf=new Map;class pw{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,s=gf.get(i);s||(s=new Intl.PluralRules(this.locale,{type:n}),gf.set(i,s));let a=s.select(t);return o=r[a]||r.other,typeof o=="function"?o():o}number(t){let r=vf.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),vf.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}function hw(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bf(e,t,r){hw(e,t),t.set(e,r)}const nn=typeof document<"u"?f.useLayoutEffect:()=>{};var el;const mw=(el=f.useInsertionEffect)!==null&&el!==void 0?el:nn;function Gt(e){const t=f.useRef(null);return mw(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}let gw=!!(typeof window<"u"&&window.document&&window.document.createElement),Zn=new Map,Vo;typeof FinalizationRegistry<"u"&&(Vo=new FinalizationRegistry(e=>{Zn.delete(e)}));function vw(e){let[t,r]=f.useState(e),n=f.useRef(null),o=pf(t),i=f.useRef(null);if(Vo&&Vo.register(i,o),gw){const s=Zn.get(o);s&&!s.includes(n)?s.push(n):Zn.set(o,[n])}return nn(()=>{let s=o;return()=>{Vo&&Vo.unregister(i),Zn.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function bw(e,t){if(e===t)return e;let r=Zn.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Zn.get(t);return n?(n.forEach(o=>o.current=e),e):t}function yf(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Et=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Zt=e=>e&&"window"in e&&e.window===e?e:Et(e).defaultView||window;function yw(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function xw(e){return yw(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let ww=!1;function on(){return ww}function rt(e,t){if(!on())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:xw(r)?r=r.host:r=r.parentNode}return!1}const jo=(e=document)=>{var t;if(!on())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Ze(e){return on()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function xf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=xf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function wf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xf(e))&&(n&&(n+=" "),n+=t);return n}function kt(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=yf(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=wf(i,s):o==="id"&&i&&s?t.id=bw(i,s):t[o]=s!==void 0?s:i}}return t}const $w=new Set(["id"]),Ew=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Pw=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),Sw=new Set(["dir","lang","hidden","inert","translate"]),$f=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),Cw=/^(data-.*)$/;function Ri(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&($w.has(l)||r&&Ew.has(l)||n&&Pw.has(l)||o&&Sw.has(l)||i&&$f.has(l)||l.endsWith("Capture")&&$f.has(l.slice(0,-7))||s?.has(l)||Cw.test(l))&&(a[l]=e[l]);return a}function sn(e){if(Tw())e.focus({preventScroll:!0});else{let t=kw(e);e.focus(),Iw(t)}}let Ki=null;function Tw(){if(Ki==null){Ki=!1;try{document.createElement("div").focus({get preventScroll(){return Ki=!0,!0}})}catch{}}return Ki}function kw(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Iw(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Wi(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function tl(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Er(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const qn=Er(function(){return tl(/^Mac/i)}),_w=Er(function(){return tl(/^iPhone/i)}),Ef=Er(function(){return tl(/^iPad/i)||qn()&&navigator.maxTouchPoints>1}),rl=Er(function(){return _w()||Ef()});Er(function(){return qn()||rl()});const Pf=Er(function(){return Wi(/AppleWebKit/i)&&!Mw()}),Mw=Er(function(){return Wi(/Chrome/i)}),Sf=Er(function(){return Wi(/Android/i)}),Dw=Er(function(){return Wi(/Firefox/i)});function zo(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;Dw()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(qn()?i=!0:s=!0);let c=Pf()&&qn()&&!Ef()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});zo.isOpening=r,sn(e),e.dispatchEvent(c),zo.isOpening=!1}zo.isOpening=!1;let Vr=new Map,nl=new Set;function Cf(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Vr.get(n.target);o||(o=new Set,Vr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Vr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Vr.delete(n.target)),Vr.size===0)){for(let i of nl)i();nl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?Cf():document.addEventListener("DOMContentLoaded",Cf));function Aw(){for(const[e]of Vr)"isConnected"in e&&!e.isConnected&&Vr.delete(e)}function Tf(e){requestAnimationFrame(()=>{Aw(),Vr.size===0?e():nl.add(e)})}function Yn(){let e=f.useRef(new Map),t=f.useCallback((o,i,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),r=f.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Ow(){return typeof window.ResizeObserver<"u"}function kf(e){const{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t?.current;if(o)if(Ow()){const i=new window.ResizeObserver(s=>{s.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function If(e,t){nn(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function ol(e){return e.mozInputSource===0&&e.isTrusted?!0:Sf()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Nw(e){return!Sf()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function _f(e,t,r){let n=Gt(()=>{r&&r(t)});f.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",n),()=>{i?.removeEventListener("reset",n)}},[e,n])}const Lw=typeof Element<"u"&&"checkVisibility"in Element.prototype;function Fw(e){const t=Zt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function Vw(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Mf(e,t){return Lw?e.checkVisibility():e.nodeName!=="#comment"&&Fw(e)&&Vw(e,t)&&(!e.parentElement||Mf(e.parentElement,e))}const Df=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],jw=Df.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Df.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function zw(e){return e.matches(jw)&&Mf(e)&&!Bw(e)}function Bw(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function jr(e,t,r){let[n,o]=f.useState(e||t),i=f.useRef(e!==void 0),s=e!==void 0;f.useEffect(()=>{let c=i.current;c!==s&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s},[s]);let a=s?e:n,l=f.useCallback((c,...u)=>{let d=(h,...p)=>{r&&(Object.is(a,h)||r(h,...p)),s||(a=h)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((p,...g)=>{let m=c(s?a:p,...g);return d(m,...u),s?p:m})):(s||o(c),d(c,...u))},[s,a,r]);return[a,l]}function Pr(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function Ui(e,t){let r=e,n=0,o=t.toString(),i=o.toLowerCase().indexOf("e-");if(i>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+i;else{let s=o.indexOf(".");s>=0&&(n=o.length-s)}if(n>0){let s=Math.pow(10,n);r=Math.round(r*s)/s}return r}function Bo(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,i=Ui(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(Ui(r/n,n))*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor(Ui((r-t)/n,n))*n),i=Ui(i,n),i}let il=new Map,sl=!1;try{sl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Hi=!1;try{Hi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Af={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Rw{format(t){let r="";if(!sl&&this.options.signDisplay!=null?r=Ww(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Hi){var n;let{unit:o,unitDisplay:i="short",locale:s}=this.resolvedOptions();if(!o)return r;let a=(n=Af[o])===null||n===void 0?void 0:n[i];r+=a[s]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!sl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Hi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=Kw(t,r),this.options=r}}function Kw(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!Hi){var n;let{unit:s,unitDisplay:a="short"}=t;if(!s)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Af[s])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${s} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((s,a)=>s[0]<a[0]?-1:1).join():"");if(il.has(o))return il.get(o);let i=new Intl.NumberFormat(e,t);return il.set(o,i),i}function Ww(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),s=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...s].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(s,"+").replace("!!!",i)}else return e.format(r)}}function Of(e={}){let{locale:t}=Fo();return f.useMemo(()=>new Rw(t,e),[t,e])}const Nf=f.createContext({});function al(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const ll=typeof window<"u",Lf=ll?f.useLayoutEffect:f.useEffect,Gi=f.createContext(null);function Uw(e,t){e.indexOf(t)===-1&&e.push(t)}function Hw(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const an=(e,t,r)=>r>t?t:r<e?e:r;function ul(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let Xn=()=>{},zr=()=>{};process.env.NODE_ENV!=="production"&&(Xn=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(ul(t,r))},zr=(e,t,r)=>{if(!e)throw new Error(ul(t,r))});const Sr={},Ff=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Gw(e){return typeof e=="object"&&e!==null}const Vf=e=>/^0[^.\s]+$/u.test(e);function cl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Jn=e=>e,Zw=(e,t)=>r=>t(e(r)),Zi=(...e)=>e.reduce(Zw),jf=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class zf{constructor(){this.subscriptions=[]}add(t){return Uw(this.subscriptions,t),()=>Hw(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){const s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const fr=e=>e*1e3,Cr=e=>e/1e3;function Bf(e,t){return t?e*(1e3/t):0}const Rf=new Set;function dl(e,t,r){e||Rf.has(t)||(console.warn(ul(t,r)),Rf.add(t))}const Kf=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,qw=1e-7,Yw=12;function Xw(e,t,r,n,o){let i,s,a=0;do s=t+(r-t)/2,i=Kf(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>qw&&++a<Yw);return s}function Ro(e,t,r,n){if(e===t&&r===n)return Jn;const o=i=>Xw(i,0,1,e,r);return i=>i===0||i===1?i:Kf(o(i),t,n)}const Wf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Uf=e=>t=>1-e(1-t),Hf=Ro(.33,1.53,.69,.99),fl=Uf(Hf),Gf=Wf(fl),Zf=e=>(e*=2)<1?.5*fl(e):.5*(2-Math.pow(2,-10*(e-1))),pl=e=>1-Math.sin(Math.acos(e)),Jw=Uf(pl),qf=Wf(pl),Qw=Ro(.42,0,1,1),e$=Ro(0,0,.58,1),Yf=Ro(.42,0,.58,1),t$=e=>Array.isArray(e)&&typeof e[0]!="number",Xf=e=>Array.isArray(e)&&typeof e[0]=="number",Jf={linear:Jn,easeIn:Qw,easeInOut:Yf,easeOut:e$,circIn:pl,circInOut:qf,circOut:Jw,backIn:fl,backInOut:Gf,backOut:Hf,anticipate:Zf},r$=e=>typeof e=="string",Qf=e=>{if(Xf(e)){zr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return Ro(t,r,n,o)}else if(r$(e))return zr(Jf[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Jf[e];return e},qi=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function n$(e,t){let r=new Set,n=new Set,o=!1,i=!1;const s=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,h=!1)=>{const g=h&&o?r:n;return d&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(a=u,o){i=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,i&&(i=!1,c.process(u))}};return c}const o$=40;function ep(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,s=qi.reduce((S,C)=>(S[C]=n$(i),S),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:g}=s,m=()=>{const S=Sr.useManualTiming?o.timestamp:performance.now();r=!1,Sr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(S-o.timestamp,o$),1)),o.timestamp=S,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),h.process(o),p.process(o),g.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))},x=()=>{r=!0,n=!0,o.isProcessing||e(m)};return{schedule:qi.reduce((S,C)=>{const T=s[C];return S[C]=(k,D=!1,E=!1)=>(r||x(),T.schedule(k,D,E)),S},{}),cancel:S=>{for(let C=0;C<qi.length;C++)s[qi[C]].cancel(S)},state:o,steps:s}}const{schedule:sr,cancel:hl,state:Yi}=ep(typeof requestAnimationFrame<"u"?requestAnimationFrame:Jn,!0);let Xi;function i$(){Xi=void 0}const Xt={now:()=>(Xi===void 0&&Xt.set(Yi.isProcessing||Sr.useManualTiming?Yi.timestamp:performance.now()),Xi),set:e=>{Xi=e,queueMicrotask(i$)}},tp=e=>t=>typeof t=="string"&&t.startsWith(e),rp=tp("--"),s$=tp("var(--"),ml=e=>s$(e)?a$.test(e.split("/*")[0].trim()):!1,a$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Qn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ko={...Qn,transform:e=>an(0,1,e)},Ji={...Qn,default:1},Wo=e=>Math.round(e*1e5)/1e5,gl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function l$(e){return e==null}const u$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,vl=(e,t)=>r=>!!(typeof r=="string"&&u$.test(r)&&r.startsWith(e)||t&&!l$(r)&&Object.prototype.hasOwnProperty.call(r,t)),np=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,i,s,a]=n.match(gl);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},c$=e=>an(0,255,e),bl={...Qn,transform:e=>Math.round(c$(e))},ln={test:vl("rgb","red"),parse:np("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+bl.transform(e)+", "+bl.transform(t)+", "+bl.transform(r)+", "+Wo(Ko.transform(n))+")"};function d$(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const yl={test:vl("#"),parse:d$,transform:ln.transform},Uo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Br=Uo("deg"),eo=Uo("%"),be=Uo("px"),f$=Uo("vh"),p$=Uo("vw"),op={...eo,parse:e=>eo.parse(e)/100,transform:e=>eo.transform(e*100)},to={test:vl("hsl","hue"),parse:np("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+eo.transform(Wo(t))+", "+eo.transform(Wo(r))+", "+Wo(Ko.transform(n))+")"},ut={test:e=>ln.test(e)||yl.test(e)||to.test(e),parse:e=>ln.test(e)?ln.parse(e):to.test(e)?to.parse(e):yl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ln.transform(e):to.transform(e),getAnimatableNone:e=>{const t=ut.parse(e);return t.alpha=0,ut.transform(t)}},h$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function m$(e){return isNaN(e)&&typeof e=="string"&&(e.match(gl)?.length||0)+(e.match(h$)?.length||0)>0}const ip="number",sp="color",g$="var",v$="var(",ap="${}",b$=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ho(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(b$,l=>(ut.test(l)?(n.color.push(i),o.push(sp),r.push(ut.parse(l))):l.startsWith(v$)?(n.var.push(i),o.push(g$),r.push(l)):(n.number.push(i),o.push(ip),r.push(parseFloat(l))),++i,ap)).split(ap);return{values:r,split:a,indexes:n,types:o}}function lp(e){return Ho(e).values}function up(e){const{split:t,types:r}=Ho(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){const a=r[s];a===ip?i+=Wo(o[s]):a===sp?i+=ut.transform(o[s]):i+=o[s]}return i}}const y$=e=>typeof e=="number"?0:ut.test(e)?ut.getAnimatableNone(e):e;function x$(e){const t=lp(e);return up(e)(t.map(y$))}const ro={test:m$,parse:lp,createTransformer:up,getAnimatableNone:x$};function xl(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function w$({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=xl(l,a,e+1/3),i=xl(l,a,e),s=xl(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}function Qi(e,t){return r=>r>0?t:e}const es=(e,t,r)=>e+(t-e)*r,wl=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},$$=[yl,ln,to],E$=e=>$$.find(t=>t.test(e));function cp(e){const t=E$(e);if(Xn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===to&&(r=w$(r)),r}const dp=(e,t)=>{const r=cp(e),n=cp(t);if(!r||!n)return Qi(e,t);const o={...r};return i=>(o.red=wl(r.red,n.red,i),o.green=wl(r.green,n.green,i),o.blue=wl(r.blue,n.blue,i),o.alpha=es(r.alpha,n.alpha,i),ln.transform(o))},$l=new Set(["none","hidden"]);function P$(e,t){return $l.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function S$(e,t){return r=>es(e,t,r)}function El(e){return typeof e=="number"?S$:typeof e=="string"?ml(e)?Qi:ut.test(e)?dp:k$:Array.isArray(e)?fp:typeof e=="object"?ut.test(e)?dp:C$:Qi}function fp(e,t){const r=[...e],n=r.length,o=e.map((i,s)=>El(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function C$(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=El(e[o])(e[o],t[o]));return o=>{for(const i in n)r[i]=n[i](o);return r}}function T$(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][n[i]],a=e.values[s]??0;r[o]=a,n[i]++}return r}const k$=(e,t)=>{const r=ro.createTransformer(t),n=Ho(e),o=Ho(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?$l.has(e)&&!o.values.length||$l.has(t)&&!n.values.length?P$(e,t):Zi(fp(T$(n,o),o.values),r):(Xn(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Qi(e,t))};function pp(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?es(e,t,r):El(e)(e,t)}const I$=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>hl(t),now:()=>Yi.isProcessing?Yi.timestamp:Xt.now()}},hp=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let i=0;i<o;i++)n+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},ts=2e4;function Pl(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<ts;)t+=r,n=e.next(t);return t>=ts?1/0:t}function _$(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(Pl(n),ts);return{type:"keyframes",ease:i=>n.next(o*i).value/t,duration:Cr(o)}}const M$=5;function mp(e,t,r){const n=Math.max(t-M$,0);return Bf(r-e(n),t-n)}const Qe={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Sl=.001;function D$({duration:e=Qe.duration,bounce:t=Qe.bounce,velocity:r=Qe.velocity,mass:n=Qe.mass}){let o,i;Xn(e<=fr(Qe.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=an(Qe.minDamping,Qe.maxDamping,s),e=an(Qe.minDuration,Qe.maxDuration,Cr(e)),s<1?(o=c=>{const u=c*s,d=u*e,h=u-r,p=Cl(c,s),g=Math.exp(-d);return Sl-h/p*g},i=c=>{const d=c*s*e,h=d*r+r,p=Math.pow(s,2)*Math.pow(c,2)*e,g=Math.exp(-d),m=Cl(Math.pow(c,2),s);return(-o(c)+Sl>0?-1:1)*((h-p)*g)/m}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-Sl+u*d},i=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const a=5/e,l=O$(o,i,a);if(e=fr(e),isNaN(l))return{stiffness:Qe.stiffness,damping:Qe.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}const A$=12;function O$(e,t,r){let n=r;for(let o=1;o<A$;o++)n=n-e(n)/t(n);return n}function Cl(e,t){return e*Math.sqrt(1-t*t)}const N$=["duration","bounce"],L$=["stiffness","damping","mass"];function gp(e,t){return t.some(r=>e[r]!==void 0)}function F$(e){let t={velocity:Qe.velocity,stiffness:Qe.stiffness,damping:Qe.damping,mass:Qe.mass,isResolvedFromDuration:!1,...e};if(!gp(e,L$)&&gp(e,N$))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,i=2*an(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Qe.mass,stiffness:o,damping:i}}else{const r=D$(e);t={...t,...r,mass:Qe.mass},t.isResolvedFromDuration=!0}return t}function rs(e=Qe.visualDuration,t=Qe.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:p}=F$({...r,velocity:-Cr(r.velocity||0)}),g=h||0,m=c/(2*Math.sqrt(l*u)),x=s-i,v=Cr(Math.sqrt(l/u)),$=Math.abs(x)<5;n||(n=$?Qe.restSpeed.granular:Qe.restSpeed.default),o||(o=$?Qe.restDelta.granular:Qe.restDelta.default);let S;if(m<1){const T=Cl(v,m);S=k=>{const D=Math.exp(-m*v*k);return s-D*((g+m*v*x)/T*Math.sin(T*k)+x*Math.cos(T*k))}}else if(m===1)S=T=>s-Math.exp(-v*T)*(x+(g+v*x)*T);else{const T=v*Math.sqrt(m*m-1);S=k=>{const D=Math.exp(-m*v*k),E=Math.min(T*k,300);return s-D*((g+m*v*x)*Math.sinh(E)+T*x*Math.cosh(E))/T}}const C={calculatedDuration:p&&d||null,next:T=>{const k=S(T);if(p)a.done=T>=d;else{let D=T===0?g:0;m<1&&(D=T===0?fr(g):mp(S,T,k));const E=Math.abs(D)<=n,V=Math.abs(s-k)<=o;a.done=E&&V}return a.value=a.done?s:k,a},toString:()=>{const T=Math.min(Pl(C),ts),k=hp(D=>C.next(T*D).value,T,30);return T+"ms "+k},toTransition:()=>{}};return C}rs.applyToOptions=e=>{const t=_$(e,100,rs);return e.ease=t.ease,e.duration=fr(t.duration),e.type="keyframes",e};function Tl({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},p=E=>a!==void 0&&E<a||l!==void 0&&E>l,g=E=>a===void 0?l:l===void 0||Math.abs(a-E)<Math.abs(l-E)?a:l;let m=r*t;const x=d+m,v=s===void 0?x:s(x);v!==x&&(m=v-d);const $=E=>-m*Math.exp(-E/n),S=E=>v+$(E),C=E=>{const V=$(E),F=S(E);h.done=Math.abs(V)<=c,h.value=h.done?v:F};let T,k;const D=E=>{p(h.value)&&(T=E,k=rs({keyframes:[h.value,g(h.value)],velocity:mp(S,E,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:E=>{let V=!1;return!k&&T===void 0&&(V=!0,C(E),D(E)),T!==void 0&&E>=T?k.next(E-T):(!V&&C(E),h)}}}function V$(e,t,r){const n=[],o=r||Sr.mix||pp,i=e.length-1;for(let s=0;s<i;s++){let a=o(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||Jn:t;a=Zi(l,a)}n.push(a)}return n}function j$(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(zr(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=V$(t,n,o),l=a.length,c=u=>{if(s&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const h=jf(e[d],e[d+1],u);return a[d](h)};return r?u=>c(an(e[0],e[i-1],u)):c}function z$(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=jf(0,t,n);e.push(es(r,1,o))}}function B$(e){const t=[0];return z$(t,e.length-1),t}function R$(e,t){return e.map(r=>r*t)}function K$(e,t){return e.map(()=>t||Yf).splice(0,e.length-1)}function no({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=t$(n)?n.map(Qf):Qf(n),i={done:!1,value:t[0]},s=R$(r&&r.length===t.length?r:B$(t),e),a=j$(s,t,{ease:Array.isArray(o)?o:K$(t,o)});return{calculatedDuration:e,next:l=>(i.value=a(l),i.done=l>=e,i)}}const W$=e=>e!==null;function kl(e,{repeat:t,repeatType:r="loop"},n,o=1){const i=e.filter(W$),a=o<0||t&&r!=="loop"&&t%2===1?0:i.length-1;return!a||n===void 0?i[a]:n}const U$={decay:Tl,inertia:Tl,tween:no,keyframes:no,spring:rs};function vp(e){typeof e.type=="string"&&(e.type=U$[e.type])}class Il{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const H$=e=>e/100;class _l extends Il{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==Xt.now()&&this.tick(Xt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;vp(t);const{type:r=no,repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=t;let{keyframes:a}=t;const l=r||no;process.env.NODE_ENV!=="production"&&l!==no&&zr(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==no&&typeof a[0]!="number"&&(this.mixKeyframes=Zi(H$,pp(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=Pl(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:g,onUpdate:m,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let S=this.currentTime,C=n;if(d){const E=Math.min(this.currentTime,o)/a;let V=Math.floor(E),F=E%1;!F&&E>=1&&(F=1),F===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(h==="reverse"?(F=1-F,p&&(F-=p/a)):h==="mirror"&&(C=s)),S=an(0,1,F)*a}const T=$?{done:!1,value:u[0]}:C.next(S);i&&(T.value=i(T.value));let{done:k}=T;!$&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&g!==Tl&&(T.value=kl(u,this.options,x,this.speed)),m&&m(T.value),D&&this.finish(),T}then(t,r){return this.finished.then(t,r)}get duration(){return Cr(this.calculatedDuration)}get time(){return Cr(this.currentTime)}set time(t){t=fr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Cr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=I$,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function G$(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const un=e=>e*180/Math.PI,Ml=e=>{const t=un(Math.atan2(e[1],e[0]));return Dl(t)},Z$={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ml,rotateZ:Ml,skewX:e=>un(Math.atan(e[1])),skewY:e=>un(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Dl=e=>(e=e%360,e<0&&(e+=360),e),bp=Ml,yp=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),xp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),q$={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yp,scaleY:xp,scale:e=>(yp(e)+xp(e))/2,rotateX:e=>Dl(un(Math.atan2(e[6],e[5]))),rotateY:e=>Dl(un(Math.atan2(-e[2],e[0]))),rotateZ:bp,rotate:bp,skewX:e=>un(Math.atan(e[4])),skewY:e=>un(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Al(e){return e.includes("scale")?1:0}function Ol(e,t){if(!e||e==="none")return Al(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=q$,o=r;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Z$,o=a}if(!o)return Al(t);const i=n[t],s=o[1].split(",").map(X$);return typeof i=="function"?i(s):s[i]}const Y$=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Ol(r,t)};function X$(e){return parseFloat(e.trim())}const oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],io=new Set(oo),wp=e=>e===Qn||e===be,J$=new Set(["x","y","z"]),Q$=oo.filter(e=>!J$.has(e));function eE(e){const t=[];return Q$.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const cn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Ol(t,"x"),y:(e,{transform:t})=>Ol(t,"y")};cn.translateX=cn.x,cn.translateY=cn.y;const dn=new Set;let Nl=!1,Ll=!1,Fl=!1;function $p(){if(Ll){const e=Array.from(dn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=eE(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([i,s])=>{n.getValue(i)?.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Ll=!1,Nl=!1,dn.forEach(e=>e.complete(Fl)),dn.clear()}function Ep(){dn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ll=!0)})}function tE(){Fl=!0,Ep(),$p(),Fl=!1}class Vl{constructor(t,r,n,o,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(dn.add(this),Nl||(Nl=!0,sr.read(Ep),sr.resolveKeyframes($p))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const i=o?.get(),s=t[t.length-1];if(i!==void 0)t[0]=i;else if(n&&r){const a=n.readValue(r,s);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=s),o&&i===void 0&&o.set(t[0])}G$(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),dn.delete(this)}cancel(){this.state==="scheduled"&&(dn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rE=e=>e.startsWith("--");function nE(e,t,r){rE(t)?e.style.setProperty(t,r):e.style[t]=r}const oE=cl(()=>window.ScrollTimeline!==void 0),iE={};function sE(e,t){const r=cl(e);return()=>iE[t]??r()}const Pp=sE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Go=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Sp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Go([0,.65,.55,1]),circOut:Go([.55,0,1,.45]),backIn:Go([.31,.01,.66,-.59]),backOut:Go([.33,1.53,.69,.99])};function Cp(e,t){if(e)return typeof e=="function"?Pp()?hp(e,t):"ease-out":Xf(e)?Go(e):Array.isArray(e)?e.map(r=>Cp(r,t)||Sp.easeOut):Sp[e]}function aE(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=Cp(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function Tp(e){return typeof e=="function"&&"applyToOptions"in e}function lE({type:e,...t}){return Tp(e)&&Pp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class uE extends Il{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=t,zr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=lE(t);this.animation=aE(r,n,o,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=kl(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):nE(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Cr(Number(t))}get time(){return Cr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=fr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&oE()?(this.animation.timeline=t,Jn):r(this)}}const kp={anticipate:Zf,backInOut:Gf,circInOut:qf};function cE(e){return e in kp}function dE(e){typeof e.ease=="string"&&cE(e.ease)&&(e.ease=kp[e.ease])}const Ip=10;class fE extends uE{constructor(t){dE(t),vp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:i,...s}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const a=new _l({...s,autoplay:!1}),l=fr(this.finishedTime??this.time);r.setWithVelocity(a.sample(l-Ip).value,a.sample(l).value,Ip),a.stop()}}const _p=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ro.test(e)||e==="0")&&!e.startsWith("url("));function pE(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function hE(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=_p(o,t),a=_p(i,t);return Xn(s===a,`You are trying to animate ${t} from "${o}" to "${i}". "${s?i:o}" is not an animatable value.`,"value-not-animatable"),!s||!a?!1:pE(e)||(r==="spring"||Tp(r))&&n}function jl(e){e.duration=0,e.type}const mE=new Set(["opacity","clipPath","filter","transform"]),gE=cl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function vE(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return gE()&&r&&mE.has(r)&&(r!=="transform"||!c)&&!l&&!n&&o!=="mirror"&&i!==0&&s!=="inertia"}const bE=40;class yE extends Il{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xt.now();const h={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,name:l,motionValue:c,element:u,...d},p=u?.KeyframeResolver||Vl;this.keyframeResolver=new p(a,(g,m,x)=>this.onKeyframesResolved(g,m,h,!x),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:i,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=Xt.now(),hE(t,i,s,a)||((Sr.instantAnimations||!l)&&u?.(kl(t,n,r)),t[0]=t[t.length-1],jl(n),n.repeat=0);const h={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>bE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},p=!c&&vE(h)?new fE({...h,element:h.motionValue.owner.current}):new _l(h);p.finished.then(()=>this.notifyFinished()).catch(Jn),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),tE()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const xE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wE(e){const t=xE.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const $E=4;function Mp(e,t,r=1){zr(r<=$E,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=wE(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const s=i.trim();return Ff(s)?parseFloat(s):s}return ml(o)?Mp(o,t,r+1):o}function Dp(e,t){return e?.[t]??e?.default??e}const Ap=new Set(["width","height","top","left","right","bottom",...oo]),EE={test:e=>e==="auto",parse:e=>e},Op=e=>t=>t.test(e),Np=[Qn,be,eo,Br,p$,f$,EE],Lp=e=>Np.find(Op(e));function PE(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Vf(e):!0}const SE=new Set(["brightness","contrast","saturate","opacity"]);function CE(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(gl)||[];if(!n)return e;const o=r.replace(n,"");let i=SE.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const TE=/\b([a-z-]*)\(.*?\)/gu,zl={...ro,getAnimatableNone:e=>{const t=e.match(TE);return t?t.map(CE).join(" "):e}},Fp={...Qn,transform:Math.round},Bl={borderWidth:be,borderTopWidth:be,borderRightWidth:be,borderBottomWidth:be,borderLeftWidth:be,borderRadius:be,radius:be,borderTopLeftRadius:be,borderTopRightRadius:be,borderBottomRightRadius:be,borderBottomLeftRadius:be,width:be,maxWidth:be,height:be,maxHeight:be,top:be,right:be,bottom:be,left:be,padding:be,paddingTop:be,paddingRight:be,paddingBottom:be,paddingLeft:be,margin:be,marginTop:be,marginRight:be,marginBottom:be,marginLeft:be,backgroundPositionX:be,backgroundPositionY:be,...{rotate:Br,rotateX:Br,rotateY:Br,rotateZ:Br,scale:Ji,scaleX:Ji,scaleY:Ji,scaleZ:Ji,skew:Br,skewX:Br,skewY:Br,distance:be,translateX:be,translateY:be,translateZ:be,x:be,y:be,z:be,perspective:be,transformPerspective:be,opacity:Ko,originX:op,originY:op,originZ:be},zIndex:Fp,fillOpacity:Ko,strokeOpacity:Ko,numOctaves:Fp},kE={...Bl,color:ut,backgroundColor:ut,outlineColor:ut,fill:ut,stroke:ut,borderColor:ut,borderTopColor:ut,borderRightColor:ut,borderBottomColor:ut,borderLeftColor:ut,filter:zl,WebkitFilter:zl},Vp=e=>kE[e];function jp(e,t){let r=Vp(e);return r!==zl&&(r=ro),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const IE=new Set(["auto","none","0"]);function _E(e,t,r){let n=0,o;for(;n<e.length&&!o;){const i=e[n];typeof i=="string"&&!IE.has(i)&&Ho(i).values.length&&(o=e[n]),n++}if(o&&r)for(const i of t)e[i]=jp(r,o)}class ME extends Vl{constructor(t,r,n,o,i){super(t,r,n,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),ml(c))){const u=Mp(c,r.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!Ap.has(n)||t.length!==2)return;const[o,i]=t,s=Lp(o),a=Lp(i);if(s!==a)if(wp(s)&&wp(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else cn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||PE(t[o]))&&n.push(o);n.length&&_E(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,s=n[i];n[i]=cn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function DE(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const zp=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Bp(e){return Gw(e)&&"offsetHeight"in e}const Rp=30,AE=e=>!isNaN(parseFloat(e));class OE{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=Xt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Xt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AE(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&dl(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new zf);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Rp)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,Rp);return Bf(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ns(e,t){return new OE(e,t)}const{schedule:NE}=ep(queueMicrotask,!1),LE={y:!1};function FE(){return LE.y}function Kp(e,t){const r=DE(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function Wp(e){return!(e.pointerType==="touch"||FE())}function VE(e,t,r={}){const[n,o,i]=Kp(e,r),s=a=>{if(!Wp(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{Wp(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return n.forEach(a=>{a.addEventListener("pointerenter",s,o)}),i}const Up=(e,t)=>t?e===t?!0:Up(e,t.parentElement):!1,jE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,zE=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function BE(e){return zE.has(e.tagName)||e.tabIndex!==-1}const os=new WeakSet;function Hp(e){return t=>{t.key==="Enter"&&e(t)}}function Rl(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const RE=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=Hp(()=>{if(os.has(r))return;Rl(r,"down");const o=Hp(()=>{Rl(r,"up")}),i=()=>Rl(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",i,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function Gp(e){return jE(e)&&!0}function KE(e,t,r={}){const[n,o,i]=Kp(e,r),s=a=>{const l=a.currentTarget;if(!Gp(a))return;os.add(l);const c=t(l,a),u=(p,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),os.has(l)&&os.delete(l),Gp(p)&&typeof c=="function"&&c(p,{success:g})},d=p=>{u(p,l===window||l===document||r.useGlobalTarget||Up(l,p.target))},h=p=>{u(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",h,o)};return n.forEach(a=>{(r.useGlobalTarget?window:a).addEventListener("pointerdown",s,o),Bp(a)&&(a.addEventListener("focus",c=>RE(c,o)),!BE(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),i}const Lt=e=>!!(e&&e.getVelocity),WE=[...Np,ut,ro],UE=e=>WE.find(Op(e)),Kl=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class HE extends Nt.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=Bp(n)&&n.offsetWidth||0,i=this.props.sizeRef.current;i.height=r.offsetHeight||0,i.width=r.offsetWidth||0,i.top=r.offsetTop,i.left=r.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function GE({children:e,isPresent:t,anchorX:r,root:n}){const o=f.useId(),i=f.useRef(null),s=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(Kl);return f.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:d,right:h}=s.current;if(t||!i.current||!l||!c)return;const p=r==="left"?`left: ${d}`:`right: ${h}`;i.current.dataset.motionPopId=o;const g=document.createElement("style");a&&(g.nonce=a);const m=n??document.head;return m.appendChild(g),g.sheet&&g.sheet.insertRule(`
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: ${l}px !important;
|
|
34
|
-
height: ${c}px !important;
|
|
35
|
-
${p}px !important;
|
|
36
|
-
top: ${u}px !important;
|
|
37
|
-
}
|
|
38
|
-
`),()=>{m.contains(g)&&m.removeChild(g)}},[t]),y.jsx(HE,{isPresent:t,childRef:i,sizeRef:s,children:Nt.cloneElement(e,{ref:i})})}const ZE=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:s,anchorX:a,root:l})=>{const c=al(qE),u=f.useId();let d=!0,h=f.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:r,custom:o,onExitComplete:p=>{c.set(p,!0);for(const g of c.values())if(!g)return;n&&n()},register:p=>(c.set(p,!1),()=>c.delete(p))}),[r,c,n]);return i&&d&&(h={...h}),f.useMemo(()=>{c.forEach((p,g)=>c.set(g,!1))},[r]),Nt.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),s==="popLayout"&&(e=y.jsx(GE,{isPresent:r,anchorX:a,root:l,children:e})),y.jsx(Gi.Provider,{value:h,children:e})};function qE(){return new Map}function YE(e=!0){const t=f.useContext(Gi);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=f.useId();f.useEffect(()=>{if(e)return o(i)},[e]);const s=f.useCallback(()=>e&&n&&n(i),[i,n,e]);return!r&&n?[!1,s]:[!0]}const is=e=>e.key||"";function Zp(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const ss=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:s=!1,anchorX:a="left",root:l})=>{const[c,u]=YE(s),d=f.useMemo(()=>Zp(e),[e]),h=s&&!c?[]:d.map(is),p=f.useRef(!0),g=f.useRef(d),m=al(()=>new Map),[x,v]=f.useState(d),[$,S]=f.useState(d);Lf(()=>{p.current=!1,g.current=d;for(let k=0;k<$.length;k++){const D=is($[k]);h.includes(D)?m.delete(D):m.get(D)!==!0&&m.set(D,!1)}},[$,h.length,h.join("-")]);const C=[];if(d!==x){let k=[...d];for(let D=0;D<$.length;D++){const E=$[D],V=is(E);h.includes(V)||(k.splice(D,0,E),C.push(E))}return i==="wait"&&C.length&&(k=C),S(Zp(k)),v(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&$.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=f.useContext(Nf);return y.jsx(y.Fragment,{children:$.map(k=>{const D=is(k),E=s&&!c?!1:d===$||h.includes(D),V=()=>{if(m.has(D))m.set(D,!0);else return;let F=!0;m.forEach(b=>{b||(F=!1)}),F&&(T?.(),S(g.current),s&&u?.(),n&&n())};return y.jsx(ZE,{isPresent:E,initial:!p.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:E?void 0:V,anchorX:a,children:k},D)})})},Wl=f.createContext({strict:!1}),qp={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},so={};for(const e in qp)so[e]={isEnabled:t=>qp[e].some(r=>!!t[r])};function Ul(e){for(const t in e)so[t]={...so[t],...e[t]}}function ao({children:e,features:t,strict:r=!1}){const[,n]=f.useState(!Hl(t)),o=f.useRef(void 0);if(!Hl(t)){const{renderer:i,...s}=t;o.current=i,Ul(s)}return f.useEffect(()=>{Hl(t)&&t().then(({renderer:i,...s})=>{Ul(s),o.current=i,n(!0)})},[]),y.jsx(Wl.Provider,{value:{renderer:o.current,strict:r},children:e})}function Hl(e){return typeof e=="function"}const XE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function as(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XE.has(e)}let Yp=e=>!as(e);function JE(e){typeof e=="function"&&(Yp=t=>t.startsWith("on")?!as(t):e(t))}try{JE(require("@emotion/is-prop-valid").default)}catch{}function QE(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||(Yp(o)||r===!0&&as(o)||!t&&!as(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const ls=f.createContext({});function us(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Zo(e){return typeof e=="string"||Array.isArray(e)}const Gl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Zl=["initial",...Gl];function cs(e){return us(e.animate)||Zl.some(t=>Zo(e[t]))}function Xp(e){return!!(cs(e)||e.variants)}function eP(e,t){if(cs(e)){const{initial:r,animate:n}=e;return{initial:r===!1||Zo(r)?r:void 0,animate:Zo(n)?n:void 0}}return e.inherit!==!1?t:{}}function tP(e){const{initial:t,animate:r}=eP(e,f.useContext(ls));return f.useMemo(()=>({initial:t,animate:r}),[Jp(t),Jp(r)])}function Jp(e){return Array.isArray(e)?e.join(" "):e}const rP={};function Qp(e,{layout:t,layoutId:r}){return io.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!rP[e]||e==="opacity")}const nP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},oP=oo.length;function iP(e,t,r){let n="",o=!0;for(let i=0;i<oP;i++){const s=oo[i],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||r){const c=zp(a,Bl[s]);if(!l){o=!1;const u=nP[s]||s;n+=`${u}(${c}) `}r&&(t[s]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function ql(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const l in t){const c=t[l];if(io.has(l)){s=!0;continue}else if(rp(l)){o[l]=c;continue}else{const u=zp(c,Bl[l]);l.startsWith("origin")?(a=!0,i[l]=u):n[l]=u}}if(t.transform||(s||r?n.transform=iP(t,e.transform,r):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=i;n.transformOrigin=`${l} ${c} ${u}`}}const Yl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function eh(e,t,r){for(const n in t)!Lt(t[n])&&!Qp(n,r)&&(e[n]=t[n])}function sP({transformTemplate:e},t){return f.useMemo(()=>{const r=Yl();return ql(r,t,e),Object.assign({},r.vars,r.style)},[t])}function aP(e,t){const r=e.style||{},n={};return eh(n,r,e),Object.assign(n,sP(e,t)),n}function lP(e,t){const r={},n=aP(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const uP={offset:"stroke-dashoffset",array:"stroke-dasharray"},cP={offset:"strokeDashoffset",array:"strokeDasharray"};function dP(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?uP:cP;e[i.offset]=be.transform(-n);const s=be.transform(t),a=be.transform(r);e[i.array]=`${s} ${a}`}function th(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(ql(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&dP(d,o,i,s,!1)}const rh=()=>({...Yl(),attrs:{}}),nh=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fP(e,t,r,n){const o=f.useMemo(()=>{const i=rh();return th(i,t,nh(n),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};eh(i,e.style,e),o.style={...i,...o.style}}return o}const pP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Xl(e){return typeof e!="string"||e.includes("-")?!1:!!(pP.indexOf(e)>-1||/[A-Z]/u.test(e))}function hP(e,t,r,{latestValues:n},o,i=!1){const a=(Xl(e)?fP:lP)(t,n,o,e),l=QE(t,typeof e=="string",i),c=e!==f.Fragment?{...l,...a,ref:r}:{},{children:u}=t,d=f.useMemo(()=>Lt(u)?u.get():u,[u]);return f.createElement(e,{...c,children:d})}function oh(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Jl(e,t,r,n){if(typeof t=="function"){const[o,i]=oh(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=oh(n);t=t(r!==void 0?r:e.custom,o,i)}return t}function mP(e){return Lt(e)?e.get():e}function gP({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:vP(r,n,o,e),renderState:t()}}function vP(e,t,r,n){const o={},i=n(e,{});for(const h in i)o[h]=mP(i[h]);let{initial:s,animate:a}=e;const l=cs(e),c=Xp(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=r?r.initial===!1:!1;u=u||s===!1;const d=u?a:s;if(d&&typeof d!="boolean"&&!us(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const g=Jl(e,h[p]);if(g){const{transitionEnd:m,transition:x,...v}=g;for(const $ in v){let S=v[$];if(Array.isArray(S)){const C=u?S.length-1:0;S=S[C]}S!==null&&(o[$]=S)}for(const $ in m)o[$]=m[$]}}}return o}const ih=e=>(t,r)=>{const n=f.useContext(ls),o=f.useContext(Gi),i=()=>gP(e,t,n,o);return r?i():al(i)};function Ql(e,t,r){const{style:n}=e,o={};for(const i in n)(Lt(n[i])||t.style&&Lt(t.style[i])||Qp(i,e)||r?.getValue(i)?.liveStyle!==void 0)&&(o[i]=n[i]);return o}const bP=ih({scrapeMotionValuesFromProps:Ql,createRenderState:Yl});function sh(e,t,r){const n=Ql(e,t,r);for(const o in e)if(Lt(e[o])||Lt(t[o])){const i=oo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}const yP=ih({scrapeMotionValuesFromProps:sh,createRenderState:rh}),xP=Symbol.for("motionComponentSymbol");function ah(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function wP(e,t,r){return f.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ah(r)&&(r.current=n))},[t])}const eu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),lh="data-"+eu("framerAppearId"),$P=f.createContext({});function EP(e,t,r,n,o){const{visualElement:i}=f.useContext(ls),s=f.useContext(Wl),a=f.useContext(Gi),l=f.useContext(Kl).reducedMotion,c=f.useRef(null);n=n||s.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:i,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=f.useContext($P);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&PP(c.current,r,o,d);const h=f.useRef(!1);f.useInsertionEffect(()=>{u&&h.current&&u.update(r,a)});const p=r[lh],g=f.useRef(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return Lf(()=>{u&&(h.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),g.current=!1),u.enteringChildren=void 0)}),u}function PP(e,t,r,n){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:uh(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!s||a&&ah(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function uh(e){if(e)return e.options.allowProjection!==!1?e.projection:uh(e.parent)}function tu(e,{forwardMotionProps:t=!1}={},r,n){r&&Ul(r);const o=Xl(e)?yP:bP;function i(a,l){let c;const u={...f.useContext(Kl),...a,layoutId:SP(a)},{isStatic:d}=u,h=tP(a),p=o(a,d);if(!d&&ll){CP(u,r);const g=TP(u);c=g.MeasureLayout,h.visualElement=EP(e,p,u,n,g.ProjectionNode)}return y.jsxs(ls.Provider,{value:h,children:[c&&h.visualElement?y.jsx(c,{visualElement:h.visualElement,...u}):null,hP(e,a,wP(p,h.visualElement,l),p,d,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=f.forwardRef(i);return s[xP]=e,s}function SP({layoutId:e}){const t=f.useContext(Nf).id;return t&&e!==void 0?t+"-"+e:e}function CP(e,t){const r=f.useContext(Wl).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Xn(!1,n,"lazy-strict-mode"):zr(!1,n,"lazy-strict-mode")}}function TP(e){const{drag:t,layout:r}=so;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function kP(e,t){if(typeof Proxy>"u")return tu;const r=new Map,n=(i,s)=>tu(i,s,e,t),o=(i,s)=>(process.env.NODE_ENV!=="production"&&dl(!1,"motion() is deprecated. Use motion.create() instead."),n(i,s));return new Proxy(o,{get:(i,s)=>s==="create"?n:(r.has(s)||r.set(s,tu(s,void 0,e,t)),r.get(s))})}const lo=kP();function IP({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function _P(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function MP(e,t){return IP(_P(e.getBoundingClientRect(),t))}const ch=()=>({min:0,max:0}),dh=()=>({x:ch(),y:ch()}),ru={current:null},fh={current:!1};function DP(){if(fh.current=!0,!!ll)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ru.current=e.matches;e.addEventListener("change",t),t()}else ru.current=!1}const AP=new WeakMap;function OP(e,t,r){for(const n in t){const o=t[n],i=r[n];if(Lt(o))e.addValue(n,o);else if(Lt(i))e.addValue(n,ns(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{const s=e.getStaticValue(n);e.addValue(n,ns(s!==void 0?s:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const ph=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class NP{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Vl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=Xt.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,sr.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=cs(r),this.isVariantNode=Xp(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const h in d){const p=d[h];l[h]!==void 0&&Lt(p)&&p.set(l[h])}}mount(t){this.current=t,AP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),fh.current||DP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ru.current,process.env.NODE_ENV!=="production"&&dl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),hl(this.notifyUpdate),hl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=io.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&sr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in so){const r=so[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):dh()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<ph.length;n++){const o=ph[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=OP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=ns(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(Ff(n)||Vf(n))?n=parseFloat(n):!UE(n)&&ro.test(r)&&(n=jp(t,r)),this.setBaseTarget(t,Lt(n)?n.get():n)),Lt(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const i=Jl(this.props,r,this.presenceContext?.custom);i&&(n=i[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Lt(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new zf),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){NE.render(this.render)}}class hh extends NP{constructor(){super(...arguments),this.KeyframeResolver=ME}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Lt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function mh(e,{style:t,vars:r},n,o){const i=e.style;let s;for(s in t)i[s]=t[s];o?.applyProjectionStyles(i,n);for(s in r)i.setProperty(s,r[s])}function LP(e){return window.getComputedStyle(e)}class FP extends hh{constructor(){super(...arguments),this.type="html",this.renderInstance=mh}readValueFromInstance(t,r){if(io.has(r))return this.projection?.isProjecting?Al(r):Y$(t,r);{const n=LP(t),o=(rp(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return MP(t,r)}build(t,r,n){ql(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Ql(t,r,n)}}const gh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function VP(e,t,r,n){mh(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(gh.has(o)?o:eu(o),t.attrs[o])}class jP extends hh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=dh}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(io.has(r)){const n=Vp(r);return n&&n.default||0}return r=gh.has(r)?r:eu(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return sh(t,r,n)}build(t,r,n){th(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){VP(t,r,n,o)}mount(t){this.isSVGTag=nh(t.tagName),super.mount(t)}}const zP=(e,t)=>Xl(e)?new jP(t):new FP(t,{allowProjection:e!==f.Fragment});function uo(e,t,r){const n=e.getProps();return Jl(n,t,r!==void 0?r:n.custom,e)}const nu=e=>Array.isArray(e);function BP(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,ns(r))}function RP(e){return nu(e)?e[e.length-1]||0:e}function KP(e,t){const r=uo(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const s in i){const a=RP(i[s]);BP(e,s,a)}}function WP(e){return!!(Lt(e)&&e.add)}function UP(e,t){const r=e.getValue("willChange");if(WP(r))return r.add(t);if(!r&&Sr.WillChange){const n=new Sr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function HP(e){return e.props[lh]}const GP=e=>e!==null;function ZP(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(GP),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[i]}const qP={type:"spring",stiffness:500,damping:25,restSpeed:10},YP=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),XP={type:"keyframes",duration:.8},JP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},QP=(e,{keyframes:t})=>t.length>2?XP:io.has(e)?e.startsWith("scale")?YP(t[1]):qP:JP;function eS({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const tS=(e,t,r,n={},o,i)=>s=>{const a=Dp(n,e)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-fr(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:h=>{t.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};eS(a)||Object.assign(u,QP(e,u)),u.duration&&(u.duration=fr(u.duration)),u.repeatDelay&&(u.repeatDelay=fr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jl(u),u.delay===0&&(d=!0)),(Sr.instantAnimations||Sr.skipAnimations)&&(d=!0,jl(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&t.get()!==void 0){const h=ZP(u.keyframes,a);if(h!==void 0){sr.update(()=>{u.onUpdate(h),u.onComplete()});return}}return a.isSync?new _l(u):new yE(u)};function rS({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function vh(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=t;n&&(i=n);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),h=a[u];if(h===void 0||c&&rS(c,u))continue;const p={delay:r,...Dp(i||{},u)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(h)&&h===g&&!p.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=HP(e);if(v){const $=window.MotionHandoffAnimation(v,u,sr);$!==null&&(p.startTime=$,m=!0)}}UP(e,u),d.start(tS(u,d,h,e.shouldReduceMotion&&Ap.has(u)?{type:!1}:p,e,m));const x=d.animation;x&&l.push(x)}return s&&Promise.all(l).then(()=>{sr.update(()=>{s&&KP(e,s)})}),l}function bh(e,t,r,n=0,o=1){const i=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),s=e.size,a=(s-1)*n;return typeof r=="function"?r(i,s):o===1?i*n:a-i*n}function ou(e,t,r={}){const n=uo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const i=n?()=>Promise.all(vh(e,n,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return nS(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[i,s]:[s,i];return l().then(()=>c())}else return Promise.all([i(),s(r.delay)])}function nS(e,t,r=0,n=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ou(l,t,{...s,delay:r+(typeof n=="function"?0:n)+bh(e.variantChildren,l,n,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function oS(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(i=>ou(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=ou(e,t,r);else{const o=typeof t=="function"?uo(e,t,r.custom):t;n=Promise.all(vh(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function yh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const iS=Zl.length;function xh(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?xh(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<iS;r++){const n=Zl[r],o=e.props[n];(Zo(o)||o===!1)&&(t[n]=o)}return t}const sS=[...Gl].reverse(),aS=Gl.length;function lS(e){return t=>Promise.all(t.map(({animation:r,options:n})=>oS(e,r,n)))}function uS(e){let t=lS(e),r=wh(),n=!0;const o=l=>(c,u)=>{const d=uo(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:h,transitionEnd:p,...g}=d;c={...c,...g,...p}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,u=xh(e.parent)||{},d=[],h=new Set;let p={},g=1/0;for(let x=0;x<aS;x++){const v=sS[x],$=r[v],S=c[v]!==void 0?c[v]:u[v],C=Zo(S),T=v===l?$.isActive:null;T===!1&&(g=x);let k=S===u[v]&&S!==c[v]&&C;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),$.protectedKeys={...p},!$.isActive&&T===null||!S&&!$.prevProp||us(S)||typeof S=="boolean")continue;const D=cS($.prevProp,S);let E=D||v===l&&$.isActive&&!k&&C||x>g&&C,V=!1;const F=Array.isArray(S)?S:[S];let b=F.reduce(o(v),{});T===!1&&(b={});const{prevResolvedValues:M={}}=$,A={...M,...b},I=P=>{E=!0,h.has(P)&&(V=!0,h.delete(P)),$.needsAnimating[P]=!0;const _=e.getValue(P);_&&(_.liveStyle=!1)};for(const P in A){const _=b[P],B=M[P];if(p.hasOwnProperty(P))continue;let L=!1;nu(_)&&nu(B)?L=!yh(_,B):L=_!==B,L?_!=null?I(P):h.add(P):_!==void 0&&h.has(P)?I(P):$.protectedKeys[P]=!0}$.prevProp=S,$.prevResolvedValues=b,$.isActive&&(p={...p,...b}),n&&e.blockInitialAnimation&&(E=!1);const N=k&&D;E&&(!N||V)&&d.push(...F.map(P=>{const _={type:v};if(typeof P=="string"&&n&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,L=uo(B,P);if(B.enteringChildren&&L){const{delayChildren:K}=L.transition||{};_.delay=bh(B.enteringChildren,e,K)}}return{animation:P,options:_}}))}if(h.size){const x={};if(typeof c.initial!="boolean"){const v=uo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}h.forEach(v=>{const $=e.getBaseTarget(v),S=e.getValue(v);S&&(S.liveStyle=!0),x[v]=$??null}),d.push({animation:x})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function a(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),r[l].isActive=c;const u=s(l);for(const d in r)r[d].protectedKeys={};return u}return{animateChanges:s,setActive:a,setAnimateFunction:i,getState:()=>r,reset:()=>{r=wh(),n=!0}}}function cS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!yh(t,e):!1}function fn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wh(){return{animate:fn(!0),whileInView:fn(),whileHover:fn(),whileTap:fn(),whileDrag:fn(),whileFocus:fn(),exit:fn()}}class co{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dS extends co{constructor(t){super(t),t.animationState||(t.animationState=uS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();us(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let fS=0;class pS extends co{constructor(){super(...arguments),this.id=fS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const hS={animation:{Feature:dS},exit:{Feature:pS}};function $h(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Eh(e){return{point:{x:e.pageX,y:e.pageY}}}function Ph(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,i=n[o];i&&sr.postRender(()=>i(t,Eh(t)))}class mS extends co{mount(){const{current:t}=this.node;t&&(this.unmount=VE(t,(r,n)=>(Ph(this.node,n,"Start"),o=>Ph(this.node,o,"End"))))}unmount(){}}class gS extends co{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Zi($h(this.node.current,"focus",()=>this.onFocus()),$h(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Sh(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),i=n[o];i&&sr.postRender(()=>i(t,Eh(t)))}class vS extends co{mount(){const{current:t}=this.node;t&&(this.unmount=KE(t,(r,n)=>(Sh(this.node,n,"Start"),(o,{success:i})=>Sh(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iu=new WeakMap,su=new WeakMap,bS=e=>{const t=iu.get(e.target);t&&t(e)},yS=e=>{e.forEach(bS)};function xS({root:e,...t}){const r=e||document;su.has(r)||su.set(r,{});const n=su.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(yS,{root:e,...t})),n[o]}function wS(e,t,r){const n=xS(t);return iu.set(e,r),n.observe(e),()=>{iu.delete(e),n.unobserve(e)}}const $S={some:0,all:1};class ES extends co{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:$S[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),h=c?u:d;h&&h(l)};return wS(this.node.current,s,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(PS(t,r))&&this.startObserver()}unmount(){}}function PS({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const SS={renderer:zP,...hS,...{inView:{Feature:ES},tap:{Feature:vS},focus:{Feature:gS},hover:{Feature:mS}}},pr={top:"top",bottom:"top",left:"left",right:"left"},ds={top:"bottom",bottom:"top",left:"right",right:"left"},CS={top:"left",left:"top"},au={top:"height",left:"width"},Ch={width:"totalWidth",height:"totalHeight"},fs={};let vt=typeof document<"u"?window.visualViewport:null;function Th(e){let t=0,r=0,n=0,o=0,i=0,s=0,a={};var l;let c=((l=vt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;n=g.clientWidth,o=g.clientHeight;var u;t=(u=vt?.width)!==null&&u!==void 0?u:n;var d;r=(d=vt?.height)!==null&&d!==void 0?d:o,a.top=g.scrollTop||e.scrollTop,a.left=g.scrollLeft||e.scrollLeft,vt&&(i=vt.offsetTop,s=vt.offsetLeft)}else({width:t,height:r,top:i,left:s}=fo(e)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Pf()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var h;i=(h=vt?.pageTop)!==null&&h!==void 0?h:0;var p;s=(p=vt?.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:s}}function TS(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function kh(e,t,r,n,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[au[e]],u=n.scroll[pr[e]]+i,d=c+n.scroll[pr[e]]-i,h=t-l+s[e]-n[pr[e]],p=t-l+r+s[e]-n[pr[e]];return h<u?u-h:p>d?Math.max(d-p,u-h):0}function kS(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Ih(e){if(fs[e])return fs[e];let[t,r]=e.split(" "),n=pr[t]||"right",o=CS[n];pr[r]||(r="center");let i=au[n],s=au[o];return fs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},fs[e]}function lu(e,t,r,n,o,i,s,a,l,c){let{placement:u,crossPlacement:d,axis:h,crossAxis:p,size:g,crossSize:m}=n,x={};var v;x[p]=(v=e[p])!==null&&v!==void 0?v:0;var $,S,C,T;d==="center"?x[p]+=((($=e[m])!==null&&$!==void 0?$:0)-((S=r[m])!==null&&S!==void 0?S:0))/2:d!==p&&(x[p]+=((C=e[m])!==null&&C!==void 0?C:0)-((T=r[m])!==null&&T!==void 0?T:0)),x[p]+=i;const k=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(x[p]=Pr(x[p],k,D),u===h){const E=a?s[g]:t[Ch[g]];x[ds[h]]=Math.floor(E-e[h]+o)}else x[h]=Math.floor(e[h]+e[g]+o);return x}function IS(e,t,r,n,o,i,s,a){const l=n?r.height:t[Ch.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-s);var d,h,p,g,m,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((h=o.top)!==null&&h!==void 0?h:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,u+s-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function _h(e,t,r,n,o,i){let{placement:s,axis:a,size:l}=i;var c,u;if(s===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[ds[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[ds[a]]-o)}function _S(e,t,r,n,o,i,s,a,l,c,u,d,h,p,g,m){let x=Ih(e),{size:v,crossAxis:$,crossSize:S,placement:C,crossPlacement:T}=x,k=lu(t,a,r,x,u,d,c,h,g,m),D=u,E=_h(a,c,t,o,i+u,x);if(s&&n[v]>E){let U=Ih(`${ds[C]} ${T}`),ee=lu(t,a,r,U,u,d,c,h,g,m);_h(a,c,t,o,i+u,U)>E&&(x=U,k=ee,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=kh($,k[$],r[S],a,l,i,c);k[$]+=F;let b=IS(k,a,c,h,o,i,r.height,V);p&&p<b&&(b=p),r.height=Math.min(r.height,b),k=lu(t,a,r,x,D,d,c,h,g,m),F=kh($,k[$],r[S],a,l,i,c),k[$]+=F;let M={},A=t[$]+.5*t[S]-k[$]-o[pr[$]];const I=g/2+m;var N,w,P,_;const B=pr[$]==="left"?((N=o.left)!==null&&N!==void 0?N:0)+((w=o.right)!==null&&w!==void 0?w:0):((P=o.top)!==null&&P!==void 0?P:0)+((_=o.bottom)!==null&&_!==void 0?_:0),L=r[S]-B-g/2-m,K=t[$]+g/2-(k[$]+o[pr[$]]),z=t[$]+t[S]-g/2-(k[$]+o[pr[$]]),W=Pr(A,K,z);return M[$]=Pr(W,I,L),{position:k,maxHeight:b,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:x.placement}}function MS(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:h=0}=e,p=n instanceof HTMLElement?DS(n):document.documentElement,g=p===document.documentElement;const m=window.getComputedStyle(p).position;let x=!!m&&m!=="static",v=g?fo(r):Mh(r,p);if(!g){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=fo(n),S=kS(n);var C,T;$.width+=((C=S.left)!==null&&C!==void 0?C:0)+((T=S.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=S.top)!==null&&k!==void 0?k:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let E=TS(o),V=Th(a),F=Th(p),b=a.tagName==="BODY"?fo(p):Mh(p,a);return p.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),_S(t,v,$,E,S,i,s,V,F,b,l,c,x,u,d,h)}function fo(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:i,scrollLeft:s,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+i-a,left:r+s-l,width:n,height:o}}function Mh(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:i,width:s,height:a}=e.getBoundingClientRect();n={top:o,left:i,width:s,height:a}}else{n=fo(e);let o=fo(t),i=window.getComputedStyle(t);o.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function DS(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Dh(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Dh(t);)t=t.parentElement;return t||document.documentElement}function Dh(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const AS=new WeakMap;function OS(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=n||AS.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let st=typeof document<"u"?window.visualViewport:null;function NS(e){let{direction:t}=Fo(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:i=o,placement:s="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:d=0,shouldUpdatePosition:h=!0,isOpen:p=!0,onClose:g,maxHeight:m,arrowBoundaryOffset:x=0}=e,[v,$]=f.useState(null),S=[h,s,o.current,n.current,i.current,a,l,c,u,d,p,t,m,x,r],C=f.useRef(st?.scale);f.useEffect(()=>{p&&(C.current=st?.scale)},[p]);let T=f.useCallback(()=>{if(h===!1||!p||!o.current||!n.current||!c||st?.scale!==C.current)return;let F=null;if(i.current&&i.current.contains(document.activeElement)){var b;let _=(b=document.activeElement)===null||b===void 0?void 0:b.getBoundingClientRect(),B=i.current.getBoundingClientRect();var M;if(F={type:"top",offset:((M=_?.top)!==null&&M!==void 0?M:0)-B.top},F.offset>B.height/2){F.type="bottom";var A;F.offset=((A=_?.bottom)!==null&&A!==void 0?A:0)-B.bottom}}let I=o.current;if(!m&&o.current){var N;I.style.top="0px",I.style.bottom="";var w;I.style.maxHeight=((w=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&w!==void 0?w:window.innerHeight)+"px"}let P=MS({placement:FS(s,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:a,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:d,maxHeight:m,arrowSize:r,arrowBoundaryOffset:x});if(P.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(P.position).forEach(_=>I.style[_]=P.position[_]+"px"),I.style.maxHeight=P.maxHeight!=null?P.maxHeight+"px":"",F&&document.activeElement&&i.current){let _=document.activeElement.getBoundingClientRect(),B=i.current.getBoundingClientRect(),L=_[F.type]-B[F.type];i.current.scrollTop+=L-F.offset}$(P)}},S);nn(T,S),LS(T),kf({ref:o,onResize:T}),kf({ref:n,onResize:T});let k=f.useRef(!1);nn(()=>{let F,b=()=>{k.current=!0,clearTimeout(F),F=setTimeout(()=>{k.current=!1},500),T()},M=()=>{k.current&&b()};return st?.addEventListener("resize",b),st?.addEventListener("scroll",M),()=>{st?.removeEventListener("resize",b),st?.removeEventListener("scroll",M)}},[T]);let D=f.useCallback(()=>{k.current||g?.()},[g,k]);OS({triggerRef:n,isOpen:p,onClose:g&&D});var E,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v?.position,maxHeight:(E=v?.maxHeight)!==null&&E!==void 0?E:"100vh"}},placement:(V=v?.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:T}}function LS(e){nn(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function FS(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function uu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ah(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Oh(e){let t=f.useRef({isFocused:!1,observer:null});nn(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Gt(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=uu(s);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let ps=!1;function Nh(e){for(;e&&!zw(e);)e=e.parentElement;let t=Zt(e),r=t.document.activeElement;if(!r||r===e)return;ps=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,sn(r),l()))},s=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,sn(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),ps=!1,n=!1},c=requestAnimationFrame(l);return l}let po="default",cu="",hs=new WeakMap;function du(e){if(rl()){if(po==="default"){const t=Et(e);cu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";hs.set(e,e.style[t]),e.style[t]="none"}}function ms(e){if(rl()){if(po!=="disabled")return;po="restoring",setTimeout(()=>{Tf(()=>{if(po==="restoring"){const t=Et(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=cu||""),cu="",po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&hs.has(e)){let t=hs.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),hs.delete(e)}}const Lh=f.createContext({register:()=>{}});Lh.displayName="PressResponderContext";function VS(e,t){return t.get?t.get.call(e):t.value}function Fh(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function Vh(e,t){var r=Fh(e,t,"get");return VS(e,r)}function jS(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function gs(e,t,r){var n=Fh(e,t,"set");return jS(e,n,r),r}function zS(e){let t=f.useContext(Lh);if(t){let{register:r,...n}=t;e=kt(n,e),r()}return If(t,e.ref),e}var vs=new WeakMap;let bs=class{continuePropagation(){gs(this,vs,!1)}get shouldStopPropagation(){return Vh(this,vs)}constructor(t,r,n,o){bf(this,vs,{writable:!0,value:void 0}),gs(this,vs,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const a=s?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}};const jh=Symbol("linkClicked"),zh="react-aria-pressable-style",Bh="data-react-aria-pressable";function qo(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...p}=zS(e),[g,m]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=Yn(),S=Gt((b,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new bs("pressstart",M,b);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,m(!0),I}),C=Gt((b,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new bs("pressend",M,b);o(w),N=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&A&&!a){let w=new bs("press",M,b);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=Gt((b,M)=>{let A=x.current;if(a)return!1;if(i){A.isTriggeringEvent=!0;let I=new bs("pressup",M,b);return i(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=Gt(b=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(pn(M.target,b),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||ms(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=Gt(b=>{u&&k(b)}),E=Gt(b=>{s?.(b)}),V=Gt((b,M)=>{if(s){let A=new MouseEvent("click",b);Ah(A,M),s(uu(A))}}),F=f.useMemo(()=>{let b=x.current,M={onKeyDown(I){if(pu(I.nativeEvent,I.currentTarget)&&rt(I.currentTarget,Ze(I.nativeEvent))){var N;Wh(Ze(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!b.isPressed&&!I.repeat){b.target=I.currentTarget,b.isPressed=!0,b.pointerType="keyboard",w=S(I,"keyboard");let P=I.currentTarget,_=B=>{pu(B,P)&&!B.repeat&&rt(P,Ze(B))&&b.target&&T(pn(b.target,B),"keyboard")};v(Et(I.currentTarget),"keyup",yf(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&qn()&&((N=b.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(I){if(!(I&&!rt(I.currentTarget,Ze(I.nativeEvent)))&&I&&I.button===0&&!b.isTriggeringEvent&&!zo.isOpening){let N=!0;if(a&&I.preventDefault(),!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||ol(I.nativeEvent))){let w=S(I,"virtual"),P=T(I,"virtual"),_=C(I,"virtual");E(I),N=w&&P&&_}else if(b.isPressed&&b.pointerType!=="keyboard"){let w=b.pointerType||I.nativeEvent.pointerType||"virtual",P=T(pn(I.currentTarget,I),w),_=C(pn(I.currentTarget,I),w,!0);N=P&&_,b.isOverTarget=!1,E(I),k(I)}b.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(b.isPressed&&b.target&&pu(I,b.target)){var w;Wh(Ze(I),I.key)&&I.preventDefault();let _=Ze(I),B=rt(b.target,Ze(I));C(pn(b.target,I),"keyboard",B),B&&V(I,b.target),$(),I.key!=="Enter"&&fu(b.target)&&rt(b.target,_)&&!I[jh]&&(I[jh]=!0,zo(b.target,I,!1)),b.isPressed=!1,(w=b.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=b.metaKeyEvents)===null||N===void 0)&&N.size)){var P;let _=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let B of _.values())(P=b.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(Nw(w.nativeEvent)){b.pointerType="virtual";return}b.pointerType=w.pointerType;let P=!0;if(!b.isPressed){b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=w.pointerId,b.target=w.currentTarget,d||du(b.target),P=S(w,b.pointerType);let _=Ze(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(Et(w.currentTarget),"pointerup",I,!1),v(Et(w.currentTarget),"pointercancel",N,!1)}P&&w.stopPropagation()},M.onMouseDown=w=>{if(rt(w.currentTarget,Ze(w.nativeEvent))&&w.button===0){if(c){let P=Nh(w.target);P&&b.disposables.push(P)}w.stopPropagation()}},M.onPointerUp=w=>{!rt(w.currentTarget,Ze(w.nativeEvent))||b.pointerType==="virtual"||w.button===0&&!b.isPressed&&T(w,b.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,S(pn(b.target,w),b.pointerType))},M.onPointerLeave=w=>{w.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,C(pn(b.target,w),b.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===b.activePointerId&&b.isPressed&&w.button===0&&b.target){if(rt(b.target,Ze(w))&&b.pointerType!=null){let P=!1,_=setTimeout(()=>{b.isPressed&&b.target instanceof HTMLElement&&(P?k(w):(sn(b.target),b.target.click()))},80);v(w.currentTarget,"click",()=>P=!0,!0),b.disposables.push(()=>clearTimeout(_))}else k(w);b.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(b.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(b.isPressed=!0,b.isOverTarget=!0,b.target=w.currentTarget,b.pointerType=ol(w.nativeEvent)?"virtual":"mouse",Bn.flushSync(()=>S(w,b.pointerType))&&w.stopPropagation(),c){let _=Nh(w.target);_&&b.disposables.push(_)}v(Et(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,P=S(w,b.pointerType)),P&&w.stopPropagation()},M.onMouseLeave=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,P=C(w,b.pointerType,!1),D(w)),P&&w.stopPropagation()},M.onMouseUp=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&!b.ignoreEmulatedMouseEvents&&w.button===0&&!b.isPressed&&T(w,b.pointerType||"mouse")};let I=w=>{if(w.button===0){if(b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&b.target.contains(w.target)&&b.pointerType!=null||k(w),b.isOverTarget=!1}};M.onTouchStart=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;let P=BS(w.nativeEvent);if(!P)return;b.activePointerId=P.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=w.currentTarget,b.pointerType="touch",d||du(b.target),S(Rr(b.target,w),b.pointerType)&&w.stopPropagation(),v(Zt(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=Rh(w.nativeEvent,b.activePointerId),_=!0;P&&Kh(P,w.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,_=S(Rr(b.target,w),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,_=C(Rr(b.target,w),b.pointerType,!1),D(Rr(b.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!rt(w.currentTarget,Ze(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=Rh(w.nativeEvent,b.activePointerId),_=!0;P&&Kh(P,w.currentTarget)&&b.pointerType!=null?(T(Rr(b.target,w),b.pointerType),_=C(Rr(b.target,w),b.pointerType),V(w.nativeEvent,b.target)):b.isOverTarget&&b.pointerType!=null&&(_=C(Rr(b.target,w),b.pointerType,!1)),_&&w.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!d&&ms(b.target),$()},M.onTouchCancel=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&(w.stopPropagation(),b.isPressed&&k(Rr(b.target,w)))};let N=w=>{b.isPressed&&rt(Ze(w),b.target)&&k({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{rt(w.currentTarget,Ze(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,C,S,T,E,V]);return f.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const b=Et(h.current);if(!b||!b.head||b.getElementById(zh))return;const M=b.createElement("style");M.id=zh,M.textContent=`
|
|
39
|
-
@layer {
|
|
40
|
-
[${Bh}] {
|
|
41
|
-
touch-action: pan-x pan-y pinch-zoom;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
`.trim(),b.head.prepend(M)},[h]),f.useEffect(()=>{let b=x.current;return()=>{var M;d||ms((M=b.target)!==null&&M!==void 0?M:void 0);for(let A of b.disposables)A();b.disposables=[]}},[d]),{isPressed:l||g,pressProps:kt(p,F,{[Bh]:!0})}}function fu(e){return e.tagName==="A"&&e.hasAttribute("href")}function pu(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Zt(o).HTMLInputElement&&!Uh(o,r)||o instanceof Zt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&fu(o))&&r!=="Enter")}function BS(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Rh(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Rr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function pn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function RS(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function KS(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Kh(e,t){let r=t.getBoundingClientRect(),n=RS(e);return KS(r,n)}function WS(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!fu(e)}function Wh(e,t){return e instanceof HTMLInputElement?!Uh(e,t):WS(e)}const US=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Uh(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":US.has(e.type)}let hn=null,hu=new Set,Yo=new Map,mn=!1,mu=!1;const HS={Tab:!0,Escape:!0};function ys(e,t){for(let r of hu)r(e,t)}function GS(e){return!(e.metaKey||!qn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function xs(e){mn=!0,GS(e)&&(hn="keyboard",ys("keyboard",e))}function Jt(e){hn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(mn=!0,ys("pointer",e))}function Hh(e){ol(e)&&(mn=!0,hn="virtual")}function Gh(e){e.target===window||e.target===document||ps||!e.isTrusted||(!mn&&!mu&&(hn="virtual",ys("virtual",e)),mn=!1,mu=!1)}function Zh(){ps||(mn=!1,mu=!0)}function gu(e){if(typeof window>"u"||typeof document>"u"||Yo.get(Zt(e)))return;const t=Zt(e),r=Et(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){mn=!0,n.apply(this,arguments)},r.addEventListener("keydown",xs,!0),r.addEventListener("keyup",xs,!0),r.addEventListener("click",Hh,!0),t.addEventListener("focus",Gh,!0),t.addEventListener("blur",Zh,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Jt,!0),r.addEventListener("pointermove",Jt,!0),r.addEventListener("pointerup",Jt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Jt,!0),r.addEventListener("mousemove",Jt,!0),r.addEventListener("mouseup",Jt,!0)),t.addEventListener("beforeunload",()=>{qh(e)},{once:!0}),Yo.set(t,{focus:n})}const qh=(e,t)=>{const r=Zt(e),n=Et(e);t&&n.removeEventListener("DOMContentLoaded",t),Yo.has(r)&&(r.HTMLElement.prototype.focus=Yo.get(r).focus,n.removeEventListener("keydown",xs,!0),n.removeEventListener("keyup",xs,!0),n.removeEventListener("click",Hh,!0),r.removeEventListener("focus",Gh,!0),r.removeEventListener("blur",Zh,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Jt,!0),n.removeEventListener("pointermove",Jt,!0),n.removeEventListener("pointerup",Jt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Jt,!0),n.removeEventListener("mousemove",Jt,!0),n.removeEventListener("mouseup",Jt,!0)),Yo.delete(r))};function ZS(e){const t=Et(e);let r;return t.readyState!=="loading"?gu(e):(r=()=>{gu(e)},t.addEventListener("DOMContentLoaded",r)),()=>qh(e,r)}typeof document<"u"&&ZS();function vu(){return hn!=="pointer"}function Yh(){return hn}function qS(e){hn=e,ys(e,null)}const YS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function XS(e,t,r){let n=Et(r?.target);const o=typeof window<"u"?Zt(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Zt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Zt(r?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Zt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!YS.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof a&&!HS[r.key])}function JS(e,t,r){gu(),f.useEffect(()=>{let n=(o,i)=>{XS(!!r?.isTextInput,o,i)&&e(vu())};return hu.add(n),()=>{hu.delete(n)}},t)}function QS(e){const t=Et(e),r=jo(t);if(Yh()==="virtual"){let n=r;Tf(()=>{jo(t)===n&&e.isConnected&&sn(e)})}else sn(e)}function Xh(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Oh(i),a=f.useCallback(l=>{const c=Et(l.target),u=c?jo(c):jo();l.target===l.currentTarget&&u===Ze(l.nativeEvent)&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?a:void 0,onBlur:!t&&(n||o)?i:void 0}}}function Jh(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function Qh(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Jh(e.onKeyDown),onKeyUp:Jh(e.onKeyUp)}}}let e2=f.createContext(null);function t2(e){let t=f.useContext(e2)||{};If(t,e);let{ref:r,...n}=t;return n}function ws(e,t){let{focusProps:r}=Xh(e),{keyboardProps:n}=Qh(e),o=kt(r,n),i=t2(t),s=e.isDisabled?{}:i,a=f.useRef(e.autoFocus);f.useEffect(()=>{a.current&&t.current&&QS(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:kt({...o,tabIndex:l},s)}}function Xo(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Yn(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,i,a]),c=Oh(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const h=Et(d.target),p=jo(h);if(!i.current.isFocusWithin&&p===Ze(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,c(d);let g=d.currentTarget;s(h,"focus",m=>{if(i.current.isFocusWithin&&!rt(g,m.target)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});Ah(x,g);let v=uu(x);l(v)}},{capture:!0})}},[n,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let $s=!1,Es=0;function bu(){$s=!0,setTimeout(()=>{$s=!1},50)}function em(e){e.pointerType==="touch"&&bu()}function r2(){if(!(typeof document>"u"))return Es===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",em):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",bu)),Es++,()=>{Es--,!(Es>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",em):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",bu))}}function Tr(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(r2,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Yn(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let h=(m,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let v=m.currentTarget;a.target=v,l(Et(m.target),"pointerover",$=>{a.isHovered&&a.target&&!rt(a.target,$.target)&&p($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),s(!0)},p=(m,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),s(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{$s&&m.pointerType==="mouse"||h(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!$s&&h(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function n2(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=Gt(l=>{r&&Ps(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=Gt(l=>{r&&r(l)});f.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=Et(c);if(typeof PointerEvent<"u"){let d=h=>{l.isPointerDown&&Ps(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("pointerdown",s,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",s,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Ps(p,t)&&a(p),l.isPointerDown=!1},h=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Ps(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("mousedown",s,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",s,!0),u.addEventListener("touchend",h,!0),()=>{u.removeEventListener("mousedown",s,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",s,!0),u.removeEventListener("touchend",h,!0)}}},[t,n,s,a])}function Ps(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function tm(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,o=f.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:i,removeGlobalListener:s}=Yn(),a=Gt((u,d,h,p)=>{h===0&&p===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})),r?.({type:"move",pointerType:d,deltaX:h,deltaY:p,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))}),l=Gt((u,d)=>{ms(),o.current.didMove&&n?.({type:"moveend",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})});return{moveProps:f.useMemo(()=>{let u={},d=()=>{du(),o.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let p=v=>{if(v.button===0){var $,S,C,T;a(v,"mouse",v.pageX-((C=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageX)!==null&&C!==void 0?C:0),v.pageY-((T=(S=o.current.lastPosition)===null||S===void 0?void 0:S.pageY)!==null&&T!==void 0?T:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},g=v=>{v.button===0&&(l(v,"mouse"),s(window,"mousemove",p,!1),s(window,"mouseup",g,!1))};u.onMouseDown=v=>{v.button===0&&(d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY},i(window,"mousemove",p,!1),i(window,"mouseup",g,!1))};let m=v=>{let $=[...v.changedTouches].findIndex(({identifier:D})=>D===o.current.id);if($>=0){var S,C;let{pageX:D,pageY:E}=v.changedTouches[$];var T,k;a(v,"touch",D-((T=(S=o.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&T!==void 0?T:0),E-((k=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:D,pageY:E}}},x=v=>{[...v.changedTouches].findIndex(({identifier:S})=>S===o.current.id)>=0&&(l(v,"touch"),o.current.id=null,s(window,"touchmove",m),s(window,"touchend",x),s(window,"touchcancel",x))};u.onTouchStart=v=>{if(v.changedTouches.length===0||o.current.id!=null)return;let{pageX:$,pageY:S,identifier:C}=v.changedTouches[0];d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:$,pageY:S},o.current.id=C,i(window,"touchmove",m,!1),i(window,"touchend",x,!1),i(window,"touchcancel",x,!1)}}else{let p=m=>{if(m.pointerId===o.current.id){var x,v;let C=m.pointerType||"mouse";var $,S;a(m,C,m.pageX-(($=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&$!==void 0?$:0),m.pageY-((S=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageY)!==null&&S!==void 0?S:0)),o.current.lastPosition={pageX:m.pageX,pageY:m.pageY}}},g=m=>{if(m.pointerId===o.current.id){let x=m.pointerType||"mouse";l(m,x),o.current.id=null,s(window,"pointermove",p,!1),s(window,"pointerup",g,!1),s(window,"pointercancel",g,!1)}};u.onPointerDown=m=>{m.button===0&&o.current.id==null&&(d(),m.stopPropagation(),m.preventDefault(),o.current.lastPosition={pageX:m.pageX,pageY:m.pageY},o.current.id=m.pointerId,i(window,"pointermove",p,!1),i(window,"pointerup",g,!1),i(window,"pointercancel",g,!1))}}let h=(p,g,m)=>{d(),a(p,"keyboard",g,m),l(p,"keyboard")};return u.onKeyDown=p=>{switch(p.key){case"Left":case"ArrowLeft":p.preventDefault(),p.stopPropagation(),h(p,-1,0);break;case"Right":case"ArrowRight":p.preventDefault(),p.stopPropagation(),h(p,1,0);break;case"Up":case"ArrowUp":p.preventDefault(),p.stopPropagation(),h(p,0,-1);break;case"Down":case"ArrowDown":p.preventDefault(),p.stopPropagation(),h(p,0,1);break}},u},[o,i,s,a,l])}}let o2=null;function rm(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function i2(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of om.traverse(om.getTreeNode(t)))if(r&&rm(e,r.current))return!0;return!1}function s2(e){return i2(e,o2)}let a2=class y1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new nm({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&rm(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new y1;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new nm({scopeRef:null}),this.fastMap.set(null,this.root)}},nm=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}},om=new a2;function gn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||vu()}),[i,s]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);JS(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:d}=Xh({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=Xo({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:n?h:d}}const l2=f.createContext({});function u2(){var e;return(e=f.useContext(l2))!==null&&e!==void 0?e:{}}const yu=f.createContext(null);function c2(e){let{children:t}=e,r=f.useContext(yu),[n,o]=f.useState(0),i=f.useMemo(()=>({parent:r,modalCount:n,addModal(){o(s=>s+1),r&&r.addModal()},removeModal(){o(s=>s-1),r&&r.removeModal()}}),[r,n]);return f.createElement(yu.Provider,{value:i},t)}function d2(){let e=f.useContext(yu);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function f2(e){let{modalProviderProps:t}=d2();return f.createElement("div",{"data-overlay-container":!0,...e,...t})}function p2(e){return f.createElement(c2,null,f.createElement(f2,e))}function im(e){let t=Hn(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=u2();if(!e.portalContainer&&o&&(r=o()),f.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let i=f.createElement(p2,n);return Bn.createPortal(i,r)}const sm={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function h2(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=Xo({isDisabled:!r,onFocusWithinChange:a=>o(a)}),s=f.useMemo(()=>n?t:t?{...sm,...t}:sm,[n]);return{visuallyHiddenProps:{...i,style:s}}}function m2(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=h2(e);return f.createElement(r,kt(i,s),t)}function g2(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const i=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return i==="inside"&&!e.label?"outside":i},[e.labelPlacement,r,e.label])}function v2(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const i=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return i==="inside"&&!e.label?"outside":i},[e.labelPlacement,r,e.label])}function Re(e){return f.forwardRef(e)}var qt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return r?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),n]:[e,n]};function b2(e){const[t,r]=qt(e,rf.variantKeys),{ref:n,as:o,children:i,avatar:s,startContent:a,endContent:l,onClose:c,classNames:u,className:d,...h}=t,p=o||"div",g=zt(n),m=Be(u?.base,d),x=!!c,v=e.variant==="dot",{focusProps:$,isFocusVisible:S}=gn(),C=f.useMemo(()=>typeof i=="string"&&i?.length===1,[i]),T=f.useMemo(()=>!!s||!!a,[s,a]),k=f.useMemo(()=>!!l||x,[l,x]),D=f.useMemo(()=>rf({...r,hasStartContent:T,hasEndContent:k,isOneChar:C,isCloseable:x,isCloseButtonFocusVisible:S}),[rn(r),S,T,k,C,x]),{pressProps:E}=qo({isDisabled:!!e?.isDisabled,onPress:c}),V=()=>({ref:g,className:D.base({class:m}),...h}),F=()=>({role:"button",tabIndex:0,className:D.closeButton({class:u?.closeButton}),"aria-label":"close chip",...ht(E,$)}),b=A=>f.isValidElement(A)?f.cloneElement(A,{className:D.avatar({class:u?.avatar})}):null,M=A=>f.isValidElement(A)?f.cloneElement(A,{className:Be("max-h-[80%]",A.props.className)}):null;return{Component:p,children:i,slots:D,classNames:u,isDot:v,isCloseable:x,startContent:b(s)||M(a),endContent:M(l),getCloseButtonProps:F,getChipProps:V}}var xu=e=>y.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:y.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),y2=e=>{const{isSelected:t,isIndeterminate:r,disableAnimation:n,...o}=e;return y.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...o,children:y.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},x2=({strokeWidth:e=1.5,...t})=>y.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:y.jsx("path",{d:"m6 9 6 6 6-6"})}),am=Re((e,t)=>{const{Component:r,children:n,slots:o,classNames:i,isDot:s,isCloseable:a,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=b2({...e,ref:t}),h=f.useMemo(()=>s&&!l?y.jsx("span",{className:o.dot({class:i?.dot})}):l,[o,l,s]),p=f.useMemo(()=>a?y.jsx("span",{...u(),children:c||y.jsx(xu,{})}):c,[c,a,u]);return y.jsxs(r,{...d(),children:[h,y.jsx("span",{className:o.content({class:i?.content}),children:n}),p]})});am.displayName="HeroUI.Chip";var wu=am;function Ss(e){if(!Array.isArray(e)||e.length===0)return"";if(e.length===1)return e[0];if(e.length===2)return`${e[0]} of ${e[1]}`;const t=e.slice(0,-1),r=e[e.length-1];return`${t.join(", ")} of ${r}`}function Qt(e,t){if(typeof e!="number"||!Number.isFinite(e))return String(e);switch(t){case"currency":return new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR"}).format(e);case"percentage":return new Intl.NumberFormat("nl-NL",{style:"percent",minimumFractionDigits:0,maximumFractionDigits:2}).format(e/100);case"decimal":return new Intl.NumberFormat("nl-NL",{minimumFractionDigits:0,maximumFractionDigits:2}).format(e);case"integer":return new Intl.NumberFormat("nl-NL",{maximumFractionDigits:0}).format(e);default:return new Intl.NumberFormat("nl-NL").format(e)}}function w2(e,t){if(!Array.isArray(e)||e.length===0)return[];const r=e.map(o=>{const i=o.match(/^(\d+(?:\.\d+)?)-(\d+(?:\.\d+)?)$/);return i?{original:o,min:parseFloat(i[1]),max:parseFloat(i[2])}:null}).filter(o=>o!==null).sort((o,i)=>o.min-i.min);if(r.length===0)return e;const n=[];for(const o of r){if(n.length===0){n.push({min:o.min,max:o.max});continue}const i=n[n.length-1];o.min<=i.max?i.max=Math.max(i.max,o.max):n.push({min:o.min,max:o.max})}return n.map(o=>{if(t){const i=Qt(o.min,t),s=Qt(o.max,t);return`${i}-${s}`}else{const i=(o.min%1===0,o.min.toString()),s=(o.max%1===0,o.max.toString());return`${i}-${s}`}})}function $2(e,t,r){if(!Array.isArray(e)||e.length===0)return"";const n=e.filter(s=>Array.isArray(s)&&s.length===2).sort((s,a)=>s[0]-a[0]);if(n.length===0)return"";const o=[];for(const s of n){if(o.length===0){o.push([s[0],s[1]]);continue}const a=o[o.length-1];s[0]<=a[1]?a[1]=Math.max(a[1],s[1]):o.push([s[0],s[1]])}const i=o.map(s=>Jo(s,t,r));return Ss(i)}function E2(e,t){if(!e||!t)return"";try{switch(t.type){case"range":if(typeof e.value=="string")return Jo(e.value,t.unit,t.formatType);if(Array.isArray(e.value)){if(e.value.length===2&&typeof e.value[0]=="number"&&typeof e.value[1]=="number")return Jo(e.value,t.unit,t.formatType);if(e.value.every(r=>Array.isArray(r)&&r.length===2&&typeof r[0]=="number"&&typeof r[1]=="number"))return $2(e.value,t.unit,t.formatType);if(e.value.every(r=>typeof r=="string")){const r=w2(e.value,t.formatType);return Ss(r)}}return Jo(e.value,t.unit,t.formatType);case"select":return P2(e.value,t.label);default:return lm(e.value,t.label)}}catch{return lm(e.value,t.label)}}function Jo(e,t,r){if(typeof e=="string"){const s=e.match(/^(\d+(?:\.\d+)?)-(\d+(?:\.\d+)?)$/);if(s){const a=parseFloat(s[1]),l=parseFloat(s[2]);return Jo([a,l],t,r)}return e}if(!Array.isArray(e)||e.length!==2)return"";const[n,o]=e,i=t||"";if(n===o){if(r==="currency")return`${Qt(n,r)}`;{const s=Qt(n,r);return`${i}${s}`}}if(n===0||n===null||n===void 0){if(r==="currency")return`Tot ${Qt(o,r)}`;{const s=Qt(o,r);return`Tot ${i}${s}`}}if(o==null||o===1/0||!Number.isFinite(o)){if(r==="currency")return`Vanaf ${Qt(n,r)}`;{const s=Qt(n,r);return`Vanaf ${i}${s}`}}if(r==="currency"){const s=Qt(n,r),a=Qt(o,r);return`${s} - ${a}`}else{const s=Qt(n,r),a=Qt(o,r);return`${i}${s} - ${i}${a}`}}function P2(e,t){if(!Array.isArray(e)||e.length===0)return"";if(e.length===1)return vn(e[0],30);if(e.length===2){const r=e.map(n=>vn(n,20));return`${r[0]} of ${r[1]}`}if(e.length===3){const r=e.map(n=>vn(n,15));return Ss(r)}return e.length>3?`${t||"items"} (${e.length})`:Ss(e.map(r=>vn(r,15)))}function S2(e,t="Yes",r="No"){return e?t:r}function vn(e,t){if(!e||typeof e!="string")return"";if(e.length<=t)return e;if(t<10)return`${e.substring(0,t-3)}...`;const r=e.substring(0,t-3),n=r.lastIndexOf(" ");return n>t*.6?`${r.substring(0,n)}...`:`${r}...`}function lm(e,t){if(e==null)return"";if(typeof e=="string")return vn(e,30);if(typeof e=="number")return e.toString();if(typeof e=="boolean")return S2(e);if(Array.isArray(e)){if(e.length===0)return"";if(e.length===1)return vn(String(e[0]),30);const r=t||"items";return`${e.length} ${r.toLowerCase()} selected`}return vn(String(e),30)}function C2(e,t){const r=E2(e,t);return r||t.label}function T2(e,t){return e.find(r=>r.id===t)}function Kr(e,t){return e.find(r=>r.id===t)?.value}class ho extends Error{response;request;constructor(t,r){const n=`${ho.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,ho.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,ho)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const um=e=>e.toUpperCase(),$u=e=>typeof e=="function"?e():e,cm=(e,t)=>e.map((r,n)=>[r,t[n]]),mo=e=>{let t={};return e instanceof Headers?t=k2(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):e&&(t=e),t},k2=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},I2=e=>{try{const t=e();return _2(t)?t.catch(r=>dm(r)):t}catch(t){return dm(t)}},dm=e=>e instanceof Error?e:new Error(String(e)),_2=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",Eu=e=>{throw new Error(`Unhandled case: ${String(e)}`)},Cs=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),M2=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},D2=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function Ts(e,t){if(!!!e)throw new Error(t)}function A2(e){return typeof e=="object"&&e!==null}function O2(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const N2=/\r\n|[\n\r]/g;function Pu(e,t){let r=0,n=1;for(const o of e.body.matchAll(N2)){if(typeof o.index=="number"||O2(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function L2(e){return fm(e.source,Pu(e.source,e.start))}function fm(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,i=e.locationOffset.line-1,s=t.line+i,a=t.line===1?r:0,l=t.column+a,c=`${e.name}:${s}:${l}
|
|
45
|
-
`,u=n.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const h=Math.floor(l/80),p=l%80,g=[];for(let m=0;m<d.length;m+=80)g.push(d.slice(m,m+80));return c+pm([[`${s} |`,g[0]],...g.slice(1,h+1).map(m=>["|",m]),["|","^".padStart(p)],["|",g[h+1]]])}return c+pm([[`${s-1} |`,u[o-1]],[`${s} |`,d],["|","^".padStart(l)],[`${s+1} |`,u[o+1]]])}function pm(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
|
|
46
|
-
`)}function F2(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class Su extends Error{constructor(t,...r){var n,o,i;const{nodes:s,source:a,positions:l,path:c,originalError:u,extensions:d}=F2(r);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=hm(Array.isArray(s)?s:s?[s]:void 0);const h=hm((n=this.nodes)===null||n===void 0?void 0:n.map(g=>g.loc).filter(g=>g!=null));this.source=a??(h==null||(o=h[0])===null||o===void 0?void 0:o.source),this.positions=l??h?.map(g=>g.start),this.locations=l&&a?l.map(g=>Pu(a,g)):h?.map(g=>Pu(g.source,g.start));const p=A2(u?.extensions)?u?.extensions:void 0;this.extensions=(i=d??p)!==null&&i!==void 0?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Su):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
30
|
+
<%s key={someKey} {...props} />`,Ss,Or,dd,Or),Bn[Or+Ss]=!0}}return O===n?zn(st):qe(st),st}}function ke(O,J,se){return en(O,J,se,!0)}function Mo(O,J,se){return en(O,J,se,!1)}var Rn=Mo,Cs=ke;Ao.Fragment=n,Ao.jsx=Rn,Ao.jsxs=Cs}()),Ao}var md;function u1(){return md||(md=1,process.env.NODE_ENV==="production"?Ts.exports=a1():Ts.exports=l1()),Ts.exports}var b=u1(),c1={default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},d1={default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground"},f1={default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger"},p1={default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-600",secondary:"bg-secondary/20 text-secondary-600",success:"bg-success/20 text-success-700 dark:text-success",warning:"bg-warning/20 text-warning-700 dark:text-warning",danger:"bg-danger/20 text-danger-600 dark:text-danger-500"},h1={default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger"},m1={default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger"},g1={default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger"},Y={solid:c1,shadow:d1,bordered:f1,flat:p1,faded:h1,light:m1,ghost:g1},v1={".spinner-bar-animation":{"animation-delay":"calc(-1.2s + (0.1s * var(--bar-index)))",transform:"rotate(calc(30deg * var(--bar-index)))translate(140%)"},".spinner-dot-animation":{"animation-delay":"calc(250ms * var(--dot-index))"},".spinner-dot-blink-animation":{"animation-delay":"calc(200ms * var(--dot-index))"}},b1={".leading-inherit":{"line-height":"inherit"},".bg-img-inherit":{"background-image":"inherit"},".bg-clip-inherit":{"background-clip":"inherit"},".text-fill-inherit":{"-webkit-text-fill-color":"inherit"},".tap-highlight-transparent":{"-webkit-tap-highlight-color":"transparent"},".input-search-cancel-button-none":{"&::-webkit-search-cancel-button":{"-webkit-appearance":"none"}}},y1={".scrollbar-hide":{"-ms-overflow-style":"none","scrollbar-width":"none","&::-webkit-scrollbar":{display:"none"}},".scrollbar-default":{"-ms-overflow-style":"auto","scrollbar-width":"auto","&::-webkit-scrollbar":{display:"block"}}},x1={".text-tiny":{"font-size":"var(--heroui-font-size-tiny)","line-height":"var(--heroui-line-height-tiny)"},".text-small":{"font-size":"var(--heroui-font-size-small)","line-height":"var(--heroui-line-height-small)"},".text-medium":{"font-size":"var(--heroui-font-size-medium)","line-height":"var(--heroui-line-height-medium)"},".text-large":{"font-size":"var(--heroui-font-size-large)","line-height":"var(--heroui-line-height-large)"}},ur="250ms",w1={".transition-background":{"transition-property":"background","transition-timing-function":"ease","transition-duration":ur},".transition-colors-opacity":{"transition-property":"color, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ur},".transition-width":{"transition-property":"width","transition-timing-function":"ease","transition-duration":ur},".transition-height":{"transition-property":"height","transition-timing-function":"ease","transition-duration":ur},".transition-size":{"transition-property":"width, height","transition-timing-function":"ease","transition-duration":ur},".transition-left":{"transition-property":"left","transition-timing-function":"ease","transition-duration":ur},".transition-transform-opacity":{"transition-property":"transform, scale, opacity rotate","transition-timing-function":"ease","transition-duration":ur},".transition-transform-background":{"transition-property":"transform, scale, background","transition-timing-function":"ease","transition-duration":ur},".transition-transform-colors":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke","transition-timing-function":"ease","transition-duration":ur},".transition-transform-colors-opacity":{"transition-property":"transform, scale, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity","transition-timing-function":"ease","transition-duration":ur}},$1={...b1,...w1,...y1,...x1,...v1},ks=["small","medium","large"],_a={theme:{spacing:["divider"],radius:ks},classGroups:{shadow:[{shadow:ks}],opacity:[{opacity:["disabled"]}],"font-size":[{text:["tiny",...ks]}],"border-w":[{border:ks}],"bg-image":["bg-stripe-gradient-default","bg-stripe-gradient-primary","bg-stripe-gradient-secondary","bg-stripe-gradient-success","bg-stripe-gradient-warning","bg-stripe-gradient-danger"],transition:Object.keys($1).filter(e=>e.includes(".transition")).map(e=>e.replace(".",""))}},gd=e=>e===!1?"false":e===!0?"true":e===0?"0":e,jt=e=>{if(!e||typeof e!="object")return!0;for(let t in e)return!1;return!0},E1=(e,t)=>{if(e===t)return!0;if(!e||!t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!n.includes(s)||e[s]!==t[s])return!1}return!0};function vd(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?vd(n,t):t.push(n)}}var bd=(...e)=>{let t=[];vd(e,t);let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r},yd=(e,t)=>{let r={};for(let n in e){let o=e[n];if(n in t){let s=t[n];Array.isArray(o)||Array.isArray(s)?r[n]=bd(s,o):typeof o=="object"&&typeof s=="object"&&o&&s?r[n]=yd(o,s):r[n]=s+" "+o}else r[n]=o}for(let n in t)n in e||(r[n]=t[n]);return r},P1=/\s+/g,xd=e=>!e||typeof e!="string"?e:e.replace(P1," ").trim();const Ma="-",C1=e=>{const t=T1(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Ma);return a[0]===""&&a.length!==1&&a.shift(),wd(a,t)||S1(i)},getConflictingClassGroupIds:(i,a)=>{const l=r[i]||[];return a&&n[i]?[...l,...n[i]]:l}}},wd=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?wd(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Ma);return t.validators.find(({validator:i})=>i(s))?.classGroupId},$d=/^\[(.+)\]$/,S1=e=>{if($d.test(e)){const t=$d.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},T1=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Da(r[o],n,o,t);return n},Da=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:Ed(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(k1(o)){Da(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{Da(i,Ed(t,s),r,n)})})},Ed=(e,t)=>{let r=e;return t.split(Ma).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},k1=e=>e.isThemeGetter,I1=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},Aa="!",Na=":",_1=Na.length,M1=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,l=0,c;for(let g=0;g<o.length;g++){let m=o[g];if(i===0&&a===0){if(m===Na){s.push(o.slice(l,g)),l=g+_1;continue}if(m==="/"){c=g;continue}}m==="["?i++:m==="]"?i--:m==="("?a++:m===")"&&a--}const u=s.length===0?o:o.substring(l),d=D1(u),p=d!==u,h=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:d,maybePostfixModifierPosition:h}};if(t){const o=t+Na,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},D1=e=>e.endsWith(Aa)?e.substring(0,e.length-1):e.startsWith(Aa)?e.substring(1):e,A1=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},N1=e=>({cache:I1(e.cacheSize),parseClassName:M1(e),sortModifiers:A1(e),...C1(e)}),O1=/\s+/,L1=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(O1);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:d,modifiers:p,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:m}=r(u);if(d){l=u+(l.length>0?" "+l:l);continue}let x=!!m,v=n(x?g.substring(0,m):g);if(!v){if(!x){l=u+(l.length>0?" "+l:l);continue}if(v=n(g),!v){l=u+(l.length>0?" "+l:l);continue}x=!1}const $=s(p).join(":"),C=h?$+Aa:$,E=C+v;if(i.includes(E))continue;i.push(E);const T=o(v,x);for(let k=0;k<T.length;++k){const D=T[k];i.push(C+D)}l=u+(l.length>0?" "+l:l)}return l};function F1(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Pd(t))&&(n&&(n+=" "),n+=r);return n}const Pd=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Pd(e[n]))&&(r&&(r+=" "),r+=t);return r};function Oa(e,...t){let r,n,o,s=i;function i(l){const c=t.reduce((u,d)=>d(u),e());return r=N1(c),n=r.cache.get,o=r.cache.set,s=a,a(l)}function a(l){const c=n(l);if(c)return c;const u=L1(l,r);return o(l,u),u}return function(){return s(F1.apply(null,arguments))}}const ht=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},Cd=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Sd=/^\((?:(\w[\w-]*):)?(.+)\)$/i,V1=/^\d+\/\d+$/,j1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,z1=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,B1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,R1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>V1.test(e),Ee=e=>!!e&&!Number.isNaN(Number(e)),Lr=e=>!!e&&Number.isInteger(Number(e)),La=e=>e.endsWith("%")&&Ee(e.slice(0,-1)),$r=e=>j1.test(e),W1=()=>!0,U1=e=>z1.test(e)&&!B1.test(e),Td=()=>!1,H1=e=>R1.test(e),G1=e=>K1.test(e),Z1=e=>!ce(e)&&!de(e),q1=e=>Hn(e,Dd,Td),ce=e=>Cd.test(e),rn=e=>Hn(e,Ad,U1),Fa=e=>Hn(e,ex,Ee),kd=e=>Hn(e,_d,Td),Y1=e=>Hn(e,Md,G1),Is=e=>Hn(e,Nd,H1),de=e=>Sd.test(e),No=e=>Gn(e,Ad),X1=e=>Gn(e,tx),Id=e=>Gn(e,_d),J1=e=>Gn(e,Dd),Q1=e=>Gn(e,Md),_s=e=>Gn(e,Nd,!0),Hn=(e,t,r)=>{const n=Cd.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Gn=(e,t,r=!1)=>{const n=Sd.exec(e);return n?n[1]?t(n[1]):r:!1},_d=e=>e==="position"||e==="percentage",Md=e=>e==="image"||e==="url",Dd=e=>e==="length"||e==="size"||e==="bg-size",Ad=e=>e==="length",ex=e=>e==="number",tx=e=>e==="family-name",Nd=e=>e==="shadow",Va=()=>{const e=ht("color"),t=ht("font"),r=ht("text"),n=ht("font-weight"),o=ht("tracking"),s=ht("leading"),i=ht("breakpoint"),a=ht("container"),l=ht("spacing"),c=ht("radius"),u=ht("shadow"),d=ht("inset-shadow"),p=ht("text-shadow"),h=ht("drop-shadow"),g=ht("blur"),m=ht("perspective"),x=ht("aspect"),v=ht("ease"),$=ht("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),de,ce],k=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],P=()=>[de,ce,l],V=()=>[Un,"full","auto",...P()],F=()=>[Lr,"none","subgrid",de,ce],y=()=>["auto",{span:["full",Lr,de,ce]},Lr,de,ce],M=()=>[Lr,"auto",de,ce],A=()=>["auto","min","max","fr",de,ce],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],w=()=>["auto",...P()],S=()=>[Un,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],_=()=>[e,de,ce],B=()=>[...E(),Id,kd,{position:[de,ce]}],L=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",J1,q1,{size:[de,ce]}],z=()=>[La,No,rn],W=()=>["","none","full",c,de,ce],U=()=>["",Ee,No,rn],ee=()=>["solid","dashed","dotted","double"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>[Ee,La,Id,kd],me=()=>["","none",g,de,ce],ue=()=>["none",Ee,de,ce],Q=()=>["none",Ee,de,ce],ie=()=>[Ee,de,ce],q=()=>[Un,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[$r],breakpoint:[$r],color:[W1],container:[$r],"drop-shadow":[$r],ease:["in","out","in-out"],font:[Z1],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[$r],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[$r],shadow:[$r],spacing:["px",Ee],text:[$r],"text-shadow":[$r],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Un,ce,de,x]}],container:["container"],columns:[{columns:[Ee,ce,de,a]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[Lr,"auto",de,ce]}],basis:[{basis:[Un,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ee,Un,"auto","initial","none",ce]}],grow:[{grow:["",Ee,de,ce]}],shrink:[{shrink:["",Ee,de,ce]}],order:[{order:[Lr,"first","last","none",de,ce]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:y()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:y()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:w()}],mx:[{mx:w()}],my:[{my:w()}],ms:[{ms:w()}],me:[{me:w()}],mt:[{mt:w()}],mr:[{mr:w()}],mb:[{mb:w()}],ml:[{ml:w()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:S()}],w:[{w:[a,"screen",...S()]}],"min-w":[{"min-w":[a,"screen","none",...S()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...S()]}],h:[{h:["screen","lh",...S()]}],"min-h":[{"min-h":["screen","lh","none",...S()]}],"max-h":[{"max-h":["screen","lh",...S()]}],"font-size":[{text:["base",r,No,rn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,de,Fa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",La,ce]}],"font-family":[{font:[X1,ce,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,ce]}],"line-clamp":[{"line-clamp":[Ee,"none",de,Fa]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",de,ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ee,"from-font","auto",de,rn]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[Ee,"auto",de,ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:B()}],"bg-repeat":[{bg:L()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Lr,de,ce],radial:["",de,ce],conic:[Lr,de,ce]},Q1,Y1]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:z()}],"gradient-via-pos":[{via:z()}],"gradient-to-pos":[{to:z()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:U()}],"border-w-x":[{"border-x":U()}],"border-w-y":[{"border-y":U()}],"border-w-s":[{"border-s":U()}],"border-w-e":[{"border-e":U()}],"border-w-t":[{"border-t":U()}],"border-w-r":[{"border-r":U()}],"border-w-b":[{"border-b":U()}],"border-w-l":[{"border-l":U()}],"divide-x":[{"divide-x":U()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":U()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ee,de,ce]}],"outline-w":[{outline:["",Ee,No,rn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",u,_s,Is]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",d,_s,Is]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[Ee,rn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":U()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",p,_s,Is]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[Ee,de,ce]}],"mix-blend":[{"mix-blend":[...G(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":G()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ee]}],"mask-image-linear-from-pos":[{"mask-linear-from":R()}],"mask-image-linear-to-pos":[{"mask-linear-to":R()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":R()}],"mask-image-t-to-pos":[{"mask-t-to":R()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":R()}],"mask-image-r-to-pos":[{"mask-r-to":R()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":R()}],"mask-image-b-to-pos":[{"mask-b-to":R()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":R()}],"mask-image-l-to-pos":[{"mask-l-to":R()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":R()}],"mask-image-x-to-pos":[{"mask-x-to":R()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":R()}],"mask-image-y-to-pos":[{"mask-y-to":R()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[de,ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":R()}],"mask-image-radial-to-pos":[{"mask-radial-to":R()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[Ee]}],"mask-image-conic-from-pos":[{"mask-conic-from":R()}],"mask-image-conic-to-pos":[{"mask-conic-to":R()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:B()}],"mask-repeat":[{mask:L()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,ce]}],filter:[{filter:["","none",de,ce]}],blur:[{blur:me()}],brightness:[{brightness:[Ee,de,ce]}],contrast:[{contrast:[Ee,de,ce]}],"drop-shadow":[{"drop-shadow":["","none",h,_s,Is]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",Ee,de,ce]}],"hue-rotate":[{"hue-rotate":[Ee,de,ce]}],invert:[{invert:["",Ee,de,ce]}],saturate:[{saturate:[Ee,de,ce]}],sepia:[{sepia:["",Ee,de,ce]}],"backdrop-filter":[{"backdrop-filter":["","none",de,ce]}],"backdrop-blur":[{"backdrop-blur":me()}],"backdrop-brightness":[{"backdrop-brightness":[Ee,de,ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ee,de,ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ee,de,ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ee,de,ce]}],"backdrop-invert":[{"backdrop-invert":["",Ee,de,ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ee,de,ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ee,de,ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ee,de,ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ee,"initial",de,ce]}],ease:[{ease:["linear","initial",v,de,ce]}],delay:[{delay:[Ee,de,ce]}],animate:[{animate:["none",$,de,ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,de,ce]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:Q()}],"scale-x":[{"scale-x":Q()}],"scale-y":[{"scale-y":Q()}],"scale-z":[{"scale-z":Q()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[de,ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:q()}],"translate-x":[{"translate-x":q()}],"translate-y":[{"translate-y":q()}],"translate-z":[{"translate-z":q()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,ce]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[Ee,No,rn,Fa]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},rx=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:s={}})=>(Oo(e,"cacheSize",t),Oo(e,"prefix",r),Oo(e,"experimentalParseClassName",n),Ms(e.theme,s.theme),Ms(e.classGroups,s.classGroups),Ms(e.conflictingClassGroups,s.conflictingClassGroups),Ms(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Oo(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Ds(e.theme,o.theme),Ds(e.classGroups,o.classGroups),Ds(e.conflictingClassGroups,o.conflictingClassGroups),Ds(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Od(e,o,"orderSensitiveModifiers"),e),Oo=(e,t,r)=>{r!==void 0&&(e[t]=r)},Ms=(e,t)=>{if(t)for(const r in t)Oo(e,r,t[r])},Ds=(e,t)=>{if(t)for(const r in t)Od(e,t,r)},Od=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},Ld=(e,...t)=>typeof e=="function"?Oa(Va,e,...t):Oa(()=>rx(Va(),e),...t),nx=Oa(Va);var ox=e=>jt(e)?nx:Ld({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),sx={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},As=(...e)=>{let t=[];Fd(e,t);let r="";for(let n=0;n<t.length;n++)t[n]&&(r&&(r+=" "),r+=t[n]);return r||void 0};function Fd(e,t){for(let r=0;r<e.length;r++){let n=e[r];Array.isArray(n)?Fd(n,t):n&&t.push(n)}}var ja=null,za={},Ba=!1,Ns=(...e)=>t=>{let r=As(e);return!r||!t.twMerge?r:((!ja||Ba)&&(Ba=!1,ja=ox(za)),ja(r)||void 0)},Vd=(e,t)=>{for(let r in t)r in e?e[r]=As(e[r],t[r]):e[r]=t[r];return e},ix=(e,t)=>{let{extend:r=null,slots:n={},variants:o={},compoundVariants:s=[],compoundSlots:i=[],defaultVariants:a={}}=e,l={...sx,...t},c=r?.base?As(r.base,e?.base):e?.base,u=r?.variants&&!jt(r.variants)?yd(o,r.variants):o,d=r?.defaultVariants&&!jt(r.defaultVariants)?{...r.defaultVariants,...a}:a;!jt(l.twMergeConfig)&&!E1(l.twMergeConfig,za)&&(Ba=!0,za=l.twMergeConfig);let p=jt(r?.slots),h=jt(n)?{}:{base:As(e?.base,p&&r?.base),...n},g=p?h:Vd({...r?.slots},jt(h)?{base:e?.base}:h),m=jt(r?.compoundVariants)?s:bd(r?.compoundVariants,s),x=$=>{if(jt(u)&&jt(n)&&p)return Ns(c,$?.class,$?.className)(l);if(m&&!Array.isArray(m))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof m}`);if(i&&!Array.isArray(i))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof i}`);let C=(M,A,I=[],N)=>{let w=I;if(typeof A=="string"){let S=xd(A).split(" ");for(let _=0;_<S.length;_++)w.push(`${M}:${S[_]}`)}else if(Array.isArray(A))for(let S=0;S<A.length;S++)w.push(`${M}:${A[S]}`);else if(typeof A=="object"&&typeof N=="string"&&N in A){let S=A[N];if(S&&typeof S=="string"){let _=xd(S).split(" "),B=[];for(let L=0;L<_.length;L++)B.push(`${M}:${_[L]}`);w[N]=w[N]?w[N].concat(B):B}else if(Array.isArray(S)&&S.length>0){let _=[];for(let B=0;B<S.length;B++)_.push(`${M}:${S[B]}`);w[N]=_}}return w},E=(M,A=u,I=null,N=null)=>{let w=A[M];if(!w||jt(w))return null;let S=N?.[M]??$?.[M];if(S===null)return null;let _=gd(S),B=Array.isArray(l.responsiveVariants)&&l.responsiveVariants.length>0||l.responsiveVariants===!0,L=d?.[M],K=[];if(typeof _=="object"&&B)for(let[U,ee]of Object.entries(_)){let G=w[ee];if(U==="initial"){L=ee;continue}Array.isArray(l.responsiveVariants)&&!l.responsiveVariants.includes(U)||(K=C(U,G,K,I))}let z=_!=null&&typeof _!="object"?_:gd(L),W=w[z||"false"];return typeof K=="object"&&typeof I=="string"&&K[I]?Vd(K,W):K.length>0?(K.push(W),I==="base"?K.join(" "):K):W},T=()=>{if(!u)return null;let M=Object.keys(u),A=[];for(let I=0;I<M.length;I++){let N=E(M[I],u);N&&A.push(N)}return A},k=(M,A)=>{if(!u||typeof u!="object")return null;let I=[];for(let N in u){let w=E(N,u,M,A),S=M==="base"&&typeof w=="string"?w:w&&w[M];S&&I.push(S)}return I},D={};for(let M in $){let A=$[M];A!==void 0&&(D[M]=A)}let P=(M,A)=>{let I=typeof $?.[M]=="object"?{[M]:$[M]?.initial}:{};return{...d,...D,...I,...A}},V=(M=[],A)=>{let I=[],N=M.length;for(let w=0;w<N;w++){let{class:S,className:_,...B}=M[w],L=!0,K=P(null,A);for(let z in B){let W=B[z],U=K[z];if(Array.isArray(W)){if(!W.includes(U)){L=!1;break}}else{if((W==null||W===!1)&&(U==null||U===!1))continue;if(U!==W){L=!1;break}}}L&&(S&&I.push(S),_&&I.push(_))}return I},F=M=>{let A=V(m,M);if(!Array.isArray(A))return A;let I={},N=Ns;for(let w=0;w<A.length;w++){let S=A[w];if(typeof S=="string")I.base=N(I.base,S)(l);else if(typeof S=="object")for(let _ in S)I[_]=N(I[_],S[_])(l)}return I},y=M=>{if(i.length<1)return null;let A={},I=P(null,M);for(let N=0;N<i.length;N++){let{slots:w=[],class:S,className:_,...B}=i[N];if(!jt(B)){let L=!0;for(let K in B){let z=I[K],W=B[K];if(z===void 0||(Array.isArray(W)?!W.includes(z):W!==z)){L=!1;break}}if(!L)continue}for(let L=0;L<w.length;L++){let K=w[L];A[K]||(A[K]=[]),A[K].push([S,_])}}return A};if(!jt(n)||!p){let M={};if(typeof g=="object"&&!jt(g)){let A=Ns;for(let I in g)M[I]=N=>{let w=F(N),S=y(N);return A(g[I],k(I,N),w?w[I]:void 0,S?S[I]:void 0,N?.class,N?.className)(l)}}return M}return Ns(c,T(),V(m),$?.class,$?.className)(l)},v=()=>{if(!(!u||typeof u!="object"))return Object.keys(u)};return x.variantKeys=v(),x.extend=r,x.base=c,x.slots=g,x.variants=u,x.defaultVariants=d,x.compoundSlots=i,x.compoundVariants=m,x},nt=(e,t)=>{var r,n,o;return ix(e,{...t,twMerge:(r=void 0)!=null?r:!0,twMergeConfig:{theme:{...(n=void 0)==null?void 0:n.theme,..._a.theme},classGroups:{...(o=void 0)==null?void 0:o.classGroups,..._a.classGroups}}})},Os=nt({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",label:"text-foreground dark:text-foreground-dark font-regular",circle1:"absolute w-full h-full rounded-full",circle2:"absolute w-full h-full rounded-full",dots:"relative rounded-full mx-auto",spinnerBars:["absolute","animate-fade-out","rounded-full","w-[25%]","h-[8%]","left-[calc(37.5%)]","top-[calc(46%)]","spinner-bar-animation"]},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",dots:"size-1",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",dots:"size-1.5",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",dots:"size-2",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current",dots:"bg-current",spinnerBars:"bg-current"},white:{circle1:"border-b-white",circle2:"border-b-white",dots:"bg-white",spinnerBars:"bg-white"},default:{circle1:"border-b-default",circle2:"border-b-default",dots:"bg-default",spinnerBars:"bg-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary",dots:"bg-primary",spinnerBars:"bg-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary",dots:"bg-secondary",spinnerBars:"bg-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success",dots:"bg-success",spinnerBars:"bg-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning",dots:"bg-warning",spinnerBars:"bg-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger",dots:"bg-danger",spinnerBars:"bg-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}},variant:{default:{circle1:["animate-spinner-ease-spin","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["opacity-75","animate-spinner-linear-spin","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"]},gradient:{circle1:["border-0","bg-gradient-to-b","from-transparent","via-transparent","to-primary","animate-spinner-linear-spin","[animation-duration:1s]","[-webkit-mask:radial-gradient(closest-side,rgba(0,0,0,0.0)calc(100%-3px),rgba(0,0,0,1)calc(100%-3px))]"],circle2:["hidden"]},wave:{wrapper:"translate-y-3/4",dots:["animate-sway","spinner-dot-animation"]},dots:{wrapper:"translate-y-2/4",dots:["animate-blink","spinner-dot-blink-animation"]},spinner:{},simple:{wrapper:"text-foreground h-5 w-5 animate-spin",circle1:"opacity-25",circle2:"opacity-75"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground",variant:"default"},compoundVariants:[{variant:"gradient",color:"current",class:{circle1:"to-current"}},{variant:"gradient",color:"white",class:{circle1:"to-white"}},{variant:"gradient",color:"default",class:{circle1:"to-default"}},{variant:"gradient",color:"primary",class:{circle1:"to-primary"}},{variant:"gradient",color:"secondary",class:{circle1:"to-secondary"}},{variant:"gradient",color:"success",class:{circle1:"to-success"}},{variant:"gradient",color:"warning",class:{circle1:"to-warning"}},{variant:"gradient",color:"danger",class:{circle1:"to-danger"}},{variant:"wave",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"wave",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"wave",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"dots",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"dots",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"dots",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",size:"sm",class:{wrapper:"w-5 h-5"}},{variant:"simple",size:"md",class:{wrapper:"w-8 h-8"}},{variant:"simple",size:"lg",class:{wrapper:"w-12 h-12"}},{variant:"simple",color:"current",class:{wrapper:"text-current"}},{variant:"simple",color:"white",class:{wrapper:"text-white"}},{variant:"simple",color:"default",class:{wrapper:"text-default"}},{variant:"simple",color:"primary",class:{wrapper:"text-primary"}},{variant:"simple",color:"secondary",class:{wrapper:"text-secondary"}},{variant:"simple",color:"success",class:{wrapper:"text-success"}},{variant:"simple",color:"warning",class:{wrapper:"text-warning"}},{variant:"simple",color:"danger",class:{wrapper:"text-danger"}}]}),Er=["outline-solid outline-transparent","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],Ra=["outline-solid outline-transparent","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],ax=["outline-solid outline-transparent","ring-2","ring-focus","ring-offset-2","ring-offset-background"],Zn={default:["[&+.border-medium.border-default]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(var(--heroui-border-width-medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(var(--heroui-border-width-medium)*-1)]"]},jd=["font-inherit","text-[100%]","leading-[1.15]","m-0","p-0","overflow-visible","box-border","absolute","top-0","w-full","h-full","opacity-[0.0001]","z-[1]","cursor-pointer","disabled:cursor-default"],Ls=nt({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Er],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-solid outline-transparent","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:Y.solid.foreground},primary:{base:"before:bg-primary",content:Y.solid.primary},secondary:{base:"before:bg-secondary",content:Y.solid.secondary},success:{base:"before:bg-success",content:Y.solid.success},warning:{base:"before:bg-warning",content:Y.solid.warning},danger:{base:"before:bg-danger",content:Y.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{none:{content:"shadow-none"},sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),lx=nt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","border-solid","border-medium","box-border","border-default","rounded-full","group-data-[hover-unselected=true]:bg-default-100",...Ra],hiddenInput:jd,labelWrapper:"flex flex-col ml-1",control:["z-10","w-2","h-2","opacity-0","scale-0","origin-center","rounded-full","group-data-[selected=true]:opacity-100","group-data-[selected=true]:scale-100"],label:"relative text-foreground select-none",description:"relative text-foreground-400"},variants:{color:{default:{control:"bg-default-500 text-default-foreground",wrapper:"group-data-[selected=true]:border-default-500"},primary:{control:"bg-primary text-primary-foreground",wrapper:"group-data-[selected=true]:border-primary"},secondary:{control:"bg-secondary text-secondary-foreground",wrapper:"group-data-[selected=true]:border-secondary"},success:{control:"bg-success text-success-foreground",wrapper:"group-data-[selected=true]:border-success"},warning:{control:"bg-warning text-warning-foreground",wrapper:"group-data-[selected=true]:border-warning"},danger:{control:"bg-danger text-danger-foreground",wrapper:"group-data-[selected=true]:border-danger"}},size:{sm:{wrapper:"w-4 h-4",control:"w-1.5 h-1.5",labelWrapper:"ml-1",label:"text-small",description:"text-tiny"},md:{wrapper:"w-5 h-5",control:"w-2 h-2",labelWrapper:"ms-2",label:"text-medium",description:"text-small"},lg:{wrapper:"w-6 h-6",control:"w-2.5 h-2.5",labelWrapper:"ms-2",label:"text-large",description:"text-medium"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{control:"bg-danger text-danger-foreground",wrapper:"border-danger group-data-[selected=true]:border-danger",label:"text-danger",description:"text-danger-300"}},disableAnimation:{true:{},false:{wrapper:["group-data-[pressed=true]:scale-95","transition-transform-colors","motion-reduce:transition-none"],control:"transition-transform-opacity motion-reduce:transition-none",label:"transition-colors motion-reduce:transition-none",description:"transition-colors motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,isInvalid:!1}}),ux=nt({slots:{base:"relative flex flex-col gap-2",label:"relative text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),cx=["data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],dx=["data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],Fs=nt({base:[],variants:{orientation:{vertical:["overflow-y-auto",...cx],horizontal:["overflow-x-auto",...dx]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),zd=nt({slots:{base:["group inline-flex flex-col relative"],label:["block","absolute","z-10","origin-top-left","flex-shrink-0","rtl:origin-top-right","subpixel-antialiased","text-small","text-foreground-500","pointer-events-none","group-data-[has-label-outside=true]:pointer-events-auto"],mainWrapper:"w-full flex flex-col",trigger:"relative px-3 gap-3 w-full inline-flex flex-row items-center shadow-xs outline-solid outline-transparent tap-highlight-transparent",innerWrapper:"inline-flex h-fit w-[calc(100%_-theme(spacing.6))] min-h-4 items-center gap-1.5 box-border",selectorIcon:"absolute end-3 w-4 h-4",spinner:"absolute end-3",value:["text-foreground-500","font-normal","w-full","text-start"],listboxWrapper:"scroll-py-6 w-full",listbox:"",popoverContent:"w-full p-1 overflow-hidden",clearButton:["w-4","h-4","z-10","mb-4","relative","start-auto","appearance-none","outline-none","select-none","opacity-70","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...Er],helperWrapper:"p-1 flex relative flex-col gap-1.5 group-data-[has-helper=true]:flex",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger",endWrapper:"flex end-18",endContent:"mb-4"},variants:{variant:{flat:{trigger:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-200"],clearButton:"mb-4"},faded:{trigger:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 data-[focus=true]:border-default-400 data-[open=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},bordered:{trigger:["border-medium","border-default-200","data-[hover=true]:border-default-400","data-[open=true]:border-default-foreground","data-[focus=true]:border-default-foreground"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4"},underlined:{trigger:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","data-[open=true]:after:w-full","data-[focus=true]:after:w-full"],value:"group-data-[has-value=true]:text-default-foreground",clearButton:"mb-4 me-2"}},color:{default:{},primary:{selectorIcon:"text-primary"},secondary:{selectorIcon:"text-secondary"},success:{selectorIcon:"text-success"},warning:{selectorIcon:"text-warning"},danger:{selectorIcon:"text-danger"}},size:{sm:{label:"text-tiny",trigger:"h-8 min-h-8 px-2 rounded-small",value:"text-small",clearButton:"text-medium"},md:{trigger:"h-10 min-h-10 rounded-medium",value:"text-small",clearButton:"text-large"},lg:{trigger:"h-12 min-h-12 rounded-large",value:"text-medium",clearButton:"mb-5 text-large"}},radius:{none:{trigger:"rounded-none"},sm:{trigger:"rounded-small"},md:{trigger:"rounded-medium"},lg:{trigger:"rounded-large"},full:{trigger:"rounded-full"}},labelPlacement:{outside:{base:"flex flex-col",clearButton:"mb-0"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",label:"relative pe-2 text-foreground",clearButton:"mb-0"},inside:{label:"text-tiny cursor-pointer",trigger:"flex-col items-start justify-center gap-0"}},fullWidth:{true:{base:"w-full"},false:{base:"min-w-40"}},isClearable:{true:{clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block",endContent:"ms-3"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",trigger:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",value:"!text-danger",selectorIcon:"text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",trigger:"!h-auto"},false:{value:"truncate"}},disableAnimation:{true:{trigger:"after:transition-none",base:"transition-none",label:"transition-none",selectorIcon:"transition-none"},false:{base:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","origin-top-left","rtl:origin-top-right","!duration-200","!ease-out","transition-[transform,color,left,opacity,translate,scale]","motion-reduce:transition-none"],selectorIcon:"transition-transform duration-150 ease motion-reduce:transition-none",clearButton:["transition-opacity","motion-reduce:transition-none"]}},disableSelectorIconRotation:{true:{},false:{selectorIcon:"data-[open=true]:rotate-180"}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1,disableSelectorIconRotation:!1},compoundVariants:[{variant:"flat",color:"default",class:{value:"group-data-[has-value=true]:text-default-foreground",trigger:["bg-default-100","data-[hover=true]:bg-default-200"]}},{variant:"flat",color:"primary",class:{trigger:["bg-primary-100","text-primary","data-[hover=true]:bg-primary-50","group-data-[focus=true]:bg-primary-50"],value:"text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{trigger:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50"],value:"text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{trigger:["bg-success-100","text-success-600","dark:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],value:"text-success-600 dark:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{trigger:["bg-warning-100","text-warning-600","dark:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],value:"text-warning-600 dark:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{trigger:["bg-danger-100","text-danger","dark:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],value:"text-danger dark:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{trigger:"data-[hover=true]:border-primary data-[focus=true]:border-primary data-[open=true]:border-primary",label:"text-primary"}},{variant:"faded",color:"secondary",class:{trigger:"data-[hover=true]:border-secondary data-[focus=true]:border-secondary data-[open=true]:border-secondary",label:"text-secondary"}},{variant:"faded",color:"success",class:{trigger:"data-[hover=true]:border-success data-[focus=true]:border-success data-[open=true]:border-success",label:"text-success"}},{variant:"faded",color:"warning",class:{trigger:"data-[hover=true]:border-warning data-[focus=true]:border-warning data-[open=true]:border-warning",label:"text-warning"}},{variant:"faded",color:"danger",class:{trigger:"data-[hover=true]:border-danger data-[focus=true]:border-danger data-[open=true]:border-danger",label:"text-danger"}},{variant:"underlined",color:"default",class:{value:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{trigger:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{trigger:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{trigger:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{trigger:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{trigger:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{trigger:["data-[open=true]:border-primary","data-[focus=true]:border-primary"],label:"text-primary"}},{variant:"bordered",color:"secondary",class:{trigger:["data-[open=true]:border-secondary","data-[focus=true]:border-secondary"],label:"text-secondary"}},{variant:"bordered",color:"success",class:{trigger:["data-[open=true]:border-success","data-[focus=true]:border-success"],label:"text-success"}},{variant:"bordered",color:"warning",class:{trigger:["data-[open=true]:border-warning","data-[focus=true]:border-warning"],label:"text-warning"}},{variant:"bordered",color:"danger",class:{trigger:["data-[open=true]:border-danger","data-[focus=true]:border-danger"],label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled=true]:text-foreground"}},{radius:"full",size:["sm"],class:{trigger:"px-3"}},{radius:"full",size:"md",class:{trigger:"px-4"}},{radius:"full",size:"lg",class:{trigger:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{trigger:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{trigger:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{trigger:[...Er]}},{isInvalid:!0,variant:"flat",class:{trigger:["bg-danger-50","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{trigger:"!border-danger group-data-[focus=true]:border-danger"}},{isInvalid:!0,variant:"underlined",class:{trigger:"after:bg-danger"}},{labelPlacement:"inside",size:"sm",class:{trigger:"h-12 min-h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{trigger:"h-14 min-h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-medium",trigger:"h-16 min-h-16 py-2.5 gap-0"}},{labelPlacement:"outside",isMultiline:!1,class:{base:"group relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled=true]:start-0"]}},{labelPlacement:["inside"],class:{label:"group-data-[filled=true]:scale-85"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"],innerWrapper:"group-data-[has-label=true]:pt-4"}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"],innerWrapper:"group-data-[has-label=true]:pt-5"}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled=true]:-translate-y-[calc(100%_+var(--heroui-font-size-tiny)/2_+_16px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_26px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"md",class:{label:["start-3","text-small","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_30px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",isMultiline:!1,size:"lg",class:{label:["start-3","text-medium","group-data-[filled=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]","group-data-[has-helper=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_34px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{labelPlacement:["outside","outside-left"],isClearable:!0,class:{endContent:["mt-4"],clearButton:["group-data-[has-end-content=true]:mt-4"]}},{isClearable:!1,labelPlacement:["outside","outside-left"],class:{endContent:["mt-4"]}},{isClearable:!0,variant:["underlined"],class:{clearButton:["relative group-data-[has-end-content=true]:left-2"],endContent:["me-2"]}},{isClearable:!1,variant:["underlined"],class:{endContent:["me-2"]}},{isClearable:!0,size:"sm",class:{endContent:"ms-2"}}]}),Ka=nt({slots:{base:"flex flex-col w-full gap-1",labelWrapper:"w-full flex justify-between items-center",label:"",value:"",step:["h-1.5","w-1.5","absolute","rounded-full","bg-default-300/50","data-[in-range=true]:bg-background/50"],mark:["absolute","text-small","cursor-default","opacity-50","data-[in-range=true]:opacity-100"],trackWrapper:"relative flex gap-2",track:["flex","w-full","relative","rounded-full","bg-default-300/50"],filler:"h-full absolute",thumb:["flex","justify-center","items-center","before:absolute","before:w-11","before:h-11","before:rounded-full","after:shadow-small","after:shadow-small","after:bg-background","data-[focused=true]:z-10",Er],startContent:[],endContent:[]},variants:{size:{sm:{label:"text-small",value:"text-small",thumb:"w-5 h-5 after:w-4 after:h-4",step:"data-[in-range=false]:bg-default-200"},md:{thumb:"w-6 h-6 after:w-5 after:h-5",label:"text-small",value:"text-small"},lg:{thumb:"h-7 w-7 after:w-5 after:h-5",step:"w-2 h-2",label:"text-medium",value:"text-medium",mark:"mt-2"}},radius:{none:{thumb:"rounded-none after:rounded-none"},sm:{thumb:"rounded-[calc(var(--heroui-radius-small)/2)] after:rounded-[calc(var(--heroui-radius-small)/3)]"},md:{thumb:"rounded-[calc(var(--heroui-radius-medium)/2)] after:rounded-[calc(var(--heroui-radius-medium)/3)]"},lg:{thumb:"rounded-[calc(var(--heroui-radius-large)/1.5)] after:rounded-[calc(var(--heroui-radius-large)/2)]"},full:{thumb:"rounded-full after:rounded-full"}},color:{foreground:{filler:"bg-foreground",thumb:"bg-foreground"},primary:{filler:"bg-primary",thumb:"bg-primary"},secondary:{filler:"bg-secondary",thumb:"bg-secondary"},success:{filler:"bg-success",thumb:"bg-success"},warning:{filler:"bg-warning",thumb:"bg-warning"},danger:{filler:"bg-danger",thumb:"bg-danger"}},isVertical:{true:{base:"w-auto h-full flex-col-reverse items-center",trackWrapper:"flex-col h-full justify-center items-center",filler:"w-full h-auto",thumb:"left-1/2",track:"h-full border-y-transparent",labelWrapper:"flex-col justify-center items-center",step:["left-1/2","-translate-x-1/2","translate-y-1/2"],mark:["left-1/2","ml-1","translate-x-1/2","translate-y-1/2"]},false:{thumb:"top-1/2",trackWrapper:"items-center",track:"border-x-transparent",step:["top-1/2","-translate-x-1/2","-translate-y-1/2"],mark:["top-1/2","mt-1","-translate-x-1/2","translate-y-1/2"]}},isDisabled:{false:{thumb:["cursor-grab","data-[dragging=true]:cursor-grabbing"]},true:{base:"opacity-disabled",thumb:"cursor-default"}},hasMarks:{true:{base:"mb-5",mark:"cursor-pointer"},false:{}},showOutline:{true:{thumb:"ring-2 ring-background"},false:{thumb:"ring-transparent border-0"}},hideValue:{true:{value:"sr-only"}},hideThumb:{true:{thumb:"sr-only",track:"cursor-pointer"}},hasSingleThumb:{true:{},false:{}},disableAnimation:{true:{thumb:"data-[dragging=true]:after:scale-100"},false:{thumb:"after:transition-all motion-reduce:after:transition-none",mark:"transition-opacity motion-reduce:transition-none"}},disableThumbScale:{true:{},false:{thumb:"data-[dragging=true]:after:scale-80"}}},compoundVariants:[{size:["sm","md"],showOutline:!1,class:{thumb:"shadow-small"}},{size:"sm",color:"foreground",class:{step:"data-[in-range=true]:bg-foreground"}},{size:"sm",color:"primary",class:{step:"data-[in-range=true]:bg-primary"}},{size:"sm",color:"secondary",class:{step:"data-[in-range=true]:bg-secondary"}},{size:"sm",color:"success",class:{step:"data-[in-range=true]:bg-success"}},{size:"sm",color:"warning",class:{step:"data-[in-range=true]:bg-warning"}},{size:"sm",color:"danger",class:{step:"data-[in-range=true]:bg-danger"}},{size:"sm",isVertical:!1,class:{track:"h-1 my-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-x-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!1,class:{track:"h-3 my-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-x-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!1,class:{track:"h-7 my-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-x-[calc(theme(spacing.7)/2)]"}},{size:"sm",isVertical:!0,class:{track:"w-1 mx-[calc((theme(spacing.5)-theme(spacing.1))/2)] border-y-[calc(theme(spacing.5)/2)]"}},{size:"md",isVertical:!0,class:{track:"w-3 mx-[calc((theme(spacing.6)-theme(spacing.3))/2)] border-y-[calc(theme(spacing.6)/2)]"}},{size:"lg",isVertical:!0,class:{track:"w-7 mx-[calc((theme(spacing.7)-theme(spacing.5))/2)] border-y-[calc(theme(spacing.7)/2)]"}},{color:"foreground",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-foreground data-[fill-end=true]:border-e-foreground"}},{color:"primary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-primary data-[fill-end=true]:border-e-primary"}},{color:"secondary",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-secondary data-[fill-end=true]:border-e-secondary"}},{color:"success",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-success data-[fill-end=true]:border-e-success"}},{color:"warning",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-warning data-[fill-end=true]:border-e-warning"}},{color:"danger",isVertical:!1,class:{track:"data-[fill-start=true]:border-s-danger data-[fill-end=true]:border-e-danger"}},{color:"foreground",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-foreground data-[fill-end=true]:border-t-foreground"}},{color:"primary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-primary data-[fill-end=true]:border-t-primary"}},{color:"secondary",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-secondary data-[fill-end=true]:border-t-secondary"}},{color:"success",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-success data-[fill-end=true]:border-t-success"}},{color:"warning",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-warning data-[fill-end=true]:border-t-warning"}},{color:"danger",isVertical:!0,class:{track:"data-[fill-start=true]:border-b-danger data-[fill-end=true]:border-t-danger"}}],defaultVariants:{size:"md",color:"primary",radius:"full",hideValue:!1,hideThumb:!1,isDisabled:!1,disableThumbScale:!1,showOutline:!1}}),Bd=nt({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","shrink-0","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-xs px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-solid outline-transparent placeholder:text-foreground-500 focus-visible:outline-solid outline-transparent","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","data-[type=color]:rounded-none","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","absolute","end-3","start-auto","pointer-events-none","appearance-none","outline-solid outline-transparent","select-none","opacity-0","cursor-pointer","active:!opacity-70","rounded-full",...Er],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400 focus-within:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large hover:!opacity-100"},lg:{label:"text-medium",inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large hover:!opacity-100"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},"outside-top":{mainWrapper:"flex flex-col",label:"relative text-foreground pb-2 pointer-events-auto"},inside:{label:"cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"},false:{}},isClearable:{true:{input:"peer pe-6 input-search-cancel-button-none",clearButton:["peer-data-[filled=true]:pointer-events-auto","peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block","peer-data-[filled=true]:scale-100"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ms-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide",clearButton:"absolute top-2 right-2 rtl:right-auto rtl:left-2 z-10"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity,translate,scale]"],clearButton:["scale-90","ease-out","duration-150","transition-[opacity,transform]","motion-reduce:transition-none","motion-reduce:scale-100"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-100","data-[hover=true]:bg-primary-50","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-100","text-secondary","data-[hover=true]:bg-secondary-50","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-100","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-50","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-100","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-50","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-100","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-50","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...Ra]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_6px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_8px_-_var(--heroui-border-width-medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_var(--heroui-font-size-small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_var(--heroui-font-size-small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(var(--heroui-font-size-small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}},{isClearable:!0,isMultiline:!0,class:{clearButton:["group-data-[has-value=true]:opacity-70 group-data-[has-value=true]:block","group-data-[has-value=true]:scale-100","group-data-[has-value=true]:pointer-events-auto"]}}]}),fx=nt({slots:{base:"w-full relative flex flex-col gap-1 p-1 overflow-clip",list:"w-full flex flex-col gap-0.5 outline-solid outline-transparent",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),Rd=nt({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-solid outline-transparent","cursor-pointer","tap-highlight-transparent",...Er,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","shrink-0"],shortcut:["px-1","py-0.5","rounded-sm","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}},hasTitleTextChild:{true:{title:"truncate"}},hasDescriptionTextChild:{true:{description:"truncate"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),px=nt({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),Kd=nt({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-solid outline-transparent","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-solid outline-transparent","select-none","top-1","end-1","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...Er]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),Wd=nt({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),Ud=nt({base:"flex flex-col gap-2 items-start"}),Hd=nt({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-shimmer","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),Gd=nt({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-solid outline-transparent","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","transform-gpu data-[pressed=true]:scale-[0.97]","cursor-pointer",...Er],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:Y.solid.default},{variant:"solid",color:"primary",class:Y.solid.primary},{variant:"solid",color:"secondary",class:Y.solid.secondary},{variant:"solid",color:"success",class:Y.solid.success},{variant:"solid",color:"warning",class:Y.solid.warning},{variant:"solid",color:"danger",class:Y.solid.danger},{variant:"shadow",color:"default",class:Y.shadow.default},{variant:"shadow",color:"primary",class:Y.shadow.primary},{variant:"shadow",color:"secondary",class:Y.shadow.secondary},{variant:"shadow",color:"success",class:Y.shadow.success},{variant:"shadow",color:"warning",class:Y.shadow.warning},{variant:"shadow",color:"danger",class:Y.shadow.danger},{variant:"bordered",color:"default",class:Y.bordered.default},{variant:"bordered",color:"primary",class:Y.bordered.primary},{variant:"bordered",color:"secondary",class:Y.bordered.secondary},{variant:"bordered",color:"success",class:Y.bordered.success},{variant:"bordered",color:"warning",class:Y.bordered.warning},{variant:"bordered",color:"danger",class:Y.bordered.danger},{variant:"flat",color:"default",class:Y.flat.default},{variant:"flat",color:"primary",class:Y.flat.primary},{variant:"flat",color:"secondary",class:Y.flat.secondary},{variant:"flat",color:"success",class:Y.flat.success},{variant:"flat",color:"warning",class:Y.flat.warning},{variant:"flat",color:"danger",class:Y.flat.danger},{variant:"faded",color:"default",class:Y.faded.default},{variant:"faded",color:"primary",class:Y.faded.primary},{variant:"faded",color:"secondary",class:Y.faded.secondary},{variant:"faded",color:"success",class:Y.faded.success},{variant:"faded",color:"warning",class:Y.faded.warning},{variant:"faded",color:"danger",class:Y.faded.danger},{variant:"light",color:"default",class:[Y.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[Y.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[Y.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[Y.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[Y.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[Y.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[Y.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[Y.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[Y.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[Y.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[Y.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[Y.ghost.danger,"data-[hover=true]:!bg-danger data-[hover=true]:!text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:Zn.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:Zn.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:Zn.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:Zn.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:Zn.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:Zn.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});nt({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var Zd=nt({slots:{base:["flex","flex-col","relative","overflow-hidden","h-auto","outline-solid outline-transparent","text-foreground","box-border","bg-content1",...Er],header:["flex","p-3","z-10","w-full","justify-start","items-center","shrink-0","overflow-inherit","color-inherit","subpixel-antialiased"],body:["relative","flex","flex-1","w-full","p-3","flex-auto","flex-col","place-content-inherit","align-items-inherit","h-auto","break-words","text-left","overflow-y-auto","subpixel-antialiased"],footer:["p-3","h-auto","flex","w-full","items-center","overflow-hidden","color-inherit","subpixel-antialiased"]},variants:{shadow:{none:{base:"shadow-none"},sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},radius:{none:{base:"rounded-none",header:"rounded-none",footer:"rounded-none"},sm:{base:"rounded-small",header:"rounded-t-small",footer:"rounded-b-small"},md:{base:"rounded-medium",header:"rounded-t-medium",footer:"rounded-b-medium"},lg:{base:"rounded-large",header:"rounded-t-large",footer:"rounded-b-large"}},fullWidth:{true:{base:"w-full"}},isHoverable:{true:{base:"data-[hover=true]:bg-content2 dark:data-[hover=true]:bg-content2"}},isPressable:{true:{base:"cursor-pointer"}},isBlurred:{true:{base:["bg-background/80","dark:bg-background/20","backdrop-blur-md","backdrop-saturate-150"]}},isFooterBlurred:{true:{footer:["bg-background/10","backdrop-blur","backdrop-saturate-150"]}},isDisabled:{true:{base:"opacity-disabled cursor-not-allowed"}},disableAnimation:{true:"",false:{base:"transition-transform-background motion-reduce:transition-none"}}},compoundVariants:[{isPressable:!0,class:"data-[pressed=true]:scale-[0.97] tap-highlight-transparent"}],defaultVariants:{radius:"lg",shadow:"md",fullWidth:!1,isHoverable:!1,isPressable:!1,isDisabled:!1,isFooterBlurred:!1}}),hx=nt({slots:{base:"group relative max-w-fit inline-flex items-center justify-start cursor-pointer tap-highlight-transparent p-2 -m-2 select-none",wrapper:["relative","inline-flex","items-center","justify-center","shrink-0","overflow-hidden","before:content-['']","before:absolute","before:inset-0","before:border-solid","before:border-2","before:box-border","before:border-default","after:content-['']","after:absolute","after:inset-0","after:scale-50","after:opacity-0","after:origin-center","group-data-[selected=true]:after:scale-100","group-data-[selected=true]:after:opacity-100","group-data-[hover=true]:before:bg-default-100",...Ra],hiddenInput:jd,icon:"z-10 w-4 h-3 opacity-0 group-data-[selected=true]:opacity-100 pointer-events-none",label:"relative text-foreground select-none"},variants:{color:{default:{wrapper:"after:bg-default after:text-default-foreground text-default-foreground"},primary:{wrapper:"after:bg-primary after:text-primary-foreground text-primary-foreground"},secondary:{wrapper:"after:bg-secondary after:text-secondary-foreground text-secondary-foreground"},success:{wrapper:"after:bg-success after:text-success-foreground text-success-foreground"},warning:{wrapper:"after:bg-warning after:text-warning-foreground text-warning-foreground"},danger:{wrapper:"after:bg-danger after:text-danger-foreground text-danger-foreground"}},size:{sm:{wrapper:["w-4 h-4 me-2","rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"],label:"text-small",icon:"w-3 h-2"},md:{wrapper:["w-5 h-5 me-2","rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"],label:"text-medium",icon:"w-4 h-3"},lg:{wrapper:["w-6 h-6 me-2","rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"],label:"text-large",icon:"w-5 h-4"}},radius:{none:{wrapper:"rounded-none before:rounded-none after:rounded-none"},sm:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.5)]","before:rounded-[calc(var(--heroui-radius-medium)*0.5)]","after:rounded-[calc(var(--heroui-radius-medium)*0.5)]"]},md:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.6)]","before:rounded-[calc(var(--heroui-radius-medium)*0.6)]","after:rounded-[calc(var(--heroui-radius-medium)*0.6)]"]},lg:{wrapper:["rounded-[calc(var(--heroui-radius-medium)*0.7)]","before:rounded-[calc(var(--heroui-radius-medium)*0.7)]","after:rounded-[calc(var(--heroui-radius-medium)*0.7)]"]},full:{wrapper:"rounded-full before:rounded-full after:rounded-full"}},lineThrough:{true:{label:["inline-flex","items-center","justify-center","before:content-['']","before:absolute","before:bg-foreground","before:w-0","before:h-0.5","group-data-[selected=true]:opacity-60","group-data-[selected=true]:before:w-full"]}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isInvalid:{true:{wrapper:"before:border-danger",label:"text-danger"}},disableAnimation:{true:{wrapper:"transition-none",icon:"transition-none",label:"transition-none"},false:{wrapper:["before:transition-colors","group-data-[pressed=true]:scale-95","transition-transform","after:transition-transform-opacity","after:!ease-linear","after:!duration-200","motion-reduce:transition-none"],icon:"transition-opacity motion-reduce:transition-none",label:"transition-colors-opacity before:transition-width motion-reduce:transition-none"}}},defaultVariants:{color:"primary",size:"md",isDisabled:!1,lineThrough:!1}}),mx=nt({slots:{base:"relative flex flex-col gap-2",label:"relative text-medium text-foreground-500",wrapper:"flex flex-col flex-wrap gap-2 data-[orientation=horizontal]:flex-row",description:"text-small text-foreground-400",errorMessage:"text-small text-danger"},variants:{isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5"}},isInvalid:{true:{description:"text-danger"}},disableAnimation:{true:{},false:{description:"transition-colors !duration-150 motion-reduce:transition-none"}}},defaultVariants:{isInvalid:!1,isRequired:!1}}),qd=nt({slots:{base:["relative","max-w-fit","min-w-min","inline-flex","items-center","justify-between","box-border","whitespace-nowrap"],content:"flex-1 text-inherit font-normal",dot:["w-2","h-2","ml-1","rounded-full"],avatar:"shrink-0",closeButton:["z-10","appearance-none","outline-solid outline-transparent","select-none","transition-opacity","opacity-70","hover:opacity-100","cursor-pointer","active:opacity-disabled","tap-highlight-transparent"]},variants:{variant:{solid:{},bordered:{base:"border-medium bg-transparent"},light:{base:"bg-transparent"},flat:{},faded:{base:"border-medium"},shadow:{},dot:{base:"border-medium border-default text-foreground bg-transparent"}},color:{default:{dot:"bg-default-400"},primary:{dot:"bg-primary"},secondary:{dot:"bg-secondary"},success:{dot:"bg-success"},warning:{dot:"bg-warning"},danger:{dot:"bg-danger"}},size:{sm:{base:"px-1 h-6 text-tiny",content:"px-1",closeButton:"text-medium",avatar:"w-4 h-4"},md:{base:"px-1 h-7 text-small",content:"px-2",closeButton:"text-large",avatar:"w-5 h-5"},lg:{base:"px-2 h-8 text-medium",content:"px-2",closeButton:"text-xl",avatar:"w-6 h-6"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},isOneChar:{true:{},false:{}},isCloseable:{true:{},false:{}},hasStartContent:{true:{}},hasEndContent:{true:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},isCloseButtonFocusVisible:{true:{closeButton:[...ax,"ring-1","rounded-full"]}}},defaultVariants:{variant:"solid",color:"default",size:"md",radius:"full",isDisabled:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:Y.solid.default}},{variant:"solid",color:"primary",class:{base:Y.solid.primary}},{variant:"solid",color:"secondary",class:{base:Y.solid.secondary}},{variant:"solid",color:"success",class:{base:Y.solid.success}},{variant:"solid",color:"warning",class:{base:Y.solid.warning}},{variant:"solid",color:"danger",class:{base:Y.solid.danger}},{variant:"shadow",color:"default",class:{base:Y.shadow.default}},{variant:"shadow",color:"primary",class:{base:Y.shadow.primary}},{variant:"shadow",color:"secondary",class:{base:Y.shadow.secondary}},{variant:"shadow",color:"success",class:{base:Y.shadow.success}},{variant:"shadow",color:"warning",class:{base:Y.shadow.warning}},{variant:"shadow",color:"danger",class:{base:Y.shadow.danger}},{variant:"bordered",color:"default",class:{base:Y.bordered.default}},{variant:"bordered",color:"primary",class:{base:Y.bordered.primary}},{variant:"bordered",color:"secondary",class:{base:Y.bordered.secondary}},{variant:"bordered",color:"success",class:{base:Y.bordered.success}},{variant:"bordered",color:"warning",class:{base:Y.bordered.warning}},{variant:"bordered",color:"danger",class:{base:Y.bordered.danger}},{variant:"flat",color:"default",class:{base:Y.flat.default}},{variant:"flat",color:"primary",class:{base:Y.flat.primary}},{variant:"flat",color:"secondary",class:{base:Y.flat.secondary}},{variant:"flat",color:"success",class:{base:Y.flat.success}},{variant:"flat",color:"warning",class:{base:Y.flat.warning}},{variant:"flat",color:"danger",class:{base:Y.flat.danger}},{variant:"faded",color:"default",class:{base:Y.faded.default}},{variant:"faded",color:"primary",class:{base:Y.faded.primary}},{variant:"faded",color:"secondary",class:{base:Y.faded.secondary}},{variant:"faded",color:"success",class:{base:Y.faded.success}},{variant:"faded",color:"warning",class:{base:Y.faded.warning}},{variant:"faded",color:"danger",class:{base:Y.faded.danger}},{variant:"light",color:"default",class:{base:Y.light.default}},{variant:"light",color:"primary",class:{base:Y.light.primary}},{variant:"light",color:"secondary",class:{base:Y.light.secondary}},{variant:"light",color:"success",class:{base:Y.light.success}},{variant:"light",color:"warning",class:{base:Y.light.warning}},{variant:"light",color:"danger",class:{base:Y.light.danger}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"sm",class:{base:"w-5 h-5 min-w-5 min-h-5"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"md",class:{base:"w-6 h-6 min-w-6 min-h-6"}},{isOneChar:!0,hasStartContent:!1,hasEndContent:!1,size:"lg",class:{base:"w-7 h-7 min-w-7 min-h-7"}},{isOneChar:!0,isCloseable:!1,hasStartContent:!1,hasEndContent:!1,class:{base:"px-0 justify-center",content:"px-0 flex-none"}},{isOneChar:!0,isCloseable:!0,hasStartContent:!1,hasEndContent:!1,class:{base:"w-auto"}},{isOneChar:!0,variant:"dot",class:{base:"w-auto h-7 px-1 items-center",content:"px-2"}},{hasStartContent:!0,size:"sm",class:{content:"pl-0.5"}},{hasStartContent:!0,size:["md","lg"],class:{content:"pl-1"}},{hasEndContent:!0,size:"sm",class:{content:"pr-0.5"}},{hasEndContent:!0,size:["md","lg"],class:{content:"pr-1"}}]}),Yd=nt({slots:{base:"flex flex-grow flex-row w-full items-center py-3 px-4 gap-x-1",mainWrapper:"h-full flex-grow min-h-10 ms-2 flex flex-col box-border items-start text-inherit justify-center",title:"text-small w-full font-medium block text-inherit leading-5",description:"pl-[1px] text-small font-normal text-inherit",closeButton:"relative text-inherit translate-x-1 -translate-y-1",iconWrapper:"flex-none relative w-9 h-9 rounded-full grid place-items-center",alertIcon:"fill-current w-6 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2"},variants:{color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},variant:{solid:{},flat:{},faded:{base:"border-small"},bordered:{base:"border-small bg-transparent"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"},full:{base:"rounded-full"}},hideIcon:{true:{iconWrapper:"hidden"}},hideIconWrapper:{true:{base:"gap-x-0",iconWrapper:"!bg-transparent !shadow-none !border-none"}},hasContent:{false:{base:"items-center",mainWrapper:"justify-center items-center"}}},defaultVariants:{color:"default",variant:"flat",radius:"md",hideIcon:!1,hideIconWrapper:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:Y.solid.default,closeButton:"data-[hover]:bg-default-100",alertIcon:"text-default-foreground"}},{variant:"solid",color:"primary",class:{base:Y.solid.primary}},{variant:"solid",color:"secondary",class:{base:Y.solid.secondary}},{variant:"solid",color:"success",class:{base:Y.solid.success}},{variant:"solid",color:"warning",class:{base:Y.solid.warning}},{variant:"solid",color:"danger",class:{base:Y.solid.danger}},{variant:["flat","faded"],color:"default",class:{base:[Y.flat.default,"bg-default-100 dark:bg-default-50/50","text-default-foreground"],description:"text-default-600",closeButton:"text-default-400",iconWrapper:"bg-default-50 dark:bg-default-100 border-default-200"}},{variant:["flat","faded"],color:"primary",class:{base:[Y.flat.primary,"bg-primary-50 dark:bg-primary-50/50"],closeButton:"text-primary-500 data-[hover]:bg-primary-200",iconWrapper:"bg-primary-50 dark:bg-primary-100 border-primary-100"}},{variant:["flat","faded"],color:"secondary",class:{base:[Y.flat.secondary,"bg-secondary-50 dark:bg-secondary-50/50"],closeButton:"text-secondary-500 data-[hover]:bg-secondary-200",iconWrapper:"bg-secondary-50 dark:bg-secondary-100 border-secondary-100"}},{variant:["flat","faded"],color:"success",class:{base:[Y.flat.success,"bg-success-50 dark:bg-success-50/50"],closeButton:"text-success-500 data-[hover]:bg-success-200",iconWrapper:"bg-success-50 dark:bg-success-100 border-success-100"}},{variant:["flat","faded"],color:"warning",class:{base:[Y.flat.warning,"bg-warning-50 dark:bg-warning-50/50"],closeButton:"text-warning-500 data-[hover]:bg-warning-200",iconWrapper:"bg-warning-50 dark:bg-warning-100 border-warning-100"}},{variant:["flat","faded"],color:"danger",class:{base:[Y.flat.danger,"bg-danger-50 dark:bg-danger-50/50"],closeButton:"text-danger-500 data-[hover]:bg-danger-200",iconWrapper:"bg-danger-50 dark:bg-danger-100 border-danger-100"}},{variant:"faded",color:"default",class:{base:"border-default-300 dark:border-default-200"}},{variant:"faded",color:"primary",class:{base:"border-primary-200 dark:border-primary-100"}},{variant:"faded",color:"secondary",class:{base:"border-secondary-200"}},{variant:"faded",color:"success",class:{base:"border-success-300 dark:border-success-100"}},{variant:"faded",color:"warning",class:{base:"border-warning-300 dark:border-warning-100"}},{variant:"faded",color:"danger",class:{base:"border-danger-200 dark:border-danger-100"}},{variant:"bordered",color:"default",class:{base:[Y.bordered.default],description:"text-default-600",closeButton:"text-default-400"}},{variant:"bordered",color:"primary",class:{base:[Y.bordered.primary],closeButton:"data-[hover]:bg-primary-50"}},{variant:"bordered",color:"secondary",class:{base:[Y.bordered.secondary],closeButton:"data-[hover]:bg-secondary-50"}},{variant:"bordered",color:"success",class:{base:[Y.bordered.success],closeButton:"data-[hover]:bg-success-50"}},{variant:"bordered",color:"warning",class:{base:[Y.bordered.warning],closeButton:"data-[hover]:bg-warning-100"}},{variant:"bordered",color:"danger",class:{base:[Y.bordered.danger],closeButton:"data-[hover]:bg-danger-50"}},{variant:["flat","bordered","faded"],class:{iconWrapper:"shadow-small"}},{variant:["flat","faded"],class:{iconWrapper:"shadow-small border-1"}},{variant:"bordered",color:"default",class:{iconWrapper:"bg-default-200 dark:bg-default-100"}},{variant:"bordered",color:"primary",class:{iconWrapper:"bg-primary-100 dark:bg-primary-50"}},{variant:"bordered",color:"secondary",class:{iconWrapper:"bg-secondary-100 dark:bg-secondary-50"}},{variant:"bordered",color:"success",class:{iconWrapper:"bg-success-100 dark:bg-success-50"}},{variant:"bordered",color:"warning",class:{iconWrapper:"bg-warning-100 dark:bg-warning-50"}},{variant:"bordered",color:"danger",class:{iconWrapper:"bg-danger-100 dark:bg-danger-50"}}]}),gx=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function Wa(e){return Array.isArray(e)}function vx(e){return Wa(e)&&e.length===0}function Xd(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Wa(e)}function bx(e){return Xd(e)&&Object.keys(e).length===0}function yx(e){return Wa(e)?vx(e):Xd(e)?bx(e):e==null||e===""}function xx(e){return typeof e=="function"}var pe=e=>e?"true":void 0;function Jd(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Jd(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ke(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=Jd(r))&&(o&&(o+=" "),o+=n);return o}var Ua=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t};function wx(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function nn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function $x(e,t,r){return Math.min(Math.max(e,t),r)}var Qd={};function Vs(e,t,...r){const o=`[Hero UI]${t?` [${t}]`:" "}: ${e}`;if(!(typeof console>"u")&&!Qd[o]&&(Qd[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Fr(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ef=new Map;function Ex(e,t){if(e===t)return e;let r=ef.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=ef.get(t);return n?(n.forEach(o=>o.current=e),e):t}function mt(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],i=n[o];typeof s=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Fr(s,i):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?t[o]=Ke(s,i):o==="id"&&s&&i?t.id=Ex(s,i):t[o]=i!==void 0?i:s}}return t}function Px(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const s=tf(o,t);return r||(r=typeof s=="function"),s});if(r)return()=>{n.forEach((o,s)=>{typeof o=="function"?o?.():tf(e[s],null)})}}}function tf(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}function rf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=rf(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Cx(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=rf(e))&&(n&&(n+=" "),n+=t);return n}var Sx=Ld({extend:_a});function j(...e){return Sx(Cx(e))}function Tx({children:e,classNames:t}){return b.jsx("div",{className:j("mobielnl-elements",t?.base),children:e})}const Zt=2147483647;function nr(e,t){switch(t){case"price":return`€ ${e}`;case"data":return`${e===Zt?"Onbeperkt":e/1e3} GB`;case"minutes":return`${e===Zt?"Onbeperkt":e} min`;case"sms":return`${e===Zt?"Onbeperkt":e} sms`;case"months":return e%12===0?`${e/12} jaar`:`${e} maand`;case"data_speed":return`${e/1e3} Mbps`;case"hours":return`${e} uur`;case"inches":return`${e} inch`;case"centimeters":return`${e} cm`;case"milliamperes":return`${e} mAh`;default:return`${e}`}}function kx(e){return["ja","nee","0","1"].includes(e)}function nf(e){return new RegExp(/^\d*\.?\d*$/).test(e)}function of(e){return new RegExp(/^\d*\.?\d*-\d*\.?\d*$/).test(e)}function sf(e){return!e.includes("nee")&&!e.includes("0")?[!0]:!e.includes("ja")&&!e.includes("1")?[!1]:[!0,!1]}function af(e){return parseFloat(e)||0}function qt(e){if(!e||typeof e!="string")return{to:void 0,from:void 0};const[t,r]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:r}:Number.isNaN(r)?{from:t}:{from:t,to:r}}function lf(e){if(e.length===0)return"";if(e.length===1)return e[0];if(e.length===2)return`${e[0]} of ${e[1]}`;const t=e.slice(0,-1),r=e[e.length-1];return`${t.join(", ")} of ${r}`}function Ix(e,t){const r=String(e||"");if(!r)return"";if(r.length<=t)return r;const n=r.substring(0,t-3),o=n.lastIndexOf(" ");return o>t*.6?`${n.substring(0,o)}...`:`${n}...`}function _x(e,t){const r=Array.isArray(e.value)?e.value:[e.value];if(r.length!==0)return r.length<4?t.formatType?lf(r.map(n=>{const o=parseInt(n,10);return Number.isNaN(o)?t.options.find(s=>s.value===n)?.name||n:nr(o,t.formatType)})):lf(r.map(n=>Ix(t.options.find(o=>o.value===n)?.name||n,20))):`${t.shortName} (${r.length})`}function Mx(e,t){const r=n=>`${t.shortName} (${n})`;switch(t.type){case"range":{const{from:n,to:o}=qt(e.value);return n===void 0||o===void 0?r(1):`${nr(n,t.formatType)} - ${nr(o,t.formatType)}`}case"min":{const{from:n}=qt(e.value);return n===void 0?r(1):`Vanaf ${nr(n,t.formatType)}`}case"max":{const{to:n}=qt(e.value);return n===void 0?r(1):`Tot ${nr(n,t.formatType)}`}case"checkbox":return _x(e,t);case"radio":return typeof e.value!="string"?r(1):t.options.find(n=>n.value===e.value)?.name||e.value;default:return r(Array.isArray(e.value)?e.value.length:1)}}function qn(e,t){return e.find(r=>r.slug===t)}function Yn(e,t){return e.find(r=>r.slug===t)?.value}function Dx(e,t){const r=new Set(e.map(o=>o.slug)),n=t.filter(o=>!r.has(o.slug));return[...e,...n]}function uf(e,t){return!e||e.trim()===""?[]:e.split("/").filter(r=>r.includes(":")).map(r=>{const n=r.split(":");if(n.length!==2)return null;const[o,s]=n,i=o.trim(),a=s.trim();if(a.endsWith("-")){const l=Number.parseInt(a.slice(0,-1),10);if(Number.isNaN(l))return null;const c=qn(t,i),u=c?.type==="range"?c.max:null;return{slug:i,value:`${l}-${u??Zt}`}}return{slug:i,value:a.includes(",")?a.split(",").map(l=>l.trim()):a}}).filter(r=>r!==null)}function Vr(e,t){return t.length===0?e:t.reduce((r,n)=>Math.abs(n-e)<Math.abs(r-e)?n:r)}class Xn extends Error{response;request;constructor(t,r){const n=`${Xn.extractMessage(t)}: ${JSON.stringify({response:t,request:r})}`;super(n),Object.setPrototypeOf(this,Xn.prototype),this.response=t,this.request=r,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Xn)}static extractMessage(t){return t.errors?.[0]?.message??`GraphQL Error (Code: ${String(t.status)})`}}const cf=e=>e.toUpperCase(),Ha=e=>typeof e=="function"?e():e,df=(e,t)=>e.map((r,n)=>[r,t[n]]),Jn=e=>{let t={};return e instanceof Headers?t=Ax(e):Array.isArray(e)?e.forEach(([r,n])=>{r&&n!==void 0&&(t[r]=n)}):e&&(t=e),t},Ax=e=>{const t={};return e.forEach((r,n)=>{t[n]=r}),t},Nx=e=>{try{const t=e();return Ox(t)?t.catch(r=>ff(r)):t}catch(t){return ff(t)}},ff=e=>e instanceof Error?e:new Error(String(e)),Ox=e=>typeof e=="object"&&e!==null&&"then"in e&&typeof e.then=="function"&&"catch"in e&&typeof e.catch=="function"&&"finally"in e&&typeof e.finally=="function",Ga=e=>{throw new Error(`Unhandled case: ${String(e)}`)},js=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Lx=(e,t)=>e.documents?e:{documents:e,requestHeaders:t,signal:void 0},Fx=(e,t,r)=>e.query?e:{query:e,variables:t,requestHeaders:r,signal:void 0};function zs(e,t){if(!!!e)throw new Error(t)}function Vx(e){return typeof e=="object"&&e!==null}function jx(e,t){if(!!!e)throw new Error("Unexpected invariant triggered.")}const zx=/\r\n|[\n\r]/g;function Za(e,t){let r=0,n=1;for(const o of e.body.matchAll(zx)){if(typeof o.index=="number"||jx(!1),o.index>=t)break;r=o.index+o[0].length,n+=1}return{line:n,column:t+1-r}}function Bx(e){return pf(e.source,Za(e.source,e.start))}function pf(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,o=t.line-1,s=e.locationOffset.line-1,i=t.line+s,a=t.line===1?r:0,l=t.column+a,c=`${e.name}:${i}:${l}
|
|
31
|
+
`,u=n.split(/\r\n|[\n\r]/g),d=u[o];if(d.length>120){const p=Math.floor(l/80),h=l%80,g=[];for(let m=0;m<d.length;m+=80)g.push(d.slice(m,m+80));return c+hf([[`${i} |`,g[0]],...g.slice(1,p+1).map(m=>["|",m]),["|","^".padStart(h)],["|",g[p+1]]])}return c+hf([[`${i-1} |`,u[o-1]],[`${i} |`,d],["|","^".padStart(l)],[`${i+1} |`,u[o+1]]])}function hf(e){const t=e.filter(([n,o])=>o!==void 0),r=Math.max(...t.map(([n])=>n.length));return t.map(([n,o])=>n.padStart(r)+(o?" "+o:"")).join(`
|
|
32
|
+
`)}function Rx(e){const t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}class qa extends Error{constructor(t,...r){var n,o,s;const{nodes:i,source:a,positions:l,path:c,originalError:u,extensions:d}=Rx(r);super(t),this.name="GraphQLError",this.path=c??void 0,this.originalError=u??void 0,this.nodes=mf(Array.isArray(i)?i:i?[i]:void 0);const p=mf((n=this.nodes)===null||n===void 0?void 0:n.map(g=>g.loc).filter(g=>g!=null));this.source=a??(p==null||(o=p[0])===null||o===void 0?void 0:o.source),this.positions=l??p?.map(g=>g.start),this.locations=l&&a?l.map(g=>Za(a,g)):p?.map(g=>Za(g.source,g.start));const h=Vx(u?.extensions)?u?.extensions:void 0;this.extensions=(s=d??h)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,qa):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(t+=`
|
|
47
33
|
|
|
48
|
-
`+
|
|
34
|
+
`+Bx(r.loc));else if(this.source&&this.locations)for(const r of this.locations)t+=`
|
|
49
35
|
|
|
50
|
-
`+
|
|
36
|
+
`+pf(this.source,r);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}}function mf(e){return e===void 0||e.length===0?void 0:e}function bt(e,t,r){return new qa(`Syntax Error: ${r}`,{source:e,positions:[t]})}class Kx{constructor(t,r,n){this.start=t.start,this.end=r.end,this.startToken=t,this.endToken=r,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class gf{constructor(t,r,n,o,s,i){this.kind=t,this.start=r,this.end=n,this.line=o,this.column=s,this.value=i,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const vf={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},Wx=new Set(Object.keys(vf));function bf(e){const t=e?.kind;return typeof t=="string"&&Wx.has(t)}var Qn;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(Qn||(Qn={}));var Ya;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Ya||(Ya={}));var ge;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(ge||(ge={}));function Xa(e){return e===9||e===32}function Lo(e){return e>=48&&e<=57}function yf(e){return e>=97&&e<=122||e>=65&&e<=90}function xf(e){return yf(e)||e===95}function Ux(e){return yf(e)||Lo(e)||e===95}function Hx(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,o=-1;for(let i=0;i<e.length;++i){var s;const a=e[i],l=Gx(a);l!==a.length&&(n=(s=n)!==null&&s!==void 0?s:i,o=i,i!==0&&l<r&&(r=l))}return e.map((i,a)=>a===0?i:i.slice(r)).slice((t=n)!==null&&t!==void 0?t:0,o+1)}function Gx(e){let t=0;for(;t<e.length&&Xa(e.charCodeAt(t));)++t;return t}function Zx(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),o=n.length===1,s=n.length>1&&n.slice(1).every(h=>h.length===0||Xa(h.charCodeAt(0))),i=r.endsWith('\\"""'),a=e.endsWith('"')&&!i,l=e.endsWith("\\"),c=a||l,u=!o||e.length>70||c||s||i;let d="";const p=o&&Xa(e.charCodeAt(0));return(u&&!p||s)&&(d+=`
|
|
51
37
|
`),d+=r,(u||c)&&(d+=`
|
|
52
|
-
`),'"""'+d+'"""'}var H;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(H||(H={}));class
|
|
53
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw bt(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function
|
|
54
|
-
`));return e.line+=l.length-1,e.lineStart=o,u}if(c===92&&r.charCodeAt(
|
|
38
|
+
`),'"""'+d+'"""'}var H;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(H||(H={}));class qx{constructor(t){const r=new gf(H.SOF,0,0,0,0);this.source=t,this.lastToken=r,this.token=r,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==H.EOF)do if(t.next)t=t.next;else{const r=Xx(this,t.end);t.next=r,r.prev=t,t=r}while(t.kind===H.COMMENT);return t}}function Yx(e){return e===H.BANG||e===H.DOLLAR||e===H.AMP||e===H.PAREN_L||e===H.PAREN_R||e===H.SPREAD||e===H.COLON||e===H.EQUALS||e===H.AT||e===H.BRACKET_L||e===H.BRACKET_R||e===H.BRACE_L||e===H.PIPE||e===H.BRACE_R}function eo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Bs(e,t){return wf(e.charCodeAt(t))&&$f(e.charCodeAt(t+1))}function wf(e){return e>=55296&&e<=56319}function $f(e){return e>=56320&&e<=57343}function on(e,t){const r=e.source.body.codePointAt(t);if(r===void 0)return H.EOF;if(r>=32&&r<=126){const n=String.fromCodePoint(r);return n==='"'?`'"'`:`"${n}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function ut(e,t,r,n,o){const s=e.line,i=1+r-e.lineStart;return new gf(t,r,n,s,i,o)}function Xx(e,t){const r=e.source.body,n=r.length;let o=t;for(;o<n;){const s=r.charCodeAt(o);switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:r.charCodeAt(o+1)===10?o+=2:++o,++e.line,e.lineStart=o;continue;case 35:return Jx(e,o);case 33:return ut(e,H.BANG,o,o+1);case 36:return ut(e,H.DOLLAR,o,o+1);case 38:return ut(e,H.AMP,o,o+1);case 40:return ut(e,H.PAREN_L,o,o+1);case 41:return ut(e,H.PAREN_R,o,o+1);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46)return ut(e,H.SPREAD,o,o+3);break;case 58:return ut(e,H.COLON,o,o+1);case 61:return ut(e,H.EQUALS,o,o+1);case 64:return ut(e,H.AT,o,o+1);case 91:return ut(e,H.BRACKET_L,o,o+1);case 93:return ut(e,H.BRACKET_R,o,o+1);case 123:return ut(e,H.BRACE_L,o,o+1);case 124:return ut(e,H.PIPE,o,o+1);case 125:return ut(e,H.BRACE_R,o,o+1);case 34:return r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34?ow(e,o):ew(e,o)}if(Lo(s)||s===45)return Qx(e,o,s);if(xf(s))return sw(e,o);throw bt(e.source,o,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:eo(s)||Bs(r,o)?`Unexpected character: ${on(e,o)}.`:`Invalid character: ${on(e,o)}.`)}return ut(e,H.EOF,n,n)}function Jx(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const s=r.charCodeAt(o);if(s===10||s===13)break;if(eo(s))++o;else if(Bs(r,o))o+=2;else break}return ut(e,H.COMMENT,t,o,r.slice(t+1,o))}function Qx(e,t,r){const n=e.source.body;let o=t,s=r,i=!1;if(s===45&&(s=n.charCodeAt(++o)),s===48){if(s=n.charCodeAt(++o),Lo(s))throw bt(e.source,o,`Invalid number, unexpected digit after 0: ${on(e,o)}.`)}else o=Ja(e,o,s),s=n.charCodeAt(o);if(s===46&&(i=!0,s=n.charCodeAt(++o),o=Ja(e,o,s),s=n.charCodeAt(o)),(s===69||s===101)&&(i=!0,s=n.charCodeAt(++o),(s===43||s===45)&&(s=n.charCodeAt(++o)),o=Ja(e,o,s),s=n.charCodeAt(o)),s===46||xf(s))throw bt(e.source,o,`Invalid number, expected digit but got: ${on(e,o)}.`);return ut(e,i?H.FLOAT:H.INT,t,o,n.slice(t,o))}function Ja(e,t,r){if(!Lo(r))throw bt(e.source,t,`Invalid number, expected digit but got: ${on(e,t)}.`);const n=e.source.body;let o=t+1;for(;Lo(n.charCodeAt(o));)++o;return o}function ew(e,t){const r=e.source.body,n=r.length;let o=t+1,s=o,i="";for(;o<n;){const a=r.charCodeAt(o);if(a===34)return i+=r.slice(s,o),ut(e,H.STRING,t,o+1,i);if(a===92){i+=r.slice(s,o);const l=r.charCodeAt(o+1)===117?r.charCodeAt(o+2)===123?tw(e,o):rw(e,o):nw(e,o);i+=l.value,o+=l.size,s=o;continue}if(a===10||a===13)break;if(eo(a))++o;else if(Bs(r,o))o+=2;else throw bt(e.source,o,`Invalid character within String: ${on(e,o)}.`)}throw bt(e.source,o,"Unterminated string.")}function tw(e,t){const r=e.source.body;let n=0,o=3;for(;o<12;){const s=r.charCodeAt(t+o++);if(s===125){if(o<5||!eo(n))break;return{value:String.fromCodePoint(n),size:o}}if(n=n<<4|Fo(s),n<0)break}throw bt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+o)}".`)}function rw(e,t){const r=e.source.body,n=Ef(r,t+2);if(eo(n))return{value:String.fromCodePoint(n),size:6};if(wf(n)&&r.charCodeAt(t+6)===92&&r.charCodeAt(t+7)===117){const o=Ef(r,t+8);if($f(o))return{value:String.fromCodePoint(n,o),size:12}}throw bt(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function Ef(e,t){return Fo(e.charCodeAt(t))<<12|Fo(e.charCodeAt(t+1))<<8|Fo(e.charCodeAt(t+2))<<4|Fo(e.charCodeAt(t+3))}function Fo(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function nw(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
39
|
+
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw bt(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function ow(e,t){const r=e.source.body,n=r.length;let o=e.lineStart,s=t+3,i=s,a="";const l=[];for(;s<n;){const c=r.charCodeAt(s);if(c===34&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34){a+=r.slice(i,s),l.push(a);const u=ut(e,H.BLOCK_STRING,t,s+3,Hx(l).join(`
|
|
40
|
+
`));return e.line+=l.length-1,e.lineStart=o,u}if(c===92&&r.charCodeAt(s+1)===34&&r.charCodeAt(s+2)===34&&r.charCodeAt(s+3)===34){a+=r.slice(i,s),i=s+1,s+=4;continue}if(c===10||c===13){a+=r.slice(i,s),l.push(a),c===13&&r.charCodeAt(s+1)===10?s+=2:++s,a="",i=s,o=s;continue}if(eo(c))++s;else if(Bs(r,s))s+=2;else throw bt(e.source,s,`Invalid character within String: ${on(e,s)}.`)}throw bt(e.source,s,"Unterminated string.")}function sw(e,t){const r=e.source.body,n=r.length;let o=t+1;for(;o<n;){const s=r.charCodeAt(o);if(Ux(s))++o;else break}return ut(e,H.NAME,t,o,r.slice(t,o))}const iw=10,Pf=2;function Qa(e){return Rs(e,[])}function Rs(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return aw(e,t);default:return String(e)}}function aw(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(lw(e)){const n=e.toJSON();if(n!==e)return typeof n=="string"?n:Rs(n,r)}else if(Array.isArray(e))return cw(e,r);return uw(e,r)}function lw(e){return typeof e.toJSON=="function"}function uw(e,t){const r=Object.entries(e);return r.length===0?"{}":t.length>Pf?"["+dw(e)+"]":"{ "+r.map(([o,s])=>o+": "+Rs(s,t)).join(", ")+" }"}function cw(e,t){if(e.length===0)return"[]";if(t.length>Pf)return"[Array]";const r=Math.min(iw,e.length),n=e.length-r,o=[];for(let s=0;s<r;++s)o.push(Rs(e[s],t));return n===1?o.push("... 1 more item"):n>1&&o.push(`... ${n} more items`),"["+o.join(", ")+"]"}function dw(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){const r=e.constructor.name;if(typeof r=="string"&&r!=="")return r}return t}const fw=globalThis.process&&process.env.NODE_ENV==="production"?function(t,r){return t instanceof r}:function(t,r){if(t instanceof r)return!0;if(typeof t=="object"&&t!==null){var n;const o=r.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(n=t.constructor)===null||n===void 0?void 0:n.name;if(o===s){const i=Qa(t);throw new Error(`Cannot use ${o} "${i}" from another module or realm.
|
|
55
41
|
|
|
56
42
|
Ensure that there is only one instance of "graphql" in the node_modules
|
|
57
43
|
directory. If different versions of "graphql" are the dependencies of other
|
|
@@ -62,36 +48,36 @@ https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
|
62
48
|
Duplicate "graphql" modules cannot be used at the same time since different
|
|
63
49
|
versions may have different capabilities and behavior. The data from one
|
|
64
50
|
version used in the function from another could produce confusing and
|
|
65
|
-
spurious results.`)}}return!1};class Pm{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||Ts(!1,`Body must be a string. Received: ${Iu(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||Ts(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Ts(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function lC(e){return aC(e,Pm)}function uC(e,t){const r=new cC(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class cC{constructor(t,r={}){const n=lC(t)?t:new Pm(t);this._lexer=new W2(n),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(H.NAME);return this.node(t,{kind:me.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:me.DOCUMENT,definitions:this.many(H.SOF,this.parseDefinition,H.EOF)})}parseDefinition(){if(this.peek(H.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===H.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw bt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(H.BRACE_L))return this.node(t,{kind:me.OPERATION_DEFINITION,operation:go.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(H.NAME)&&(n=this.parseName()),this.node(t,{kind:me.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(H.NAME);switch(t.value){case"query":return go.QUERY;case"mutation":return go.MUTATION;case"subscription":return go.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(H.PAREN_L,this.parseVariableDefinition,H.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:me.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(H.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(H.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(H.DOLLAR),this.node(t,{kind:me.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:me.SELECTION_SET,selections:this.many(H.BRACE_L,this.parseSelection,H.BRACE_R)})}parseSelection(){return this.peek(H.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(H.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:me.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(H.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(H.PAREN_L,r,H.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:me.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(H.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(H.NAME)?this.node(t,{kind:me.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:me.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:me.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:me.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case H.BRACKET_L:return this.parseList(t);case H.BRACE_L:return this.parseObject(t);case H.INT:return this.advanceLexer(),this.node(r,{kind:me.INT,value:r.value});case H.FLOAT:return this.advanceLexer(),this.node(r,{kind:me.FLOAT,value:r.value});case H.STRING:case H.BLOCK_STRING:return this.parseStringLiteral();case H.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:me.BOOLEAN,value:!0});case"false":return this.node(r,{kind:me.BOOLEAN,value:!1});case"null":return this.node(r,{kind:me.NULL});default:return this.node(r,{kind:me.ENUM,value:r.value})}case H.DOLLAR:if(t)if(this.expectToken(H.DOLLAR),this._lexer.token.kind===H.NAME){const n=this._lexer.token.value;throw bt(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:me.STRING,value:t.value,block:t.kind===H.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:me.LIST,values:this.any(H.BRACKET_L,r,H.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:me.OBJECT,fields:this.any(H.BRACE_L,r,H.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:me.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(H.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(H.AT),this.node(r,{kind:me.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(H.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(H.BRACKET_R),r=this.node(t,{kind:me.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(H.BANG)?this.node(t,{kind:me.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:me.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(H.STRING)||this.peek(H.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);return this.node(t,{kind:me.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(H.COLON);const n=this.parseNamedType();return this.node(t,{kind:me.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:me.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:me.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(H.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseFieldDefinition,H.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(H.COLON);const i=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:me.FIELD_DEFINITION,description:r,name:n,arguments:o,type:i,directives:s})}parseArgumentDefs(){return this.optionalMany(H.PAREN_L,this.parseInputValueDef,H.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(H.COLON);const o=this.parseTypeReference();let i;this.expectOptionalToken(H.EQUALS)&&(i=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:me.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:i,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:me.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:i,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(t,{kind:me.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(H.EQUALS)?this.delimitedMany(H.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(t,{kind:me.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:i})}parseEnumValuesDefinition(){return this.optionalMany(H.BRACE_L,this.parseEnumValueDefinition,H.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:me.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw bt(this._lexer.source,this._lexer.token.start,`${_s(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(t,{kind:me.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseInputValueDef,H.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===H.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:me.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:me.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:me.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:me.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:i})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:me.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:me.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:me.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(H.AT);const n=this.parseName(),o=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const s=this.parseDirectiveLocations();return this.node(t,{kind:me.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:i,locations:s})}parseDirectiveLocations(){return this.delimitedMany(H.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(Cu,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new V2(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw bt(this._lexer.source,r.start,`Expected ${Sm(t)}, found ${_s(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===H.NAME&&r.value===t)this.advanceLexer();else throw bt(this._lexer.source,r.start,`Expected "${t}", found ${_s(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===H.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return bt(this._lexer.source,r.start,`Unexpected ${_s(r)}.`)}any(t,r,n){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==H.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw bt(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _s(e){const t=e.value;return Sm(e.kind)+(t!=null?` "${t}"`:"")}function Sm(e){return U2(e)?`"${e}"`:e}function dC(e){return`"${e.replace(fC,pC)}"`}const fC=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function pC(e){return hC[e.charCodeAt(0)]}const hC=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],mC=Object.freeze({});function gC(e,t,r=gm){const n=new Map;for(const v of Object.values(me))n.set(v,vC(t,v));let o,i=Array.isArray(e),s=[e],a=-1,l=[],c=e,u,d;const h=[],p=[];do{a++;const v=a===s.length,$=v&&l.length!==0;if(v){if(u=p.length===0?void 0:h[h.length-1],c=d,d=p.pop(),$)if(i){c=c.slice();let C=0;for(const[T,k]of l){const D=T-C;k===null?(c.splice(D,1),C++):c[D]=k}}else{c={...c};for(const[C,T]of l)c[C]=T}a=o.index,s=o.keys,l=o.edits,i=o.inArray,o=o.prev}else if(d){if(u=i?a:s[a],c=d[u],c==null)continue;h.push(u)}let S;if(!Array.isArray(c)){var g,m;vm(c)||Ts(!1,`Invalid AST Node: ${Iu(c)}.`);const C=v?(g=n.get(c.kind))===null||g===void 0?void 0:g.leave:(m=n.get(c.kind))===null||m===void 0?void 0:m.enter;if(S=C?.call(t,c,u,d,h,p),S===mC)break;if(S===!1){if(!v){h.pop();continue}}else if(S!==void 0&&(l.push([u,S]),!v))if(vm(S))c=S;else{h.pop();continue}}if(S===void 0&&$&&l.push([u,c]),v)h.pop();else{var x;o={inArray:i,index:a,keys:s,edits:l,prev:o},i=Array.isArray(c),s=i?c:(x=r[c.kind])!==null&&x!==void 0?x:[],a=-1,l=[],d&&p.push(d),d=c}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function vC(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function bC(e){return gC(e,xC)}const yC=80,xC={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>ce(e.definitions,`
|
|
51
|
+
spurious results.`)}}return!1};class Cf{constructor(t,r="GraphQL request",n={line:1,column:1}){typeof t=="string"||zs(!1,`Body must be a string. Received: ${Qa(t)}.`),this.body=t,this.name=r,this.locationOffset=n,this.locationOffset.line>0||zs(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||zs(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function pw(e){return fw(e,Cf)}function hw(e,t){const r=new mw(e,t),n=r.parseDocument();return Object.defineProperty(n,"tokenCount",{enumerable:!1,value:r.tokenCount}),n}class mw{constructor(t,r={}){const n=pw(t)?t:new Cf(t);this._lexer=new qx(n),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(H.NAME);return this.node(t,{kind:ge.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:ge.DOCUMENT,definitions:this.many(H.SOF,this.parseDefinition,H.EOF)})}parseDefinition(){if(this.peek(H.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),r=t?this._lexer.lookahead():this._lexer.token;if(r.kind===H.NAME){switch(r.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw bt(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(r.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(r)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(H.BRACE_L))return this.node(t,{kind:ge.OPERATION_DEFINITION,operation:Qn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const r=this.parseOperationType();let n;return this.peek(H.NAME)&&(n=this.parseName()),this.node(t,{kind:ge.OPERATION_DEFINITION,operation:r,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(H.NAME);switch(t.value){case"query":return Qn.QUERY;case"mutation":return Qn.MUTATION;case"subscription":return Qn.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(H.PAREN_L,this.parseVariableDefinition,H.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ge.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(H.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(H.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(H.DOLLAR),this.node(t,{kind:ge.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ge.SELECTION_SET,selections:this.many(H.BRACE_L,this.parseSelection,H.BRACE_R)})}parseSelection(){return this.peek(H.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,r=this.parseName();let n,o;return this.expectOptionalToken(H.COLON)?(n=r,o=this.parseName()):o=r,this.node(t,{kind:ge.FIELD,alias:n,name:o,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(H.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const r=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(H.PAREN_L,r,H.PAREN_R)}parseArgument(t=!1){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:ge.ARGUMENT,name:n,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(H.SPREAD);const r=this.expectOptionalKeyword("on");return!r&&this.peek(H.NAME)?this.node(t,{kind:ge.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:ge.INLINE_FRAGMENT,typeCondition:r?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:ge.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:ge.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const r=this._lexer.token;switch(r.kind){case H.BRACKET_L:return this.parseList(t);case H.BRACE_L:return this.parseObject(t);case H.INT:return this.advanceLexer(),this.node(r,{kind:ge.INT,value:r.value});case H.FLOAT:return this.advanceLexer(),this.node(r,{kind:ge.FLOAT,value:r.value});case H.STRING:case H.BLOCK_STRING:return this.parseStringLiteral();case H.NAME:switch(this.advanceLexer(),r.value){case"true":return this.node(r,{kind:ge.BOOLEAN,value:!0});case"false":return this.node(r,{kind:ge.BOOLEAN,value:!1});case"null":return this.node(r,{kind:ge.NULL});default:return this.node(r,{kind:ge.ENUM,value:r.value})}case H.DOLLAR:if(t)if(this.expectToken(H.DOLLAR),this._lexer.token.kind===H.NAME){const n=this._lexer.token.value;throw bt(this._lexer.source,r.start,`Unexpected variable "$${n}" in constant value.`)}else throw this.unexpected(r);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:ge.STRING,value:t.value,block:t.kind===H.BLOCK_STRING})}parseList(t){const r=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:ge.LIST,values:this.any(H.BRACKET_L,r,H.BRACKET_R)})}parseObject(t){const r=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:ge.OBJECT,fields:this.any(H.BRACE_L,r,H.BRACE_R)})}parseObjectField(t){const r=this._lexer.token,n=this.parseName();return this.expectToken(H.COLON),this.node(r,{kind:ge.OBJECT_FIELD,name:n,value:this.parseValueLiteral(t)})}parseDirectives(t){const r=[];for(;this.peek(H.AT);)r.push(this.parseDirective(t));return r}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const r=this._lexer.token;return this.expectToken(H.AT),this.node(r,{kind:ge.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let r;if(this.expectOptionalToken(H.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(H.BRACKET_R),r=this.node(t,{kind:ge.LIST_TYPE,type:n})}else r=this.parseNamedType();return this.expectOptionalToken(H.BANG)?this.node(t,{kind:ge.NON_NULL_TYPE,type:r}):r}parseNamedType(){return this.node(this._lexer.token,{kind:ge.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(H.STRING)||this.peek(H.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),o=this.many(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);return this.node(t,{kind:ge.SCHEMA_DEFINITION,description:r,directives:n,operationTypes:o})}parseOperationTypeDefinition(){const t=this._lexer.token,r=this.parseOperationType();this.expectToken(H.COLON);const n=this.parseNamedType();return this.node(t,{kind:ge.OPERATION_TYPE_DEFINITION,operation:r,type:n})}parseScalarTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),o=this.parseConstDirectives();return this.node(t,{kind:ge.SCALAR_TYPE_DEFINITION,description:r,name:n,directives:o})}parseObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:ge.OBJECT_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:s,fields:i})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(H.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseFieldDefinition,H.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName(),o=this.parseArgumentDefs();this.expectToken(H.COLON);const s=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(t,{kind:ge.FIELD_DEFINITION,description:r,name:n,arguments:o,type:s,directives:i})}parseArgumentDefs(){return this.optionalMany(H.PAREN_L,this.parseInputValueDef,H.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseName();this.expectToken(H.COLON);const o=this.parseTypeReference();let s;this.expectOptionalToken(H.EQUALS)&&(s=this.parseConstValueLiteral());const i=this.parseConstDirectives();return this.node(t,{kind:ge.INPUT_VALUE_DEFINITION,description:r,name:n,type:o,defaultValue:s,directives:i})}parseInterfaceTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),o=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(t,{kind:ge.INTERFACE_TYPE_DEFINITION,description:r,name:n,interfaces:o,directives:s,fields:i})}parseUnionTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(t,{kind:ge.UNION_TYPE_DEFINITION,description:r,name:n,directives:o,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(H.EQUALS)?this.delimitedMany(H.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(t,{kind:ge.ENUM_TYPE_DEFINITION,description:r,name:n,directives:o,values:s})}parseEnumValuesDefinition(){return this.optionalMany(H.BRACE_L,this.parseEnumValueDefinition,H.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,r=this.parseDescription(),n=this.parseEnumValueName(),o=this.parseConstDirectives();return this.node(t,{kind:ge.ENUM_VALUE_DEFINITION,description:r,name:n,directives:o})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw bt(this._lexer.source,this._lexer.token.start,`${Ks(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),o=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(t,{kind:ge.INPUT_OBJECT_TYPE_DEFINITION,description:r,name:n,directives:o,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(H.BRACE_L,this.parseInputValueDef,H.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===H.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.optionalMany(H.BRACE_L,this.parseOperationTypeDefinition,H.BRACE_R);if(r.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:ge.SCHEMA_EXTENSION,directives:r,operationTypes:n})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(t,{kind:ge.SCALAR_TYPE_EXTENSION,name:r,directives:n})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:ge.OBJECT_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:s})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(n.length===0&&o.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:ge.INTERFACE_TYPE_EXTENSION,name:r,interfaces:n,directives:o,fields:s})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:ge.UNION_TYPE_EXTENSION,name:r,directives:n,types:o})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:ge.ENUM_TYPE_EXTENSION,name:r,directives:n,values:o})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();if(n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:ge.INPUT_OBJECT_TYPE_EXTENSION,name:r,directives:n,fields:o})}parseDirectiveDefinition(){const t=this._lexer.token,r=this.parseDescription();this.expectKeyword("directive"),this.expectToken(H.AT);const n=this.parseName(),o=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const i=this.parseDirectiveLocations();return this.node(t,{kind:ge.DIRECTIVE_DEFINITION,description:r,name:n,arguments:o,repeatable:s,locations:i})}parseDirectiveLocations(){return this.delimitedMany(H.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,r=this.parseName();if(Object.prototype.hasOwnProperty.call(Ya,r.value))return r;throw this.unexpected(t)}node(t,r){return this._options.noLocation!==!0&&(r.loc=new Kx(t,this._lexer.lastToken,this._lexer.source)),r}peek(t){return this._lexer.token.kind===t}expectToken(t){const r=this._lexer.token;if(r.kind===t)return this.advanceLexer(),r;throw bt(this._lexer.source,r.start,`Expected ${Sf(t)}, found ${Ks(r)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const r=this._lexer.token;if(r.kind===H.NAME&&r.value===t)this.advanceLexer();else throw bt(this._lexer.source,r.start,`Expected "${t}", found ${Ks(r)}.`)}expectOptionalKeyword(t){const r=this._lexer.token;return r.kind===H.NAME&&r.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const r=t??this._lexer.token;return bt(this._lexer.source,r.start,`Unexpected ${Ks(r)}.`)}any(t,r,n){this.expectToken(t);const o=[];for(;!this.expectOptionalToken(n);)o.push(r.call(this));return o}optionalMany(t,r,n){if(this.expectOptionalToken(t)){const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}return[]}many(t,r,n){this.expectToken(t);const o=[];do o.push(r.call(this));while(!this.expectOptionalToken(n));return o}delimitedMany(t,r){this.expectOptionalToken(t);const n=[];do n.push(r.call(this));while(this.expectOptionalToken(t));return n}advanceLexer(){const{maxTokens:t}=this._options,r=this._lexer.advance();if(r.kind!==H.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw bt(this._lexer.source,r.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Ks(e){const t=e.value;return Sf(e.kind)+(t!=null?` "${t}"`:"")}function Sf(e){return Yx(e)?`"${e}"`:e}function gw(e){return`"${e.replace(vw,bw)}"`}const vw=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function bw(e){return yw[e.charCodeAt(0)]}const yw=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],xw=Object.freeze({});function ww(e,t,r=vf){const n=new Map;for(const v of Object.values(ge))n.set(v,$w(t,v));let o,s=Array.isArray(e),i=[e],a=-1,l=[],c=e,u,d;const p=[],h=[];do{a++;const v=a===i.length,$=v&&l.length!==0;if(v){if(u=h.length===0?void 0:p[p.length-1],c=d,d=h.pop(),$)if(s){c=c.slice();let E=0;for(const[T,k]of l){const D=T-E;k===null?(c.splice(D,1),E++):c[D]=k}}else{c={...c};for(const[E,T]of l)c[E]=T}a=o.index,i=o.keys,l=o.edits,s=o.inArray,o=o.prev}else if(d){if(u=s?a:i[a],c=d[u],c==null)continue;p.push(u)}let C;if(!Array.isArray(c)){var g,m;bf(c)||zs(!1,`Invalid AST Node: ${Qa(c)}.`);const E=v?(g=n.get(c.kind))===null||g===void 0?void 0:g.leave:(m=n.get(c.kind))===null||m===void 0?void 0:m.enter;if(C=E?.call(t,c,u,d,p,h),C===xw)break;if(C===!1){if(!v){p.pop();continue}}else if(C!==void 0&&(l.push([u,C]),!v))if(bf(C))c=C;else{p.pop();continue}}if(C===void 0&&$&&l.push([u,c]),v)p.pop();else{var x;o={inArray:s,index:a,keys:i,edits:l,prev:o},s=Array.isArray(c),i=s?c:(x=r[c.kind])!==null&&x!==void 0?x:[],a=-1,l=[],d&&h.push(d),d=c}}while(o!==void 0);return l.length!==0?l[l.length-1][1]:e}function $w(e,t){const r=e[t];return typeof r=="object"?r:typeof r=="function"?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ew(e){return ww(e,Cw)}const Pw=80,Cw={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>fe(e.definitions,`
|
|
66
52
|
|
|
67
|
-
`)},OperationDefinition:{leave(e){const t=Ie("(",
|
|
68
|
-
`,
|
|
53
|
+
`)},OperationDefinition:{leave(e){const t=Ie("(",fe(e.variableDefinitions,", "),")"),r=fe([e.operation,fe([e.name,t]),fe(e.directives," ")]," ");return(r==="query"?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+Ie(" = ",r)+Ie(" ",fe(n," "))},SelectionSet:{leave:({selections:e})=>or(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:o}){const s=Ie("",e,": ")+t;let i=s+Ie("(",fe(r,", "),")");return i.length>Pw&&(i=s+Ie(`(
|
|
54
|
+
`,Ws(fe(r,`
|
|
69
55
|
`)),`
|
|
70
|
-
)`)),
|
|
71
|
-
`)+
|
|
72
|
-
`)+
|
|
73
|
-
`)+
|
|
74
|
-
`)+t+(
|
|
75
|
-
`,
|
|
56
|
+
)`)),fe([i,fe(n," "),o]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Ie(" ",fe(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>fe(["...",Ie("on ",e),fe(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:o})=>`fragment ${e}${Ie("(",fe(r,", "),")")} on ${t} ${Ie("",fe(n," ")," ")}`+o},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Zx(e):gw(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+fe(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+fe(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Ie("(",fe(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Ie("",e,`
|
|
57
|
+
`)+fe(["schema",fe(t," "),or(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
|
|
58
|
+
`)+fe(["scalar",t,fe(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Ie("",e,`
|
|
59
|
+
`)+fe(["type",t,Ie("implements ",fe(r," & ")),fe(n," "),or(o)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:o})=>Ie("",e,`
|
|
60
|
+
`)+t+(Tf(r)?Ie(`(
|
|
61
|
+
`,Ws(fe(r,`
|
|
76
62
|
`)),`
|
|
77
|
-
)`):Ie("(",
|
|
78
|
-
`)+
|
|
79
|
-
`)+
|
|
80
|
-
`)+
|
|
81
|
-
`)+
|
|
82
|
-
`)+
|
|
83
|
-
`)+
|
|
84
|
-
`)+"directive @"+t+(
|
|
85
|
-
`,
|
|
63
|
+
)`):Ie("(",fe(r,", "),")"))+": "+n+Ie(" ",fe(o," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:o})=>Ie("",e,`
|
|
64
|
+
`)+fe([t+": "+r,Ie("= ",n),fe(o," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:o})=>Ie("",e,`
|
|
65
|
+
`)+fe(["interface",t,Ie("implements ",fe(r," & ")),fe(n," "),or(o)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Ie("",e,`
|
|
66
|
+
`)+fe(["union",t,fe(r," "),Ie("= ",fe(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Ie("",e,`
|
|
67
|
+
`)+fe(["enum",t,fe(r," "),or(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Ie("",e,`
|
|
68
|
+
`)+fe([t,fe(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Ie("",e,`
|
|
69
|
+
`)+fe(["input",t,fe(r," "),or(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:o})=>Ie("",e,`
|
|
70
|
+
`)+"directive @"+t+(Tf(r)?Ie(`(
|
|
71
|
+
`,Ws(fe(r,`
|
|
86
72
|
`)),`
|
|
87
|
-
)`):Ie("(",
|
|
88
|
-
`,
|
|
73
|
+
)`):Ie("(",fe(r,", "),")"))+(n?" repeatable":"")+" on "+fe(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>fe(["extend schema",fe(e," "),or(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>fe(["extend scalar",e,fe(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>fe(["extend type",e,Ie("implements ",fe(t," & ")),fe(r," "),or(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>fe(["extend interface",e,Ie("implements ",fe(t," & ")),fe(r," "),or(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>fe(["extend union",e,fe(t," "),Ie("= ",fe(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>fe(["extend enum",e,fe(t," "),or(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>fe(["extend input",e,fe(t," "),or(r)]," ")}};function fe(e,t=""){var r;return(r=e?.filter(n=>n).join(t))!==null&&r!==void 0?r:""}function or(e){return Ie(`{
|
|
74
|
+
`,Ws(fe(e,`
|
|
89
75
|
`)),`
|
|
90
|
-
}`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function
|
|
91
|
-
`))}function
|
|
92
|
-
`)))!==null&&t!==void 0?t:!1}const
|
|
76
|
+
}`)}function Ie(e,t,r=""){return t!=null&&t!==""?e+t+r:""}function Ws(e){return Ie(" ",e.replace(/\n/g,`
|
|
77
|
+
`))}function Tf(e){var t;return(t=e?.some(r=>r.includes(`
|
|
78
|
+
`)))!==null&&t!==void 0?t:!1}const kf="Accept",el="Content-Type",tl="application/json",If="application/graphql-response+json",_f=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),Sw=e=>{const t=e.toLowerCase();return t.includes(If)||t.includes(tl)},Mf=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(Df)};if(js(e))return{_tag:"Single",executionResult:Df(e)};throw new Error(`Invalid execution result: result is not object or array.
|
|
93
79
|
Got:
|
|
94
|
-
${String(e)}`)}catch(t){return t}},
|
|
80
|
+
${String(e)}`)}catch(t){return t}},Df=e=>{if(typeof e!="object"||e===null)throw new Error("Invalid execution result: result is not object");let t,r,n;if("errors"in e){if(!js(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");t=e.errors}if("data"in e){if(!js(e.data)&&e.data!==null)throw new Error("Invalid execution result: data is not plain object");r=e.data}if("extensions"in e){if(!js(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");n=e.extensions}return{data:r,errors:t,extensions:n}},Tw=e=>e._tag==="Batch"?e.executionResults.some(Af):Af(e.executionResult),Af=e=>Array.isArray(e.errors)?e.errors.length>0:!!e.errors,Nf=e=>typeof e=="object"&&e!==null&&"kind"in e&&e.kind===ge.OPERATION_DEFINITION,kw=e=>{let t;const r=e.definitions.filter(Nf);return r.length===1&&(t=r[0].name?.value),t},Iw=e=>{let t=!1;const r=e.definitions.filter(Nf);return r.length===1&&(t=r[0].operation==="mutation"),t},rl=(e,t)=>{const r=typeof e=="string"?e:Ew(e);let n=!1,o;if(t)return{expression:r,isMutation:n,operationName:o};const s=Nx(()=>typeof e=="string"?hw(e):e);return s instanceof Error?{expression:r,isMutation:n,operationName:o}:(o=kw(s),n=Iw(s),{expression:r,operationName:o,isMutation:n})},nl=JSON,ol=async e=>{const t={...e,method:e.request._tag==="Single"?e.request.document.isMutation?"POST":cf(e.method??"post"):e.request.hasMutations?"POST":cf(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},n=await Mw(t.method)(t);if(!n.ok)return new Xn({status:n.status,headers:n.headers},{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await _w(n,e.fetchOptions.jsonSerializer??nl);if(o instanceof Error)throw o;const s={status:n.status,headers:n.headers};if(Tw(o)&&t.fetchOptions.errorPolicy==="none"){const i=o._tag==="Batch"?{...o.executionResults,...s}:{...o.executionResult,...s};return new Xn(i,{query:e.request._tag==="Single"?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...s,...Of(t)(o.executionResult)};case"Batch":return{...s,data:o.executionResults.map(Of(t))};default:Ga(o)}},Of=e=>t=>({extensions:t.extensions,data:t.data,errors:e.fetchOptions.errorPolicy==="all"?t.errors:void 0}),_w=async(e,t)=>{const r=e.headers.get(el),n=await e.text();return r&&Sw(r)?Mf(t.parse(n)):Mf(n)},Mw=e=>async t=>{const r=new Headers(t.headers);let n=null,o;r.has(kf)||r.set(kf,[If,tl].join(", ")),e==="POST"?(o=(t.fetchOptions.jsonSerializer??nl).stringify(Dw(t)),typeof o=="string"&&!r.has(el)&&r.set(el,tl)):n=Aw(t);const s={method:e,headers:r,body:o,...t.fetchOptions};let i=new URL(t.url),a=s;if(t.middleware){const c=await Promise.resolve(t.middleware({...s,url:t.url,operationName:t.request._tag==="Single"?t.request.document.operationName:void 0,variables:t.request.variables})),{url:u,...d}=c;i=new URL(u),a=d}return n&&n.forEach((c,u)=>{i.searchParams.append(u,c)}),await(t.fetch??fetch)(i,a)},Dw=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return df(e.request.query,e.request.variables??[]).map(([t,r])=>({query:t,variables:r}));default:throw Ga(e.request)}},Aw=e=>{const t=e.fetchOptions.jsonSerializer??nl,r=new URLSearchParams;switch(e.request._tag){case"Single":return r.append("query",_f(e.request.document.expression)),e.request.variables&&r.append("variables",t.stringify(e.request.variables)),e.request.document.operationName&&r.append("operationName",e.request.document.operationName),r;case"Batch":{const n=e.request.variables?.map(i=>t.stringify(i))??[],o=e.request.query.map(_f),s=df(o,n).map(([i,a])=>({query:i,variables:a}));return r.append("query",t.stringify(s)),r}default:throw Ga(e.request)}};class Nw{url;requestConfig;constructor(t,r={}){this.url=t,this.requestConfig=r}rawRequest=async(...t)=>{const[r,n,o]=t,s=Fx(r,n,o),{headers:i,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:d,...p}=this.requestConfig,{url:h}=this;s.signal!==void 0&&(p.signal=s.signal);const g=rl(s.query,d),m=await ol({url:h,request:{_tag:"Single",document:g,variables:s.variables},headers:{...Jn(Ha(i)),...Jn(s.requestHeaders)},fetch:a,method:l,fetchOptions:p,middleware:c});if(u&&await u(m,{operationName:g.operationName,variables:n,url:this.url}),m instanceof Error)throw m;return m};async request(t,...r){const[n,o]=r,s=Ow(t,n,o),{headers:i,fetch:a=globalThis.fetch,method:l="POST",requestMiddleware:c,responseMiddleware:u,excludeOperationName:d,...p}=this.requestConfig,{url:h}=this;s.signal!==void 0&&(p.signal=s.signal);const g=rl(s.document,d),m=await ol({url:h,request:{_tag:"Single",document:g,variables:s.variables},headers:{...Jn(Ha(i)),...Jn(s.requestHeaders)},fetch:a,method:l,fetchOptions:p,middleware:c});if(u&&await u(m,{operationName:g.operationName,variables:s.variables,url:this.url}),m instanceof Error)throw m;return m.data}async batchRequests(t,r){const n=Lx(t,r),{headers:o,excludeOperationName:s,...i}=this.requestConfig;n.signal!==void 0&&(i.signal=n.signal);const a=n.documents.map(({document:p})=>rl(p,s)),l=a.map(({expression:p})=>p),c=a.some(({isMutation:p})=>p),u=n.documents.map(({variables:p})=>p),d=await ol({url:this.url,request:{_tag:"Batch",operationName:void 0,query:l,hasMutations:c,variables:u},headers:{...Jn(Ha(o)),...Jn(n.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:i,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(d,{operationName:void 0,variables:u,url:this.url}),d instanceof Error)throw d;return d.data}setHeaders(t){return this.requestConfig.headers=t,this}setHeader(t,r){const{headers:n}=this.requestConfig;return n?n[t]=r:this.requestConfig.headers={[t]:r},this}setEndpoint(t){return this.url=t,this}}const Ow=(e,t,r)=>e.document?e:{document:e,variables:t,requestHeaders:r,signal:void 0},jr=(e,...t)=>e.reduce((r,n,o)=>`${r}${n}${o in t?String(t[o]):""}`,"");var to=(e=>(e.Avg="AVG",e.Cardinality="CARDINALITY",e.Max="MAX",e.Min="MIN",e.Sum="SUM",e))(to||{});const Lw=jr`
|
|
95
81
|
fragment ProductCardProduct on ProductVersion {
|
|
96
82
|
id
|
|
97
83
|
slug
|
|
@@ -177,7 +163,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
177
163
|
}
|
|
178
164
|
}
|
|
179
165
|
}
|
|
180
|
-
`,
|
|
166
|
+
`,Us=jr`
|
|
181
167
|
fragment ProductCardProposition on Proposition {
|
|
182
168
|
key
|
|
183
169
|
creditFee
|
|
@@ -242,7 +228,41 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
242
228
|
stickerImageUrl
|
|
243
229
|
}
|
|
244
230
|
}
|
|
245
|
-
${
|
|
231
|
+
${Lw}`;jr`
|
|
232
|
+
query getPageByPath($path: String) {
|
|
233
|
+
page(path: $path) {
|
|
234
|
+
productCategory
|
|
235
|
+
filter
|
|
236
|
+
filterDefaults
|
|
237
|
+
pageFilters {
|
|
238
|
+
id
|
|
239
|
+
name
|
|
240
|
+
shortName
|
|
241
|
+
slug
|
|
242
|
+
column
|
|
243
|
+
type
|
|
244
|
+
valueType
|
|
245
|
+
dynamic
|
|
246
|
+
min
|
|
247
|
+
max
|
|
248
|
+
rank
|
|
249
|
+
operator
|
|
250
|
+
url
|
|
251
|
+
formatType
|
|
252
|
+
showCounts
|
|
253
|
+
options {
|
|
254
|
+
name
|
|
255
|
+
descriptiveName
|
|
256
|
+
value
|
|
257
|
+
}
|
|
258
|
+
aliases {
|
|
259
|
+
name
|
|
260
|
+
value
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
`;const Fw=jr`
|
|
246
266
|
query resultsFixedPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock], $postcode: String, $number: Int, $numberAddon: String) {
|
|
247
267
|
fetchInfo(
|
|
248
268
|
productCategory: "fixed-proposition"
|
|
@@ -288,7 +308,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
288
308
|
}
|
|
289
309
|
}
|
|
290
310
|
}
|
|
291
|
-
${
|
|
311
|
+
${Us}`,Vw=jr`
|
|
292
312
|
query resultsSimOnlyPropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
|
|
293
313
|
search: searchPropositions(
|
|
294
314
|
query: $query
|
|
@@ -323,7 +343,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
323
343
|
}
|
|
324
344
|
}
|
|
325
345
|
}
|
|
326
|
-
${
|
|
346
|
+
${Us}`,jw=jr`
|
|
327
347
|
query resultsSmartphonePropositions($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
|
|
328
348
|
search: searchPropositions(
|
|
329
349
|
query: $query
|
|
@@ -367,7 +387,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
367
387
|
}
|
|
368
388
|
}
|
|
369
389
|
}
|
|
370
|
-
${
|
|
390
|
+
${Us}`,zw=jr`
|
|
371
391
|
query resultsSmartphonePropositionsExtended($query: ElasticQuery!, $modificationBlocks: [InputModificationBlock]) {
|
|
372
392
|
search: searchPropositions(
|
|
373
393
|
query: $query
|
|
@@ -393,40 +413,59 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
393
413
|
}
|
|
394
414
|
}
|
|
395
415
|
}
|
|
396
|
-
${Ds}`;function LC(e){return["ja","nee","0","1"].includes(e)}function Nm(e){return new RegExp(/^\d*\.?\d*$/).test(e)}function Lm(e){return new RegExp(/^\d*\.?\d*-\d*\.?\d*$/).test(e)}function Fm(e){return!e.includes("nee")&&!e.includes("0")?[!0]:!e.includes("ja")&&!e.includes("1")?[!1]:[!0,!1]}function Vm(e){return parseFloat(e)||0}function jm(e){const[t,r]=e.split("-").map(parseFloat);return Number.isNaN(t)?{to:r}:Number.isNaN(r)?{from:t}:{from:t,to:r}}function zm(e){const{col:t,ranges:r,values:n}=FC(e),o=e.operator==="and";if(o&&r)return r.map(i=>({col:t,ranges:[i]}));if(o&&n){if(n.length===0)return[{col:t,values:n}];const i=n[0];if(typeof i=="string")return n.map(s=>({col:t,values:[s]}));if(typeof i=="number")return n.map(s=>({col:t,values:[s]}));if(typeof i=="boolean")return n.map(s=>({col:t,values:[s]}))}return[{col:t,ranges:r,values:n}]}function FC({col:e,values:t,valueType:r}){return t.length===0?{col:e,values:t}:r==="boolean"?{col:e,values:Fm(t)}:(r==="integer"||r==="decimal")&&t.every(Lm)?{col:e,ranges:t.map(jm)}:(r==="integer"||r==="decimal")&&t.every(Nm)?{col:e,values:t.map(Vm)}:r==="string"?{col:e,values:t}:t.every(LC)?{col:e,values:Fm(t)}:t.every(Lm)?{col:e,ranges:t.map(jm)}:t.every(Nm)?{col:e,values:t.map(Vm)}:{col:e,values:t}}function VC({key:e,col:t,type:r,filter:n=!1,options:o=[]}){const[{values:i,ranges:s}]=zm({col:t,values:o});switch(r){case"max":return[{key:`max_${e}`,metric:yo.Max,col:t}];case"min":return[{key:`min_${e}`,metric:yo.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:yo.Min,col:t},{key:`max_${e}`,metric:yo.Max,col:t}];case"values":return s?[{key:e,col:t,filter:n,ranges:s}]:i&&i.length>0?[{key:e,col:t,filter:n,include:i}]:[{key:e,col:t,filter:n}]}}class jC{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...zm(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...VC(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:yo.Cardinality,col:this._groupBy}]:this._aggregations}}}function zC({filterOptions:e,filterValues:t,limit:r=10,currentProvider:n}){const o=new jC;o.limit(r);const i=Kr(t,"sorteren");return i&&o.sort(i),t.forEach(s=>{const a=T2(e,s.id);a&&o.where({col:s.id,values:(Array.isArray(s.value)?s.value:[s.value]).map(l=>String(l)),valueType:a.type})}),n&&o.where({col:"current_provider",values:[n]}),o}function BC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Arrow Up Down Icon"}),y.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function RC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Broadcast Icon"}),y.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function KC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Calculator Icon"}),y.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Bm({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Chevron Right Icon"}),y.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Rm({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Circle Check Filled Icon"}),y.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function WC({fill:e="currentColor",size:t,height:r,width:n,className:o,style:i,...s}){return y.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:i,...s,children:[y.jsx("title",{children:"Circle X Icon"}),y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m10 10 4 4m0-4-4 4m11-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0"})]})}function UC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Clock Hour Icon"}),y.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function HC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Device Remote Icon"}),y.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function GC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Device TV Icon"}),y.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function ZC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Discount Icon"}),y.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Km({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Filters Icon"}),y.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function qC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Gauge Icon"}),y.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function YC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"Star Icon"}),y.jsx("path",{d:"M12.0001 17.75L5.82808 20.995L7.00708 14.122L2.00708 9.25495L8.90708 8.25495L11.9931 2.00195L15.0791 8.25495L21.9791 9.25495L16.9791 14.122L18.1581 20.995L12.0001 17.75Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function XC({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:i,style:s,...a}){return y.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:i,style:s,...a,children:[y.jsx("title",{children:"World Icon"}),y.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function Wm({filter:e,filterOption:t,onRemove:r,classNames:n}){const o=f.useRef(null),i=f.useMemo(()=>C2(e,t),[e,t]),s=f.useCallback(()=>r(e),[e,r]),a=f.useCallback(l=>{(l.key==="Delete"||l.key==="Backspace")&&(l.preventDefault(),s())},[s]);return y.jsx(wu,{ref:o,onClose:s,onKeyDown:a,variant:"bordered",color:"primary",endContent:y.jsx(WC,{size:20}),tabIndex:0,classNames:n,children:i})}function Um({activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:n}){const o=f.useRef(null),i=f.useMemo(()=>new Map(t.map(a=>[a.id,a])),[t]),s=f.useCallback(a=>{r(a),setTimeout(()=>{if(!o.current)return;const l=o.current.querySelectorAll('[tabindex="0"]');l.length>0&&l[0].focus()},0)},[r]);return!e||e.length===0||e.every(a=>{const l=i.get(a.id);return!l||l.type==="hidden"})?null:y.jsx("fieldset",{ref:o,className:j("flex flex-wrap gap-2",n?.container),children:e.map(a=>{const l=i.get(a.id);return!l||l.type==="hidden"?null:y.jsx(Wm,{filter:a,filterOption:l,onRemove:s,classNames:{...n?.filterChip,base:j("border-primary-600",n?.filterChip?.base),content:j("text-primary-600 font-semibold",n?.filterChip?.content),closeButton:j("stroke-primary-600 opacity-100 hover:stroke-primary-700",n?.filterChip?.closeButton)}},a.id)})})}var[fM,JC]=Vi({name:"ButtonGroupContext",strict:!1});function Hm(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:h,target:p,rel:g,type:m="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:$,isPressed:S}=qo({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:C}=ws(e,t);u&&(C.tabIndex=n?-1:C.tabIndex);let T=kt(C,$,Ri(e,{labelable:!0}));return{isPressed:S,buttonProps:kt(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var QC=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),Gm=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:i}=e;return y.jsx(y.Fragment,{children:t.map(s=>{const a=Fx(.01*s.size,.2,s.size>100?.75:.5);return y.jsx(ao,{features:QC,children:y.jsx(ss,{mode:"popLayout",children:y.jsx(lo.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:s.y,left:s.x,width:`${s.size}px`,height:`${s.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{i(s.key)},...r})})},s.key)})})};Gm.displayName="HeroUI.Ripple";var Zm=Gm;function qm(e={}){const[t,r]=f.useState([]),n=f.useCallback(i=>{const s=i.target,a=Math.max(s.clientWidth,s.clientHeight);r(l=>[...l,{key:Lx(l.length.toString()),size:a,x:i.x-a/2,y:i.y-a/2}])},[]),o=f.useCallback(i=>{r(s=>s.filter(a=>a.key!==i))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function eT(e){var t,r,n,o,i,s,a,l,c;const u=JC(),d=gt(),h=!!u,{ref:p,as:g,children:m,startContent:x,endContent:v,autoFocus:$,className:S,spinner:C,isLoading:T=!1,disableRipple:k=!1,fullWidth:D=(t=u?.fullWidth)!=null?t:!1,radius:E=u?.radius,size:V=(r=u?.size)!=null?r:"md",color:F=(n=u?.color)!=null?n:"default",variant:b=(o=u?.variant)!=null?o:"solid",disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:d?.disableAnimation)!=null?s:!1,isDisabled:A=(a=u?.isDisabled)!=null?a:!1,isIconOnly:I=(l=u?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:w,onClick:P,..._}=e,B=g||"button",L=typeof B=="string",K=zt(p),z=(c=k||d?.disableRipple)!=null?c:M,{isFocusVisible:W,isFocused:U,focusProps:ee}=gn({autoFocus:$}),Z=A||T,R=f.useMemo(()=>kx({size:V,color:F,variant:b,radius:E,fullWidth:D,isDisabled:Z,isInGroup:h,disableAnimation:M,isIconOnly:I,className:S}),[V,F,b,E,D,Z,h,I,M,S]),{onPress:he,onClear:fe,ripples:Q}=qm(),se=f.useCallback(Ee=>{z||Z||M||K.current&&he(Ee)},[z,Z,M,K,he]),{buttonProps:q,isPressed:Y}=Hm({elementType:g,isDisabled:Z,onPress:Fr(w,se),onClick:P,..._},K),{isHovered:de,hoverProps:ae}=Tr({isDisabled:Z}),ie=f.useCallback((Ee={})=>({"data-disabled":pe(Z),"data-focus":pe(U),"data-pressed":pe(Y),"data-focus-visible":pe(W),"data-hover":pe(de),"data-loading":pe(T),...ht(q,ee,ae,Tt(_,{enabled:L}),Tt(Ee)),className:R}),[T,Z,U,Y,L,W,de,q,ee,ae,_,R]),we=Ee=>f.isValidElement(Ee)?f.cloneElement(Ee,{"aria-hidden":!0,focusable:!1}):null,De=we(x),xe=we(v),te=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),je=f.useCallback(()=>({ripples:Q,onClear:fe}),[Q,fe]);return{Component:B,children:m,domRef:K,spinner:C,styles:R,startContent:De,endContent:xe,isLoading:T,spinnerPlacement:N,spinnerSize:te,disableRipple:z,getButtonProps:ie,getRippleProps:je,isIconOnly:I}}function tT(e){var t,r;const[n,o]=qt(e,Oi.variantKeys),i=gt(),s=(r=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,h=f.useMemo(()=>Oi({...o}),[rn(o)]),p=Be(c?.base,l),g=u||a,m=f.useMemo(()=>g&&typeof g=="string"?g:d["aria-label"]?"":"Loading",[a,g,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":m,className:h.base({class:p}),...d}),[m,h,p,d]);return{label:g,slots:h,classNames:c,variant:s,getSpinnerProps:x}}var Ym=Re((e,t)=>{const{slots:r,classNames:n,label:o,variant:i,getSpinnerProps:s}=tT({...e});return i==="wave"||i==="dots"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>y.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="simple"?y.jsxs("div",{ref:t,...s(),children:[y.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[y.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),y.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="spinner"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>y.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):y.jsxs("div",{ref:t,...s(),children:[y.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[y.jsx("i",{className:r.circle1({class:n?.circle1})}),y.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]})});Ym.displayName="HeroUI.Spinner";var rT=Ym,Xm=Re((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:i,spinner:s=y.jsx(rT,{color:"current",size:i}),spinnerPlacement:a,startContent:l,endContent:c,isLoading:u,disableRipple:d,getButtonProps:h,getRippleProps:p,isIconOnly:g}=eT({...e,ref:t});return y.jsxs(r,{ref:n,...h(),children:[l,u&&a==="start"&&s,u&&g?null:o,u&&a==="end"&&s,c,!d&&y.jsx(Zm,{...p()})]})});Xm.displayName="HeroUI.Button";var ti=Xm;function Nu(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=Nt.createContext(void 0);o.displayName=n;function i(){var s;const a=Nt.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(s=Error.captureStackTrace)==null||s.call(Error,l,i),l}return a}return[o.Provider,i,o]}function er(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}var nT=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function Lu(e){return Array.isArray(e)}function oT(e){return Lu(e)&&e.length===0}function Jm(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!Lu(e)}function iT(e){return Jm(e)&&Object.keys(e).length===0}function sT(e){return Lu(e)?oT(e):Jm(e)?iT(e):e==null||e===""}var ve=e=>e?"true":void 0;function Qm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Qm(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Se(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=Qm(r))&&(o&&(o+=" "),o+=n);return o}var aT=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t},eg=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function lT(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function yn(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}var tg={};function rg(e,t,...r){const o=`[Hero UI]${` [${t}]`}: ${e}`;if(!(typeof console>"u")&&!tg[o]&&(tg[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Fu(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var ng=new Map;function uT(e,t){if(e===t)return e;let r=ng.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=ng.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ve(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Fu(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=Se(i,s):o==="id"&&i&&s?t.id=uT(i,s):t[o]=s!==void 0?s:i}}return t}function Vu(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const i=og(o,t);return r||(r=typeof i=="function"),i});if(r)return()=>{n.forEach((o,i)=>{typeof o=="function"?o?.():og(e[i],null)})}}}function og(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}var[cT,As]=Nu({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),ig=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a,bodyId:l,setBodyMounted:c}=As(),u=er(t),d=r||"div";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),y.jsx(d,{ref:u,className:s.body({class:Se(a?.body,o)}),id:l,...i,children:n})});ig.displayName="HeroUI.ModalBody";var dT=ig,ri={ease:[.36,.66,.4,1]},ju={scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ri.ease}},exit:{opacity:0,transition:{duration:.3,ease:ri.ease}}}},fT={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ri.ease},opacity:{duration:.4,ease:ri.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ri.ease}}};const We=typeof document<"u"?f.useLayoutEffect:()=>{};var zu;const pT=(zu=f.useInsertionEffect)!==null&&zu!==void 0?zu:We;function nt(e){const t=f.useRef(null);return pT(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function hT(e){let[t,r]=f.useState(e),n=f.useRef(null),o=nt(()=>{if(!n.current)return;let s=n.current.next();if(s.done){n.current=null;return}t===s.value?o():r(s.value)});We(()=>{n.current&&o()});let i=nt(s=>{n.current=s(t),o()});return[t,i]}let mT=!!(typeof window<"u"&&window.document&&window.document.createElement),xo=new Map,ni;typeof FinalizationRegistry<"u"&&(ni=new FinalizationRegistry(e=>{xo.delete(e)}));function Bt(e){let[t,r]=f.useState(e),n=f.useRef(null),o=pf(t),i=f.useRef(null);if(ni&&ni.register(i,o),mT){const s=xo.get(o);s&&!s.includes(n)?s.push(n):xo.set(o,[n])}return We(()=>{let s=o;return()=>{ni&&ni.unregister(i),xo.delete(s)}},[o]),f.useEffect(()=>{let s=n.current;return s&&r(s),()=>{s&&(n.current=null)}}),o}function gT(e,t){if(e===t)return e;let r=xo.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=xo.get(t);return n?(n.forEach(o=>o.current=e),e):t}function xn(e=[]){let t=Bt(),[r,n]=hT(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return We(o,[t,o,...e]),r}function wn(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Ne=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Rt=e=>e&&"window"in e&&e.window===e?e:Ne(e).defaultView||window;function vT(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function bT(e){return vT(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function Xe(e,t){if(!on())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:bT(r)?r=r.host:r=r.parentNode}return!1}const It=(e=document)=>{var t;if(!on())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Le(e){return on()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class yT{get currentNode(){return this._currentNode}set currentNode(t){if(!Xe(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const s=n,a=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=o,this._currentSetFor.add(a),n=o=s.host}else n=n.parentNode;const i=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(i),i.currentNode=o,this._currentSetFor.add(i),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Xe(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let i=this.nextNode();return i&&(this.currentNode=i),i}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let i;if(typeof this.filter=="function"?i=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(i=this.filter.acceptNode(r)),i===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let s=this.lastChild();return s&&(this.currentNode=s),s}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=s=>{if(s.nodeType===Node.ELEMENT_NODE){const l=s.shadowRoot;if(l){const c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(s);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(s);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const i=r.shadowRoot;if(i){const s=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(s)}}}function xT(e,t,r,n){return on()?new yT(e,t,r,n):e.createTreeWalker(t,r,n)}function ze(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],s=n[o];typeof i=="function"&&typeof s=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=wn(i,s):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof s=="string"?t[o]=wf(i,s):o==="id"&&i&&s?t.id=gT(i,s):t[o]=s!==void 0?s:i}}return t}const wT=new Set(["id"]),$T=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ET=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),PT=new Set(["dir","lang","hidden","inert","translate"]),sg=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),ST=/^(data-.*)$/;function Wr(e,t={}){let{labelable:r,isLink:n,global:o,events:i=o,propNames:s}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(wT.has(l)||r&&$T.has(l)||n&&ET.has(l)||o&&PT.has(l)||i&&sg.has(l)||l.endsWith("Capture")&&sg.has(l.slice(0,-7))||s?.has(l)||ST.test(l))&&(a[l]=e[l]);return a}function lr(e){if(CT())e.focus({preventScroll:!0});else{let t=TT(e);e.focus(),kT(t)}}let Os=null;function CT(){if(Os==null){Os=!1;try{document.createElement("div").focus({get preventScroll(){return Os=!0,!0}})}catch{}}return Os}function TT(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function kT(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Ns(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Bu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function kr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Ur=kr(function(){return Bu(/^Mac/i)}),IT=kr(function(){return Bu(/^iPhone/i)}),ag=kr(function(){return Bu(/^iPad/i)||Ur()&&navigator.maxTouchPoints>1}),Ls=kr(function(){return IT()||ag()}),_T=kr(function(){return Ur()||Ls()}),Ru=kr(function(){return Ns(/AppleWebKit/i)&&!Ku()}),Ku=kr(function(){return Ns(/Chrome/i)}),Wu=kr(function(){return Ns(/Android/i)}),MT=kr(function(){return Ns(/Firefox/i)}),DT=f.createContext({isNative:!0,open:OT,useHref:e=>e});function Uu(){return f.useContext(DT)}function $n(e,t,r=!0){var n,o;let{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}=t;MT()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Ur()?i=!0:s=!0);let c=Ru()&&Ur()&&!ag()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:s,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:i,ctrlKey:s,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});$n.isOpening=r,lr(e),e.dispatchEvent(c),$n.isOpening=!1}$n.isOpening=!1;function AT(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function OT(e,t){AT(e,r=>$n(r,t))}function NT(e){let t=Uu();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Hr=new Map,Hu=new Set;function lg(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Hr.get(n.target);o||(o=new Set,Hr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Hr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Hr.delete(n.target)),Hr.size===0)){for(let i of Hu)i();Hu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?lg():document.addEventListener("DOMContentLoaded",lg));function LT(){for(const[e]of Hr)"isConnected"in e&&!e.isConnected&&Hr.delete(e)}function ug(e){requestAnimationFrame(()=>{LT(),Hr.size===0?e():Hu.add(e)})}function Fs(){let e=f.useRef(new Map),t=f.useCallback((o,i,s,a)=>{let l=a?.once?(...c)=>{e.current.delete(s),s(...c)}:s;e.current.set(s,{type:i,eventTarget:o,fn:l,options:a}),o.addEventListener(i,l,a)},[]),r=f.useCallback((o,i,s,a)=>{var l;let c=((l=e.current.get(s))===null||l===void 0?void 0:l.fn)||s;o.removeEventListener(i,c,a),e.current.delete(s)},[]),n=f.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Gu(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Bt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function cg(e,t){const r=f.useRef(!0),n=f.useRef(null);We(()=>(r.current=!0,()=>{r.current=!1}),[]),We(()=>{r.current?r.current=!1:(!n.current||t.some((o,i)=>!Object.is(o,n[i])))&&e(),n.current=t},t)}function FT(){return typeof window.ResizeObserver<"u"}function dg(e){const{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t?.current;if(o)if(FT()){const i=new window.ResizeObserver(s=>{s.length&&n()});return i.observe(o,{box:r}),()=>{o&&i.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function fg(e,t){We(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function wo(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function pg(e,t){let r=e;for(wo(r,t)&&(r=r.parentElement);r&&!wo(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function VT(e,t){const r=[];for(;e&&e!==document.documentElement;)wo(e,t)&&r.push(e),e=e.parentElement;return r}function $o(e){return Ur()?e.metaKey:e.ctrlKey}const jT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zu(e){return e instanceof HTMLInputElement&&!jT.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let zT=0;const qu=new Map;function BT(e){let[t,r]=f.useState();return We(()=>{if(!e)return;let n=qu.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${zT++}`;r(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),n={refCount:0,element:i},qu.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),qu.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Vs(e,t,r,n){let o=nt(r),i=r==null;f.useEffect(()=>{if(i||!e.current)return;let s=e.current;return s.addEventListener(t,o,n),()=>{s.removeEventListener(t,o,n)}},[e,t,n,i,o])}function hg(e,t){let r=mg(e,t,"left"),n=mg(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,s=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:h,scrollPaddingLeft:p}=getComputedStyle(e),{scrollMarginTop:g,scrollMarginRight:m,scrollMarginBottom:x,scrollMarginLeft:v}=getComputedStyle(t),$=s+parseInt(c,10),S=a+parseInt(l,10),C=$+e.clientWidth,T=S+e.clientHeight,k=parseInt(u,10)||0,D=parseInt(h,10)||0,E=parseInt(d,10)||0,V=parseInt(p,10)||0,F=parseInt(g,10)||0,b=parseInt(x,10)||0,M=parseInt(m,10)||0,A=parseInt(v,10)||0,I=r-A,N=r+o+M,w=n-F,P=n+i+b,_=s+parseInt(c,10)+V,B=C-E,L=a+parseInt(l,10)+k,K=T-D;if((I>_||N<B)&&(I<=s+V?s=I-parseInt(c,10)-V:N>C-E&&(s+=N-C+E)),(w>L||P<K)&&(w<=S+k?a=w-parseInt(l,10)-k:P>T-D&&(a+=P-T+D)),process.env.NODE_ENV==="test"){e.scrollLeft=s,e.scrollTop=a;return}e.scrollTo({left:s,top:a})}function mg(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function gg(e,t){if(e&&document.contains(e)){let s=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(s).overflow==="hidden")&&!Ku()){var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,i;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}else{let l=VT(e);for(let c of l)hg(c,e)}}}function Yu(e){return e.pointerType===""&&e.isTrusted?!0:Wu()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function RT(e){return!Wu()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function vg(e,t,r){let n=nt(()=>{r&&r(t)});f.useEffect(()=>{var o;let i=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return i?.addEventListener("reset",n),()=>{i?.removeEventListener("reset",n)}},[e,n])}const KT="react-aria-clear-focus",WT="react-aria-focus",UT=typeof Element<"u"&&"checkVisibility"in Element.prototype;function HT(e){const t=Rt(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:s,visibility:a}=i(e);o=s!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function GT(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Xu(e,t){return UT?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&HT(e)&>(e,t)&&(!e.parentElement||Xu(e.parentElement,e))}const Ju=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],ZT=Ju.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Ju.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const qT=Ju.join(':not([hidden]):not([tabindex="-1"]),');function bg(e){return e.matches(ZT)&&Xu(e)&&!yg(e)}function YT(e){return e.matches(qT)&&Xu(e)&&!yg(e)}function yg(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}const hr={top:"top",bottom:"top",left:"left",right:"left"},js={top:"bottom",bottom:"top",left:"right",right:"left"},XT={top:"left",left:"top"},Qu={top:"height",left:"width"},xg={width:"totalWidth",height:"totalHeight"},zs={};let yt=typeof document<"u"?window.visualViewport:null;function wg(e){let t=0,r=0,n=0,o=0,i=0,s=0,a={};var l;let c=((l=yt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;n=g.clientWidth,o=g.clientHeight;var u;t=(u=yt?.width)!==null&&u!==void 0?u:n;var d;r=(d=yt?.height)!==null&&d!==void 0?d:o,a.top=g.scrollTop||e.scrollTop,a.left=g.scrollLeft||e.scrollLeft,yt&&(i=yt.offsetTop,s=yt.offsetLeft)}else({width:t,height:r,top:i,left:s}=Eo(e,!1)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Ru()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var h;i=(h=yt?.pageTop)!==null&&h!==void 0?h:0;var p;s=(p=yt?.pageLeft)!==null&&p!==void 0?p:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:i,left:s}}function JT(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function $g(e,t,r,n,o,i,s){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[Qu[e]],u=n.scroll[hr[e]]+i,d=c+n.scroll[hr[e]]-i,h=t-l+s[e]-n[hr[e]],p=t-l+r+s[e]-n[hr[e]];return h<u?u-h:p>d?Math.max(d-p,u-h):0}function QT(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Eg(e){if(zs[e])return zs[e];let[t,r]=e.split(" "),n=hr[t]||"right",o=XT[n];hr[r]||(r="center");let i=Qu[n],s=Qu[o];return zs[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:i,crossSize:s},zs[e]}function ec(e,t,r,n,o,i,s,a,l,c){let{placement:u,crossPlacement:d,axis:h,crossAxis:p,size:g,crossSize:m}=n,x={};var v;x[p]=(v=e[p])!==null&&v!==void 0?v:0;var $,S,C,T;d==="center"?x[p]+=((($=e[m])!==null&&$!==void 0?$:0)-((S=r[m])!==null&&S!==void 0?S:0))/2:d!==p&&(x[p]+=((C=e[m])!==null&&C!==void 0?C:0)-((T=r[m])!==null&&T!==void 0?T:0)),x[p]+=i;const k=e[p]-r[m]+l+c,D=e[p]+e[m]-l-c;if(x[p]=Pr(x[p],k,D),u===h){const E=a?s[g]:t[xg[g]];x[js[h]]=Math.floor(E-e[h]+o)}else x[h]=Math.floor(e[h]+e[g]+o);return x}function e4(e,t,r,n,o,i,s,a){const l=n?r.height:t[xg.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-s);var d,h,p,g,m,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((h=o.top)!==null&&h!==void 0?h:0)+((p=o.bottom)!==null&&p!==void 0?p:0)+i)):Math.max(0,u+s-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+i));return Math.min(t.height-i*2,v)}function Pg(e,t,r,n,o,i){let{placement:s,axis:a,size:l}=i;var c,u;if(s===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[js[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[js[a]]-o)}function t4(e,t,r,n,o,i,s,a,l,c,u,d,h,p,g,m){let x=Eg(e),{size:v,crossAxis:$,crossSize:S,placement:C,crossPlacement:T}=x,k=ec(t,a,r,x,u,d,c,h,g,m),D=u,E=Pg(a,c,t,o,i+u,x);if(s&&n[v]>E){let R=Eg(`${js[C]} ${T}`),he=ec(t,a,r,R,u,d,c,h,g,m);Pg(a,c,t,o,i+u,R)>E&&(x=R,k=he,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=$g($,k[$],r[S],a,l,i,c);k[$]+=F;let b=e4(k,a,c,h,o,i,r.height,V);p&&p<b&&(b=p),r.height=Math.min(r.height,b),k=ec(t,a,r,x,D,d,c,h,g,m),F=$g($,k[$],r[S],a,l,i,c),k[$]+=F;let M={},A=t[$]-k[$]-o[hr[$]],I=A+.5*t[S];const N=g/2+m;var w,P,_,B;const L=hr[$]==="left"?((w=o.left)!==null&&w!==void 0?w:0)+((P=o.right)!==null&&P!==void 0?P:0):((_=o.top)!==null&&_!==void 0?_:0)+((B=o.bottom)!==null&&B!==void 0?B:0),K=r[S]-L-g/2-m,z=t[$]+g/2-(k[$]+o[hr[$]]),W=t[$]+t[S]-g/2-(k[$]+o[hr[$]]),U=Pr(I,z,W);M[$]=Pr(U,N,K),{placement:C,crossPlacement:T}=x,g?A=M[$]:T==="right"?A+=t[S]:T==="center"&&(A+=t[S]/2);let ee=C==="left"||C==="top"?r[v]:0,Z={x:C==="top"||C==="bottom"?A:ee,y:C==="left"||C==="right"?A:ee};return{position:k,maxHeight:b,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:C,triggerAnchorPoint:Z}}function r4(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:i,shouldFlip:s,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:h=0}=e,p=n instanceof HTMLElement?n4(n):document.documentElement,g=p===document.documentElement;const m=window.getComputedStyle(p).position;let x=!!m&&m!=="static",v=g?Eo(r,!1):Sg(r,p,!1);if(!g){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=Eo(n,!0),S=QT(n);var C,T;$.width+=((C=S.left)!==null&&C!==void 0?C:0)+((T=S.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=S.top)!==null&&k!==void 0?k:0)+((D=S.bottom)!==null&&D!==void 0?D:0);let E=JT(o),V=wg(a),F=wg(p),b=a.tagName==="BODY"?Eo(p,!1):Sg(p,a,!1);return p.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),t4(t,v,$,E,S,i,s,V,F,b,l,c,x,u,d,h)}function tc(e,t){let{top:r,left:n,width:o,height:i}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,i=e.offsetHeight),{top:r,left:n,width:o,height:i}}function Eo(e,t){let{top:r,left:n,width:o,height:i}=tc(e,t),{scrollTop:s,scrollLeft:a,clientTop:l,clientLeft:c}=document.documentElement;return{top:r+s-l,left:n+a-c,width:o,height:i}}function Sg(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=tc(e,r);else{o=Eo(e,r);let i=Eo(t,r),s=window.getComputedStyle(t);i.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=i.top,o.left-=i.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function n4(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Cg(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Cg(t);)t=t.parentElement;return t||document.documentElement}function Cg(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Tg=new WeakMap;function o4(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=i=>{let s=i.target;if(!t.current||s instanceof Node&&!s.contains(t.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let a=n||Tg.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}const i4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),s4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function a4(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return i4.has(r.script)}let t=e.split("-")[0];return s4.has(t)}const l4=Symbol.for("react-aria.i18n.locale");function kg(){let e=typeof window<"u"&&window[l4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:a4(e)?"rtl":"ltr"}}let rc=kg(),oi=new Set;function Ig(){rc=kg();for(let e of oi)e(rc)}function u4(){let e=Hn(),[t,r]=f.useState(rc);return f.useEffect(()=>(oi.size===0&&window.addEventListener("languagechange",Ig),oi.add(r),()=>{oi.delete(r),oi.size===0&&window.removeEventListener("languagechange",Ig)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const c4=f.createContext(null);function ii(){let e=u4();return f.useContext(c4)||e}const _g=new WeakMap;function d4(e){let t=_g.get(e);return t||(t=new Bi(e),_g.set(e,t)),t}function f4(e,t){return t&&Bi.getGlobalDictionaryForPackage(t)||d4(e)}function Mg(e,t){let{locale:r}=ii(),n=f4(e,t);return f.useMemo(()=>new pw(r,n),[r,n])}let nc=new Map;function Dg(e){let{locale:t}=ii(),r=t+(e?Object.entries(e).sort((o,i)=>o[0]<i[0]?-1:1).join():"");if(nc.has(r))return nc.get(r);let n=new Intl.Collator(t,e);return nc.set(r,n),n}let at=typeof document<"u"?window.visualViewport:null;function p4(e){let{direction:t}=ii(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:i,scrollRef:s=o,placement:a="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:m,maxHeight:x,arrowBoundaryOffset:v=0}=e,[$,S]=f.useState(null),C=[p,a,o.current,n.current,i?.current,s.current,l,c,u,d,h,g,t,x,v,r],T=f.useRef(at?.scale);f.useEffect(()=>{g&&(T.current=at?.scale)},[g]);let k=f.useCallback(()=>{if(p===!1||!g||!o.current||!n.current||!u||at?.scale!==T.current)return;let M=null;if(s.current&&s.current.contains(document.activeElement)){var A;let L=(A=document.activeElement)===null||A===void 0?void 0:A.getBoundingClientRect(),K=s.current.getBoundingClientRect();var I;if(M={type:"top",offset:((I=L?.top)!==null&&I!==void 0?I:0)-K.top},M.offset>K.height/2){M.type="bottom";var N;M.offset=((N=L?.bottom)!==null&&N!==void 0?N:0)-K.bottom}}let w=o.current;if(!x&&o.current){var P;w.style.top="0px",w.style.bottom="";var _;w.style.maxHeight=((_=(P=window.visualViewport)===null||P===void 0?void 0:P.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let B=r4({placement:m4(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:s.current||o.current,padding:l,shouldFlip:c,boundaryElement:u,offset:d,crossOffset:h,maxHeight:x,arrowSize:r??(i?.current?tc(i.current,!0).width:0),arrowBoundaryOffset:v});if(B.position){if(w.style.top="",w.style.bottom="",w.style.left="",w.style.right="",Object.keys(B.position).forEach(L=>w.style[L]=B.position[L]+"px"),w.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",M&&document.activeElement&&s.current){let L=document.activeElement.getBoundingClientRect(),K=s.current.getBoundingClientRect(),z=L[M.type]-K[M.type];s.current.scrollTop+=z-M.offset}S(B)}},C);We(k,C),h4(k),dg({ref:o,onResize:k}),dg({ref:n,onResize:k});let D=f.useRef(!1);We(()=>{let M,A=()=>{D.current=!0,clearTimeout(M),M=setTimeout(()=>{D.current=!1},500),k()},I=()=>{D.current&&A()};return at?.addEventListener("resize",A),at?.addEventListener("scroll",I),()=>{at?.removeEventListener("resize",A),at?.removeEventListener("scroll",I)}},[k]);let E=f.useCallback(()=>{D.current||m?.()},[m,D]);o4({triggerRef:n,isOpen:g,onClose:m&&E});var V,F,b;return{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$?.position,maxHeight:(V=$?.maxHeight)!==null&&V!==void 0?V:"100vh"}},placement:(F=$?.placement)!==null&&F!==void 0?F:null,triggerAnchorPoint:(b=$?.triggerAnchorPoint)!==null&&b!==void 0?b:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$?.arrowOffsetLeft,top:$?.arrowOffsetTop}},updatePosition:k}}function h4(e){We(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function m4(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function oc(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Ag(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function Og(e){let t=f.useRef({isFocused:!1,observer:null});We(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=nt(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,i=s=>{if(t.current.isFocused=!1,o.disabled){let a=oc(s);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Bs=!1;function Ng(e){for(;e&&!bg(e);)e=e.parentElement;let t=Rt(e),r=t.document.activeElement;if(!r||r===e)return;Bs=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},i=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,lr(r),l()))},s=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,lr(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",i,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",s,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",i,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",s,!0),Bs=!1,n=!1},c=requestAnimationFrame(l);return l}let Po="default",ic="",Rs=new WeakMap;function Lg(e){if(Ls()){if(Po==="default"){const t=Ne(e);ic=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";Rs.set(e,e.style[t]),e.style[t]="none"}}function sc(e){if(Ls()){if(Po!=="disabled")return;Po="restoring",setTimeout(()=>{ug(()=>{if(Po==="restoring"){const t=Ne(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=ic||""),ic="",Po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Rs.has(e)){let t=Rs.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Rs.delete(e)}}const ac=f.createContext({register:()=>{}});ac.displayName="PressResponderContext";function g4(e){let t=f.useContext(ac);if(t){let{register:r,...n}=t;e=ze(n,e),r()}return fg(t,e.ref),e}var Ks=new WeakMap;class Ws{continuePropagation(){gs(this,Ks,!1)}get shouldStopPropagation(){return Vh(this,Ks)}constructor(t,r,n,o){bf(this,Ks,{writable:!0,value:void 0}),gs(this,Ks,!0);var i;let s=(i=o?.target)!==null&&i!==void 0?i:n.currentTarget;const a=s?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const Fg=Symbol("linkClicked"),Vg="react-aria-pressable-style",jg="data-react-aria-pressable";function Ir(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,onClick:s,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:h,...p}=g4(e),[g,m]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=Fs(),S=nt((b,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new Ws("pressstart",M,b);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,m(!0),I}),C=nt((b,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new Ws("pressend",M,b);o(w),N=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&A&&!a){let w=new Ws("press",M,b);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=nt((b,M)=>{let A=x.current;if(a)return!1;if(i){A.isTriggeringEvent=!0;let I=new Ws("pressup",M,b);return i(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=nt(b=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&C(En(M.target,b),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||sc(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=nt(b=>{u&&k(b)}),E=nt(b=>{a||s?.(b)}),V=nt((b,M)=>{if(!a&&s){let A=new MouseEvent("click",b);Ag(A,M),s(oc(A))}}),F=f.useMemo(()=>{let b=x.current,M={onKeyDown(I){if(uc(I.nativeEvent,I.currentTarget)&&Xe(I.currentTarget,Le(I.nativeEvent))){var N;Rg(Le(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!b.isPressed&&!I.repeat){b.target=I.currentTarget,b.isPressed=!0,b.pointerType="keyboard",w=S(I,"keyboard");let P=I.currentTarget,_=B=>{uc(B,P)&&!B.repeat&&Xe(P,Le(B))&&b.target&&T(En(b.target,B),"keyboard")};v(Ne(I.currentTarget),"keyup",wn(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&Ur()&&((N=b.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(b.metaKeyEvents=new Map)},onClick(I){if(!(I&&!Xe(I.currentTarget,Le(I.nativeEvent)))&&I&&I.button===0&&!b.isTriggeringEvent&&!$n.isOpening){let N=!0;if(a&&I.preventDefault(),!b.ignoreEmulatedMouseEvents&&!b.isPressed&&(b.pointerType==="virtual"||Yu(I.nativeEvent))){let w=S(I,"virtual"),P=T(I,"virtual"),_=C(I,"virtual");E(I),N=w&&P&&_}else if(b.isPressed&&b.pointerType!=="keyboard"){let w=b.pointerType||I.nativeEvent.pointerType||"virtual",P=T(En(I.currentTarget,I),w),_=C(En(I.currentTarget,I),w,!0);N=P&&_,b.isOverTarget=!1,E(I),k(I)}b.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(b.isPressed&&b.target&&uc(I,b.target)){var w;Rg(Le(I),I.key)&&I.preventDefault();let _=Le(I),B=Xe(b.target,Le(I));C(En(b.target,I),"keyboard",B),B&&V(I,b.target),$(),I.key!=="Enter"&&lc(b.target)&&Xe(b.target,_)&&!I[Fg]&&(I[Fg]=!0,$n(b.target,I,!1)),b.isPressed=!1,(w=b.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=b.metaKeyEvents)===null||N===void 0)&&N.size)){var P;let _=b.metaKeyEvents;b.metaKeyEvents=void 0;for(let B of _.values())(P=b.target)===null||P===void 0||P.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(RT(w.nativeEvent)){b.pointerType="virtual";return}b.pointerType=w.pointerType;let P=!0;if(!b.isPressed){b.isPressed=!0,b.isOverTarget=!0,b.activePointerId=w.pointerId,b.target=w.currentTarget,d||Lg(b.target),P=S(w,b.pointerType);let _=Le(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(Ne(w.currentTarget),"pointerup",I,!1),v(Ne(w.currentTarget),"pointercancel",N,!1)}P&&w.stopPropagation()},M.onMouseDown=w=>{if(Xe(w.currentTarget,Le(w.nativeEvent))&&w.button===0){if(c){let P=Ng(w.target);P&&b.disposables.push(P)}w.stopPropagation()}},M.onPointerUp=w=>{!Xe(w.currentTarget,Le(w.nativeEvent))||b.pointerType==="virtual"||w.button===0&&!b.isPressed&&T(w,b.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===b.activePointerId&&b.target&&!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,S(En(b.target,w),b.pointerType))},M.onPointerLeave=w=>{w.pointerId===b.activePointerId&&b.target&&b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,C(En(b.target,w),b.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===b.activePointerId&&b.isPressed&&w.button===0&&b.target){if(Xe(b.target,Le(w))&&b.pointerType!=null){let P=!1,_=setTimeout(()=>{b.isPressed&&b.target instanceof HTMLElement&&(P?k(w):(lr(b.target),b.target.click()))},80);v(w.currentTarget,"click",()=>P=!0,!0),b.disposables.push(()=>clearTimeout(_))}else k(w);b.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(b.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(b.isPressed=!0,b.isOverTarget=!0,b.target=w.currentTarget,b.pointerType=Yu(w.nativeEvent)?"virtual":"mouse",Bn.flushSync(()=>S(w,b.pointerType))&&w.stopPropagation(),c){let _=Ng(w.target);_&&b.disposables.push(_)}v(Ne(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!0,P=S(w,b.pointerType)),P&&w.stopPropagation()},M.onMouseLeave=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;let P=!0;b.isPressed&&!b.ignoreEmulatedMouseEvents&&b.pointerType!=null&&(b.isOverTarget=!1,P=C(w,b.pointerType,!1),D(w)),P&&w.stopPropagation()},M.onMouseUp=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&!b.ignoreEmulatedMouseEvents&&w.button===0&&!b.isPressed&&T(w,b.pointerType||"mouse")};let I=w=>{if(w.button===0){if(b.ignoreEmulatedMouseEvents){b.ignoreEmulatedMouseEvents=!1;return}b.target&&b.target.contains(w.target)&&b.pointerType!=null||k(w),b.isOverTarget=!1}};M.onTouchStart=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;let P=v4(w.nativeEvent);if(!P)return;b.activePointerId=P.identifier,b.ignoreEmulatedMouseEvents=!0,b.isOverTarget=!0,b.isPressed=!0,b.target=w.currentTarget,b.pointerType="touch",d||Lg(b.target),S(Gr(b.target,w),b.pointerType)&&w.stopPropagation(),v(Rt(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=zg(w.nativeEvent,b.activePointerId),_=!0;P&&Bg(P,w.currentTarget)?!b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!0,_=S(Gr(b.target,w),b.pointerType)):b.isOverTarget&&b.pointerType!=null&&(b.isOverTarget=!1,_=C(Gr(b.target,w),b.pointerType,!1),D(Gr(b.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!Xe(w.currentTarget,Le(w.nativeEvent)))return;if(!b.isPressed){w.stopPropagation();return}let P=zg(w.nativeEvent,b.activePointerId),_=!0;P&&Bg(P,w.currentTarget)&&b.pointerType!=null?(T(Gr(b.target,w),b.pointerType),_=C(Gr(b.target,w),b.pointerType),V(w.nativeEvent,b.target)):b.isOverTarget&&b.pointerType!=null&&(_=C(Gr(b.target,w),b.pointerType,!1)),_&&w.stopPropagation(),b.isPressed=!1,b.activePointerId=null,b.isOverTarget=!1,b.ignoreEmulatedMouseEvents=!0,b.target&&!d&&sc(b.target),$()},M.onTouchCancel=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&(w.stopPropagation(),b.isPressed&&k(Gr(b.target,w)))};let N=w=>{b.isPressed&&Xe(Le(w),b.target)&&k({currentTarget:b.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{Xe(w.currentTarget,Le(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,C,S,T,E,V]);return f.useEffect(()=>{if(!h||process.env.NODE_ENV==="test")return;const b=Ne(h.current);if(!b||!b.head||b.getElementById(Vg))return;const M=b.createElement("style");M.id=Vg,M.textContent=`
|
|
416
|
+
${Us}`;function Lf(e){const{col:t,ranges:r,values:n}=Bw(e),o=e.operator==="and";if(o&&r)return r.map(s=>({col:t,ranges:[s]}));if(o&&n){if(n.length===0)return[{col:t,values:n}];const s=n[0];if(typeof s=="string")return n.map(i=>({col:t,values:[i]}));if(typeof s=="number")return n.map(i=>({col:t,values:[i]}));if(typeof s=="boolean")return n.map(i=>({col:t,values:[i]}))}return[{col:t,ranges:r,values:n}]}function Bw({col:e,values:t,valueType:r}){return t.length===0?{col:e,values:t}:r==="boolean"?{col:e,values:sf(t)}:(r==="integer"||r==="decimal")&&t.every(of)?{col:e,ranges:t.map(qt)}:(r==="integer"||r==="decimal")&&t.every(nf)?{col:e,values:t.map(af)}:r==="string"?{col:e,values:t}:t.every(kx)?{col:e,values:sf(t)}:t.every(of)?{col:e,ranges:t.map(qt)}:t.every(nf)?{col:e,values:t.map(af)}:{col:e,values:t}}function Rw({key:e,col:t,type:r,filter:n=!1,options:o=[]}){const[{values:s,ranges:i}]=Lf({col:t,values:o});switch(r){case"max":return[{key:`max_${e}`,metric:to.Max,col:t}];case"min":return[{key:`min_${e}`,metric:to.Min,col:t}];case"minMax":return[{key:`min_${e}`,metric:to.Min,col:t},{key:`max_${e}`,metric:to.Max,col:t}];case"values":return i?[{key:e,col:t,filter:n,ranges:i}]:s&&s.length>0?[{key:e,col:t,filter:n,include:s}]:[{key:e,col:t,filter:n}]}}class Kw{_id;_limit;_offset;_sort;_groupBy;_search;_wheres;_aggregations;constructor(t){this._id=t,this._offset=0,this._sort=[],this._wheres=[],this._aggregations=[]}sort(t){return this._sort=Array.isArray(t)?t:[t],this}limit(t){return this._limit=t,this}where(t){return this._wheres=[...this._wheres,...Lf(t)],this}aggregation(t){return this._aggregations=[...this._aggregations,...Rw(t)],this}page(t){if(!this._limit)throw new Error("Cannot paginate without a limit");return this._offset=(t-1)*this._limit,this}groupBy(t){return this._groupBy=t,this}search(t){return this._search=t,this}serialize(){return{limit:this._limit,offset:this._offset,sort:this._sort,where:this._wheres,collapse:this._groupBy?{field:this._groupBy}:void 0,search:this._search,aggs:this._groupBy?[...this._aggregations,{key:"count",metric:to.Cardinality,col:this._groupBy}]:this._aggregations}}}function Ww({filterOptions:e,filterValues:t,limit:r=10,currentProvider:n}){const o=new Kw;o.limit(r);const s=Yn(t,"sorteren");return s&&o.sort(s),t.forEach(i=>{const a=qn(e,i.slug);if(!a)return;let l;if(["range","min","max"].includes(a.type)&&Array.isArray(i.value)&&i.value.length===2){const[c,u]=i.value;l=[`${c}-${u}`]}else l=(Array.isArray(i.value)?i.value:[i.value]).map(String);o.where({col:a.column,values:l,valueType:a.valueType,operator:a.operator})}),n&&o.where({col:"current_provider",values:[n]}),o}function Hs(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=At.createContext(void 0);o.displayName=n;function s(){var i;const a=At.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,s),l}return a}return[o.Provider,s,o]}function Uw(e){return{UNSAFE_getDOMNode(){return e.current}}}function zt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}function Hw(e,t){if(e!=null){if(xx(e)){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function Ff(...e){return t=>{e.forEach(r=>Hw(r,t))}}function Gw(){const e=()=>()=>{};return At.useSyncExternalStore(e,()=>!0,()=>!1)}var Zw=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),qw=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),Vf=/^(data-.*)$/,Yw=/^(aria-.*)$/,Gs=/^(on[A-Z].*)$/;function ct(e,t={}){let{labelable:r=!0,enabled:n=!0,propNames:o,omitPropNames:s,omitEventNames:i,omitDataProps:a,omitEventProps:l}=t,c={};if(!n)return e;for(const u in e)s?.has(u)||i?.has(u)&&Gs.test(u)||Gs.test(u)&&!qw.has(u)||a&&Vf.test(u)||l&&Gs.test(u)||(Object.prototype.hasOwnProperty.call(e,u)&&(Zw.has(u)||r&&Yw.test(u)||o?.has(u)||Vf.test(u))||Gs.test(u))&&(c[u]=e[u]);return c}function sl({Component:e,props:t,renderCustom:r}){return r&&typeof r=="function"?r(t):At.createElement(e,t)}var[q8,gt]=Hs({name:"ProviderContext",strict:!1});const Xw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Jw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function Qw(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return Xw.has(r.script)}let t=e.split("-")[0];return Jw.has(t)}const Zs={prefix:String(Math.round(Math.random()*1e10)),current:0},jf=f.createContext(Zs),e$=f.createContext(!1);let t$=!!(typeof window<"u"&&window.document&&window.document.createElement),il=new WeakMap;function r$(e=!1){let t=f.useContext(jf),r=f.useRef(null);if(r.current===null&&!e){var n,o;let s=(o=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(n=o.ReactCurrentOwner)===null||n===void 0?void 0:n.current;if(s){let i=il.get(s);i==null?il.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==i.state&&(t.current=i.id,il.delete(s))}r.current=++t.current}return r.current}function n$(e){let t=f.useContext(jf);t===Zs&&!t$&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=r$(!!e),n=t===Zs&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${n}-${r}`}function o$(e){let t=f.useId(),[r]=f.useState(ro()),n=r||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Zs.prefix}`;return e||`${n}-${t}`}const s$=typeof f.useId=="function"?o$:n$;function i$(){return!1}function a$(){return!0}function l$(e){return()=>{}}function ro(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(l$,i$,a$):f.useContext(e$)}const u$=Symbol.for("react-aria.i18n.locale");function zf(){let e=typeof window<"u"&&window[u$]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:Qw(e)?"rtl":"ltr"}}let al=zf(),Vo=new Set;function Bf(){al=zf();for(let e of Vo)e(al)}function c$(){let e=ro(),[t,r]=f.useState(al);return f.useEffect(()=>(Vo.size===0&&window.addEventListener("languagechange",Bf),Vo.add(r),()=>{Vo.delete(r),Vo.size===0&&window.removeEventListener("languagechange",Bf)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const d$=f.createContext(null);function jo(){let e=c$();return f.useContext(d$)||e}const f$=Symbol.for("react-aria.i18n.locale"),p$=Symbol.for("react-aria.i18n.strings");let no;class qs{getStringForLocale(t,r){let o=this.getStringsForLocale(r)[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}getStringsForLocale(t){let r=this.strings[t];return r||(r=h$(t,this.strings,this.defaultLocale),this.strings[t]=r),r}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let r=window[f$];if(no===void 0){let o=window[p$];if(!o)return null;no={};for(let s in o)no[s]=new qs({[r]:o[s]},r)}let n=no?.[t];if(!n)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return n}constructor(t,r="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,n])=>n)),this.defaultLocale=r}}function h$(e,t,r="en-US"){if(t[e])return t[e];let n=m$(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function m$(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Rf=new Map,Kf=new Map;class g${format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let s=this.locale+":"+n,i=Rf.get(s);i||(i=new Intl.PluralRules(this.locale,{type:n}),Rf.set(s,i));let a=i.select(t);return o=r[a]||r.other,typeof o=="function"?o():o}number(t){let r=Kf.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Kf.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}function v$(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wf(e,t,r){v$(e,t),t.set(e,r)}const Be=typeof document<"u"?f.useLayoutEffect:()=>{};var ll;const b$=(ll=f.useInsertionEffect)!==null&&ll!==void 0?ll:Be;function Ye(e){const t=f.useRef(null);return b$(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function y$(e){let[t,r]=f.useState(e),n=f.useRef(null),o=Ye(()=>{if(!n.current)return;let i=n.current.next();if(i.done){n.current=null;return}t===i.value?o():r(i.value)});Be(()=>{n.current&&o()});let s=Ye(i=>{n.current=i(t),o()});return[t,s]}let x$=!!(typeof window<"u"&&window.document&&window.document.createElement),oo=new Map,zo;typeof FinalizationRegistry<"u"&&(zo=new FinalizationRegistry(e=>{oo.delete(e)}));function Nt(e){let[t,r]=f.useState(e),n=f.useRef(null),o=s$(t),s=f.useRef(null);if(zo&&zo.register(s,o),x$){const i=oo.get(o);i&&!i.includes(n)?i.push(n):oo.set(o,[n])}return Be(()=>{let i=o;return()=>{zo&&zo.unregister(s),oo.delete(i)}},[o]),f.useEffect(()=>{let i=n.current;return i&&r(i),()=>{i&&(n.current=null)}}),o}function w$(e,t){if(e===t)return e;let r=oo.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=oo.get(t);return n?(n.forEach(o=>o.current=e),e):t}function sn(e=[]){let t=Nt(),[r,n]=y$(t),o=f.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Be(o,[t,o,...e]),r}function an(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const Le=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Ot=e=>e&&"window"in e&&e.window===e?e:Le(e).defaultView||window;function $$(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function E$(e){return $$(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let P$=!1;function ln(){return P$}function Xe(e,t){if(!ln())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:E$(r)?r=r.host:r=r.parentNode}return!1}const Tt=(e=document)=>{var t;if(!ln())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Fe(e){return ln()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}class C${get currentNode(){return this._currentNode}set currentNode(t){if(!Xe(this.root,t))throw new Error("Cannot set currentNode to a node that is not contained by the root node.");const r=[];let n=t,o=t;for(this._currentNode=t;n&&n!==this.root;)if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const i=n,a=this._doc.createTreeWalker(i,this.whatToShow,{acceptNode:this._acceptNode});r.push(a),a.currentNode=o,this._currentSetFor.add(a),n=o=i.host}else n=n.parentNode;const s=this._doc.createTreeWalker(this.root,this.whatToShow,{acceptNode:this._acceptNode});r.push(s),s.currentNode=o,this._currentSetFor.add(s),this._walkerStack=r}get doc(){return this._doc}firstChild(){let t=this.currentNode,r=this.nextNode();return Xe(t,r)?(r&&(this.currentNode=r),r):(this.currentNode=t,null)}lastChild(){let r=this._walkerStack[0].lastChild();return r&&(this.currentNode=r),r}nextNode(){const t=this._walkerStack[0].nextNode();if(t){if(t.shadowRoot){var r;let o;if(typeof this.filter=="function"?o=this.filter(t):!((r=this.filter)===null||r===void 0)&&r.acceptNode&&(o=this.filter.acceptNode(t)),o===NodeFilter.FILTER_ACCEPT)return this.currentNode=t,t;let s=this.nextNode();return s&&(this.currentNode=s),s}return t&&(this.currentNode=t),t}else if(this._walkerStack.length>1){this._walkerStack.shift();let n=this.nextNode();return n&&(this.currentNode=n),n}else return null}previousNode(){const t=this._walkerStack[0];if(t.currentNode===t.root){if(this._currentSetFor.has(t))if(this._currentSetFor.delete(t),this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null;return null}const r=t.previousNode();if(r){if(r.shadowRoot){var n;let s;if(typeof this.filter=="function"?s=this.filter(r):!((n=this.filter)===null||n===void 0)&&n.acceptNode&&(s=this.filter.acceptNode(r)),s===NodeFilter.FILTER_ACCEPT)return r&&(this.currentNode=r),r;let i=this.lastChild();return i&&(this.currentNode=i),i}return r&&(this.currentNode=r),r}else if(this._walkerStack.length>1){this._walkerStack.shift();let o=this.previousNode();return o&&(this.currentNode=o),o}else return null}nextSibling(){return null}previousSibling(){return null}parentNode(){return null}constructor(t,r,n,o){this._walkerStack=[],this._currentSetFor=new Set,this._acceptNode=i=>{if(i.nodeType===Node.ELEMENT_NODE){const l=i.shadowRoot;if(l){const c=this._doc.createTreeWalker(l,this.whatToShow,{acceptNode:this._acceptNode});return this._walkerStack.unshift(c),NodeFilter.FILTER_ACCEPT}else{var a;if(typeof this.filter=="function")return this.filter(i);if(!((a=this.filter)===null||a===void 0)&&a.acceptNode)return this.filter.acceptNode(i);if(this.filter===null)return NodeFilter.FILTER_ACCEPT}}return NodeFilter.FILTER_SKIP},this._doc=t,this.root=r,this.filter=o??null,this.whatToShow=n??NodeFilter.SHOW_ALL,this._currentNode=r,this._walkerStack.unshift(t.createTreeWalker(r,n,this._acceptNode));const s=r.shadowRoot;if(s){const i=this._doc.createTreeWalker(s,this.whatToShow,{acceptNode:this._acceptNode});this._walkerStack.unshift(i)}}}function S$(e,t,r,n){return ln()?new C$(e,t,r,n):e.createTreeWalker(t,r,n)}function Uf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Uf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Hf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Uf(e))&&(n&&(n+=" "),n+=t);return n}function _e(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],i=n[o];typeof s=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=an(s,i):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?t[o]=Hf(s,i):o==="id"&&s&&i?t.id=w$(s,i):t[o]=i!==void 0?i:s}}return t}const T$=new Set(["id"]),k$=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),I$=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),_$=new Set(["dir","lang","hidden","inert","translate"]),Gf=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),M$=/^(data-.*)$/;function cr(e,t={}){let{labelable:r,isLink:n,global:o,events:s=o,propNames:i}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(T$.has(l)||r&&k$.has(l)||n&&I$.has(l)||o&&_$.has(l)||s&&Gf.has(l)||l.endsWith("Capture")&&Gf.has(l.slice(0,-7))||i?.has(l)||M$.test(l))&&(a[l]=e[l]);return a}function Yt(e){if(D$())e.focus({preventScroll:!0});else{let t=A$(e);e.focus(),N$(t)}}let Ys=null;function D$(){if(Ys==null){Ys=!1;try{document.createElement("div").focus({get preventScroll(){return Ys=!0,!0}})}catch{}}return Ys}function A$(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function N$(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Xs(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function ul(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Pr(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const zr=Pr(function(){return ul(/^Mac/i)}),O$=Pr(function(){return ul(/^iPhone/i)}),Zf=Pr(function(){return ul(/^iPad/i)||zr()&&navigator.maxTouchPoints>1}),Js=Pr(function(){return O$()||Zf()}),L$=Pr(function(){return zr()||Js()}),Qs=Pr(function(){return Xs(/AppleWebKit/i)&&!cl()}),cl=Pr(function(){return Xs(/Chrome/i)}),dl=Pr(function(){return Xs(/Android/i)}),F$=Pr(function(){return Xs(/Firefox/i)}),V$=f.createContext({isNative:!0,open:z$,useHref:e=>e});function fl(){return f.useContext(V$)}function un(e,t,r=!0){var n,o;let{metaKey:s,ctrlKey:i,altKey:a,shiftKey:l}=t;F$()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(zr()?s=!0:i=!0);let c=Qs()&&zr()&&!Zf()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:i,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});un.isOpening=r,Yt(e),e.dispatchEvent(c),un.isOpening=!1}un.isOpening=!1;function j$(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}function z$(e,t){j$(e,r=>un(r,t))}function B$(e){let t=fl();var r;const n=t.useHref((r=e?.href)!==null&&r!==void 0?r:"");return{href:e?.href?n:void 0,target:e?.target,rel:e?.rel,download:e?.download,ping:e?.ping,referrerPolicy:e?.referrerPolicy}}let Br=new Map,pl=new Set;function qf(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Br.get(n.target);o||(o=new Set,Br.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Br.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Br.delete(n.target)),Br.size===0)){for(let s of pl)s();pl.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?qf():document.addEventListener("DOMContentLoaded",qf));function R$(){for(const[e]of Br)"isConnected"in e&&!e.isConnected&&Br.delete(e)}function Yf(e){requestAnimationFrame(()=>{R$(),Br.size===0?e():pl.add(e)})}function cn(){let e=f.useRef(new Map),t=f.useCallback((o,s,i,a)=>{let l=a?.once?(...c)=>{e.current.delete(i),i(...c)}:i;e.current.set(i,{type:s,eventTarget:o,fn:l,options:a}),o.addEventListener(s,l,a)},[]),r=f.useCallback((o,s,i,a)=>{var l;let c=((l=e.current.get(i))===null||l===void 0?void 0:l.fn)||i;o.removeEventListener(s,c,a),e.current.delete(i)},[]),n=f.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function hl(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=Nt(r),o&&n?o=[...new Set([r,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function Xf(e,t){const r=f.useRef(!0),n=f.useRef(null);Be(()=>(r.current=!0,()=>{r.current=!1}),[]),Be(()=>{r.current?r.current=!1:(!n.current||t.some((o,s)=>!Object.is(o,n[s])))&&e(),n.current=t},t)}function K$(){return typeof window.ResizeObserver<"u"}function ei(e){const{ref:t,box:r,onResize:n}=e;f.useEffect(()=>{let o=t?.current;if(o)if(K$()){const s=new window.ResizeObserver(i=>{i.length&&n()});return s.observe(o,{box:r}),()=>{o&&s.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t,r])}function Jf(e,t){Be(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function so(e,t){if(!e)return!1;let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function Qf(e,t){let r=e;for(so(r,t)&&(r=r.parentElement);r&&!so(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}function W$(e,t){const r=[];for(;e&&e!==document.documentElement;)so(e,t)&&r.push(e),e=e.parentElement;return r}function io(e){return zr()?e.metaKey:e.ctrlKey}const U$=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function ml(e){return e instanceof HTMLInputElement&&!U$.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}let H$=0;const gl=new Map;function G$(e){let[t,r]=f.useState();return Be(()=>{if(!e)return;let n=gl.get(e);if(n)r(n.element.id);else{let o=`react-aria-description-${H$++}`;r(o);let s=document.createElement("div");s.id=o,s.style.display="none",s.textContent=e,document.body.appendChild(s),n={refCount:0,element:s},gl.set(e,n)}return n.refCount++,()=>{n&&--n.refCount===0&&(n.element.remove(),gl.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function ti(e,t,r,n){let o=Ye(r),s=r==null;f.useEffect(()=>{if(s||!e.current)return;let i=e.current;return i.addEventListener(t,o,n),()=>{i.removeEventListener(t,o,n)}},[e,t,n,s,o])}function ep(e,t){let r=tp(e,t,"left"),n=tp(e,t,"top"),o=t.offsetWidth,s=t.offsetHeight,i=e.scrollLeft,a=e.scrollTop,{borderTopWidth:l,borderLeftWidth:c,scrollPaddingTop:u,scrollPaddingRight:d,scrollPaddingBottom:p,scrollPaddingLeft:h}=getComputedStyle(e),{scrollMarginTop:g,scrollMarginRight:m,scrollMarginBottom:x,scrollMarginLeft:v}=getComputedStyle(t),$=i+parseInt(c,10),C=a+parseInt(l,10),E=$+e.clientWidth,T=C+e.clientHeight,k=parseInt(u,10)||0,D=parseInt(p,10)||0,P=parseInt(d,10)||0,V=parseInt(h,10)||0,F=parseInt(g,10)||0,y=parseInt(x,10)||0,M=parseInt(m,10)||0,A=parseInt(v,10)||0,I=r-A,N=r+o+M,w=n-F,S=n+s+y,_=i+parseInt(c,10)+V,B=E-P,L=a+parseInt(l,10)+k,K=T-D;if((I>_||N<B)&&(I<=i+V?i=I-parseInt(c,10)-V:N>E-P&&(i+=N-E+P)),(w>L||S<K)&&(w<=C+k?a=w-parseInt(l,10)-k:S>T-D&&(a+=S-T+D)),process.env.NODE_ENV==="test"){e.scrollLeft=i,e.scrollTop=a;return}e.scrollTo({left:i,top:a})}function tp(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[n];break}t=t.offsetParent}return o}function rp(e,t){if(e&&document.contains(e)){let i=document.scrollingElement||document.documentElement;if(!(window.getComputedStyle(i).overflow==="hidden")&&!cl()){var r;let{left:l,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:u,top:d}=e.getBoundingClientRect();if(Math.abs(l-u)>1||Math.abs(c-d)>1){var n,o,s;t==null||(o=t.containingElement)===null||o===void 0||(n=o.scrollIntoView)===null||n===void 0||n.call(o,{block:"center",inline:"center"}),(s=e.scrollIntoView)===null||s===void 0||s.call(e,{block:"nearest"})}}else{let l=W$(e);for(let c of l)ep(c,e)}}}function vl(e){return e.pointerType===""&&e.isTrusted?!0:dl()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Z$(e){return!dl()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function ri(e,t,r){let n=Ye(()=>{r&&r(t)});f.useEffect(()=>{var o;let s=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return s?.addEventListener("reset",n),()=>{s?.removeEventListener("reset",n)}},[e,n])}const q$="react-aria-clear-focus",Y$="react-aria-focus",X$=typeof Element<"u"&&"checkVisibility"in Element.prototype;function J$(e){const t=Ot(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:i,visibility:a}=s(e);o=i!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function Q$(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function bl(e,t){return X$?e.checkVisibility({visibilityProperty:!0})&&!e.closest("[data-react-aria-prevent-focus]"):e.nodeName!=="#comment"&&J$(e)&&Q$(e,t)&&(!e.parentElement||bl(e.parentElement,e))}const yl=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],e2=yl.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";yl.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const t2=yl.join(':not([hidden]):not([tabindex="-1"]),');function np(e){return e.matches(e2)&&bl(e)&&!op(e)}function r2(e){return e.matches(t2)&&bl(e)&&!op(e)}function op(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}function Cr(e,t,r){let[n,o]=f.useState(e||t),s=f.useRef(e!==void 0),i=e!==void 0;f.useEffect(()=>{let c=s.current;c!==i&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}.`),s.current=i},[i]);let a=i?e:n,l=f.useCallback((c,...u)=>{let d=(p,...h)=>{r&&(Object.is(a,p)||r(p,...h)),i||(a=p)};typeof c=="function"?(process.env.NODE_ENV!=="production"&&console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((h,...g)=>{let m=c(i?a:h,...g);return d(m,...u),i?h:m})):(i||o(c),d(c,...u))},[i,a,r]);return[a,l]}function Sr(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ni(e,t){let r=e,n=0,o=t.toString(),s=o.toLowerCase().indexOf("e-");if(s>0)n=Math.abs(Math.floor(Math.log10(Math.abs(t))))+s;else{let i=o.indexOf(".");i>=0&&(n=o.length-i)}if(n>0){let i=Math.pow(10,n);r=Math.round(r*i)/i}return r}function Bo(e,t,r,n){t=Number(t),r=Number(r);let o=(e-(isNaN(t)?0:t))%n,s=ni(Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o,n);return isNaN(t)?!isNaN(r)&&s>r&&(s=Math.floor(ni(r/n,n))*n):s<t?s=t:!isNaN(r)&&s>r&&(s=t+Math.floor(ni((r-t)/n,n))*n),s=ni(s,n),s}let xl=new Map,wl=!1;try{wl=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let oi=!1;try{oi=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const sp={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class n2{format(t){let r="";if(!wl&&this.options.signDisplay!=null?r=s2(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!oi){var n;let{unit:o,unitDisplay:s="short",locale:i}=this.resolvedOptions();if(!o)return r;let a=(n=sp[o])===null||n===void 0?void 0:n[s];r+=a[i]||a.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!wl&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!oi&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=o2(t,r),this.options=r}}function o2(e,t={}){let{numberingSystem:r}=t;if(r&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${r}`),t.style==="unit"&&!oi){var n;let{unit:i,unitDisplay:a="short"}=t;if(!i)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=sp[i])===null||n===void 0)&&n[a]))throw new Error(`Unsupported unit ${i} with unitDisplay = ${a}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(xl.has(o))return xl.get(o);let s=new Intl.NumberFormat(e,t);return xl.set(o,s),s}function s2(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),s=e.format(r),i=o.replace(s,"").replace(/\u200e|\u061C/,"");return[...i].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(s,"!!!").replace(i,"+").replace("!!!",s)}else return e.format(r)}}function ip(e={}){let{locale:t}=jo();return f.useMemo(()=>new n2(t,e),[t,e])}const ap=f.createContext({});function $l(e){const t=f.useRef(null);return t.current===null&&(t.current=e()),t.current}const El=typeof window<"u",lp=El?f.useLayoutEffect:f.useEffect,si=f.createContext(null);function i2(e,t){e.indexOf(t)===-1&&e.push(t)}function a2(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const dn=(e,t,r)=>r>t?t:r<e?e:r;function Pl(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let ao=()=>{},Rr=()=>{};process.env.NODE_ENV!=="production"&&(ao=(e,t,r)=>{!e&&typeof console<"u"&&console.warn(Pl(t,r))},Rr=(e,t,r)=>{if(!e)throw new Error(Pl(t,r))});const Tr={},up=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function l2(e){return typeof e=="object"&&e!==null}const cp=e=>/^0[^.\s]+$/u.test(e);function Cl(e){let t;return()=>(t===void 0&&(t=e()),t)}const lo=e=>e,u2=(e,t)=>r=>t(e(r)),ii=(...e)=>e.reduce(u2),dp=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n};class fp{constructor(){this.subscriptions=[]}add(t){return i2(this.subscriptions,t),()=>a2(this.subscriptions,t)}notify(t,r,n){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let s=0;s<o;s++){const i=this.subscriptions[s];i&&i(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const dr=e=>e*1e3,kr=e=>e/1e3;function pp(e,t){return t?e*(1e3/t):0}const hp=new Set;function Sl(e,t,r){e||hp.has(t)||(console.warn(Pl(t,r)),hp.add(t))}const mp=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,c2=1e-7,d2=12;function f2(e,t,r,n,o){let s,i,a=0;do i=t+(r-t)/2,s=mp(i,n,o)-e,s>0?r=i:t=i;while(Math.abs(s)>c2&&++a<d2);return i}function Ro(e,t,r,n){if(e===t&&r===n)return lo;const o=s=>f2(s,0,1,e,r);return s=>s===0||s===1?s:mp(o(s),t,n)}const gp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,vp=e=>t=>1-e(1-t),bp=Ro(.33,1.53,.69,.99),Tl=vp(bp),yp=gp(Tl),xp=e=>(e*=2)<1?.5*Tl(e):.5*(2-Math.pow(2,-10*(e-1))),kl=e=>1-Math.sin(Math.acos(e)),p2=vp(kl),wp=gp(kl),h2=Ro(.42,0,1,1),m2=Ro(0,0,.58,1),$p=Ro(.42,0,.58,1),g2=e=>Array.isArray(e)&&typeof e[0]!="number",Ep=e=>Array.isArray(e)&&typeof e[0]=="number",Pp={linear:lo,easeIn:h2,easeInOut:$p,easeOut:m2,circIn:kl,circInOut:wp,circOut:p2,backIn:Tl,backInOut:yp,backOut:bp,anticipate:xp},v2=e=>typeof e=="string",Cp=e=>{if(Ep(e)){Rr(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,r,n,o]=e;return Ro(t,r,n,o)}else if(v2(e))return Rr(Pp[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Pp[e];return e},ai=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function b2(e,t){let r=new Set,n=new Set,o=!1,s=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(u){i.has(u)&&(c.schedule(u),e()),u(a)}const c={schedule:(u,d=!1,p=!1)=>{const g=p&&o?r:n;return d&&i.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),i.delete(u)},process:u=>{if(a=u,o){s=!0;return}o=!0,[r,n]=[n,r],r.forEach(l),r.clear(),o=!1,s&&(s=!1,c.process(u))}};return c}const y2=40;function Sp(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,i=ai.reduce((C,E)=>(C[E]=b2(s),C),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:h,postRender:g}=i,m=()=>{const C=Tr.useManualTiming?o.timestamp:performance.now();r=!1,Tr.useManualTiming||(o.delta=n?1e3/60:Math.max(Math.min(C-o.timestamp,y2),1)),o.timestamp=C,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),p.process(o),h.process(o),g.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))},x=()=>{r=!0,n=!0,o.isProcessing||e(m)};return{schedule:ai.reduce((C,E)=>{const T=i[E];return C[E]=(k,D=!1,P=!1)=>(r||x(),T.schedule(k,D,P)),C},{}),cancel:C=>{for(let E=0;E<ai.length;E++)i[ai[E]].cancel(C)},state:o,steps:i}}const{schedule:sr,cancel:Il,state:li}=Sp(typeof requestAnimationFrame<"u"?requestAnimationFrame:lo,!0);let ui;function x2(){ui=void 0}const Xt={now:()=>(ui===void 0&&Xt.set(li.isProcessing||Tr.useManualTiming?li.timestamp:performance.now()),ui),set:e=>{ui=e,queueMicrotask(x2)}},Tp=e=>t=>typeof t=="string"&&t.startsWith(e),kp=Tp("--"),w2=Tp("var(--"),_l=e=>w2(e)?$2.test(e.split("/*")[0].trim()):!1,$2=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,uo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ko={...uo,transform:e=>dn(0,1,e)},ci={...uo,default:1},Wo=e=>Math.round(e*1e5)/1e5,Ml=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E2(e){return e==null}const P2=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dl=(e,t)=>r=>!!(typeof r=="string"&&P2.test(r)&&r.startsWith(e)||t&&!E2(r)&&Object.prototype.hasOwnProperty.call(r,t)),Ip=(e,t,r)=>n=>{if(typeof n!="string")return n;const[o,s,i,a]=n.match(Ml);return{[e]:parseFloat(o),[t]:parseFloat(s),[r]:parseFloat(i),alpha:a!==void 0?parseFloat(a):1}},C2=e=>dn(0,255,e),Al={...uo,transform:e=>Math.round(C2(e))},fn={test:Dl("rgb","red"),parse:Ip("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Al.transform(e)+", "+Al.transform(t)+", "+Al.transform(r)+", "+Wo(Ko.transform(n))+")"};function S2(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}const Nl={test:Dl("#"),parse:S2,transform:fn.transform},Uo=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Kr=Uo("deg"),co=Uo("%"),we=Uo("px"),T2=Uo("vh"),k2=Uo("vw"),_p={...co,parse:e=>co.parse(e)/100,transform:e=>co.transform(e*100)},fo={test:Dl("hsl","hue"),parse:Ip("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+co.transform(Wo(t))+", "+co.transform(Wo(r))+", "+Wo(Ko.transform(n))+")"},dt={test:e=>fn.test(e)||Nl.test(e)||fo.test(e),parse:e=>fn.test(e)?fn.parse(e):fo.test(e)?fo.parse(e):Nl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?fn.transform(e):fo.transform(e),getAnimatableNone:e=>{const t=dt.parse(e);return t.alpha=0,dt.transform(t)}},I2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _2(e){return isNaN(e)&&typeof e=="string"&&(e.match(Ml)?.length||0)+(e.match(I2)?.length||0)>0}const Mp="number",Dp="color",M2="var",D2="var(",Ap="${}",A2=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ho(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let s=0;const a=t.replace(A2,l=>(dt.test(l)?(n.color.push(s),o.push(Dp),r.push(dt.parse(l))):l.startsWith(D2)?(n.var.push(s),o.push(M2),r.push(l)):(n.number.push(s),o.push(Mp),r.push(parseFloat(l))),++s,Ap)).split(Ap);return{values:r,split:a,indexes:n,types:o}}function Np(e){return Ho(e).values}function Op(e){const{split:t,types:r}=Ho(e),n=t.length;return o=>{let s="";for(let i=0;i<n;i++)if(s+=t[i],o[i]!==void 0){const a=r[i];a===Mp?s+=Wo(o[i]):a===Dp?s+=dt.transform(o[i]):s+=o[i]}return s}}const N2=e=>typeof e=="number"?0:dt.test(e)?dt.getAnimatableNone(e):e;function O2(e){const t=Np(e);return Op(e)(t.map(N2))}const po={test:_2,parse:Np,createTransformer:Op,getAnimatableNone:O2};function Ol(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function L2({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,s=0,i=0;if(!t)o=s=i=r;else{const a=r<.5?r*(1+t):r+t-r*t,l=2*r-a;o=Ol(l,a,e+1/3),s=Ol(l,a,e),i=Ol(l,a,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(i*255),alpha:n}}function di(e,t){return r=>r>0?t:e}const fi=(e,t,r)=>e+(t-e)*r,Ll=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},F2=[Nl,fn,fo],V2=e=>F2.find(t=>t.test(e));function Lp(e){const t=V2(e);if(ao(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let r=t.parse(e);return t===fo&&(r=L2(r)),r}const Fp=(e,t)=>{const r=Lp(e),n=Lp(t);if(!r||!n)return di(e,t);const o={...r};return s=>(o.red=Ll(r.red,n.red,s),o.green=Ll(r.green,n.green,s),o.blue=Ll(r.blue,n.blue,s),o.alpha=fi(r.alpha,n.alpha,s),fn.transform(o))},Fl=new Set(["none","hidden"]);function j2(e,t){return Fl.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function z2(e,t){return r=>fi(e,t,r)}function Vl(e){return typeof e=="number"?z2:typeof e=="string"?_l(e)?di:dt.test(e)?Fp:K2:Array.isArray(e)?Vp:typeof e=="object"?dt.test(e)?Fp:B2:di}function Vp(e,t){const r=[...e],n=r.length,o=e.map((s,i)=>Vl(s)(s,t[i]));return s=>{for(let i=0;i<n;i++)r[i]=o[i](s);return r}}function B2(e,t){const r={...e,...t},n={};for(const o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Vl(e[o])(e[o],t[o]));return o=>{for(const s in n)r[s]=n[s](o);return r}}function R2(e,t){const r=[],n={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],i=e.indexes[s][n[s]],a=e.values[i]??0;r[o]=a,n[s]++}return r}const K2=(e,t)=>{const r=po.createTransformer(t),n=Ho(e),o=Ho(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Fl.has(e)&&!o.values.length||Fl.has(t)&&!n.values.length?j2(e,t):ii(Vp(R2(n,o),o.values),r):(ao(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),di(e,t))};function jp(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?fi(e,t,r):Vl(e)(e,t)}const W2=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>sr.update(t,r),stop:()=>Il(t),now:()=>li.isProcessing?li.timestamp:Xt.now()}},zp=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let s=0;s<o;s++)n+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${n.substring(0,n.length-2)})`},pi=2e4;function jl(e){let t=0;const r=50;let n=e.next(t);for(;!n.done&&t<pi;)t+=r,n=e.next(t);return t>=pi?1/0:t}function U2(e,t=100,r){const n=r({...e,keyframes:[0,t]}),o=Math.min(jl(n),pi);return{type:"keyframes",ease:s=>n.next(o*s).value/t,duration:kr(o)}}const H2=5;function Bp(e,t,r){const n=Math.max(t-H2,0);return pp(r-e(n),t-n)}const et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},zl=.001;function G2({duration:e=et.duration,bounce:t=et.bounce,velocity:r=et.velocity,mass:n=et.mass}){let o,s;ao(e<=dr(et.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let i=1-t;i=dn(et.minDamping,et.maxDamping,i),e=dn(et.minDuration,et.maxDuration,kr(e)),i<1?(o=c=>{const u=c*i,d=u*e,p=u-r,h=Bl(c,i),g=Math.exp(-d);return zl-p/h*g},s=c=>{const d=c*i*e,p=d*r+r,h=Math.pow(i,2)*Math.pow(c,2)*e,g=Math.exp(-d),m=Bl(Math.pow(c,2),i);return(-o(c)+zl>0?-1:1)*((p-h)*g)/m}):(o=c=>{const u=Math.exp(-c*e),d=(c-r)*e+1;return-zl+u*d},s=c=>{const u=Math.exp(-c*e),d=(r-c)*(e*e);return u*d});const a=5/e,l=q2(o,s,a);if(e=dr(e),isNaN(l))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:i*2*Math.sqrt(n*c),duration:e}}}const Z2=12;function q2(e,t,r){let n=r;for(let o=1;o<Z2;o++)n=n-e(n)/t(n);return n}function Bl(e,t){return e*Math.sqrt(1-t*t)}const Y2=["duration","bounce"],X2=["stiffness","damping","mass"];function Rp(e,t){return t.some(r=>e[r]!==void 0)}function J2(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!Rp(e,X2)&&Rp(e,Y2))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(r*1.2),o=n*n,s=2*dn(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:et.mass,stiffness:o,damping:s}}else{const r=G2(e);t={...t,...r,mass:et.mass},t.isResolvedFromDuration=!0}return t}function hi(e=et.visualDuration,t=et.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const s=r.keyframes[0],i=r.keyframes[r.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:d,velocity:p,isResolvedFromDuration:h}=J2({...r,velocity:-kr(r.velocity||0)}),g=p||0,m=c/(2*Math.sqrt(l*u)),x=i-s,v=kr(Math.sqrt(l/u)),$=Math.abs(x)<5;n||(n=$?et.restSpeed.granular:et.restSpeed.default),o||(o=$?et.restDelta.granular:et.restDelta.default);let C;if(m<1){const T=Bl(v,m);C=k=>{const D=Math.exp(-m*v*k);return i-D*((g+m*v*x)/T*Math.sin(T*k)+x*Math.cos(T*k))}}else if(m===1)C=T=>i-Math.exp(-v*T)*(x+(g+v*x)*T);else{const T=v*Math.sqrt(m*m-1);C=k=>{const D=Math.exp(-m*v*k),P=Math.min(T*k,300);return i-D*((g+m*v*x)*Math.sinh(P)+T*x*Math.cosh(P))/T}}const E={calculatedDuration:h&&d||null,next:T=>{const k=C(T);if(h)a.done=T>=d;else{let D=T===0?g:0;m<1&&(D=T===0?dr(g):Bp(C,T,k));const P=Math.abs(D)<=n,V=Math.abs(i-k)<=o;a.done=P&&V}return a.value=a.done?i:k,a},toString:()=>{const T=Math.min(jl(E),pi),k=zp(D=>E.next(T*D).value,T,30);return T+"ms "+k},toTransition:()=>{}};return E}hi.applyToOptions=e=>{const t=U2(e,100,hi);return e.ease=t.ease,e.duration=dr(t.duration),e.type="keyframes",e};function Rl({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:i,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],p={done:!1,value:d},h=P=>a!==void 0&&P<a||l!==void 0&&P>l,g=P=>a===void 0?l:l===void 0||Math.abs(a-P)<Math.abs(l-P)?a:l;let m=r*t;const x=d+m,v=i===void 0?x:i(x);v!==x&&(m=v-d);const $=P=>-m*Math.exp(-P/n),C=P=>v+$(P),E=P=>{const V=$(P),F=C(P);p.done=Math.abs(V)<=c,p.value=p.done?v:F};let T,k;const D=P=>{h(p.value)&&(T=P,k=hi({keyframes:[p.value,g(p.value)],velocity:Bp(C,P,p.value),damping:o,stiffness:s,restDelta:c,restSpeed:u}))};return D(0),{calculatedDuration:null,next:P=>{let V=!1;return!k&&T===void 0&&(V=!0,E(P),D(P)),T!==void 0&&P>=T?k.next(P-T):(!V&&E(P),p)}}}function Q2(e,t,r){const n=[],o=r||Tr.mix||jp,s=e.length-1;for(let i=0;i<s;i++){let a=o(e[i],e[i+1]);if(t){const l=Array.isArray(t)?t[i]||lo:t;a=ii(l,a)}n.push(a)}return n}function eE(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const s=e.length;if(Rr(s===t.length,"Both input and output ranges must be the same length","range-length"),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const i=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=Q2(t,n,o),l=a.length,c=u=>{if(i&&u<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const p=dp(e[d],e[d+1],u);return a[d](p)};return r?u=>c(dn(e[0],e[s-1],u)):c}function tE(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=dp(0,t,n);e.push(fi(r,1,o))}}function rE(e){const t=[0];return tE(t,e.length-1),t}function nE(e,t){return e.map(r=>r*t)}function oE(e,t){return e.map(()=>t||$p).splice(0,e.length-1)}function ho({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=g2(n)?n.map(Cp):Cp(n),s={done:!1,value:t[0]},i=nE(r&&r.length===t.length?r:rE(t),e),a=eE(i,t,{ease:Array.isArray(o)?o:oE(t,o)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const sE=e=>e!==null;function Kl(e,{repeat:t,repeatType:r="loop"},n,o=1){const s=e.filter(sE),a=o<0||t&&r!=="loop"&&t%2===1?0:s.length-1;return!a||n===void 0?s[a]:n}const iE={decay:Rl,inertia:Rl,tween:ho,keyframes:ho,spring:hi};function Kp(e){typeof e.type=="string"&&(e.type=iE[e.type])}class Wl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const aE=e=>e/100;class Ul extends Wl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==Xt.now()&&this.tick(Xt.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;Kp(t);const{type:r=ho,repeat:n=0,repeatDelay:o=0,repeatType:s,velocity:i=0}=t;let{keyframes:a}=t;const l=r||ho;process.env.NODE_ENV!=="production"&&l!==ho&&Rr(a.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${a}`,"spring-two-frames"),l!==ho&&typeof a[0]!="number"&&(this.mixKeyframes=ii(aE,jp(a[0],a[1])),a=[0,100]);const c=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-i})),c.calculatedDuration===null&&(c.calculatedDuration=jl(c));const{calculatedDuration:u}=c;this.calculatedDuration=u,this.resolvedDuration=u+o,this.totalDuration=this.resolvedDuration*(n+1)-o,this.generator=c}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:n,totalDuration:o,mixKeyframes:s,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return n.next(0);const{delay:c=0,keyframes:u,repeat:d,repeatType:p,repeatDelay:h,type:g,onUpdate:m,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const v=this.currentTime-c*(this.playbackSpeed>=0?1:-1),$=this.playbackSpeed>=0?v<0:v>o;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,E=n;if(d){const P=Math.min(this.currentTime,o)/a;let V=Math.floor(P),F=P%1;!F&&P>=1&&(F=1),F===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(F=1-F,h&&(F-=h/a)):p==="mirror"&&(E=i)),C=dn(0,1,F)*a}const T=$?{done:!1,value:u[0]}:E.next(C);s&&(T.value=s(T.value));let{done:k}=T;!$&&l!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return D&&g!==Rl&&(T.value=Kl(u,this.options,x,this.speed)),m&&m(T.value),D&&this.finish(),T}then(t,r){return this.finished.then(t,r)}get duration(){return kr(this.calculatedDuration)}get time(){return kr(this.currentTime)}set time(t){t=dr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Xt.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=kr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=W2,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const n=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=n):this.holdTime!==null?this.startTime=n-this.holdTime:this.startTime||(this.startTime=r??n),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Xt.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function lE(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const pn=e=>e*180/Math.PI,Hl=e=>{const t=pn(Math.atan2(e[1],e[0]));return Gl(t)},uE={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Hl,rotateZ:Hl,skewX:e=>pn(Math.atan(e[1])),skewY:e=>pn(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gl=e=>(e=e%360,e<0&&(e+=360),e),Wp=Hl,Up=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Hp=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),cE={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Up,scaleY:Hp,scale:e=>(Up(e)+Hp(e))/2,rotateX:e=>Gl(pn(Math.atan2(e[6],e[5]))),rotateY:e=>Gl(pn(Math.atan2(-e[2],e[0]))),rotateZ:Wp,rotate:Wp,skewX:e=>pn(Math.atan(e[4])),skewY:e=>pn(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Zl(e){return e.includes("scale")?1:0}function ql(e,t){if(!e||e==="none")return Zl(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,o;if(r)n=cE,o=r;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=uE,o=a}if(!o)return Zl(t);const s=n[t],i=o[1].split(",").map(fE);return typeof s=="function"?s(i):i[s]}const dE=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return ql(r,t)};function fE(e){return parseFloat(e.trim())}const mo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],go=new Set(mo),Gp=e=>e===uo||e===we,pE=new Set(["x","y","z"]),hE=mo.filter(e=>!pE.has(e));function mE(e){const t=[];return hE.forEach(r=>{const n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}const hn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ql(t,"x"),y:(e,{transform:t})=>ql(t,"y")};hn.translateX=hn.x,hn.translateY=hn.y;const mn=new Set;let Yl=!1,Xl=!1,Jl=!1;function Zp(){if(Xl){const e=Array.from(mn).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{const o=mE(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();const o=r.get(n);o&&o.forEach(([s,i])=>{n.getValue(s)?.set(i)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Xl=!1,Yl=!1,mn.forEach(e=>e.complete(Jl)),mn.clear()}function qp(){mn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xl=!0)})}function gE(){Jl=!0,qp(),Zp(),Jl=!1}class Ql{constructor(t,r,n,o,s,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=s,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(mn.add(this),Yl||(Yl=!0,sr.read(qp),sr.resolveKeyframes(Zp))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;if(t[0]===null){const s=o?.get(),i=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){const a=n.readValue(r,i);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=i),o&&s===void 0&&o.set(t[0])}lE(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),mn.delete(this)}cancel(){this.state==="scheduled"&&(mn.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const vE=e=>e.startsWith("--");function bE(e,t,r){vE(t)?e.style.setProperty(t,r):e.style[t]=r}const yE=Cl(()=>window.ScrollTimeline!==void 0),xE={};function wE(e,t){const r=Cl(e);return()=>xE[t]??r()}const Yp=wE(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Go=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Xp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Go([0,.65,.55,1]),circOut:Go([.55,0,1,.45]),backIn:Go([.31,.01,.66,-.59]),backOut:Go([.33,1.53,.69,.99])};function Jp(e,t){if(e)return typeof e=="function"?Yp()?zp(e,t):"ease-out":Ep(e)?Go(e):Array.isArray(e)?e.map(r=>Jp(r,t)||Xp.easeOut):Xp[e]}function $E(e,t,r,{delay:n=0,duration:o=300,repeat:s=0,repeatType:i="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:r};l&&(u.offset=l);const d=Jp(a,o);Array.isArray(d)&&(u.easing=d);const p={delay:n,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:i==="reverse"?"alternate":"normal"};return c&&(p.pseudoElement=c),e.animate(u,p)}function Qp(e){return typeof e=="function"&&"applyToOptions"in e}function EE({type:e,...t}){return Qp(e)&&Yp()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class PE extends Wl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:n,keyframes:o,pseudoElement:s,allowFlatten:i=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=i,this.options=t,Rr(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const c=EE(t);this.animation=$E(r,n,o,c,s),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const u=Kl(o,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(u):bE(r,n,u),this.animation.cancel()}l?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return kr(Number(t))}get time(){return kr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=dr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&yE()?(this.animation.timeline=t,lo):r(this)}}const eh={anticipate:xp,backInOut:yp,circInOut:wp};function CE(e){return e in eh}function SE(e){typeof e.ease=="string"&&CE(e.ease)&&(e.ease=eh[e.ease])}const th=10;class TE extends PE{constructor(t){SE(t),Kp(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:n,onComplete:o,element:s,...i}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const a=new Ul({...i,autoplay:!1}),l=dr(this.finishedTime??this.time);r.setWithVelocity(a.sample(l-th).value,a.sample(l).value,th),a.stop()}}const rh=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(po.test(e)||e==="0")&&!e.startsWith("url("));function kE(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function IE(e,t,r,n){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],i=rh(o,t),a=rh(s,t);return ao(i===a,`You are trying to animate ${t} from "${o}" to "${s}". "${i?s:o}" is not an animatable value.`,"value-not-animatable"),!i||!a?!1:kE(e)||(r==="spring"||Qp(r))&&n}function eu(e){e.duration=0,e.type}const _E=new Set(["opacity","clipPath","filter","transform"]),ME=Cl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function DE(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:s,type:i}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=t.owner.getProps();return ME()&&r&&_E.has(r)&&(r!=="transform"||!c)&&!l&&!n&&o!=="mirror"&&s!==0&&i!=="inertia"}const AE=40;class NE extends Wl{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:i="loop",keyframes:a,name:l,motionValue:c,element:u,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Xt.now();const p={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:s,repeatType:i,name:l,motionValue:c,element:u,...d},h=u?.KeyframeResolver||Ql;this.keyframeResolver=new h(a,(g,m,x)=>this.onKeyframesResolved(g,m,p,!x),l,c,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,n,o){this.keyframeResolver=void 0;const{name:s,type:i,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=Xt.now(),IE(t,s,i,a)||((Tr.instantAnimations||!l)&&u?.(Kl(t,n,r)),t[0]=t[t.length-1],eu(n),n.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>AE?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...n,keyframes:t},h=!c&&DE(p)?new TE({...p,element:p.motionValue.owner.current}):new Ul(p);h.finished.then(()=>this.notifyFinished()).catch(lo),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),gE()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const OE=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LE(e){const t=OE.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${r??n}`,o]}const FE=4;function nh(e,t,r=1){Rr(r<=FE,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[n,o]=LE(e);if(!n)return;const s=window.getComputedStyle(t).getPropertyValue(n);if(s){const i=s.trim();return up(i)?parseFloat(i):i}return _l(o)?nh(o,t,r+1):o}function oh(e,t){return e?.[t]??e?.default??e}const sh=new Set(["width","height","top","left","right","bottom",...mo]),VE={test:e=>e==="auto",parse:e=>e},ih=e=>t=>t.test(e),ah=[uo,we,co,Kr,k2,T2,VE],lh=e=>ah.find(ih(e));function jE(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||cp(e):!0}const zE=new Set(["brightness","contrast","saturate","opacity"]);function BE(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Ml)||[];if(!n)return e;const o=r.replace(n,"");let s=zE.has(t)?1:0;return n!==r&&(s*=100),t+"("+s+o+")"}const RE=/\b([a-z-]*)\(.*?\)/gu,tu={...po,getAnimatableNone:e=>{const t=e.match(RE);return t?t.map(BE).join(" "):e}},uh={...uo,transform:Math.round},ru={borderWidth:we,borderTopWidth:we,borderRightWidth:we,borderBottomWidth:we,borderLeftWidth:we,borderRadius:we,radius:we,borderTopLeftRadius:we,borderTopRightRadius:we,borderBottomRightRadius:we,borderBottomLeftRadius:we,width:we,maxWidth:we,height:we,maxHeight:we,top:we,right:we,bottom:we,left:we,padding:we,paddingTop:we,paddingRight:we,paddingBottom:we,paddingLeft:we,margin:we,marginTop:we,marginRight:we,marginBottom:we,marginLeft:we,backgroundPositionX:we,backgroundPositionY:we,...{rotate:Kr,rotateX:Kr,rotateY:Kr,rotateZ:Kr,scale:ci,scaleX:ci,scaleY:ci,scaleZ:ci,skew:Kr,skewX:Kr,skewY:Kr,distance:we,translateX:we,translateY:we,translateZ:we,x:we,y:we,z:we,perspective:we,transformPerspective:we,opacity:Ko,originX:_p,originY:_p,originZ:we},zIndex:uh,fillOpacity:Ko,strokeOpacity:Ko,numOctaves:uh},KE={...ru,color:dt,backgroundColor:dt,outlineColor:dt,fill:dt,stroke:dt,borderColor:dt,borderTopColor:dt,borderRightColor:dt,borderBottomColor:dt,borderLeftColor:dt,filter:tu,WebkitFilter:tu},ch=e=>KE[e];function dh(e,t){let r=ch(e);return r!==tu&&(r=po),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const WE=new Set(["auto","none","0"]);function UE(e,t,r){let n=0,o;for(;n<e.length&&!o;){const s=e[n];typeof s=="string"&&!WE.has(s)&&Ho(s).values.length&&(o=e[n]),n++}if(o&&r)for(const s of t)e[s]=dh(r,o)}class HE extends Ql{constructor(t,r,n,o,s){super(t,r,n,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),_l(c))){const u=nh(c,r.current);u!==void 0&&(t[l]=u),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!sh.has(n)||t.length!==2)return;const[o,s]=t,i=lh(o),a=lh(s);if(i!==a)if(Gp(i)&&Gp(a))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else hn[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)(t[o]===null||jE(t[o]))&&n.push(o);n.length&&UE(t,n,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hn[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const s=n.length-1,i=n[s];n[s]=hn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),i!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}}function GE(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let n=document;const o=r?.[e]??n.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const fh=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ph(e){return l2(e)&&"offsetHeight"in e}const hh=30,ZE=e=>!isNaN(parseFloat(e));class qE{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=n=>{const o=Xt.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const s of this.dependents)s.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=Xt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZE(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Sl(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new fp);const n=this.events[t].add(r);return t==="change"?()=>{n(),sr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Xt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>hh)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,hh);return pp(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mi(e,t){return new qE(e,t)}const{schedule:YE}=Sp(queueMicrotask,!1),XE={y:!1};function JE(){return XE.y}function mh(e,t){const r=GE(e),n=new AbortController,o={passive:!0,...t,signal:n.signal};return[r,o,()=>n.abort()]}function gh(e){return!(e.pointerType==="touch"||JE())}function QE(e,t,r={}){const[n,o,s]=mh(e,r),i=a=>{if(!gh(a))return;const{target:l}=a,c=t(l,a);if(typeof c!="function"||!l)return;const u=d=>{gh(d)&&(c(d),l.removeEventListener("pointerleave",u))};l.addEventListener("pointerleave",u,o)};return n.forEach(a=>{a.addEventListener("pointerenter",i,o)}),s}const vh=(e,t)=>t?e===t?!0:vh(e,t.parentElement):!1,eP=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,tP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rP(e){return tP.has(e.tagName)||e.tabIndex!==-1}const gi=new WeakSet;function bh(e){return t=>{t.key==="Enter"&&e(t)}}function nu(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const nP=(e,t)=>{const r=e.currentTarget;if(!r)return;const n=bh(()=>{if(gi.has(r))return;nu(r,"down");const o=bh(()=>{nu(r,"up")}),s=()=>nu(r,"cancel");r.addEventListener("keyup",o,t),r.addEventListener("blur",s,t)});r.addEventListener("keydown",n,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),t)};function yh(e){return eP(e)&&!0}function oP(e,t,r={}){const[n,o,s]=mh(e,r),i=a=>{const l=a.currentTarget;if(!yh(a))return;gi.add(l);const c=t(l,a),u=(h,g)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),gi.has(l)&&gi.delete(l),yh(h)&&typeof c=="function"&&c(h,{success:g})},d=h=>{u(h,l===window||l===document||r.useGlobalTarget||vh(l,h.target))},p=h=>{u(h,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",p,o)};return n.forEach(a=>{(r.useGlobalTarget?window:a).addEventListener("pointerdown",i,o),ph(a)&&(a.addEventListener("focus",c=>nP(c,o)),!rP(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}const Lt=e=>!!(e&&e.getVelocity),sP=[...ah,dt,po],iP=e=>sP.find(ih(e)),ou=f.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class aP extends At.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const n=r.offsetParent,o=ph(n)&&n.offsetWidth||0,s=this.props.sizeRef.current;s.height=r.offsetHeight||0,s.width=r.offsetWidth||0,s.top=r.offsetTop,s.left=r.offsetLeft,s.right=o-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function lP({children:e,isPresent:t,anchorX:r,root:n}){const o=f.useId(),s=f.useRef(null),i=f.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:a}=f.useContext(ou);return f.useInsertionEffect(()=>{const{width:l,height:c,top:u,left:d,right:p}=i.current;if(t||!s.current||!l||!c)return;const h=r==="left"?`left: ${d}`:`right: ${p}`;s.current.dataset.motionPopId=o;const g=document.createElement("style");a&&(g.nonce=a);const m=n??document.head;return m.appendChild(g),g.sheet&&g.sheet.insertRule(`
|
|
417
|
+
[data-motion-pop-id="${o}"] {
|
|
418
|
+
position: absolute !important;
|
|
419
|
+
width: ${l}px !important;
|
|
420
|
+
height: ${c}px !important;
|
|
421
|
+
${h}px !important;
|
|
422
|
+
top: ${u}px !important;
|
|
423
|
+
}
|
|
424
|
+
`),()=>{m.contains(g)&&m.removeChild(g)}},[t]),b.jsx(aP,{isPresent:t,childRef:s,sizeRef:i,children:At.cloneElement(e,{ref:s})})}const uP=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:s,mode:i,anchorX:a,root:l})=>{const c=$l(cP),u=f.useId();let d=!0,p=f.useMemo(()=>(d=!1,{id:u,initial:t,isPresent:r,custom:o,onExitComplete:h=>{c.set(h,!0);for(const g of c.values())if(!g)return;n&&n()},register:h=>(c.set(h,!1),()=>c.delete(h))}),[r,c,n]);return s&&d&&(p={...p}),f.useMemo(()=>{c.forEach((h,g)=>c.set(g,!1))},[r]),At.useEffect(()=>{!r&&!c.size&&n&&n()},[r]),i==="popLayout"&&(e=b.jsx(lP,{isPresent:r,anchorX:a,root:l,children:e})),b.jsx(si.Provider,{value:p,children:e})};function cP(){return new Map}function dP(e=!0){const t=f.useContext(si);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,s=f.useId();f.useEffect(()=>{if(e)return o(s)},[e]);const i=f.useCallback(()=>e&&n&&n(s),[s,n,e]);return!r&&n?[!1,i]:[!0]}const vi=e=>e.key||"";function xh(e){const t=[];return f.Children.forEach(e,r=>{f.isValidElement(r)&&t.push(r)}),t}const Zo=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:s="sync",propagate:i=!1,anchorX:a="left",root:l})=>{const[c,u]=dP(i),d=f.useMemo(()=>xh(e),[e]),p=i&&!c?[]:d.map(vi),h=f.useRef(!0),g=f.useRef(d),m=$l(()=>new Map),[x,v]=f.useState(d),[$,C]=f.useState(d);lp(()=>{h.current=!1,g.current=d;for(let k=0;k<$.length;k++){const D=vi($[k]);p.includes(D)?m.delete(D):m.get(D)!==!0&&m.set(D,!1)}},[$,p.length,p.join("-")]);const E=[];if(d!==x){let k=[...d];for(let D=0;D<$.length;D++){const P=$[D],V=vi(P);p.includes(V)||(k.splice(D,0,P),E.push(P))}return s==="wait"&&E.length&&(k=E),C(xh(k)),v(d),null}process.env.NODE_ENV!=="production"&&s==="wait"&&$.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:T}=f.useContext(ap);return b.jsx(b.Fragment,{children:$.map(k=>{const D=vi(k),P=i&&!c?!1:d===$||p.includes(D),V=()=>{if(m.has(D))m.set(D,!0);else return;let F=!0;m.forEach(y=>{y||(F=!1)}),F&&(T?.(),C(g.current),i&&u?.(),n&&n())};return b.jsx(uP,{isPresent:P,initial:!h.current||r?void 0:!1,custom:t,presenceAffectsLayout:o,mode:s,root:l,onExitComplete:P?void 0:V,anchorX:a,children:k},D)})})},su=f.createContext({strict:!1}),wh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vo={};for(const e in wh)vo[e]={isEnabled:t=>wh[e].some(r=>!!t[r])};function iu(e){for(const t in e)vo[t]={...vo[t],...e[t]}}function gn({children:e,features:t,strict:r=!1}){const[,n]=f.useState(!au(t)),o=f.useRef(void 0);if(!au(t)){const{renderer:s,...i}=t;o.current=s,iu(i)}return f.useEffect(()=>{au(t)&&t().then(({renderer:s,...i})=>{iu(i),o.current=s,n(!0)})},[]),b.jsx(su.Provider,{value:{renderer:o.current,strict:r},children:e})}function au(e){return typeof e=="function"}const fP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bi(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||fP.has(e)}let $h=e=>!bi(e);function pP(e){typeof e=="function"&&($h=t=>t.startsWith("on")?!bi(t):e(t))}try{pP(require("@emotion/is-prop-valid").default)}catch{}function hP(e,t,r){const n={};for(const o in e)o==="values"&&typeof e.values=="object"||($h(o)||r===!0&&bi(o)||!t&&!bi(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}const yi=f.createContext({});function xi(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function qo(e){return typeof e=="string"||Array.isArray(e)}const lu=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uu=["initial",...lu];function wi(e){return xi(e.animate)||uu.some(t=>qo(e[t]))}function Eh(e){return!!(wi(e)||e.variants)}function mP(e,t){if(wi(e)){const{initial:r,animate:n}=e;return{initial:r===!1||qo(r)?r:void 0,animate:qo(n)?n:void 0}}return e.inherit!==!1?t:{}}function gP(e){const{initial:t,animate:r}=mP(e,f.useContext(yi));return f.useMemo(()=>({initial:t,animate:r}),[Ph(t),Ph(r)])}function Ph(e){return Array.isArray(e)?e.join(" "):e}const vP={};function Ch(e,{layout:t,layoutId:r}){return go.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!vP[e]||e==="opacity")}const bP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yP=mo.length;function xP(e,t,r){let n="",o=!0;for(let s=0;s<yP;s++){const i=mo[s],a=e[i];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(i.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||r){const c=fh(a,ru[i]);if(!l){o=!1;const u=bP[i]||i;n+=`${u}(${c}) `}r&&(t[i]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function cu(e,t,r){const{style:n,vars:o,transformOrigin:s}=e;let i=!1,a=!1;for(const l in t){const c=t[l];if(go.has(l)){i=!0;continue}else if(kp(l)){o[l]=c;continue}else{const u=fh(c,ru[l]);l.startsWith("origin")?(a=!0,s[l]=u):n[l]=u}}if(t.transform||(i||r?n.transform=xP(t,e.transform,r):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:c="50%",originZ:u=0}=s;n.transformOrigin=`${l} ${c} ${u}`}}const du=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Sh(e,t,r){for(const n in t)!Lt(t[n])&&!Ch(n,r)&&(e[n]=t[n])}function wP({transformTemplate:e},t){return f.useMemo(()=>{const r=du();return cu(r,t,e),Object.assign({},r.vars,r.style)},[t])}function $P(e,t){const r=e.style||{},n={};return Sh(n,r,e),Object.assign(n,wP(e,t)),n}function EP(e,t){const r={},n=$P(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const PP={offset:"stroke-dashoffset",array:"stroke-dasharray"},CP={offset:"strokeDashoffset",array:"strokeDasharray"};function SP(e,t,r=1,n=0,o=!0){e.pathLength=1;const s=o?PP:CP;e[s.offset]=we.transform(-n);const i=we.transform(t),a=we.transform(r);e[s.array]=`${i} ${a}`}function Th(e,{attrX:t,attrY:r,attrScale:n,pathLength:o,pathSpacing:s=1,pathOffset:i=0,...a},l,c,u){if(cu(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),r!==void 0&&(d.y=r),n!==void 0&&(d.scale=n),o!==void 0&&SP(d,o,s,i,!1)}const kh=()=>({...du(),attrs:{}}),Ih=e=>typeof e=="string"&&e.toLowerCase()==="svg";function TP(e,t,r,n){const o=f.useMemo(()=>{const s=kh();return Th(s,t,Ih(n),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Sh(s,e.style,e),o.style={...s,...o.style}}return o}const kP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function fu(e){return typeof e!="string"||e.includes("-")?!1:!!(kP.indexOf(e)>-1||/[A-Z]/u.test(e))}function IP(e,t,r,{latestValues:n},o,s=!1){const a=(fu(e)?TP:EP)(t,n,o,e),l=hP(t,typeof e=="string",s),c=e!==f.Fragment?{...l,...a,ref:r}:{},{children:u}=t,d=f.useMemo(()=>Lt(u)?u.get():u,[u]);return f.createElement(e,{...c,children:d})}function _h(e){const t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function pu(e,t,r,n){if(typeof t=="function"){const[o,s]=_h(n);t=t(r!==void 0?r:e.custom,o,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,s]=_h(n);t=t(r!==void 0?r:e.custom,o,s)}return t}function _P(e){return Lt(e)?e.get():e}function MP({scrapeMotionValuesFromProps:e,createRenderState:t},r,n,o){return{latestValues:DP(r,n,o,e),renderState:t()}}function DP(e,t,r,n){const o={},s=n(e,{});for(const p in s)o[p]=_P(s[p]);let{initial:i,animate:a}=e;const l=wi(e),c=Eh(e);t&&c&&!l&&e.inherit!==!1&&(i===void 0&&(i=t.initial),a===void 0&&(a=t.animate));let u=r?r.initial===!1:!1;u=u||i===!1;const d=u?a:i;if(d&&typeof d!="boolean"&&!xi(d)){const p=Array.isArray(d)?d:[d];for(let h=0;h<p.length;h++){const g=pu(e,p[h]);if(g){const{transitionEnd:m,transition:x,...v}=g;for(const $ in v){let C=v[$];if(Array.isArray(C)){const E=u?C.length-1:0;C=C[E]}C!==null&&(o[$]=C)}for(const $ in m)o[$]=m[$]}}}return o}const Mh=e=>(t,r)=>{const n=f.useContext(yi),o=f.useContext(si),s=()=>MP(e,t,n,o);return r?s():$l(s)};function hu(e,t,r){const{style:n}=e,o={};for(const s in n)(Lt(n[s])||t.style&&Lt(t.style[s])||Ch(s,e)||r?.getValue(s)?.liveStyle!==void 0)&&(o[s]=n[s]);return o}const AP=Mh({scrapeMotionValuesFromProps:hu,createRenderState:du});function Dh(e,t,r){const n=hu(e,t,r);for(const o in e)if(Lt(e[o])||Lt(t[o])){const s=mo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[s]=e[o]}return n}const NP=Mh({scrapeMotionValuesFromProps:Dh,createRenderState:kh}),OP=Symbol.for("motionComponentSymbol");function Ah(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function LP(e,t,r){return f.useCallback(n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Ah(r)&&(r.current=n))},[t])}const mu=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nh="data-"+mu("framerAppearId"),FP=f.createContext({});function VP(e,t,r,n,o){const{visualElement:s}=f.useContext(yi),i=f.useContext(su),a=f.useContext(si),l=f.useContext(ou).reducedMotion,c=f.useRef(null);n=n||i.renderer,!c.current&&n&&(c.current=n(e,{visualState:t,parent:s,props:r,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:l}));const u=c.current,d=f.useContext(FP);u&&!u.projection&&o&&(u.type==="html"||u.type==="svg")&&jP(c.current,r,o,d);const p=f.useRef(!1);f.useInsertionEffect(()=>{u&&p.current&&u.update(r,a)});const h=r[Nh],g=f.useRef(!!h&&!window.MotionHandoffIsComplete?.(h)&&window.MotionHasOptimisedAnimation?.(h));return lp(()=>{u&&(p.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),g.current&&u.animationState&&u.animationState.animateChanges())}),f.useEffect(()=>{u&&(!g.current&&u.animationState&&u.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(h)}),g.current=!1),u.enteringChildren=void 0)}),u}function jP(e,t,r,n){const{layoutId:o,layout:s,drag:i,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutCrossfade:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Oh(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!i||a&&Ah(a),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:n,crossfade:u,layoutScroll:l,layoutRoot:c})}function Oh(e){if(e)return e.options.allowProjection!==!1?e.projection:Oh(e.parent)}function gu(e,{forwardMotionProps:t=!1}={},r,n){r&&iu(r);const o=fu(e)?NP:AP;function s(a,l){let c;const u={...f.useContext(ou),...a,layoutId:zP(a)},{isStatic:d}=u,p=gP(a),h=o(a,d);if(!d&&El){BP(u,r);const g=RP(u);c=g.MeasureLayout,p.visualElement=VP(e,h,u,n,g.ProjectionNode)}return b.jsxs(yi.Provider,{value:p,children:[c&&p.visualElement?b.jsx(c,{visualElement:p.visualElement,...u}):null,IP(e,a,LP(h,p.visualElement,l),h,d,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const i=f.forwardRef(s);return i[OP]=e,i}function zP({layoutId:e}){const t=f.useContext(ap).id;return t&&e!==void 0?t+"-"+e:e}function BP(e,t){const r=f.useContext(su).strict;if(process.env.NODE_ENV!=="production"&&t&&r){const n="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?ao(!1,n,"lazy-strict-mode"):Rr(!1,n,"lazy-strict-mode")}}function RP(e){const{drag:t,layout:r}=vo;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}function KP(e,t){if(typeof Proxy>"u")return gu;const r=new Map,n=(s,i)=>gu(s,i,e,t),o=(s,i)=>(process.env.NODE_ENV!=="production"&&Sl(!1,"motion() is deprecated. Use motion.create() instead."),n(s,i));return new Proxy(o,{get:(s,i)=>i==="create"?n:(r.has(i)||r.set(i,gu(i,void 0,e,t)),r.get(i))})}const vn=KP();function WP({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function UP(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function HP(e,t){return WP(UP(e.getBoundingClientRect(),t))}const Lh=()=>({min:0,max:0}),Fh=()=>({x:Lh(),y:Lh()}),vu={current:null},Vh={current:!1};function GP(){if(Vh.current=!0,!!El)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vu.current=e.matches;e.addEventListener("change",t),t()}else vu.current=!1}const ZP=new WeakMap;function qP(e,t,r){for(const n in t){const o=t[n],s=r[n];if(Lt(o))e.addValue(n,o);else if(Lt(s))e.addValue(n,mi(o,{owner:e}));else if(s!==o)if(e.hasValue(n)){const i=e.getValue(n);i.liveStyle===!0?i.jump(o):i.hasAnimated||i.set(o)}else{const i=e.getStaticValue(n);e.addValue(n,mi(i!==void 0?i:o,{owner:e}))}}for(const n in r)t[n]===void 0&&e.removeValue(n);return t}const jh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class YP{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:s,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ql,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=Xt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,sr.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=i;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=!!s,this.isControllingVariants=wi(r),this.isVariantNode=Eh(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(const p in d){const h=d[p];l[p]!==void 0&&Lt(h)&&h.set(l[p])}}mount(t){this.current=t,ZP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Vh.current||GP(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vu.current,process.env.NODE_ENV!=="production"&&Sl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Il(this.notifyUpdate),Il(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=go.has(t);n&&this.onBindTransform&&this.onBindTransform();const o=r.on("change",i=>{this.latestValues[t]=i,this.props.onUpdate&&sr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in vo){const r=vo[t];if(!r)continue;const{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Fh()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<jh.length;n++){const o=jh[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,i=t[s];i&&(this.propEventSubscriptions[o]=this.on(o,i))}this.prevMotionValues=qP(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=mi(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){let n=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return n!=null&&(typeof n=="string"&&(up(n)||cp(n))?n=parseFloat(n):!iP(n)&&po.test(r)&&(n=dh(t,r)),this.setBaseTarget(t,Lt(n)?n.get():n)),Lt(n)?n.get():n}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let n;if(typeof r=="string"||typeof r=="object"){const s=pu(this.props,r,this.presenceContext?.custom);s&&(n=s[t])}if(r&&n!==void 0)return n;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Lt(o)?o:this.initialValues[t]!==void 0&&n===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new fp),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){YE.render(this.render)}}class zh extends YP{constructor(){super(...arguments),this.KeyframeResolver=HE}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Lt(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function Bh(e,{style:t,vars:r},n,o){const s=e.style;let i;for(i in t)s[i]=t[i];o?.applyProjectionStyles(s,n);for(i in r)s.setProperty(i,r[i])}function XP(e){return window.getComputedStyle(e)}class JP extends zh{constructor(){super(...arguments),this.type="html",this.renderInstance=Bh}readValueFromInstance(t,r){if(go.has(r))return this.projection?.isProjecting?Zl(r):dE(t,r);{const n=XP(t),o=(kp(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return HP(t,r)}build(t,r,n){cu(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return hu(t,r,n)}}const Rh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function QP(e,t,r,n){Bh(e,t,void 0,n);for(const o in t.attrs)e.setAttribute(Rh.has(o)?o:mu(o),t.attrs[o])}class eC extends zh{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fh}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(go.has(r)){const n=ch(r);return n&&n.default||0}return r=Rh.has(r)?r:mu(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return Dh(t,r,n)}build(t,r,n){Th(t,r,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(t,r,n,o){QP(t,r,n,o)}mount(t){this.isSVGTag=Ih(t.tagName),super.mount(t)}}const tC=(e,t)=>fu(e)?new eC(t):new JP(t,{allowProjection:e!==f.Fragment});function bo(e,t,r){const n=e.getProps();return pu(n,t,r!==void 0?r:n.custom,e)}const bu=e=>Array.isArray(e);function rC(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,mi(r))}function nC(e){return bu(e)?e[e.length-1]||0:e}function oC(e,t){const r=bo(e,t);let{transitionEnd:n={},transition:o={},...s}=r||{};s={...s,...n};for(const i in s){const a=nC(s[i]);rC(e,i,a)}}function sC(e){return!!(Lt(e)&&e.add)}function iC(e,t){const r=e.getValue("willChange");if(sC(r))return r.add(t);if(!r&&Tr.WillChange){const n=new Tr.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function aC(e){return e.props[Nh]}const lC=e=>e!==null;function uC(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(lC),s=t&&r!=="loop"&&t%2===1?0:o.length-1;return o[s]}const cC={type:"spring",stiffness:500,damping:25,restSpeed:10},dC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fC={type:"keyframes",duration:.8},pC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hC=(e,{keyframes:t})=>t.length>2?fC:go.has(e)?e.startsWith("scale")?dC(t[1]):cC:pC;function mC({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:s,repeatType:i,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}const gC=(e,t,r,n={},o,s)=>i=>{const a=oh(n,e)||{},l=a.delay||n.delay||0;let{elapsed:c=0}=n;c=c-dr(l);const u={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{i(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:o};mC(a)||Object.assign(u,hC(e,u)),u.duration&&(u.duration=dr(u.duration)),u.repeatDelay&&(u.repeatDelay=dr(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(eu(u),u.delay===0&&(d=!0)),(Tr.instantAnimations||Tr.skipAnimations)&&(d=!0,eu(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!s&&t.get()!==void 0){const p=uC(u.keyframes,a);if(p!==void 0){sr.update(()=>{u.onUpdate(p),u.onComplete()});return}}return a.isSync?new Ul(u):new NE(u)};function vC({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Kh(e,t,{delay:r=0,transitionOverride:n,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:i,...a}=t;n&&(s=n);const l=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const u in a){const d=e.getValue(u,e.latestValues[u]??null),p=a[u];if(p===void 0||c&&vC(c,u))continue;const h={delay:r,...oh(s||{},u)},g=d.get();if(g!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===g&&!h.velocity)continue;let m=!1;if(window.MotionHandoffAnimation){const v=aC(e);if(v){const $=window.MotionHandoffAnimation(v,u,sr);$!==null&&(h.startTime=$,m=!0)}}iC(e,u),d.start(gC(u,d,p,e.shouldReduceMotion&&sh.has(u)?{type:!1}:h,e,m));const x=d.animation;x&&l.push(x)}return i&&Promise.all(l).then(()=>{sr.update(()=>{i&&oC(e,i)})}),l}function Wh(e,t,r,n=0,o=1){const s=Array.from(e).sort((c,u)=>c.sortNodePosition(u)).indexOf(t),i=e.size,a=(i-1)*n;return typeof r=="function"?r(s,i):o===1?s*n:a-s*n}function yu(e,t,r={}){const n=bo(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(o=r.transitionOverride);const s=n?()=>Promise.all(Kh(e,n,r)):()=>Promise.resolve(),i=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=o;return bC(e,t,l,c,u,d,r)}:()=>Promise.resolve(),{when:a}=o;if(a){const[l,c]=a==="beforeChildren"?[s,i]:[i,s];return l().then(()=>c())}else return Promise.all([s(),i(r.delay)])}function bC(e,t,r=0,n=0,o=0,s=1,i){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(yu(l,t,{...i,delay:r+(typeof n=="function"?0:n)+Wh(e.variantChildren,l,n,o,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function yC(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){const o=t.map(s=>yu(e,s,r));n=Promise.all(o)}else if(typeof t=="string")n=yu(e,t,r);else{const o=typeof t=="function"?bo(e,t,r.custom):t;n=Promise.all(Kh(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}function Uh(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}const xC=uu.length;function Hh(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?Hh(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<xC;r++){const n=uu[r],o=e.props[n];(qo(o)||o===!1)&&(t[n]=o)}return t}const wC=[...lu].reverse(),$C=lu.length;function EC(e){return t=>Promise.all(t.map(({animation:r,options:n})=>yC(e,r,n)))}function PC(e){let t=EC(e),r=Gh(),n=!0;const o=l=>(c,u)=>{const d=bo(e,u,l==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:h,...g}=d;c={...c,...g,...h}}return c};function s(l){t=l(e)}function i(l){const{props:c}=e,u=Hh(e.parent)||{},d=[],p=new Set;let h={},g=1/0;for(let x=0;x<$C;x++){const v=wC[x],$=r[v],C=c[v]!==void 0?c[v]:u[v],E=qo(C),T=v===l?$.isActive:null;T===!1&&(g=x);let k=C===u[v]&&C!==c[v]&&E;if(k&&n&&e.manuallyAnimateOnMount&&(k=!1),$.protectedKeys={...h},!$.isActive&&T===null||!C&&!$.prevProp||xi(C)||typeof C=="boolean")continue;const D=CC($.prevProp,C);let P=D||v===l&&$.isActive&&!k&&E||x>g&&E,V=!1;const F=Array.isArray(C)?C:[C];let y=F.reduce(o(v),{});T===!1&&(y={});const{prevResolvedValues:M={}}=$,A={...M,...y},I=S=>{P=!0,p.has(S)&&(V=!0,p.delete(S)),$.needsAnimating[S]=!0;const _=e.getValue(S);_&&(_.liveStyle=!1)};for(const S in A){const _=y[S],B=M[S];if(h.hasOwnProperty(S))continue;let L=!1;bu(_)&&bu(B)?L=!Uh(_,B):L=_!==B,L?_!=null?I(S):p.add(S):_!==void 0&&p.has(S)?I(S):$.protectedKeys[S]=!0}$.prevProp=C,$.prevResolvedValues=y,$.isActive&&(h={...h,...y}),n&&e.blockInitialAnimation&&(P=!1);const N=k&&D;P&&(!N||V)&&d.push(...F.map(S=>{const _={type:v};if(typeof S=="string"&&n&&!N&&e.manuallyAnimateOnMount&&e.parent){const{parent:B}=e,L=bo(B,S);if(B.enteringChildren&&L){const{delayChildren:K}=L.transition||{};_.delay=Wh(B.enteringChildren,e,K)}}return{animation:S,options:_}}))}if(p.size){const x={};if(typeof c.initial!="boolean"){const v=bo(e,Array.isArray(c.initial)?c.initial[0]:c.initial);v&&v.transition&&(x.transition=v.transition)}p.forEach(v=>{const $=e.getBaseTarget(v),C=e.getValue(v);C&&(C.liveStyle=!0),x[v]=$??null}),d.push({animation:x})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function a(l,c){if(r[l].isActive===c)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(l,c)),r[l].isActive=c;const u=i(l);for(const d in r)r[d].protectedKeys={};return u}return{animateChanges:i,setActive:a,setAnimateFunction:s,getState:()=>r,reset:()=>{r=Gh(),n=!0}}}function CC(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Uh(t,e):!1}function bn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Gh(){return{animate:bn(!0),whileInView:bn(),whileHover:bn(),whileTap:bn(),whileDrag:bn(),whileFocus:bn(),exit:bn()}}class yo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class SC extends yo{constructor(t){super(t),t.animationState||(t.animationState=PC(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xi(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let TC=0;class kC extends yo{constructor(){super(...arguments),this.id=TC++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const IC={animation:{Feature:SC},exit:{Feature:kC}};function Zh(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function qh(e){return{point:{x:e.pageX,y:e.pageY}}}function Yh(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover",r==="Start");const o="onHover"+r,s=n[o];s&&sr.postRender(()=>s(t,qh(t)))}class _C extends yo{mount(){const{current:t}=this.node;t&&(this.unmount=QE(t,(r,n)=>(Yh(this.node,n,"Start"),o=>Yh(this.node,o,"End"))))}unmount(){}}class MC extends yo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ii(Zh(this.node.current,"focus",()=>this.onFocus()),Zh(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Xh(e,t,r){const{props:n}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap",r==="Start");const o="onTap"+(r==="End"?"":r),s=n[o];s&&sr.postRender(()=>s(t,qh(t)))}class DC extends yo{mount(){const{current:t}=this.node;t&&(this.unmount=oP(t,(r,n)=>(Xh(this.node,n,"Start"),(o,{success:s})=>Xh(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const xu=new WeakMap,wu=new WeakMap,AC=e=>{const t=xu.get(e.target);t&&t(e)},NC=e=>{e.forEach(AC)};function OC({root:e,...t}){const r=e||document;wu.has(r)||wu.set(r,{});const n=wu.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(NC,{root:e,...t})),n[o]}function LC(e,t,r){const n=OC(t);return xu.set(e,r),n.observe(e),()=>{xu.delete(e),n.unobserve(e)}}const FC={some:0,all:1};class VC extends yo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:s}=t,i={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:FC[o]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),p=c?u:d;p&&p(l)};return LC(this.node.current,i,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(jC(t,r))&&this.startObserver()}unmount(){}}function jC({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const zC={renderer:tC,...IC,...{inView:{Feature:VC},tap:{Feature:DC},focus:{Feature:MC},hover:{Feature:_C}}},$u=typeof document<"u"?f.useLayoutEffect:()=>{};var Eu;const BC=(Eu=f.useInsertionEffect)!==null&&Eu!==void 0?Eu:$u;function fr(e){const t=f.useRef(null);return BC(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}let Pu=new Map;typeof FinalizationRegistry<"u"&&new FinalizationRegistry(e=>{Pu.delete(e)});function RC(e,t){if(e===t)return e;let r=Pu.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Pu.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Jh(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}const ir=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},Yo=e=>e&&"window"in e&&e.window===e?e:ir(e).defaultView||window;function KC(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function WC(e){return KC(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}function ot(e,t){if(!ln())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let r=t;for(;r!==null;){if(r===e)return!0;r.tagName==="SLOT"&&r.assignedSlot?r=r.assignedSlot.parentNode:WC(r)?r=r.host:r=r.parentNode}return!1}const UC=(e=document)=>{var t;if(!ln())return e.activeElement;let r=e.activeElement;for(;r&&"shadowRoot"in r&&(!((t=r.shadowRoot)===null||t===void 0)&&t.activeElement);)r=r.shadowRoot.activeElement;return r};function Je(e){return ln()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function xo(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],i=n[o];typeof s=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Jh(s,i):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?t[o]=Hf(s,i):o==="id"&&s&&i?t.id=RC(s,i):t[o]=i!==void 0?i:s}}return t}const HC=new Set(["id"]),GC=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),ZC=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),qC=new Set(["dir","lang","hidden","inert","translate"]),Qh=new Set(["onClick","onAuxClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onGotPointerCapture","onLostPointerCapture","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionCancel","onTransitionEnd","onTransitionRun","onTransitionStart"]),YC=/^(data-.*)$/;function em(e,t={}){let{labelable:r,isLink:n,global:o,events:s=o,propNames:i}=t,a={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(HC.has(l)||r&&GC.has(l)||n&&ZC.has(l)||o&&qC.has(l)||s&&Qh.has(l)||l.endsWith("Capture")&&Qh.has(l.slice(0,-7))||i?.has(l)||YC.test(l))&&(a[l]=e[l]);return a}function $i(e){if(XC())e.focus({preventScroll:!0});else{let t=JC(e);e.focus(),QC(t)}}let Ei=null;function XC(){if(Ei==null){Ei=!1;try{document.createElement("div").focus({get preventScroll(){return Ei=!0,!0}})}catch{}}return Ei}function JC(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function QC(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}function Pi(e){var t;if(typeof window>"u"||window.navigator==null)return!1;let r=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(r)&&r.some(n=>e.test(n.brand))||e.test(window.navigator.userAgent)}function Cu(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ir(e){if(process.env.NODE_ENV==="test")return e;let t=null;return()=>(t==null&&(t=e()),t)}const Xo=Ir(function(){return Cu(/^Mac/i)}),eS=Ir(function(){return Cu(/^iPhone/i)}),tm=Ir(function(){return Cu(/^iPad/i)||Xo()&&navigator.maxTouchPoints>1}),Su=Ir(function(){return eS()||tm()});Ir(function(){return Xo()||Su()});const tS=Ir(function(){return Pi(/AppleWebKit/i)&&!rS()}),rS=Ir(function(){return Pi(/Chrome/i)}),rm=Ir(function(){return Pi(/Android/i)}),nS=Ir(function(){return Pi(/Firefox/i)});function Jo(e,t,r=!0){var n,o;let{metaKey:s,ctrlKey:i,altKey:a,shiftKey:l}=t;nS()&&(!((o=window.event)===null||o===void 0||(n=o.type)===null||n===void 0)&&n.startsWith("key"))&&e.target==="_blank"&&(Xo()?s=!0:i=!0);let c=tS()&&Xo()&&!tm()&&process.env.NODE_ENV!=="test"?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:i,altKey:a,shiftKey:l}):new MouseEvent("click",{metaKey:s,ctrlKey:i,altKey:a,shiftKey:l,bubbles:!0,cancelable:!0});Jo.isOpening=r,$i(e),e.dispatchEvent(c),Jo.isOpening=!1}Jo.isOpening=!1;let Wr=new Map,Tu=new Set;function nm(){if(typeof window>"u")return;function e(n){return"propertyName"in n}let t=n=>{if(!e(n)||!n.target)return;let o=Wr.get(n.target);o||(o=new Set,Wr.set(n.target,o),n.target.addEventListener("transitioncancel",r,{once:!0})),o.add(n.propertyName)},r=n=>{if(!e(n)||!n.target)return;let o=Wr.get(n.target);if(o&&(o.delete(n.propertyName),o.size===0&&(n.target.removeEventListener("transitioncancel",r),Wr.delete(n.target)),Wr.size===0)){for(let s of Tu)s();Tu.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",r)}typeof document<"u"&&(document.readyState!=="loading"?nm():document.addEventListener("DOMContentLoaded",nm));function oS(){for(const[e]of Wr)"isConnected"in e&&!e.isConnected&&Wr.delete(e)}function sS(e){requestAnimationFrame(()=>{oS(),Wr.size===0?e():Tu.add(e)})}function ku(){let e=f.useRef(new Map),t=f.useCallback((o,s,i,a)=>{let l=a?.once?(...c)=>{e.current.delete(i),i(...c)}:i;e.current.set(i,{type:s,eventTarget:o,fn:l,options:a}),o.addEventListener(s,l,a)},[]),r=f.useCallback((o,s,i,a)=>{var l;let c=((l=e.current.get(i))===null||l===void 0?void 0:l.fn)||i;o.removeEventListener(s,c,a),e.current.delete(i)},[]),n=f.useCallback(()=>{e.current.forEach((o,s)=>{r(o.eventTarget,o.type,s,o.options)})},[r]);return f.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function iS(e,t){$u(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function om(e){return e.mozInputSource===0&&e.isTrusted?!0:rm()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function aS(e){return!rm()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}const lS=typeof Element<"u"&&"checkVisibility"in Element.prototype;function uS(e){const t=Yo(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,o=r!=="none"&&n!=="hidden"&&n!=="collapse";if(o){const{getComputedStyle:s}=e.ownerDocument.defaultView;let{display:i,visibility:a}=s(e);o=i!=="none"&&a!=="hidden"&&a!=="collapse"}return o}function cS(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function sm(e,t){return lS?e.checkVisibility():e.nodeName!=="#comment"&&uS(e)&&cS(e,t)&&(!e.parentElement||sm(e.parentElement,e))}const im=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],dS=im.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";im.push('[tabindex]:not([tabindex="-1"]):not([disabled])');function fS(e){return e.matches(dS)&&sm(e)&&!pS(e)}function pS(e){let t=e;for(;t!=null;){if(t instanceof t.ownerDocument.defaultView.HTMLElement&&t.inert)return!0;t=t.parentElement}return!1}const pr={top:"top",bottom:"top",left:"left",right:"left"},Ci={top:"bottom",bottom:"top",left:"right",right:"left"},hS={top:"left",left:"top"},Iu={top:"height",left:"width"},am={width:"totalWidth",height:"totalHeight"},Si={};let yt=typeof document<"u"?window.visualViewport:null;function lm(e){let t=0,r=0,n=0,o=0,s=0,i=0,a={};var l;let c=((l=yt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;n=g.clientWidth,o=g.clientHeight;var u;t=(u=yt?.width)!==null&&u!==void 0?u:n;var d;r=(d=yt?.height)!==null&&d!==void 0?d:o,a.top=g.scrollTop||e.scrollTop,a.left=g.scrollLeft||e.scrollLeft,yt&&(s=yt.offsetTop,i=yt.offsetLeft)}else({width:t,height:r,top:s,left:i}=wo(e)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Qs()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var p;s=(p=yt?.pageTop)!==null&&p!==void 0?p:0;var h;i=(h=yt?.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:s,left:i}}function mS(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function um(e,t,r,n,o,s,i){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[Iu[e]],u=n.scroll[pr[e]]+s,d=c+n.scroll[pr[e]]-s,p=t-l+i[e]-n[pr[e]],h=t-l+r+i[e]-n[pr[e]];return p<u?u-p:h>d?Math.max(d-h,u-p):0}function gS(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function cm(e){if(Si[e])return Si[e];let[t,r]=e.split(" "),n=pr[t]||"right",o=hS[n];pr[r]||(r="center");let s=Iu[n],i=Iu[o];return Si[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:s,crossSize:i},Si[e]}function _u(e,t,r,n,o,s,i,a,l,c){let{placement:u,crossPlacement:d,axis:p,crossAxis:h,size:g,crossSize:m}=n,x={};var v;x[h]=(v=e[h])!==null&&v!==void 0?v:0;var $,C,E,T;d==="center"?x[h]+=((($=e[m])!==null&&$!==void 0?$:0)-((C=r[m])!==null&&C!==void 0?C:0))/2:d!==h&&(x[h]+=((E=e[m])!==null&&E!==void 0?E:0)-((T=r[m])!==null&&T!==void 0?T:0)),x[h]+=s;const k=e[h]-r[m]+l+c,D=e[h]+e[m]-l-c;if(x[h]=Sr(x[h],k,D),u===p){const P=a?i[g]:t[am[g]];x[Ci[p]]=Math.floor(P-e[p]+o)}else x[p]=Math.floor(e[p]+e[g]+o);return x}function vS(e,t,r,n,o,s,i,a){const l=n?r.height:t[am.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-i);var d,p,h,g,m,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((p=o.top)!==null&&p!==void 0?p:0)+((h=o.bottom)!==null&&h!==void 0?h:0)+s)):Math.max(0,u+i-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+s));return Math.min(t.height-s*2,v)}function dm(e,t,r,n,o,s){let{placement:i,axis:a,size:l}=s;var c,u;if(i===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[Ci[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[Ci[a]]-o)}function bS(e,t,r,n,o,s,i,a,l,c,u,d,p,h,g,m){let x=cm(e),{size:v,crossAxis:$,crossSize:C,placement:E,crossPlacement:T}=x,k=_u(t,a,r,x,u,d,c,p,g,m),D=u,P=dm(a,c,t,o,s+u,x);if(i&&n[v]>P){let U=cm(`${Ci[E]} ${T}`),ee=_u(t,a,r,U,u,d,c,p,g,m);dm(a,c,t,o,s+u,U)>P&&(x=U,k=ee,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=um($,k[$],r[C],a,l,s,c);k[$]+=F;let y=vS(k,a,c,p,o,s,r.height,V);h&&h<y&&(y=h),r.height=Math.min(r.height,y),k=_u(t,a,r,x,D,d,c,p,g,m),F=um($,k[$],r[C],a,l,s,c),k[$]+=F;let M={},A=t[$]+.5*t[C]-k[$]-o[pr[$]];const I=g/2+m;var N,w,S,_;const B=pr[$]==="left"?((N=o.left)!==null&&N!==void 0?N:0)+((w=o.right)!==null&&w!==void 0?w:0):((S=o.top)!==null&&S!==void 0?S:0)+((_=o.bottom)!==null&&_!==void 0?_:0),L=r[C]-B-g/2-m,K=t[$]+g/2-(k[$]+o[pr[$]]),z=t[$]+t[C]-g/2-(k[$]+o[pr[$]]),W=Sr(A,K,z);return M[$]=Sr(W,I,L),{position:k,maxHeight:y,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:x.placement}}function yS(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:s,shouldFlip:i,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=n instanceof HTMLElement?xS(n):document.documentElement,g=h===document.documentElement;const m=window.getComputedStyle(h).position;let x=!!m&&m!=="static",v=g?wo(r):fm(r,h);if(!g){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=wo(n),C=gS(n);var E,T;$.width+=((E=C.left)!==null&&E!==void 0?E:0)+((T=C.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=C.top)!==null&&k!==void 0?k:0)+((D=C.bottom)!==null&&D!==void 0?D:0);let P=mS(o),V=lm(a),F=lm(h),y=a.tagName==="BODY"?wo(h):fm(h,a);return h.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),bS(t,v,$,P,C,s,i,V,F,y,l,c,x,u,d,p)}function wo(e){let{top:t,left:r,width:n,height:o}=e.getBoundingClientRect(),{scrollTop:s,scrollLeft:i,clientTop:a,clientLeft:l}=document.documentElement;return{top:t+s-a,left:r+i-l,width:n,height:o}}function fm(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:o,left:s,width:i,height:a}=e.getBoundingClientRect();n={top:o,left:s,width:i,height:a}}else{n=wo(e);let o=wo(t),s=window.getComputedStyle(t);o.top+=(parseInt(s.borderTopWidth,10)||0)-t.scrollTop,o.left+=(parseInt(s.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function xS(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!pm(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!pm(t);)t=t.parentElement;return t||document.documentElement}function pm(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const wS=new WeakMap;function $S(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=s=>{let i=s.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let a=n||wS.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}let it=typeof document<"u"?window.visualViewport:null;function ES(e){let{direction:t}=jo(),{arrowSize:r=0,targetRef:n,overlayRef:o,scrollRef:s=o,placement:i="bottom",containerPadding:a=12,shouldFlip:l=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:u=0,crossOffset:d=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:g,maxHeight:m,arrowBoundaryOffset:x=0}=e,[v,$]=f.useState(null),C=[p,i,o.current,n.current,s.current,a,l,c,u,d,h,t,m,x,r],E=f.useRef(it?.scale);f.useEffect(()=>{h&&(E.current=it?.scale)},[h]);let T=f.useCallback(()=>{if(p===!1||!h||!o.current||!n.current||!c||it?.scale!==E.current)return;let F=null;if(s.current&&s.current.contains(document.activeElement)){var y;let _=(y=document.activeElement)===null||y===void 0?void 0:y.getBoundingClientRect(),B=s.current.getBoundingClientRect();var M;if(F={type:"top",offset:((M=_?.top)!==null&&M!==void 0?M:0)-B.top},F.offset>B.height/2){F.type="bottom";var A;F.offset=((A=_?.bottom)!==null&&A!==void 0?A:0)-B.bottom}}let I=o.current;if(!m&&o.current){var N;I.style.top="0px",I.style.bottom="";var w;I.style.maxHeight=((w=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&w!==void 0?w:window.innerHeight)+"px"}let S=yS({placement:CS(i,t),overlayNode:o.current,targetNode:n.current,scrollNode:s.current||o.current,padding:a,shouldFlip:l,boundaryElement:c,offset:u,crossOffset:d,maxHeight:m,arrowSize:r,arrowBoundaryOffset:x});if(S.position){if(I.style.top="",I.style.bottom="",I.style.left="",I.style.right="",Object.keys(S.position).forEach(_=>I.style[_]=S.position[_]+"px"),I.style.maxHeight=S.maxHeight!=null?S.maxHeight+"px":"",F&&document.activeElement&&s.current){let _=document.activeElement.getBoundingClientRect(),B=s.current.getBoundingClientRect(),L=_[F.type]-B[F.type];s.current.scrollTop+=L-F.offset}$(S)}},C);Be(T,C),PS(T),ei({ref:o,onResize:T}),ei({ref:n,onResize:T});let k=f.useRef(!1);Be(()=>{let F,y=()=>{k.current=!0,clearTimeout(F),F=setTimeout(()=>{k.current=!1},500),T()},M=()=>{k.current&&y()};return it?.addEventListener("resize",y),it?.addEventListener("scroll",M),()=>{it?.removeEventListener("resize",y),it?.removeEventListener("scroll",M)}},[T]);let D=f.useCallback(()=>{k.current||g?.()},[g,k]);$S({triggerRef:n,isOpen:h,onClose:g&&D});var P,V;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...v?.position,maxHeight:(P=v?.maxHeight)!==null&&P!==void 0?P:"100vh"}},placement:(V=v?.placement)!==null&&V!==void 0?V:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:v?.arrowOffsetLeft,top:v?.arrowOffsetTop}},updatePosition:T}}function PS(e){Be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function CS(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Mu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function hm(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function mm(e){let t=f.useRef({isFocused:!1,observer:null});Be(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Ye(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,s=i=>{if(t.current.isFocused=!1,o.disabled){let a=Mu(i);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}let Ti=!1;function gm(e){for(;e&&!np(e);)e=e.parentElement;let t=Ot(e),r=t.document.activeElement;if(!r||r===e)return;Ti=!0;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},s=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,Yt(r),l()))},i=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,Yt(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",i,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",i,!0),Ti=!1,n=!1},c=requestAnimationFrame(l);return l}let $o="default",Du="",ki=new WeakMap;function Au(e){if(Js()){if($o==="default"){const t=Le(e);Du=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}$o="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";ki.set(e,e.style[t]),e.style[t]="none"}}function Ii(e){if(Js()){if($o!=="disabled")return;$o="restoring",setTimeout(()=>{Yf(()=>{if($o==="restoring"){const t=Le(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Du||""),Du="",$o="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ki.has(e)){let t=ki.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ki.delete(e)}}const Nu=f.createContext({register:()=>{}});Nu.displayName="PressResponderContext";function SS(e,t){return t.get?t.get.call(e):t.value}function vm(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function bm(e,t){var r=vm(e,t,"get");return SS(e,r)}function TS(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function _i(e,t,r){var n=vm(e,t,"set");return TS(e,n,r),r}function kS(e){let t=f.useContext(Nu);if(t){let{register:r,...n}=t;e=_e(n,e),r()}return Jf(t,e.ref),e}var Mi=new WeakMap;let Di=class{continuePropagation(){_i(this,Mi,!1)}get shouldStopPropagation(){return bm(this,Mi)}constructor(t,r,n,o){Wf(this,Mi,{writable:!0,value:void 0}),_i(this,Mi,!0);var s;let i=(s=o?.target)!==null&&s!==void 0?s:n.currentTarget;const a=i?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}};const ym=Symbol("linkClicked"),xm="react-aria-pressable-style",wm="data-react-aria-pressable";function hr(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:s,onClick:i,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...h}=kS(e),[g,m]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=cn(),C=Ye((y,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new Di("pressstart",M,y);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,m(!0),I}),E=Ye((y,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new Di("pressend",M,y);o(w),N=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&A&&!a){let w=new Di("press",M,y);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=Ye((y,M)=>{let A=x.current;if(a)return!1;if(s){A.isTriggeringEvent=!0;let I=new Di("pressup",M,y);return s(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=Ye(y=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&E(yn(M.target,y),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||Ii(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=Ye(y=>{u&&k(y)}),P=Ye(y=>{a||i?.(y)}),V=Ye((y,M)=>{if(!a&&i){let A=new MouseEvent("click",y);hm(A,M),i(Mu(A))}}),F=f.useMemo(()=>{let y=x.current,M={onKeyDown(I){if(Lu(I.nativeEvent,I.currentTarget)&&Xe(I.currentTarget,Fe(I.nativeEvent))){var N;Pm(Fe(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!y.isPressed&&!I.repeat){y.target=I.currentTarget,y.isPressed=!0,y.pointerType="keyboard",w=C(I,"keyboard");let S=I.currentTarget,_=B=>{Lu(B,S)&&!B.repeat&&Xe(S,Fe(B))&&y.target&&T(yn(y.target,B),"keyboard")};v(Le(I.currentTarget),"keyup",an(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&zr()&&((N=y.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(I){if(!(I&&!Xe(I.currentTarget,Fe(I.nativeEvent)))&&I&&I.button===0&&!y.isTriggeringEvent&&!un.isOpening){let N=!0;if(a&&I.preventDefault(),!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||vl(I.nativeEvent))){let w=C(I,"virtual"),S=T(I,"virtual"),_=E(I,"virtual");P(I),N=w&&S&&_}else if(y.isPressed&&y.pointerType!=="keyboard"){let w=y.pointerType||I.nativeEvent.pointerType||"virtual",S=T(yn(I.currentTarget,I),w),_=E(yn(I.currentTarget,I),w,!0);N=S&&_,y.isOverTarget=!1,P(I),k(I)}y.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(y.isPressed&&y.target&&Lu(I,y.target)){var w;Pm(Fe(I),I.key)&&I.preventDefault();let _=Fe(I),B=Xe(y.target,Fe(I));E(yn(y.target,I),"keyboard",B),B&&V(I,y.target),$(),I.key!=="Enter"&&Ou(y.target)&&Xe(y.target,_)&&!I[ym]&&(I[ym]=!0,un(y.target,I,!1)),y.isPressed=!1,(w=y.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=y.metaKeyEvents)===null||N===void 0)&&N.size)){var S;let _=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let B of _.values())(S=y.target)===null||S===void 0||S.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(Z$(w.nativeEvent)){y.pointerType="virtual";return}y.pointerType=w.pointerType;let S=!0;if(!y.isPressed){y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=w.pointerId,y.target=w.currentTarget,d||Au(y.target),S=C(w,y.pointerType);let _=Fe(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(Le(w.currentTarget),"pointerup",I,!1),v(Le(w.currentTarget),"pointercancel",N,!1)}S&&w.stopPropagation()},M.onMouseDown=w=>{if(Xe(w.currentTarget,Fe(w.nativeEvent))&&w.button===0){if(c){let S=gm(w.target);S&&y.disposables.push(S)}w.stopPropagation()}},M.onPointerUp=w=>{!Xe(w.currentTarget,Fe(w.nativeEvent))||y.pointerType==="virtual"||w.button===0&&!y.isPressed&&T(w,y.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===y.activePointerId&&y.target&&!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(yn(y.target,w),y.pointerType))},M.onPointerLeave=w=>{w.pointerId===y.activePointerId&&y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,E(yn(y.target,w),y.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===y.activePointerId&&y.isPressed&&w.button===0&&y.target){if(Xe(y.target,Fe(w))&&y.pointerType!=null){let S=!1,_=setTimeout(()=>{y.isPressed&&y.target instanceof HTMLElement&&(S?k(w):(Yt(y.target),y.target.click()))},80);v(w.currentTarget,"click",()=>S=!0,!0),y.disposables.push(()=>clearTimeout(_))}else k(w);y.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(y.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(y.isPressed=!0,y.isOverTarget=!0,y.target=w.currentTarget,y.pointerType=vl(w.nativeEvent)?"virtual":"mouse",Wn.flushSync(()=>C(w,y.pointerType))&&w.stopPropagation(),c){let _=gm(w.target);_&&y.disposables.push(_)}v(Le(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;let S=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,S=C(w,y.pointerType)),S&&w.stopPropagation()},M.onMouseLeave=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;let S=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,S=E(w,y.pointerType,!1),D(w)),S&&w.stopPropagation()},M.onMouseUp=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&!y.ignoreEmulatedMouseEvents&&w.button===0&&!y.isPressed&&T(w,y.pointerType||"mouse")};let I=w=>{if(w.button===0){if(y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&y.target.contains(w.target)&&y.pointerType!=null||k(w),y.isOverTarget=!1}};M.onTouchStart=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;let S=IS(w.nativeEvent);if(!S)return;y.activePointerId=S.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=w.currentTarget,y.pointerType="touch",d||Au(y.target),C(Ur(y.target,w),y.pointerType)&&w.stopPropagation(),v(Ot(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let S=$m(w.nativeEvent,y.activePointerId),_=!0;S&&Em(S,w.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,_=C(Ur(y.target,w),y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,_=E(Ur(y.target,w),y.pointerType,!1),D(Ur(y.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!Xe(w.currentTarget,Fe(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let S=$m(w.nativeEvent,y.activePointerId),_=!0;S&&Em(S,w.currentTarget)&&y.pointerType!=null?(T(Ur(y.target,w),y.pointerType),_=E(Ur(y.target,w),y.pointerType),V(w.nativeEvent,y.target)):y.isOverTarget&&y.pointerType!=null&&(_=E(Ur(y.target,w),y.pointerType,!1)),_&&w.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&Ii(y.target),$()},M.onTouchCancel=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&(w.stopPropagation(),y.isPressed&&k(Ur(y.target,w)))};let N=w=>{y.isPressed&&Xe(Fe(w),y.target)&&k({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{Xe(w.currentTarget,Fe(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,E,C,T,P,V]);return f.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const y=Le(p.current);if(!y||!y.head||y.getElementById(xm))return;const M=y.createElement("style");M.id=xm,M.textContent=`
|
|
397
425
|
@layer {
|
|
398
|
-
[${
|
|
426
|
+
[${wm}] {
|
|
399
427
|
touch-action: pan-x pan-y pinch-zoom;
|
|
400
428
|
}
|
|
401
429
|
}
|
|
402
|
-
`.trim(),b.head.prepend(M)},[h]),f.useEffect(()=>{let b=x.current;return()=>{var M;d||sc((M=b.target)!==null&&M!==void 0?M:void 0);for(let A of b.disposables)A();b.disposables=[]}},[d]),{isPressed:l||g,pressProps:ze(p,F,{[jg]:!0})}}function lc(e){return e.tagName==="A"&&e.hasAttribute("href")}function uc(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Rt(o).HTMLInputElement&&!Kg(o,r)||o instanceof Rt(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&lc(o))&&r!=="Enter")}function v4(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function zg(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Gr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function En(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function b4(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function y4(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Bg(e,t){let r=t.getBoundingClientRect(),n=b4(e);return y4(r,n)}function x4(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!lc(e)}function Rg(e,t){return e instanceof HTMLInputElement?!Kg(e,t):x4(e)}const w4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Kg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":w4.has(e.type)}let Pn=null,cc=new Set,si=new Map,Sn=!1,dc=!1;const $4={Tab:!0,Escape:!0};function Us(e,t){for(let r of cc)r(e,t)}function E4(e){return!(e.metaKey||!Ur()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hs(e){Sn=!0,E4(e)&&(Pn="keyboard",Us("keyboard",e))}function tr(e){Pn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Sn=!0,Us("pointer",e))}function Wg(e){Yu(e)&&(Sn=!0,Pn="virtual")}function Ug(e){e.target===window||e.target===document||Bs||!e.isTrusted||(!Sn&&!dc&&(Pn="virtual",Us("virtual",e)),Sn=!1,dc=!1)}function Hg(){Bs||(Sn=!1,dc=!0)}function fc(e){if(typeof window>"u"||typeof document>"u"||si.get(Rt(e)))return;const t=Rt(e),r=Ne(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Sn=!0,n.apply(this,arguments)},r.addEventListener("keydown",Hs,!0),r.addEventListener("keyup",Hs,!0),r.addEventListener("click",Wg,!0),t.addEventListener("focus",Ug,!0),t.addEventListener("blur",Hg,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",tr,!0),r.addEventListener("pointermove",tr,!0),r.addEventListener("pointerup",tr,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",tr,!0),r.addEventListener("mousemove",tr,!0),r.addEventListener("mouseup",tr,!0)),t.addEventListener("beforeunload",()=>{Gg(e)},{once:!0}),si.set(t,{focus:n})}const Gg=(e,t)=>{const r=Rt(e),n=Ne(e);t&&n.removeEventListener("DOMContentLoaded",t),si.has(r)&&(r.HTMLElement.prototype.focus=si.get(r).focus,n.removeEventListener("keydown",Hs,!0),n.removeEventListener("keyup",Hs,!0),n.removeEventListener("click",Wg,!0),r.removeEventListener("focus",Ug,!0),r.removeEventListener("blur",Hg,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",tr,!0),n.removeEventListener("pointermove",tr,!0),n.removeEventListener("pointerup",tr,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",tr,!0),n.removeEventListener("mousemove",tr,!0),n.removeEventListener("mouseup",tr,!0)),si.delete(r))};function P4(e){const t=Ne(e);let r;return t.readyState!=="loading"?fc(e):(r=()=>{fc(e)},t.addEventListener("DOMContentLoaded",r)),()=>Gg(e,r)}typeof document<"u"&&P4();function Gs(){return Pn!=="pointer"}function Zs(){return Pn}function pc(e){Pn=e,Us(e,null)}const S4=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function C4(e,t,r){let n=Ne(r?.target);const o=typeof window<"u"?Rt(r?.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?Rt(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?Rt(r?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Rt(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!S4.has(n.activeElement.type)||n.activeElement instanceof i||n.activeElement instanceof s&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof a&&!$4[r.key])}function T4(e,t,r){fc(),f.useEffect(()=>{let n=(o,i)=>{C4(!!r?.isTextInput,o,i)&&e(Gs())};return cc.add(n),()=>{cc.delete(n)}},t)}function Cn(e){const t=Ne(e),r=It(t);if(Zs()==="virtual"){let n=r;ug(()=>{It(t)===n&&e.isConnected&&lr(e)})}else lr(e)}function Zg(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),s=Og(i),a=f.useCallback(l=>{const c=Ne(l.target),u=c?It(c):It();l.target===l.currentTarget&&u===Le(l.nativeEvent)&&(r&&r(l),o&&o(!0),s(l))},[o,r,s]);return{focusProps:{onFocus:!t&&(r||o||n)?a:void 0,onBlur:!t&&(n||o)?i:void 0}}}function qg(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function k4(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:qg(e.onKeyDown),onKeyUp:qg(e.onKeyUp)}}}let I4=f.createContext(null);function _4(e){let t=f.useContext(I4)||{};fg(t,e);let{ref:r,...n}=t;return n}function hc(e,t){let{focusProps:r}=Zg(e),{keyboardProps:n}=k4(e),o=ze(r,n),i=_4(t),s=e.isDisabled?{}:i,a=f.useRef(e.autoFocus);f.useEffect(()=>{a.current&&t.current&&Cn(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:ze({...o,tabIndex:l},s)}}function M4({children:e}){let t=f.useMemo(()=>({register:()=>{}}),[]);return f.createElement(ac.Provider,{value:t},e)}function ai(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=f.useRef({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=Fs(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,i,a]),c=Og(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const h=Ne(d.target),p=It(h);if(!i.current.isFocusWithin&&p===Le(d.nativeEvent)){n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,c(d);let g=d.currentTarget;s(h,"focus",m=>{if(i.current.isFocusWithin&&!Xe(g,m.target)){let x=new h.defaultView.FocusEvent("blur",{relatedTarget:m.target});Ag(x,g);let v=oc(x);l(v)}},{capture:!0})}},[n,o,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let qs=!1,Ys=0;function mc(){qs=!0,setTimeout(()=>{qs=!1},50)}function Yg(e){e.pointerType==="touch"&&mc()}function D4(){if(!(typeof document>"u"))return Ys===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Yg):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",mc)),Ys++,()=>{Ys--,!(Ys>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Yg):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",mc))}}function Xs(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[i,s]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(D4,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Fs(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let h=(m,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let v=m.currentTarget;a.target=v,l(Ne(m.target),"pointerover",$=>{a.isHovered&&a.target&&!Xe(a.target,$.target)&&p($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),s(!0)},p=(m,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),s(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{qs&&m.pointerType==="mouse"||h(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!qs&&h(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&p(m,"mouse")}),{hoverProps:g,triggerHoverEnd:p}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:i}}function A4(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,i=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),s=nt(l=>{r&&Js(l,t)&&(o&&o(l),i.current.isPointerDown=!0)}),a=nt(l=>{r&&r(l)});f.useEffect(()=>{let l=i.current;if(n)return;const c=t.current,u=Ne(c);if(typeof PointerEvent<"u"){let d=h=>{l.isPointerDown&&Js(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("pointerdown",s,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",s,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=p=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Js(p,t)&&a(p),l.isPointerDown=!1},h=p=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Js(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("mousedown",s,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",s,!0),u.addEventListener("touchend",h,!0),()=>{u.removeEventListener("mousedown",s,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",s,!0),u.removeEventListener("touchend",h,!0)}}},[t,n,s,a])}function Js(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}const O4=500;function Xg(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:i=O4,accessibilityDescription:s}=e;const a=f.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=Fs(),{pressProps:u}=Ir({isDisabled:t,onPressStart(h){if(h.continuePropagation(),(h.pointerType==="mouse"||h.pointerType==="touch")&&(r&&r({...h,type:"longpressstart"}),a.current=setTimeout(()=>{h.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Ne(h.target).activeElement!==h.target&&lr(h.target),o&&o({...h,type:"longpress"}),a.current=void 0},i),h.pointerType==="touch")){let p=g=>{g.preventDefault()};l(h.target,"contextmenu",p,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(h.target,"contextmenu",p)},30)},{once:!0})}},onPressEnd(h){a.current&&clearTimeout(a.current),n&&(h.pointerType==="mouse"||h.pointerType==="touch")&&n({...h,type:"longpressend"})}}),d=BT(o&&!t?s:void 0);return{longPressProps:ze(u,d)}}const Jg=f.createContext(null),gc="react-aria-focus-scope-restore";let Ue=null;function N4(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,i=f.useRef(null),s=f.useRef(null),a=f.useRef([]),{parentNode:l}=f.useContext(Jg)||{},c=f.useMemo(()=>new yc({scopeRef:a}),[a]);We(()=>{let h=l||dt.root;if(dt.getTreeNode(h.scopeRef)&&Ue&&!Qs(Ue,h.scopeRef)){let p=dt.getTreeNode(Ue);p&&(h=p)}h.addChild(c),dt.addNode(c)},[c,l]),We(()=>{let h=dt.getTreeNode(a);h&&(h.contain=!!r)},[r]),We(()=>{var h;let p=(h=i.current)===null||h===void 0?void 0:h.nextSibling,g=[],m=x=>x.stopPropagation();for(;p&&p!==s.current;)g.push(p),p.addEventListener(gc,m),p=p.nextSibling;return a.current=g,()=>{for(let x of g)x.removeEventListener(gc,m)}},[t]),B4(a,n,r),V4(a,r),R4(a,n,r),z4(a,o),f.useEffect(()=>{const h=It(Ne(a.current?a.current[0]:void 0));let p=null;if(rr(h,a.current)){for(let g of dt.traverse())g.scopeRef&&rr(h,g.scopeRef.current)&&(p=g);p===dt.getTreeNode(a)&&(Ue=p.scopeRef)}},[a]),We(()=>()=>{var h,p,g;let m=(g=(p=dt.getTreeNode(a))===null||p===void 0||(h=p.parent)===null||h===void 0?void 0:h.scopeRef)!==null&&g!==void 0?g:null;(a===Ue||Qs(a,Ue))&&(!m||dt.getTreeNode(m))&&(Ue=m),dt.removeTreeNode(a)},[a]);let u=f.useMemo(()=>L4(a),[]),d=f.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return f.createElement(Jg.Provider,{value:d},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:s}))}function L4(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var a;let l=n||It(Ne((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[0].previousElementSibling,u=Tn(r),d=mr(u,{tabbable:o,accept:s},r);d.currentNode=rr(l,r)?l:c;let h=d.nextNode();return!h&&i&&(d.currentNode=c,h=d.nextNode()),h&&_r(h,!0),h},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:i,accept:s}=t;var a;let l=n||It(Ne((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[r.length-1].nextElementSibling,u=Tn(r),d=mr(u,{tabbable:o,accept:s},r);d.currentNode=rr(l,r)?l:c;let h=d.previousNode();return!h&&i&&(d.currentNode=c,h=d.previousNode()),h&&_r(h,!0),h},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Tn(r),s=mr(i,{tabbable:n,accept:o},r);s.currentNode=r[0].previousElementSibling;let a=s.nextNode();return a&&_r(a,!0),a},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,i=Tn(r),s=mr(i,{tabbable:n,accept:o},r);s.currentNode=r[r.length-1].nextElementSibling;let a=s.previousNode();return a&&_r(a,!0),a}}}function Tn(e){return e[0].parentElement}function li(e){let t=dt.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function F4(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Ne(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(i=>!i.form);else{var r,n;let i=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...i??[]]}return t?!t.some(i=>i.checked):!1}function V4(e,t){let r=f.useRef(void 0),n=f.useRef(void 0);We(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const i=Ne(o?o[0]:void 0);let s=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!li(e)||c.isComposing)return;let u=It(i),d=e.current;if(!d||!rr(u,d))return;let h=Tn(d),p=mr(h,{tabbable:!0},d);if(!u)return;p.currentNode=u;let g=c.shiftKey?p.previousNode():p.nextNode();g||(p.currentNode=c.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,g=c.shiftKey?p.previousNode():p.nextNode()),c.preventDefault(),g&&_r(g,!0)},a=c=>{(!Ue||Qs(Ue,e))&&rr(Le(c),e.current)?(Ue=e,r.current=Le(c)):li(e)&&!Zr(Le(c),e)?r.current?r.current.focus():Ue&&Ue.current&&vc(Ue.current):li(e)&&(r.current=Le(c))},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=Zs(),d=(u==="virtual"||u===null)&&Wu()&&Ku(),h=It(i);if(!d&&h&&li(e)&&!Zr(h,e)){Ue=e;let g=Le(c);if(g&&g.isConnected){var p;r.current=g,(p=r.current)===null||p===void 0||p.focus()}else Ue.current&&vc(Ue.current)}})};return i.addEventListener("keydown",s,!1),i.addEventListener("focusin",a,!1),o?.forEach(c=>c.addEventListener("focusin",a,!1)),o?.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{i.removeEventListener("keydown",s,!1),i.removeEventListener("focusin",a,!1),o?.forEach(c=>c.removeEventListener("focusin",a,!1)),o?.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),We(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Qg(e){return Zr(e)}function rr(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Zr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of dt.traverse(dt.getTreeNode(t)))if(r&&rr(e,r.current))return!0;return!1}function j4(e){return Zr(e,Ue)}function Qs(e,t){var r;let n=(r=dt.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function _r(e,t=!1){if(e!=null&&!t)try{Cn(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ev(e,t=!0){let r=e[0].previousElementSibling,n=Tn(e),o=mr(n,{tabbable:t},e);o.currentNode=r;let i=o.nextNode();return t&&!i&&(n=Tn(e),o=mr(n,{tabbable:!1},e),o.currentNode=r,i=o.nextNode()),i}function vc(e,t=!0){_r(ev(e,t))}function z4(e,t){const r=f.useRef(t);f.useEffect(()=>{if(r.current){Ue=e;const n=Ne(e.current?e.current[0]:void 0);!rr(It(n),Ue.current)&&e.current&&vc(e.current)}r.current=!1},[e])}function B4(e,t,r){We(()=>{if(t||r)return;let n=e.current;const o=Ne(n?n[0]:void 0);let i=s=>{let a=Le(s);rr(a,e.current)?Ue=e:Qg(a)||(Ue=null)};return o.addEventListener("focusin",i,!1),n?.forEach(s=>s.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),n?.forEach(s=>s.removeEventListener("focusin",i,!1))}},[e,t,r])}function tv(e){let t=dt.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function R4(e,t,r){const n=f.useRef(typeof document<"u"?It(Ne(e.current?e.current[0]:void 0)):null);We(()=>{let o=e.current;const i=Ne(o?o[0]:void 0);if(!t||r)return;let s=()=>{(!Ue||Qs(Ue,e))&&rr(It(i),e.current)&&(Ue=e)};return i.addEventListener("focusin",s,!1),o?.forEach(a=>a.addEventListener("focusin",s,!1)),()=>{i.removeEventListener("focusin",s,!1),o?.forEach(a=>a.removeEventListener("focusin",s,!1))}},[e,r]),We(()=>{const o=Ne(e.current?e.current[0]:void 0);if(!t)return;let i=s=>{if(s.key!=="Tab"||s.altKey||s.ctrlKey||s.metaKey||!li(e)||s.isComposing)return;let a=o.activeElement;if(!Zr(a,e)||!tv(e))return;let l=dt.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=mr(o.body,{tabbable:!0});u.currentNode=a;let d=s.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!d||!Zr(d,e))&&c){u.currentNode=c;do d=s.shiftKey?u.previousNode():u.nextNode();while(Zr(d,e));s.preventDefault(),s.stopPropagation(),d?_r(d,!0):Qg(c)?_r(c,!0):a.blur()}};return r||o.addEventListener("keydown",i,!0),()=>{r||o.removeEventListener("keydown",i,!0)}},[e,t,r]),We(()=>{const o=Ne(e.current?e.current[0]:void 0);if(!t)return;let i=dt.getTreeNode(e);if(i){var s;return i.nodeToRestore=(s=n.current)!==null&&s!==void 0?s:void 0,()=>{let a=dt.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,c=It(o);if(t&&l&&(c&&Zr(c,e)||c===o.body&&tv(e))){let u=dt.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){rv(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&dt.getTreeNode(d.scopeRef)){let h=ev(d.scopeRef.current,!0);rv(h);return}d=d.parent}}})}}}},[e,t])}function rv(e){e.dispatchEvent(new CustomEvent(gc,{bubbles:!0,cancelable:!0}))&&_r(e)}function mr(e,t,r){let n=t?.tabbable?YT:bg,o=e?.nodeType===Node.ELEMENT_NODE?e:null,i=Ne(o),s=xT(i,e||i,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!F4(a)||s.currentNode.tagName==="INPUT"&&s.currentNode.type==="radio"&&s.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:n(a)&&(!r||rr(a,r))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(s.currentNode=t.from),s}class bc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let i=new yc({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&rr(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(i=>n&&n.addChild(i))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new bc;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new yc({scopeRef:null}),this.fastMap.set(null,this.root)}}class yc{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let dt=new bc;function So(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Gs()}),[i,s]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(p=>{o.current.isFocused=p,s(p),c()},[c]);T4(p=>{o.current.isFocusVisible=p,c()},[],{isTextInput:r});let{focusProps:d}=Zg({isDisabled:n,onFocusChange:u}),{focusWithinProps:h}=ai({isDisabled:!n,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:a,focusProps:n?h:d}}function nv(e){let t=W4(Ne(e));t!==e&&(t&&K4(t,e),e&&ov(e,t))}function K4(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function ov(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function W4(e){let t=It(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}function iv(e,t,r){let{type:n}=e,{isOpen:o}=t;f.useEffect(()=>{r&&r.current&&Tg.set(r.current,t.close)});let i;n==="menu"?i=!0:n==="listbox"&&(i="listbox");let s=Bt();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?s:void 0,onPress:t.toggle},overlayProps:{id:s}}}const ui=typeof document<"u"&&window.visualViewport;let ea=0,xc;function wc(e={}){let{isDisabled:t}=e;We(()=>{if(!t)return ea++,ea===1&&(Ls()?xc=H4():xc=U4()),()=>{ea--,ea===0&&xc()}},[t])}function U4(){let e=window.innerWidth-document.documentElement.clientWidth;return wn(e>0&&("scrollbarGutter"in document.documentElement.style?$c(document.documentElement,"scrollbarGutter","stable"):$c(document.documentElement,"paddingRight",`${e}px`)),$c(document.documentElement,"overflow","hidden"))}function H4(){let e,t=!1,r=l=>{let c=l.target;e=wo(c)?c:pg(c,!0),t=!1;let u=c.ownerDocument.defaultView.getSelection();u&&!u.isCollapsed&&u.containsNode(c,!0)&&(t=!0),"selectionStart"in c&&"selectionEnd"in c&&c.selectionStart<c.selectionEnd&&c.ownerDocument.activeElement===c&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
430
|
+
`.trim(),y.head.prepend(M)},[p]),f.useEffect(()=>{let y=x.current;return()=>{var M;d||Ii((M=y.target)!==null&&M!==void 0?M:void 0);for(let A of y.disposables)A();y.disposables=[]}},[d]),{isPressed:l||g,pressProps:_e(h,F,{[wm]:!0})}}function Ou(e){return e.tagName==="A"&&e.hasAttribute("href")}function Lu(e,t){const{key:r,code:n}=e,o=t,s=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Ot(o).HTMLInputElement&&!Cm(o,r)||o instanceof Ot(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&Ou(o))&&r!=="Enter")}function IS(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $m(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ur(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function yn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function _S(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function MS(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Em(e,t){let r=t.getBoundingClientRect(),n=_S(e);return MS(r,n)}function DS(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Ou(e)}function Pm(e,t){return e instanceof HTMLInputElement?!Cm(e,t):DS(e)}const AS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Cm(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":AS.has(e.type)}let xn=null,Fu=new Set,Qo=new Map,wn=!1,Vu=!1;const NS={Tab:!0,Escape:!0};function Ai(e,t){for(let r of Fu)r(e,t)}function OS(e){return!(e.metaKey||!zr()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ni(e){wn=!0,OS(e)&&(xn="keyboard",Ai("keyboard",e))}function Jt(e){xn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(wn=!0,Ai("pointer",e))}function Sm(e){vl(e)&&(wn=!0,xn="virtual")}function Tm(e){e.target===window||e.target===document||Ti||!e.isTrusted||(!wn&&!Vu&&(xn="virtual",Ai("virtual",e)),wn=!1,Vu=!1)}function km(){Ti||(wn=!1,Vu=!0)}function ju(e){if(typeof window>"u"||typeof document>"u"||Qo.get(Ot(e)))return;const t=Ot(e),r=Le(e);let n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){wn=!0,n.apply(this,arguments)},r.addEventListener("keydown",Ni,!0),r.addEventListener("keyup",Ni,!0),r.addEventListener("click",Sm,!0),t.addEventListener("focus",Tm,!0),t.addEventListener("blur",km,!1),typeof PointerEvent<"u"?(r.addEventListener("pointerdown",Jt,!0),r.addEventListener("pointermove",Jt,!0),r.addEventListener("pointerup",Jt,!0)):process.env.NODE_ENV==="test"&&(r.addEventListener("mousedown",Jt,!0),r.addEventListener("mousemove",Jt,!0),r.addEventListener("mouseup",Jt,!0)),t.addEventListener("beforeunload",()=>{Im(e)},{once:!0}),Qo.set(t,{focus:n})}const Im=(e,t)=>{const r=Ot(e),n=Le(e);t&&n.removeEventListener("DOMContentLoaded",t),Qo.has(r)&&(r.HTMLElement.prototype.focus=Qo.get(r).focus,n.removeEventListener("keydown",Ni,!0),n.removeEventListener("keyup",Ni,!0),n.removeEventListener("click",Sm,!0),r.removeEventListener("focus",Tm,!0),r.removeEventListener("blur",km,!1),typeof PointerEvent<"u"?(n.removeEventListener("pointerdown",Jt,!0),n.removeEventListener("pointermove",Jt,!0),n.removeEventListener("pointerup",Jt,!0)):process.env.NODE_ENV==="test"&&(n.removeEventListener("mousedown",Jt,!0),n.removeEventListener("mousemove",Jt,!0),n.removeEventListener("mouseup",Jt,!0)),Qo.delete(r))};function LS(e){const t=Le(e);let r;return t.readyState!=="loading"?ju(e):(r=()=>{ju(e)},t.addEventListener("DOMContentLoaded",r)),()=>Im(e,r)}typeof document<"u"&&LS();function Eo(){return xn!=="pointer"}function es(){return xn}function Oi(e){xn=e,Ai(e,null)}const FS=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function VS(e,t,r){let n=Le(r?.target);const o=typeof window<"u"?Ot(r?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?Ot(r?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?Ot(r?.target).HTMLElement:HTMLElement,a=typeof window<"u"?Ot(r?.target).KeyboardEvent:KeyboardEvent;return e=e||n.activeElement instanceof o&&!FS.has(n.activeElement.type)||n.activeElement instanceof s||n.activeElement instanceof i&&n.activeElement.isContentEditable,!(e&&t==="keyboard"&&r instanceof a&&!NS[r.key])}function _m(e,t,r){ju(),f.useEffect(()=>{let n=(o,s)=>{VS(!!r?.isTextInput,o,s)&&e(Eo())};return Fu.add(n),()=>{Fu.delete(n)}},t)}function $n(e){const t=Le(e),r=Tt(t);if(es()==="virtual"){let n=r;Yf(()=>{Tt(t)===n&&e.isConnected&&Yt(e)})}else Yt(e)}function zu(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const s=f.useCallback(l=>{if(l.target===l.currentTarget)return n&&n(l),o&&o(!1),!0},[n,o]),i=mm(s),a=f.useCallback(l=>{const c=Le(l.target),u=c?Tt(c):Tt();l.target===l.currentTarget&&u===Fe(l.nativeEvent)&&(r&&r(l),o&&o(!0),i(l))},[o,r,i]);return{focusProps:{onFocus:!t&&(r||o||n)?a:void 0,onBlur:!t&&(n||o)?s:void 0}}}function Mm(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){t&&process.env.NODE_ENV!=="production"?console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior."):t=!0},continuePropagation(){t=!1},isPropagationStopped(){return t}};e(n),t&&r.stopPropagation()}}function Dm(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Mm(e.onKeyDown),onKeyUp:Mm(e.onKeyUp)}}}let jS=f.createContext(null);function zS(e){let t=f.useContext(jS)||{};Jf(t,e);let{ref:r,...n}=t;return n}function En(e,t){let{focusProps:r}=zu(e),{keyboardProps:n}=Dm(e),o=_e(r,n),s=zS(t),i=e.isDisabled?{}:s,a=f.useRef(e.autoFocus);f.useEffect(()=>{a.current&&t.current&&$n(t.current),a.current=!1},[t]);let l=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(l=void 0),{focusableProps:_e({...o,tabIndex:l},i)}}function BS({children:e}){let t=f.useMemo(()=>({register:()=>{}}),[]);return f.createElement(Nu.Provider,{value:t},e)}function Hr(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=f.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:a}=cn(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&s.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(s.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,s,a]),c=mm(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const p=Le(d.target),h=Tt(p);if(!s.current.isFocusWithin&&h===Fe(d.nativeEvent)){n&&n(d),o&&o(!0),s.current.isFocusWithin=!0,c(d);let g=d.currentTarget;i(p,"focus",m=>{if(s.current.isFocusWithin&&!Xe(g,m.target)){let x=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});hm(x,g);let v=Mu(x);l(v)}},{capture:!0})}},[n,o,c,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Li=!1,Fi=0;function Bu(){Li=!0,setTimeout(()=>{Li=!1},50)}function Am(e){e.pointerType==="touch"&&Bu()}function RS(){if(!(typeof document>"u"))return Fi===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",Am):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Bu)),Fi++,()=>{Fi--,!(Fi>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Am):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Bu))}}function Pn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[s,i]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(RS,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=cn(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let p=(m,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let v=m.currentTarget;a.target=v,l(Le(m.target),"pointerover",$=>{a.isHovered&&a.target&&!Xe(a.target,$.target)&&h($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),i(!0)},h=(m,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),i(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{Li&&m.pointerType==="mouse"||p(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&h(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!Li&&p(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&h(m,"mouse")}),{hoverProps:g,triggerHoverEnd:h}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:s}}function KS(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=Ye(l=>{r&&Vi(l,t)&&(o&&o(l),s.current.isPointerDown=!0)}),a=Ye(l=>{r&&r(l)});f.useEffect(()=>{let l=s.current;if(n)return;const c=t.current,u=Le(c);if(typeof PointerEvent<"u"){let d=p=>{l.isPointerDown&&Vi(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("pointerdown",i,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",i,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Vi(h,t)&&a(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Vi(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("mousedown",i,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",i,!0),u.addEventListener("touchend",p,!0),()=>{u.removeEventListener("mousedown",i,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",i,!0),u.removeEventListener("touchend",p,!0)}}},[t,n,i,a])}function Vi(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}function Nm(e){let{onMoveStart:t,onMove:r,onMoveEnd:n}=e,o=f.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:s,removeGlobalListener:i}=cn(),a=Ye((u,d,p,h)=>{p===0&&h===0||(o.current.didMove||(o.current.didMove=!0,t?.({type:"movestart",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})),r?.({type:"move",pointerType:d,deltaX:p,deltaY:h,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey}))}),l=Ye((u,d)=>{Ii(),o.current.didMove&&n?.({type:"moveend",pointerType:d,shiftKey:u.shiftKey,metaKey:u.metaKey,ctrlKey:u.ctrlKey,altKey:u.altKey})});return{moveProps:f.useMemo(()=>{let u={},d=()=>{Au(),o.current.didMove=!1};if(typeof PointerEvent>"u"&&process.env.NODE_ENV==="test"){let h=v=>{if(v.button===0){var $,C,E,T;a(v,"mouse",v.pageX-((E=($=o.current.lastPosition)===null||$===void 0?void 0:$.pageX)!==null&&E!==void 0?E:0),v.pageY-((T=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageY)!==null&&T!==void 0?T:0)),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY}}},g=v=>{v.button===0&&(l(v,"mouse"),i(window,"mousemove",h,!1),i(window,"mouseup",g,!1))};u.onMouseDown=v=>{v.button===0&&(d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:v.pageX,pageY:v.pageY},s(window,"mousemove",h,!1),s(window,"mouseup",g,!1))};let m=v=>{let $=[...v.changedTouches].findIndex(({identifier:D})=>D===o.current.id);if($>=0){var C,E;let{pageX:D,pageY:P}=v.changedTouches[$];var T,k;a(v,"touch",D-((T=(C=o.current.lastPosition)===null||C===void 0?void 0:C.pageX)!==null&&T!==void 0?T:0),P-((k=(E=o.current.lastPosition)===null||E===void 0?void 0:E.pageY)!==null&&k!==void 0?k:0)),o.current.lastPosition={pageX:D,pageY:P}}},x=v=>{[...v.changedTouches].findIndex(({identifier:C})=>C===o.current.id)>=0&&(l(v,"touch"),o.current.id=null,i(window,"touchmove",m),i(window,"touchend",x),i(window,"touchcancel",x))};u.onTouchStart=v=>{if(v.changedTouches.length===0||o.current.id!=null)return;let{pageX:$,pageY:C,identifier:E}=v.changedTouches[0];d(),v.stopPropagation(),v.preventDefault(),o.current.lastPosition={pageX:$,pageY:C},o.current.id=E,s(window,"touchmove",m,!1),s(window,"touchend",x,!1),s(window,"touchcancel",x,!1)}}else{let h=m=>{if(m.pointerId===o.current.id){var x,v;let E=m.pointerType||"mouse";var $,C;a(m,E,m.pageX-(($=(x=o.current.lastPosition)===null||x===void 0?void 0:x.pageX)!==null&&$!==void 0?$:0),m.pageY-((C=(v=o.current.lastPosition)===null||v===void 0?void 0:v.pageY)!==null&&C!==void 0?C:0)),o.current.lastPosition={pageX:m.pageX,pageY:m.pageY}}},g=m=>{if(m.pointerId===o.current.id){let x=m.pointerType||"mouse";l(m,x),o.current.id=null,i(window,"pointermove",h,!1),i(window,"pointerup",g,!1),i(window,"pointercancel",g,!1)}};u.onPointerDown=m=>{m.button===0&&o.current.id==null&&(d(),m.stopPropagation(),m.preventDefault(),o.current.lastPosition={pageX:m.pageX,pageY:m.pageY},o.current.id=m.pointerId,s(window,"pointermove",h,!1),s(window,"pointerup",g,!1),s(window,"pointercancel",g,!1))}}let p=(h,g,m)=>{d(),a(h,"keyboard",g,m),l(h,"keyboard")};return u.onKeyDown=h=>{switch(h.key){case"Left":case"ArrowLeft":h.preventDefault(),h.stopPropagation(),p(h,-1,0);break;case"Right":case"ArrowRight":h.preventDefault(),h.stopPropagation(),p(h,1,0);break;case"Up":case"ArrowUp":h.preventDefault(),h.stopPropagation(),p(h,0,-1);break;case"Down":case"ArrowDown":h.preventDefault(),h.stopPropagation(),p(h,0,1);break}},u},[o,s,i,a,l])}}const WS=500;function Om(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:o,threshold:s=WS,accessibilityDescription:i}=e;const a=f.useRef(void 0);let{addGlobalListener:l,removeGlobalListener:c}=cn(),{pressProps:u}=hr({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),a.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),Le(p.target).activeElement!==p.target&&Yt(p.target),o&&o({...p,type:"longpress"}),a.current=void 0},s),p.pointerType==="touch")){let h=g=>{g.preventDefault()};l(p.target,"contextmenu",h,{once:!0}),l(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(p){a.current&&clearTimeout(a.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),d=G$(o&&!t?i:void 0);return{longPressProps:_e(u,d)}}const Lm=f.createContext(null),Ru="react-aria-focus-scope-restore";let Ue=null;function US(e){let{children:t,contain:r,restoreFocus:n,autoFocus:o}=e,s=f.useRef(null),i=f.useRef(null),a=f.useRef([]),{parentNode:l}=f.useContext(Lm)||{},c=f.useMemo(()=>new Wu({scopeRef:a}),[a]);Be(()=>{let p=l||ft.root;if(ft.getTreeNode(p.scopeRef)&&Ue&&!ji(Ue,p.scopeRef)){let h=ft.getTreeNode(Ue);h&&(p=h)}p.addChild(c),ft.addNode(c)},[c,l]),Be(()=>{let p=ft.getTreeNode(a);p&&(p.contain=!!r)},[r]),Be(()=>{var p;let h=(p=s.current)===null||p===void 0?void 0:p.nextSibling,g=[],m=x=>x.stopPropagation();for(;h&&h!==i.current;)g.push(h),h.addEventListener(Ru,m),h=h.nextSibling;return a.current=g,()=>{for(let x of g)x.removeEventListener(Ru,m)}},[t]),XS(a,n,r),ZS(a,r),JS(a,n,r),YS(a,o),f.useEffect(()=>{const p=Tt(Le(a.current?a.current[0]:void 0));let h=null;if(Qt(p,a.current)){for(let g of ft.traverse())g.scopeRef&&Qt(p,g.scopeRef.current)&&(h=g);h===ft.getTreeNode(a)&&(Ue=h.scopeRef)}},[a]),Be(()=>()=>{var p,h,g;let m=(g=(h=ft.getTreeNode(a))===null||h===void 0||(p=h.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&g!==void 0?g:null;(a===Ue||ji(a,Ue))&&(!m||ft.getTreeNode(m))&&(Ue=m),ft.removeTreeNode(a)},[a]);let u=f.useMemo(()=>HS(a),[]),d=f.useMemo(()=>({focusManager:u,parentNode:c}),[c,u]);return f.createElement(Lm.Provider,{value:d},f.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:s}),t,f.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:i}))}function HS(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:o,wrap:s,accept:i}=t;var a;let l=n||Tt(Le((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[0].previousElementSibling,u=Cn(r),d=mr(u,{tabbable:o,accept:i},r);d.currentNode=Qt(l,r)?l:c;let p=d.nextNode();return!p&&s&&(d.currentNode=c,p=d.nextNode()),p&&_r(p,!0),p},focusPrevious(t={}){let r=e.current,{from:n,tabbable:o,wrap:s,accept:i}=t;var a;let l=n||Tt(Le((a=r[0])!==null&&a!==void 0?a:void 0)),c=r[r.length-1].nextElementSibling,u=Cn(r),d=mr(u,{tabbable:o,accept:i},r);d.currentNode=Qt(l,r)?l:c;let p=d.previousNode();return!p&&s&&(d.currentNode=c,p=d.previousNode()),p&&_r(p,!0),p},focusFirst(t={}){let r=e.current,{tabbable:n,accept:o}=t,s=Cn(r),i=mr(s,{tabbable:n,accept:o},r);i.currentNode=r[0].previousElementSibling;let a=i.nextNode();return a&&_r(a,!0),a},focusLast(t={}){let r=e.current,{tabbable:n,accept:o}=t,s=Cn(r),i=mr(s,{tabbable:n,accept:o},r);i.currentNode=r[r.length-1].nextElementSibling;let a=i.previousNode();return a&&_r(a,!0),a}}}function Cn(e){return e[0].parentElement}function ts(e){let t=ft.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function GS(e){if(e.checked)return!0;let t=[];if(!e.form)t=[...Le(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)].filter(s=>!s.form);else{var r,n;let s=(n=e.form)===null||n===void 0||(r=n.elements)===null||r===void 0?void 0:r.namedItem(e.name);t=[...s??[]]}return t?!t.some(s=>s.checked):!1}function ZS(e,t){let r=f.useRef(void 0),n=f.useRef(void 0);Be(()=>{let o=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}const s=Le(o?o[0]:void 0);let i=c=>{if(c.key!=="Tab"||c.altKey||c.ctrlKey||c.metaKey||!ts(e)||c.isComposing)return;let u=Tt(s),d=e.current;if(!d||!Qt(u,d))return;let p=Cn(d),h=mr(p,{tabbable:!0},d);if(!u)return;h.currentNode=u;let g=c.shiftKey?h.previousNode():h.nextNode();g||(h.currentNode=c.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,g=c.shiftKey?h.previousNode():h.nextNode()),c.preventDefault(),g&&_r(g,!0)},a=c=>{(!Ue||ji(Ue,e))&&Qt(Fe(c),e.current)?(Ue=e,r.current=Fe(c)):ts(e)&&!Gr(Fe(c),e)?r.current?r.current.focus():Ue&&Ue.current&&Ku(Ue.current):ts(e)&&(r.current=Fe(c))},l=c=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{let u=es(),d=(u==="virtual"||u===null)&&dl()&&cl(),p=Tt(s);if(!d&&p&&ts(e)&&!Gr(p,e)){Ue=e;let g=Fe(c);if(g&&g.isConnected){var h;r.current=g,(h=r.current)===null||h===void 0||h.focus()}else Ue.current&&Ku(Ue.current)}})};return s.addEventListener("keydown",i,!1),s.addEventListener("focusin",a,!1),o?.forEach(c=>c.addEventListener("focusin",a,!1)),o?.forEach(c=>c.addEventListener("focusout",l,!1)),()=>{s.removeEventListener("keydown",i,!1),s.removeEventListener("focusin",a,!1),o?.forEach(c=>c.removeEventListener("focusin",a,!1)),o?.forEach(c=>c.removeEventListener("focusout",l,!1))}},[e,t]),Be(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function Fm(e){return Gr(e)}function Qt(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function Gr(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ft.traverse(ft.getTreeNode(t)))if(r&&Qt(e,r.current))return!0;return!1}function qS(e){return Gr(e,Ue)}function ji(e,t){var r;let n=(r=ft.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function _r(e,t=!1){if(e!=null&&!t)try{$n(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Vm(e,t=!0){let r=e[0].previousElementSibling,n=Cn(e),o=mr(n,{tabbable:t},e);o.currentNode=r;let s=o.nextNode();return t&&!s&&(n=Cn(e),o=mr(n,{tabbable:!1},e),o.currentNode=r,s=o.nextNode()),s}function Ku(e,t=!0){_r(Vm(e,t))}function YS(e,t){const r=f.useRef(t);f.useEffect(()=>{if(r.current){Ue=e;const n=Le(e.current?e.current[0]:void 0);!Qt(Tt(n),Ue.current)&&e.current&&Ku(e.current)}r.current=!1},[e])}function XS(e,t,r){Be(()=>{if(t||r)return;let n=e.current;const o=Le(n?n[0]:void 0);let s=i=>{let a=Fe(i);Qt(a,e.current)?Ue=e:Fm(a)||(Ue=null)};return o.addEventListener("focusin",s,!1),n?.forEach(i=>i.addEventListener("focusin",s,!1)),()=>{o.removeEventListener("focusin",s,!1),n?.forEach(i=>i.removeEventListener("focusin",s,!1))}},[e,t,r])}function jm(e){let t=ft.getTreeNode(Ue);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return t?.scopeRef===e}function JS(e,t,r){const n=f.useRef(typeof document<"u"?Tt(Le(e.current?e.current[0]:void 0)):null);Be(()=>{let o=e.current;const s=Le(o?o[0]:void 0);if(!t||r)return;let i=()=>{(!Ue||ji(Ue,e))&&Qt(Tt(s),e.current)&&(Ue=e)};return s.addEventListener("focusin",i,!1),o?.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{s.removeEventListener("focusin",i,!1),o?.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,r]),Be(()=>{const o=Le(e.current?e.current[0]:void 0);if(!t)return;let s=i=>{if(i.key!=="Tab"||i.altKey||i.ctrlKey||i.metaKey||!ts(e)||i.isComposing)return;let a=o.activeElement;if(!Gr(a,e)||!jm(e))return;let l=ft.getTreeNode(e);if(!l)return;let c=l.nodeToRestore,u=mr(o.body,{tabbable:!0});u.currentNode=a;let d=i.shiftKey?u.previousNode():u.nextNode();if((!c||!c.isConnected||c===o.body)&&(c=void 0,l.nodeToRestore=void 0),(!d||!Gr(d,e))&&c){u.currentNode=c;do d=i.shiftKey?u.previousNode():u.nextNode();while(Gr(d,e));i.preventDefault(),i.stopPropagation(),d?_r(d,!0):Fm(c)?_r(c,!0):a.blur()}};return r||o.addEventListener("keydown",s,!0),()=>{r||o.removeEventListener("keydown",s,!0)}},[e,t,r]),Be(()=>{const o=Le(e.current?e.current[0]:void 0);if(!t)return;let s=ft.getTreeNode(e);if(s){var i;return s.nodeToRestore=(i=n.current)!==null&&i!==void 0?i:void 0,()=>{let a=ft.getTreeNode(e);if(!a)return;let l=a.nodeToRestore,c=Tt(o);if(t&&l&&(c&&Gr(c,e)||c===o.body&&jm(e))){let u=ft.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let d=u.getTreeNode(e);for(;d;){if(d.nodeToRestore&&d.nodeToRestore.isConnected){zm(d.nodeToRestore);return}d=d.parent}for(d=u.getTreeNode(e);d;){if(d.scopeRef&&d.scopeRef.current&&ft.getTreeNode(d.scopeRef)){let p=Vm(d.scopeRef.current,!0);zm(p);return}d=d.parent}}})}}}},[e,t])}function zm(e){e.dispatchEvent(new CustomEvent(Ru,{bubbles:!0,cancelable:!0}))&&_r(e)}function mr(e,t,r){let n=t?.tabbable?r2:np,o=e?.nodeType===Node.ELEMENT_NODE?e:null,s=Le(o),i=S$(s,e||s,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(a)||t?.tabbable&&a.tagName==="INPUT"&&a.getAttribute("type")==="radio"&&(!GS(a)||i.currentNode.tagName==="INPUT"&&i.currentNode.type==="radio"&&i.currentNode.name===a.name)?NodeFilter.FILTER_REJECT:n(a)&&(!r||Qt(a,r))&&(!t?.accept||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t?.from&&(i.currentNode=t.from),i}let QS=class s1{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let s=new Wu({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),n&&(s.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&Qt(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(s=>n&&n.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new s1;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new Wu({scopeRef:null}),this.fastMap.set(null,this.root)}},Wu=class{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}},ft=new QS;function Sn(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Eo()}),[s,i]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(h=>{o.current.isFocused=h,i(h),c()},[c]);_m(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:d}=zu({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Hr({isDisabled:!n,onFocusWithinChange:u});return{isFocused:s,isFocusVisible:a,focusProps:n?p:d}}function Bm(e){let t=tT(Le(e));t!==e&&(t&&eT(t,e),e&&Rm(e,t))}function eT(e,t){e.dispatchEvent(new FocusEvent("blur",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:t}))}function Rm(e,t){e.dispatchEvent(new FocusEvent("focus",{relatedTarget:t})),e.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:t}))}function tT(e){let t=Tt(e),r=t?.getAttribute("aria-activedescendant");return r&&e.getElementById(r)||t}const rT=f.createContext({});function nT(){var e;return(e=f.useContext(rT))!==null&&e!==void 0?e:{}}const Uu=f.createContext(null);function oT(e){let{children:t}=e,r=f.useContext(Uu),[n,o]=f.useState(0),s=f.useMemo(()=>({parent:r,modalCount:n,addModal(){o(i=>i+1),r&&r.addModal()},removeModal(){o(i=>i-1),r&&r.removeModal()}}),[r,n]);return f.createElement(Uu.Provider,{value:s},t)}function sT(){let e=f.useContext(Uu);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function iT(e){let{modalProviderProps:t}=sT();return f.createElement("div",{"data-overlay-container":!0,...e,...t})}function aT(e){return f.createElement(oT,null,f.createElement(iT,e))}function Km(e){let t=ro(),{portalContainer:r=t?null:document.body,...n}=e,{getContainer:o}=nT();if(!e.portalContainer&&o&&(r=o()),f.useEffect(()=>{if(r?.closest("[data-overlay-container]"))throw new Error("An OverlayContainer must not be inside another container. Please change the portalContainer prop.")},[r]),!r)return null;let s=f.createElement(aT,n);return Wn.createPortal(s,r)}const Wm={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function lT(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:s}=Hr({isDisabled:!r,onFocusWithinChange:a=>o(a)}),i=f.useMemo(()=>n?t:t?{...Wm,...t}:Wm,[n]);return{visuallyHiddenProps:{...s,style:i}}}function uT(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...s}=e,{visuallyHiddenProps:i}=lT(e);return f.createElement(r,_e(s,i),t)}function cT(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const s=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,r,e.label])}function dT(e){const t=gt(),r=t?.labelPlacement;return f.useMemo(()=>{var n,o;const s=(o=(n=e.labelPlacement)!=null?n:r)!=null?o:"inside";return s==="inside"&&!e.label?"outside":s},[e.labelPlacement,r,e.label])}function Re(e){return f.forwardRef(e)}var Bt=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),n]:[e,n]};function Hu(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Um(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function fT(e){let t=f.useRef({isFocused:!1,observer:null});$u(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=fr(n=>{e?.(n)});return f.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=n.target,s=i=>{if(t.current.isFocused=!1,o.disabled){let a=Hu(i);r(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function Hm(e){for(;e&&!fS(e);)e=e.parentElement;let t=Yo(e),r=t.document.activeElement;if(!r||r===e)return;let n=!1,o=u=>{(u.target===r||n)&&u.stopImmediatePropagation()},s=u=>{(u.target===r||n)&&(u.stopImmediatePropagation(),!e&&!n&&(n=!0,$i(r),l()))},i=u=>{(u.target===e||n)&&u.stopImmediatePropagation()},a=u=>{(u.target===e||n)&&(u.stopImmediatePropagation(),n||(n=!0,$i(r),l()))};t.addEventListener("blur",o,!0),t.addEventListener("focusout",s,!0),t.addEventListener("focusin",a,!0),t.addEventListener("focus",i,!0);let l=()=>{cancelAnimationFrame(c),t.removeEventListener("blur",o,!0),t.removeEventListener("focusout",s,!0),t.removeEventListener("focusin",a,!0),t.removeEventListener("focus",i,!0),n=!1},c=requestAnimationFrame(l);return l}let Po="default",Gu="",zi=new WeakMap;function Gm(e){if(Su()){if(Po==="default"){const t=ir(e);Gu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Po="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";zi.set(e,e.style[t]),e.style[t]="none"}}function Zu(e){if(Su()){if(Po!=="disabled")return;Po="restoring",setTimeout(()=>{sS(()=>{if(Po==="restoring"){const t=ir(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=Gu||""),Gu="",Po="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&zi.has(e)){let t=zi.get(e),r="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[r]==="none"&&(e.style[r]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),zi.delete(e)}}const Zm=f.createContext({register:()=>{}});Zm.displayName="PressResponderContext";function pT(e){let t=f.useContext(Zm);if(t){let{register:r,...n}=t;e=xo(n,e),r()}return iS(t,e.ref),e}var Bi=new WeakMap;class Ri{continuePropagation(){_i(this,Bi,!1)}get shouldStopPropagation(){return bm(this,Bi)}constructor(t,r,n,o){Wf(this,Bi,{writable:!0,value:void 0}),_i(this,Bi,!0);var s;let i=(s=o?.target)!==null&&s!==void 0?s:n.currentTarget;const a=i?.getBoundingClientRect();let l,c=0,u,d=null;n.clientX!=null&&n.clientY!=null&&(u=n.clientX,d=n.clientY),a&&(u!=null&&d!=null?(l=u-a.left,c=d-a.top):(l=a.width/2,c=a.height/2)),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey,this.x=l,this.y=c}}const qm=Symbol("linkClicked"),Ym="react-aria-pressable-style",Xm="data-react-aria-pressable";function Ki(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:s,onClick:i,isDisabled:a,isPressed:l,preventFocusOnPress:c,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:d,ref:p,...h}=pT(e),[g,m]=f.useState(!1),x=f.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null,disposables:[]}),{addGlobalListener:v,removeAllGlobalListeners:$}=ku(),C=fr((y,M)=>{let A=x.current;if(a||A.didFirePressStart)return!1;let I=!0;if(A.isTriggeringEvent=!0,n){let N=new Ri("pressstart",M,y);n(N),I=N.shouldStopPropagation}return r&&r(!0),A.isTriggeringEvent=!1,A.didFirePressStart=!0,m(!0),I}),E=fr((y,M,A=!0)=>{let I=x.current;if(!I.didFirePressStart)return!1;I.didFirePressStart=!1,I.isTriggeringEvent=!0;let N=!0;if(o){let w=new Ri("pressend",M,y);o(w),N=w.shouldStopPropagation}if(r&&r(!1),m(!1),t&&A&&!a){let w=new Ri("press",M,y);t(w),N&&(N=w.shouldStopPropagation)}return I.isTriggeringEvent=!1,N}),T=fr((y,M)=>{let A=x.current;if(a)return!1;if(s){A.isTriggeringEvent=!0;let I=new Ri("pressup",M,y);return s(I),A.isTriggeringEvent=!1,I.shouldStopPropagation}return!0}),k=fr(y=>{let M=x.current;if(M.isPressed&&M.target){M.didFirePressStart&&M.pointerType!=null&&E(Tn(M.target,y),M.pointerType,!1),M.isPressed=!1,M.isOverTarget=!1,M.activePointerId=null,M.pointerType=null,$(),d||Zu(M.target);for(let A of M.disposables)A();M.disposables=[]}}),D=fr(y=>{u&&k(y)}),P=fr(y=>{i?.(y)}),V=fr((y,M)=>{if(i){let A=new MouseEvent("click",y);Um(A,M),i(Hu(A))}}),F=f.useMemo(()=>{let y=x.current,M={onKeyDown(I){if(Yu(I.nativeEvent,I.currentTarget)&&ot(I.currentTarget,Je(I.nativeEvent))){var N;eg(Je(I.nativeEvent),I.key)&&I.preventDefault();let w=!0;if(!y.isPressed&&!I.repeat){y.target=I.currentTarget,y.isPressed=!0,y.pointerType="keyboard",w=C(I,"keyboard");let S=I.currentTarget,_=B=>{Yu(B,S)&&!B.repeat&&ot(S,Je(B))&&y.target&&T(Tn(y.target,B),"keyboard")};v(ir(I.currentTarget),"keyup",Jh(_,A),!0)}w&&I.stopPropagation(),I.metaKey&&Xo()&&((N=y.metaKeyEvents)===null||N===void 0||N.set(I.key,I.nativeEvent))}else I.key==="Meta"&&(y.metaKeyEvents=new Map)},onClick(I){if(!(I&&!ot(I.currentTarget,Je(I.nativeEvent)))&&I&&I.button===0&&!y.isTriggeringEvent&&!Jo.isOpening){let N=!0;if(a&&I.preventDefault(),!y.ignoreEmulatedMouseEvents&&!y.isPressed&&(y.pointerType==="virtual"||om(I.nativeEvent))){let w=C(I,"virtual"),S=T(I,"virtual"),_=E(I,"virtual");P(I),N=w&&S&&_}else if(y.isPressed&&y.pointerType!=="keyboard"){let w=y.pointerType||I.nativeEvent.pointerType||"virtual",S=T(Tn(I.currentTarget,I),w),_=E(Tn(I.currentTarget,I),w,!0);N=S&&_,y.isOverTarget=!1,P(I),k(I)}y.ignoreEmulatedMouseEvents=!1,N&&I.stopPropagation()}}},A=I=>{var N;if(y.isPressed&&y.target&&Yu(I,y.target)){var w;eg(Je(I),I.key)&&I.preventDefault();let _=Je(I),B=ot(y.target,Je(I));E(Tn(y.target,I),"keyboard",B),B&&V(I,y.target),$(),I.key!=="Enter"&&qu(y.target)&&ot(y.target,_)&&!I[qm]&&(I[qm]=!0,Jo(y.target,I,!1)),y.isPressed=!1,(w=y.metaKeyEvents)===null||w===void 0||w.delete(I.key)}else if(I.key==="Meta"&&(!((N=y.metaKeyEvents)===null||N===void 0)&&N.size)){var S;let _=y.metaKeyEvents;y.metaKeyEvents=void 0;for(let B of _.values())(S=y.target)===null||S===void 0||S.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){M.onPointerDown=w=>{if(w.button!==0||!ot(w.currentTarget,Je(w.nativeEvent)))return;if(aS(w.nativeEvent)){y.pointerType="virtual";return}y.pointerType=w.pointerType;let S=!0;if(!y.isPressed){y.isPressed=!0,y.isOverTarget=!0,y.activePointerId=w.pointerId,y.target=w.currentTarget,d||Gm(y.target),S=C(w,y.pointerType);let _=Je(w.nativeEvent);"releasePointerCapture"in _&&_.releasePointerCapture(w.pointerId),v(ir(w.currentTarget),"pointerup",I,!1),v(ir(w.currentTarget),"pointercancel",N,!1)}S&&w.stopPropagation()},M.onMouseDown=w=>{if(ot(w.currentTarget,Je(w.nativeEvent))&&w.button===0){if(c){let S=Hm(w.target);S&&y.disposables.push(S)}w.stopPropagation()}},M.onPointerUp=w=>{!ot(w.currentTarget,Je(w.nativeEvent))||y.pointerType==="virtual"||w.button===0&&!y.isPressed&&T(w,y.pointerType||w.pointerType)},M.onPointerEnter=w=>{w.pointerId===y.activePointerId&&y.target&&!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,C(Tn(y.target,w),y.pointerType))},M.onPointerLeave=w=>{w.pointerId===y.activePointerId&&y.target&&y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,E(Tn(y.target,w),y.pointerType,!1),D(w))};let I=w=>{if(w.pointerId===y.activePointerId&&y.isPressed&&w.button===0&&y.target){if(ot(y.target,Je(w))&&y.pointerType!=null){let S=!1,_=setTimeout(()=>{y.isPressed&&y.target instanceof HTMLElement&&(S?k(w):($i(y.target),y.target.click()))},80);v(w.currentTarget,"click",()=>S=!0,!0),y.disposables.push(()=>clearTimeout(_))}else k(w);y.isOverTarget=!1}},N=w=>{k(w)};M.onDragStart=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&k(w)}}else if(process.env.NODE_ENV==="test"){M.onMouseDown=w=>{if(w.button!==0||!ot(w.currentTarget,Je(w.nativeEvent)))return;if(y.ignoreEmulatedMouseEvents){w.stopPropagation();return}if(y.isPressed=!0,y.isOverTarget=!0,y.target=w.currentTarget,y.pointerType=om(w.nativeEvent)?"virtual":"mouse",Wn.flushSync(()=>C(w,y.pointerType))&&w.stopPropagation(),c){let _=Hm(w.target);_&&y.disposables.push(_)}v(ir(w.currentTarget),"mouseup",I,!1)},M.onMouseEnter=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;let S=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!0,S=C(w,y.pointerType)),S&&w.stopPropagation()},M.onMouseLeave=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;let S=!0;y.isPressed&&!y.ignoreEmulatedMouseEvents&&y.pointerType!=null&&(y.isOverTarget=!1,S=E(w,y.pointerType,!1),D(w)),S&&w.stopPropagation()},M.onMouseUp=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&!y.ignoreEmulatedMouseEvents&&w.button===0&&!y.isPressed&&T(w,y.pointerType||"mouse")};let I=w=>{if(w.button===0){if(y.ignoreEmulatedMouseEvents){y.ignoreEmulatedMouseEvents=!1;return}y.target&&y.target.contains(w.target)&&y.pointerType!=null||k(w),y.isOverTarget=!1}};M.onTouchStart=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;let S=hT(w.nativeEvent);if(!S)return;y.activePointerId=S.identifier,y.ignoreEmulatedMouseEvents=!0,y.isOverTarget=!0,y.isPressed=!0,y.target=w.currentTarget,y.pointerType="touch",d||Gm(y.target),C(Zr(y.target,w),y.pointerType)&&w.stopPropagation(),v(Yo(w.currentTarget),"scroll",N,!0)},M.onTouchMove=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let S=Jm(w.nativeEvent,y.activePointerId),_=!0;S&&Qm(S,w.currentTarget)?!y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!0,_=C(Zr(y.target,w),y.pointerType)):y.isOverTarget&&y.pointerType!=null&&(y.isOverTarget=!1,_=E(Zr(y.target,w),y.pointerType,!1),D(Zr(y.target,w))),_&&w.stopPropagation()},M.onTouchEnd=w=>{if(!ot(w.currentTarget,Je(w.nativeEvent)))return;if(!y.isPressed){w.stopPropagation();return}let S=Jm(w.nativeEvent,y.activePointerId),_=!0;S&&Qm(S,w.currentTarget)&&y.pointerType!=null?(T(Zr(y.target,w),y.pointerType),_=E(Zr(y.target,w),y.pointerType),V(w.nativeEvent,y.target)):y.isOverTarget&&y.pointerType!=null&&(_=E(Zr(y.target,w),y.pointerType,!1)),_&&w.stopPropagation(),y.isPressed=!1,y.activePointerId=null,y.isOverTarget=!1,y.ignoreEmulatedMouseEvents=!0,y.target&&!d&&Zu(y.target),$()},M.onTouchCancel=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&(w.stopPropagation(),y.isPressed&&k(Zr(y.target,w)))};let N=w=>{y.isPressed&&ot(Je(w),y.target)&&k({currentTarget:y.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};M.onDragStart=w=>{ot(w.currentTarget,Je(w.nativeEvent))&&k(w)}}return M},[v,a,c,$,d,k,D,E,C,T,P,V]);return f.useEffect(()=>{if(!p||process.env.NODE_ENV==="test")return;const y=ir(p.current);if(!y||!y.head||y.getElementById(Ym))return;const M=y.createElement("style");M.id=Ym,M.textContent=`
|
|
431
|
+
@layer {
|
|
432
|
+
[${Xm}] {
|
|
433
|
+
touch-action: pan-x pan-y pinch-zoom;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
`.trim(),y.head.prepend(M)},[p]),f.useEffect(()=>{let y=x.current;return()=>{var M;d||Zu((M=y.target)!==null&&M!==void 0?M:void 0);for(let A of y.disposables)A();y.disposables=[]}},[d]),{isPressed:l||g,pressProps:xo(h,F,{[Xm]:!0})}}function qu(e){return e.tagName==="A"&&e.hasAttribute("href")}function Yu(e,t){const{key:r,code:n}=e,o=t,s=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof Yo(o).HTMLInputElement&&!tg(o,r)||o instanceof Yo(o).HTMLTextAreaElement||o.isContentEditable)&&!((s==="link"||!s&&qu(o))&&r!=="Enter")}function hT(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Jm(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Zr(e,t){let r=0,n=0;return t.targetTouches&&t.targetTouches.length===1&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function Tn(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function mT(e){let t=0,r=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?r=e.height/2:e.radiusY!==void 0&&(r=e.radiusY),{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function gT(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Qm(e,t){let r=t.getBoundingClientRect(),n=mT(e);return gT(r,n)}function vT(e){return e instanceof HTMLInputElement?!1:e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!qu(e)}function eg(e,t){return e instanceof HTMLInputElement?!tg(e,t):vT(e)}const bT=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":bT.has(e.type)}function rg(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,s=f.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:a}=ku(),l=f.useCallback(d=>{d.currentTarget.contains(d.target)&&s.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(s.current.isFocusWithin=!1,a(),r&&r(d),o&&o(!1))},[r,o,s,a]),c=fT(l),u=f.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const p=ir(d.target),h=UC(p);if(!s.current.isFocusWithin&&h===Je(d.nativeEvent)){n&&n(d),o&&o(!0),s.current.isFocusWithin=!0,c(d);let g=d.currentTarget;i(p,"focus",m=>{if(s.current.isFocusWithin&&!ot(g,m.target)){let x=new p.defaultView.FocusEvent("blur",{relatedTarget:m.target});Um(x,g);let v=Hu(x);l(v)}},{capture:!0})}},[n,o,c,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}let Wi=!1,Ui=0;function Xu(){Wi=!0,setTimeout(()=>{Wi=!1},50)}function ng(e){e.pointerType==="touch"&&Xu()}function yT(){if(!(typeof document>"u"))return Ui===0&&(typeof PointerEvent<"u"?document.addEventListener("pointerup",ng):process.env.NODE_ENV==="test"&&document.addEventListener("touchend",Xu)),Ui++,()=>{Ui--,!(Ui>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ng):process.env.NODE_ENV==="test"&&document.removeEventListener("touchend",Xu))}}function kn(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:o}=e,[s,i]=f.useState(!1),a=f.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;f.useEffect(yT,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=ku(),{hoverProps:u,triggerHoverEnd:d}=f.useMemo(()=>{let p=(m,x)=>{if(a.pointerType=x,o||x==="touch"||a.isHovered||!m.currentTarget.contains(m.target))return;a.isHovered=!0;let v=m.currentTarget;a.target=v,l(ir(m.target),"pointerover",$=>{a.isHovered&&a.target&&!ot(a.target,$.target)&&h($,$.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:v,pointerType:x}),r&&r(!0),i(!0)},h=(m,x)=>{let v=a.target;a.pointerType="",a.target=null,!(x==="touch"||!a.isHovered||!v)&&(a.isHovered=!1,c(),n&&n({type:"hoverend",target:v,pointerType:x}),r&&r(!1),i(!1))},g={};return typeof PointerEvent<"u"?(g.onPointerEnter=m=>{Wi&&m.pointerType==="mouse"||p(m,m.pointerType)},g.onPointerLeave=m=>{!o&&m.currentTarget.contains(m.target)&&h(m,m.pointerType)}):process.env.NODE_ENV==="test"&&(g.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},g.onMouseEnter=m=>{!a.ignoreEmulatedMouseEvents&&!Wi&&p(m,"mouse"),a.ignoreEmulatedMouseEvents=!1},g.onMouseLeave=m=>{!o&&m.currentTarget.contains(m.target)&&h(m,"mouse")}),{hoverProps:g,triggerHoverEnd:h}},[t,r,n,o,a,l,c]);return f.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:u,isHovered:s}}function xT(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:o}=e,s=f.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),i=fr(l=>{r&&Hi(l,t)&&(o&&o(l),s.current.isPointerDown=!0)}),a=fr(l=>{r&&r(l)});f.useEffect(()=>{let l=s.current;if(n)return;const c=t.current,u=ir(c);if(typeof PointerEvent<"u"){let d=p=>{l.isPointerDown&&Hi(p,t)&&a(p),l.isPointerDown=!1};return u.addEventListener("pointerdown",i,!0),u.addEventListener("click",d,!0),()=>{u.removeEventListener("pointerdown",i,!0),u.removeEventListener("click",d,!0)}}else if(process.env.NODE_ENV==="test"){let d=h=>{l.ignoreEmulatedMouseEvents?l.ignoreEmulatedMouseEvents=!1:l.isPointerDown&&Hi(h,t)&&a(h),l.isPointerDown=!1},p=h=>{l.ignoreEmulatedMouseEvents=!0,l.isPointerDown&&Hi(h,t)&&a(h),l.isPointerDown=!1};return u.addEventListener("mousedown",i,!0),u.addEventListener("mouseup",d,!0),u.addEventListener("touchstart",i,!0),u.addEventListener("touchend",p,!0),()=>{u.removeEventListener("mousedown",i,!0),u.removeEventListener("mouseup",d,!0),u.removeEventListener("touchstart",i,!0),u.removeEventListener("touchend",p,!0)}}},[t,n,i,a])}function Hi(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current?!e.composedPath().includes(t.current):!1}let wT=null;function og(e,t){return!e||!t?!1:t.some(r=>r.contains(e))}function $T(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of ig.traverse(ig.getTreeNode(t)))if(r&&og(e,r.current))return!0;return!1}function ET(e){return $T(e,wT)}class Ju{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null);if(!o)return;let s=new sg({scopeRef:t});o.addChild(s),s.parent=o,this.fastMap.set(t,s),n&&(s.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t);if(!r)return;let n=r.parent;for(let s of this.traverse())s!==r&&r.nodeToRestore&&s.nodeToRestore&&r.scopeRef&&r.scopeRef.current&&og(s.nodeToRestore,r.scopeRef.current)&&(s.nodeToRestore=r.nodeToRestore);let o=r.children;n&&(n.removeChild(r),o.size>0&&o.forEach(s=>n&&n.addChild(s))),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){var t;let r=new Ju;var n;for(let o of this.traverse())r.addTreeNode(o.scopeRef,(n=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&n!==void 0?n:null,o.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new sg({scopeRef:null}),this.fastMap.set(null,this.root)}}class sg{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ig=new Ju;function In(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=f.useRef({isFocused:!1,isFocusVisible:t||Eo()}),[s,i]=f.useState(!1),[a,l]=f.useState(()=>o.current.isFocused&&o.current.isFocusVisible),c=f.useCallback(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),u=f.useCallback(h=>{o.current.isFocused=h,i(h),c()},[c]);_m(h=>{o.current.isFocusVisible=h,c()},[],{isTextInput:r});let{focusProps:d}=zu({isDisabled:n,onFocusChange:u}),{focusWithinProps:p}=Hr({isDisabled:!n,onFocusWithinChange:u});return{isFocused:s,isFocusVisible:a,focusProps:n?p:d}}function PT(e){const[t,r]=Bt(e,qd.variantKeys),{ref:n,as:o,children:s,avatar:i,startContent:a,endContent:l,onClose:c,classNames:u,className:d,...p}=t,h=o||"div",g=zt(n),m=Ke(u?.base,d),x=!!c,v=e.variant==="dot",{focusProps:$,isFocusVisible:C}=In(),E=f.useMemo(()=>typeof s=="string"&&s?.length===1,[s]),T=f.useMemo(()=>!!i||!!a,[i,a]),k=f.useMemo(()=>!!l||x,[l,x]),D=f.useMemo(()=>qd({...r,hasStartContent:T,hasEndContent:k,isOneChar:E,isCloseable:x,isCloseButtonFocusVisible:C}),[nn(r),C,T,k,E,x]),{pressProps:P}=Ki({isDisabled:!!e?.isDisabled,onPress:c}),V=()=>({ref:g,className:D.base({class:m}),...p}),F=()=>({role:"button",tabIndex:0,className:D.closeButton({class:u?.closeButton}),"aria-label":"close chip",...mt(P,$)}),y=A=>f.isValidElement(A)?f.cloneElement(A,{className:D.avatar({class:u?.avatar})}):null,M=A=>f.isValidElement(A)?f.cloneElement(A,{className:Ke("max-h-[80%]",A.props.className)}):null;return{Component:h,children:s,slots:D,classNames:u,isDot:v,isCloseable:x,startContent:y(i)||M(a),endContent:M(l),getCloseButtonProps:F,getChipProps:V}}var CT=e=>b.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:`
|
|
437
|
+
M12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2Z
|
|
438
|
+
M16.78 9.7L11.11 15.37C10.97 15.51 10.78 15.59 10.58 15.59C10.38 15.59 10.19 15.51 10.05 15.37L7.22 12.54
|
|
439
|
+
C6.93 12.25 6.93 11.77 7.22 11.48C7.51 11.19 7.99 11.19 8.28 11.48L10.58 13.78L15.72 8.64
|
|
440
|
+
C16.01 8.35 16.49 8.35 16.78 8.64C17.07 8.93 17.07 9.4 16.78 9.7Z
|
|
441
|
+
`})}),ST=e=>b.jsx("svg",{className:"fill-current",fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{clipRule:"evenodd",d:"M3 10.417C3 7.219 3 5.62 3.378 5.082C3.755 4.545 5.258 4.03 8.265 3.001L8.838 2.805C10.405 2.268 11.188 2 12 2C12.812 2 13.595 2.268 15.162 2.805L15.735 3.001C18.742 4.03 20.245 4.545 20.622 5.082C21 5.62 21 7.22 21 10.417V11.991C21 17.629 16.761 20.366 14.101 21.527C13.38 21.842 13.02 22 12 22C10.98 22 10.62 21.842 9.899 21.527C7.239 20.365 3 17.63 3 11.991V10.417ZM12 7.25C12.1989 7.25 12.3897 7.32902 12.5303 7.46967C12.671 7.61032 12.75 7.80109 12.75 8V12C12.75 12.1989 12.671 12.3897 12.5303 12.5303C12.3897 12.671 12.1989 12.75 12 12.75C11.8011 12.75 11.6103 12.671 11.4697 12.5303C11.329 12.3897 11.25 12.1989 11.25 12V8C11.25 7.80109 11.329 7.61032 11.4697 7.46967C11.6103 7.32902 11.8011 7.25 12 7.25ZM12 16C12.2652 16 12.5196 15.8946 12.7071 15.7071C12.8946 15.5196 13 15.2652 13 15C13 14.7348 12.8946 14.4804 12.7071 14.2929C12.5196 14.1054 12.2652 14 12 14C11.7348 14 11.4804 14.1054 11.2929 14.2929C11.1054 14.4804 11 14.7348 11 15C11 15.2652 11.1054 15.5196 11.2929 15.7071C11.4804 15.8946 11.7348 16 12 16Z",fill:"currentColor",fillRule:"evenodd"})}),ag=e=>b.jsx("svg",{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M12 22C17.51 22 22 17.51 22 12C22 6.49 17.51 2 12 2C6.49 2 2 6.49 2 12C2 17.51 6.49 22 12 22ZM12.75 16C12.75 16.41 12.41 16.75 12 16.75C11.59 16.75 11.25 16.41 11.25 16L11.25 11C11.25 10.59 11.59 10.25 12 10.25C12.41 10.25 12.75 10.59 12.75 11L12.75 16ZM11.08 7.62C11.13 7.49 11.2 7.39 11.29 7.29C11.39 7.2 11.5 7.13 11.62 7.08C11.74 7.03 11.87 7 12 7C12.13 7 12.26 7.03 12.38 7.08C12.5 7.13 12.61 7.2 12.71 7.29C12.8 7.39 12.87 7.49 12.92 7.62C12.97 7.74 13 7.87 13 8C13 8.13 12.97 8.26 12.92 8.38C12.87 8.5 12.8 8.61 12.71 8.71C12.61 8.8 12.5 8.87 12.38 8.92C12.14 9.02 11.86 9.02 11.62 8.92C11.5 8.87 11.39 8.8 11.29 8.71C11.2 8.61 11.13 8.5 11.08 8.38C11.03 8.26 11 8.13 11 8C11 7.87 11.03 7.74 11.08 7.62Z"})}),Qu=e=>b.jsx("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:b.jsx("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),lg=e=>{const{isSelected:t,isIndeterminate:r,disableAnimation:n,...o}=e;return b.jsx("svg",{"aria-hidden":"true",className:"fill-current",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...o,children:b.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})},TT=e=>b.jsx("svg",{className:"fill-current",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",...e,children:b.jsx("path",{d:"M17.51 3.85L11.57 0.42C10.6 -0.14 9.4 -0.14 8.42 0.42L2.49 3.85C1.52 4.41 0.919998 5.45 0.919998 6.58V13.42C0.919998 14.54 1.52 15.58 2.49 16.15L8.43 19.58C9.4 20.14 10.6 20.14 11.58 19.58L17.52 16.15C18.49 15.59 19.09 14.55 19.09 13.42V6.58C19.08 5.45 18.48 4.42 17.51 3.85ZM9.25 5.75C9.25 5.34 9.59 5 10 5C10.41 5 10.75 5.34 10.75 5.75V11C10.75 11.41 10.41 11.75 10 11.75C9.59 11.75 9.25 11.41 9.25 11V5.75ZM10.92 14.63C10.87 14.75 10.8 14.86 10.71 14.96C10.52 15.15 10.27 15.25 10 15.25C9.87 15.25 9.74 15.22 9.62 15.17C9.49 15.12 9.39 15.05 9.29 14.96C9.2 14.86 9.13 14.75 9.07 14.63C9.02 14.51 9 14.38 9 14.25C9 13.99 9.1 13.73 9.29 13.54C9.39 13.45 9.49 13.38 9.62 13.33C9.99 13.17 10.43 13.26 10.71 13.54C10.8 13.64 10.87 13.74 10.92 13.87C10.97 13.99 11 14.12 11 14.25C11 14.38 10.97 14.51 10.92 14.63Z"})}),kT=({strokeWidth:e=1.5,...t})=>b.jsx("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:e,viewBox:"0 0 24 24",width:"1em",...t,children:b.jsx("path",{d:"m6 9 6 6 6-6"})}),ug=Re((e,t)=>{const{Component:r,children:n,slots:o,classNames:s,isDot:i,isCloseable:a,startContent:l,endContent:c,getCloseButtonProps:u,getChipProps:d}=PT({...e,ref:t}),p=f.useMemo(()=>i&&!l?b.jsx("span",{className:o.dot({class:s?.dot})}):l,[o,l,i]),h=f.useMemo(()=>a?b.jsx("span",{...u(),children:c||b.jsx(Qu,{})}):c,[c,a,u]);return b.jsxs(r,{...d(),children:[p,b.jsx("span",{className:o.content({class:s?.content}),children:n}),h]})});ug.displayName="HeroUI.Chip";var ec=ug;function IT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Arrow Up Down Icon"}),b.jsx("path",{d:"M17 3V21M17 3L20 6M17 3L14 6M10 18L7 21M7 21L4 18M7 21L7 3",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function _T({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Broadcast Icon"}),b.jsx("path",{d:"M18.364 19.3639C19.6227 18.1052 20.4798 16.5016 20.8271 14.7558C21.1743 13.0099 20.9961 11.2004 20.3149 9.55582C19.6337 7.9113 18.4802 6.50569 17.0001 5.51677C15.5201 4.52784 13.78 4 12 4C10.22 4 8.47992 4.52784 6.99988 5.51677C5.51984 6.50569 4.36629 7.9113 3.6851 9.55582C3.00391 11.2004 2.82567 13.0099 3.17293 14.7558C3.52019 16.5016 4.37734 18.1052 5.636 19.3639M15.536 16.5359C16.2351 15.8366 16.7112 14.9457 16.904 13.9758C17.0968 13.006 16.9978 12.0007 16.6193 11.0871C16.2408 10.1736 15.5999 9.39276 14.7777 8.84341C13.9555 8.29407 12.9889 8.00085 12 8.00085C11.0112 8.00085 10.0445 8.29407 9.22229 8.84341C8.40007 9.39276 7.75921 10.1736 7.38073 11.0871C7.00226 12.0007 6.90316 13.006 7.09598 13.9758C7.2888 14.9457 7.76487 15.8366 8.464 16.5359M13 12.9999C13 13.5522 12.5523 13.9999 12 13.9999C11.4477 13.9999 11 13.5522 11 12.9999C11 12.4476 11.4477 11.9999 12 11.9999C12.5523 11.9999 13 12.4476 13 12.9999Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function MT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Calculator Icon"}),b.jsx("path",{d:"M8 14V14.01M12 14V14.01M16 14V14.01M8 17V17.01M12 17V17.01M16 17V17.01M4 5C4 4.46957 4.21071 3.96086 4.58579 3.58579C4.96086 3.21071 5.46957 3 6 3H18C18.5304 3 19.0391 3.21071 19.4142 3.58579C19.7893 3.96086 20 4.46957 20 5V19C20 19.5304 19.7893 20.0391 19.4142 20.4142C19.0391 20.7893 18.5304 21 18 21H6C5.46957 21 4.96086 20.7893 4.58579 20.4142C4.21071 20.0391 4 19.5304 4 19V5ZM8 8C8 7.73478 8.10536 7.48043 8.29289 7.29289C8.48043 7.10536 8.73478 7 9 7H15C15.2652 7 15.5196 7.10536 15.7071 7.29289C15.8946 7.48043 16 7.73478 16 8V9C16 9.26522 15.8946 9.51957 15.7071 9.70711C15.5196 9.89464 15.2652 10 15 10H9C8.73478 10 8.48043 9.89464 8.29289 9.70711C8.10536 9.51957 8 9.26522 8 9V8Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function cg({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Chevron Right Icon"}),b.jsx("path",{d:"M9 6L15 12L9 18",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function dg({fill:e="currentColor",filled:t=!0,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Circle Check Filled Icon"}),b.jsx("path",{d:"M17 3.33989C18.5083 4.21075 19.7629 5.46042 20.6398 6.96519C21.5167 8.46997 21.9854 10.1777 21.9994 11.9192C22.0135 13.6608 21.5725 15.3758 20.72 16.8946C19.8676 18.4133 18.6332 19.6831 17.1392 20.5782C15.6452 21.4733 13.9434 21.9627 12.2021 21.998C10.4608 22.0332 8.74055 21.6131 7.21155 20.7791C5.68256 19.9452 4.39787 18.7264 3.48467 17.2434C2.57146 15.7604 2.06141 14.0646 2.005 12.3239L2 11.9999L2.005 11.6759C2.061 9.94888 2.56355 8.26585 3.46364 6.79089C4.36373 5.31592 5.63065 4.09934 7.14089 3.25977C8.65113 2.42021 10.3531 1.98629 12.081 2.00033C13.8089 2.01437 15.5036 2.47589 17 3.33989ZM15.707 9.29289C15.5348 9.12072 15.3057 9.01729 15.0627 9.002C14.8197 8.98672 14.5794 9.06064 14.387 9.20989L14.293 9.29289L11 12.5849L9.707 11.2929L9.613 11.2099C9.42058 11.0607 9.18037 10.9869 8.9374 11.0022C8.69444 11.0176 8.46541 11.121 8.29326 11.2932C8.12112 11.4653 8.01768 11.6943 8.00235 11.9373C7.98702 12.1803 8.06086 12.4205 8.21 12.6129L8.293 12.7069L10.293 14.7069L10.387 14.7899C10.5624 14.926 10.778 14.9998 11 14.9998C11.222 14.9998 11.4376 14.926 11.613 14.7899L11.707 14.7069L15.707 10.7069L15.79 10.6129C15.9393 10.4205 16.0132 10.1802 15.9979 9.93721C15.9826 9.69419 15.8792 9.46509 15.707 9.29289Z",fill:e})]})}function DT({fill:e="currentColor",size:t,height:r,width:n,className:o,style:s,...i}){return b.jsxs("svg",{fill:"none",height:t||r||24,width:t||n||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:o,style:s,...i,children:[b.jsx("title",{children:"Circle X Icon"}),b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m10 10 4 4m0-4-4 4m11-2a9 9 0 1 1-18 0 9 9 0 0 1 18 0"})]})}function AT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Clock Hour Icon"}),b.jsx("path",{d:"M15 10L12 12V7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function NT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Device Remote Icon"}),b.jsx("path",{d:"M12 3V5M10 15V15.01M10 18V18.01M14 18V18.01M14 15V15.01M10 10C10 10.5304 10.2107 11.0391 10.5858 11.4142C10.9609 11.7893 11.4696 12 12 12C12.5304 12 13.0391 11.7893 13.4142 11.4142C13.7893 11.0391 14 10.5304 14 10C14 9.46957 13.7893 8.96086 13.4142 8.58579C13.0391 8.21071 12.5304 8 12 8C11.4696 8 10.9609 8.21071 10.5858 8.58579C10.2107 8.96086 10 9.46957 10 10ZM7 5C7 4.46957 7.21071 3.96086 7.58579 3.58579C7.96086 3.21071 8.46957 3 9 3H15C15.5304 3 16.0391 3.21071 16.4142 3.58579C16.7893 3.96086 17 4.46957 17 5V19C17 19.5304 16.7893 20.0391 16.4142 20.4142C16.0391 20.7893 15.5304 21 15 21H9C8.46957 21 7.96086 20.7893 7.58579 20.4142C7.21071 20.0391 7 19.5304 7 19V5Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function OT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Device TV Icon"}),b.jsx("path",{d:"M16 3L12 7L8 3M3 9C3 8.46957 3.21071 7.96086 3.58579 7.58579C3.96086 7.21071 4.46957 7 5 7H19C19.5304 7 20.0391 7.21071 20.4142 7.58579C20.7893 7.96086 21 8.46957 21 9V18C21 18.5304 20.7893 19.0391 20.4142 19.4142C20.0391 19.7893 19.5304 20 19 20H5C4.46957 20 3.96086 19.7893 3.58579 19.4142C3.21071 19.0391 3 18.5304 3 18V9Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function LT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Discount Icon"}),b.jsx("path",{d:"M8.99997 15L15 8.99997M8.99997 9.49997C8.99997 9.63258 9.05265 9.75976 9.14642 9.85353C9.24019 9.94729 9.36736 9.99997 9.49997 9.99997C9.63258 9.99997 9.75976 9.94729 9.85353 9.85353C9.94729 9.75976 9.99997 9.63258 9.99997 9.49997C9.99997 9.36736 9.94729 9.24019 9.85353 9.14642C9.75976 9.05265 9.63258 8.99997 9.49997 8.99997C9.36736 8.99997 9.24019 9.05265 9.14642 9.14642C9.05265 9.24019 8.99997 9.36736 8.99997 9.49997ZM14 14.5C14 14.6326 14.0527 14.7598 14.1464 14.8535C14.2402 14.9473 14.3674 15 14.5 15C14.6326 15 14.7598 14.9473 14.8535 14.8535C14.9473 14.7598 15 14.6326 15 14.5C15 14.3674 14.9473 14.2402 14.8535 14.1464C14.7598 14.0527 14.6326 14 14.5 14C14.3674 14 14.2402 14.0527 14.1464 14.1464C14.0527 14.2402 14 14.3674 14 14.5ZM4.99997 7.19997C4.99997 6.6165 5.23176 6.05692 5.64434 5.64434C6.05692 5.23176 6.6165 4.99997 7.19997 4.99997H8.19997C8.78087 4.99964 9.33806 4.76957 9.74997 4.35997L10.45 3.65997C10.6544 3.45437 10.8975 3.29121 11.1652 3.17988C11.4329 3.06855 11.72 3.01123 12.01 3.01123C12.2999 3.01123 12.587 3.06855 12.8547 3.17988C13.1225 3.29121 13.3655 3.45437 13.57 3.65997L14.27 4.35997C14.6819 4.76957 15.2391 4.99964 15.82 4.99997H16.82C17.4034 4.99997 17.963 5.23176 18.3756 5.64434C18.7882 6.05692 19.02 6.6165 19.02 7.19997V8.19997C19.0203 8.78087 19.2504 9.33806 19.66 9.74997L20.36 10.45C20.5656 10.6544 20.7287 10.8975 20.8401 11.1652C20.9514 11.4329 21.0087 11.72 21.0087 12.01C21.0087 12.2999 20.9514 12.587 20.8401 12.8547C20.7287 13.1225 20.5656 13.3655 20.36 13.57L19.66 14.27C19.2504 14.6819 19.0203 15.2391 19.02 15.82V16.82C19.02 17.4034 18.7882 17.963 18.3756 18.3756C17.963 18.7882 17.4034 19.02 16.82 19.02H15.82C15.2391 19.0203 14.6819 19.2504 14.27 19.66L13.57 20.36C13.3655 20.5656 13.1225 20.7287 12.8547 20.8401C12.587 20.9514 12.2999 21.0087 12.01 21.0087C11.72 21.0087 11.4329 20.9514 11.1652 20.8401C10.8975 20.7287 10.6544 20.5656 10.45 20.36L9.74997 19.66C9.33806 19.2504 8.78087 19.0203 8.19997 19.02H7.19997C6.6165 19.02 6.05692 18.7882 5.64434 18.3756C5.23176 17.963 4.99997 17.4034 4.99997 16.82V15.82C4.99964 15.2391 4.76957 14.6819 4.35997 14.27L3.65997 13.57C3.45437 13.3655 3.29121 13.1225 3.17988 12.8547C3.06855 12.587 3.01123 12.2999 3.01123 12.01C3.01123 11.72 3.06855 11.4329 3.17988 11.1652C3.29121 10.8975 3.45437 10.6544 3.65997 10.45L4.35997 9.74997C4.76957 9.33806 4.99964 8.78087 4.99997 8.19997V7.19997Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function fg({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Filters Icon"}),b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M16 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h4m-8 0H4m6 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h10M6 12H4m15 6a2 2 0 1 1-4 0m4 0a2 2 0 1 0-4 0m4 0h1m-5 0H4"})]})}function FT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Gauge Icon"}),b.jsx("path",{d:"M13.41 10.59L16 8M7 12C7 10.6739 7.52678 9.40215 8.46447 8.46447C9.40215 7.52678 10.6739 7 12 7M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function VT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"Star Icon"}),b.jsx("path",{d:"M12.0001 17.75L5.82808 20.995L7.00708 14.122L2.00708 9.25495L8.90708 8.25495L11.9931 2.00195L15.0791 8.25495L21.9791 9.25495L16.9791 14.122L18.1581 20.995L12.0001 17.75Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function jT({fill:e="currentColor",filled:t=!1,size:r,height:n,width:o,className:s,style:i,...a}){return b.jsxs("svg",{fill:t?e:"none",height:r||n||24,width:r||o||24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:s,style:i,...a,children:[b.jsx("title",{children:"World Icon"}),b.jsx("path",{d:"M3.6 9H20.4M3.6 15H20.4M11.5 3C9.81534 5.69961 8.9222 8.81787 8.9222 12C8.9222 15.1821 9.81534 18.3004 11.5 21M12.5 3C14.1847 5.69961 15.0778 8.81787 15.0778 12C15.0778 15.1821 14.1847 18.3004 12.5 21M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:e,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]})}function pg({filter:e,filterOption:t,onRemove:r,classNames:n}){const o=f.useRef(null),s=f.useCallback(()=>r(e),[e,r]),i=f.useCallback(l=>{(l.key==="Delete"||l.key==="Backspace")&&(l.preventDefault(),s())},[s]),a=Mx(e,t);return a?b.jsx(ec,{ref:o,onClose:s,onKeyDown:i,variant:"bordered",color:"primary",endContent:b.jsx(DT,{size:20}),tabIndex:0,classNames:n,children:a}):null}function tc({activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:n}){const o=f.useRef(null),s=f.useCallback(i=>{r(i),setTimeout(()=>{if(!o.current)return;const a=o.current.querySelectorAll('[tabindex="0"]');a.length>0&&a[0].focus()},0)},[r]);return!e||e.length===0||e.every(i=>{const a=qn(t,i.slug);return!a||a.type==="hidden"||i.slug==="sorteren"})?null:b.jsx("fieldset",{ref:o,className:j("flex flex-wrap gap-2",n?.container),children:e.map(i=>{const a=qn(t,i.slug);return!a||a.type==="hidden"||i.slug==="sorteren"?null:b.jsx(pg,{filter:i,filterOption:a,onRemove:s,classNames:{base:j("border-primary-600",n?.filterChip?.base),content:j("text-primary-600 font-semibold",n?.filterChip?.content),closeButton:j("stroke-primary-600 opacity-100 hover:stroke-primary-700",n?.filterChip?.closeButton)}},i.slug)})})}var[Q8,zT]=Hs({name:"ButtonGroupContext",strict:!1});function hg(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:s,onPressEnd:i,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:p,target:h,rel:g,type:m="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:$,isPressed:C}=Ki({onClick:d,onPressStart:s,onPressEnd:i,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:E}=En(e,t);u&&(E.tabIndex=n?-1:E.tabIndex);let T=xo(E,$,em(e,{labelable:!0}));return{isPressed:C,buttonProps:xo(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}var BT=()=>Promise.resolve().then(()=>Ps).then(e=>e.default),mg=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:s}=e;return b.jsx(b.Fragment,{children:t.map(i=>{const a=$x(.01*i.size,.2,i.size>100?.75:.5);return b.jsx(gn,{features:BT,children:b.jsx(Zo,{mode:"popLayout",children:b.jsx(vn.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:i.y,left:i.x,width:`${i.size}px`,height:`${i.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{s(i.key)},...r})})},i.key)})})};mg.displayName="HeroUI.Ripple";var gg=mg;function vg(e={}){const[t,r]=f.useState([]),n=f.useCallback(s=>{const i=s.target,a=Math.max(i.clientWidth,i.clientHeight);r(l=>[...l,{key:wx(l.length.toString()),size:a,x:s.x-a/2,y:s.y-a/2}])},[]),o=f.useCallback(s=>{r(i=>i.filter(a=>a.key!==s))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function RT(e){var t,r,n,o,s,i,a,l,c;const u=zT(),d=gt(),p=!!u,{ref:h,as:g,children:m,startContent:x,endContent:v,autoFocus:$,className:C,spinner:E,isLoading:T=!1,disableRipple:k=!1,fullWidth:D=(t=u?.fullWidth)!=null?t:!1,radius:P=u?.radius,size:V=(r=u?.size)!=null?r:"md",color:F=(n=u?.color)!=null?n:"default",variant:y=(o=u?.variant)!=null?o:"solid",disableAnimation:M=(i=(s=u?.disableAnimation)!=null?s:d?.disableAnimation)!=null?i:!1,isDisabled:A=(a=u?.isDisabled)!=null?a:!1,isIconOnly:I=(l=u?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:w,onClick:S,..._}=e,B=g||"button",L=typeof B=="string",K=zt(h),z=(c=k||d?.disableRipple)!=null?c:M,{isFocusVisible:W,isFocused:U,focusProps:ee}=In({autoFocus:$}),G=A||T,R=f.useMemo(()=>Gd({size:V,color:F,variant:y,radius:P,fullWidth:D,isDisabled:G,isInGroup:p,disableAnimation:M,isIconOnly:I,className:C}),[V,F,y,P,D,G,p,I,M,C]),{onPress:me,onClear:ue,ripples:Q}=vg(),ie=f.useCallback(xe=>{z||G||M||K.current&&me(xe)},[z,G,M,K,me]),{buttonProps:q,isPressed:X}=hg({elementType:g,isDisabled:G,onPress:Fr(w,ie),onClick:S,..._},K),{isHovered:le,hoverProps:ae}=kn({isDisabled:G}),oe=f.useCallback((xe={})=>({"data-disabled":pe(G),"data-focus":pe(U),"data-pressed":pe(X),"data-focus-visible":pe(W),"data-hover":pe(le),"data-loading":pe(T),...mt(q,ee,ae,ct(_,{enabled:L}),ct(xe)),className:R}),[T,G,U,X,L,W,le,q,ee,ae,_,R]),be=xe=>f.isValidElement(xe)?f.cloneElement(xe,{"aria-hidden":!0,focusable:!1}):null,Me=be(x),ye=be(v),te=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),je=f.useCallback(()=>({ripples:Q,onClear:ue}),[Q,ue]);return{Component:B,children:m,domRef:K,spinner:E,styles:R,startContent:Me,endContent:ye,isLoading:T,spinnerPlacement:N,spinnerSize:te,disableRipple:z,getButtonProps:oe,getRippleProps:je,isIconOnly:I}}function KT(e){var t,r;const[n,o]=Bt(e,Os.variantKeys),s=gt(),i=(r=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,p=f.useMemo(()=>Os({...o}),[nn(o)]),h=Ke(c?.base,l),g=u||a,m=f.useMemo(()=>g&&typeof g=="string"?g:d["aria-label"]?"":"Loading",[a,g,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":m,className:p.base({class:h}),...d}),[m,p,h,d]);return{label:g,slots:p,classNames:c,variant:i,getSpinnerProps:x}}var bg=Re((e,t)=>{const{slots:r,classNames:n,label:o,variant:s,getSpinnerProps:i}=KT({...e});return s==="wave"||s==="dots"?b.jsxs("div",{ref:t,...i(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>b.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="simple"?b.jsxs("div",{ref:t,...i(),children:[b.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="spinner"?b.jsxs("div",{ref:t,...i(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>b.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):b.jsxs("div",{ref:t,...i(),children:[b.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[b.jsx("i",{className:r.circle1({class:n?.circle1})}),b.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]})});bg.displayName="HeroUI.Spinner";var WT=bg,yg=Re((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:s,spinner:i=b.jsx(WT,{color:"current",size:s}),spinnerPlacement:a,startContent:l,endContent:c,isLoading:u,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:g}=RT({...e,ref:t});return b.jsxs(r,{ref:n,...p(),children:[l,u&&a==="start"&&i,u&&g?null:o,u&&a==="end"&&i,c,!d&&b.jsx(gg,{...h()})]})});yg.displayName="HeroUI.Button";var rs=yg;function Gi(e={}){const{strict:t=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:n}=e,o=At.createContext(void 0);o.displayName=n;function s(){var i;const a=At.useContext(o);if(!a&&t){const l=new Error(r);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,s),l}return a}return[o.Provider,s,o]}function Rt(e){const t=f.useRef(null);return f.useImperativeHandle(e,()=>t.current),t}var UT=process.env.NODE_ENV!=="production";process.env.NODE_ENV;function rc(e){return Array.isArray(e)}function HT(e){return rc(e)&&e.length===0}function xg(e){const t=typeof e;return e!=null&&(t==="object"||t==="function")&&!rc(e)}function GT(e){return xg(e)&&Object.keys(e).length===0}function _n(e){return rc(e)?HT(e):xg(e)?GT(e):e==null||e===""}var he=e=>e?"true":void 0;function wg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=wg(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Pe(...e){for(var t=0,r,n,o="";t<e.length;)(r=e[t++])&&(n=wg(r))&&(o&&(o+=" "),o+=n);return o}var ZT=(...e)=>{let t=" ";for(const r of e)if(typeof r=="string"&&r.length>0){t=r;break}return t},$g=e=>e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"";function qT(e){return`${e}-${Math.floor(Math.random()*1e6)}`}function YT(e){for(const t in e)t.startsWith("on")&&delete e[t];return e}function qr(e){if(!e||typeof e!="object")return"";try{return JSON.stringify(e)}catch{return""}}function XT(e,t,r){return Math.min(Math.max(e,t),r)}var Eg={};function Pg(e,t,...r){const o=`[Hero UI]${` [${t}]`}: ${e}`;if(!(typeof console>"u")&&!Eg[o]&&(Eg[o]=!0,process.env.NODE_ENV!=="production"))return console.warn(o,r)}function Zi(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}var Cg=new Map;function JT(e,t){if(e===t)return e;let r=Cg.get(e);if(r)return r.forEach(o=>o.current=t),t;let n=Cg.get(t);return n?(n.forEach(o=>o.current=e),e):t}function Ve(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let s=t[o],i=n[o];typeof s=="function"&&typeof i=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Zi(s,i):(o==="className"||o==="UNSAFE_className")&&typeof s=="string"&&typeof i=="string"?t[o]=Pe(s,i):o==="id"&&s&&i?t.id=JT(s,i):t[o]=i!==void 0?i:s}}return t}function nc(...e){return e.length===1&&e[0]?e[0]:t=>{let r=!1;const n=e.map(o=>{const s=Sg(o,t);return r||(r=typeof s=="function"),s});if(r)return()=>{n.forEach((o,s)=>{typeof o=="function"?o?.():Sg(e[s],null)})}}}function Sg(e,t){if(typeof e=="function")return()=>e(t);e!=null&&"current"in e&&(e.current=t)}var[QT,qi]=Gi({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"}),Tg=Re((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:i,classNames:a,bodyId:l,setBodyMounted:c}=qi(),u=Rt(t),d=r||"div";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),b.jsx(d,{ref:u,className:i.body({class:Pe(a?.body,o)}),id:l,...s,children:n})});Tg.displayName="HeroUI.ModalBody";var e4=Tg,ns={ease:[.36,.66,.4,1]},oc={scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:ns.ease}},exit:{opacity:0,transition:{duration:.3,ease:ns.ease}}}},t4={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,willChange:"auto",transition:{scale:{duration:.4,ease:ns.ease},opacity:{duration:.4,ease:ns.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,willChange:"transform",transition:{duration:.3,ease:ns.ease}}};const gr={top:"top",bottom:"top",left:"left",right:"left"},Yi={top:"bottom",bottom:"top",left:"right",right:"left"},r4={top:"left",left:"top"},sc={top:"height",left:"width"},kg={width:"totalWidth",height:"totalHeight"},Xi={};let xt=typeof document<"u"?window.visualViewport:null;function Ig(e){let t=0,r=0,n=0,o=0,s=0,i=0,a={};var l;let c=((l=xt?.scale)!==null&&l!==void 0?l:1)>1;if(e.tagName==="BODY"){let g=document.documentElement;n=g.clientWidth,o=g.clientHeight;var u;t=(u=xt?.width)!==null&&u!==void 0?u:n;var d;r=(d=xt?.height)!==null&&d!==void 0?d:o,a.top=g.scrollTop||e.scrollTop,a.left=g.scrollLeft||e.scrollLeft,xt&&(s=xt.offsetTop,i=xt.offsetLeft)}else({width:t,height:r,top:s,left:i}=Co(e,!1)),a.top=e.scrollTop,a.left=e.scrollLeft,n=t,o=r;if(Qs()&&(e.tagName==="BODY"||e.tagName==="HTML")&&c){a.top=0,a.left=0;var p;s=(p=xt?.pageTop)!==null&&p!==void 0?p:0;var h;i=(h=xt?.pageLeft)!==null&&h!==void 0?h:0}return{width:t,height:r,totalWidth:n,totalHeight:o,scroll:a,top:s,left:i}}function n4(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function _g(e,t,r,n,o,s,i){var a;let l=(a=o.scroll[e])!==null&&a!==void 0?a:0,c=n[sc[e]],u=n.scroll[gr[e]]+s,d=c+n.scroll[gr[e]]-s,p=t-l+i[e]-n[gr[e]],h=t-l+r+i[e]-n[gr[e]];return p<u?u-p:h>d?Math.max(d-h,u-p):0}function o4(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Mg(e){if(Xi[e])return Xi[e];let[t,r]=e.split(" "),n=gr[t]||"right",o=r4[n];gr[r]||(r="center");let s=sc[n],i=sc[o];return Xi[e]={placement:t,crossPlacement:r,axis:n,crossAxis:o,size:s,crossSize:i},Xi[e]}function ic(e,t,r,n,o,s,i,a,l,c){let{placement:u,crossPlacement:d,axis:p,crossAxis:h,size:g,crossSize:m}=n,x={};var v;x[h]=(v=e[h])!==null&&v!==void 0?v:0;var $,C,E,T;d==="center"?x[h]+=((($=e[m])!==null&&$!==void 0?$:0)-((C=r[m])!==null&&C!==void 0?C:0))/2:d!==h&&(x[h]+=((E=e[m])!==null&&E!==void 0?E:0)-((T=r[m])!==null&&T!==void 0?T:0)),x[h]+=s;const k=e[h]-r[m]+l+c,D=e[h]+e[m]-l-c;if(x[h]=Sr(x[h],k,D),u===p){const P=a?i[g]:t[kg[g]];x[Yi[p]]=Math.floor(P-e[p]+o)}else x[p]=Math.floor(e[p]+e[g]+o);return x}function s4(e,t,r,n,o,s,i,a){const l=n?r.height:t[kg.height];var c;let u=e.top!=null?r.top+e.top:r.top+(l-((c=e.bottom)!==null&&c!==void 0?c:0)-i);var d,p,h,g,m,x;let v=a!=="top"?Math.max(0,t.height+t.top+((d=t.scroll.top)!==null&&d!==void 0?d:0)-u-(((p=o.top)!==null&&p!==void 0?p:0)+((h=o.bottom)!==null&&h!==void 0?h:0)+s)):Math.max(0,u+i-(t.top+((g=t.scroll.top)!==null&&g!==void 0?g:0))-(((m=o.top)!==null&&m!==void 0?m:0)+((x=o.bottom)!==null&&x!==void 0?x:0)+s));return Math.min(t.height-s*2,v)}function Dg(e,t,r,n,o,s){let{placement:i,axis:a,size:l}=s;var c,u;if(i===a)return Math.max(0,r[a]-e[a]-((c=e.scroll[a])!==null&&c!==void 0?c:0)+t[a]-((u=n[a])!==null&&u!==void 0?u:0)-n[Yi[a]]-o);var d;return Math.max(0,e[l]+e[a]+e.scroll[a]-t[a]-r[a]-r[l]-((d=n[a])!==null&&d!==void 0?d:0)-n[Yi[a]]-o)}function i4(e,t,r,n,o,s,i,a,l,c,u,d,p,h,g,m){let x=Mg(e),{size:v,crossAxis:$,crossSize:C,placement:E,crossPlacement:T}=x,k=ic(t,a,r,x,u,d,c,p,g,m),D=u,P=Dg(a,c,t,o,s+u,x);if(i&&n[v]>P){let R=Mg(`${Yi[E]} ${T}`),me=ic(t,a,r,R,u,d,c,p,g,m);Dg(a,c,t,o,s+u,R)>P&&(x=R,k=me,D=u)}let V="bottom";x.axis==="top"?x.placement==="top"?V="top":x.placement==="bottom"&&(V="bottom"):x.crossAxis==="top"&&(x.crossPlacement==="top"?V="bottom":x.crossPlacement==="bottom"&&(V="top"));let F=_g($,k[$],r[C],a,l,s,c);k[$]+=F;let y=s4(k,a,c,p,o,s,r.height,V);h&&h<y&&(y=h),r.height=Math.min(r.height,y),k=ic(t,a,r,x,D,d,c,p,g,m),F=_g($,k[$],r[C],a,l,s,c),k[$]+=F;let M={},A=t[$]-k[$]-o[gr[$]],I=A+.5*t[C];const N=g/2+m;var w,S,_,B;const L=gr[$]==="left"?((w=o.left)!==null&&w!==void 0?w:0)+((S=o.right)!==null&&S!==void 0?S:0):((_=o.top)!==null&&_!==void 0?_:0)+((B=o.bottom)!==null&&B!==void 0?B:0),K=r[C]-L-g/2-m,z=t[$]+g/2-(k[$]+o[gr[$]]),W=t[$]+t[C]-g/2-(k[$]+o[gr[$]]),U=Sr(I,z,W);M[$]=Sr(U,N,K),{placement:E,crossPlacement:T}=x,g?A=M[$]:T==="right"?A+=t[C]:T==="center"&&(A+=t[C]/2);let ee=E==="left"||E==="top"?r[v]:0,G={x:E==="top"||E==="bottom"?A:ee,y:E==="left"||E==="right"?A:ee};return{position:k,maxHeight:y,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:E,triggerAnchorPoint:G}}function a4(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:o,padding:s,shouldFlip:i,boundaryElement:a,offset:l,crossOffset:c,maxHeight:u,arrowSize:d=0,arrowBoundaryOffset:p=0}=e,h=n instanceof HTMLElement?l4(n):document.documentElement,g=h===document.documentElement;const m=window.getComputedStyle(h).position;let x=!!m&&m!=="static",v=g?Co(r,!1):Ag(r,h,!1);if(!g){let{marginTop:M,marginLeft:A}=window.getComputedStyle(r);v.top+=parseInt(M,10)||0,v.left+=parseInt(A,10)||0}let $=Co(n,!0),C=o4(n);var E,T;$.width+=((E=C.left)!==null&&E!==void 0?E:0)+((T=C.right)!==null&&T!==void 0?T:0);var k,D;$.height+=((k=C.top)!==null&&k!==void 0?k:0)+((D=C.bottom)!==null&&D!==void 0?D:0);let P=n4(o),V=Ig(a),F=Ig(h),y=a.tagName==="BODY"?Co(h,!1):Ag(h,a,!1);return h.tagName==="HTML"&&a.tagName==="BODY"&&(F.scroll.top=0,F.scroll.left=0),i4(t,v,$,P,C,s,i,V,F,y,l,c,x,u,d,p)}function ac(e,t){let{top:r,left:n,width:o,height:s}=e.getBoundingClientRect();return t&&e instanceof e.ownerDocument.defaultView.HTMLElement&&(o=e.offsetWidth,s=e.offsetHeight),{top:r,left:n,width:o,height:s}}function Co(e,t){let{top:r,left:n,width:o,height:s}=ac(e,t),{scrollTop:i,scrollLeft:a,clientTop:l,clientLeft:c}=document.documentElement;return{top:r+i-l,left:n+a-c,width:o,height:s}}function Ag(e,t,r){let n=window.getComputedStyle(e),o;if(n.position==="fixed")o=ac(e,r);else{o=Co(e,r);let s=Co(t,r),i=window.getComputedStyle(t);s.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,s.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,o.top-=s.top,o.left-=s.left}return o.top-=parseInt(n.marginTop,10)||0,o.left-=parseInt(n.marginLeft,10)||0,o}function l4(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!Ng(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!Ng(t);)t=t.parentElement;return t||document.documentElement}function Ng(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const Og=new WeakMap;function u4(e){let{triggerRef:t,isOpen:r,onClose:n}=e;f.useEffect(()=>{if(!r||n===null)return;let o=s=>{let i=s.target;if(!t.current||i instanceof Node&&!i.contains(t.current)||s.target instanceof HTMLInputElement||s.target instanceof HTMLTextAreaElement)return;let a=n||Og.get(t.current);a&&a()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[r,n,t])}const c4=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),d4=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function f4(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize(),n=typeof r.getTextInfo=="function"?r.getTextInfo():r.textInfo;if(n)return n.direction==="rtl";if(r.script)return c4.has(r.script)}let t=e.split("-")[0];return d4.has(t)}const p4=Symbol.for("react-aria.i18n.locale");function Lg(){let e=typeof window<"u"&&window[p4]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:f4(e)?"rtl":"ltr"}}let lc=Lg(),os=new Set;function Fg(){lc=Lg();for(let e of os)e(lc)}function h4(){let e=ro(),[t,r]=f.useState(lc);return f.useEffect(()=>(os.size===0&&window.addEventListener("languagechange",Fg),os.add(r),()=>{os.delete(r),os.size===0&&window.removeEventListener("languagechange",Fg)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const m4=f.createContext(null);function ss(){let e=h4();return f.useContext(m4)||e}const Vg=new WeakMap;function g4(e){let t=Vg.get(e);return t||(t=new qs(e),Vg.set(e,t)),t}function v4(e,t){return t&&qs.getGlobalDictionaryForPackage(t)||g4(e)}function jg(e,t){let{locale:r}=ss(),n=v4(e,t);return f.useMemo(()=>new g$(r,n),[r,n])}let uc=new Map;function zg(e){let{locale:t}=ss(),r=t+(e?Object.entries(e).sort((o,s)=>o[0]<s[0]?-1:1).join():"");if(uc.has(r))return uc.get(r);let n=new Intl.Collator(t,e);return uc.set(r,n),n}let at=typeof document<"u"?window.visualViewport:null;function b4(e){let{direction:t}=ss(),{arrowSize:r,targetRef:n,overlayRef:o,arrowRef:s,scrollRef:i=o,placement:a="bottom",containerPadding:l=12,shouldFlip:c=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:d=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:g=!0,onClose:m,maxHeight:x,arrowBoundaryOffset:v=0}=e,[$,C]=f.useState(null),E=[h,a,o.current,n.current,s?.current,i.current,l,c,u,d,p,g,t,x,v,r],T=f.useRef(at?.scale);f.useEffect(()=>{g&&(T.current=at?.scale)},[g]);let k=f.useCallback(()=>{if(h===!1||!g||!o.current||!n.current||!u||at?.scale!==T.current)return;let M=null;if(i.current&&i.current.contains(document.activeElement)){var A;let L=(A=document.activeElement)===null||A===void 0?void 0:A.getBoundingClientRect(),K=i.current.getBoundingClientRect();var I;if(M={type:"top",offset:((I=L?.top)!==null&&I!==void 0?I:0)-K.top},M.offset>K.height/2){M.type="bottom";var N;M.offset=((N=L?.bottom)!==null&&N!==void 0?N:0)-K.bottom}}let w=o.current;if(!x&&o.current){var S;w.style.top="0px",w.style.bottom="";var _;w.style.maxHeight=((_=(S=window.visualViewport)===null||S===void 0?void 0:S.height)!==null&&_!==void 0?_:window.innerHeight)+"px"}let B=a4({placement:x4(a,t),overlayNode:o.current,targetNode:n.current,scrollNode:i.current||o.current,padding:l,shouldFlip:c,boundaryElement:u,offset:d,crossOffset:p,maxHeight:x,arrowSize:r??(s?.current?ac(s.current,!0).width:0),arrowBoundaryOffset:v});if(B.position){if(w.style.top="",w.style.bottom="",w.style.left="",w.style.right="",Object.keys(B.position).forEach(L=>w.style[L]=B.position[L]+"px"),w.style.maxHeight=B.maxHeight!=null?B.maxHeight+"px":"",M&&document.activeElement&&i.current){let L=document.activeElement.getBoundingClientRect(),K=i.current.getBoundingClientRect(),z=L[M.type]-K[M.type];i.current.scrollTop+=z-M.offset}C(B)}},E);Be(k,E),y4(k),ei({ref:o,onResize:k}),ei({ref:n,onResize:k});let D=f.useRef(!1);Be(()=>{let M,A=()=>{D.current=!0,clearTimeout(M),M=setTimeout(()=>{D.current=!1},500),k()},I=()=>{D.current&&A()};return at?.addEventListener("resize",A),at?.addEventListener("scroll",I),()=>{at?.removeEventListener("resize",A),at?.removeEventListener("scroll",I)}},[k]);let P=f.useCallback(()=>{D.current||m?.()},[m,D]);u4({triggerRef:n,isOpen:g,onClose:m&&P});var V,F,y;return{overlayProps:{style:{position:$?"absolute":"fixed",top:$?void 0:0,left:$?void 0:0,zIndex:1e5,...$?.position,maxHeight:(V=$?.maxHeight)!==null&&V!==void 0?V:"100vh"}},placement:(F=$?.placement)!==null&&F!==void 0?F:null,triggerAnchorPoint:(y=$?.triggerAnchorPoint)!==null&&y!==void 0?y:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$?.arrowOffsetLeft,top:$?.arrowOffsetTop}},updatePosition:k}}function y4(e){Be(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function x4(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}function Bg(e,t,r){let{type:n}=e,{isOpen:o}=t;f.useEffect(()=>{r&&r.current&&Og.set(r.current,t.close)});let s;n==="menu"?s=!0:n==="listbox"&&(s="listbox");let i=Nt();return{triggerProps:{"aria-haspopup":s,"aria-expanded":o,"aria-controls":o?i:void 0,onPress:t.toggle},overlayProps:{id:i}}}const is=typeof document<"u"&&window.visualViewport;let Ji=0,cc;function dc(e={}){let{isDisabled:t}=e;Be(()=>{if(!t)return Ji++,Ji===1&&(Js()?cc=$4():cc=w4()),()=>{Ji--,Ji===0&&cc()}},[t])}function w4(){let e=window.innerWidth-document.documentElement.clientWidth;return an(e>0&&("scrollbarGutter"in document.documentElement.style?fc(document.documentElement,"scrollbarGutter","stable"):fc(document.documentElement,"paddingRight",`${e}px`)),fc(document.documentElement,"overflow","hidden"))}function $4(){let e,t=!1,r=l=>{let c=l.target;e=so(c)?c:Qf(c,!0),t=!1;let u=c.ownerDocument.defaultView.getSelection();u&&!u.isCollapsed&&u.containsNode(c,!0)&&(t=!0),"selectionStart"in c&&"selectionEnd"in c&&c.selectionStart<c.selectionEnd&&c.ownerDocument.activeElement===c&&(t=!0)},n=document.createElement("style");n.textContent=`
|
|
403
442
|
@layer {
|
|
404
443
|
* {
|
|
405
444
|
overscroll-behavior: contain;
|
|
406
445
|
}
|
|
407
|
-
}`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},i=l=>{let c=l.target,u=l.relatedTarget;if(u&&Zu(u))u.focus({preventScroll:!0}),sv(u,Zu(c));else if(!u){var d;let h=(d=c.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");h?.focus({preventScroll:!0})}},s=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let c=document.activeElement!=null&&Zu(document.activeElement);s.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&sv(this,c)};let a=wn(Ec(document,"touchstart",r,{passive:!1,capture:!0}),Ec(document,"touchmove",o,{passive:!1,capture:!0}),Ec(document,"blur",i,!0));return()=>{a(),n.remove(),HTMLElement.prototype.focus=s}}function $c(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Ec(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function sv(e,t){t||!ui?av(e):ui.addEventListener("resize",()=>av(e),{once:!0})}function av(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=pg(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(i.top<o.top||i.bottom>o.top+r.clientHeight){let s=o.bottom;ui&&(s=Math.min(s,ui.offsetTop+ui.height));let a=i.top-o.top-((s-o.top)/2-i.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+a)),behavior:"smooth"})}}r=n.parentElement}}const G4=f.createContext({});function Z4(){var e;return(e=f.useContext(G4))!==null&&e!==void 0?e:{}}var lv={};lv={dismiss:"تجاهل"};var uv={};uv={dismiss:"Отхвърляне"};var cv={};cv={dismiss:"Odstranit"};var dv={};dv={dismiss:"Luk"};var fv={};fv={dismiss:"Schließen"};var pv={};pv={dismiss:"Απόρριψη"};var hv={};hv={dismiss:"Dismiss"};var mv={};mv={dismiss:"Descartar"};var gv={};gv={dismiss:"Lõpeta"};var vv={};vv={dismiss:"Hylkää"};var bv={};bv={dismiss:"Rejeter"};var yv={};yv={dismiss:"התעלם"};var xv={};xv={dismiss:"Odbaci"};var wv={};wv={dismiss:"Elutasítás"};var $v={};$v={dismiss:"Ignora"};var Ev={};Ev={dismiss:"閉じる"};var Pv={};Pv={dismiss:"무시"};var Sv={};Sv={dismiss:"Atmesti"};var Cv={};Cv={dismiss:"Nerādīt"};var Tv={};Tv={dismiss:"Lukk"};var kv={};kv={dismiss:"Negeren"};var Iv={};Iv={dismiss:"Zignoruj"};var _v={};_v={dismiss:"Descartar"};var Mv={};Mv={dismiss:"Dispensar"};var Dv={};Dv={dismiss:"Revocare"};var Av={};Av={dismiss:"Пропустить"};var Ov={};Ov={dismiss:"Zrušiť"};var Nv={};Nv={dismiss:"Opusti"};var Lv={};Lv={dismiss:"Odbaci"};var Fv={};Fv={dismiss:"Avvisa"};var Vv={};Vv={dismiss:"Kapat"};var jv={};jv={dismiss:"Скасувати"};var zv={};zv={dismiss:"取消"};var Bv={};Bv={dismiss:"關閉"};var Rv={};Rv={"ar-AE":lv,"bg-BG":uv,"cs-CZ":cv,"da-DK":dv,"de-DE":fv,"el-GR":pv,"en-US":hv,"es-ES":mv,"et-EE":gv,"fi-FI":vv,"fr-FR":bv,"he-IL":yv,"hr-HR":xv,"hu-HU":wv,"it-IT":$v,"ja-JP":Ev,"ko-KR":Pv,"lt-LT":Sv,"lv-LV":Cv,"nb-NO":Tv,"nl-NL":kv,"pl-PL":Iv,"pt-BR":_v,"pt-PT":Mv,"ro-RO":Dv,"ru-RU":Av,"sk-SK":Ov,"sl-SI":Nv,"sr-SP":Lv,"sv-SE":Fv,"tr-TR":Vv,"uk-UA":jv,"zh-CN":zv,"zh-TW":Bv};const Kv={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Wv(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:i}=ai({isDisabled:!r,onFocusWithinChange:a=>o(a)}),s=f.useMemo(()=>n?t:t?{...Kv,...t}:Kv,[n]);return{visuallyHiddenProps:{...i,style:s}}}function Uv(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...i}=e,{visuallyHiddenProps:s}=Wv(e);return f.createElement(r,ze(i,s),t)}function q4(e){return e&&e.__esModule?e.default:e}function ta(e){let{onDismiss:t,...r}=e,n=Mg(q4(Rv),"@react-aria/overlays"),o=Gu(r,n.format("dismiss")),i=()=>{t&&t()};return f.createElement(Uv,null,f.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}const Y4=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let ci=new WeakMap,nr=[];function X4(e,t){let r=Rt(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let i=(o=n?.root)!==null&&o!==void 0?o:document.body,s=n?.shouldUseInert&&Y4,a=new Set(e),l=new Set,c=m=>s&&m instanceof r.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",u=(m,x)=>{s&&m instanceof r.HTMLElement?m.inert=x:x?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof r.HTMLElement&&(m.inert=!1))},d=m=>{for(let S of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(S);let x=S=>{if(l.has(S)||a.has(S)||S.parentElement&&l.has(S.parentElement)&&S.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let C of a)if(S.contains(C))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},v=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode:x}),$=x(m);if($===NodeFilter.FILTER_ACCEPT&&h(m),$!==NodeFilter.FILTER_REJECT){let S=v.nextNode();for(;S!=null;)h(S),S=v.nextNode()}},h=m=>{var x;let v=(x=ci.get(m))!==null&&x!==void 0?x:0;c(m)&&v===0||(v===0&&u(m,!0),l.add(m),ci.set(m,v+1))};nr.length&&nr[nr.length-1].disconnect(),d(i);let p=new MutationObserver(m=>{for(let x of m)if(x.type==="childList"&&![...a,...l].some(v=>v.contains(x.target)))for(let v of x.addedNodes)(v instanceof HTMLElement||v instanceof SVGElement)&&(v.dataset.liveAnnouncer==="true"||v.dataset.reactAriaTopLayer==="true")?a.add(v):v instanceof Element&&d(v)});p.observe(i,{childList:!0,subtree:!0});let g={visibleNodes:a,hiddenNodes:l,observe(){p.observe(i,{childList:!0,subtree:!0})},disconnect(){p.disconnect()}};return nr.push(g),()=>{p.disconnect();for(let m of l){let x=ci.get(m);x!=null&&(x===1?(u(m,!1),ci.delete(m)):ci.set(m,x-1))}g===nr[nr.length-1]?(nr.pop(),nr.length&&nr[nr.length-1].observe()):nr.splice(nr.indexOf(g),1)}}const Hv=f.createContext(null);function Gv(e){let t=Hn(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,i]=f.useState(!1),s=f.useMemo(()=>({contain:o,setContain:i}),[o,i]),{getContainer:a}=Z4();if(!e.portalContainer&&a&&(r=a()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=f.createElement(N4,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=f.createElement(Hv.Provider,{value:s},f.createElement(M4,null,l)),Bn.createPortal(l,r)}function Zv(){let e=f.useContext(Hv),t=e?.setContain;We(()=>{t?.(!0)},[t])}function qv(e,t){let{role:r="dialog"}=e,n=xn();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Cn(t.current);let i=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),Cn(t.current)),o.current=!1)},500);return()=>{clearTimeout(i)}}},[t]),Zv(),{dialogProps:{...Wr(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:i=>{o.current&&i.stopPropagation()}},titleProps:{id:n}}}var gr=typeof document<"u"&&window.visualViewport,J4=f.createContext(!1);function Q4(){return!1}function e5(){return!0}function t5(e){return()=>{}}function r5(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(t5,Q4,e5):f.useContext(J4)}function n5(){let e=r5(),[t,r]=f.useState(()=>e?{width:0,height:0}:Yv());return f.useEffect(()=>{let n=()=>{r(o=>{let i=Yv();return i.width===o.width&&i.height===o.height?o:i})};return gr?gr.addEventListener("resize",n):window.addEventListener("resize",n),()=>{gr?gr.removeEventListener("resize",n):window.removeEventListener("resize",n)}},[]),t}function Yv(){return{width:gr&&gr?.width||window.innerWidth,height:gr&&gr?.height||window.innerHeight}}var Xv=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),Jv=e=>{const{as:t,children:r,role:n="dialog",...o}=e,{Component:i,domRef:s,slots:a,classNames:l,motionProps:c,backdrop:u,closeButton:d,hideCloseButton:h,disableAnimation:p,getDialogProps:g,getBackdropProps:m,getCloseButtonProps:x,onClose:v}=As(),$=t||i||"div",S=n5(),{dialogProps:C}=qv({role:n},s),T=f.isValidElement(d)?f.cloneElement(d,x()):y.jsx("button",{...x(),children:y.jsx(y2,{})}),k=f.useCallback(M=>{M.key==="Tab"&&M.nativeEvent.isComposing&&(M.stopPropagation(),M.preventDefault())},[]),D=g(Ve(C,o)),E=y.jsxs($,{...D,onKeyDown:Fu(D.onKeyDown,k),children:[y.jsx(ta,{onDismiss:v}),!h&&T,typeof r=="function"?r(v):r,y.jsx(ta,{onDismiss:v})]}),V=f.useMemo(()=>u==="transparent"?null:p?y.jsx("div",{...m()}):y.jsx(ao,{features:Xv,children:y.jsx(lo.div,{animate:"enter",exit:"exit",initial:"exit",variants:ju.fade,...m()})}),[u,p,m]),F={"--visual-viewport-height":S.height+"px"},b=p?y.jsx("div",{className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",style:F,children:E}):y.jsx(ao,{features:Xv,children:y.jsx(lo.div,{animate:"enter",className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:fT,...c,style:F,children:E})});return y.jsxs("div",{tabIndex:-1,children:[V,b]})};Jv.displayName="HeroUI.ModalContent";var o5=Jv,Qv=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a}=As(),l=er(t),c=r||"footer";return y.jsx(c,{ref:l,className:s.footer({class:Se(a?.footer,o)}),...i,children:n})});Qv.displayName="HeroUI.ModalFooter";var i5=Qv,eb=Re((e,t)=>{const{as:r,children:n,className:o,...i}=e,{slots:s,classNames:a,headerId:l,setHeaderMounted:c}=As(),u=er(t),d=r||"header";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),y.jsx(d,{ref:u,className:s.header({class:Se(a?.header,o)}),id:l,...i,children:n})});eb.displayName="HeroUI.ModalHeader";var s5=eb,vr=[];function tb(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(i&&!vr.includes(t))return vr.push(t),()=>{let x=vr.indexOf(t);x>=0&&vr.splice(x,1)}},[i,t]);const c=()=>{vr[vr.length-1]===t&&s&&s()},u=x=>{(!l||l(x.target))&&(vr[vr.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),m(t)!=="pressEnd"&&c())},d=x=>{(!l||l(x.target))&&(vr[vr.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),c())},h=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),c())};A4({isDisabled:!(n&&i),onInteractOutside:n&&i?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:p}=ai({isDisabled:!a,onBlurWithin:x=>{!x.relatedTarget||j4(x.relatedTarget)||(!l||l(x.relatedTarget))&&c()}}),g=x=>{x.target===x.currentTarget&&x.preventDefault()};function m(x){const v=x.current;if(!v)return"unknown";const $=(v.getAttribute("role")||"").toLowerCase(),S=v.getAttribute("aria-modal");return($==="dialog"||$==="alertdialog")&&(S===null||S.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes($)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function a5(e={shouldBlockScroll:!0},t,r){let{overlayProps:n,underlayProps:o}=tb({...e,isOpen:t.isOpen,onClose:t.close},r);return wc({isDisabled:!t.isOpen||!e.shouldBlockScroll}),Zv(),f.useEffect(()=>{if(t.isOpen&&r.current)return X4([r.current])},[t.isOpen,r]),{modalProps:ze(n),underlayProps:o}}function rb(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:h,target:p,rel:g,type:m="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?h:void 0,target:r==="a"?p:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:$,isPressed:S}=Ir({onClick:d,onPressStart:i,onPressEnd:s,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:C}=hc(e,t);u&&(C.tabIndex=n?-1:C.tabIndex);let T=ze(C,$,Wr(e,{labelable:!0}));return{isPressed:S,buttonProps:ze(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function ra(e){let[t,r]=jr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=f.useCallback(()=>{r(!0)},[r]),o=f.useCallback(()=>{r(!1)},[r]),i=f.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:i}}function l5(e){var t,r,n;const o=gt(),[i,s]=qt(e,Xd.variantKeys),{ref:a,as:l,className:c,classNames:u,isOpen:d,defaultOpen:h,onOpenChange:p,motionProps:g,closeButton:m,isDismissable:x=!0,hideCloseButton:v=!1,shouldBlockScroll:$=!0,portalContainer:S,isKeyboardDismissDisabled:C=!1,onClose:T,...k}=i,D=l||"section",E=er(a),V=f.useRef(null),[F,b]=f.useState(!1),[M,A]=f.useState(!1),I=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,N=f.useId(),w=f.useId(),P=f.useId(),_=ra({isOpen:d,defaultOpen:h,onOpenChange:fe=>{p?.(fe),fe||T?.()}}),{modalProps:B,underlayProps:L}=a5({isDismissable:x,shouldBlockScroll:$,isKeyboardDismissDisabled:C},_,E),{buttonProps:K}=rb({onPress:_.close},V),{isFocusVisible:z,focusProps:W}=So(),U=Se(u?.base,c),ee=f.useMemo(()=>Xd({...s,disableAnimation:I}),[yn(s),I]),Z=(fe={},Q=null)=>{var se;return{ref:Vu(Q,E),...Ve(B,k,fe),className:ee.base({class:Se(U,fe.className)}),id:N,"data-open":ve(_.isOpen),"data-dismissable":ve(x),"aria-modal":ve(!0),"data-placement":(se=e?.placement)!=null?se:"right","aria-labelledby":F?w:void 0,"aria-describedby":M?P:void 0}},R=f.useCallback((fe={})=>({className:ee.backdrop({class:u?.backdrop}),...L,...fe}),[ee,u,L]),he=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":ve(z),className:ee.closeButton({class:u?.closeButton}),...Ve(K,W)});return{Component:D,slots:ee,domRef:E,headerId:w,bodyId:P,motionProps:g,classNames:u,isDismissable:x,closeButton:m,hideCloseButton:v,portalContainer:S,shouldBlockScroll:$,backdrop:(n=e.backdrop)!=null?n:"opaque",isOpen:_.isOpen,onClose:_.close,disableAnimation:I,setBodyMounted:A,setHeaderMounted:b,getDialogProps:Z,getBackdropProps:R,getCloseButtonProps:he}}var nb=Re((e,t)=>{const{children:r,...n}=e,o=l5({...n,ref:t}),i=y.jsx(Gv,{portalContainer:o.portalContainer,children:r});return y.jsx(cT,{value:o,children:o.disableAnimation&&o.isOpen?i:y.jsx(ss,{children:o.isOpen?i:null})})});nb.displayName="HeroUI.Modal";var u5=nb,kn=globalThis?.document?f.useLayoutEffect:f.useEffect;function c5(e,t=[]){const r=f.useRef(e);return kn(()=>{r.current=e}),f.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function ob({filters:e,activeFilters:t,onFilterChange:r,classNames:n}){const[o,i]=f.useState(!1);return y.jsxs(y.Fragment,{children:[y.jsxs(ti,{className:j("group gap-1 border-primary-600 text-primary-600 hover:bg-primary-600 hover:text-white transition-colors leading-none font-semibold text-base",n?.button),variant:"bordered",color:"primary",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,onPress:()=>i(!0),startContent:y.jsx(Km,{size:16,className:"stroke-primary-600 group-hover:stroke-white"}),children:["Filters",t.length>0&&` (${t.length})`]}),y.jsx(u5,{isOpen:o,onOpenChange:i,placement:"bottom-center",portalContainer:document.getElementsByClassName("mobielnl-elements")[0],classNames:{backdrop:j(n?.modal?.backdrop),wrapper:j(n?.modal?.wrapper),base:j(n?.modal?.base),header:j("flex items-center gap-1 text-foreground",n?.modal?.header),body:j(n?.modal?.body),footer:j(n?.modal?.footer),closeButton:j("cursor-pointer right-6 top-3.5 text-foreground hover:bg-foreground-50 active:bg-foreground-50",n?.modal?.closeButton)},children:y.jsx(o5,{children:s=>y.jsxs(y.Fragment,{children:[y.jsxs(s5,{children:[y.jsx(Km,{size:20,className:"stroke-foreground"}),"Filters"]}),y.jsx(dT,{children:y.jsx(Ac,{filters:e,activeFilters:t,onFilterChange:r,classNames:n?.filters})}),y.jsx(i5,{children:y.jsx(ti,{className:j("bg-primary-600 text-base font-medium",n?.modal?.primaryButton),color:"primary",variant:"solid",radius:"full",onPress:s,fullWidth:!0,disableAnimation:!0,children:"Toon resultaten"})})]})})})]})}const ib={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},sb={...ib,customError:!0,valid:!1},di={isInvalid:!1,validationDetails:ib,validationErrors:[]},ab=f.createContext({}),lb="__formValidationState"+Date.now();function ub(e){if(e[lb]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[lb];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return d5(e)}function d5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:sb}:null,c=f.useMemo(()=>{if(!s||o==null)return null;let F=f5(s,o);return cb(F)},[s,o]);i?.validationDetails.valid&&(i=void 0);let u=f.useContext(ab),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>Pc(u[F])):Pc(u[n]):[],[u,n]),[h,p]=f.useState(u),[g,m]=f.useState(!1);u!==h&&(p(u),m(!1));let x=f.useMemo(()=>cb(g?[]:d),[g,d]),v=f.useRef(di),[$,S]=f.useState(di),C=f.useRef(di),T=()=>{if(!k)return;D(!1);let F=c||i||v.current;Sc(F,C.current)||(C.current=F,S(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||i||di,displayValidation:a==="native"?l||x||$:l||x||c||i||$,updateValidation(F){a==="aria"&&!Sc($,F)?S(F):v.current=F},resetValidation(){let F=di;Sc(F,C.current)||(C.current=F,S(F)),a==="native"&&D(!1),m(!0)},commitValidation(){a==="native"&&D(!0),m(!0)}}}function Pc(e){return e?Array.isArray(e)?e:[e]:[]}function f5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Pc(r)}return[]}function cb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:sb}:null}function Sc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}let p5=Math.round(Math.random()*1e10),h5=0;function m5(e){let t=f.useMemo(()=>e.name||`radio-group-${p5}-${++h5}`,[e.name]);var r;let[n,o]=jr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[i]=f.useState(n),[s,a]=f.useState(null),l=ub({...e,value:n}),c=h=>{!e.isReadOnly&&!e.isDisabled&&(o(h),l.commitValidation())},u=l.displayValidation.isInvalid;var d;return{...l,name:t,selectedValue:n,defaultSelectedValue:e.value!==void 0?i:(d=e.defaultValue)!==null&&d!==void 0?d:null,setSelectedValue:c,lastFocusedValue:s,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const db=new WeakMap;function fb(e,t,r){let{validationBehavior:n,focus:o}=e;We(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(v5(r.current))}});let i=f.useRef(!1),s=nt(()=>{i.current||t.resetValidation()}),a=nt(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&b5(d)===r.current){var h;o?o():(h=r.current)===null||h===void 0||h.focus(),pc("keyboard")}c.preventDefault()}),l=nt(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),i.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",s),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",s),u&&(u.reset=d)}},[r,a,l,s,n])}function g5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function v5(e){return{isInvalid:!e.validity.valid,validationDetails:g5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function b5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function y5(e,t,r){let{value:n,children:o,"aria-label":i,"aria-labelledby":s,onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:h}=e;const p=e.isDisabled||t.isDisabled;let g=o!=null,m=i!=null||s!=null;!g&&!m&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let x=t.selectedValue===n,v=N=>{N.stopPropagation(),t.setSelectedValue(n)},{pressProps:$,isPressed:S}=Ir({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:h,isDisabled:p}),{pressProps:C,isPressed:T}=Ir({onPressStart:a,onPressEnd:l,onPressChange:c,onPressUp:d,onClick:h,isDisabled:p,onPress(N){var w;u?.(N),t.setSelectedValue(n),(w=r.current)===null||w===void 0||w.focus()}}),{focusableProps:k}=hc(ze(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),D=ze($,k),E=Wr(e,{labelable:!0}),V=-1;t.selectedValue!=null?t.selectedValue===n&&(V=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(V=0),p&&(V=void 0);let{name:F,form:b,descriptionId:M,errorMessageId:A,validationBehavior:I}=db.get(t);return vg(r,t.defaultSelectedValue,t.setSelectedValue),fb({validationBehavior:I},t,r),{labelProps:ze(C,f.useMemo(()=>({onClick:N=>N.preventDefault(),onMouseDown:N=>N.preventDefault()}),[])),inputProps:ze(E,{...D,type:"radio",name:F,form:b,tabIndex:V,disabled:p,required:t.isRequired&&I==="native",checked:x,value:n,onChange:v,"aria-describedby":[e["aria-describedby"],t.isInvalid?A:null,M].filter(Boolean).join(" ")||void 0}),isDisabled:p,isSelected:x,isPressed:S||T}}function pb(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Bt(t);let s=Bt(),a={};r?(n=n?`${s} ${n}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Gu({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function hb(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:s}=pb(e),a=xn([!!t,!!r,n,o]),l=xn([!!t,!!r,n,o]);return s=ze(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function x5(e,t){let{name:r,form:n,isReadOnly:o,isRequired:i,isDisabled:s,orientation:a="vertical",validationBehavior:l="aria"}=e,{direction:c}=ii(),{isInvalid:u,validationErrors:d,validationDetails:h}=t.displayValidation,{labelProps:p,fieldProps:g,descriptionProps:m,errorMessageProps:x}=hb({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),v=Wr(e,{labelable:!0}),{focusWithinProps:$}=ai({onBlurWithin(T){var k;(k=e.onBlur)===null||k===void 0||k.call(e,T),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),S=T=>{let k;switch(T.key){case"ArrowRight":c==="rtl"&&a!=="vertical"?k="prev":k="next";break;case"ArrowLeft":c==="rtl"&&a!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}T.preventDefault();let D=mr(T.currentTarget,{from:T.target,accept:V=>V instanceof Rt(V).HTMLInputElement&&V.type==="radio"}),E;k==="next"?(E=D.nextNode(),E||(D.currentNode=T.currentTarget,E=D.firstChild())):(E=D.previousNode(),E||(D.currentNode=T.currentTarget,E=D.lastChild())),E&&(E.focus(),t.setSelectedValue(E.value))},C=Bt(r);return db.set(t,{name:C,form:n,descriptionId:m.id,errorMessageId:x.id,validationBehavior:l}),{radioGroupProps:ze(v,{role:"radiogroup",onKeyDown:S,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":i||void 0,"aria-disabled":s||void 0,"aria-orientation":a,...g,...$}),labelProps:p,descriptionProps:m,errorMessageProps:x,isInvalid:u,validationErrors:d,validationDetails:h}}var mb=Symbol("default");function w5(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function Cc(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[mb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||mb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function $5(e,t,r){let n=Cc(r,e.slot)||{},{ref:o,...i}=n,s=w5(f.useMemo(()=>Vu(t,o),[t,o])),a=Ve(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...i.style,...e.style}),[a,s]}var na=f.createContext(null);f.forwardRef(function(t,r){[t,r]=$5(t,r,na);let{validationErrors:n,validationBehavior:o="native",children:i,className:s,...a}=t;const l=f.useMemo(()=>Qd({className:s}),[s]);return y.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:y.jsx(na.Provider,{value:{...t,validationBehavior:o},children:y.jsx(ab.Provider,{value:n??{},children:i})})})});function E5(e){var t,r;const n=gt(),{validationBehavior:o}=Cc(na)||{},{as:i,ref:s,classNames:a,children:l,label:c,value:u,name:d,isInvalid:h,validationState:p,validationBehavior:g=(t=o??n?.validationBehavior)!=null?t:"native",size:m="md",color:x="primary",isDisabled:v=!1,disableAnimation:$=(r=n?.disableAnimation)!=null?r:!1,orientation:S="vertical",isRequired:C=!1,isReadOnly:T,errorMessage:k,description:D,className:E,onChange:V,onValueChange:F,...b}=e,M=i||"div",A=typeof M=="string",I=er(s),N=f.useMemo(()=>({...b,value:u,name:d,"aria-label":aT(b["aria-label"],c),isRequired:C,isReadOnly:T,isInvalid:p==="invalid"||h,orientation:S,validationBehavior:g,onChange:F}),[b,u,d,c,C,T,h,p,g,S,F]),w=m5(N),{labelProps:P,radioGroupProps:_,errorMessageProps:B,descriptionProps:L,isInvalid:K,validationErrors:z,validationDetails:W}=x5(N,w),U=N.isInvalid||K||w.isInvalid,ee=f.useMemo(()=>({size:m,color:x,groupState:w,isRequired:C,isInvalid:U,isDisabled:v,disableAnimation:$,onChange:V}),[m,x,C,v,U,V,$,w.name,w.isDisabled,w.isReadOnly,w.isRequired,w.selectedValue,w.lastFocusedValue]),Z=f.useMemo(()=>Ex({isRequired:C,isInvalid:U,disableAnimation:$}),[U,C,$]),R=Se(a?.base,E),he=f.useCallback(()=>({ref:I,className:Z.base({class:R}),...Ve(_,Tt(b,{enabled:A}))}),[I,Z,R,_,b]),fe=f.useCallback(()=>({className:Z.label({class:a?.label}),...P}),[Z,a?.label,P,a?.label]),Q=f.useCallback(()=>({className:Z.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":S}),[Z,a?.wrapper,S,Z.wrapper]),se=f.useCallback((Y={})=>({...Y,...L,className:Z.description({class:Se(a?.description,Y?.className)})}),[Z,a?.description,L,Z.description]),q=f.useCallback((Y={})=>({...Y,...B,className:Z.errorMessage({class:Se(a?.errorMessage,Y?.className)})}),[Z,a?.errorMessage,B]);return{Component:M,children:l,label:c,context:ee,description:D,isInvalid:U,errorMessage:typeof k=="function"?k({isInvalid:U,validationErrors:z,validationDetails:W}):k||z?.join(" "),getGroupProps:he,getLabelProps:fe,getWrapperProps:Q,getDescriptionProps:se,getErrorMessageProps:q}}var[P5,S5]=Nu({name:"RadioGroupContext",strict:!1}),gb=Re((e,t)=>{const{Component:r,children:n,label:o,context:i,description:s,isInvalid:a,errorMessage:l,getGroupProps:c,getLabelProps:u,getWrapperProps:d,getDescriptionProps:h,getErrorMessageProps:p}=E5({...e,ref:t});return y.jsxs(r,{...c(),children:[o&&y.jsx("span",{...u(),children:o}),y.jsx("div",{...d(),children:y.jsx(P5,{value:i,children:n})}),a&&l?y.jsx("div",{...p(),children:l}):s?y.jsx("div",{...h(),children:s}):null]})});gb.displayName="HeroUI.RadioGroup";var C5=gb;function T5(e){var t,r,n,o,i;const s=gt(),a=S5(),{as:l,ref:c,classNames:u,id:d,value:h,children:p,description:g,size:m=(t=a?.size)!=null?t:"md",color:x=(r=a?.color)!=null?r:"primary",isDisabled:v=(n=a?.isDisabled)!=null?n:!1,disableAnimation:$=(i=(o=a?.disableAnimation)!=null?o:s?.disableAnimation)!=null?i:!1,onChange:S=a?.onChange,autoFocus:C=!1,className:T,...k}=e;a&&nT&&("checked"in k&&rg('Remove props "checked" if in the Radio.Group.',"Radio"),h===void 0&&rg('Props "value" must be defined if in the Radio.Group.',"Radio"));const D=l||"label",E=er(c),V=f.useRef(null),F=f.useId(),b=f.useId(),M=f.useMemo(()=>{var ae;return(ae=a.isRequired)!=null?ae:!1},[a.isRequired]),A=a.isInvalid,I=f.useMemo(()=>{const ae=[k["aria-describedby"],b].filter(Boolean).join(" ")||void 0;return{id:d,isRequired:M,isDisabled:v,"aria-label":k["aria-label"],"aria-labelledby":k["aria-labelledby"]||F,"aria-describedby":ae}},[d,v,M,g,k["aria-label"],k["aria-labelledby"],k["aria-describedby"],b]),{inputProps:N,isDisabled:w,isSelected:P,isPressed:_}=y5({value:h,children:typeof p=="function"?!0:p,...I},a.groupState,V),{focusProps:B,isFocused:L,isFocusVisible:K}=So({autoFocus:C}),z=w||N.readOnly,{hoverProps:W,isHovered:U}=Xs({isDisabled:z}),ee=z?!1:_,Z=f.useMemo(()=>$x({color:x,size:m,isInvalid:A,isDisabled:w,disableAnimation:$}),[x,m,w,A,$]),R=Se(u?.base,T),he=f.useCallback((ae={})=>({...ae,ref:E,className:Z.base({class:R}),"data-disabled":ve(w),"data-focus":ve(L),"data-focus-visible":ve(K),"data-selected":ve(P),"data-invalid":ve(A),"data-hover":ve(U),"data-pressed":ve(ee),"data-hover-unselected":ve(U&&!P),"data-readonly":ve(N.readOnly),"aria-required":ve(M),...Ve(W,k)}),[Z,R,E,w,L,K,P,A,U,ee,N.readOnly,M,k]),fe=f.useCallback((ae={})=>({...ae,"aria-hidden":!0,className:Se(Z.wrapper({class:Se(u?.wrapper,ae.className)}))}),[Z,u?.wrapper]),Q=f.useCallback((ae={})=>({ref:V,...Ve(ae,N,B),className:Z.hiddenInput({class:u?.hiddenInput}),onChange:Fu(N.onChange,S)}),[N,B,S]),se=f.useCallback((ae={})=>({...ae,id:F,className:Z.label({class:u?.label})}),[Z,u?.label,w,P,A]),q=f.useCallback((ae={})=>({...ae,className:Z.labelWrapper({class:u?.labelWrapper})}),[Z,u?.labelWrapper]),Y=f.useCallback((ae={})=>({...ae,className:Z.control({class:u?.control})}),[Z,u?.control]),de=f.useCallback((ae={})=>({...ae,id:b,className:Z.description({class:u?.description})}),[Z,u?.description]);return{Component:D,children:p,isSelected:P,isDisabled:w,isInvalid:A,isFocusVisible:K,description:g,getBaseProps:he,getWrapperProps:fe,getInputProps:Q,getLabelProps:se,getLabelWrapperProps:q,getControlProps:Y,getDescriptionProps:de}}var vb=Re((e,t)=>{const{Component:r,children:n,description:o,getBaseProps:i,getWrapperProps:s,getInputProps:a,getLabelProps:l,getLabelWrapperProps:c,getControlProps:u,getDescriptionProps:d}=T5({...e,ref:t});return y.jsxs(r,{...i(),children:[y.jsx("input",{...a()}),y.jsx("span",{...s(),children:y.jsx("span",{...u()})}),y.jsxs("div",{...c(),children:[n&&y.jsx("span",{...l(),children:n}),o&&y.jsx("span",{...d(),children:o})]})]})});vb.displayName="HeroUI.Radio";var k5=vb;function bb({id:e,options:t,value:r,onChange:n,classNames:o}){return y.jsx(C5,{size:"sm",value:r?r.toString():void 0,onValueChange:n,classNames:{base:j(o?.radioGroup?.base),wrapper:j(o?.radioGroup?.wrapper),label:j(o?.radioGroup?.label),description:j(o?.radioGroup?.description),errorMessage:j(o?.radioGroup?.errorMessage)},children:t.map(i=>y.jsx(k5,{color:"primary",value:i.toString(),name:i.toString(),classNames:{base:j("max-w-full",o?.radio?.base),wrapper:j("border-1 border-default-200 bg-white group-data-[selected=true]:border-primary-600 group-data-[selected=true]:bg-primary-600",o?.radio?.wrapper),hiddenInput:j(o?.radio?.hiddenInput),labelWrapper:j(o?.radio?.labelWrapper),label:j("text-sm",o?.radio?.label),control:j("bg-white",o?.radio?.control),description:j(o?.radio?.description)},children:i},`${e}-${i}`))})}const Tc=new WeakMap;function kc(e,t){let r=Tc.get(e);if(!r)throw new Error("Unknown slider state");return`${r.id}-${t}`}function Ic(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=Bt(t);let s=Bt(),a={};r?(n=n?`${s} ${n}`:s,a={id:s,htmlFor:i==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Gu({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function yb(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:i,fieldProps:s}=Ic(e),a=xn([!!t,!!r,n,o]),l=xn([!!t,!!r,n,o]);return s=ze(s,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:s,descriptionProps:{id:a},errorMessageProps:{id:l}}}function I5(e,t,r){let{labelProps:n,fieldProps:o}=Ic(e),i=e.orientation==="vertical";var s;Tc.set(t,{id:(s=n.id)!==null&&s!==void 0?s:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=Fo(),{addGlobalListener:l,removeGlobalListener:c}=Yn();const u=f.useRef(null),d=a==="rtl",h=f.useRef(null),{moveProps:p}=tm({onMoveStart(){h.current=null},onMove({deltaX:v,deltaY:$}){if(!r.current)return;let{height:S,width:C}=r.current.getBoundingClientRect(),T=i?S:C;h.current==null&&u.current!=null&&(h.current=t.getThumbPercent(u.current)*T);let k=i?$:v;if((i||d)&&(k=-k),h.current+=k,u.current!=null&&r.current){const D=Pr(h.current/T,0,1);t.setThumbPercent(u.current,D)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let g=f.useRef(void 0),m=(v,$,S,C)=>{if(r.current&&!e.isDisabled&&t.values.every((T,k)=>!t.isThumbDragging(k))){let{height:T,width:k,top:D,left:E}=r.current.getBoundingClientRect(),V=i?T:k,A=((i?C:S)-(i?D:E))/V;(a==="rtl"||i)&&(A=1-A);let I=t.getPercentValue(A),N,w=t.values.findIndex(P=>I-P<0);if(w===0)N=w;else if(w===-1)N=t.values.length-1;else{let P=t.values[w-1],_=t.values[w];Math.abs(P-I)<Math.abs(_-I)?N=w-1:N=w}N>=0&&t.isThumbEditable(N)?(v.preventDefault(),u.current=N,t.setFocusedThumb(N),g.current=$,t.setThumbDragging(u.current,!0),t.setThumbValue(N,I),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):u.current=null}},x=v=>{var $,S;((S=v.pointerId)!==null&&S!==void 0?S:($=v.changedTouches)===null||$===void 0?void 0:$[0].identifier)===g.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",x,!1),c(window,"touchend",x,!1),c(window,"pointerup",x,!1))};return"htmlFor"in n&&n.htmlFor&&(delete n.htmlFor,n.onClick=()=>{var v;(v=document.getElementById(kc(t,0)))===null||v===void 0||v.focus(),qS("keyboard")}),{labelProps:n,groupProps:{role:"group",...o},trackProps:kt({onMouseDown(v){v.button!==0||v.altKey||v.ctrlKey||v.metaKey||m(v,void 0,v.clientX,v.clientY)},onPointerDown(v){v.pointerType==="mouse"&&(v.button!==0||v.altKey||v.ctrlKey||v.metaKey)||m(v,v.pointerId,v.clientX,v.clientY)},onTouchStart(v){m(v,v.changedTouches[0].identifier,v.changedTouches[0].clientX,v.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},p),outputProps:{htmlFor:t.values.map((v,$)=>kc(t,$)).join(" "),"aria-live":"off"}}}function _5(e,t){let{index:r=0,isRequired:n,validationState:o,isInvalid:i,trackRef:s,inputRef:a,orientation:l=t.orientation,name:c,form:u}=e,d=e.isDisabled||t.isDisabled,h=l==="vertical",{direction:p}=Fo(),{addGlobalListener:g,removeGlobalListener:m}=Yn(),x=Tc.get(t);var v;const{labelProps:$,fieldProps:S}=Ic({...e,id:kc(t,r),"aria-labelledby":`${x.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),C=t.values[r],T=f.useCallback(()=>{a.current&&sn(a.current)},[a]),k=t.focusedThumb===r;f.useEffect(()=>{k&&T()},[k,T]);let D=p==="rtl",E=f.useRef(null),{keyboardProps:V}=Qh({onKeyDown(P){let{getThumbMaxValue:_,getThumbMinValue:B,decrementThumb:L,incrementThumb:K,setThumbValue:z,setThumbDragging:W,pageSize:U}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(P.key)){P.continuePropagation();return}switch(P.preventDefault(),W(r,!0),P.key){case"PageUp":K(r,U);break;case"PageDown":L(r,U);break;case"Home":z(r,B(r));break;case"End":z(r,_(r));break}W(r,!1)}}),{moveProps:F}=tm({onMoveStart(){E.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:P,deltaY:_,pointerType:B,shiftKey:L}){const{getThumbPercent:K,setThumbPercent:z,decrementThumb:W,incrementThumb:U,step:ee,pageSize:Z}=t;if(!s.current)return;let{width:R,height:he}=s.current.getBoundingClientRect(),fe=h?he:R;if(E.current==null&&(E.current=K(r)*fe),B==="keyboard")P>0&&D||P<0&&!D||_>0?W(r,L?Z:ee):U(r,L?Z:ee);else{let Q=h?_:P;(h||D)&&(Q=-Q),E.current+=Q,z(r,Pr(E.current/fe,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!d);const{focusableProps:b}=ws(kt(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),a);let M=f.useRef(void 0),A=P=>{T(),M.current=P,t.setThumbDragging(r,!0),g(window,"mouseup",I,!1),g(window,"touchend",I,!1),g(window,"pointerup",I,!1)},I=P=>{var _,B;((B=P.pointerId)!==null&&B!==void 0?B:(_=P.changedTouches)===null||_===void 0?void 0:_[0].identifier)===M.current&&(T(),t.setThumbDragging(r,!1),m(window,"mouseup",I,!1),m(window,"touchend",I,!1),m(window,"pointerup",I,!1))},N=t.getThumbPercent(r);(h||p==="rtl")&&(N=1-N);let w=d?{}:kt(V,F,{onMouseDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||A()},onPointerDown:P=>{P.button!==0||P.altKey||P.ctrlKey||P.metaKey||A(P.pointerId)},onTouchStart:P=>{A(P.changedTouches[0].identifier)}});return _f(a,t.defaultValues[r],P=>{t.setThumbValue(r,P)}),{inputProps:kt(b,S,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:C,name:c,form:u,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":n||void 0,"aria-invalid":i||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[x["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[x["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:P=>{t.setThumbValue(r,parseFloat(P.target.value))}}),thumbProps:{...w,style:{position:"absolute",[h?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:k}}function M5(e){const{ref:t,as:r,state:n,index:o,name:i,trackRef:s,className:a,tooltipProps:l,isVertical:c,showTooltip:u,getTooltipValue:d,formatOptions:h,renderThumb:p,...g}=e,m=r||"div",x=zt(t),v=f.useRef(null),$=Of(h),{thumbProps:S,inputProps:C,isDragging:T,isFocused:k}=_5({index:o,trackRef:s,inputRef:v,name:i,...g},n),{hoverProps:D,isHovered:E}=Tr({isDisabled:n.isDisabled}),{focusProps:V,isFocusVisible:F}=gn(),{pressProps:b,isPressed:M}=qo({isDisabled:n.isDisabled});return{Component:m,index:o,showTooltip:u,renderThumb:p,getThumbProps:(w={})=>({ref:x,"data-slot":"thumb","data-hover":pe(E),"data-pressed":pe(M),"data-dragging":pe(T),"data-focused":pe(k),"data-focus-visible":pe(F),"aria-label":w["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...ht(S,b,D,g),className:a,...w}),getTooltipProps:()=>{const w=l?.content?l.content:d?n.values.length===1?d(n.values[o??0]):d(n.values,o??0):n.values[o??0],P=$&&typeof w=="number"?$.format(w):w;return{...l,placement:l?.placement?l?.placement:c?"right":"top",content:l?.content?l?.content:P,updatePositionDeps:[T,E,k,F,P],isOpen:l?.isOpen!==void 0?l?.isOpen:E||T||k||F,role:"tooltip","aria-label":`Current value: ${P}`}},getInputProps:(w={})=>({ref:v,...ht(C,V),...w})}}const D5=1500,xb=500;let In={},A5=0,fi=!1,Mr=null,_n=null;function O5(e={}){let{delay:t=D5,closeDelay:r=xb}=e,{isOpen:n,open:o,close:i}=ra(e),s=f.useMemo(()=>`${++A5}`,[]),a=f.useRef(null),l=f.useRef(i),c=()=>{In[s]=h},u=()=>{for(let g in In)g!==s&&(In[g](!0),delete In[g])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,u(),c(),fi=!0,o(),Mr&&(clearTimeout(Mr),Mr=null),_n&&(clearTimeout(_n),_n=null)},h=g=>{g||r<=0?(a.current&&clearTimeout(a.current),a.current=null,l.current()):a.current||(a.current=setTimeout(()=>{a.current=null,l.current()},r)),Mr&&(clearTimeout(Mr),Mr=null),fi&&(_n&&clearTimeout(_n),_n=setTimeout(()=>{delete In[s],_n=null,fi=!1},Math.max(xb,r)))},p=()=>{u(),c(),!n&&!Mr&&!fi?Mr=setTimeout(()=>{Mr=null,fi=!0,d()},t):n||d()};return f.useEffect(()=>{l.current=i},[i]),f.useEffect(()=>()=>{a.current&&clearTimeout(a.current),In[s]&&delete In[s]},[s]),{isOpen:n,open:g=>{!g&&t>0&&!a.current?p():d()},close:h}}function N5(e,t){let r=Ri(e,{labelable:!0}),{hoverProps:n}=Tr({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:kt(r,n,{role:"tooltip"})}}function L5(e,t,r){let{isDisabled:n,trigger:o}=e,i=vw(),s=f.useRef(!1),a=f.useRef(!1),l=()=>{(s.current||a.current)&&t.open(a.current)},c=v=>{!s.current&&!a.current&&t.close(v)};f.useEffect(()=>{let v=$=>{r&&r.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[r,t]);let u=()=>{o!=="focus"&&(Yh()==="pointer"?s.current=!0:s.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,s.current=!1,c())},h=()=>{a.current=!1,s.current=!1,c(!0)},p=()=>{vu()&&(a.current=!0,l())},g=()=>{a.current=!1,s.current=!1,c(!0)},{hoverProps:m}=Tr({isDisabled:n,onHoverStart:u,onHoverEnd:d}),{focusableProps:x}=ws({isDisabled:n,onFocus:p,onBlur:g},r);return{triggerProps:{"aria-describedby":t.isOpen?i:void 0,...kt(x,m,{onPointerDown:h,onKeyDown:h,tabIndex:void 0})},tooltipProps:{id:i}}}var F5=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},V5=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],wb=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},br=[];function j5(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:i,onClose:s,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(i&&!br.includes(t))return br.push(t),()=>{let m=br.indexOf(t);m>=0&&br.splice(m,1)}},[i,t]);const c=()=>{br[br.length-1]===t&&s&&s()},u=m=>{(!l||l(m.target))&&(br[br.length-1]===t&&r&&(m.stopPropagation(),m.preventDefault()),c())},d=m=>{(!l||l(m.target))&&(br[br.length-1]===t&&r&&(m.stopPropagation(),m.preventDefault()),c())},h=m=>{m.key==="Escape"&&!o&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),c())};n2({isDisabled:!(n&&i),onInteractOutside:n&&i?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:p}=Xo({isDisabled:!a,onBlurWithin:m=>{!m.relatedTarget||s2(m.relatedTarget)||(!l||l(m.relatedTarget))&&c()}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:g}}}function z5(e){var t,r;const n=gt(),[o,i]=qt(e,Ni.variantKeys),{ref:s,as:a,isOpen:l,content:c,children:u,defaultOpen:d,onOpenChange:h,isDisabled:p,trigger:g,shouldFlip:m=!0,containerPadding:x=12,placement:v="top",delay:$=0,closeDelay:S=500,showArrow:C=!1,offset:T=7,crossOffset:k=0,isDismissable:D,shouldCloseOnBlur:E=!0,portalContainer:V,isKeyboardDismissDisabled:F=!1,updatePositionDeps:b=[],shouldCloseOnInteractOutside:M,className:A,onClose:I,motionProps:N,classNames:w,...P}=o,_=a||"div",B=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,L=O5({delay:$,closeDelay:S,isDisabled:p,defaultOpen:d,isOpen:l,onOpenChange:ie=>{h?.(ie),ie||I?.()}}),K=f.useRef(null),z=f.useRef(null),W=f.useId(),U=L.isOpen&&!p;f.useImperativeHandle(s,()=>Kx(z));const{triggerProps:ee,tooltipProps:Z}=L5({isDisabled:p,trigger:g},L,K),{tooltipProps:R}=N5({isOpen:U,...ht(o,Z)},L),{overlayProps:he,placement:fe,updatePosition:Q}=NS({isOpen:U,targetRef:K,placement:V5(v),overlayRef:z,offset:C?T+3:T,crossOffset:k,shouldFlip:m,containerPadding:x});kn(()=>{b.length&&Q()},b);const{overlayProps:se}=j5({isOpen:U,onClose:L.close,isDismissable:D,shouldCloseOnBlur:E,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:M},z),q=f.useMemo(()=>{var ie,we,De;return Ni({...i,disableAnimation:B,radius:(ie=e?.radius)!=null?ie:"md",size:(we=e?.size)!=null?we:"md",shadow:(De=e?.shadow)!=null?De:"sm"})},[rn(i),B,e?.radius,e?.size,e?.shadow]),Y=f.useCallback((ie={},we=null)=>({...ht(ee,ie),ref:cf(we,K),"aria-describedby":U?W:void 0}),[ee,U,W,L]),de=f.useCallback(()=>({ref:z,"data-slot":"base","data-open":pe(U),"data-arrow":pe(C),"data-disabled":pe(p),"data-placement":wb(fe||"top",v),...ht(R,se,P),style:ht(he.style,P.style,o.style),className:q.base({class:w?.base}),id:W}),[q,U,C,p,fe,v,R,se,P,he,o,W]),ae=f.useCallback(()=>({"data-slot":"content","data-open":pe(U),"data-arrow":pe(C),"data-disabled":pe(p),"data-placement":wb(fe||"top",v),className:q.content({class:Be(w?.content,A)})}),[q,U,C,p,fe,v,w]);return{Component:_,content:c,children:u,isOpen:U,triggerRef:K,showArrow:C,portalContainer:V,placement:v,disableAnimation:B,isDisabled:p,motionProps:N,getTooltipContentProps:ae,getTriggerProps:Y,getTooltipProps:de}}var B5={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}}},R5=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),$b=Re((e,t)=>{var r;const{Component:n,children:o,content:i,isOpen:s,portalContainer:a,placement:l,disableAnimation:c,motionProps:u,getTriggerProps:d,getTooltipProps:h,getTooltipContentProps:p}=z5({...e,ref:t});let g;try{if(f.Children.count(o)!==1)throw new Error;if(!f.isValidElement(o))g=y.jsx("p",{...d(),children:o});else{const T=o,k=(r=T.props.ref)!=null?r:T.ref;g=f.cloneElement(T,d(T.props,k))}}catch{g=y.jsx("span",{}),Fi("Tooltip must have only one child node. Please, check your code.")}const{ref:m,id:x,style:v,...$}=h(),S=y.jsx("div",{ref:m,id:x,style:v,children:y.jsx(lo.div,{animate:"enter",exit:"exit",initial:"exit",variants:B5.scaleSpring,...ht(u,$),style:{...F5(l)},children:y.jsx(n,{...p(),children:i})},`${x}-tooltip-inner`)},`${x}-tooltip-content`);return y.jsxs(y.Fragment,{children:[g,c?s&&y.jsx(im,{portalContainer:a,children:y.jsx("div",{ref:m,id:x,style:v,...$,children:y.jsx(n,{...p(),children:i})})}):y.jsx(ao,{features:R5,children:y.jsx(ss,{children:s&&y.jsx(im,{portalContainer:a,children:S})})})]})});$b.displayName="HeroUI.Tooltip";var K5=$b,Eb=Re((e,t)=>{const{Component:r,index:n,renderThumb:o,showTooltip:i,getTooltipProps:s,getThumbProps:a,getInputProps:l}=M5({...e,ref:t}),c={...a(),index:n,children:y.jsx(m2,{children:y.jsx("input",{...l()})})},u=Xa({Component:r,props:c,renderCustom:o});return i?y.jsx(K5,{...s(),children:u}):u});Eb.displayName="HeroUI.SliderThumb";var W5=Eb;const U5=0,H5=100,G5=1;function Z5(e){const{isDisabled:t=!1,minValue:r=U5,maxValue:n=H5,numberFormatter:o,step:i=G5,orientation:s="horizontal"}=e;let a=f.useMemo(()=>{let z=(n-r)/10;return z=Bo(z,0,z+i,i),Math.max(z,i)},[i,n,r]),l=f.useCallback(z=>z?.map((W,U)=>{let ee=U===0?r:z[U-1],Z=U===z.length-1?n:z[U+1];return Bo(W,ee,Z,i)}),[r,n,i]),c=f.useMemo(()=>l(Sb(e.value)),[e.value,l]),u=f.useMemo(()=>{var z;return l((z=Sb(e.defaultValue))!==null&&z!==void 0?z:[r])},[e.defaultValue,r,l]),d=Cb(e.value,e.defaultValue,e.onChange),h=Cb(e.value,e.defaultValue,e.onChangeEnd);const[p,g]=jr(c,u,d);let[m]=f.useState(p);const[x,v]=f.useState(new Array(p.length).fill(!1)),$=f.useRef(new Array(p.length).fill(!0)),[S,C]=f.useState(void 0),T=f.useRef(p),k=f.useRef(x);let D=z=>{T.current=z,g(z)},E=z=>{k.current=z,v(z)};function V(z){return(z-r)/(n-r)}function F(z){return z===0?r:p[z-1]}function b(z){return z===p.length-1?n:p[z+1]}function M(z){return $.current[z]}function A(z,W){$.current[z]=W}function I(z,W){if(t||!M(z))return;const U=F(z),ee=b(z);W=Bo(W,U,ee,i);let Z=Pb(T.current,z,W);D(Z)}function N(z,W){if(t||!M(z))return;W&&(T.current=p);const U=k.current[z];k.current=Pb(k.current,z,W),E(k.current),h&&U&&!k.current.some(Boolean)&&h(T.current)}function w(z){return o.format(z)}function P(z,W){I(z,B(W))}function _(z){return Math.round((z-r)/i)*i+r}function B(z){const W=z*(n-r)+r;return Pr(_(W),r,n)}function L(z,W=1){let U=Math.max(W,i);I(z,Bo(p[z]+U,r,n,i))}function K(z,W=1){let U=Math.max(W,i);I(z,Bo(p[z]-U,r,n,i))}return{values:p,defaultValues:e.defaultValue!==void 0?u:m,getThumbValue:z=>p[z],setThumbValue:I,setThumbPercent:P,isThumbDragging:z=>x[z],setThumbDragging:N,focusedThumb:S,setFocusedThumb:C,getThumbPercent:z=>V(p[z]),getValuePercent:V,getThumbValueLabel:z=>w(p[z]),getFormattedValue:w,getThumbMinValue:F,getThumbMaxValue:b,getPercentValue:B,isThumbEditable:M,setThumbEditable:A,incrementThumb:L,decrementThumb:K,step:i,pageSize:a,orientation:s,isDisabled:t}}function Pb(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function Sb(e){if(e!=null)return Array.isArray(e)?e:[e]}function Cb(e,t,r){return n=>{r?.(typeof e=="number"||typeof t=="number"?n[0]:n)}}function q5(e){var t,r,n,o;const i=gt(),[s,a]=qt(e,Za.variantKeys),{ref:l,as:c,name:u,label:d,formatOptions:h,value:p,maxValue:g=100,minValue:m=0,step:x=1,showSteps:v=!1,showTooltip:$=!1,orientation:S="horizontal",marks:C=[],startContent:T,endContent:k,fillOffset:D,className:E,classNames:V,renderThumb:F,renderLabel:b,renderValue:M,onChange:A,onChangeEnd:I,getValue:N,getTooltipValue:w,tooltipValueFormatOptions:P=h,tooltipProps:_={},...B}=s,L=m===g;L&&Fi("Min and max values should not be the same. This may cause unexpected behavior.");const K=c||"div",z=typeof K=="string",W=(r=(t=e?.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,U=zt(l),ee=f.useRef(null),Z=Of(h),{direction:R}=Fo(),he=f.useCallback(Pe=>Math.min(Math.max(Pe,m),g),[m,g]),fe=f.useMemo(()=>{if(L)return m;if(p!==void 0)return Array.isArray(p)?p.map(he):he(p)},[p,he,L,m]),Q=Z5({...B,value:fe,isDisabled:(n=e?.isDisabled)!=null?n:!1,orientation:S,step:x,minValue:m,maxValue:g,numberFormatter:Z,onChange:A,onChangeEnd:I}),se={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=Za.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,..._},{groupProps:q,trackProps:Y,labelProps:de,outputProps:ae}=I5(e,Q,ee),{isHovered:ie,hoverProps:we}=Tr({isDisabled:e.isDisabled}),De=Be(V?.base,E),xe=S==="vertical",te=C?.length>0,je=D===void 0?Q.values.length===1:!1,Ee=f.useMemo(()=>Za({...a,hasMarks:te,disableAnimation:W,hasSingleThumb:je,isVertical:xe}),[rn(a),xe,W,je,te]),[Ke,lt]=[Q.values.length>1?Q.getThumbPercent(0):D!==void 0?Q.getValuePercent(D):0,Q.getThumbPercent(Q.values.length-1)].sort(),Te=Q.values.length===1?Z.format(Q.values[0]):Z.formatRange(Q.values[0],Q.values[Q.values.length-1]),Ge=v?Math.floor((g-m)/x)+1:0;return{Component:K,state:Q,value:Te,domRef:U,label:d,steps:Ge,marks:C,startContent:T,endContent:k,getStepProps:Pe=>{const Fe=Q.getValuePercent(Pe*x+m);return{className:Ee.step({class:V?.step}),"data-slot":"step","data-in-range":Fe<=lt&&Fe>=Ke,style:{[xe?"bottom":R==="rtl"?"right":"left"]:`${Fe*100}%`}}},getBaseProps:(Pe={})=>({ref:U,"data-orientation":Q.orientation,"data-slot":"base","data-hover":ie,className:Ee.base({class:De}),...ht(q,we,Tt(B,{enabled:z}),Tt(Pe))}),getValue:N,renderLabel:b,renderValue:M,getTrackWrapperProps:(Pe={})=>({"data-slot":"track-wrapper",className:Ee.trackWrapper({class:V?.trackWrapper}),...Pe}),getLabelWrapperProps:(Pe={})=>({className:Ee.labelWrapper({class:V?.labelWrapper}),"data-slot":"labelWrapper",...Pe}),getLabelProps:(Pe={})=>({"data-slot":"label",className:Ee.label({class:V?.label}),children:d,...de,...Pe}),getValueProps:(Pe={})=>({"data-slot":"value",className:Ee.value({class:V?.value}),children:N&&typeof N=="function"?N(Q.values):Te,...ae,...Pe}),getTrackProps:(Pe={})=>{const Fe=(lt-Ke)*100;return{ref:ee,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":xe,...je?{"data-fill-start":Fe>0,"data-fill-end":Fe==100}:{"data-fill-start":Ke==0,"data-fill-end":Ke*100+Fe==100},className:Ee.track({class:V?.track}),...Y,...Pe}},getFillerProps:(Pe={})=>({"data-slot":"filler",className:Ee.filler({class:V?.filler}),...Pe,style:{...Pe.style,[xe?"bottom":R==="rtl"?"right":"left"]:`${Ke*100}%`,...xe?{height:`${(lt-Ke)*100}%`}:{width:`${(lt-Ke)*100}%`}}}),getThumbProps:Pe=>({name:u,index:Pe,state:Q,trackRef:ee,orientation:S,isVertical:xe,tooltipProps:se,getTooltipValue:w,showTooltip:$,renderThumb:F,formatOptions:P,className:Ee.thumb({class:V?.thumb})}),getMarkProps:Pe=>{const Fe=Q.getValuePercent(Pe.value);return{className:Ee.mark({class:V?.mark}),"data-slot":"mark","data-in-range":Fe<=lt&&Fe>=Ke,style:{[xe?"bottom":R==="rtl"?"right":"left"]:`${Fe*100}%`},onMouseDown:At=>At.stopPropagation(),onPointerDown:At=>At.stopPropagation(),onClick:At=>{if(At.stopPropagation(),!L)if(Q.values.length===1)Q.setThumbPercent(0,Fe);else{const wt=Q.values[0],ir=Q.values[1];Pe.value<wt?Q.setThumbPercent(0,Fe):Pe.value>ir?Q.setThumbPercent(1,Fe):Math.abs(Pe.value-wt)<Math.abs(Pe.value-ir)?Q.setThumbPercent(0,Fe):Q.setThumbPercent(1,Fe)}}}},getStartContentProps:(Pe={})=>({"data-slot":"startContent",className:Ee.startContent({class:V?.startContent}),...Pe}),getEndContentProps:(Pe={})=>({"data-slot":"endContent",className:Ee.endContent({class:V?.endContent}),...Pe})}}var Tb=Re((e,t)=>{const{Component:r,state:n,label:o,steps:i,marks:s,startContent:a,endContent:l,getStepProps:c,getBaseProps:u,renderValue:d,renderLabel:h,getTrackWrapperProps:p,getLabelWrapperProps:g,getLabelProps:m,getValueProps:x,getTrackProps:v,getFillerProps:$,getThumbProps:S,getMarkProps:C,getStartContentProps:T,getEndContentProps:k}=q5({...e,ref:t});return y.jsxs(r,{...u(),children:[o&&y.jsxs("div",{...g(),children:[Xa({Component:"label",props:m(),renderCustom:h}),Xa({Component:"output",props:x(),renderCustom:d})]}),y.jsxs("div",{...p(),children:[a&&y.jsx("div",{...T(),children:a}),y.jsxs("div",{...v(),children:[y.jsx("div",{...$()}),Number.isFinite(i)&&Array.from({length:i},(D,E)=>y.jsx("div",{...c(E)},E)),n.values.map((D,E)=>y.jsx(W5,{...S(E)},E)),s?.length>0&&s.map((D,E)=>y.jsx("div",{...C(D),children:D.label},E))]}),l&&y.jsx("div",{...k(),children:l})]})]})});Tb.displayName="HeroUI.Slider";var Y5=Tb;function kb({min:e,max:t,step:r=1,unit:n="",value:o,onChange:i,classNames:s}){const a=l=>{if(Array.isArray(l)){const c=[l[0],l[1]];i(c)}};return y.jsx(Y5,{size:"sm",step:r,hideValue:!0,label:`${n} ${e} - ${n} ${t}`,minValue:e,maxValue:t,value:o||[e,t],onChange:a,marks:[{value:e,label:e.toString()},{value:t,label:t.toString()}],classNames:{base:j(s?.base),labelWrapper:j(s?.labelWrapper),label:j(s?.label),value:j(s?.value),step:j(s?.step),mark:j(s?.mark),trackWrapper:j(s?.trackWrapper),track:j(s?.track),filler:j("bg-primary-600",s?.filler),thumb:j("size-5 outline outline-default-200 bg-white after:size-2 after:bg-primary-600 data-[dragging=true]:outline-2 data-[dragging=true]:outline-primary-600 transition-colors duration-300",s?.thumb)}})}const _c={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Ib={..._c,customError:!0,valid:!1},Co={isInvalid:!1,validationDetails:_c,validationErrors:[]},_b=f.createContext({}),oa="__formValidationState"+Date.now();function ia(e){if(e[oa]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}=e[oa];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:i}}return X5(e)}function X5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:i,validate:s,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Ib}:null,c=f.useMemo(()=>{if(!s||o==null)return null;let F=J5(s,o);return Mb(F)},[s,o]);i?.validationDetails.valid&&(i=void 0);let u=f.useContext(_b),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>Mc(u[F])):Mc(u[n]):[],[u,n]),[h,p]=f.useState(u),[g,m]=f.useState(!1);u!==h&&(p(u),m(!1));let x=f.useMemo(()=>Mb(g?[]:d),[g,d]),v=f.useRef(Co),[$,S]=f.useState(Co),C=f.useRef(Co),T=()=>{if(!k)return;D(!1);let F=c||i||v.current;Dc(F,C.current)||(C.current=F,S(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||i||Co,displayValidation:a==="native"?l||x||$:l||x||c||i||$,updateValidation(F){a==="aria"&&!Dc($,F)?S(F):v.current=F},resetValidation(){let F=Co;Dc(F,C.current)||(C.current=F,S(F)),a==="native"&&D(!1),m(!0)},commitValidation(){a==="native"&&D(!0),m(!0)}}}function Mc(e){return e?Array.isArray(e)?e:[e]:[]}function J5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Mc(r)}return[]}function Mb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Ib}:null}function Dc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function Q5(...e){let t=new Set,r=!1,n={..._c};for(let s of e){var o,i;for(let a of s.validationErrors)t.add(a);r||(r=s.isInvalid);for(let a in n)(o=n)[i=a]||(o[i]=s.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function Db(e,t,r){let{validationBehavior:n,focus:o}=e;We(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(tk(r.current))}});let i=f.useRef(!1),s=nt(()=>{i.current||t.resetValidation()}),a=nt(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&rk(d)===r.current){var h;o?o():(h=r.current)===null||h===void 0||h.focus(),pc("keyboard")}c.preventDefault()}),l=nt(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{i.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),i.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",s),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",s),u&&(u.reset=d)}},[r,a,l,s,n])}function ek(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function tk(e){return{isInvalid:!e.validity.valid,validationDetails:ek(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function rk(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function nk(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:i,name:s,form:a,children:l,"aria-label":c,"aria-labelledby":u,validationState:d="valid",isInvalid:h,onPressStart:p,onPressEnd:g,onPressChange:m,onPress:x,onPressUp:v,onClick:$}=e,S=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},C=l!=null,T=c!=null||u!=null;!C&&!T&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:k,isPressed:D}=Ir({onPressStart:p,onPressEnd:g,onPressChange:m,onPress:x,onPressUp:v,onClick:$,isDisabled:n}),{pressProps:E,isPressed:V}=Ir({onPressStart:p,onPressEnd:g,onPressChange:m,onPressUp:v,onClick:$,onPress(A){var I;x?.(A),t.toggle(),(I=r.current)===null||I===void 0||I.focus()},isDisabled:n||o}),{focusableProps:F}=hc(e,r),b=ze(k,F),M=Wr(e,{labelable:!0});return vg(r,t.defaultSelected,t.setSelected),{labelProps:ze(E,{onClick:A=>A.preventDefault()}),inputProps:ze(M,{"aria-invalid":h||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:S,disabled:n,...i==null?{}:{value:i},name:s,form:a,type:"checkbox",...b}),isSelected:t.isSelected,isPressed:D||V,isDisabled:n,isReadOnly:o,isInvalid:h||d==="invalid"}}function Ab(e,t,r){let n=ia({...e,value:t.isSelected}),{isInvalid:o,validationErrors:i,validationDetails:s}=n.displayValidation,{labelProps:a,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h}=nk({...e,isInvalid:o},t,r);Db(e,n,r);let{isIndeterminate:p,isRequired:g,validationBehavior:m="aria"}=e;f.useEffect(()=>{r.current&&(r.current.indeterminate=!!p)});let{pressProps:x}=qo({isDisabled:d||h,onPress(){let{[oa]:v}=e,{commitValidation:$}=v||n;$()}});return{labelProps:kt(a,x),inputProps:{...l,checked:c,"aria-required":g&&m==="aria"||void 0,required:g&&m==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:h,isInvalid:o,validationErrors:i,validationDetails:s}}const Ob=new WeakMap;function ok(e,t){let{isDisabled:r,name:n,form:o,validationBehavior:i="aria"}=e,{isInvalid:s,validationErrors:a,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:h}=yb({...e,labelElementType:"span",isInvalid:s,errorMessage:e.errorMessage||a});Ob.set(t,{name:n,form:o,descriptionId:d.id,errorMessageId:h.id,validationBehavior:i});let p=Ri(e,{labelable:!0}),{focusWithinProps:g}=Xo({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:kt(p,{role:"group","aria-disabled":r||void 0,...u,...g}),labelProps:c,descriptionProps:d,errorMessageProps:h,isInvalid:s,validationErrors:a,validationDetails:l}}function Nb(e={}){let{isReadOnly:t}=e,[r,n]=jr(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=f.useState(r);function i(l){t||n(l)}function s(){t||n(!r)}var a;return{isSelected:r,defaultSelected:(a=e.defaultSelected)!==null&&a!==void 0?a:o,setSelected:i,toggle:s}}function ik(e,t,r){const n=Nb({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,form:i,descriptionId:s,errorMessageId:a,validationBehavior:l}=Ob.get(t);var c;l=(c=e.validationBehavior)!==null&&c!==void 0?c:l;let{realtimeValidation:u}=ia({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=f.useRef(Co),h=()=>{t.setInvalid(e.value,u.isInvalid?u:d.current)};f.useEffect(h);let p=t.realtimeValidation.isInvalid?t.realtimeValidation:u,g=l==="native"?t.displayValidation:p;var m;let x=Ab({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||i,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:l,[oa]:{realtimeValidation:p,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,h()}}},n,r);return{...x,inputProps:{...x.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,s].filter(Boolean).join(" ")||void 0}}}function sk(e={}){let[t,r]=jr(e.value,e.defaultValue||[],e.onChange),[n]=f.useState(t),o=!!e.isRequired&&t.length===0,i=f.useRef(new Map),s=ia({...e,value:t}),a=s.displayValidation.isInvalid;var l,c;return{...s,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(d){e.isReadOnly||e.isDisabled||r(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||t.includes(d)||(t=t.concat(d),r(t))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&r(t.filter(h=>h!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?r(t.filter(h=>h!==d)):r(t.concat(d)))},setInvalid(d,h){let p=new Map(i.current);h.isInvalid?p.set(d,h):p.delete(d),i.current=p,s.updateValidation(Q5(...p.values()))},validationState:(c=e.validationState)!==null&&c!==void 0?c:a?"invalid":null,isInvalid:a,isRequired:o}}var Lb=Symbol("default");function ak(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const i=e,s=i(o);return()=>{typeof s=="function"?s():i(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function sa(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(i=>`"${i}"`));if(!t&&!r.slots[Lb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||Lb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function lk(e,t,r){let n=sa(r,e.slot)||{},{ref:o,...i}=n,s=ak(f.useMemo(()=>jx(t,o),[t,o])),a=ht(i,e);return"style"in i&&i.style&&"style"in e&&e.style&&(typeof i.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof i.style=="function"?i.style(l):i.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...i.style,...e.style}),[a,s]}var pi=f.createContext(null);f.forwardRef(function(t,r){[t,r]=lk(t,r,pi);let{validationErrors:n,validationBehavior:o="native",children:i,className:s,...a}=t;const l=f.useMemo(()=>Qd({className:s}),[s]);return y.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:y.jsx(pi.Provider,{value:{...t,validationBehavior:o},children:y.jsx(_b.Provider,{value:n??{},children:i})})})});function uk(e){var t,r;const n=gt(),{validationBehavior:o}=sa(pi)||{},{as:i,ref:s,classNames:a,children:l,label:c,radius:u,value:d,name:h,defaultValue:p,isInvalid:g,validationState:m,size:x="md",color:v="primary",orientation:$="vertical",lineThrough:S=!1,isDisabled:C=!1,validationBehavior:T=(t=o??n?.validationBehavior)!=null?t:"native",disableAnimation:k=(r=n?.disableAnimation)!=null?r:!1,isReadOnly:D,isRequired:E,onValueChange:V,description:F,errorMessage:b,className:M,...A}=e,I=i||"div",N=typeof I=="string",w=zt(s),P=f.useMemo(()=>({...A,value:d,name:h,"aria-label":Ya(A["aria-label"],c),defaultValue:p,isRequired:E,isReadOnly:D,orientation:$,validationBehavior:T,isInvalid:m==="invalid"||g,onChange:Fr(e.onChange,V)}),[d,h,c,p,E,D,$,V,g,m,T,A["aria-label"],A]),_=sk(P),{labelProps:B,groupProps:L,descriptionProps:K,errorMessageProps:z,validationErrors:W,validationDetails:U}=ok(P,_),ee=f.useMemo(()=>({size:x,color:v,radius:u,lineThrough:S,isInvalid:_.isInvalid,isDisabled:C,disableAnimation:k,validationBehavior:T,groupState:_}),[x,v,u,S,C,k,T,_.value,_.isDisabled,_.isReadOnly,_.isInvalid,_.isSelected]),Z=f.useMemo(()=>_x({isRequired:E,isInvalid:_.isInvalid,disableAnimation:k}),[E,_.isInvalid,,k]),R=Be(a?.base,M),he=f.useCallback(()=>({ref:w,className:Z.base({class:R}),...ht(L,Tt(A,{enabled:N}))}),[Z,w,R,L,A]),fe=f.useCallback(()=>({className:Z.label({class:a?.label}),...B}),[Z,B,a?.label]),Q=f.useCallback(()=>({className:Z.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":$}),[Z,$,a?.wrapper]),se=f.useCallback((Y={})=>({...Y,...K,className:Z.description({class:Be(a?.description,Y?.className)})}),[Z,K,a?.description]),q=f.useCallback((Y={})=>({...Y,...z,className:Z.errorMessage({class:Be(a?.errorMessage,Y?.className)})}),[Z,z,a?.errorMessage]);return{Component:I,children:l,label:c,context:ee,description:F,isInvalid:_.isInvalid,errorMessage:typeof b=="function"?b({isInvalid:_.isInvalid,validationErrors:W,validationDetails:U}):b||W?.join(" "),getGroupProps:he,getLabelProps:fe,getWrapperProps:Q,getDescriptionProps:se,getErrorMessageProps:q}}var[ck,dk]=Vi({name:"CheckboxGroupContext",strict:!1}),Fb=Re((e,t)=>{const{children:r,context:n,label:o,description:i,isInvalid:s,errorMessage:a,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:h}=uk({...e,ref:t});return y.jsxs("div",{...l(),children:[o&&y.jsx("span",{...c(),children:o}),y.jsx("div",{...u(),children:y.jsx(ck,{value:n,children:r})}),s&&a?y.jsx("div",{...h(),children:a}):i?y.jsx("div",{...d(),children:i}):null]})});Fb.displayName="HeroUI.CheckboxGroup";var fk=Fb;function pk(e){const{isSelected:t,disableAnimation:r,...n}=e;return y.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...n,children:y.jsx("polyline",{points:"1 9 7 14 15 4"})})}function hk(e){const{isSelected:t,disableAnimation:r,...n}=e;return y.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:y.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function mk(e){const{isIndeterminate:t,...r}=e,n=t?hk:pk;return y.jsx(n,{...r})}function gk(e={}){var t,r,n,o,i,s,a,l;const c=gt(),u=dk(),{validationBehavior:d}=sa(pi)||{},h=!!u,{as:p,ref:g,value:m="",children:x,icon:v,name:$,isRequired:S,isReadOnly:C=!1,autoFocus:T=!1,isSelected:k,size:D=(t=u?.size)!=null?t:"md",color:E=(r=u?.color)!=null?r:"primary",radius:V=u?.radius,lineThrough:F=(n=u?.lineThrough)!=null?n:!1,isDisabled:b=(o=u?.isDisabled)!=null?o:!1,disableAnimation:M=(s=(i=u?.disableAnimation)!=null?i:c?.disableAnimation)!=null?s:!1,validationState:A,isInvalid:I=A?A==="invalid":(a=u?.isInvalid)!=null?a:!1,isIndeterminate:N=!1,validationBehavior:w=h?u.validationBehavior:(l=d??c?.validationBehavior)!=null?l:"native",defaultSelected:P,classNames:_,className:B,onValueChange:L,validate:K,...z}=e;u&&Mx&&(k&&Fi("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),P&&Fi("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const W=p||"label",U=f.useRef(null),ee=f.useRef(null);let Z=e.onChange;h&&(Z=Fr(()=>{u.groupState.resetValidation()},Z));const R=f.useId(),he=f.useMemo(()=>({name:$,value:m,children:x,autoFocus:T,defaultSelected:P,isIndeterminate:N,isRequired:S,isInvalid:I,isSelected:k,isDisabled:b,isReadOnly:C,"aria-label":Ya(z["aria-label"],x),"aria-labelledby":z["aria-labelledby"]||R,onChange:L}),[$,m,x,T,P,N,S,I,k,b,C,z["aria-label"],z["aria-labelledby"],R,L]),fe=Nb(he),Q={isInvalid:I,isRequired:S,validate:K,validationState:A,validationBehavior:w},{inputProps:se,isSelected:q,isDisabled:Y,isReadOnly:de,isPressed:ae,isInvalid:ie}=h?ik({...he,...Q},u.groupState,ee):Ab({...he,...Q},fe,ee),we=Y||de,De=A==="invalid"||I||ie,xe=we?!1:ae,{hoverProps:te,isHovered:je}=Tr({isDisabled:se.disabled}),{focusProps:Ee,isFocused:Ke,isFocusVisible:lt}=gn({autoFocus:se.autoFocus}),Te=f.useMemo(()=>Ix({color:E,size:D,radius:V,isInvalid:De,lineThrough:F,isDisabled:Y,disableAnimation:M}),[E,D,V,De,F,Y,M]);kn(()=>{if(!ee.current)return;const qe=!!ee.current.checked;fe.setSelected(qe)},[ee.current]);const Ge=c5(Z),ft=f.useCallback(qe=>{if(de||Y){qe.preventDefault();return}Ge?.(qe)},[de,Y,Ge]),Ft=Be(_?.base,B),Oe=f.useCallback(()=>({ref:U,className:Te.base({class:Ft}),"data-disabled":pe(Y),"data-selected":pe(q||N),"data-invalid":pe(De),"data-hover":pe(je),"data-focus":pe(Ke),"data-pressed":pe(xe),"data-readonly":pe(se.readOnly),"data-focus-visible":pe(lt),"data-indeterminate":pe(N),...ht(te,z)}),[Te,Ft,Y,q,N,De,je,Ke,xe,se.readOnly,lt,te,z]),St=f.useCallback((qe={})=>({...qe,"aria-hidden":!0,className:Be(Te.wrapper({class:Be(_?.wrapper,qe?.className)}))}),[Te,_?.wrapper]),Mt=f.useCallback(()=>({ref:cf(ee,g),...ht(se,Ee),className:Te.hiddenInput({class:_?.hiddenInput}),onChange:Fr(se.onChange,ft)}),[se,Ee,ft,_?.hiddenInput]),Dt=f.useCallback(()=>({id:R,className:Te.label({class:_?.label})}),[Te,_?.label,Y,q,De]),Wt=f.useCallback(()=>({isSelected:q,isIndeterminate:N,disableAnimation:M,className:Te.icon({class:_?.icon})}),[Te,_?.icon,q,N,M]);return{Component:W,icon:v,children:x,isSelected:q,isDisabled:Y,isInvalid:De,isFocused:Ke,isHovered:je,isFocusVisible:lt,getBaseProps:Oe,getWrapperProps:St,getInputProps:Mt,getLabelProps:Dt,getIconProps:Wt}}var Vb=Re((e,t)=>{const{Component:r,children:n,icon:o=y.jsx(mk,{}),getBaseProps:i,getWrapperProps:s,getInputProps:a,getIconProps:l,getLabelProps:c}=gk({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return y.jsxs(r,{...i(),children:[y.jsx("input",{...a()}),y.jsx("span",{...s(),children:u}),n&&y.jsx("span",{...c(),children:n})]})});Vb.displayName="HeroUI.Checkbox";var vk=Vb;function jb({id:e,options:t,values:r=[],onChange:n,classNames:o}){return y.jsx(fk,{size:"sm",value:r.map(i=>i.toString()),onValueChange:n,classNames:{base:j(o?.checkboxGroup?.base),wrapper:j(o?.checkboxGroup?.wrapper),label:j(o?.checkboxGroup?.label),description:j(o?.checkboxGroup?.description),errorMessage:j(o?.checkboxGroup?.errorMessage)},children:t.map(i=>y.jsx(vk,{color:"primary",value:i.toString(),name:i.toString(),classNames:{base:j("max-w-full",o?.checkbox?.base),wrapper:j("before:border-default-200 before:border-1 before:rounded-sm bg-white group-data-[hover=true]:before:bg-default-50 after:bg-transparent",o?.checkbox?.wrapper),hiddenInput:j(o?.checkbox?.hiddenInput),icon:j("text-primary-600",o?.checkbox?.icon),label:j("text-sm text-foreground",o?.checkbox?.label)},children:i},`${e}-${i}`))})}function Ac({filters:e,activeFilters:t,onFilterChange:r,classNames:n}){function o(i,s){r({id:i,value:s})}return y.jsx("div",{className:j("min-w-60 shrink-0",n?.base),children:y.jsx("div",{className:j("flex flex-col gap-6",n?.filterWrapper),children:e.map(i=>i.type==="hidden"?null:y.jsxs("div",{className:j(n?.filterGroup),children:[y.jsx("div",{className:j("font-bold text-base mb-1",n?.filterLabel),children:i.label}),y.jsxs("div",{className:"flex flex-col gap-3",children:[i.type==="range"&&y.jsx(kb,{id:i.id,min:i.min||0,max:i.max||100,step:i.step,unit:i.unit,value:Kr(t,i.id),onChange:s=>o(i.id,s),classNames:n?.rangeFilter}),i.type==="select"&&i.options&&y.jsx(jb,{id:i.id,options:i.options,values:Kr(t,i.id),onChange:s=>o(i.id,s),classNames:n?.selectFilter}),i.type==="radio"&&i.options&&y.jsx(bb,{id:i.id,options:i.options,value:Kr(t,i.id),onChange:s=>o(i.id,s),classNames:n?.radioFilter})]})]},i.id))})})}var[bk,Oc]=Vi({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),zb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Oc(),d=Be(u?.body,o);return y.jsx(a,{ref:l,className:(r=c.body)==null?void 0:r.call(c,{class:d}),...s,children:i})});zb.displayName="HeroUI.CardBody";var Bb=zb,Rb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Oc(),d=Be(u?.footer,o);return y.jsx(a,{ref:l,className:(r=c.footer)==null?void 0:r.call(c,{class:d}),...s,children:i})});Rb.displayName="HeroUI.CardFooter";var yk=Rb,Kb=Re((e,t)=>{var r;const{as:n,className:o,children:i,...s}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Oc(),d=Be(u?.header,o);return y.jsx(a,{ref:l,className:(r=c.header)==null?void 0:r.call(c,{class:d}),...s,children:i})});Kb.displayName="HeroUI.CardHeader";var xk=Kb;function wk(e){var t,r,n,o;const i=gt(),[s,a]=qt(e,tf.variantKeys),{ref:l,as:c,children:u,onClick:d,onPress:h,autoFocus:p,className:g,classNames:m,allowTextSelectionOnPress:x=!0,...v}=s,$=zt(l),S=c||(e.isPressable?"button":"div"),C=typeof S=="string",T=(r=(t=e.disableAnimation)!=null?t:i?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:i?.disableRipple)!=null?o:!1,D=Be(m?.base,g),{onClear:E,onPress:V,ripples:F}=qm(),b=f.useCallback(W=>{k||T||$.current&&V(W)},[k,T,$,V]),{buttonProps:M,isPressed:A}=Hm({onPress:Fr(h,b),elementType:c,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:x,...v},$),{hoverProps:I,isHovered:N}=Tr({isDisabled:!e.isHoverable,...v}),{isFocusVisible:w,isFocused:P,focusProps:_}=gn({autoFocus:p}),B=f.useMemo(()=>tf({...a,disableAnimation:T}),[rn(a),T]),L=f.useMemo(()=>({slots:B,classNames:m,disableAnimation:T,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[B,m,e.isDisabled,e.isFooterBlurred,T,e.fullWidth]),K=f.useCallback((W={})=>({ref:$,className:B.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":pe(N),"data-pressed":pe(A),"data-focus":pe(P),"data-focus-visible":pe(w),"data-disabled":pe(e.isDisabled),...ht(e.isPressable?{...M,..._,role:"button"}:{},e.isHoverable?I:{},Tt(v,{enabled:C}),Tt(W))}),[$,B,D,C,e.isPressable,e.isHoverable,e.isDisabled,N,A,w,M,_,I,v]),z=f.useCallback(()=>({ripples:F,onClear:E}),[F,E]);return{context:L,domRef:$,Component:S,classNames:m,children:u,isHovered:N,isPressed:A,disableAnimation:T,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:b,isFocusVisible:w,getCardProps:K,getRippleProps:z}}var Wb=Re((e,t)=>{const{children:r,context:n,Component:o,isPressable:i,disableAnimation:s,disableRipple:a,getCardProps:l,getRippleProps:c}=wk({...e,ref:t});return y.jsxs(o,{...l(),children:[y.jsx(bk,{value:n,children:r}),i&&!s&&!a&&y.jsx(Zm,{...c()})]})});Wb.displayName="HeroUI.Card";var Ub=Wb;function $k(e){let t=Tt(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function Ek(e){const{as:t,className:r,orientation:n,...o}=e;let i=t||"hr";i==="hr"&&n==="vertical"&&(i="div");const{separatorProps:s}=$k({elementType:typeof i=="string"?i:"hr",orientation:n}),a=f.useMemo(()=>Jd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...s,...o,...c}),[a,n,s,o]);return{Component:i,getDividerProps:l}}var Hb=Re((e,t)=>{const{Component:r,getDividerProps:n}=Ek({...e});return y.jsx(r,{ref:t,...n()})});Hb.displayName="HeroUI.Divider";var Gb=Hb;function Pk(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:i,srcSet:s,sizes:a,loading:l,shouldBypassImageLoad:c=!1}=e,u=Ux(),d=f.useRef(u?new Image:null),[h,p]=f.useState("pending");f.useEffect(()=>{d.current&&(d.current.onload=x=>{g(),p("loaded"),t?.(x)},d.current.onerror=x=>{g(),p("failed"),r?.(x)})},[d.current]);const g=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},m=f.useCallback(()=>{if(!o)return"pending";if(n||c)return"loaded";const x=new Image;return x.src=o,i&&(x.crossOrigin=i),s&&(x.srcset=s),a&&(x.sizes=a),l&&(x.loading=l),d.current=x,x.complete&&x.naturalWidth?"loaded":"loading"},[o,i,s,a,t,r,l,c]);return kn(()=>{u&&p(m())},[u,m]),n?"loaded":h}function Sk(e){var t,r;const n=gt(),[o,i]=qt(e,ef.variantKeys),{ref:s,as:a,src:l,className:c,classNames:u,loading:d,isBlurred:h,fallbackSrc:p,isLoading:g,disableSkeleton:m=!!p,removeWrapper:x=!1,onError:v,onLoad:$,srcSet:S,sizes:C,crossOrigin:T,...k}=o,D=Pk({src:l,loading:d,onError:v,onLoad:$,ignoreFallback:!1,srcSet:S,sizes:C,crossOrigin:T,shouldBypassImageLoad:a!==void 0}),E=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,V=D==="loaded"&&!g,F=D==="loading"||g,b=e.isZoomed,M=a||"img",A=zt(s),{w:I,h:N}=f.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),w=(!l||!V)&&!!p,P=F&&!m,_=f.useMemo(()=>ef({...i,disableAnimation:E,showSkeleton:P}),[rn(i),E,P]),B=Be(c,u?.img),L=(W={})=>{const U=Be(B,W?.className);return{src:l,ref:A,"data-loaded":pe(V),className:_.img({class:U}),loading:d,srcSet:S,sizes:C,crossOrigin:T,...k,style:{...k?.height&&{height:N},...W.style,...k.style}}},K=f.useCallback(()=>{const W=w?{backgroundImage:`url(${p})`}:{};return{className:_.wrapper({class:u?.wrapper}),style:{...W,maxWidth:I}}},[_,w,p,u?.wrapper,I]),z=f.useCallback(()=>({src:l,"aria-hidden":pe(!0),className:_.blurredImg({class:u?.blurredImg})}),[_,l,u?.blurredImg]);return{Component:M,domRef:A,slots:_,classNames:u,isBlurred:h,disableSkeleton:m,fallbackSrc:p,removeWrapper:x,isZoomed:b,isLoading:F,getImgProps:L,getWrapperProps:K,getBlurredImgProps:z}}var Zb=Re((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:i,isBlurred:s,isZoomed:a,fallbackSrc:l,removeWrapper:c,disableSkeleton:u,getImgProps:d,getWrapperProps:h,getBlurredImgProps:p}=Sk({...e,ref:t}),g=y.jsx(r,{ref:n,...d()});if(c)return g;const m=y.jsx("div",{className:o.zoomedWrapper({class:i?.zoomedWrapper}),children:g});return s?y.jsxs("div",{...h(),children:[a?m:g,f.cloneElement(g,p())]}):a||!u||l?y.jsxs("div",{...h(),children:[" ",a?m:g]}):g});Zb.displayName="HeroUI.Image";var aa=Zb;function qb(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",i="mobiel-assets.imgix.net",s="mobiel-frontend.imgix.net",a="?"+Object.keys(t).map(u=>`${u}=${encodeURIComponent(t[u])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${a}`;let l="",c=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return Yb(e)?l=r:la(e)&&c.includes("mobiel-nl-content")?l=n:la(e)&&c.includes("mobiel-nl-postpaid")?l=o:Xb(e)?l=i:l=s,la(e)&&(c=c.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${c}${a}`}function Yb(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function la(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Xb(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Jb(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||Yb(e)||Xb(e)||la(e)||e?.includes("/assets/")&&!e.includes("localhost")}function Ck(e,t="auto",r="auto",n="none"){return Jb(e)?qb(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function Tk(e,t="auto",r="auto",n="none"){return Jb(e)?[1,2,3,4].map(s=>`${qb(e,{w:t,h:r,dpr:s,trim:n,auto:"compress,format",q:95})} ${s}x`).join(", "):""}function Nc(){return f.useMemo(()=>[Ck,Tk],[])}function Qb({hasProduct:e,deviceDiscount:t,tcoPerMonth:r,horizontal:n,classNames:o}){return y.jsxs("div",{className:j("px-3 py-2 bg-primary-50 text-xs font-medium text-primary-600 flex items-center gap-3",n&&"rounded-lg",n&&e&&"mb-4",o?.base),children:[t&&y.jsxs("div",{className:j("flex items-center gap-1",o?.deviceDiscount),children:[y.jsx(ZC,{size:16}),t," toestelkorting"]}),y.jsxs("div",{className:j("flex items-center gap-1",o?.averagePrice),children:[y.jsx(KC,{size:16}),"gem. ",r," /mnd"]})]})}function e0({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,classNames:n}){return y.jsxs("div",{className:j(n?.base),children:[e&&y.jsx("div",{className:j("text-sm text-default-400 whitespace-nowrap",n?.promotionText),children:e}),y.jsxs("div",{className:j("flex items-end gap-1",n?.monthlyFee),children:[y.jsx("div",{className:j("text-3xl font-extrabold tracking-tighter text-foreground leading-none",n?.monthlyFeeValue),children:t}),y.jsx("div",{className:j("text-sm text-foreground leading-none",n?.monthlyFeeLabel),children:"/mnd"})]}),r&&y.jsxs("div",{className:j("text-sm text-foreground",n?.productPrice),children:["+ ",y.jsx("b",{children:r})," eenmalig"]})]})}function t0({title:e,subtitle:t,imageUrl:r,imageAlt:n,specifications:o,stockStatus:i,reviewCount:s,reviewScore:a,classNames:l,horizontal:c}){const[u,d]=Nc();return y.jsxs("div",{className:j("w-full mb-3",l?.base),children:[!c&&y.jsx(aa,{alt:n,height:200,src:u(r,200,200),srcSet:d(r,200,200),width:200,classNames:{wrapper:j("mb-6 mt-3 mx-auto flex shrink-0",l?.imageWrapper),img:j("aspect-square",l?.image)}}),y.jsxs("div",{className:j(c&&"flex justify-between"),children:[y.jsxs("div",{children:[y.jsx("div",{className:j("text-lg font-semibold text-foreground leading-none",l?.subtitle),children:t}),y.jsx("div",{className:j("text-2xl font-bold text-foreground",l?.title),children:e})]}),c&&y.jsx(aa,{alt:n,height:60,src:u(r,120,60),srcSet:d(r,120,60),width:120,classNames:{wrapper:j("flex shrink-0",l?.imageWrapper),img:j("aspect-2/1",l?.image)}})]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx("div",{className:j("text-sm",i==="in_stock"?"text-success":"text-foreground",l?.stockStatus),children:i==="in_stock"?"Op voorraad":"Niet leverbaar"}),y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(YC,{size:16,filled:!0,className:"text-secondary"}),y.jsx("div",{className:j("font-semibold text-foreground",l?.reviewScore),children:a}),y.jsxs("span",{className:j("text-default-400",l?.reviewCount),children:["(",s,")"]})]})]}),o&&y.jsx("div",{className:j("flex text-sm",l?.specifications),children:o.map((h,p)=>y.jsxs("div",{className:"text-default-400",children:[h.title,p<o.length-1&&y.jsx("span",{className:"mx-1",children:"•"})]},h.title))})]})}function r0({specialPromotions:e,modificationPromotions:t,classNames:r}){return y.jsxs("div",{className:j(r?.base),children:[e.map(n=>y.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[y.jsx(Rm,{size:24,className:j("shrink-0",r?.specialPromotionIcon)}),n]},n)),t.map(n=>y.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[y.jsx(Rm,{size:24,className:j("shrink-0",r?.modificationPromotionIcon)}),n]},n))]})}function n0({title:e,subtitle:t,imageUrl:r,imageAlt:n,hasProduct:o,horizontal:i,classNames:s}){const[a,l]=Nc(),c=o?75:100,u=o?35:50;return y.jsxs("div",{className:j("flex justify-between w-full pb-3",i&&"w-fit",s?.base),children:[y.jsxs("div",{children:[y.jsx("div",{className:j(o?"text-2xl font-extrabold":"text-3xl font-extrabold","text-foreground",s?.title),children:e}),y.jsx("div",{className:j(o?"text-base":"text-lg","leading-none text-foreground",s?.subtitle),children:t})]}),!i&&y.jsx(aa,{alt:n,height:u,src:a(r,c,u),srcSet:l(r,c,u),width:c,classNames:{wrapper:j("flex shrink-0",s?.imageWrapper),img:j("aspect-2/1",s?.image)}})]})}function Lc({slug:e,size:t=16}){switch(e){case"contract-term":return y.jsx(UC,{size:t});case"data-speed-down":return y.jsx(qC,{size:t});case"provider-network":return y.jsx(RC,{size:t});case"data-eu":return y.jsx(XC,{size:t});case"internet-speed":return y.jsx(BC,{size:t});case"channels":return y.jsx(HC,{size:t});case"tv-receiver":return y.jsx(GC,{size:t});default:return null}}function kk({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:h,specialPromotions:p,modificationPromotions:g,monthlyFeePromotionText:m,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:S,productReviewCount:C,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:E,...V}){const F=!!(r&&n&&o&&i),[b,M]=Nc();return y.jsx(Ub,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("flex flex-row shadow-lg rounded-lg",E?.card),children:y.jsxs(Bb,{className:j("py-0 px-6 grid grid-cols-[max-content_1fr] gap-6",E?.body),children:[y.jsxs("div",{className:"flex flex-row",children:[y.jsx(aa,{alt:F?i:c,height:F?200:50,src:F?b(o??"",200,200):b(l,100,50),srcSet:F?M(o??"",200,200):M(l,100,50),width:F?200:100,classNames:{wrapper:j("flex shrink-0 mt-6 mr-6",E?.imageWrapper),img:j(F?"aspect-square":"aspect-2/1",E?.image)}}),y.jsx(Gb,{orientation:"vertical"})]}),y.jsxs("div",{className:"w-full",children:[y.jsxs("div",{className:j("pt-6 flex gap-6 justify-between",F&&"flex-col gap-4",E?.header),children:[F&&y.jsx(t0,{imageAlt:c,imageUrl:l,reviewCount:C,reviewScore:T,specifications:$,stockStatus:S,subtitle:n||"",title:r||"",classNames:{base:j(E?.productSection?.base),imageWrapper:j(E?.productSection?.imageWrapper),image:j(E?.productSection?.image),title:j(E?.productSection?.title),subtitle:j(E?.productSection?.subtitle),stockStatus:j(E?.productSection?.stockStatus),reviewScore:j(E?.productSection?.reviewScore),reviewCount:j(E?.productSection?.reviewCount),specifications:j(E?.productSection?.specifications)},horizontal:!0}),y.jsxs("div",{className:j(F&&u&&"flex gap-6 justify-between"),children:[y.jsx(n0,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:s,horizontal:!0,classNames:{base:j(E?.propositionHeader?.base),title:j(E?.propositionHeader?.title),subtitle:j(E?.propositionHeader?.subtitle)}}),F&&u&&y.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-0 gap-x-3 h-fit mt-2",E?.specifications),children:u.map(A=>y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(Lc,{slug:A.slug}),A.title]},A.title))})]}),y.jsxs("div",{className:j("flex flex-col items-end gap-3",F&&"items-start"),children:[!F&&u&&y.jsx("div",{className:j("grid grid-cols-2 gap-x-3 lg:grid-cols-[repeat(4,max-content)] text-default-400 mb-0",u.length===2&&"lg:grid-cols-[repeat(2,max-content)]",E?.specifications),children:u.map(A=>y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(Lc,{slug:A.slug}),A.title]},A.title))}),y.jsx(Qb,{deviceDiscount:D,tcoPerMonth:h,horizontal:!0,hasProduct:F,classNames:{base:j(E?.footerInfo?.base),averagePrice:j(E?.footerInfo?.averagePrice),deviceDiscount:j(E?.footerInfo?.deviceDiscount)}})]})]}),y.jsxs("div",{className:j(E?.body),children:[v&&y.jsx(wu,{className:j("mb-1 text-secondary text-sm",E?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),y.jsx(r0,{specialPromotions:p,modificationPromotions:g,classNames:{base:j(E?.promotionsList?.base),item:j(E?.promotionsList?.item),specialPromotionIcon:j("text-success",E?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",E?.promotionsList?.modificationPromotionIcon)}})]}),y.jsxs("div",{className:j('grid self-end grid-cols-[1fr_max-content] [grid-template-areas:"delivery_delivery""price_button"] pt-3 pb-6 lg:grid-cols-[148px_max-content] lg:justify-end lg:pt-1',F&&"lg:grid-cols-[1fr_max-content]",E?.footer),children:[x&&y.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm [grid-area:delivery]",E?.deliveryText),children:x}),y.jsx(e0,{monthlyFeePromotionText:m,productPrice:k,monthlyFee:d,classNames:{base:j("[grid-area:price] content-end",E?.pricingSection?.base),productPrice:j(E?.pricingSection?.productPrice),monthlyFee:j(E?.pricingSection?.monthlyFee),monthlyFeeValue:j(E?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(E?.pricingSection?.monthlyFeeLabel),promotionText:j(E?.pricingSection?.promotionText)}}),y.jsx(ti,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6 [grid-area:button]",e&&"pointer-events-none",E?.button),endContent:y.jsx(Bm,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]})]})})}function Ik({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:i,propositionTitle:s,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:h,specialPromotions:p,modificationPromotions:g,monthlyFeePromotionText:m,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:S,productReviewCount:C,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:E,...V}){const F=!!(r&&n&&o&&i);return y.jsxs(Ub,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("rounded-lg shadow-lg",E?.card),children:[y.jsxs(xk,{className:j("flex-col items-start text-start z-1",E?.header),children:[F&&y.jsx(t0,{imageAlt:i||"",imageUrl:o||"",reviewCount:C,reviewScore:T,specifications:$,stockStatus:S,subtitle:n||"",title:r||"",classNames:{base:j(E?.productSection?.base),image:j(E?.productSection?.image),title:j(E?.productSection?.title),subtitle:j(E?.productSection?.subtitle),stockStatus:j(E?.productSection?.stockStatus),reviewScore:j(E?.productSection?.reviewScore),reviewCount:j(E?.productSection?.reviewCount),specifications:j(E?.productSection?.specifications)}}),y.jsx(n0,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:s,classNames:{base:j(E?.propositionHeader?.base),title:j(E?.propositionHeader?.title),subtitle:j(E?.propositionHeader?.subtitle),imageWrapper:j(E?.propositionHeader?.imageWrapper),image:j(E?.propositionHeader?.image)}})]}),y.jsxs(Bb,{className:j("py-0",E?.body),children:[!F&&u&&y.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-3",E?.specifications),children:u.map(b=>y.jsxs("div",{className:"text-sm flex items-center gap-1",children:[y.jsx(Lc,{slug:b.slug}),b.title]},b.title))}),v&&y.jsx(wu,{className:j("mb-1 text-secondary text-sm",E?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),y.jsx(r0,{specialPromotions:p,modificationPromotions:g,classNames:{base:j(E?.promotionsList?.base),item:j(E?.promotionsList?.item),specialPromotionIcon:j("text-success",E?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",E?.promotionsList?.modificationPromotionIcon)}})]}),y.jsx(Gb,{className:"mt-3"}),y.jsxs(yk,{className:j("flex-col justify-between items-start text-start",E?.footer),children:[x&&y.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm",E?.deliveryText),children:x}),y.jsxs("div",{className:"flex justify-between items-end w-full",children:[y.jsx(e0,{monthlyFeePromotionText:m,productPrice:k,monthlyFee:d,classNames:{base:j(E?.pricingSection?.base),productPrice:j(E?.pricingSection?.productPrice),monthlyFee:j(E?.pricingSection?.monthlyFee),monthlyFeeValue:j(E?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(E?.pricingSection?.monthlyFeeLabel),promotionText:j(E?.pricingSection?.promotionText)}}),y.jsx(ti,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6",e&&"pointer-events-none",E?.button),endContent:y.jsx(Bm,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]}),y.jsx(Qb,{deviceDiscount:D,tcoPerMonth:h,classNames:{base:j(E?.footerInfo?.base),averagePrice:j(E?.footerInfo?.averagePrice),deviceDiscount:j(E?.footerInfo?.deviceDiscount)}})]})}function hi({horizontal:e,...t}){return e?y.jsx(kk,{...t}):y.jsx(Ik,{...t})}function _k(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,type:s="text",validationBehavior:a="aria"}=e,[l,c]=jr(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=ws(e,t),d=ia({...e,value:l}),{isInvalid:h,validationErrors:p,validationDetails:g}=d.displayValidation,{labelProps:m,fieldProps:x,descriptionProps:v,errorMessageProps:$}=yb({...e,isInvalid:h,errorMessage:e.errorMessage||p}),S=Ri(e,{labelable:!0});const C={type:s,pattern:e.pattern};let[T]=f.useState(l);var k;return _f(t,(k=e.defaultValue)!==null&&k!==void 0?k:T,c),Db(e,d,t),f.useEffect(()=>{if(t.current instanceof Zt(t.current).HTMLTextAreaElement){let D=t.current;Object.defineProperty(D,"defaultValue",{get:()=>D.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:kt(S,r==="input"?C:void 0,{disabled:n,readOnly:i,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>c(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(f.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...x}),descriptionProps:v,errorMessageProps:$,isInvalid:h,validationErrors:p,validationDetails:g}}function Mk(e){var t,r,n,o,i,s,a;const l=gt(),{validationBehavior:c}=sa(pi)||{},[u,d]=qt(e,qd.variantKeys),{ref:h,as:p,type:g,label:m,baseRef:x,wrapperRef:v,description:$,className:S,classNames:C,autoFocus:T,startContent:k,endContent:D,onClear:E,onChange:V,validationState:F,validationBehavior:b=(t=c??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:A=()=>{},...I}=u,N=f.useCallback(re=>{A(re??"")},[A]),[w,P]=f.useState(!1),_=p||"div",B=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,L=zt(h),K=zt(x),z=zt(v),W=zt(M),[U,ee]=jr(u.value,(o=u.defaultValue)!=null?o:"",N),Z=g==="file",R=((a=(s=(i=L?.current)==null?void 0:i.files)==null?void 0:s.length)!=null?a:0)>0,he=["date","time","month","week","range"].includes(g),fe=!Ox(U)||he||R,Q=fe||w,se=g==="hidden",q=e.isMultiline,Y=Be(C?.base,S,fe?"is-filled":""),de=f.useCallback(()=>{var re;Z?L.current.value="":ee(""),E?.(),(re=L.current)==null||re.focus()},[ee,E,Z]);kn(()=>{L.current&&ee(L.current.value)},[L.current]);const{labelProps:ae,inputProps:ie,isInvalid:we,validationErrors:De,validationDetails:xe,descriptionProps:te,errorMessageProps:je}=_k({...e,validationBehavior:b,autoCapitalize:e.autoCapitalize,value:U,"aria-label":e.label?e["aria-label"]:Ya(e["aria-label"],e.placeholder),inputElementType:q?"textarea":"input",onChange:ee},L);Z&&(delete ie.value,delete ie.onChange);const{isFocusVisible:Ee,isFocused:Ke,focusProps:lt}=gn({autoFocus:T,isTextInput:!0}),{isHovered:Te,hoverProps:Ge}=Tr({isDisabled:!!e?.isDisabled}),{isHovered:ft,hoverProps:Ft}=Tr({isDisabled:!!e?.isDisabled}),{focusProps:Oe,isFocusVisible:St}=gn(),{focusWithinProps:Mt}=Xo({onFocusWithinChange:P}),{pressProps:Dt}=qo({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:de}),Wt=F==="invalid"||we,qe=v2({labelPlacement:e.labelPlacement,label:m}),Ar=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:Wt,validationErrors:De,validationDetails:xe}):u.errorMessage||De?.join(" "),cr=!!E||e.isClearable,Jr=!!m||!!$||!!Ar,Vt=!!u.placeholder,Pe=!!m,Fe=!!$||!!Ar,At=qe==="outside-left",wt=qe==="outside-top",ir=qe==="outside"||At||wt,_o=qe==="inside",Or=L.current?(!L.current.value||L.current.value===""||!U||U==="")&&Vt:!1,Ut=!!k,Nn=ir?At||wt||Vt||qe==="outside"&&Ut:!1,Ln=qe==="outside"&&!Vt&&!Ut,Ye=f.useMemo(()=>qd({...d,isInvalid:Wt,labelPlacement:qe,isClearable:cr,disableAnimation:B}),[rn(d),Wt,qe,cr,Ut,B]),Fn=f.useCallback((re={})=>({ref:K,className:Ye.base({class:Y}),"data-slot":"base","data-filled":pe(fe||Vt||Ut||Or||Z),"data-filled-within":pe(Q||Vt||Ut||Or||Z),"data-focus-within":pe(w),"data-focus-visible":pe(Ee),"data-readonly":pe(e.isReadOnly),"data-focus":pe(Ke),"data-hover":pe(Te||ft),"data-required":pe(e.isRequired),"data-invalid":pe(Wt),"data-disabled":pe(e.isDisabled),"data-has-elements":pe(Jr),"data-has-helper":pe(Fe),"data-has-label":pe(Pe),"data-has-value":pe(!Or),"data-hidden":pe(se),...Mt,...re}),[Ye,Y,fe,Ke,Te,ft,Wt,Fe,Pe,Jr,Or,Ut,w,Ee,Q,Vt,Mt,se,e.isReadOnly,e.isRequired,e.isDisabled]),Vn=f.useCallback((re={})=>({"data-slot":"label",className:Ye.label({class:C?.label}),...ht(ae,Ft,re)}),[Ye,ft,ae,C?.label]),Qr=f.useCallback(re=>{re.key==="Escape"&&U&&(cr||E)&&!e.isReadOnly&&(ee(""),E?.())},[U,ee,E,cr,e.isReadOnly]),ke=f.useCallback((re={})=>({"data-slot":"input","data-filled":pe(fe),"data-filled-within":pe(Q),"data-has-start-content":pe(Ut),"data-has-end-content":pe(!!D),"data-type":g,className:Ye.input({class:Be(C?.input,fe?"is-filled":"",q?"pe-0":"",g==="password"?"[&::-ms-reveal]:hidden":"")}),...ht(lt,ie,Tt(I,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(ie))}),re),"aria-readonly":pe(e.isReadOnly),onChange:Fr(ie.onChange,V),onKeyDown:Fr(ie.onKeyDown,re.onKeyDown,Qr),ref:L}),[Ye,U,lt,ie,I,fe,Q,Ut,D,C?.input,e.isReadOnly,e.isRequired,V,Qr]),Mo=f.useCallback((re={})=>({ref:z,"data-slot":"input-wrapper","data-hover":pe(Te||ft),"data-focus-visible":pe(Ee),"data-focus":pe(Ke),className:Ye.inputWrapper({class:Be(C?.inputWrapper,fe?"is-filled":"")}),...ht(re,Ge),onClick:Me=>{L.current&&Me.currentTarget===Me.target&&L.current.focus()},style:{cursor:"text",...re.style}}),[Ye,Te,ft,Ee,Ke,U,C?.inputWrapper]),jn=f.useCallback((re={})=>({...re,ref:W,"data-slot":"inner-wrapper",onClick:Me=>{L.current&&Me.currentTarget===Me.target&&L.current.focus()},className:Ye.innerWrapper({class:Be(C?.innerWrapper,re?.className)})}),[Ye,C?.innerWrapper]),Pi=f.useCallback((re={})=>({...re,"data-slot":"main-wrapper",className:Ye.mainWrapper({class:Be(C?.mainWrapper,re?.className)})}),[Ye,C?.mainWrapper]),O=f.useCallback((re={})=>({...re,"data-slot":"helper-wrapper",className:Ye.helperWrapper({class:Be(C?.helperWrapper,re?.className)})}),[Ye,C?.helperWrapper]),X=f.useCallback((re={})=>({...re,...te,"data-slot":"description",className:Ye.description({class:Be(C?.description,re?.className)})}),[Ye,C?.description]),oe=f.useCallback((re={})=>({...re,...je,"data-slot":"error-message",className:Ye.errorMessage({class:Be(C?.errorMessage,re?.className)})}),[Ye,je,C?.errorMessage]),ge=f.useCallback((re={})=>({...re,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":pe(St),className:Ye.clearButton({class:Be(C?.clearButton,re?.className)}),...ht(Dt,Oe)}),[Ye,St,Dt,Oe,C?.clearButton]);return{Component:_,classNames:C,domRef:L,label:m,description:$,startContent:k,endContent:D,labelPlacement:qe,isClearable:cr,hasHelper:Fe,hasStartContent:Ut,isLabelOutside:Nn,isOutsideLeft:At,isOutsideTop:wt,isLabelOutsideAsPlaceholder:Ln,shouldLabelBeOutside:ir,shouldLabelBeInside:_o,hasPlaceholder:Vt,isInvalid:Wt,errorMessage:Ar,getBaseProps:Fn,getLabelProps:Vn,getInputProps:ke,getMainWrapperProps:Pi,getInputWrapperProps:Mo,getInnerWrapperProps:jn,getHelperWrapperProps:O,getDescriptionProps:X,getErrorMessageProps:oe,getClearButtonProps:ge}}var o0=Re((e,t)=>{const{Component:r,label:n,description:o,isClearable:i,startContent:s,endContent:a,labelPlacement:l,hasHelper:c,isOutsideLeft:u,isOutsideTop:d,shouldLabelBeOutside:h,errorMessage:p,isInvalid:g,getBaseProps:m,getLabelProps:x,getInputProps:v,getInnerWrapperProps:$,getInputWrapperProps:S,getMainWrapperProps:C,getHelperWrapperProps:T,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:E}=Mk({...e,ref:t}),V=n?y.jsx("label",{...x(),children:n}):null,F=f.useMemo(()=>i?y.jsx("button",{...E(),children:a||y.jsx(xu,{})}):a,[i,E]),b=f.useMemo(()=>{const I=g&&p;return!c||!(I||o)?null:y.jsx("div",{...T(),children:I?y.jsx("div",{...D(),children:p}):y.jsx("div",{...k(),children:o})})},[c,g,p,o,T,D,k]),M=f.useMemo(()=>y.jsxs("div",{...$(),children:[s,y.jsx("input",{...v()}),F]}),[s,F,v,$]),A=f.useMemo(()=>h?y.jsxs("div",{...C(),children:[y.jsxs("div",{...S(),children:[!u&&!d?V:null,M]}),b]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{...S(),children:[V,M]}),b]}),[l,b,h,V,M,p,o,C,S,D,k]);return y.jsxs(r,{...m(),children:[u||d?V:null,A]})});o0.displayName="HeroUI.Input";var mi=o0;class i0{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)r(l)};for(let a of t)r(a);let n=null,o=0,i=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&i++,n=l,n.nextKey=void 0;this._size=i;var s;this.lastKey=(s=n?.key)!==null&&s!==void 0?s:null}}class ur extends Set{constructor(t,r,n){super(t),t instanceof ur?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function Dk(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function Ak(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,s=f.useRef(!1),[,a]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>s0(e.selectedKeys),[e.selectedKeys]),h=f.useMemo(()=>s0(e.defaultSelectedKeys,new ur),[e.defaultSelectedKeys]),[p,g]=jr(d,h,e.onSelectionChange),m=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[x,v]=f.useState(o);o==="replace"&&x==="toggle"&&typeof p=="object"&&p.size===0&&v("replace");let $=f.useRef(o);return f.useEffect(()=>{o!==$.current&&(v(o),$.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:x,setSelectionBehavior:v,get isFocused(){return s.current},setFocused(S){s.current=S,a(S)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(S,C="first"){l.current=S,c.current=C,u(S)},selectedKeys:p,setSelectedKeys(S){(n||!Dk(S,p))&&g(S)},disabledKeys:m,disabledBehavior:i}}function s0(e,t){return e?e==="all"?"all":new ur(e):t}function a0(e){return null}a0.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:i}=t,s=t.title||t.children,a=t.textValue||(typeof s=="string"?s:"")||t["aria-label"]||"";!a&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:s,textValue:a,"aria-label":t["aria-label"],hasChildNodes:Ok(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(i,c=>{l.push({type:"item",element:c})}),yield*l}}}};function Ok(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let Nk=a0;class Lk{build(t,r){return this.context=r,l0(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(f.isValidElement(r)&&r.type===f.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let i of n)yield*this.getFullNode({value:i,index:o},{renderer:r}),o++}else{let o=[];f.Children.forEach(r,s=>{s&&o.push(s)});let i=0;for(let s of o){let a=this.getFullNode({element:s,index:i},{});for(let l of a)i++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let i=r.value;if(i!=null){var s;let a=(s=i.key)!==null&&s!==void 0?s:i.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(f.isValidElement(t.element)&&t.element.type===f.Fragment){let x=[];f.Children.forEach(t.element.props.children,$=>{x.push($)});var i;let v=(i=t.index)!==null&&i!==void 0?i:0;for(const $ of x)yield*this.getFullNode({element:$,index:v++},r,n,o);return}let s=t.element;if(!s&&t.value&&r&&r.renderer){let x=this.cache.get(t.value);if(x&&(!x.shouldInvalidate||!x.shouldInvalidate(this.context))){x.index=t.index,x.parentKey=o?o.key:null,yield x;return}s=r.renderer(t.value)}if(f.isValidElement(s)){let x=s.type;if(typeof x!="function"&&typeof x.getCollectionNode!="function"){let C=s.type;throw new Error(`Unknown element <${C}> in collection.`)}let v=x.getCollectionNode(s.props,this.context);var a;let $=(a=t.index)!==null&&a!==void 0?a:0,S=v.next();for(;!S.done&&S.value;){let C=S.value;t.index=$;var l;let T=(l=C.key)!==null&&l!==void 0?l:null;T==null&&(T=C.element?null:this.getKey(s,t,r,n));let D=[...this.getFullNode({...C,key:T,index:$,wrapper:Fk(t.wrapper,C.wrapper)},this.getChildState(r,C),n?`${n}${s.key}`:s.key,o)];for(let E of D){var c,u;E.value=(u=(c=C.value)!==null&&c!==void 0?c:t.value)!==null&&u!==void 0?u:null,E.value&&this.cache.set(E.value,E);var d;if(t.type&&E.type!==t.type)throw new Error(`Unsupported type <${Fc(E.type)}> in <${Fc((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${Fc(t.type)}> is supported.`);$++,yield E}S=v.next(D)}return}if(t.key==null||t.type==null)return;let h=this;var p,g;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(p=t.value)!==null&&p!==void 0?p:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:l0(function*(){if(!t.hasChildNodes||!t.childNodes)return;let x=0;for(let v of t.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let $=h.getFullNode({...v,index:x},h.getChildState(r,v),m.key,m);for(let S of $)x++,yield S}})};yield m}constructor(){this.cache=new WeakMap}}function l0(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function Fk(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Fc(e){return e[0].toUpperCase()+e.slice(1)}function Vk(e,t,r){let n=f.useMemo(()=>new Lk,[]),{children:o,items:i,collection:s}=e;return f.useMemo(()=>{if(s)return s;let l=n.build({children:o,items:i},r);return t(l)},[n,o,i,s,r,t])}function u0(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function jk(e){return zk(e)}function zk(e,t){for(let r of e)return r}function Vc(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...c0(e,t),t],o=[...c0(e,r),r],i=n.slice(0,o.length).findIndex((s,a)=>s!==o[a]);return i!==-1?(t=n[i],r=o[i],t.index-r.index):n.findIndex(s=>s===r)>=0?1:(o.findIndex(s=>s===t)>=0,-1)}function c0(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const d0=new WeakMap;function Bk(e){let t=d0.get(e);if(t!=null)return t;let r=0,n=o=>{for(let i of o)i.type==="section"?n(u0(i,e)):i.type==="item"&&r++};return n(e),d0.set(e,r),r}class jc{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Vc(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&Vc(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ur([r],r,r);else{let s=this.state.selectedKeys;var o;let a=(o=s.anchorKey)!==null&&o!==void 0?o:r;n=new ur(s,a,r);var i;for(let l of this.getKeyRange(a,(i=s.currentKey)!==null&&i!==void 0?i:r))n.delete(l);for(let l of this.getKeyRange(r,a))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?Vc(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],i=t;for(;i!=null;){let s=this.collection.getItem(i);if(s&&(s.type==="item"||s.type==="cell"&&this.allowsCellSelection)&&o.push(i),i===r)return o;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ur(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ur([r],r,r):new ur;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ur;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let s=this.collection.getItem(n);s?.type==="item"&&t.push(n);var i;s?.hasChildNodes&&(this.allowsCellSelection||s.type!=="item")&&r((i=(o=jk(u0(s,this.collection)))===null||o===void 0?void 0:o.key)!==null&&i!==void 0?i:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ur)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new jc(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function f0(e){let{filter:t,layoutDelegate:r}=e,n=Ak(e),o=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=f.useCallback(c=>t?new i0(t(c)):new i0(c),[t]),s=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=Vk(e,i,s),l=f.useMemo(()=>new jc(a,n,{layoutDelegate:r}),[a,n,r]);return Rk(a,l),{collection:a,disabledKeys:o,selectionManager:l}}function Rk(e,t){const r=f.useRef(null);f.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const u=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(v=>{const $=r.current.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null),h=[...e.getKeys()].map(v=>{const $=e.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null);var n,o;const p=((n=d?.length)!==null&&n!==void 0?n:0)-((o=h?.length)!==null&&o!==void 0?o:0);var i,s,a;let g=Math.min(p>1?Math.max(((i=u?.index)!==null&&i!==void 0?i:0)-p+1,0):(s=u?.index)!==null&&s!==void 0?s:0,((a=h?.length)!==null&&a!==void 0?a:0)-1),m=null,x=!1;for(;g>=0;){if(!t.isDisabled(h[g].key)){m=h[g];break}if(g<h.length-1&&!x)g++;else{x=!0;var l,c;g>((l=u?.index)!==null&&l!==void 0?l:0)&&(g=(c=u?.index)!==null&&c!==void 0?c:0),g--}}t.setFocusedKey(m?m.key:null)}r.current=e},[e,t])}function Kk(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:i,selectionMode:s}}=f0(e),a=f.useMemo(()=>!e.isLoading&&i.size!==0?Array.from(i).filter(Boolean).filter(c=>!t.getItem(c)):[],[i,t]),l=i.size!==0?Array.from(i).map(c=>t.getItem(c)).filter(Boolean):null;return a.length&&console.warn(`Select: Keys "${a.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:s,selectedKeys:i,setSelectedKeys:o.bind(n),selectedItems:l}}function Wk(e){let t=ra(e),[r,n]=f.useState(null),[o,i]=f.useState([]),s=()=>{i([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){s()},expandedKeysStack:o,openSubmenu:(c,u)=>{i(d=>u>d.length?d:[...d.slice(0,u),c])},closeSubmenu:(c,u)=>{i(d=>d[u]===c?d.slice(0,u):d)}}}function Uk({validate:e,validationBehavior:t,...r}){const[n,o]=f.useState(!1),[i,s]=f.useState(null),a=Wk(r),l=Kk({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&a.close()}}),c=ub({...r,validationBehavior:t,validate:d=>{if(!e)return;const h=Array.from(d);return e(r.selectionMode==="single"?h[0]:h)},value:l.selectedKeys}),u=l.collection.size===0&&r.hideEmptyContent;return{...c,...l,...a,focusStrategy:i,close(){a.close()},open(d=null){u||(s(d),a.open())},toggle(d=null){u||(s(d),a.toggle())},isFocused:n,setFocused:o}}var p0={};p0={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var h0={};h0={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var m0={};m0={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var g0={};g0={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var v0={};v0={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var b0={};b0={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var y0={};y0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var x0={};x0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var w0={};w0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var $0={};$0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var E0={};E0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var P0={};P0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var S0={};S0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var C0={};C0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var T0={};T0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var k0={};k0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var I0={};I0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var _0={};_0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var M0={};M0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var D0={};D0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var A0={};A0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var O0={};O0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var N0={};N0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var L0={};L0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var F0={};F0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var V0={};V0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var j0={};j0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var z0={};z0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var B0={};B0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var R0={};R0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var K0={};K0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var W0={};W0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var U0={};U0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var H0={};H0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var G0={};G0={"ar-AE":p0,"bg-BG":h0,"cs-CZ":m0,"da-DK":g0,"de-DE":v0,"el-GR":b0,"en-US":y0,"es-ES":x0,"et-EE":w0,"fi-FI":$0,"fr-FR":E0,"he-IL":P0,"hr-HR":S0,"hu-HU":C0,"it-IT":T0,"ja-JP":k0,"ko-KR":I0,"lt-LT":_0,"lv-LV":M0,"nb-NO":D0,"nl-NL":A0,"pl-PL":O0,"pt-BR":N0,"pt-PT":L0,"ro-RO":F0,"ru-RU":V0,"sk-SK":j0,"sl-SI":z0,"sr-SP":B0,"sv-SE":R0,"tr-TR":K0,"uk-UA":W0,"zh-CN":U0,"zh-TW":H0};function Hk(e){return e&&e.__esModule?e.default:e}function Gk(e,t,r){let{type:n="menu",isDisabled:o,trigger:i="press"}=e,s=Bt(),{triggerProps:a,overlayProps:l}=iv({type:n},t,r),c=p=>{if(!o&&!(i==="longPress"&&!p.altKey)&&r&&r.current)switch(p.key){case"Enter":case" ":if(i==="longPress"||p.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in p||p.stopPropagation(),p.preventDefault(),t.toggle("last");break;default:"continuePropagation"in p&&p.continuePropagation()}},u=Mg(Hk(G0),"@react-aria/menu"),{longPressProps:d}=Xg({isDisabled:o||i!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),h={preventFocusOnPress:!0,onPressStart(p){p.pointerType!=="touch"&&p.pointerType!=="keyboard"&&!o&&(lr(p.target),t.open(p.pointerType==="virtual"?"first":null))},onPress(p){p.pointerType==="touch"&&!o&&(lr(p.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...i==="press"?h:d,id:s,onKeyDown:c},menuProps:{...l,"aria-labelledby":s,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function zc(e){return _T()?e.altKey:e.ctrlKey}function ua(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,i=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return i&&(o=`[data-collection="${CSS.escape(i)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const Z0=new WeakMap;function Zk(e){let t=Bt();return Z0.set(e,t),t}function qk(e){return Z0.get(e)}const Yk=1e3;function q0(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,i=s=>{let a=Xk(s.key);if(!(!a||s.ctrlKey||s.metaKey||!s.currentTarget.contains(s.target)||o.search.length===0&&a===" ")){if(a===" "&&o.search.trim().length>0&&(s.preventDefault(),"continuePropagation"in s||s.stopPropagation()),o.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Yk)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:void 0}}}function Xk(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Jk(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:s=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:g=n,linkBehavior:m="action"}=e,{direction:x}=ii(),v=Uu(),$=P=>{var _;if(P.altKey&&P.key==="Tab"&&P.preventDefault(),!(!((_=n.current)===null||_===void 0)&&_.contains(P.target)))return;const B=(q,Y)=>{if(q!=null){if(t.isLink(q)&&m==="selection"&&c&&!zc(P)){Bn.flushSync(()=>{t.setFocusedKey(q,Y)});let de=ua(n,q),ae=t.getItemProps(q);de&&v.open(de,P,ae.href,ae.routerOptions);return}if(t.setFocusedKey(q,Y),t.isLink(q)&&m==="override")return;P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&!zc(P)&&t.replaceSelection(q)}};switch(P.key){case"ArrowDown":if(r.getKeyBelow){var L,K,z;let q=t.focusedKey!=null?(L=r.getKeyBelow)===null||L===void 0?void 0:L.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);q==null&&i&&(q=(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q))}break;case"ArrowUp":if(r.getKeyAbove){var W,U,ee;let q=t.focusedKey!=null?(W=r.getKeyAbove)===null||W===void 0?void 0:W.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);q==null&&i&&(q=(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var Z,R,he;let q=t.focusedKey!=null?(Z=r.getKeyLeftOf)===null||Z===void 0?void 0:Z.call(r,t.focusedKey):null;q==null&&i&&(q=x==="rtl"?(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey):(he=r.getLastKey)===null||he===void 0?void 0:he.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var fe,Q,se;let q=t.focusedKey!=null?(fe=r.getKeyRightOf)===null||fe===void 0?void 0:fe.call(r,t.focusedKey):null;q==null&&i&&(q=x==="rtl"?(Q=r.getLastKey)===null||Q===void 0?void 0:Q.call(r,t.focusedKey):(se=r.getFirstKey)===null||se===void 0?void 0:se.call(r,t.focusedKey)),q!=null&&(P.preventDefault(),B(q,x==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let q=r.getFirstKey(t.focusedKey,$o(P));t.setFocusedKey(q),q!=null&&($o(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&P.shiftKey)return;P.preventDefault();let q=r.getLastKey(t.focusedKey,$o(P));t.setFocusedKey(q),q!=null&&($o(P)&&P.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(P.preventDefault(),B(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(P.preventDefault(),B(q))}break;case"a":$o(P)&&t.selectionMode==="multiple"&&a!==!0&&(P.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!s&&t.selectedKeys.size!==0&&(P.stopPropagation(),P.preventDefault(),t.clearSelection());break;case"Tab":if(!h){if(P.shiftKey)n.current.focus();else{let q=mr(n.current,{tabbable:!0}),Y,de;do de=q.lastChild(),de&&(Y=de);while(de);Y&&!Y.contains(document.activeElement)&&lr(Y)}break}}},S=f.useRef({top:0,left:0});Vs(g,"scroll",p?void 0:()=>{var P,_,B,L;S.current={top:(B=(P=g.current)===null||P===void 0?void 0:P.scrollTop)!==null&&B!==void 0?B:0,left:(L=(_=g.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&L!==void 0?L:0}});let C=P=>{if(t.isFocused){P.currentTarget.contains(P.target)||t.setFocused(!1);return}if(P.currentTarget.contains(P.target)){if(t.setFocused(!0),t.focusedKey==null){var _,B;let z=U=>{U!=null&&(t.setFocusedKey(U),c&&!t.isSelected(U)&&t.replaceSelection(U))},W=P.relatedTarget;var L,K;W&&P.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?z((L=t.lastSelectedKey)!==null&&L!==void 0?L:(_=r.getLastKey)===null||_===void 0?void 0:_.call(r)):z((K=t.firstSelectedKey)!==null&&K!==void 0?K:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!p&&g.current&&(g.current.scrollTop=S.current.top,g.current.scrollLeft=S.current.left);if(t.focusedKey!=null&&g.current){let z=ua(n,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!d&&lr(z),Zs()==="keyboard"&&gg(z,{containingElement:n.current}))}}},T=P=>{P.currentTarget.contains(P.relatedTarget)||t.setFocused(!1)},k=f.useRef(!1);Vs(n,WT,d?P=>{let{detail:_}=P;P.stopPropagation(),t.setFocused(!0),_?.focusStrategy==="first"&&(k.current=!0)}:void 0);let D=nt(()=>{var P,_;let B=(_=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&_!==void 0?_:null;if(B==null){let L=It();nv(n.current),ov(L,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(B),k.current=!1});cg(()=>{k.current&&D()},[t.collection,D]);let E=nt(()=>{t.collection.size>0&&(k.current=!1)});cg(()=>{E()},[t.focusedKey,E]),Vs(n,KT,d?P=>{var _;P.stopPropagation(),t.setFocused(!1),!((_=P.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=f.useRef(o),F=f.useRef(!1);f.useEffect(()=>{if(V.current){var P,_;let K=null;var B;o==="first"&&(K=(B=(P=r.getFirstKey)===null||P===void 0?void 0:P.call(r))!==null&&B!==void 0?B:null);var L;o==="last"&&(K=(L=(_=r.getLastKey)===null||_===void 0?void 0:_.call(r))!==null&&L!==void 0?L:null);let z=t.selectedKeys;if(z.size){for(let W of z)if(t.canSelectItem(W)){K=W;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&Cn(n.current),t.collection.size>0&&(V.current=!1,F.current=!0)}});let b=f.useRef(t.focusedKey),M=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==b.current||F.current)&&g.current&&n.current){let P=Zs(),_=ua(n,t.focusedKey);if(!(_ instanceof HTMLElement))return;(P==="keyboard"||F.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{g.current&&(hg(g.current,_),P!=="virtual"&&gg(_,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&b.current!=null&&n.current&&Cn(n.current),b.current=t.focusedKey,F.current=!1}),f.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),Vs(n,"react-aria-focus-scope-restore",P=>{P.preventDefault(),t.setFocused(!0)});let A={onKeyDown:$,onFocus:C,onBlur:T,onMouseDown(P){g.current===P.target&&P.preventDefault()}},{typeSelectProps:I}=q0({keyboardDelegate:r,selectionManager:t});u||(A=ze(I,A));let N;d||(N=t.focusedKey==null?0:-1);let w=Zk(t.collection);return{collectionProps:ze(A,{tabIndex:N,"data-collection":w})}}function Qk(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:i,shouldUseVirtualFocus:s,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=e,h=Uu();t=Bt(t);let p=L=>{if(L.pointerType==="keyboard"&&zc(L))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);h.open(o.current,L,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):L&&L.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||L&&($o(L)||L.pointerType==="touch"||L.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(s?nv(o.current):a?a():document.activeElement!==o.current&&o.current&&Cn(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,s]),l=l||r.isDisabled(n);let g={};!s&&!l?g={tabIndex:n===r.focusedKey?0:-1,onFocus(L){L.target===o.current&&r.setFocusedKey(n)}}:l&&(g.onMouseDown=L=>{L.preventDefault()});let m=r.isLink(n)&&d==="override",x=c&&e.UNSTABLE_itemBehavior==="action",v=r.isLink(n)&&d!=="selection"&&d!=="none",$=!l&&r.canSelectItem(n)&&!m&&!x,S=(c||v)&&!l,C=S&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),T=S&&$&&r.selectionBehavior==="replace",k=C||T,D=f.useRef(null),E=k&&$,V=f.useRef(!1),F=f.useRef(!1),b=r.getItemProps(n),M=L=>{if(c){var K;c(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}v&&o.current&&h.open(o.current,L,b.href,b.routerOptions)},A={ref:o};if(i?(A.onPressStart=L=>{D.current=L.pointerType,V.current=E,L.pointerType==="keyboard"&&(!k||X0())&&p(L)},u?(A.onPressUp=C?void 0:L=>{L.pointerType==="mouse"&&$&&p(L)},A.onPress=C?M:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&$&&p(L)}):A.onPress=L=>{if(C||T&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!Y0())return;M(L)}else L.pointerType!=="keyboard"&&$&&p(L)}):(A.onPressStart=L=>{D.current=L.pointerType,V.current=E,F.current=C,$&&(L.pointerType==="mouse"&&!C||L.pointerType==="keyboard"&&(!S||X0()))&&p(L)},A.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&k&&Y0()||L.pointerType==="mouse"&&F.current)&&(k?M(L):$&&p(L))}),g["data-collection"]=qk(r.collection),g["data-key"]=n,A.preventFocusOnPress=s,s&&(A=ze(A,{onPressStart(L){L.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(L){L.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),b)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])b[L]&&(A[L]=wn(A[L],b[L]));let{pressProps:I,isPressed:N}=Ir(A),w=T?L=>{D.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),M(L))}:void 0,{longPressProps:P}=Xg({isDisabled:!E,onLongPress(L){L.pointerType==="touch"&&(p(L),r.setSelectionBehavior("toggle"))}}),_=L=>{D.current==="touch"&&V.current&&L.preventDefault()},B=d!=="none"&&r.isLink(n)?L=>{$n.isOpening||L.preventDefault()}:void 0;return{itemProps:ze(g,$||C||s&&!l?I:{},E?P:{},{onDoubleClick:w,onDragStartCapture:_,onClick:B,id:t},s?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:N,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:$,hasAction:k}}function Y0(){let e=window.event;return e?.key==="Enter"}function X0(){let e=window.event;return e?.key===" "||e?.code==="Space"}class J0{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?ua(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),i=n.getBoundingClientRect();return{x:i.left-o.left-r.clientLeft+r.scrollLeft,y:i.top-o.top-r.clientTop+r.scrollTop,width:i.width,height:i.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,i;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(i=t?.clientHeight)!==null&&i!==void 0?i:0}}constructor(t){this.ref=t}}class Q0{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,i=this.layoutDelegate.getItemRect(o);if(!i||o==null)return null;let s=i;do{if(o=r(o),o==null)break;i=this.layoutDelegate.getItemRect(o)}while(i&&n(s,i)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!wo(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let i=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>i&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!wo(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let i=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let i=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<i&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let i=n.getItem(o);if(!i)return null;let s=i.textValue.slice(0,t.length);if(i.textValue&&this.collator.compare(s,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new J0(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new J0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function e3(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:i,layoutDelegate:s}=e,a=Dg({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=f.useMemo(()=>i||new Q0({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:a,layoutDelegate:s}),[i,s,r,n,o,a,l]),{collectionProps:u}=Jk({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}function t3(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,i=Dg({usage:"search",sensitivity:"base"}),s=f.useMemo(()=>new Q0(t.collection,t.disabledKeys,null,i),[t.collection,t.disabledKeys,i]),{menuTriggerProps:a,menuProps:l}=Gk({isDisabled:o,type:"listbox"},t,r),c=T=>{if(t.selectionMode==="single")switch(T.key){case"ArrowLeft":{T.preventDefault();const k=t.selectedKeys.size>0?s.getKeyAbove(t.selectedKeys.values().next().value):s.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{T.preventDefault();const k=t.selectedKeys.size>0?s.getKeyBelow(t.selectedKeys.values().next().value):s.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:u}=q0({keyboardDelegate:s,selectionManager:t.selectionManager,onTypeSelect(T){t.setSelectedKeys([T])}}),{isInvalid:d,validationErrors:h,validationDetails:p}=t.displayValidation,{labelProps:g,fieldProps:m,descriptionProps:x,errorMessageProps:v}=hb({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||h});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture,a.onPressStart=T=>{T.pointerType!=="touch"&&T.pointerType!=="keyboard"&&!o&&t.toggle(T.pointerType==="virtual"?"first":null)};const $=Wr(e,{labelable:!0}),S=ze(u,a,m),C=Bt();return{labelProps:{...g,onClick:()=>{var T;e.isDisabled||((T=r.current)==null||T.focus(),pc("keyboard"))}},triggerProps:ze($,{...S,onKeyDown:wn(S.onKeyDown,c,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[C,S["aria-labelledby"],S["aria-label"]&&!S["aria-labelledby"]?S.id:null].join(" "),onFocus(T){t.isFocused||(e.onFocus&&e.onFocus(T),t.setFocused(!0))},onBlur(T){t.isOpen||(e.onBlur&&e.onBlur(T),t.setFocused(!1))}}),valueProps:{id:C},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||(e.onBlur&&e.onBlur(T),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[m["aria-labelledby"],S["aria-label"]&&!m["aria-labelledby"]?S.id:null].filter(Boolean).join(" ")},descriptionProps:x,errorMessageProps:v,isInvalid:d,validationErrors:h,validationDetails:p}}var ey=new WeakMap;function r3(e){var t,r,n,o,i,s;const a=gt(),{validationBehavior:l}=Cc(na)||{},[c,u]=qt(e,Zd.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:a?.disableAnimation)!=null?r:!1,{ref:h,as:p,label:g,name:m,isLoading:x,selectorIcon:v,isOpen:$,defaultOpen:S,onOpenChange:C,startContent:T,endContent:k,description:D,renderValue:E,onSelectionChange:V,placeholder:F,isVirtualized:b,itemHeight:M=36,maxListboxHeight:A=256,children:I,disallowEmptySelection:N=!1,selectionMode:w="single",spinnerRef:P,scrollRef:_,popoverProps:B={},scrollShadowProps:L={},listboxProps:K={},spinnerProps:z={},validationState:W,onChange:U,onClose:ee,className:Z,classNames:R,validationBehavior:he=(n=l??a?.validationBehavior)!=null?n:"native",hideEmptyContent:fe=!1,onClear:Q,...se}=c,q=er(_),Y={popoverProps:Ve({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},B),scrollShadowProps:Ve({ref:q,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},L),listboxProps:Ve({disableAnimation:d},K)},de=p||"button",ae=typeof de=="string",ie=er(h),we=f.useRef(null),De=f.useRef(null),xe=f.useRef(null);let te=Uk({...c,isOpen:$,selectionMode:w,disallowEmptySelection:N,validationBehavior:he,children:I,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:S,hideEmptyContent:fe,onOpenChange:ne=>{C?.(ne),ne||ee?.()},onSelectionChange:ne=>{V?.(ne),U&&typeof U=="function"&&U({target:{...ie.current&&{...ie.current,name:ie.current.name},value:Array.from(ne).join(",")}}),te.commitValidation()}});te={...te,...e.isDisabled&&{disabledKeys:new Set([...te.collection.getKeys()])}},kn(()=>{var ne;(ne=ie.current)!=null&&ne.value&&te.setSelectedKeys(new Set([...te.selectedKeys,ie.current.value]))},[ie.current]);const{labelProps:je,triggerProps:Ee,valueProps:Ke,menuProps:lt,descriptionProps:Te,errorMessageProps:Ge,isInvalid:ft,validationErrors:Ft,validationDetails:Oe}=t3({...c,disallowEmptySelection:N,isDisabled:e.isDisabled},te,we),St=f.useCallback(()=>{var ne;te.setSelectedKeys(new Set([])),Q?.(),(ne=we.current)==null||ne.focus()},[Q,te]),{pressProps:Mt}=Ir({isDisabled:!!e?.isDisabled,onPress:St}),Dt=e.isInvalid||W==="invalid"||ft,{isPressed:Wt,buttonProps:qe}=rb(Ee,we),{focusProps:Ar,isFocused:cr,isFocusVisible:Jr}=So(),{focusProps:Vt,isFocusVisible:Pe}=So(),{isHovered:Fe,hoverProps:At}=Xs({isDisabled:e.isDisabled}),wt=g2({labelPlacement:e.labelPlacement,label:g}),ir=!!F,_o=wt==="outside-left"||wt==="outside",Or=wt==="inside",Ut=wt==="outside-left",Nn=e.isClearable,Ln=te.isOpen||ir||!!((i=te.selectedItems)!=null&&i.length)||!!T||!!k||!!e.isMultiline,Ye=!!((s=te.selectedItems)!=null&&s.length),Fn=!!g,Vn=Fn&&(Ut||_o&&ir),Qr=Se(R?.base,Z),ke=f.useMemo(()=>Zd({...u,isInvalid:Dt,isClearable:Nn,labelPlacement:wt,disableAnimation:d}),[yn(u),Dt,wt,d]);wc({isDisabled:!te.isOpen});const Mo=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:Dt,validationErrors:Ft,validationDetails:Oe}):c.errorMessage||Ft?.join(" "),jn=!!D||!!Mo,Pi=!!k;f.useEffect(()=>{if(te.isOpen&&xe.current&&we.current){let ne=we.current.getBoundingClientRect(),zn=xe.current;zn.style.width=ne.width+"px"}},[te.isOpen]);const O=f.useCallback((ne={})=>({"data-slot":"base","data-filled":ve(Ln),"data-has-value":ve(Ye),"data-has-label":ve(Fn),"data-has-helper":ve(jn),"data-has-end-content":ve(Pi),"data-invalid":ve(Dt),"data-has-label-outside":ve(Vn),className:ke.base({class:Se(Qr,ne.className)}),...ne}),[ke,jn,Ye,Fn,Vn,Ln,Qr]),X=f.useCallback((ne={})=>({ref:we,"data-slot":"trigger","data-open":ve(te.isOpen),"data-disabled":ve(e?.isDisabled),"data-focus":ve(cr),"data-pressed":ve(Wt),"data-focus-visible":ve(Jr),"data-hover":ve(Fe),className:ke.trigger({class:R?.trigger}),...Ve(qe,Ar,At,Tt(se,{enabled:ae}),Tt(ne))}),[ke,we,te.isOpen,R?.trigger,e?.isDisabled,cr,Wt,Jr,Fe,qe,Ar,At,se,ae]),oe=f.useCallback((ne={})=>({state:te,triggerRef:we,selectRef:ie,selectionMode:w,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:U,...ne}),[te,w,e?.label,e?.autoComplete,e?.name,e?.isDisabled,we]),ge=f.useCallback((ne={})=>({"data-slot":"label",className:ke.label({class:Se(R?.label,ne.className)}),...je,...ne}),[ke,R?.label,je]),re=f.useCallback((ne={})=>({"data-slot":"value",className:ke.value({class:Se(R?.value,ne.className)}),...Ke,...ne}),[ke,R?.value,Ke]),Me=f.useCallback((ne={})=>({"data-slot":"listboxWrapper",className:ke.listboxWrapper({class:Se(R?.listboxWrapper,ne?.className)}),style:{maxHeight:A??256,...ne.style},...Ve(Y.scrollShadowProps,ne)}),[ke.listboxWrapper,R?.listboxWrapper,Y.scrollShadowProps,A]),_e=(ne={})=>{const zn=b??te.collection.size>50;return{state:te,ref:De,isVirtualized:zn,virtualization:zn?{maxListboxHeight:A,itemHeight:M}:void 0,"data-slot":"listbox",className:ke.listbox({class:Se(R?.listbox,ne?.className)}),scrollShadowProps:Y.scrollShadowProps,...Ve(Y.listboxProps,ne,lt)}},Ce=f.useCallback((ne={})=>{var zn,b1;const sM=Ve(Y.popoverProps,ne);return{state:te,triggerRef:we,ref:xe,"data-slot":"popover",scrollRef:De,triggerType:"listbox",classNames:{content:ke.popoverContent({class:Se(R?.popoverContent,ne.className)})},...sM,offset:te.selectedItems&&te.selectedItems.length>0?te.selectedItems.length*1e-8+(((zn=Y.popoverProps)==null?void 0:zn.offset)||0):(b1=Y.popoverProps)==null?void 0:b1.offset}},[ke,R?.popoverContent,Y.popoverProps,we,te,te.selectedItems]),Ct=f.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":ve(!0),"data-open":ve(te.isOpen),className:ke.selectorIcon({class:R?.selectorIcon})}),[ke,R?.selectorIcon,te.isOpen]),tt=f.useCallback((ne={})=>({...ne,"data-slot":"innerWrapper",className:ke.innerWrapper({class:Se(R?.innerWrapper,ne?.className)})}),[ke,R?.innerWrapper]),ot=f.useCallback((ne={})=>({...ne,"data-slot":"helperWrapper",className:ke.helperWrapper({class:Se(R?.helperWrapper,ne?.className)})}),[ke,R?.helperWrapper]),Ht=f.useCallback((ne={})=>({...ne,...Te,"data-slot":"description",className:ke.description({class:Se(R?.description,ne?.className)})}),[ke,R?.description]),en=f.useCallback((ne={})=>({...ne,"data-slot":"mainWrapper",className:ke.mainWrapper({class:Se(R?.mainWrapper,ne?.className)})}),[ke,R?.mainWrapper]),Nr=f.useCallback((ne={})=>({...ne,"data-slot":"end-wrapper",className:ke.endWrapper({class:Se(R?.endWrapper,ne?.className)})}),[ke,R?.endWrapper]),Ot=f.useCallback((ne={})=>({...ne,"data-slot":"end-content",className:ke.endContent({class:Se(R?.endContent,ne?.className)})}),[ke,R?.endContent]),Si=f.useCallback((ne={})=>({...ne,...Ge,"data-slot":"error-message",className:ke.errorMessage({class:Se(R?.errorMessage,ne?.className)})}),[ke,Ge,R?.errorMessage]),yd=f.useCallback((ne={})=>({"aria-hidden":ve(!0),"data-slot":"spinner",color:"current",size:"sm",...z,...ne,ref:P,className:ke.spinner({class:Se(R?.spinner,ne?.className)})}),[ke,P,z,R?.spinner]),xd=f.useCallback((ne={})=>({...ne,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":ve(Pe),className:ke.clearButton({class:Se(R?.clearButton,ne?.className)}),...Ve(Mt,Vt)}),[ke,Pe,Mt,Vt,R?.clearButton]);return ey.set(te,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:Dt,validationBehavior:he}),{Component:de,domRef:ie,state:te,label:g,name:m,triggerRef:we,isLoading:x,placeholder:F,startContent:T,endContent:k,description:D,selectorIcon:v,hasHelper:jn,labelPlacement:wt,hasPlaceholder:ir,renderValue:E,selectionMode:w,disableAnimation:d,isOutsideLeft:Ut,shouldLabelBeOutside:_o,shouldLabelBeInside:Or,isInvalid:Dt,errorMessage:Mo,isClearable:Nn,getClearButtonProps:xd,getBaseProps:O,getTriggerProps:X,getLabelProps:ge,getValueProps:re,getListboxProps:_e,getPopoverProps:Ce,getSpinnerProps:yd,getMainWrapperProps:en,getListboxWrapperProps:Me,getHiddenSelectProps:oe,getInnerWrapperProps:tt,getHelperWrapperProps:ot,getDescriptionProps:Ht,getErrorMessageProps:Si,getSelectorIconProps:Ct,getEndWrapperProps:Nr,getEndContentProps:Ot}}var n3=typeof document<"u"?f.useLayoutEffect:()=>{};function o3(e){const t=f.useRef(null);return n3(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function i3(e,t,r){let n=f.useRef(t),o=o3(()=>{r&&r(n.current)});f.useEffect(()=>{var i;let s=(i=e?.current)==null?void 0:i.form;return s?.addEventListener("reset",o),()=>{s?.removeEventListener("reset",o)}},[e,o])}function s3(e,t,r){var n;let o=ey.get(t)||{},{autoComplete:i,name:s=o.name,isDisabled:a=o.isDisabled,selectionMode:l,onChange:c,form:u}=e,{validationBehavior:d,isRequired:h,isInvalid:p}=o,{visuallyHiddenProps:g}=Wv();return i3(e.selectRef,t.selectedKeys,t.setSelectedKeys),fb({validationBehavior:d,focus:()=>{var m;return(m=r.current)==null?void 0:m.focus()}},t,e.selectRef),{containerProps:{...g,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:u,autoComplete:i,disabled:a,"aria-invalid":p||void 0,"aria-required":h&&d==="aria"||void 0,required:h&&d==="native",name:s,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(m=>String(m)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:m=>{t.setSelectedKeys(m.target.value),c?.(m)}}}}function a3(e){var t;let{state:r,triggerRef:n,selectRef:o,label:i,name:s,isDisabled:a,form:l}=e,{containerProps:c,selectProps:u}=s3({...e,selectRef:o},r,n);return r.collection.size<=300?y.jsx("div",{...c,"data-testid":"hidden-select-container",children:y.jsxs("label",{children:[i,y.jsxs("select",{...u,ref:o,children:[y.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let h=r.collection.getItem(d);if(h?.type==="item")return y.jsx("option",{value:h.key,children:h.textValue},h.key)})]})]})}):s?y.jsx("input",{autoComplete:u.autoComplete,disabled:a,form:l,name:s,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}var l3=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},u3=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],c3=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},ty=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},gi=new WeakMap,Kt=[];function d3(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let h of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(h);let c=h=>{if(r.has(h)||h.parentElement&&n.has(h.parentElement)&&h.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let p of r)if(h.contains(p))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),d=c(l);if(d===NodeFilter.FILTER_ACCEPT&&i(l),d!==NodeFilter.FILTER_REJECT){let h=u.nextNode();for(;h!=null;)i(h),h=u.nextNode()}},i=l=>{var c;let u=(c=gi.get(l))!=null?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),n.add(l),gi.set(l,u+1))};Kt.length&&Kt[Kt.length-1].disconnect(),o(t);let s=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(r.delete(u),n.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?r.add(u):u instanceof Element&&o(u)}});s.observe(t,{childList:!0,subtree:!0});let a={visibleNodes:r,hiddenNodes:n,observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return Kt.push(a),()=>{s.disconnect();for(let l of n){let c=gi.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),gi.delete(l)):gi.set(l,c-1))}a===Kt[Kt.length-1]?(Kt.pop(),Kt.length&&Kt[Kt.length-1].observe()):Kt.splice(Kt.indexOf(a),1)}}function f3(e){let t=Kt[Kt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var p3=Nk,Pt=p3;const Bc=new WeakMap;function h3(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function m3(e,t){let r=Bc.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${h3(t)}`}function g3(e,t,r){let n=Wr(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:s}=e3({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:a}=ai({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Bt(e.id);Bc.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:u}=pb({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:ze(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...ze(u,s)})}}function v3(e,t,r){var n,o;let{key:i}=e,s=Bc.get(t);var a;let l=(a=e.isDisabled)!==null&&a!==void 0?a:t.selectionManager.isDisabled(i);var c;let u=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(i);var d;let h=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:s?.shouldSelectOnPressUp;var p;let g=(p=e.shouldFocusOnHover)!==null&&p!==void 0?p:s?.shouldFocusOnHover;var m;let x=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:s?.shouldUseVirtualFocus;var v;let $=(v=e.isVirtualized)!==null&&v!==void 0?v:s?.isVirtualized,S=xn(),C=xn(),T={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};Ur()&&Ru()||(T["aria-label"]=e["aria-label"],T["aria-labelledby"]=S,T["aria-describedby"]=C);let k=t.collection.getItem(i);if($){let P=Number(k?.index);T["aria-posinset"]=Number.isNaN(P)?void 0:P+1,T["aria-setsize"]=Bk(t.collection)}let D=s?.onAction?()=>{var P;return s==null||(P=s.onAction)===null||P===void 0?void 0:P.call(s,i)}:void 0,E=m3(t,i),{itemProps:V,isPressed:F,isFocused:b,hasAction:M,allowsSelection:A}=Qk({selectionManager:t.selectionManager,key:i,ref:r,shouldSelectOnPressUp:h,allowsDifferentPressOrigin:h&&g,isVirtualized:$,shouldUseVirtualFocus:x,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?wn(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:s?.linkBehavior,UNSTABLE_itemBehavior:s?.UNSTABLE_itemBehavior,id:E}),{hoverProps:I}=Xs({isDisabled:l||!g,onHoverStart(){Gs()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(i))}}),N=Wr(k?.props);delete N.id;let w=NT(k?.props);return{optionProps:{...T,...ze(N,V,I,w),id:E},labelProps:{id:S},descriptionProps:{id:C},isFocused:b,isFocusVisible:b&&t.selectionManager.isFocused&&Gs(),isSelected:u,isDisabled:l,isPressed:F,allowsSelection:A,hasAction:M}}function b3(e){let{heading:t,"aria-label":r}=e,n=Bt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function y3(e){var t;const r=gt(),{ref:n,as:o,state:i,variant:s,color:a,onAction:l,children:c,onSelectionChange:u,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:h,className:p,topContent:g,bottomContent:m,emptyContent:x="No items.",hideSelectedIcon:v=!1,hideEmptyContent:$=!1,shouldHighlightOnFocus:S=!1,classNames:C,...T}=e,k=o||"ul",D=typeof k=="string",E=er(n),V=f0({...e,children:c,onSelectionChange:u}),F=i||V,{listBoxProps:b}=g3({...e,onAction:l},F,E),M=f.useMemo(()=>Cx(),[]),A=Se(C?.base,p);return{Component:k,state:F,variant:s,color:a,slots:M,classNames:C,topContent:g,bottomContent:m,emptyContent:x,hideEmptyContent:$,shouldHighlightOnFocus:S,hideSelectedIcon:v,disableAnimation:d,className:p,itemClasses:h,getBaseProps:(P={})=>({ref:E,"data-slot":"base",className:M.base({class:A}),...Tt(T,{enabled:D}),...P}),getListProps:(P={})=>({"data-slot":"list",className:M.list({class:C?.list}),...b,...P}),getEmptyContentProps:(P={})=>({"data-slot":"empty-content",children:x,className:M.emptyContent({class:C?.emptyContent}),...P})}}function x3(e){const{isSelected:t,disableAnimation:r,...n}=e;return y.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:y.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var w3=700;function $3(){return Hn()||typeof window>"u"?!1:window.screen.width<=w3}function E3(e){var t,r;const n=gt(),[o,i]=qt(e,Yd.variantKeys),{as:s,item:a,state:l,description:c,startContent:u,endContent:d,isVirtualized:h,selectedIcon:p,className:g,classNames:m,autoFocus:x,onPress:v,onPressUp:$,onPressStart:S,onPressEnd:C,onPressChange:T,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:E=!1,isReadOnly:V=!1,...F}=o,b=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=f.useRef(null),A=s||(e.href?"a":"li"),I=typeof A=="string",{rendered:N,key:w}=a,P=l.disabledKeys.has(w)||e.isDisabled,_=l.selectionManager.selectionMode!=="none",B=$3(),{pressProps:L,isPressed:K}=Ir({ref:M,isDisabled:P,onClick:k,onPress:v,onPressUp:$,onPressStart:S,onPressEnd:C,onPressChange:T}),{isHovered:z,hoverProps:W}=Xs({isDisabled:P}),{isFocusVisible:U,focusProps:ee}=So({autoFocus:x}),{isFocused:Z,isSelected:R,optionProps:he,labelProps:fe,descriptionProps:Q}=v3({key:w,isDisabled:P,"aria-label":o["aria-label"],isVirtualized:h},l,M);let se=he;const q=f.useMemo(()=>Yd({...i,isDisabled:P,disableAnimation:b,hasTitleTextChild:typeof N=="string",hasDescriptionTextChild:typeof c=="string"}),[yn(i),P,b,N,c]),Y=Se(m?.base,g);V&&(se=lT(se));const de=D&&Z||(B?z||K:z||Z&&!U),ae=(te={})=>({ref:M,...Ve(se,V?{}:Ve(ee,L),W,Tt(F,{enabled:I}),te),"data-selectable":ve(_),"data-focus":ve(Z),"data-hover":ve(de),"data-disabled":ve(P),"data-selected":ve(R),"data-pressed":ve(K),"data-focus-visible":ve(U),className:q.base({class:Se(Y,te.className)})}),ie=(te={})=>({...Ve(fe,te),"data-label":ve(!0),className:q.title({class:m?.title})}),we=(te={})=>({...Ve(Q,te),className:q.description({class:m?.description})}),De=(te={})=>({...Ve(te),className:q.wrapper({class:m?.wrapper})}),xe=f.useCallback((te={})=>({"aria-hidden":ve(!0),"data-disabled":ve(P),className:q.selectedIcon({class:m?.selectedIcon}),...te}),[P,q,m]);return{Component:A,domRef:M,slots:q,classNames:m,isSelectable:_,isSelected:R,isDisabled:P,rendered:N,description:c,startContent:u,endContent:d,selectedIcon:p,hideSelectedIcon:E,disableAnimation:b,getItemProps:ae,getLabelProps:ie,getWrapperProps:De,getDescriptionProps:we,getSelectedIconProps:xe}}var ry=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:i,isDisabled:s,selectedIcon:a,startContent:l,endContent:c,hideSelectedIcon:u,disableAnimation:d,getItemProps:h,getLabelProps:p,getWrapperProps:g,getDescriptionProps:m,getSelectedIconProps:x}=E3(e),v=f.useMemo(()=>{const $=y.jsx(x3,{disableAnimation:d,isSelected:i});return typeof a=="function"?a({icon:$,isSelected:i,isDisabled:s}):a||$},[a,i,s,d]);return y.jsxs(t,{...h(),children:[l,n?y.jsxs("div",{...g(),children:[y.jsx("span",{...p(),children:r}),y.jsx("span",{...m(),children:n})]}):y.jsx("span",{...p(),children:r}),o&&!u&&y.jsx("span",{...x(),children:v}),c]})};ry.displayName="HeroUI.ListboxItem";var Rc=ry;function P3(e){let t=Tt(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function S3(e){const{as:t,className:r,orientation:n,...o}=e;let i=t||"hr";i==="hr"&&n==="vertical"&&(i="div");const{separatorProps:s}=P3({elementType:typeof i=="string"?i:"hr",orientation:n}),a=f.useMemo(()=>Jd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...s,...o,...c}),[a,n,s,o]);return{Component:i,getDividerProps:l}}function ny(e){return f.forwardRef(e)}var C3=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,i)=>i in e?{...o,[i]:e[i]}:o,{});return r?[Object.keys(e).filter(i=>!t.includes(i)).reduce((i,s)=>({...i,[s]:e[s]}),{}),n]:[e,n]},oy=ny((e,t)=>{const{Component:r,getDividerProps:n}=S3({...e});return y.jsx(r,{ref:t,...n()})});oy.displayName="HeroUI.Divider";var T3=oy,iy=Re(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:i,className:s,classNames:a,hideSelectedIcon:l,showDivider:c=!1,dividerProps:u={},itemClasses:d,title:h,items:p,...g},m)=>{const x=r||"li",v=f.useMemo(()=>Tx(),[]),$=Se(a?.base,s),S=Se(a?.divider,u?.className),{itemProps:C,headingProps:T,groupProps:k}=b3({heading:e.rendered,"aria-label":e["aria-label"]});return y.jsxs(x,{"data-slot":"base",...Ve(C,g),className:v.base({class:$}),children:[e.rendered&&y.jsx("span",{...T,className:v.heading({class:a?.heading}),"data-slot":"heading",children:e.rendered}),y.jsxs("ul",{...k,className:v.group({class:a?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:E,props:V}=D;let F=y.jsx(Rc,{classNames:d,color:o,disableAnimation:i,hideSelectedIcon:l,item:D,state:t,variant:n,...V},E);return D.wrapper&&(F=D.wrapper(F)),F}),c&&y.jsx(T3,{as:"li",className:v.divider({class:S}),...u})]})]},e.key)});iy.displayName="HeroUI.ListboxSection";var sy=iy;function To(e,t,r){let n=r.initialDeps??[],o;return()=>{var i,s,a,l;let c;r.key&&((i=r.debug)!=null&&i.call(r))&&(c=Date.now());const u=e();if(!(u.length!==n.length||u.some((p,g)=>n[g]!==p)))return o;n=u;let h;if(r.key&&((s=r.debug)!=null&&s.call(r))&&(h=Date.now()),o=t(...u),r.key&&((a=r.debug)!=null&&a.call(r))){const p=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-h)*100)/100,m=g/16,x=(v,$)=>{for(v=String(v);v.length<$;)v=" "+v;return v};console.info(`%c⏱ ${x(g,5)} /${x(p,5)} ms`,`
|
|
446
|
+
}`.trim(),document.head.prepend(n);let o=l=>{if(!(l.touches.length===2||t)){if(!e||e===document.documentElement||e===document.body){l.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&l.preventDefault()}},s=l=>{let c=l.target,u=l.relatedTarget;if(u&&ml(u))u.focus({preventScroll:!0}),Rg(u,ml(c));else if(!u){var d;let p=(d=c.parentElement)===null||d===void 0?void 0:d.closest("[tabindex]");p?.focus({preventScroll:!0})}},i=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(l){let c=document.activeElement!=null&&ml(document.activeElement);i.call(this,{...l,preventScroll:!0}),(!l||!l.preventScroll)&&Rg(this,c)};let a=an(pc(document,"touchstart",r,{passive:!1,capture:!0}),pc(document,"touchmove",o,{passive:!1,capture:!0}),pc(document,"blur",s,!0));return()=>{a(),n.remove(),HTMLElement.prototype.focus=i}}function fc(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function pc(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function Rg(e,t){t||!is?Kg(e):is.addEventListener("resize",()=>Kg(e),{once:!0})}function Kg(e){let t=document.scrollingElement||document.documentElement,r=e;for(;r&&r!==t;){let n=Qf(r);if(n!==document.documentElement&&n!==document.body&&n!==r){let o=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(s.top<o.top||s.bottom>o.top+r.clientHeight){let i=o.bottom;is&&(i=Math.min(i,is.offsetTop+is.height));let a=s.top-o.top-((i-o.top)/2-s.height/2);n.scrollTo({top:Math.max(0,Math.min(n.scrollHeight-n.clientHeight,n.scrollTop+a)),behavior:"smooth"})}}r=n.parentElement}}const E4=f.createContext({});function P4(){var e;return(e=f.useContext(E4))!==null&&e!==void 0?e:{}}var Wg={};Wg={dismiss:"تجاهل"};var Ug={};Ug={dismiss:"Отхвърляне"};var Hg={};Hg={dismiss:"Odstranit"};var Gg={};Gg={dismiss:"Luk"};var Zg={};Zg={dismiss:"Schließen"};var qg={};qg={dismiss:"Απόρριψη"};var Yg={};Yg={dismiss:"Dismiss"};var Xg={};Xg={dismiss:"Descartar"};var Jg={};Jg={dismiss:"Lõpeta"};var Qg={};Qg={dismiss:"Hylkää"};var ev={};ev={dismiss:"Rejeter"};var tv={};tv={dismiss:"התעלם"};var rv={};rv={dismiss:"Odbaci"};var nv={};nv={dismiss:"Elutasítás"};var ov={};ov={dismiss:"Ignora"};var sv={};sv={dismiss:"閉じる"};var iv={};iv={dismiss:"무시"};var av={};av={dismiss:"Atmesti"};var lv={};lv={dismiss:"Nerādīt"};var uv={};uv={dismiss:"Lukk"};var cv={};cv={dismiss:"Negeren"};var dv={};dv={dismiss:"Zignoruj"};var fv={};fv={dismiss:"Descartar"};var pv={};pv={dismiss:"Dispensar"};var hv={};hv={dismiss:"Revocare"};var mv={};mv={dismiss:"Пропустить"};var gv={};gv={dismiss:"Zrušiť"};var vv={};vv={dismiss:"Opusti"};var bv={};bv={dismiss:"Odbaci"};var yv={};yv={dismiss:"Avvisa"};var xv={};xv={dismiss:"Kapat"};var wv={};wv={dismiss:"Скасувати"};var $v={};$v={dismiss:"取消"};var Ev={};Ev={dismiss:"關閉"};var Pv={};Pv={"ar-AE":Wg,"bg-BG":Ug,"cs-CZ":Hg,"da-DK":Gg,"de-DE":Zg,"el-GR":qg,"en-US":Yg,"es-ES":Xg,"et-EE":Jg,"fi-FI":Qg,"fr-FR":ev,"he-IL":tv,"hr-HR":rv,"hu-HU":nv,"it-IT":ov,"ja-JP":sv,"ko-KR":iv,"lt-LT":av,"lv-LV":lv,"nb-NO":uv,"nl-NL":cv,"pl-PL":dv,"pt-BR":fv,"pt-PT":pv,"ro-RO":hv,"ru-RU":mv,"sk-SK":gv,"sl-SI":vv,"sr-SP":bv,"sv-SE":yv,"tr-TR":xv,"uk-UA":wv,"zh-CN":$v,"zh-TW":Ev};const Cv={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Sv(e={}){let{style:t,isFocusable:r}=e,[n,o]=f.useState(!1),{focusWithinProps:s}=Hr({isDisabled:!r,onFocusWithinChange:a=>o(a)}),i=f.useMemo(()=>n?t:t?{...Cv,...t}:Cv,[n]);return{visuallyHiddenProps:{...s,style:i}}}function Tv(e){let{children:t,elementType:r="div",isFocusable:n,style:o,...s}=e,{visuallyHiddenProps:i}=Sv(e);return f.createElement(r,_e(s,i),t)}function C4(e){return e&&e.__esModule?e.default:e}function Qi(e){let{onDismiss:t,...r}=e,n=jg(C4(Pv),"@react-aria/overlays"),o=hl(r,n.format("dismiss")),s=()=>{t&&t()};return f.createElement(Tv,null,f.createElement("button",{...o,tabIndex:-1,onClick:s,style:{width:1,height:1}}))}const S4=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let as=new WeakMap,er=[];function T4(e,t){let r=Ot(e?.[0]),n=t instanceof r.Element?{root:t}:t;var o;let s=(o=n?.root)!==null&&o!==void 0?o:document.body,i=n?.shouldUseInert&&S4,a=new Set(e),l=new Set,c=m=>i&&m instanceof r.HTMLElement?m.inert:m.getAttribute("aria-hidden")==="true",u=(m,x)=>{i&&m instanceof r.HTMLElement?m.inert=x:x?m.setAttribute("aria-hidden","true"):(m.removeAttribute("aria-hidden"),m instanceof r.HTMLElement&&(m.inert=!1))},d=m=>{for(let C of m.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(C);let x=C=>{if(l.has(C)||a.has(C)||C.parentElement&&l.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let E of a)if(C.contains(E))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},v=document.createTreeWalker(m,NodeFilter.SHOW_ELEMENT,{acceptNode:x}),$=x(m);if($===NodeFilter.FILTER_ACCEPT&&p(m),$!==NodeFilter.FILTER_REJECT){let C=v.nextNode();for(;C!=null;)p(C),C=v.nextNode()}},p=m=>{var x;let v=(x=as.get(m))!==null&&x!==void 0?x:0;c(m)&&v===0||(v===0&&u(m,!0),l.add(m),as.set(m,v+1))};er.length&&er[er.length-1].disconnect(),d(s);let h=new MutationObserver(m=>{for(let x of m)if(x.type==="childList"&&![...a,...l].some(v=>v.contains(x.target)))for(let v of x.addedNodes)(v instanceof HTMLElement||v instanceof SVGElement)&&(v.dataset.liveAnnouncer==="true"||v.dataset.reactAriaTopLayer==="true")?a.add(v):v instanceof Element&&d(v)});h.observe(s,{childList:!0,subtree:!0});let g={visibleNodes:a,hiddenNodes:l,observe(){h.observe(s,{childList:!0,subtree:!0})},disconnect(){h.disconnect()}};return er.push(g),()=>{h.disconnect();for(let m of l){let x=as.get(m);x!=null&&(x===1?(u(m,!1),as.delete(m)):as.set(m,x-1))}g===er[er.length-1]?(er.pop(),er.length&&er[er.length-1].observe()):er.splice(er.indexOf(g),1)}}const kv=f.createContext(null);function Iv(e){let t=ro(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[o,s]=f.useState(!1),i=f.useMemo(()=>({contain:o,setContain:s}),[o,s]),{getContainer:a}=P4();if(!e.portalContainer&&a&&(r=a()),!r)return null;let l=e.children;return e.disableFocusManagement||(l=f.createElement(US,{restoreFocus:!0,contain:(e.shouldContainFocus||o)&&!n},l)),l=f.createElement(kv.Provider,{value:i},f.createElement(BS,null,l)),Wn.createPortal(l,r)}function _v(){let e=f.useContext(kv),t=e?.setContain;Be(()=>{t?.(!0)},[t])}function Mv(e,t){let{role:r="dialog"}=e,n=sn();n=e["aria-label"]?void 0:n;let o=f.useRef(!1);return f.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){$n(t.current);let s=setTimeout(()=>{(document.activeElement===t.current||document.activeElement===document.body)&&(o.current=!0,t.current&&(t.current.blur(),$n(t.current)),o.current=!1)},500);return()=>{clearTimeout(s)}}},[t]),_v(),{dialogProps:{...cr(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:s=>{o.current&&s.stopPropagation()}},titleProps:{id:n}}}var vr=typeof document<"u"&&window.visualViewport,k4=f.createContext(!1);function I4(){return!1}function _4(){return!0}function M4(e){return()=>{}}function D4(){return typeof f.useSyncExternalStore=="function"?f.useSyncExternalStore(M4,I4,_4):f.useContext(k4)}function A4(){let e=D4(),[t,r]=f.useState(()=>e?{width:0,height:0}:Dv());return f.useEffect(()=>{let n=()=>{r(o=>{let s=Dv();return s.width===o.width&&s.height===o.height?o:s})};return vr?vr.addEventListener("resize",n):window.addEventListener("resize",n),()=>{vr?vr.removeEventListener("resize",n):window.removeEventListener("resize",n)}},[]),t}function Dv(){return{width:vr&&vr?.width||window.innerWidth,height:vr&&vr?.height||window.innerHeight}}var Av=()=>Promise.resolve().then(()=>Ps).then(e=>e.default),Nv=e=>{const{as:t,children:r,role:n="dialog",...o}=e,{Component:s,domRef:i,slots:a,classNames:l,motionProps:c,backdrop:u,closeButton:d,hideCloseButton:p,disableAnimation:h,getDialogProps:g,getBackdropProps:m,getCloseButtonProps:x,onClose:v}=qi(),$=t||s||"div",C=A4(),{dialogProps:E}=Mv({role:n},i),T=f.isValidElement(d)?f.cloneElement(d,x()):b.jsx("button",{...x(),children:b.jsx(lg,{})}),k=f.useCallback(M=>{M.key==="Tab"&&M.nativeEvent.isComposing&&(M.stopPropagation(),M.preventDefault())},[]),D=g(Ve(E,o)),P=b.jsxs($,{...D,onKeyDown:Zi(D.onKeyDown,k),children:[b.jsx(Qi,{onDismiss:v}),!p&&T,typeof r=="function"?r(v):r,b.jsx(Qi,{onDismiss:v})]}),V=f.useMemo(()=>u==="transparent"?null:h?b.jsx("div",{...m()}):b.jsx(gn,{features:Av,children:b.jsx(vn.div,{animate:"enter",exit:"exit",initial:"exit",variants:oc.fade,...m()})}),[u,h,m]),F={"--visual-viewport-height":C.height+"px"},y=h?b.jsx("div",{className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",style:F,children:P}):b.jsx(gn,{features:Av,children:b.jsx(vn.div,{animate:"enter",className:a.wrapper({class:l?.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:t4,...c,style:F,children:P})});return b.jsxs("div",{tabIndex:-1,children:[V,y]})};Nv.displayName="HeroUI.ModalContent";var N4=Nv,Ov=Re((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:i,classNames:a}=qi(),l=Rt(t),c=r||"footer";return b.jsx(c,{ref:l,className:i.footer({class:Pe(a?.footer,o)}),...s,children:n})});Ov.displayName="HeroUI.ModalFooter";var O4=Ov,Lv=Re((e,t)=>{const{as:r,children:n,className:o,...s}=e,{slots:i,classNames:a,headerId:l,setHeaderMounted:c}=qi(),u=Rt(t),d=r||"header";return f.useEffect(()=>(c(!0),()=>c(!1)),[c]),b.jsx(d,{ref:u,className:i.header({class:Pe(a?.header,o)}),id:l,...s,children:n})});Lv.displayName="HeroUI.ModalHeader";var L4=Lv,br=[];function Fv(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:s,onClose:i,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(s&&!br.includes(t))return br.push(t),()=>{let x=br.indexOf(t);x>=0&&br.splice(x,1)}},[s,t]);const c=()=>{br[br.length-1]===t&&i&&i()},u=x=>{(!l||l(x.target))&&(br[br.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),m(t)!=="pressEnd"&&c())},d=x=>{(!l||l(x.target))&&(br[br.length-1]===t&&r&&(x.stopPropagation(),x.preventDefault()),c())},p=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),c())};KS({isDisabled:!(n&&s),onInteractOutside:n&&s?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:h}=Hr({isDisabled:!a,onBlurWithin:x=>{!x.relatedTarget||qS(x.relatedTarget)||(!l||l(x.relatedTarget))&&c()}}),g=x=>{x.target===x.currentTarget&&x.preventDefault()};function m(x){const v=x.current;if(!v)return"unknown";const $=(v.getAttribute("role")||"").toLowerCase(),C=v.getAttribute("aria-modal");return($==="dialog"||$==="alertdialog")&&(C===null||C.toLowerCase()==="true")?"pressEnd":["listbox","menu","tree","grid","combobox"].includes($)?"pressStart":"unknown"}return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:g}}}function F4(e={shouldBlockScroll:!0},t,r){let{overlayProps:n,underlayProps:o}=Fv({...e,isOpen:t.isOpen,onClose:t.close},r);return dc({isDisabled:!t.isOpen||!e.shouldBlockScroll}),_v(),f.useEffect(()=>{if(t.isOpen&&r.current)return T4([r.current])},[t.isOpen,r]),{modalProps:_e(n),underlayProps:o}}function hc(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:s,onPressEnd:i,onPressUp:a,onPressChange:l,preventFocusOnPress:c,allowFocusWhenDisabled:u,onClick:d,href:p,target:h,rel:g,type:m="button",allowTextSelectionOnPress:x}=e,v;r==="button"?v={type:m,disabled:n}:v={role:"button",href:r==="a"&&!n?p:void 0,target:r==="a"?h:void 0,type:r==="input"?m:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?g:void 0};let{pressProps:$,isPressed:C}=hr({onClick:d,onPressStart:s,onPressEnd:i,onPressUp:a,onPressChange:l,onPress:o,isDisabled:n,preventFocusOnPress:c,allowTextSelectionOnPress:x,ref:t}),{focusableProps:E}=En(e,t);u&&(E.tabIndex=n?-1:E.tabIndex);let T=_e(E,$,cr(e,{labelable:!0}));return{isPressed:C,buttonProps:_e(v,T,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],"aria-current":e["aria-current"]})}}function ea(e){let[t,r]=Cr(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=f.useCallback(()=>{r(!0)},[r]),o=f.useCallback(()=>{r(!1)},[r]),s=f.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:o,toggle:s}}function V4(e){var t,r,n;const o=gt(),[s,i]=Bt(e,Kd.variantKeys),{ref:a,as:l,className:c,classNames:u,isOpen:d,defaultOpen:p,onOpenChange:h,motionProps:g,closeButton:m,isDismissable:x=!0,hideCloseButton:v=!1,shouldBlockScroll:$=!0,portalContainer:C,isKeyboardDismissDisabled:E=!1,onClose:T,...k}=s,D=l||"section",P=Rt(a),V=f.useRef(null),[F,y]=f.useState(!1),[M,A]=f.useState(!1),I=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,N=f.useId(),w=f.useId(),S=f.useId(),_=ea({isOpen:d,defaultOpen:p,onOpenChange:ue=>{h?.(ue),ue||T?.()}}),{modalProps:B,underlayProps:L}=F4({isDismissable:x,shouldBlockScroll:$,isKeyboardDismissDisabled:E},_,P),{buttonProps:K}=hc({onPress:_.close},V),{isFocusVisible:z,focusProps:W}=Sn(),U=Pe(u?.base,c),ee=f.useMemo(()=>Kd({...i,disableAnimation:I}),[qr(i),I]),G=(ue={},Q=null)=>{var ie;return{ref:nc(Q,P),...Ve(B,k,ue),className:ee.base({class:Pe(U,ue.className)}),id:N,"data-open":he(_.isOpen),"data-dismissable":he(x),"aria-modal":he(!0),"data-placement":(ie=e?.placement)!=null?ie:"right","aria-labelledby":F?w:void 0,"aria-describedby":M?S:void 0}},R=f.useCallback((ue={})=>({className:ee.backdrop({class:u?.backdrop}),...L,...ue}),[ee,u,L]),me=()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":he(z),className:ee.closeButton({class:u?.closeButton}),...Ve(K,W)});return{Component:D,slots:ee,domRef:P,headerId:w,bodyId:S,motionProps:g,classNames:u,isDismissable:x,closeButton:m,hideCloseButton:v,portalContainer:C,shouldBlockScroll:$,backdrop:(n=e.backdrop)!=null?n:"opaque",isOpen:_.isOpen,onClose:_.close,disableAnimation:I,setBodyMounted:A,setHeaderMounted:y,getDialogProps:G,getBackdropProps:R,getCloseButtonProps:me}}var Vv=Re((e,t)=>{const{children:r,...n}=e,o=V4({...n,ref:t}),s=b.jsx(Iv,{portalContainer:o.portalContainer,children:r});return b.jsx(QT,{value:o,children:o.disableAnimation&&o.isOpen?s:b.jsx(Zo,{children:o.isOpen?s:null})})});Vv.displayName="HeroUI.Modal";var j4=Vv,Mn=globalThis?.document?f.useLayoutEffect:f.useEffect;function z4(e,t=[]){const r=f.useRef(e);return Mn(()=>{r.current=e}),f.useCallback((...n)=>{var o;return(o=r.current)==null?void 0:o.call(r,...n)},t)}function jv({filterOptions:e,activeFilters:t,onFilterChange:r,classNames:n}){const[o,s]=f.useState(!1),i=f.useMemo(()=>t.reduce((a,l)=>{const c=qn(e,l.slug);return!c||c.type==="hidden"||l.slug==="sorteren"?a:a+1},0),[t,e]);return b.jsxs(b.Fragment,{children:[b.jsxs(rs,{className:j("group gap-1 border-primary-600 text-primary-600 hover:bg-primary-600 hover:text-white transition-colors leading-none font-semibold text-base",n?.button),variant:"bordered",color:"primary",radius:"full",fullWidth:!0,disableAnimation:!0,disableRipple:!0,onPress:()=>s(!0),startContent:b.jsx(fg,{size:16,className:"stroke-primary-600 group-hover:stroke-white"}),children:["Filters",i>0&&` (${i})`]}),b.jsx(j4,{isOpen:o,onOpenChange:s,placement:"bottom-center",scrollBehavior:"inside",portalContainer:document.getElementsByClassName("mobielnl-elements")[0],classNames:{backdrop:j(n?.modal?.backdrop),wrapper:j(n?.modal?.wrapper),base:j(n?.modal?.base),header:j("flex items-center gap-1 text-foreground",n?.modal?.header),body:j(n?.modal?.body),footer:j(n?.modal?.footer),closeButton:j("cursor-pointer right-6 top-3.5 text-foreground hover:bg-foreground-50 active:bg-foreground-50",n?.modal?.closeButton)},children:b.jsx(N4,{children:a=>b.jsxs(b.Fragment,{children:[b.jsxs(L4,{children:[b.jsx(fg,{size:20,className:"stroke-foreground"}),"Filters"]}),b.jsx(e4,{children:b.jsx(Cc,{filterOptions:e,activeFilters:t,onFilterChange:r,classNames:n?.filters})}),b.jsx(O4,{children:b.jsx(rs,{className:j("bg-primary-600 text-base font-medium",n?.modal?.primaryButton),color:"primary",variant:"solid",radius:"full",onPress:a,fullWidth:!0,disableAnimation:!0,children:"Toon resultaten"})})]})})})]})}const mc=new WeakMap;function gc(e,t){let r=mc.get(e);if(!r)throw new Error("Unknown slider state");return`${r.id}-${t}`}function vc(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:s="label"}=e;t=Nt(t);let i=Nt(),a={};r?(n=n?`${i} ${n}`:i,a={id:i,htmlFor:s==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=hl({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function zv(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:s,fieldProps:i}=vc(e),a=sn([!!t,!!r,n,o]),l=sn([!!t,!!r,n,o]);return i=_e(i,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:l}}}function B4(e,t,r){let{labelProps:n,fieldProps:o}=vc(e),s=e.orientation==="vertical";var i;mc.set(t,{id:(i=n.id)!==null&&i!==void 0?i:o.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:a}=jo(),{addGlobalListener:l,removeGlobalListener:c}=cn();const u=f.useRef(null),d=a==="rtl",p=f.useRef(null),{moveProps:h}=Nm({onMoveStart(){p.current=null},onMove({deltaX:v,deltaY:$}){if(!r.current)return;let{height:C,width:E}=r.current.getBoundingClientRect(),T=s?C:E;p.current==null&&u.current!=null&&(p.current=t.getThumbPercent(u.current)*T);let k=s?$:v;if((s||d)&&(k=-k),p.current+=k,u.current!=null&&r.current){const D=Sr(p.current/T,0,1);t.setThumbPercent(u.current,D)}},onMoveEnd(){u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null)}});let g=f.useRef(void 0),m=(v,$,C,E)=>{if(r.current&&!e.isDisabled&&t.values.every((T,k)=>!t.isThumbDragging(k))){let{height:T,width:k,top:D,left:P}=r.current.getBoundingClientRect(),V=s?T:k,A=((s?E:C)-(s?D:P))/V;(a==="rtl"||s)&&(A=1-A);let I=t.getPercentValue(A),N,w=t.values.findIndex(S=>I-S<0);if(w===0)N=w;else if(w===-1)N=t.values.length-1;else{let S=t.values[w-1],_=t.values[w];Math.abs(S-I)<Math.abs(_-I)?N=w-1:N=w}N>=0&&t.isThumbEditable(N)?(v.preventDefault(),u.current=N,t.setFocusedThumb(N),g.current=$,t.setThumbDragging(u.current,!0),t.setThumbValue(N,I),l(window,"mouseup",x,!1),l(window,"touchend",x,!1),l(window,"pointerup",x,!1)):u.current=null}},x=v=>{var $,C;((C=v.pointerId)!==null&&C!==void 0?C:($=v.changedTouches)===null||$===void 0?void 0:$[0].identifier)===g.current&&(u.current!=null&&(t.setThumbDragging(u.current,!1),u.current=null),c(window,"mouseup",x,!1),c(window,"touchend",x,!1),c(window,"pointerup",x,!1))};return"htmlFor"in n&&n.htmlFor&&(delete n.htmlFor,n.onClick=()=>{var v;(v=document.getElementById(gc(t,0)))===null||v===void 0||v.focus(),Oi("keyboard")}),{labelProps:n,groupProps:{role:"group",...o},trackProps:_e({onMouseDown(v){v.button!==0||v.altKey||v.ctrlKey||v.metaKey||m(v,void 0,v.clientX,v.clientY)},onPointerDown(v){v.pointerType==="mouse"&&(v.button!==0||v.altKey||v.ctrlKey||v.metaKey)||m(v,v.pointerId,v.clientX,v.clientY)},onTouchStart(v){m(v,v.changedTouches[0].identifier,v.changedTouches[0].clientX,v.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},h),outputProps:{htmlFor:t.values.map((v,$)=>gc(t,$)).join(" "),"aria-live":"off"}}}function R4(e,t){let{index:r=0,isRequired:n,validationState:o,isInvalid:s,trackRef:i,inputRef:a,orientation:l=t.orientation,name:c,form:u}=e,d=e.isDisabled||t.isDisabled,p=l==="vertical",{direction:h}=jo(),{addGlobalListener:g,removeGlobalListener:m}=cn(),x=mc.get(t);var v;const{labelProps:$,fieldProps:C}=vc({...e,id:gc(t,r),"aria-labelledby":`${x.id} ${(v=e["aria-labelledby"])!==null&&v!==void 0?v:""}`.trim()}),E=t.values[r],T=f.useCallback(()=>{a.current&&Yt(a.current)},[a]),k=t.focusedThumb===r;f.useEffect(()=>{k&&T()},[k,T]);let D=h==="rtl",P=f.useRef(null),{keyboardProps:V}=Dm({onKeyDown(S){let{getThumbMaxValue:_,getThumbMinValue:B,decrementThumb:L,incrementThumb:K,setThumbValue:z,setThumbDragging:W,pageSize:U}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(S.key)){S.continuePropagation();return}switch(S.preventDefault(),W(r,!0),S.key){case"PageUp":K(r,U);break;case"PageDown":L(r,U);break;case"Home":z(r,B(r));break;case"End":z(r,_(r));break}W(r,!1)}}),{moveProps:F}=Nm({onMoveStart(){P.current=null,t.setThumbDragging(r,!0)},onMove({deltaX:S,deltaY:_,pointerType:B,shiftKey:L}){const{getThumbPercent:K,setThumbPercent:z,decrementThumb:W,incrementThumb:U,step:ee,pageSize:G}=t;if(!i.current)return;let{width:R,height:me}=i.current.getBoundingClientRect(),ue=p?me:R;if(P.current==null&&(P.current=K(r)*ue),B==="keyboard")S>0&&D||S<0&&!D||_>0?W(r,L?G:ee):U(r,L?G:ee);else{let Q=p?_:S;(p||D)&&(Q=-Q),P.current+=Q,z(r,Sr(P.current/ue,0,1))}},onMoveEnd(){t.setThumbDragging(r,!1)}});t.setThumbEditable(r,!d);const{focusableProps:y}=En(_e(e,{onFocus:()=>t.setFocusedThumb(r),onBlur:()=>t.setFocusedThumb(void 0)}),a);let M=f.useRef(void 0),A=S=>{T(),M.current=S,t.setThumbDragging(r,!0),g(window,"mouseup",I,!1),g(window,"touchend",I,!1),g(window,"pointerup",I,!1)},I=S=>{var _,B;((B=S.pointerId)!==null&&B!==void 0?B:(_=S.changedTouches)===null||_===void 0?void 0:_[0].identifier)===M.current&&(T(),t.setThumbDragging(r,!1),m(window,"mouseup",I,!1),m(window,"touchend",I,!1),m(window,"pointerup",I,!1))},N=t.getThumbPercent(r);(p||h==="rtl")&&(N=1-N);let w=d?{}:_e(V,F,{onMouseDown:S=>{S.button!==0||S.altKey||S.ctrlKey||S.metaKey||A()},onPointerDown:S=>{S.button!==0||S.altKey||S.ctrlKey||S.metaKey||A(S.pointerId)},onTouchStart:S=>{A(S.changedTouches[0].identifier)}});return ri(a,t.defaultValues[r],S=>{t.setThumbValue(r,S)}),{inputProps:_e(y,C,{type:"range",tabIndex:d?void 0:0,min:t.getThumbMinValue(r),max:t.getThumbMaxValue(r),step:t.step,value:E,name:c,form:u,disabled:d,"aria-orientation":l,"aria-valuetext":t.getThumbValueLabel(r),"aria-required":n||void 0,"aria-invalid":s||o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[x["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[x["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:S=>{t.setThumbValue(r,parseFloat(S.target.value))}}),thumbProps:{...w,style:{position:"absolute",[p?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:$,isDragging:t.isThumbDragging(r),isDisabled:d,isFocused:k}}function K4(e){const{ref:t,as:r,state:n,index:o,name:s,trackRef:i,className:a,tooltipProps:l,isVertical:c,showTooltip:u,getTooltipValue:d,formatOptions:p,renderThumb:h,...g}=e,m=r||"div",x=zt(t),v=f.useRef(null),$=ip(p),{thumbProps:C,inputProps:E,isDragging:T,isFocused:k}=R4({index:o,trackRef:i,inputRef:v,name:s,...g},n),{hoverProps:D,isHovered:P}=kn({isDisabled:n.isDisabled}),{focusProps:V,isFocusVisible:F}=In(),{pressProps:y,isPressed:M}=Ki({isDisabled:n.isDisabled});return{Component:m,index:o,showTooltip:u,renderThumb:h,getThumbProps:(w={})=>({ref:x,"data-slot":"thumb","data-hover":pe(P),"data-pressed":pe(M),"data-dragging":pe(T),"data-focused":pe(k),"data-focus-visible":pe(F),"aria-label":w["aria-label"]||`Slider thumb ${o!==void 0?`${o+1}`:""}`,...mt(C,y,D,g),className:a,...w}),getTooltipProps:()=>{const w=l?.content?l.content:d?n.values.length===1?d(n.values[o??0]):d(n.values,o??0):n.values[o??0],S=$&&typeof w=="number"?$.format(w):w;return{...l,placement:l?.placement?l?.placement:c?"right":"top",content:l?.content?l?.content:S,updatePositionDeps:[T,P,k,F,S],isOpen:l?.isOpen!==void 0?l?.isOpen:P||T||k||F,role:"tooltip","aria-label":`Current value: ${S}`}},getInputProps:(w={})=>({ref:v,...mt(E,V),...w})}}const W4=1500,Bv=500;let Dn={},U4=0,ls=!1,Mr=null,An=null;function H4(e={}){let{delay:t=W4,closeDelay:r=Bv}=e,{isOpen:n,open:o,close:s}=ea(e),i=f.useMemo(()=>`${++U4}`,[]),a=f.useRef(null),l=f.useRef(s),c=()=>{Dn[i]=p},u=()=>{for(let g in Dn)g!==i&&(Dn[g](!0),delete Dn[g])},d=()=>{a.current&&clearTimeout(a.current),a.current=null,u(),c(),ls=!0,o(),Mr&&(clearTimeout(Mr),Mr=null),An&&(clearTimeout(An),An=null)},p=g=>{g||r<=0?(a.current&&clearTimeout(a.current),a.current=null,l.current()):a.current||(a.current=setTimeout(()=>{a.current=null,l.current()},r)),Mr&&(clearTimeout(Mr),Mr=null),ls&&(An&&clearTimeout(An),An=setTimeout(()=>{delete Dn[i],An=null,ls=!1},Math.max(Bv,r)))},h=()=>{u(),c(),!n&&!Mr&&!ls?Mr=setTimeout(()=>{Mr=null,ls=!0,d()},t):n||d()};return f.useEffect(()=>{l.current=s},[s]),f.useEffect(()=>()=>{a.current&&clearTimeout(a.current),Dn[i]&&delete Dn[i]},[i]),{isOpen:n,open:g=>{!g&&t>0&&!a.current?h():d()},close:p}}function G4(e,t){let r=cr(e,{labelable:!0}),{hoverProps:n}=Pn({onHoverStart:()=>t?.open(!0),onHoverEnd:()=>t?.close()});return{tooltipProps:_e(r,n,{role:"tooltip"})}}function Z4(e,t,r){let{isDisabled:n,trigger:o}=e,s=Nt(),i=f.useRef(!1),a=f.useRef(!1),l=()=>{(i.current||a.current)&&t.open(a.current)},c=v=>{!i.current&&!a.current&&t.close(v)};f.useEffect(()=>{let v=$=>{r&&r.current&&$.key==="Escape"&&($.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",v,!0),()=>{document.removeEventListener("keydown",v,!0)}},[r,t]);let u=()=>{o!=="focus"&&(es()==="pointer"?i.current=!0:i.current=!1,l())},d=()=>{o!=="focus"&&(a.current=!1,i.current=!1,c())},p=()=>{a.current=!1,i.current=!1,c(!0)},h=()=>{Eo()&&(a.current=!0,l())},g=()=>{a.current=!1,i.current=!1,c(!0)},{hoverProps:m}=Pn({isDisabled:n,onHoverStart:u,onHoverEnd:d}),{focusableProps:x}=En({isDisabled:n,onFocus:h,onBlur:g},r);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,..._e(x,m,{onPointerDown:p,onKeyDown:p,tabIndex:void 0})},tooltipProps:{id:s}}}var q4=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},Y4=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],Rv=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},yr=[];function X4(e,t){const{disableOutsideEvents:r=!0,isDismissable:n=!1,isKeyboardDismissDisabled:o=!1,isOpen:s,onClose:i,shouldCloseOnBlur:a,shouldCloseOnInteractOutside:l}=e;f.useEffect(()=>{if(s&&!yr.includes(t))return yr.push(t),()=>{let m=yr.indexOf(t);m>=0&&yr.splice(m,1)}},[s,t]);const c=()=>{yr[yr.length-1]===t&&i&&i()},u=m=>{(!l||l(m.target))&&(yr[yr.length-1]===t&&r&&(m.stopPropagation(),m.preventDefault()),c())},d=m=>{(!l||l(m.target))&&(yr[yr.length-1]===t&&r&&(m.stopPropagation(),m.preventDefault()),c())},p=m=>{m.key==="Escape"&&!o&&!m.nativeEvent.isComposing&&(m.stopPropagation(),m.preventDefault(),c())};xT({isDisabled:!(n&&s),onInteractOutside:n&&s?d:void 0,onInteractOutsideStart:u,ref:t});const{focusWithinProps:h}=rg({isDisabled:!a,onBlurWithin:m=>{!m.relatedTarget||ET(m.relatedTarget)||(!l||l(m.relatedTarget))&&c()}}),g=m=>{m.target===m.currentTarget&&m.preventDefault()};return{overlayProps:{onKeyDown:p,...h},underlayProps:{onPointerDown:g}}}function J4(e){var t,r;const n=gt(),[o,s]=Bt(e,Ls.variantKeys),{ref:i,as:a,isOpen:l,content:c,children:u,defaultOpen:d,onOpenChange:p,isDisabled:h,trigger:g,shouldFlip:m=!0,containerPadding:x=12,placement:v="top",delay:$=0,closeDelay:C=500,showArrow:E=!1,offset:T=7,crossOffset:k=0,isDismissable:D,shouldCloseOnBlur:P=!0,portalContainer:V,isKeyboardDismissDisabled:F=!1,updatePositionDeps:y=[],shouldCloseOnInteractOutside:M,className:A,onClose:I,motionProps:N,classNames:w,...S}=o,_=a||"div",B=(r=(t=e?.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,L=H4({delay:$,closeDelay:C,isDisabled:h,defaultOpen:d,isOpen:l,onOpenChange:oe=>{p?.(oe),oe||I?.()}}),K=f.useRef(null),z=f.useRef(null),W=f.useId(),U=L.isOpen&&!h;f.useImperativeHandle(i,()=>Uw(z));const{triggerProps:ee,tooltipProps:G}=Z4({isDisabled:h,trigger:g},L,K),{tooltipProps:R}=G4({isOpen:U,...mt(o,G)},L),{overlayProps:me,placement:ue,updatePosition:Q}=ES({isOpen:U,targetRef:K,placement:Y4(v),overlayRef:z,offset:E?T+3:T,crossOffset:k,shouldFlip:m,containerPadding:x});Mn(()=>{y.length&&Q()},y);const{overlayProps:ie}=X4({isOpen:U,onClose:L.close,isDismissable:D,shouldCloseOnBlur:P,isKeyboardDismissDisabled:F,shouldCloseOnInteractOutside:M},z),q=f.useMemo(()=>{var oe,be,Me;return Ls({...s,disableAnimation:B,radius:(oe=e?.radius)!=null?oe:"md",size:(be=e?.size)!=null?be:"md",shadow:(Me=e?.shadow)!=null?Me:"sm"})},[nn(s),B,e?.radius,e?.size,e?.shadow]),X=f.useCallback((oe={},be=null)=>({...mt(ee,oe),ref:Ff(be,K),"aria-describedby":U?W:void 0}),[ee,U,W,L]),le=f.useCallback(()=>({ref:z,"data-slot":"base","data-open":pe(U),"data-arrow":pe(E),"data-disabled":pe(h),"data-placement":Rv(ue||"top",v),...mt(R,ie,S),style:mt(me.style,S.style,o.style),className:q.base({class:w?.base}),id:W}),[q,U,E,h,ue,v,R,ie,S,me,o,W]),ae=f.useCallback(()=>({"data-slot":"content","data-open":pe(U),"data-arrow":pe(E),"data-disabled":pe(h),"data-placement":Rv(ue||"top",v),className:q.content({class:Ke(w?.content,A)})}),[q,U,E,h,ue,v,w]);return{Component:_,content:c,children:u,isOpen:U,triggerRef:K,showArrow:E,portalContainer:V,placement:v,disableAnimation:B,isDisabled:h,motionProps:N,getTooltipContentProps:ae,getTriggerProps:X,getTooltipProps:le}}var Q4={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}}},e5=()=>Promise.resolve().then(()=>Ps).then(e=>e.default),Kv=Re((e,t)=>{var r;const{Component:n,children:o,content:s,isOpen:i,portalContainer:a,placement:l,disableAnimation:c,motionProps:u,getTriggerProps:d,getTooltipProps:p,getTooltipContentProps:h}=J4({...e,ref:t});let g;try{if(f.Children.count(o)!==1)throw new Error;if(!f.isValidElement(o))g=b.jsx("p",{...d(),children:o});else{const T=o,k=(r=T.props.ref)!=null?r:T.ref;g=f.cloneElement(T,d(T.props,k))}}catch{g=b.jsx("span",{}),Vs("Tooltip must have only one child node. Please, check your code.")}const{ref:m,id:x,style:v,...$}=p(),C=b.jsx("div",{ref:m,id:x,style:v,children:b.jsx(vn.div,{animate:"enter",exit:"exit",initial:"exit",variants:Q4.scaleSpring,...mt(u,$),style:{...q4(l)},children:b.jsx(n,{...h(),children:s})},`${x}-tooltip-inner`)},`${x}-tooltip-content`);return b.jsxs(b.Fragment,{children:[g,c?i&&b.jsx(Km,{portalContainer:a,children:b.jsx("div",{ref:m,id:x,style:v,...$,children:b.jsx(n,{...h(),children:s})})}):b.jsx(gn,{features:e5,children:b.jsx(Zo,{children:i&&b.jsx(Km,{portalContainer:a,children:C})})})]})});Kv.displayName="HeroUI.Tooltip";var t5=Kv,Wv=Re((e,t)=>{const{Component:r,index:n,renderThumb:o,showTooltip:s,getTooltipProps:i,getThumbProps:a,getInputProps:l}=K4({...e,ref:t}),c={...a(),index:n,children:b.jsx(uT,{children:b.jsx("input",{...l()})})},u=sl({Component:r,props:c,renderCustom:o});return s?b.jsx(t5,{...i(),children:u}):u});Wv.displayName="HeroUI.SliderThumb";var r5=Wv;const n5=0,o5=100,s5=1;function i5(e){const{isDisabled:t=!1,minValue:r=n5,maxValue:n=o5,numberFormatter:o,step:s=s5,orientation:i="horizontal"}=e;let a=f.useMemo(()=>{let z=(n-r)/10;return z=Bo(z,0,z+s,s),Math.max(z,s)},[s,n,r]),l=f.useCallback(z=>z?.map((W,U)=>{let ee=U===0?r:z[U-1],G=U===z.length-1?n:z[U+1];return Bo(W,ee,G,s)}),[r,n,s]),c=f.useMemo(()=>l(Hv(e.value)),[e.value,l]),u=f.useMemo(()=>{var z;return l((z=Hv(e.defaultValue))!==null&&z!==void 0?z:[r])},[e.defaultValue,r,l]),d=Gv(e.value,e.defaultValue,e.onChange),p=Gv(e.value,e.defaultValue,e.onChangeEnd);const[h,g]=Cr(c,u,d);let[m]=f.useState(h);const[x,v]=f.useState(new Array(h.length).fill(!1)),$=f.useRef(new Array(h.length).fill(!0)),[C,E]=f.useState(void 0),T=f.useRef(h),k=f.useRef(x);let D=z=>{T.current=z,g(z)},P=z=>{k.current=z,v(z)};function V(z){return(z-r)/(n-r)}function F(z){return z===0?r:h[z-1]}function y(z){return z===h.length-1?n:h[z+1]}function M(z){return $.current[z]}function A(z,W){$.current[z]=W}function I(z,W){if(t||!M(z))return;const U=F(z),ee=y(z);W=Bo(W,U,ee,s);let G=Uv(T.current,z,W);D(G)}function N(z,W){if(t||!M(z))return;W&&(T.current=h);const U=k.current[z];k.current=Uv(k.current,z,W),P(k.current),p&&U&&!k.current.some(Boolean)&&p(T.current)}function w(z){return o.format(z)}function S(z,W){I(z,B(W))}function _(z){return Math.round((z-r)/s)*s+r}function B(z){const W=z*(n-r)+r;return Sr(_(W),r,n)}function L(z,W=1){let U=Math.max(W,s);I(z,Bo(h[z]+U,r,n,s))}function K(z,W=1){let U=Math.max(W,s);I(z,Bo(h[z]-U,r,n,s))}return{values:h,defaultValues:e.defaultValue!==void 0?u:m,getThumbValue:z=>h[z],setThumbValue:I,setThumbPercent:S,isThumbDragging:z=>x[z],setThumbDragging:N,focusedThumb:C,setFocusedThumb:E,getThumbPercent:z=>V(h[z]),getValuePercent:V,getThumbValueLabel:z=>w(h[z]),getFormattedValue:w,getThumbMinValue:F,getThumbMaxValue:y,getPercentValue:B,isThumbEditable:M,setThumbEditable:A,incrementThumb:L,decrementThumb:K,step:s,pageSize:a,orientation:i,isDisabled:t}}function Uv(e,t,r){return e[t]===r?e:[...e.slice(0,t),r,...e.slice(t+1)]}function Hv(e){if(e!=null)return Array.isArray(e)?e:[e]}function Gv(e,t,r){return n=>{r?.(typeof e=="number"||typeof t=="number"?n[0]:n)}}function a5(e){var t,r,n,o;const s=gt(),[i,a]=Bt(e,Ka.variantKeys),{ref:l,as:c,name:u,label:d,formatOptions:p,value:h,maxValue:g=100,minValue:m=0,step:x=1,showSteps:v=!1,showTooltip:$=!1,orientation:C="horizontal",marks:E=[],startContent:T,endContent:k,fillOffset:D,className:P,classNames:V,renderThumb:F,renderLabel:y,renderValue:M,onChange:A,onChangeEnd:I,getValue:N,getTooltipValue:w,tooltipValueFormatOptions:S=p,tooltipProps:_={},...B}=i,L=m===g;L&&Vs("Min and max values should not be the same. This may cause unexpected behavior.");const K=c||"div",z=typeof K=="string",W=(r=(t=e?.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,U=zt(l),ee=f.useRef(null),G=ip(p),{direction:R}=jo(),me=f.useCallback(Ce=>Math.min(Math.max(Ce,m),g),[m,g]),ue=f.useMemo(()=>{if(L)return m;if(h!==void 0)return Array.isArray(h)?h.map(me):me(h)},[h,me,L,m]),Q=i5({...B,value:ue,isDisabled:(n=e?.isDisabled)!=null?n:!1,orientation:C,step:x,minValue:m,maxValue:g,numberFormatter:G,onChange:A,onChangeEnd:I}),ie={offset:5,delay:0,size:"sm",showArrow:!0,color:e?.color?e?.color:(o=Ka.defaultVariants)==null?void 0:o.color,isDisabled:e.isDisabled,..._},{groupProps:q,trackProps:X,labelProps:le,outputProps:ae}=B4(e,Q,ee),{isHovered:oe,hoverProps:be}=kn({isDisabled:e.isDisabled}),Me=Ke(V?.base,P),ye=C==="vertical",te=E?.length>0,je=D===void 0?Q.values.length===1:!1,xe=f.useMemo(()=>Ka({...a,hasMarks:te,disableAnimation:W,hasSingleThumb:je,isVertical:ye}),[nn(a),ye,W,je,te]),[We,lt]=[Q.values.length>1?Q.getThumbPercent(0):D!==void 0?Q.getValuePercent(D):0,Q.getThumbPercent(Q.values.length-1)].sort(),Te=Q.values.length===1?G.format(Q.values[0]):G.formatRange(Q.values[0],Q.values[Q.values.length-1]),Ge=v?Math.floor((g-m)/x)+1:0;return{Component:K,state:Q,value:Te,domRef:U,label:d,steps:Ge,marks:E,startContent:T,endContent:k,getStepProps:Ce=>{const ze=Q.getValuePercent(Ce*x+m);return{className:xe.step({class:V?.step}),"data-slot":"step","data-in-range":ze<=lt&&ze>=We,style:{[ye?"bottom":R==="rtl"?"right":"left"]:`${ze*100}%`}}},getBaseProps:(Ce={})=>({ref:U,"data-orientation":Q.orientation,"data-slot":"base","data-hover":oe,className:xe.base({class:Me}),...mt(q,be,ct(B,{enabled:z}),ct(Ce))}),getValue:N,renderLabel:y,renderValue:M,getTrackWrapperProps:(Ce={})=>({"data-slot":"track-wrapper",className:xe.trackWrapper({class:V?.trackWrapper}),...Ce}),getLabelWrapperProps:(Ce={})=>({className:xe.labelWrapper({class:V?.labelWrapper}),"data-slot":"labelWrapper",...Ce}),getLabelProps:(Ce={})=>({"data-slot":"label",className:xe.label({class:V?.label}),children:d,...le,...Ce}),getValueProps:(Ce={})=>({"data-slot":"value",className:xe.value({class:V?.value}),children:N&&typeof N=="function"?N(Q.values):Te,...ae,...Ce}),getTrackProps:(Ce={})=>{const ze=(lt-We)*100;return{ref:ee,"data-slot":"track","data-thumb-hidden":!!e?.hideThumb,"data-vertical":ye,...je?{"data-fill-start":ze>0,"data-fill-end":ze==100}:{"data-fill-start":We==0,"data-fill-end":We*100+ze==100},className:xe.track({class:V?.track}),...X,...Ce}},getFillerProps:(Ce={})=>({"data-slot":"filler",className:xe.filler({class:V?.filler}),...Ce,style:{...Ce.style,[ye?"bottom":R==="rtl"?"right":"left"]:`${We*100}%`,...ye?{height:`${(lt-We)*100}%`}:{width:`${(lt-We)*100}%`}}}),getThumbProps:Ce=>({name:u,index:Ce,state:Q,trackRef:ee,orientation:C,isVertical:ye,tooltipProps:ie,getTooltipValue:w,showTooltip:$,renderThumb:F,formatOptions:S,className:xe.thumb({class:V?.thumb})}),getMarkProps:Ce=>{const ze=Q.getValuePercent(Ce.value);return{className:xe.mark({class:V?.mark}),"data-slot":"mark","data-in-range":ze<=lt&&ze>=We,style:{[ye?"bottom":R==="rtl"?"right":"left"]:`${ze*100}%`},onMouseDown:Mt=>Mt.stopPropagation(),onPointerDown:Mt=>Mt.stopPropagation(),onClick:Mt=>{if(Mt.stopPropagation(),!L)if(Q.values.length===1)Q.setThumbPercent(0,ze);else{const $t=Q.values[0],rr=Q.values[1];Ce.value<$t?Q.setThumbPercent(0,ze):Ce.value>rr?Q.setThumbPercent(1,ze):Math.abs(Ce.value-$t)<Math.abs(Ce.value-rr)?Q.setThumbPercent(0,ze):Q.setThumbPercent(1,ze)}}}},getStartContentProps:(Ce={})=>({"data-slot":"startContent",className:xe.startContent({class:V?.startContent}),...Ce}),getEndContentProps:(Ce={})=>({"data-slot":"endContent",className:xe.endContent({class:V?.endContent}),...Ce})}}var Zv=Re((e,t)=>{const{Component:r,state:n,label:o,steps:s,marks:i,startContent:a,endContent:l,getStepProps:c,getBaseProps:u,renderValue:d,renderLabel:p,getTrackWrapperProps:h,getLabelWrapperProps:g,getLabelProps:m,getValueProps:x,getTrackProps:v,getFillerProps:$,getThumbProps:C,getMarkProps:E,getStartContentProps:T,getEndContentProps:k}=a5({...e,ref:t});return b.jsxs(r,{...u(),children:[o&&b.jsxs("div",{...g(),children:[sl({Component:"label",props:m(),renderCustom:p}),sl({Component:"output",props:x(),renderCustom:d})]}),b.jsxs("div",{...h(),children:[a&&b.jsx("div",{...T(),children:a}),b.jsxs("div",{...v(),children:[b.jsx("div",{...$()}),Number.isFinite(s)&&Array.from({length:s},(D,P)=>b.jsx("div",{...c(P)},P)),n.values.map((D,P)=>b.jsx(r5,{...C(P)},P)),i?.length>0&&i.map((D,P)=>b.jsx("div",{...E(D),children:D.label},P))]}),l&&b.jsx("div",{...k(),children:l})]})]})});Zv.displayName="HeroUI.Slider";var bc=Zv;function us(e,t){const r=f.useRef(!0);f.useEffect(()=>{r.current?r.current=!1:e()},t)}function l5({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:i,formatType:a,onChange:l,classNames:c}){const{to:u}=qt(n),[d,p]=f.useState(u??t);return f.useEffect(()=>{n||p(t)},[n,t]),us(()=>{const{to:h}=qt(n);h&&h!==d&&p(h)},[n]),b.jsx(bc,{size:"sm",step:r,hideValue:!0,label:`Tot ${nr(d,a)}`,minValue:e,maxValue:s,value:d===t?s:d,onChange:h=>{if(typeof h=="number"){if(h>=s)return p(t);p(Vr(h,o))}},onChangeEnd:h=>{if(typeof h=="number"){if(h>=s)return l(`-${t}`);l(`-${Vr(h,o)}`)}},marks:i,classNames:c})}function u5({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:i,formatType:a,onChange:l,classNames:c}){const{from:u}=qt(n),[d,p]=f.useState(u??e);return f.useEffect(()=>{n||p(e)},[n,e]),us(()=>{const{from:h}=qt(n);h&&h!==d&&p(h)},[n]),b.jsx(bc,{size:"sm",step:r,hideValue:!0,label:`Vanaf ${nr(d,a)}`,minValue:e,maxValue:s,value:d===t?s:d,onChange:h=>{if(typeof h=="number"){if(h>=s)return p(t);p(Vr(h,o))}},onChangeEnd:h=>{if(typeof h=="number"){if(h>=s)return l(`${t}-`);l(`${Vr(h,o)}-`)}},marks:i,classNames:c})}const qv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Yv={...qv,customError:!0,valid:!1},cs={isInvalid:!1,validationDetails:qv,validationErrors:[]},Xv=f.createContext({}),Jv="__formValidationState"+Date.now();function Qv(e){if(e[Jv]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}=e[Jv];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}}return c5(e)}function c5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:s,validate:i,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Yv}:null,c=f.useMemo(()=>{if(!i||o==null)return null;let F=d5(i,o);return eb(F)},[i,o]);s?.validationDetails.valid&&(s=void 0);let u=f.useContext(Xv),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>yc(u[F])):yc(u[n]):[],[u,n]),[p,h]=f.useState(u),[g,m]=f.useState(!1);u!==p&&(h(u),m(!1));let x=f.useMemo(()=>eb(g?[]:d),[g,d]),v=f.useRef(cs),[$,C]=f.useState(cs),E=f.useRef(cs),T=()=>{if(!k)return;D(!1);let F=c||s||v.current;xc(F,E.current)||(E.current=F,C(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||s||cs,displayValidation:a==="native"?l||x||$:l||x||c||s||$,updateValidation(F){a==="aria"&&!xc($,F)?C(F):v.current=F},resetValidation(){let F=cs;xc(F,E.current)||(E.current=F,C(F)),a==="native"&&D(!1),m(!0)},commitValidation(){a==="native"&&D(!0),m(!0)}}}function yc(e){return e?Array.isArray(e)?e:[e]:[]}function d5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return yc(r)}return[]}function eb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Yv}:null}function xc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}let f5=Math.round(Math.random()*1e10),p5=0;function h5(e){let t=f.useMemo(()=>e.name||`radio-group-${f5}-${++p5}`,[e.name]);var r;let[n,o]=Cr(e.value,(r=e.defaultValue)!==null&&r!==void 0?r:null,e.onChange),[s]=f.useState(n),[i,a]=f.useState(null),l=Qv({...e,value:n}),c=p=>{!e.isReadOnly&&!e.isDisabled&&(o(p),l.commitValidation())},u=l.displayValidation.isInvalid;var d;return{...l,name:t,selectedValue:n,defaultSelectedValue:e.value!==void 0?s:(d=e.defaultValue)!==null&&d!==void 0?d:null,setSelectedValue:c,lastFocusedValue:i,setLastFocusedValue:a,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const tb=new WeakMap;function rb(e,t,r){let{validationBehavior:n,focus:o}=e;Be(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(g5(r.current))}});let s=f.useRef(!1),i=Ye(()=>{s.current||t.resetValidation()}),a=Ye(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&v5(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),Oi("keyboard")}c.preventDefault()}),l=Ye(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),s.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",i),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",i),u&&(u.reset=d)}},[r,a,l,i,n])}function m5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function g5(e){return{isInvalid:!e.validity.valid,validationDetails:m5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function v5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function b5(e,t,r){let{value:n,children:o,"aria-label":s,"aria-labelledby":i,onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:p}=e;const h=e.isDisabled||t.isDisabled;let g=o!=null,m=s!=null||i!=null;!g&&!m&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let x=t.selectedValue===n,v=N=>{N.stopPropagation(),t.setSelectedValue(n)},{pressProps:$,isPressed:C}=hr({onPressStart:a,onPressEnd:l,onPressChange:c,onPress:u,onPressUp:d,onClick:p,isDisabled:h}),{pressProps:E,isPressed:T}=hr({onPressStart:a,onPressEnd:l,onPressChange:c,onPressUp:d,onClick:p,isDisabled:h,onPress(N){var w;u?.(N),t.setSelectedValue(n),(w=r.current)===null||w===void 0||w.focus()}}),{focusableProps:k}=En(_e(e,{onFocus:()=>t.setLastFocusedValue(n)}),r),D=_e($,k),P=cr(e,{labelable:!0}),V=-1;t.selectedValue!=null?t.selectedValue===n&&(V=0):(t.lastFocusedValue===n||t.lastFocusedValue==null)&&(V=0),h&&(V=void 0);let{name:F,form:y,descriptionId:M,errorMessageId:A,validationBehavior:I}=tb.get(t);return ri(r,t.defaultSelectedValue,t.setSelectedValue),rb({validationBehavior:I},t,r),{labelProps:_e(E,f.useMemo(()=>({onClick:N=>N.preventDefault(),onMouseDown:N=>N.preventDefault()}),[])),inputProps:_e(P,{...D,type:"radio",name:F,form:y,tabIndex:V,disabled:h,required:t.isRequired&&I==="native",checked:x,value:n,onChange:v,"aria-describedby":[e["aria-describedby"],t.isInvalid?A:null,M].filter(Boolean).join(" ")||void 0}),isDisabled:h,isSelected:x,isPressed:C||T}}function nb(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:s="label"}=e;t=Nt(t);let i=Nt(),a={};r?(n=n?`${i} ${n}`:i,a={id:i,htmlFor:s==="label"?t:void 0}):!n&&!o&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=hl({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:a,fieldProps:l}}function ob(e){let{description:t,errorMessage:r,isInvalid:n,validationState:o}=e,{labelProps:s,fieldProps:i}=nb(e),a=sn([!!t,!!r,n,o]),l=sn([!!t,!!r,n,o]);return i=_e(i,{"aria-describedby":[a,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:s,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:l}}}function y5(e,t){let{name:r,form:n,isReadOnly:o,isRequired:s,isDisabled:i,orientation:a="vertical",validationBehavior:l="aria"}=e,{direction:c}=ss(),{isInvalid:u,validationErrors:d,validationDetails:p}=t.displayValidation,{labelProps:h,fieldProps:g,descriptionProps:m,errorMessageProps:x}=ob({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||d}),v=cr(e,{labelable:!0}),{focusWithinProps:$}=Hr({onBlurWithin(T){var k;(k=e.onBlur)===null||k===void 0||k.call(e,T),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),C=T=>{let k;switch(T.key){case"ArrowRight":c==="rtl"&&a!=="vertical"?k="prev":k="next";break;case"ArrowLeft":c==="rtl"&&a!=="vertical"?k="next":k="prev";break;case"ArrowDown":k="next";break;case"ArrowUp":k="prev";break;default:return}T.preventDefault();let D=mr(T.currentTarget,{from:T.target,accept:V=>V instanceof Ot(V).HTMLInputElement&&V.type==="radio"}),P;k==="next"?(P=D.nextNode(),P||(D.currentNode=T.currentTarget,P=D.firstChild())):(P=D.previousNode(),P||(D.currentNode=T.currentTarget,P=D.lastChild())),P&&(P.focus(),t.setSelectedValue(P.value))},E=Nt(r);return tb.set(t,{name:E,form:n,descriptionId:m.id,errorMessageId:x.id,validationBehavior:l}),{radioGroupProps:_e(v,{role:"radiogroup",onKeyDown:C,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":o||void 0,"aria-required":s||void 0,"aria-disabled":i||void 0,"aria-orientation":a,...g,...$}),labelProps:h,descriptionProps:m,errorMessageProps:x,isInvalid:u,validationErrors:d,validationDetails:p}}var sb=Symbol("default");function x5(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const s=e,i=s(o);return()=>{typeof i=="function"?i():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function wc(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`));if(!t&&!r.slots[sb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||sb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function w5(e,t,r){let n=wc(r,e.slot)||{},{ref:o,...s}=n,i=x5(f.useMemo(()=>nc(t,o),[t,o])),a=Ve(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof s.style=="function"?s.style(l):s.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...s.style,...e.style}),[a,i]}var ta=f.createContext(null);f.forwardRef(function(t,r){[t,r]=w5(t,r,ta);let{validationErrors:n,validationBehavior:o="native",children:s,className:i,...a}=t;const l=f.useMemo(()=>Ud({className:i}),[i]);return b.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:b.jsx(ta.Provider,{value:{...t,validationBehavior:o},children:b.jsx(Xv.Provider,{value:n??{},children:s})})})});function $5(e){var t,r;const n=gt(),{validationBehavior:o}=wc(ta)||{},{as:s,ref:i,classNames:a,children:l,label:c,value:u,name:d,isInvalid:p,validationState:h,validationBehavior:g=(t=o??n?.validationBehavior)!=null?t:"native",size:m="md",color:x="primary",isDisabled:v=!1,disableAnimation:$=(r=n?.disableAnimation)!=null?r:!1,orientation:C="vertical",isRequired:E=!1,isReadOnly:T,errorMessage:k,description:D,className:P,onChange:V,onValueChange:F,...y}=e,M=s||"div",A=typeof M=="string",I=Rt(i),N=f.useMemo(()=>({...y,value:u,name:d,"aria-label":ZT(y["aria-label"],c),isRequired:E,isReadOnly:T,isInvalid:h==="invalid"||p,orientation:C,validationBehavior:g,onChange:F}),[y,u,d,c,E,T,p,h,g,C,F]),w=h5(N),{labelProps:S,radioGroupProps:_,errorMessageProps:B,descriptionProps:L,isInvalid:K,validationErrors:z,validationDetails:W}=y5(N,w),U=N.isInvalid||K||w.isInvalid,ee=f.useMemo(()=>({size:m,color:x,groupState:w,isRequired:E,isInvalid:U,isDisabled:v,disableAnimation:$,onChange:V}),[m,x,E,v,U,V,$,w.name,w.isDisabled,w.isReadOnly,w.isRequired,w.selectedValue,w.lastFocusedValue]),G=f.useMemo(()=>ux({isRequired:E,isInvalid:U,disableAnimation:$}),[U,E,$]),R=Pe(a?.base,P),me=f.useCallback(()=>({ref:I,className:G.base({class:R}),...Ve(_,ct(y,{enabled:A}))}),[I,G,R,_,y]),ue=f.useCallback(()=>({className:G.label({class:a?.label}),...S}),[G,a?.label,S,a?.label]),Q=f.useCallback(()=>({className:G.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":C}),[G,a?.wrapper,C,G.wrapper]),ie=f.useCallback((X={})=>({...X,...L,className:G.description({class:Pe(a?.description,X?.className)})}),[G,a?.description,L,G.description]),q=f.useCallback((X={})=>({...X,...B,className:G.errorMessage({class:Pe(a?.errorMessage,X?.className)})}),[G,a?.errorMessage,B]);return{Component:M,children:l,label:c,context:ee,description:D,isInvalid:U,errorMessage:typeof k=="function"?k({isInvalid:U,validationErrors:z,validationDetails:W}):k||z?.join(" "),getGroupProps:me,getLabelProps:ue,getWrapperProps:Q,getDescriptionProps:ie,getErrorMessageProps:q}}var[E5,P5]=Gi({name:"RadioGroupContext",strict:!1}),ib=Re((e,t)=>{const{Component:r,children:n,label:o,context:s,description:i,isInvalid:a,errorMessage:l,getGroupProps:c,getLabelProps:u,getWrapperProps:d,getDescriptionProps:p,getErrorMessageProps:h}=$5({...e,ref:t});return b.jsxs(r,{...c(),children:[o&&b.jsx("span",{...u(),children:o}),b.jsx("div",{...d(),children:b.jsx(E5,{value:s,children:n})}),a&&l?b.jsx("div",{...h(),children:l}):i?b.jsx("div",{...p(),children:i}):null]})});ib.displayName="HeroUI.RadioGroup";var C5=ib;function S5(e){var t,r,n,o,s;const i=gt(),a=P5(),{as:l,ref:c,classNames:u,id:d,value:p,children:h,description:g,size:m=(t=a?.size)!=null?t:"md",color:x=(r=a?.color)!=null?r:"primary",isDisabled:v=(n=a?.isDisabled)!=null?n:!1,disableAnimation:$=(s=(o=a?.disableAnimation)!=null?o:i?.disableAnimation)!=null?s:!1,onChange:C=a?.onChange,autoFocus:E=!1,className:T,...k}=e;a&&UT&&("checked"in k&&Pg('Remove props "checked" if in the Radio.Group.',"Radio"),p===void 0&&Pg('Props "value" must be defined if in the Radio.Group.',"Radio"));const D=l||"label",P=Rt(c),V=f.useRef(null),F=f.useId(),y=f.useId(),M=f.useMemo(()=>{var ae;return(ae=a.isRequired)!=null?ae:!1},[a.isRequired]),A=a.isInvalid,I=f.useMemo(()=>{const ae=[k["aria-describedby"],y].filter(Boolean).join(" ")||void 0;return{id:d,isRequired:M,isDisabled:v,"aria-label":k["aria-label"],"aria-labelledby":k["aria-labelledby"]||F,"aria-describedby":ae}},[d,v,M,g,k["aria-label"],k["aria-labelledby"],k["aria-describedby"],y]),{inputProps:N,isDisabled:w,isSelected:S,isPressed:_}=b5({value:p,children:typeof h=="function"?!0:h,...I},a.groupState,V),{focusProps:B,isFocused:L,isFocusVisible:K}=Sn({autoFocus:E}),z=w||N.readOnly,{hoverProps:W,isHovered:U}=Pn({isDisabled:z}),ee=z?!1:_,G=f.useMemo(()=>lx({color:x,size:m,isInvalid:A,isDisabled:w,disableAnimation:$}),[x,m,w,A,$]),R=Pe(u?.base,T),me=f.useCallback((ae={})=>({...ae,ref:P,className:G.base({class:R}),"data-disabled":he(w),"data-focus":he(L),"data-focus-visible":he(K),"data-selected":he(S),"data-invalid":he(A),"data-hover":he(U),"data-pressed":he(ee),"data-hover-unselected":he(U&&!S),"data-readonly":he(N.readOnly),"aria-required":he(M),...Ve(W,k)}),[G,R,P,w,L,K,S,A,U,ee,N.readOnly,M,k]),ue=f.useCallback((ae={})=>({...ae,"aria-hidden":!0,className:Pe(G.wrapper({class:Pe(u?.wrapper,ae.className)}))}),[G,u?.wrapper]),Q=f.useCallback((ae={})=>({ref:V,...Ve(ae,N,B),className:G.hiddenInput({class:u?.hiddenInput}),onChange:Zi(N.onChange,C)}),[N,B,C]),ie=f.useCallback((ae={})=>({...ae,id:F,className:G.label({class:u?.label})}),[G,u?.label,w,S,A]),q=f.useCallback((ae={})=>({...ae,className:G.labelWrapper({class:u?.labelWrapper})}),[G,u?.labelWrapper]),X=f.useCallback((ae={})=>({...ae,className:G.control({class:u?.control})}),[G,u?.control]),le=f.useCallback((ae={})=>({...ae,id:y,className:G.description({class:u?.description})}),[G,u?.description]);return{Component:D,children:h,isSelected:S,isDisabled:w,isInvalid:A,isFocusVisible:K,description:g,getBaseProps:me,getWrapperProps:ue,getInputProps:Q,getLabelProps:ie,getLabelWrapperProps:q,getControlProps:X,getDescriptionProps:le}}var ab=Re((e,t)=>{const{Component:r,children:n,description:o,getBaseProps:s,getWrapperProps:i,getInputProps:a,getLabelProps:l,getLabelWrapperProps:c,getControlProps:u,getDescriptionProps:d}=S5({...e,ref:t});return b.jsxs(r,{...s(),children:[b.jsx("input",{...a()}),b.jsx("span",{...i(),children:b.jsx("span",{...u()})}),b.jsxs("div",{...c(),children:[n&&b.jsx("span",{...l(),children:n}),o&&b.jsx("span",{...d(),children:o})]})]})});ab.displayName="HeroUI.Radio";var T5=ab;function lb({id:e,options:t,value:r,onChange:n,classNames:o}){return b.jsx(C5,{size:"sm",value:r,onValueChange:n,classNames:{base:j(o?.radioGroup?.base),wrapper:j(o?.radioGroup?.wrapper),label:j(o?.radioGroup?.label),description:j(o?.radioGroup?.description),errorMessage:j(o?.radioGroup?.errorMessage)},children:t.map(s=>b.jsx(T5,{color:"primary",value:s.value,name:s.value,classNames:{base:j("max-w-full",o?.radio?.base),wrapper:j("border-1 border-default-200 bg-white group-data-[selected=true]:border-primary-600 group-data-[selected=true]:bg-primary-600",o?.radio?.wrapper),hiddenInput:j(o?.radio?.hiddenInput),labelWrapper:j(o?.radio?.labelWrapper),label:j("text-sm",o?.radio?.label),control:j("bg-white",o?.radio?.control),description:j(o?.radio?.description)},children:s.descriptiveName},`${e}-${s.value}`))})}function ub({min:e,max:t,step:r,value:n,options:o,maxOptionValue:s,marks:i,formatType:a,onChange:l,classNames:c}){const{from:u,to:d}=qt(n),[p,h]=f.useState([u??e,d??t]),[g,m]=p;return f.useEffect(()=>{n||h([e,t])},[n,e,t]),us(()=>{const{from:x,to:v}=qt(n);x&&v&&(x!==g||v!==m)&&h([x,v])},[n]),b.jsx(bc,{size:"sm",step:r,hideValue:!0,label:`${nr(g,a)} - ${nr(m,a)}`,minValue:e,maxValue:s,value:p,onChange:x=>{if(!Array.isArray(x))return;const v=Vr(x[0],o);if(x[1]>=s)return h([v,t]);h([v,Vr(x[1],o)])},onChangeEnd:x=>{if(!Array.isArray(x))return;const v=Vr(x[0],o);if(x[1]>=s)return l(`${v}-${t}`);l(`${v}-${Vr(x[1],o)}`)},marks:i,classNames:c})}const $c={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},cb={...$c,customError:!0,valid:!1},So={isInvalid:!1,validationDetails:$c,validationErrors:[]},db=f.createContext({}),ra="__formValidationState"+Date.now();function na(e){if(e[ra]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}=e[ra];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:o,commitValidation:s}}return k5(e)}function k5(e){let{isInvalid:t,validationState:r,name:n,value:o,builtinValidation:s,validate:i,validationBehavior:a="aria"}=e;r&&(t||(t=r==="invalid"));let l=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:cb}:null,c=f.useMemo(()=>{if(!i||o==null)return null;let F=I5(i,o);return fb(F)},[i,o]);s?.validationDetails.valid&&(s=void 0);let u=f.useContext(db),d=f.useMemo(()=>n?Array.isArray(n)?n.flatMap(F=>Ec(u[F])):Ec(u[n]):[],[u,n]),[p,h]=f.useState(u),[g,m]=f.useState(!1);u!==p&&(h(u),m(!1));let x=f.useMemo(()=>fb(g?[]:d),[g,d]),v=f.useRef(So),[$,C]=f.useState(So),E=f.useRef(So),T=()=>{if(!k)return;D(!1);let F=c||s||v.current;Pc(F,E.current)||(E.current=F,C(F))},[k,D]=f.useState(!1);return f.useEffect(T),{realtimeValidation:l||x||c||s||So,displayValidation:a==="native"?l||x||$:l||x||c||s||$,updateValidation(F){a==="aria"&&!Pc($,F)?C(F):v.current=F},resetValidation(){let F=So;Pc(F,E.current)||(E.current=F,C(F)),a==="native"&&D(!1),m(!0)},commitValidation(){a==="native"&&D(!0),m(!0)}}}function Ec(e){return e?Array.isArray(e)?e:[e]:[]}function I5(e,t){if(typeof e=="function"){let r=e(t);if(r&&typeof r!="boolean")return Ec(r)}return[]}function fb(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:cb}:null}function Pc(e,t){return e===t?!0:!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((r,n)=>r===t.validationErrors[n])&&Object.entries(e.validationDetails).every(([r,n])=>t.validationDetails[r]===n)}function _5(...e){let t=new Set,r=!1,n={...$c};for(let i of e){var o,s;for(let a of i.validationErrors)t.add(a);r||(r=i.isInvalid);for(let a in n)(o=n)[s=a]||(o[s]=i.validationDetails[a])}return n.valid=!r,{isInvalid:r,validationErrors:[...t],validationDetails:n}}function pb(e,t,r){let{validationBehavior:n,focus:o}=e;Be(()=>{if(n==="native"&&r?.current&&!r.current.disabled){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(c),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(D5(r.current))}});let s=f.useRef(!1),i=Ye(()=>{s.current||t.resetValidation()}),a=Ye(c=>{var u;t.displayValidation.isInvalid||t.commitValidation();let d=r==null||(u=r.current)===null||u===void 0?void 0:u.form;if(!c.defaultPrevented&&r&&d&&A5(d)===r.current){var p;o?o():(p=r.current)===null||p===void 0||p.focus(),Oi("keyboard")}c.preventDefault()}),l=Ye(()=>{t.commitValidation()});f.useEffect(()=>{let c=r?.current;if(!c)return;let u=c.form,d=u?.reset;return u&&(u.reset=()=>{s.current=!window.event||window.event.type==="message"&&window.event.target instanceof MessagePort,d?.call(u),s.current=!1}),c.addEventListener("invalid",a),c.addEventListener("change",l),u?.addEventListener("reset",i),()=>{c.removeEventListener("invalid",a),c.removeEventListener("change",l),u?.removeEventListener("reset",i),u&&(u.reset=d)}},[r,a,l,i,n])}function M5(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function D5(e){return{isInvalid:!e.validity.valid,validationDetails:M5(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function A5(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}function N5(e,t,r){let{isDisabled:n=!1,isReadOnly:o=!1,value:s,name:i,form:a,children:l,"aria-label":c,"aria-labelledby":u,validationState:d="valid",isInvalid:p,onPressStart:h,onPressEnd:g,onPressChange:m,onPress:x,onPressUp:v,onClick:$}=e,C=A=>{A.stopPropagation(),t.setSelected(A.target.checked)},E=l!=null,T=c!=null||u!=null;!E&&!T&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:k,isPressed:D}=hr({onPressStart:h,onPressEnd:g,onPressChange:m,onPress:x,onPressUp:v,onClick:$,isDisabled:n}),{pressProps:P,isPressed:V}=hr({onPressStart:h,onPressEnd:g,onPressChange:m,onPressUp:v,onClick:$,onPress(A){var I;x?.(A),t.toggle(),(I=r.current)===null||I===void 0||I.focus()},isDisabled:n||o}),{focusableProps:F}=En(e,r),y=_e(k,F),M=cr(e,{labelable:!0});return ri(r,t.defaultSelected,t.setSelected),{labelProps:_e(P,{onClick:A=>A.preventDefault()}),inputProps:_e(M,{"aria-invalid":p||d==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":o||void 0,onChange:C,disabled:n,...s==null?{}:{value:s},name:i,form:a,type:"checkbox",...y}),isSelected:t.isSelected,isPressed:D||V,isDisabled:n,isReadOnly:o,isInvalid:p||d==="invalid"}}function hb(e,t,r){let n=na({...e,value:t.isSelected}),{isInvalid:o,validationErrors:s,validationDetails:i}=n.displayValidation,{labelProps:a,inputProps:l,isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p}=N5({...e,isInvalid:o},t,r);pb(e,n,r);let{isIndeterminate:h,isRequired:g,validationBehavior:m="aria"}=e;f.useEffect(()=>{r.current&&(r.current.indeterminate=!!h)});let{pressProps:x}=hr({isDisabled:d||p,onPress(){let{[ra]:v}=e,{commitValidation:$}=v||n;$()}});return{labelProps:xo(a,x),inputProps:{...l,checked:c,"aria-required":g&&m==="aria"||void 0,required:g&&m==="native"},isSelected:c,isPressed:u,isDisabled:d,isReadOnly:p,isInvalid:o,validationErrors:s,validationDetails:i}}const mb=new WeakMap;function O5(e,t){let{isDisabled:r,name:n,form:o,validationBehavior:s="aria"}=e,{isInvalid:i,validationErrors:a,validationDetails:l}=t.displayValidation,{labelProps:c,fieldProps:u,descriptionProps:d,errorMessageProps:p}=zv({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||a});mb.set(t,{name:n,form:o,descriptionId:d.id,errorMessageId:p.id,validationBehavior:s});let h=em(e,{labelable:!0}),{focusWithinProps:g}=Hr({onBlurWithin:e.onBlur,onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange});return{groupProps:xo(h,{role:"group","aria-disabled":r||void 0,...u,...g}),labelProps:c,descriptionProps:d,errorMessageProps:p,isInvalid:i,validationErrors:a,validationDetails:l}}function gb(e={}){let{isReadOnly:t}=e,[r,n]=Cr(e.isSelected,e.defaultSelected||!1,e.onChange),[o]=f.useState(r);function s(l){t||n(l)}function i(){t||n(!r)}var a;return{isSelected:r,defaultSelected:(a=e.defaultSelected)!==null&&a!==void 0?a:o,setSelected:s,toggle:i}}function L5(e,t,r){const n=gb({isReadOnly:e.isReadOnly||t.isReadOnly,isSelected:t.isSelected(e.value),defaultSelected:t.defaultValue.includes(e.value),onChange(v){v?t.addValue(e.value):t.removeValue(e.value),e.onChange&&e.onChange(v)}});let{name:o,form:s,descriptionId:i,errorMessageId:a,validationBehavior:l}=mb.get(t);var c;l=(c=e.validationBehavior)!==null&&c!==void 0?c:l;let{realtimeValidation:u}=na({...e,value:n.isSelected,name:void 0,validationBehavior:"aria"}),d=f.useRef(So),p=()=>{t.setInvalid(e.value,u.isInvalid?u:d.current)};f.useEffect(p);let h=t.realtimeValidation.isInvalid?t.realtimeValidation:u,g=l==="native"?t.displayValidation:h;var m;let x=hb({...e,isReadOnly:e.isReadOnly||t.isReadOnly,isDisabled:e.isDisabled||t.isDisabled,name:e.name||o,form:e.form||s,isRequired:(m=e.isRequired)!==null&&m!==void 0?m:t.isRequired,validationBehavior:l,[ra]:{realtimeValidation:h,displayValidation:g,resetValidation:t.resetValidation,commitValidation:t.commitValidation,updateValidation(v){d.current=v,p()}}},n,r);return{...x,inputProps:{...x.inputProps,"aria-describedby":[e["aria-describedby"],t.isInvalid?a:null,i].filter(Boolean).join(" ")||void 0}}}function F5(e={}){let[t,r]=Cr(e.value,e.defaultValue||[],e.onChange),[n]=f.useState(t),o=!!e.isRequired&&t.length===0,s=f.useRef(new Map),i=na({...e,value:t}),a=i.displayValidation.isInvalid;var l,c;return{...i,value:t,defaultValue:(l=e.defaultValue)!==null&&l!==void 0?l:n,setValue(d){e.isReadOnly||e.isDisabled||r(d)},isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isSelected(d){return t.includes(d)},addValue(d){e.isReadOnly||e.isDisabled||t.includes(d)||(t=t.concat(d),r(t))},removeValue(d){e.isReadOnly||e.isDisabled||t.includes(d)&&r(t.filter(p=>p!==d))},toggleValue(d){e.isReadOnly||e.isDisabled||(t.includes(d)?r(t.filter(p=>p!==d)):r(t.concat(d)))},setInvalid(d,p){let h=new Map(s.current);p.isInvalid?h.set(d,p):h.delete(d),s.current=h,i.updateValidation(_5(...h.values()))},validationState:(c=e.validationState)!==null&&c!==void 0?c:a?"invalid":null,isInvalid:a,isRequired:o}}var vb=Symbol("default");function V5(e){const t=f.useRef(null),r=f.useRef(void 0),n=f.useCallback(o=>{if(typeof e=="function"){const s=e,i=s(o);return()=>{typeof i=="function"?i():s(null)}}else if(e)return e.current=o,()=>{e.current=null}},[e]);return f.useMemo(()=>({get current(){return t.current},set current(o){t.current=o,r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))}}),[n])}function oa(e,t){let r=f.useContext(e);if(t===null)return null;if(r&&typeof r=="object"&&"slots"in r&&r.slots){let n=new Intl.ListFormat().format(Object.keys(r.slots).map(s=>`"${s}"`));if(!t&&!r.slots[vb])throw new Error(`A slot prop is required. Valid slot names are ${n}.`);let o=t||vb;if(!r.slots[o])throw new Error(`Invalid slot "${t}". Valid slot names are ${n}.`);return r.slots[o]}return r}function j5(e,t,r){let n=oa(r,e.slot)||{},{ref:o,...s}=n,i=V5(f.useMemo(()=>Px(t,o),[t,o])),a=mt(s,e);return"style"in s&&s.style&&"style"in e&&e.style&&(typeof s.style=="function"||typeof e.style=="function"?a.style=l=>{let c=typeof s.style=="function"?s.style(l):s.style,u={...l.defaultStyle,...c},d=typeof e.style=="function"?e.style({...l,defaultStyle:u}):e.style;return{...u,...d}}:a.style={...s.style,...e.style}),[a,i]}var ds=f.createContext(null);f.forwardRef(function(t,r){[t,r]=j5(t,r,ds);let{validationErrors:n,validationBehavior:o="native",children:s,className:i,...a}=t;const l=f.useMemo(()=>Ud({className:i}),[i]);return b.jsx("form",{noValidate:o!=="native",...a,ref:r,className:l,children:b.jsx(ds.Provider,{value:{...t,validationBehavior:o},children:b.jsx(db.Provider,{value:n??{},children:s})})})});function z5(e){var t,r;const n=gt(),{validationBehavior:o}=oa(ds)||{},{as:s,ref:i,classNames:a,children:l,label:c,radius:u,value:d,name:p,defaultValue:h,isInvalid:g,validationState:m,size:x="md",color:v="primary",orientation:$="vertical",lineThrough:C=!1,isDisabled:E=!1,validationBehavior:T=(t=o??n?.validationBehavior)!=null?t:"native",disableAnimation:k=(r=n?.disableAnimation)!=null?r:!1,isReadOnly:D,isRequired:P,onValueChange:V,description:F,errorMessage:y,className:M,...A}=e,I=s||"div",N=typeof I=="string",w=zt(i),S=f.useMemo(()=>({...A,value:d,name:p,"aria-label":Ua(A["aria-label"],c),defaultValue:h,isRequired:P,isReadOnly:D,orientation:$,validationBehavior:T,isInvalid:m==="invalid"||g,onChange:Fr(e.onChange,V)}),[d,p,c,h,P,D,$,V,g,m,T,A["aria-label"],A]),_=F5(S),{labelProps:B,groupProps:L,descriptionProps:K,errorMessageProps:z,validationErrors:W,validationDetails:U}=O5(S,_),ee=f.useMemo(()=>({size:x,color:v,radius:u,lineThrough:C,isInvalid:_.isInvalid,isDisabled:E,disableAnimation:k,validationBehavior:T,groupState:_}),[x,v,u,C,E,k,T,_.value,_.isDisabled,_.isReadOnly,_.isInvalid,_.isSelected]),G=f.useMemo(()=>mx({isRequired:P,isInvalid:_.isInvalid,disableAnimation:k}),[P,_.isInvalid,,k]),R=Ke(a?.base,M),me=f.useCallback(()=>({ref:w,className:G.base({class:R}),...mt(L,ct(A,{enabled:N}))}),[G,w,R,L,A]),ue=f.useCallback(()=>({className:G.label({class:a?.label}),...B}),[G,B,a?.label]),Q=f.useCallback(()=>({className:G.wrapper({class:a?.wrapper}),role:"presentation","data-orientation":$}),[G,$,a?.wrapper]),ie=f.useCallback((X={})=>({...X,...K,className:G.description({class:Ke(a?.description,X?.className)})}),[G,K,a?.description]),q=f.useCallback((X={})=>({...X,...z,className:G.errorMessage({class:Ke(a?.errorMessage,X?.className)})}),[G,z,a?.errorMessage]);return{Component:I,children:l,label:c,context:ee,description:F,isInvalid:_.isInvalid,errorMessage:typeof y=="function"?y({isInvalid:_.isInvalid,validationErrors:W,validationDetails:U}):y||W?.join(" "),getGroupProps:me,getLabelProps:ue,getWrapperProps:Q,getDescriptionProps:ie,getErrorMessageProps:q}}var[B5,R5]=Hs({name:"CheckboxGroupContext",strict:!1}),bb=Re((e,t)=>{const{children:r,context:n,label:o,description:s,isInvalid:i,errorMessage:a,getGroupProps:l,getLabelProps:c,getWrapperProps:u,getDescriptionProps:d,getErrorMessageProps:p}=z5({...e,ref:t});return b.jsxs("div",{...l(),children:[o&&b.jsx("span",{...c(),children:o}),b.jsx("div",{...u(),children:b.jsx(B5,{value:n,children:r})}),i&&a?b.jsx("div",{...p(),children:a}):s?b.jsx("div",{...d(),children:s}):null]})});bb.displayName="HeroUI.CheckboxGroup";var K5=bb;function W5(e){const{isSelected:t,disableAnimation:r,...n}=e;return b.jsx("svg",{"aria-hidden":"true",fill:"none",role:"presentation",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,style:!r&&t?{transition:"stroke-dashoffset 250ms linear 0.2s"}:{},viewBox:"0 0 17 18",...n,children:b.jsx("polyline",{points:"1 9 7 14 15 4"})})}function U5(e){const{isSelected:t,disableAnimation:r,...n}=e;return b.jsx("svg",{stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",...n,children:b.jsx("line",{x1:"21",x2:"3",y1:"12",y2:"12"})})}function H5(e){const{isIndeterminate:t,...r}=e,n=t?U5:W5;return b.jsx(n,{...r})}function G5(e={}){var t,r,n,o,s,i,a,l;const c=gt(),u=R5(),{validationBehavior:d}=oa(ds)||{},p=!!u,{as:h,ref:g,value:m="",children:x,icon:v,name:$,isRequired:C,isReadOnly:E=!1,autoFocus:T=!1,isSelected:k,size:D=(t=u?.size)!=null?t:"md",color:P=(r=u?.color)!=null?r:"primary",radius:V=u?.radius,lineThrough:F=(n=u?.lineThrough)!=null?n:!1,isDisabled:y=(o=u?.isDisabled)!=null?o:!1,disableAnimation:M=(i=(s=u?.disableAnimation)!=null?s:c?.disableAnimation)!=null?i:!1,validationState:A,isInvalid:I=A?A==="invalid":(a=u?.isInvalid)!=null?a:!1,isIndeterminate:N=!1,validationBehavior:w=p?u.validationBehavior:(l=d??c?.validationBehavior)!=null?l:"native",defaultSelected:S,classNames:_,className:B,onValueChange:L,validate:K,...z}=e;u&&gx&&(k&&Vs("The Checkbox.Group is being used, `isSelected` will be ignored. Use the `value` of the Checkbox.Group instead.","Checkbox"),S&&Vs("The Checkbox.Group is being used, `defaultSelected` will be ignored. Use the `defaultValue` of the Checkbox.Group instead.","Checkbox"));const W=h||"label",U=f.useRef(null),ee=f.useRef(null);let G=e.onChange;p&&(G=Fr(()=>{u.groupState.resetValidation()},G));const R=f.useId(),me=f.useMemo(()=>({name:$,value:m,children:x,autoFocus:T,defaultSelected:S,isIndeterminate:N,isRequired:C,isInvalid:I,isSelected:k,isDisabled:y,isReadOnly:E,"aria-label":Ua(z["aria-label"],x),"aria-labelledby":z["aria-labelledby"]||R,onChange:L}),[$,m,x,T,S,N,C,I,k,y,E,z["aria-label"],z["aria-labelledby"],R,L]),ue=gb(me),Q={isInvalid:I,isRequired:C,validate:K,validationState:A,validationBehavior:w},{inputProps:ie,isSelected:q,isDisabled:X,isReadOnly:le,isPressed:ae,isInvalid:oe}=p?L5({...me,...Q},u.groupState,ee):hb({...me,...Q},ue,ee),be=X||le,Me=A==="invalid"||I||oe,ye=be?!1:ae,{hoverProps:te,isHovered:je}=kn({isDisabled:ie.disabled}),{focusProps:xe,isFocused:We,isFocusVisible:lt}=In({autoFocus:ie.autoFocus}),Te=f.useMemo(()=>hx({color:P,size:D,radius:V,isInvalid:Me,lineThrough:F,isDisabled:X,disableAnimation:M}),[P,D,V,Me,F,X,M]);Mn(()=>{if(!ee.current)return;const Ze=!!ee.current.checked;ue.setSelected(Ze)},[ee.current]);const Ge=z4(G),pt=f.useCallback(Ze=>{if(le||X){Ze.preventDefault();return}Ge?.(Ze)},[le,X,Ge]),Ft=Ke(_?.base,B),Oe=f.useCallback(()=>({ref:U,className:Te.base({class:Ft}),"data-disabled":pe(X),"data-selected":pe(q||N),"data-invalid":pe(Me),"data-hover":pe(je),"data-focus":pe(We),"data-pressed":pe(ye),"data-readonly":pe(ie.readOnly),"data-focus-visible":pe(lt),"data-indeterminate":pe(N),...mt(te,z)}),[Te,Ft,X,q,N,Me,je,We,ye,ie.readOnly,lt,te,z]),Ct=f.useCallback((Ze={})=>({...Ze,"aria-hidden":!0,className:Ke(Te.wrapper({class:Ke(_?.wrapper,Ze?.className)}))}),[Te,_?.wrapper]),It=f.useCallback(()=>({ref:Ff(ee,g),...mt(ie,xe),className:Te.hiddenInput({class:_?.hiddenInput}),onChange:Fr(ie.onChange,pt)}),[ie,xe,pt,_?.hiddenInput]),_t=f.useCallback(()=>({id:R,className:Te.label({class:_?.label})}),[Te,_?.label,X,q,Me]),Wt=f.useCallback(()=>({isSelected:q,isIndeterminate:N,disableAnimation:M,className:Te.icon({class:_?.icon})}),[Te,_?.icon,q,N,M]);return{Component:W,icon:v,children:x,isSelected:q,isDisabled:X,isInvalid:Me,isFocused:We,isHovered:je,isFocusVisible:lt,getBaseProps:Oe,getWrapperProps:Ct,getInputProps:It,getLabelProps:_t,getIconProps:Wt}}var yb=Re((e,t)=>{const{Component:r,children:n,icon:o=b.jsx(H5,{}),getBaseProps:s,getWrapperProps:i,getInputProps:a,getIconProps:l,getLabelProps:c}=G5({...e,ref:t}),u=typeof o=="function"?o(l()):f.cloneElement(o,l());return b.jsxs(r,{...s(),children:[b.jsx("input",{...a()}),b.jsx("span",{...i(),children:u}),n&&b.jsx("span",{...c(),children:n})]})});yb.displayName="HeroUI.Checkbox";var Z5=yb;function xb({id:e,options:t,values:r=[],onChange:n,classNames:o}){return b.jsx(K5,{size:"sm",value:r,onValueChange:n,classNames:{base:j(o?.checkboxGroup?.base),wrapper:j(o?.checkboxGroup?.wrapper),label:j(o?.checkboxGroup?.label),description:j(o?.checkboxGroup?.description),errorMessage:j(o?.checkboxGroup?.errorMessage)},children:t.map(s=>b.jsx(Z5,{color:"primary",value:s.value,name:s.value,classNames:{base:j("max-w-full",o?.checkbox?.base),wrapper:j("before:border-default-200 before:border-1 before:rounded-sm bg-white group-data-[hover=true]:before:bg-default-50 after:bg-transparent",o?.checkbox?.wrapper),hiddenInput:j(o?.checkbox?.hiddenInput),icon:j("text-primary-600",o?.checkbox?.icon),label:j("text-sm text-foreground",o?.checkbox?.label)},children:s.name},`${e}-${s.value}`))})}function q5({type:e,id:t,formatType:r,min:n,max:o,value:s,options:i=[],onChange:a,classNames:l}){const c=i.length>0?[n,...i.map(g=>parseInt(g.value,10)),o]:[],u=c.length>1?Math.min(...c.slice(1).map((g,m)=>g-c[m])):1,d=i.length>0&&o===Zt?c[c.length-2]+u:o,p=[{value:n,label:nr(n,r)},{value:d,label:nr(o,r)}],h={base:j(l?.sliderFilter?.base),labelWrapper:j(l?.sliderFilter?.labelWrapper),label:j("text-sm",l?.sliderFilter?.label),value:j(l?.sliderFilter?.value),step:j(l?.sliderFilter?.step),mark:j("text-xs text-default whitespace-nowrap translate-x-0 not-last-of-type:!-left-2 last-of-type:-right-2 last-of-type:!left-auto",l?.sliderFilter?.mark),trackWrapper:j(l?.sliderFilter?.trackWrapper),track:j("data-[fill-start=true]:border-s-primary-600 data-[fill-end=true]:border-e-primary-600",l?.sliderFilter?.track),filler:j("bg-primary-600",l?.sliderFilter?.filler),thumb:j("size-5 outline outline-default-200 bg-white after:size-2 after:bg-primary-600 data-[dragging=true]:outline-2 data-[dragging=true]:outline-primary-600 transition-colors duration-300",l?.sliderFilter?.thumb)};switch(e){case"min":return b.jsx(u5,{id:t,formatType:r,min:n,max:o,step:u,value:s,options:c,maxOptionValue:d,marks:p,onChange:a,classNames:h});case"max":return b.jsx(l5,{id:t,formatType:r,min:n,max:o,step:u,value:s,options:c,maxOptionValue:d,marks:p,onChange:a,classNames:h});case"range":return b.jsx(ub,{id:t,formatType:r,min:n,max:o,step:u,value:s,options:c,maxOptionValue:d,marks:p,onChange:a,classNames:h});case"checkbox":return i.length===0||typeof s=="string"?null:b.jsx(xb,{id:t,options:i,values:s,onChange:a,classNames:l?.selectFilter});case"radio":return i.length===0||s&&typeof s!="string"?null:b.jsx(lb,{id:t,options:i,value:s,onChange:a,classNames:l?.radioFilter});default:return null}}function Cc({filterOptions:e,activeFilters:t,onFilterChange:r,classNames:n}){return e.length===0||e.every(o=>o.type==="hidden")?null:b.jsx("div",{className:j("min-w-60 shrink-0",n?.base),children:b.jsx("div",{className:j("flex flex-col gap-6",n?.filterWrapper),children:e.map(o=>o.type==="hidden"||["sorteren","telefoons"].includes(o.slug)?null:b.jsxs("div",{className:j(n?.filterGroup),children:[b.jsx("div",{className:j("font-bold text-base mb-1",n?.filterLabel),children:o.name}),b.jsx(q5,{...o,min:o.min??0,max:o.max??Zt,value:Yn(t,o.slug),onChange:s=>r({slug:o.slug,value:s}),classNames:n})]},o.id))})})}var[Y5,Sc]=Hs({name:"CardContext",strict:!0,errorMessage:"useCardContext: `context` is undefined. Seems you forgot to wrap component within <Card />"}),wb=Re((e,t)=>{var r;const{as:n,className:o,children:s,...i}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Sc(),d=Ke(u?.body,o);return b.jsx(a,{ref:l,className:(r=c.body)==null?void 0:r.call(c,{class:d}),...i,children:s})});wb.displayName="HeroUI.CardBody";var $b=wb,Eb=Re((e,t)=>{var r;const{as:n,className:o,children:s,...i}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Sc(),d=Ke(u?.footer,o);return b.jsx(a,{ref:l,className:(r=c.footer)==null?void 0:r.call(c,{class:d}),...i,children:s})});Eb.displayName="HeroUI.CardFooter";var X5=Eb,Pb=Re((e,t)=>{var r;const{as:n,className:o,children:s,...i}=e,a=n||"div",l=zt(t),{slots:c,classNames:u}=Sc(),d=Ke(u?.header,o);return b.jsx(a,{ref:l,className:(r=c.header)==null?void 0:r.call(c,{class:d}),...i,children:s})});Pb.displayName="HeroUI.CardHeader";var J5=Pb;function Q5(e){var t,r,n,o;const s=gt(),[i,a]=Bt(e,Zd.variantKeys),{ref:l,as:c,children:u,onClick:d,onPress:p,autoFocus:h,className:g,classNames:m,allowTextSelectionOnPress:x=!0,...v}=i,$=zt(l),C=c||(e.isPressable?"button":"div"),E=typeof C=="string",T=(r=(t=e.disableAnimation)!=null?t:s?.disableAnimation)!=null?r:!1,k=(o=(n=e.disableRipple)!=null?n:s?.disableRipple)!=null?o:!1,D=Ke(m?.base,g),{onClear:P,onPress:V,ripples:F}=vg(),y=f.useCallback(W=>{k||T||$.current&&V(W)},[k,T,$,V]),{buttonProps:M,isPressed:A}=hg({onPress:Fr(p,y),elementType:c,isDisabled:!e.isPressable,onClick:d,allowTextSelectionOnPress:x,...v},$),{hoverProps:I,isHovered:N}=kn({isDisabled:!e.isHoverable,...v}),{isFocusVisible:w,isFocused:S,focusProps:_}=In({autoFocus:h}),B=f.useMemo(()=>Zd({...a,disableAnimation:T}),[nn(a),T]),L=f.useMemo(()=>({slots:B,classNames:m,disableAnimation:T,isDisabled:e.isDisabled,isFooterBlurred:e.isFooterBlurred,fullWidth:e.fullWidth}),[B,m,e.isDisabled,e.isFooterBlurred,T,e.fullWidth]),K=f.useCallback((W={})=>({ref:$,className:B.base({class:D}),tabIndex:e.isPressable?0:-1,"data-hover":pe(N),"data-pressed":pe(A),"data-focus":pe(S),"data-focus-visible":pe(w),"data-disabled":pe(e.isDisabled),...mt(e.isPressable?{...M,..._,role:"button"}:{},e.isHoverable?I:{},ct(v,{enabled:E}),ct(W))}),[$,B,D,E,e.isPressable,e.isHoverable,e.isDisabled,N,A,w,M,_,I,v]),z=f.useCallback(()=>({ripples:F,onClear:P}),[F,P]);return{context:L,domRef:$,Component:C,classNames:m,children:u,isHovered:N,isPressed:A,disableAnimation:T,isPressable:e.isPressable,isHoverable:e.isHoverable,disableRipple:k,handlePress:y,isFocusVisible:w,getCardProps:K,getRippleProps:z}}var Cb=Re((e,t)=>{const{children:r,context:n,Component:o,isPressable:s,disableAnimation:i,disableRipple:a,getCardProps:l,getRippleProps:c}=Q5({...e,ref:t});return b.jsxs(o,{...l(),children:[b.jsx(Y5,{value:n,children:r}),s&&!i&&!a&&b.jsx(gg,{...c()})]})});Cb.displayName="HeroUI.Card";var Sb=Cb;function e3(e){let t=ct(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function t3(e){const{as:t,className:r,orientation:n,...o}=e;let s=t||"hr";s==="hr"&&n==="vertical"&&(s="div");const{separatorProps:i}=e3({elementType:typeof s=="string"?s:"hr",orientation:n}),a=f.useMemo(()=>Wd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...i,...o,...c}),[a,n,i,o]);return{Component:s,getDividerProps:l}}var Tb=Re((e,t)=>{const{Component:r,getDividerProps:n}=t3({...e});return b.jsx(r,{ref:t,...n()})});Tb.displayName="HeroUI.Divider";var kb=Tb;function r3(e={}){const{onLoad:t,onError:r,ignoreFallback:n,src:o,crossOrigin:s,srcSet:i,sizes:a,loading:l,shouldBypassImageLoad:c=!1}=e,u=Gw(),d=f.useRef(u?new Image:null),[p,h]=f.useState("pending");f.useEffect(()=>{d.current&&(d.current.onload=x=>{g(),h("loaded"),t?.(x)},d.current.onerror=x=>{g(),h("failed"),r?.(x)})},[d.current]);const g=()=>{d.current&&(d.current.onload=null,d.current.onerror=null,d.current=null)},m=f.useCallback(()=>{if(!o)return"pending";if(n||c)return"loaded";const x=new Image;return x.src=o,s&&(x.crossOrigin=s),i&&(x.srcset=i),a&&(x.sizes=a),l&&(x.loading=l),d.current=x,x.complete&&x.naturalWidth?"loaded":"loading"},[o,s,i,a,t,r,l,c]);return Mn(()=>{u&&h(m())},[u,m]),n?"loaded":p}function n3(e){var t,r;const n=gt(),[o,s]=Bt(e,Hd.variantKeys),{ref:i,as:a,src:l,className:c,classNames:u,loading:d,isBlurred:p,fallbackSrc:h,isLoading:g,disableSkeleton:m=!!h,removeWrapper:x=!1,onError:v,onLoad:$,srcSet:C,sizes:E,crossOrigin:T,...k}=o,D=r3({src:l,loading:d,onError:v,onLoad:$,ignoreFallback:!1,srcSet:C,sizes:E,crossOrigin:T,shouldBypassImageLoad:a!==void 0}),P=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,V=D==="loaded"&&!g,F=D==="loading"||g,y=e.isZoomed,M=a||"img",A=zt(i),{w:I,h:N}=f.useMemo(()=>({w:o.width?typeof o.width=="number"?`${o.width}px`:o.width:"fit-content",h:o.height?typeof o.height=="number"?`${o.height}px`:o.height:"auto"}),[o?.width,o?.height]),w=(!l||!V)&&!!h,S=F&&!m,_=f.useMemo(()=>Hd({...s,disableAnimation:P,showSkeleton:S}),[nn(s),P,S]),B=Ke(c,u?.img),L=(W={})=>{const U=Ke(B,W?.className);return{src:l,ref:A,"data-loaded":pe(V),className:_.img({class:U}),loading:d,srcSet:C,sizes:E,crossOrigin:T,...k,style:{...k?.height&&{height:N},...W.style,...k.style}}},K=f.useCallback(()=>{const W=w?{backgroundImage:`url(${h})`}:{};return{className:_.wrapper({class:u?.wrapper}),style:{...W,maxWidth:I}}},[_,w,h,u?.wrapper,I]),z=f.useCallback(()=>({src:l,"aria-hidden":pe(!0),className:_.blurredImg({class:u?.blurredImg})}),[_,l,u?.blurredImg]);return{Component:M,domRef:A,slots:_,classNames:u,isBlurred:p,disableSkeleton:m,fallbackSrc:h,removeWrapper:x,isZoomed:y,isLoading:F,getImgProps:L,getWrapperProps:K,getBlurredImgProps:z}}var Ib=Re((e,t)=>{const{Component:r,domRef:n,slots:o,classNames:s,isBlurred:i,isZoomed:a,fallbackSrc:l,removeWrapper:c,disableSkeleton:u,getImgProps:d,getWrapperProps:p,getBlurredImgProps:h}=n3({...e,ref:t}),g=b.jsx(r,{ref:n,...d()});if(c)return g;const m=b.jsx("div",{className:o.zoomedWrapper({class:s?.zoomedWrapper}),children:g});return i?b.jsxs("div",{...p(),children:[a?m:g,f.cloneElement(g,h())]}):a||!u||l?b.jsxs("div",{...p(),children:[" ",a?m:g]}):g});Ib.displayName="HeroUI.Image";var sa=Ib;function _b(e,t={}){const r="mobiel-s3.imgix.net",n="mobiel-content.imgix.net",o="mobiel-postpaid.imgix.net",s="mobiel-assets.imgix.net",i="mobiel-frontend.imgix.net",a="?"+Object.keys(t).map(u=>`${u}=${encodeURIComponent(t[u])}`).join("&");if(e.includes(".imgix.net")||e.includes("img.youtube.com"))return`${e}${a}`;let l="",c=e.replace(/^https?:\/\/[\w-.]+\//,"/").replace(/\?.*$/,"");return Mb(e)?l=r:ia(e)&&c.includes("mobiel-nl-content")?l=n:ia(e)&&c.includes("mobiel-nl-postpaid")?l=o:Db(e)?l=s:l=i,ia(e)&&(c=c.replace(/\/mobiel-nl-(postpaid|content)(-staging)?/,"")),`https://${l}${c}${a}`}function Mb(e){return e&&e.indexOf("s3.amazonaws.com")!==-1}function ia(e){return e&&e.indexOf("storage.googleapis.com")!==-1}function Db(e){return e&&(e.indexOf("product_versions/images")!==-1||e.indexOf("product_images/images")!==-1||e.indexOf("brands/images")!==-1||e.indexOf("brand_pages/banners")!==-1||e.indexOf("categories/images")!==-1)}function Ab(e){return e?.includes(".imgix.net")||e?.includes("img.youtube.com")||Mb(e)||Db(e)||ia(e)||e?.includes("/assets/")&&!e.includes("localhost")}function o3(e,t="auto",r="auto",n="none"){return Ab(e)?_b(e,{w:t,h:r,trim:n,auto:"compress,format",q:95}):e}function s3(e,t="auto",r="auto",n="none"){return Ab(e)?[1,2,3,4].map(i=>`${_b(e,{w:t,h:r,dpr:i,trim:n,auto:"compress,format",q:95})} ${i}x`).join(", "):""}function Tc(){return f.useMemo(()=>[o3,s3],[])}function Nb({hasProduct:e,deviceDiscount:t,tcoPerMonth:r,horizontal:n,classNames:o}){return b.jsxs("div",{className:j("px-3 py-2 bg-primary-50 text-xs font-medium text-primary-600 flex items-center gap-3",n&&"rounded-lg",n&&e&&"mb-4",o?.base),children:[t&&b.jsxs("div",{className:j("flex items-center gap-1",o?.deviceDiscount),children:[b.jsx(LT,{size:16}),t," toestelkorting"]}),b.jsxs("div",{className:j("flex items-center gap-1",o?.averagePrice),children:[b.jsx(MT,{size:16}),"gem. ",r," /mnd"]})]})}function Ob({monthlyFeePromotionText:e,monthlyFee:t,productPrice:r,classNames:n}){return b.jsxs("div",{className:j(n?.base),children:[e&&b.jsx("div",{className:j("text-sm text-default-400 whitespace-nowrap",n?.promotionText),children:e}),b.jsxs("div",{className:j("flex items-end gap-1",n?.monthlyFee),children:[b.jsx("div",{className:j("text-3xl font-extrabold tracking-tighter text-foreground leading-none",n?.monthlyFeeValue),children:t}),b.jsx("div",{className:j("text-sm text-foreground leading-none",n?.monthlyFeeLabel),children:"/mnd"})]}),r&&b.jsxs("div",{className:j("text-sm text-foreground",n?.productPrice),children:["+ ",b.jsx("b",{children:r})," eenmalig"]})]})}function Lb({title:e,subtitle:t,imageUrl:r,imageAlt:n,specifications:o,stockStatus:s,reviewCount:i,reviewScore:a,classNames:l,horizontal:c}){const[u,d]=Tc();return b.jsxs("div",{className:j("w-full mb-3",l?.base),children:[!c&&b.jsx(sa,{alt:n,height:200,src:u(r,200,200),srcSet:d(r,200,200),width:200,classNames:{wrapper:j("mb-6 mt-3 mx-auto flex shrink-0",l?.imageWrapper),img:j("aspect-square",l?.image)}}),b.jsxs("div",{className:j(c&&"flex justify-between"),children:[b.jsxs("div",{children:[b.jsx("div",{className:j("text-lg font-semibold text-foreground leading-none",l?.subtitle),children:t}),b.jsx("div",{className:j("text-2xl font-bold text-foreground",l?.title),children:e})]}),c&&b.jsx(sa,{alt:n,height:60,src:u(r,120,60),srcSet:d(r,120,60),width:120,classNames:{wrapper:j("flex shrink-0",l?.imageWrapper),img:j("aspect-2/1",l?.image)}})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("div",{className:j("text-sm",s==="in_stock"?"text-success":"text-foreground",l?.stockStatus),children:s==="in_stock"?"Op voorraad":"Niet leverbaar"}),b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(VT,{size:16,filled:!0,className:"text-secondary"}),b.jsx("div",{className:j("font-semibold text-foreground",l?.reviewScore),children:a}),b.jsxs("span",{className:j("text-default-400",l?.reviewCount),children:["(",i,")"]})]})]}),o&&b.jsx("div",{className:j("flex text-sm",l?.specifications),children:o.map((p,h)=>b.jsxs("div",{className:"text-default-400",children:[p.title,h<o.length-1&&b.jsx("span",{className:"mx-1",children:"•"})]},p.title))})]})}function Fb({specialPromotions:e,modificationPromotions:t,classNames:r}){return b.jsxs("div",{className:j(r?.base),children:[e.map(n=>b.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[b.jsx(dg,{size:24,className:j("shrink-0",r?.specialPromotionIcon)}),n]},n)),t.map(n=>b.jsxs("div",{className:j("flex items-center gap-1 text-foreground text-base",r?.item),children:[b.jsx(dg,{size:24,className:j("shrink-0",r?.modificationPromotionIcon)}),n]},n))]})}function Vb({title:e,subtitle:t,imageUrl:r,imageAlt:n,hasProduct:o,horizontal:s,classNames:i}){const[a,l]=Tc(),c=o?75:100,u=o?35:50;return b.jsxs("div",{className:j("flex justify-between w-full pb-3",s&&"w-fit",i?.base),children:[b.jsxs("div",{children:[b.jsx("div",{className:j(o?"text-2xl font-extrabold":"text-3xl font-extrabold","text-foreground",i?.title),children:e}),b.jsx("div",{className:j(o?"text-base":"text-lg","leading-none text-foreground",i?.subtitle),children:t})]}),!s&&b.jsx(sa,{alt:n,height:u,src:a(r,c,u),srcSet:l(r,c,u),width:c,classNames:{wrapper:j("flex shrink-0",i?.imageWrapper),img:j("aspect-2/1",i?.image)}})]})}function kc({slug:e,size:t=16}){switch(e){case"contract-term":return b.jsx(AT,{size:t});case"data-speed-down":return b.jsx(FT,{size:t});case"provider-network":return b.jsx(_T,{size:t});case"data-eu":return b.jsx(jT,{size:t});case"internet-speed":return b.jsx(IT,{size:t});case"channels":return b.jsx(NT,{size:t});case"tv-receiver":return b.jsx(OT,{size:t});default:return null}}function i3({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:i,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:g,monthlyFeePromotionText:m,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:C,productReviewCount:E,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:P,...V}){const F=!!(r&&n&&o&&s),[y,M]=Tc();return b.jsx(Sb,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("flex flex-row shadow-lg rounded-lg",P?.card),children:b.jsxs($b,{className:j("py-0 px-6 grid grid-cols-[max-content_1fr] gap-6",P?.body),children:[b.jsxs("div",{className:"flex flex-row",children:[b.jsx(sa,{alt:F?s:c,height:F?200:50,src:F?y(o??"",200,200):y(l,100,50),srcSet:F?M(o??"",200,200):M(l,100,50),width:F?200:100,classNames:{wrapper:j("flex shrink-0 mt-6 mr-6",P?.imageWrapper),img:j(F?"aspect-square":"aspect-2/1",P?.image)}}),b.jsx(kb,{orientation:"vertical"})]}),b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:j("pt-6 flex gap-6 justify-between",F&&"flex-col gap-4",P?.header),children:[F&&b.jsx(Lb,{imageAlt:c,imageUrl:l,reviewCount:E,reviewScore:T,specifications:$,stockStatus:C,subtitle:n||"",title:r||"",classNames:{base:j(P?.productSection?.base),imageWrapper:j(P?.productSection?.imageWrapper),image:j(P?.productSection?.image),title:j(P?.productSection?.title),subtitle:j(P?.productSection?.subtitle),stockStatus:j(P?.productSection?.stockStatus),reviewScore:j(P?.productSection?.reviewScore),reviewCount:j(P?.productSection?.reviewCount),specifications:j(P?.productSection?.specifications)},horizontal:!0}),b.jsxs("div",{className:j(F&&u&&"flex gap-6 justify-between"),children:[b.jsx(Vb,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:i,horizontal:!0,classNames:{base:j(P?.propositionHeader?.base),title:j(P?.propositionHeader?.title),subtitle:j(P?.propositionHeader?.subtitle)}}),F&&u&&b.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-0 gap-x-3 h-fit mt-2",P?.specifications),children:u.map(A=>b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(kc,{slug:A.slug}),A.title]},A.title))})]}),b.jsxs("div",{className:j("flex flex-col items-end gap-3",F&&"items-start"),children:[!F&&u&&b.jsx("div",{className:j("grid grid-cols-2 gap-x-3 lg:grid-cols-[repeat(4,max-content)] text-default-400 mb-0",u.length===2&&"lg:grid-cols-[repeat(2,max-content)]",P?.specifications),children:u.map(A=>b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(kc,{slug:A.slug}),A.title]},A.title))}),b.jsx(Nb,{deviceDiscount:D,tcoPerMonth:p,horizontal:!0,hasProduct:F,classNames:{base:j(P?.footerInfo?.base),averagePrice:j(P?.footerInfo?.averagePrice),deviceDiscount:j(P?.footerInfo?.deviceDiscount)}})]})]}),b.jsxs("div",{className:j(P?.body),children:[v&&b.jsx(ec,{className:j("mb-1 text-secondary text-sm",P?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),b.jsx(Fb,{specialPromotions:h,modificationPromotions:g,classNames:{base:j(P?.promotionsList?.base),item:j(P?.promotionsList?.item),specialPromotionIcon:j("text-success",P?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",P?.promotionsList?.modificationPromotionIcon)}})]}),b.jsxs("div",{className:j('grid self-end grid-cols-[1fr_max-content] [grid-template-areas:"delivery_delivery""price_button"] pt-3 pb-6 lg:grid-cols-[148px_max-content] lg:justify-end lg:pt-1',F&&"lg:grid-cols-[1fr_max-content]",P?.footer),children:[x&&b.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm [grid-area:delivery]",P?.deliveryText),children:x}),b.jsx(Ob,{monthlyFeePromotionText:m,productPrice:k,monthlyFee:d,classNames:{base:j("[grid-area:price] content-end",P?.pricingSection?.base),productPrice:j(P?.pricingSection?.productPrice),monthlyFee:j(P?.pricingSection?.monthlyFee),monthlyFeeValue:j(P?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(P?.pricingSection?.monthlyFeeLabel),promotionText:j(P?.pricingSection?.promotionText)}}),b.jsx(rs,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6 [grid-area:button]",e&&"pointer-events-none",P?.button),endContent:b.jsx(cg,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]})]})})}function a3({disabled:e,href:t,productTitle:r,productSubtitle:n,productImageUrl:o,productImageAlt:s,propositionTitle:i,propositionSubtitle:a,propositionImageUrl:l,propositionImageAlt:c,propositionSpecifications:u,monthlyFee:d,tcoPerMonth:p,specialPromotions:h,modificationPromotions:g,monthlyFeePromotionText:m,deliveryText:x,urgentText:v,productSpecifications:$,productStockStatus:C,productReviewCount:E,productReviewScore:T,productPrice:k,deviceDiscount:D,classNames:P,...V}){const F=!!(r&&n&&o&&s);return b.jsxs(Sb,{...V,isDisabled:e,as:"a",href:e?void 0:t,target:"_blank",className:j("rounded-lg shadow-lg",P?.card),children:[b.jsxs(J5,{className:j("flex-col items-start text-start z-1",P?.header),children:[F&&b.jsx(Lb,{imageAlt:s||"",imageUrl:o||"",reviewCount:E,reviewScore:T,specifications:$,stockStatus:C,subtitle:n||"",title:r||"",classNames:{base:j(P?.productSection?.base),image:j(P?.productSection?.image),title:j(P?.productSection?.title),subtitle:j(P?.productSection?.subtitle),stockStatus:j(P?.productSection?.stockStatus),reviewScore:j(P?.productSection?.reviewScore),reviewCount:j(P?.productSection?.reviewCount),specifications:j(P?.productSection?.specifications)}}),b.jsx(Vb,{hasProduct:F,imageAlt:c,imageUrl:l,subtitle:a,title:i,classNames:{base:j(P?.propositionHeader?.base),title:j(P?.propositionHeader?.title),subtitle:j(P?.propositionHeader?.subtitle),imageWrapper:j(P?.propositionHeader?.imageWrapper),image:j(P?.propositionHeader?.image)}})]}),b.jsxs($b,{className:j("py-0",P?.body),children:[!F&&u&&b.jsx("div",{className:j("grid grid-cols-2 text-default-400 mb-3",P?.specifications),children:u.map(y=>b.jsxs("div",{className:"text-sm flex items-center gap-1",children:[b.jsx(kc,{slug:y.slug}),y.title]},y.title))}),v&&b.jsx(ec,{className:j("mb-1 text-secondary text-sm",P?.urgentChip),color:"secondary",size:"sm",variant:"bordered",children:v}),b.jsx(Fb,{specialPromotions:h,modificationPromotions:g,classNames:{base:j(P?.promotionsList?.base),item:j(P?.promotionsList?.item),specialPromotionIcon:j("text-success",P?.promotionsList?.specialPromotionIcon),modificationPromotionIcon:j("text-[#6947e0]",P?.promotionsList?.modificationPromotionIcon)}})]}),b.jsx(kb,{className:"mt-3"}),b.jsxs(X5,{className:j("flex-col justify-between items-start text-start",P?.footer),children:[x&&b.jsx("div",{className:j("text-success text-base mb-3 lg:text-sm",P?.deliveryText),children:x}),b.jsxs("div",{className:"flex justify-between items-end w-full",children:[b.jsx(Ob,{monthlyFeePromotionText:m,productPrice:k,monthlyFee:d,classNames:{base:j(P?.pricingSection?.base),productPrice:j(P?.pricingSection?.productPrice),monthlyFee:j(P?.pricingSection?.monthlyFee),monthlyFeeValue:j(P?.pricingSection?.monthlyFeeValue),monthlyFeeLabel:j(P?.pricingSection?.monthlyFeeLabel),promotionText:j(P?.pricingSection?.promotionText)}}),b.jsx(rs,{color:"secondary",size:"lg",radius:"full",className:j("gap-1 pl-6",e&&"pointer-events-none",P?.button),endContent:b.jsx(cg,{size:24}),disableAnimation:!0,disableRipple:!0,children:"Bekijk"})]})]}),b.jsx(Nb,{deviceDiscount:D,tcoPerMonth:p,classNames:{base:j(P?.footerInfo?.base),averagePrice:j(P?.footerInfo?.averagePrice),deviceDiscount:j(P?.footerInfo?.deviceDiscount)}})]})}function fs({horizontal:e,...t}){return e?b.jsx(i3,{...t}):b.jsx(a3,{...t})}function l3(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:s=!1,type:i="text",validationBehavior:a="aria"}=e,[l,c]=Cr(e.value,e.defaultValue||"",e.onChange),{focusableProps:u}=En(e,t),d=na({...e,value:l}),{isInvalid:p,validationErrors:h,validationDetails:g}=d.displayValidation,{labelProps:m,fieldProps:x,descriptionProps:v,errorMessageProps:$}=zv({...e,isInvalid:p,errorMessage:e.errorMessage||h}),C=cr(e,{labelable:!0});const E={type:i,pattern:e.pattern};let[T]=f.useState(l);var k;return ri(t,(k=e.defaultValue)!==null&&k!==void 0?k:T,c),pb(e,d,t),f.useEffect(()=>{if(t.current instanceof Ot(t.current).HTMLTextAreaElement){let D=t.current;Object.defineProperty(D,"defaultValue",{get:()=>D.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:_e(C,r==="input"?E:void 0,{disabled:n,readOnly:s,required:o&&a==="native","aria-required":o&&a==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],"aria-controls":e["aria-controls"],value:l,onChange:D=>c(D.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,form:e.form,placeholder:e.placeholder,inputMode:e.inputMode,autoCorrect:e.autoCorrect,spellCheck:e.spellCheck,[parseInt(f.version,10)>=17?"enterKeyHint":"enterkeyhint"]:e.enterKeyHint,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...u,...x}),descriptionProps:v,errorMessageProps:$,isInvalid:p,validationErrors:h,validationDetails:g}}function u3(e){var t,r,n,o,s,i,a;const l=gt(),{validationBehavior:c}=oa(ds)||{},[u,d]=Bt(e,Bd.variantKeys),{ref:p,as:h,type:g,label:m,baseRef:x,wrapperRef:v,description:$,className:C,classNames:E,autoFocus:T,startContent:k,endContent:D,onClear:P,onChange:V,validationState:F,validationBehavior:y=(t=c??l?.validationBehavior)!=null?t:"native",innerWrapperRef:M,onValueChange:A=()=>{},...I}=u,N=f.useCallback(re=>{A(re??"")},[A]),[w,S]=f.useState(!1),_=h||"div",B=(n=(r=e.disableAnimation)!=null?r:l?.disableAnimation)!=null?n:!1,L=zt(p),K=zt(x),z=zt(v),W=zt(M),[U,ee]=Cr(u.value,(o=u.defaultValue)!=null?o:"",N),G=g==="file",R=((a=(i=(s=L?.current)==null?void 0:s.files)==null?void 0:i.length)!=null?a:0)>0,me=["date","time","month","week","range"].includes(g),ue=!yx(U)||me||R,Q=ue||w,ie=g==="hidden",q=e.isMultiline,X=Ke(E?.base,C,ue?"is-filled":""),le=f.useCallback(()=>{var re;G?L.current.value="":ee(""),P?.(),(re=L.current)==null||re.focus()},[ee,P,G]);Mn(()=>{L.current&&ee(L.current.value)},[L.current]);const{labelProps:ae,inputProps:oe,isInvalid:be,validationErrors:Me,validationDetails:ye,descriptionProps:te,errorMessageProps:je}=l3({...e,validationBehavior:y,autoCapitalize:e.autoCapitalize,value:U,"aria-label":e.label?e["aria-label"]:Ua(e["aria-label"],e.placeholder),inputElementType:q?"textarea":"input",onChange:ee},L);G&&(delete oe.value,delete oe.onChange);const{isFocusVisible:xe,isFocused:We,focusProps:lt}=In({autoFocus:T,isTextInput:!0}),{isHovered:Te,hoverProps:Ge}=kn({isDisabled:!!e?.isDisabled}),{isHovered:pt,hoverProps:Ft}=kn({isDisabled:!!e?.isDisabled}),{focusProps:Oe,isFocusVisible:Ct}=In(),{focusWithinProps:It}=rg({onFocusWithinChange:S}),{pressProps:_t}=Ki({isDisabled:!!e?.isDisabled||!!e?.isReadOnly,onPress:le}),Wt=F==="invalid"||be,Ze=dT({labelPlacement:e.labelPlacement,label:m}),Ar=typeof u.errorMessage=="function"?u.errorMessage({isInvalid:Wt,validationErrors:Me,validationDetails:ye}):u.errorMessage||Me?.join(" "),lr=!!P||e.isClearable,Qr=!!m||!!$||!!Ar,Vt=!!u.placeholder,Ce=!!m,ze=!!$||!!Ar,Mt=Ze==="outside-left",$t=Ze==="outside-top",rr=Ze==="outside"||Mt||$t,_o=Ze==="inside",Nr=L.current?(!L.current.value||L.current.value===""||!U||U==="")&&Vt:!1,Ut=!!k,Vn=rr?Mt||$t||Vt||Ze==="outside"&&Ut:!1,jn=Ze==="outside"&&!Vt&&!Ut,qe=f.useMemo(()=>Bd({...d,isInvalid:Wt,labelPlacement:Ze,isClearable:lr,disableAnimation:B}),[nn(d),Wt,Ze,lr,Ut,B]),zn=f.useCallback((re={})=>({ref:K,className:qe.base({class:X}),"data-slot":"base","data-filled":pe(ue||Vt||Ut||Nr||G),"data-filled-within":pe(Q||Vt||Ut||Nr||G),"data-focus-within":pe(w),"data-focus-visible":pe(xe),"data-readonly":pe(e.isReadOnly),"data-focus":pe(We),"data-hover":pe(Te||pt),"data-required":pe(e.isRequired),"data-invalid":pe(Wt),"data-disabled":pe(e.isDisabled),"data-has-elements":pe(Qr),"data-has-helper":pe(ze),"data-has-label":pe(Ce),"data-has-value":pe(!Nr),"data-hidden":pe(ie),...It,...re}),[qe,X,ue,We,Te,pt,Wt,ze,Ce,Qr,Nr,Ut,w,xe,Q,Vt,It,ie,e.isReadOnly,e.isRequired,e.isDisabled]),Bn=f.useCallback((re={})=>({"data-slot":"label",className:qe.label({class:E?.label}),...mt(ae,Ft,re)}),[qe,pt,ae,E?.label]),en=f.useCallback(re=>{re.key==="Escape"&&U&&(lr||P)&&!e.isReadOnly&&(ee(""),P?.())},[U,ee,P,lr,e.isReadOnly]),ke=f.useCallback((re={})=>({"data-slot":"input","data-filled":pe(ue),"data-filled-within":pe(Q),"data-has-start-content":pe(Ut),"data-has-end-content":pe(!!D),"data-type":g,className:qe.input({class:Ke(E?.input,ue?"is-filled":"",q?"pe-0":"",g==="password"?"[&::-ms-reveal]:hidden":"")}),...mt(lt,oe,ct(I,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(oe))}),re),"aria-readonly":pe(e.isReadOnly),onChange:Fr(oe.onChange,V),onKeyDown:Fr(oe.onKeyDown,re.onKeyDown,en),ref:L}),[qe,U,lt,oe,I,ue,Q,Ut,D,E?.input,e.isReadOnly,e.isRequired,V,en]),Mo=f.useCallback((re={})=>({ref:z,"data-slot":"input-wrapper","data-hover":pe(Te||pt),"data-focus-visible":pe(xe),"data-focus":pe(We),className:qe.inputWrapper({class:Ke(E?.inputWrapper,ue?"is-filled":"")}),...mt(re,Ge),onClick:Ae=>{L.current&&Ae.currentTarget===Ae.target&&L.current.focus()},style:{cursor:"text",...re.style}}),[qe,Te,pt,xe,We,U,E?.inputWrapper]),Rn=f.useCallback((re={})=>({...re,ref:W,"data-slot":"inner-wrapper",onClick:Ae=>{L.current&&Ae.currentTarget===Ae.target&&L.current.focus()},className:qe.innerWrapper({class:Ke(E?.innerWrapper,re?.className)})}),[qe,E?.innerWrapper]),Cs=f.useCallback((re={})=>({...re,"data-slot":"main-wrapper",className:qe.mainWrapper({class:Ke(E?.mainWrapper,re?.className)})}),[qe,E?.mainWrapper]),O=f.useCallback((re={})=>({...re,"data-slot":"helper-wrapper",className:qe.helperWrapper({class:Ke(E?.helperWrapper,re?.className)})}),[qe,E?.helperWrapper]),J=f.useCallback((re={})=>({...re,...te,"data-slot":"description",className:qe.description({class:Ke(E?.description,re?.className)})}),[qe,E?.description]),se=f.useCallback((re={})=>({...re,...je,"data-slot":"error-message",className:qe.errorMessage({class:Ke(E?.errorMessage,re?.className)})}),[qe,je,E?.errorMessage]),ve=f.useCallback((re={})=>({...re,type:"button",tabIndex:-1,disabled:e.isDisabled,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":pe(Ct),className:qe.clearButton({class:Ke(E?.clearButton,re?.className)}),...mt(_t,Oe)}),[qe,Ct,_t,Oe,E?.clearButton]);return{Component:_,classNames:E,domRef:L,label:m,description:$,startContent:k,endContent:D,labelPlacement:Ze,isClearable:lr,hasHelper:ze,hasStartContent:Ut,isLabelOutside:Vn,isOutsideLeft:Mt,isOutsideTop:$t,isLabelOutsideAsPlaceholder:jn,shouldLabelBeOutside:rr,shouldLabelBeInside:_o,hasPlaceholder:Vt,isInvalid:Wt,errorMessage:Ar,getBaseProps:zn,getLabelProps:Bn,getInputProps:ke,getMainWrapperProps:Cs,getInputWrapperProps:Mo,getInnerWrapperProps:Rn,getHelperWrapperProps:O,getDescriptionProps:J,getErrorMessageProps:se,getClearButtonProps:ve}}var jb=Re((e,t)=>{const{Component:r,label:n,description:o,isClearable:s,startContent:i,endContent:a,labelPlacement:l,hasHelper:c,isOutsideLeft:u,isOutsideTop:d,shouldLabelBeOutside:p,errorMessage:h,isInvalid:g,getBaseProps:m,getLabelProps:x,getInputProps:v,getInnerWrapperProps:$,getInputWrapperProps:C,getMainWrapperProps:E,getHelperWrapperProps:T,getDescriptionProps:k,getErrorMessageProps:D,getClearButtonProps:P}=u3({...e,ref:t}),V=n?b.jsx("label",{...x(),children:n}):null,F=f.useMemo(()=>s?b.jsx("button",{...P(),children:a||b.jsx(Qu,{})}):a,[s,P]),y=f.useMemo(()=>{const I=g&&h;return!c||!(I||o)?null:b.jsx("div",{...T(),children:I?b.jsx("div",{...D(),children:h}):b.jsx("div",{...k(),children:o})})},[c,g,h,o,T,D,k]),M=f.useMemo(()=>b.jsxs("div",{...$(),children:[i,b.jsx("input",{...v()}),F]}),[i,F,v,$]),A=f.useMemo(()=>p?b.jsxs("div",{...E(),children:[b.jsxs("div",{...C(),children:[!u&&!d?V:null,M]}),y]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{...C(),children:[V,M]}),y]}),[l,y,p,V,M,h,o,E,C,D,k]);return b.jsxs(r,{...m(),children:[u||d?V:null,A]})});jb.displayName="HeroUI.Input";var ps=jb;class zb{*[Symbol.iterator](){yield*this.iterable}get size(){return this._size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);var n;return r&&(n=r.prevKey)!==null&&n!==void 0?n:null}getKeyAfter(t){let r=this.keyMap.get(t);var n;return r&&(n=r.nextKey)!==null&&n!==void 0?n:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){var r;return(r=this.keyMap.get(t))!==null&&r!==void 0?r:null}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return r?.childNodes||[]}constructor(t){this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let l of a.childNodes)r(l)};for(let a of t)r(a);let n=null,o=0,s=0;for(let[a,l]of this.keyMap)n?(n.nextKey=a,l.prevKey=n.key):(this.firstKey=a,l.prevKey=void 0),l.type==="item"&&(l.index=o++),(l.type==="section"||l.type==="item")&&s++,n=l,n.nextKey=void 0;this._size=s;var i;this.lastKey=(i=n?.key)!==null&&i!==void 0?i:null}}class ar extends Set{constructor(t,r,n){super(t),t instanceof ar?(this.anchorKey=r??t.anchorKey,this.currentKey=n??t.currentKey):(this.anchorKey=r??null,this.currentKey=n??null)}}function c3(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function d3(e){let{selectionMode:t="none",disallowEmptySelection:r=!1,allowDuplicateSelectionEvents:n,selectionBehavior:o="toggle",disabledBehavior:s="all"}=e,i=f.useRef(!1),[,a]=f.useState(!1),l=f.useRef(null),c=f.useRef(null),[,u]=f.useState(null),d=f.useMemo(()=>Bb(e.selectedKeys),[e.selectedKeys]),p=f.useMemo(()=>Bb(e.defaultSelectedKeys,new ar),[e.defaultSelectedKeys]),[h,g]=Cr(d,p,e.onSelectionChange),m=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[x,v]=f.useState(o);o==="replace"&&x==="toggle"&&typeof h=="object"&&h.size===0&&v("replace");let $=f.useRef(o);return f.useEffect(()=>{o!==$.current&&(v(o),$.current=o)},[o]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:x,setSelectionBehavior:v,get isFocused(){return i.current},setFocused(C){i.current=C,a(C)},get focusedKey(){return l.current},get childFocusStrategy(){return c.current},setFocusedKey(C,E="first"){l.current=C,c.current=E,u(C)},selectedKeys:h,setSelectedKeys(C){(n||!c3(C,h))&&g(C)},disabledKeys:m,disabledBehavior:s}}function Bb(e,t){return e?e==="all"?"all":new ar(e):t}function Rb(e){return null}Rb.getCollectionNode=function*(t,r){let{childItems:n,title:o,children:s}=t,i=t.title||t.children,a=t.textValue||(typeof i=="string"?i:"")||t["aria-label"]||"";!a&&!r?.suppressTextValueWarning&&process.env.NODE_ENV!=="production"&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:i,textValue:a,"aria-label":t["aria-label"],hasChildNodes:f3(t),*childNodes(){if(n)for(let l of n)yield{type:"item",value:l};else if(o){let l=[];f.Children.forEach(s,c=>{l.push({type:"item",element:c})}),yield*l}}}};function f3(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&f.Children.count(e.children)>0)}let p3=Rb;class h3{build(t,r){return this.context=r,Kb(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(f.isValidElement(r)&&r.type===f.Fragment)yield*this.iterateCollection({children:r.props.children,items:n});else if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");let o=0;for(let s of n)yield*this.getFullNode({value:s,index:o},{renderer:r}),o++}else{let o=[];f.Children.forEach(r,i=>{i&&o.push(i)});let s=0;for(let i of o){let a=this.getFullNode({element:i,index:s},{});for(let l of a)s++,yield l}}}getKey(t,r,n,o){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${o}${r.key}`;let s=r.value;if(s!=null){var i;let a=(i=s.key)!==null&&i!==void 0?i:s.id;if(a==null)throw new Error("No key found for item");return a}return o?`${o}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,o){if(f.isValidElement(t.element)&&t.element.type===f.Fragment){let x=[];f.Children.forEach(t.element.props.children,$=>{x.push($)});var s;let v=(s=t.index)!==null&&s!==void 0?s:0;for(const $ of x)yield*this.getFullNode({element:$,index:v++},r,n,o);return}let i=t.element;if(!i&&t.value&&r&&r.renderer){let x=this.cache.get(t.value);if(x&&(!x.shouldInvalidate||!x.shouldInvalidate(this.context))){x.index=t.index,x.parentKey=o?o.key:null,yield x;return}i=r.renderer(t.value)}if(f.isValidElement(i)){let x=i.type;if(typeof x!="function"&&typeof x.getCollectionNode!="function"){let E=i.type;throw new Error(`Unknown element <${E}> in collection.`)}let v=x.getCollectionNode(i.props,this.context);var a;let $=(a=t.index)!==null&&a!==void 0?a:0,C=v.next();for(;!C.done&&C.value;){let E=C.value;t.index=$;var l;let T=(l=E.key)!==null&&l!==void 0?l:null;T==null&&(T=E.element?null:this.getKey(i,t,r,n));let D=[...this.getFullNode({...E,key:T,index:$,wrapper:m3(t.wrapper,E.wrapper)},this.getChildState(r,E),n?`${n}${i.key}`:i.key,o)];for(let P of D){var c,u;P.value=(u=(c=E.value)!==null&&c!==void 0?c:t.value)!==null&&u!==void 0?u:null,P.value&&this.cache.set(P.value,P);var d;if(t.type&&P.type!==t.type)throw new Error(`Unsupported type <${Ic(P.type)}> in <${Ic((d=o?.type)!==null&&d!==void 0?d:"unknown parent type")}>. Only <${Ic(t.type)}> is supported.`);$++,yield P}C=v.next(D)}return}if(t.key==null||t.type==null)return;let p=this;var h,g;let m={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:(h=t.value)!==null&&h!==void 0?h:null,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:(g=t.textValue)!==null&&g!==void 0?g:"","aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes||!1,childNodes:Kb(function*(){if(!t.hasChildNodes||!t.childNodes)return;let x=0;for(let v of t.childNodes()){v.key!=null&&(v.key=`${m.key}${v.key}`);let $=p.getFullNode({...v,index:x},p.getChildState(r,v),m.key,m);for(let C of $)x++,yield C}})};yield m}constructor(){this.cache=new WeakMap}}function Kb(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function m3(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function Ic(e){return e[0].toUpperCase()+e.slice(1)}function g3(e,t,r){let n=f.useMemo(()=>new h3,[]),{children:o,items:s,collection:i}=e;return f.useMemo(()=>{if(i)return i;let l=n.build({children:o,items:s},r);return t(l)},[n,o,s,i,r,t])}function Wb(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function v3(e){return b3(e)}function b3(e,t){for(let r of e)return r}function _c(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...Ub(e,t),t],o=[...Ub(e,r),r],s=n.slice(0,o.length).findIndex((i,a)=>i!==o[a]);return s!==-1?(t=n[s],r=o[s],t.index-r.index):n.findIndex(i=>i===r)>=0?1:(o.findIndex(i=>i===t)>=0,-1)}function Ub(e,t){let r=[],n=t;for(;n?.parentKey!=null;)n=e.getItem(n.parentKey),n&&r.unshift(n);return r}const Hb=new WeakMap;function y3(e){let t=Hb.get(e);if(t!=null)return t;let r=0,n=o=>{for(let s of o)s.type==="section"?n(Wb(s,e)):s.type==="item"&&r++};return n(e),Hb.set(e,r),r}class Mc{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){if(this.state.selectionMode==="none")return!1;let r=this.getKey(t);return r==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(r):this.state.selectedKeys.has(r)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&_c(this.collection,o,t)<0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let o=this.collection.getItem(n);(!t||o&&_c(this.collection,o,t)>0)&&(t=o)}var r;return(r=t?.key)!==null&&r!==void 0?r:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n;if(this.state.selectedKeys==="all")n=new ar([r],r,r);else{let i=this.state.selectedKeys;var o;let a=(o=i.anchorKey)!==null&&o!==void 0?o:r;n=new ar(i,a,r);var s;for(let l of this.getKeyRange(a,(s=i.currentKey)!==null&&s!==void 0?s:r))n.delete(l);for(let l of this.getKeyRange(r,a))this.canSelectItem(l)&&n.add(l)}this.state.setSelectedKeys(n)}getKeyRange(t,r){let n=this.collection.getItem(t),o=this.collection.getItem(r);return n&&o?_c(this.collection,n,o)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){var n;if(!((n=this.layoutDelegate)===null||n===void 0)&&n.getKeyRange)return this.layoutDelegate.getKeyRange(t,r);let o=[],s=t;for(;s!=null;){let i=this.collection.getItem(s);if(i&&(i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&o.push(s),s===r)return o;s=this.collection.getKeyAfter(s)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r&&r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}let r=this.getKey(t);if(r==null)return;let n=new ar(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(r)?n.delete(r):this.canSelectItem(r)&&(n.add(r),n.anchorKey=r,n.currentKey=r),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none")return;let r=this.getKey(t);if(r==null)return;let n=this.canSelectItem(r)?new ar([r],r,r):new ar;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new ar;for(let n of t){let o=this.getKey(n);if(o!=null&&(r.add(o),this.selectionMode==="single"))break}this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n!=null;){if(this.canSelectItem(n)){var o;let i=this.collection.getItem(n);i?.type==="item"&&t.push(n);var s;i?.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r((s=(o=v3(Wb(i,this.collection)))===null||o===void 0?void 0:o.key)!==null&&s!==void 0?s:null)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new ar)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){var r;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||!(n==null||(r=n.props)===null||r===void 0)&&r.isDisabled||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var r,n;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.isDisabled))}isLink(t){var r,n;return!!(!((n=this.collection.getItem(t))===null||n===void 0||(r=n.props)===null||r===void 0)&&r.href)}getItemProps(t){var r;return(r=this.collection.getItem(t))===null||r===void 0?void 0:r.props}withCollection(t){return new Mc(t,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(t,r,n){this.collection=t,this.state=r;var o;this.allowsCellSelection=(o=n?.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null,this.layoutDelegate=n?.layoutDelegate||null}}function Gb(e){let{filter:t,layoutDelegate:r}=e,n=d3(e),o=f.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=f.useCallback(c=>t?new zb(t(c)):new zb(c),[t]),i=f.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),a=g3(e,s,i),l=f.useMemo(()=>new Mc(a,n,{layoutDelegate:r}),[a,n,r]);return x3(a,l),{collection:a,disabledKeys:o,selectionManager:l}}function x3(e,t){const r=f.useRef(null);f.useEffect(()=>{if(t.focusedKey!=null&&!e.getItem(t.focusedKey)&&r.current){const u=r.current.getItem(t.focusedKey),d=[...r.current.getKeys()].map(v=>{const $=r.current.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null),p=[...e.getKeys()].map(v=>{const $=e.getItem(v);return $?.type==="item"?$:null}).filter(v=>v!==null);var n,o;const h=((n=d?.length)!==null&&n!==void 0?n:0)-((o=p?.length)!==null&&o!==void 0?o:0);var s,i,a;let g=Math.min(h>1?Math.max(((s=u?.index)!==null&&s!==void 0?s:0)-h+1,0):(i=u?.index)!==null&&i!==void 0?i:0,((a=p?.length)!==null&&a!==void 0?a:0)-1),m=null,x=!1;for(;g>=0;){if(!t.isDisabled(p[g].key)){m=p[g];break}if(g<p.length-1&&!x)g++;else{x=!0;var l,c;g>((l=u?.index)!==null&&l!==void 0?l:0)&&(g=(c=u?.index)!==null&&c!==void 0?c:0),g--}}t.setFocusedKey(m?m.key:null)}r.current=e},[e,t])}function w3(e){const{collection:t,disabledKeys:r,selectionManager:n,selectionManager:{setSelectedKeys:o,selectedKeys:s,selectionMode:i}}=Gb(e),a=f.useMemo(()=>!e.isLoading&&s.size!==0?Array.from(s).filter(Boolean).filter(c=>!t.getItem(c)):[],[s,t]),l=s.size!==0?Array.from(s).map(c=>t.getItem(c)).filter(Boolean):null;return a.length&&console.warn(`Select: Keys "${a.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:r,selectionManager:n,selectionMode:i,selectedKeys:s,setSelectedKeys:o.bind(n),selectedItems:l}}function $3(e){let t=ea(e),[r,n]=f.useState(null),[o,s]=f.useState([]),i=()=>{s([]),t.close()};return{focusStrategy:r,...t,open(c=null){n(c),t.open()},toggle(c=null){n(c),t.toggle()},close(){i()},expandedKeysStack:o,openSubmenu:(c,u)=>{s(d=>u>d.length?d:[...d.slice(0,u),c])},closeSubmenu:(c,u)=>{s(d=>d[u]===c?d.slice(0,u):d)}}}function E3({validate:e,validationBehavior:t,...r}){const[n,o]=f.useState(!1),[s,i]=f.useState(null),a=$3(r),l=w3({...r,onSelectionChange:d=>{r.onSelectionChange!=null&&(d==="all"?r.onSelectionChange(new Set(l.collection.getKeys())):r.onSelectionChange(d)),r.selectionMode==="single"&&a.close()}}),c=Qv({...r,validationBehavior:t,validate:d=>{if(!e)return;const p=Array.from(d);return e(r.selectionMode==="single"?p[0]:p)},value:l.selectedKeys}),u=l.collection.size===0&&r.hideEmptyContent;return{...c,...l,...a,focusStrategy:s,close(){a.close()},open(d=null){u||(i(d),a.open())},toggle(d=null){u||(i(d),a.toggle())},isFocused:n,setFocused:o}}var Zb={};Zb={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var qb={};qb={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Yb={};Yb={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Xb={};Xb={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Jb={};Jb={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Qb={};Qb={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var e0={};e0={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var t0={};t0={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var r0={};r0={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var n0={};n0={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var o0={};o0={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var s0={};s0={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var i0={};i0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var a0={};a0={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var l0={};l0={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var u0={};u0={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var c0={};c0={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var d0={};d0={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var f0={};f0={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var p0={};p0={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var h0={};h0={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var m0={};m0={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var g0={};g0={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var v0={};v0={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var b0={};b0={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var y0={};y0={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var x0={};x0={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var w0={};w0={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var $0={};$0={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var E0={};E0={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var P0={};P0={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var C0={};C0={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var S0={};S0={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var T0={};T0={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var k0={};k0={"ar-AE":Zb,"bg-BG":qb,"cs-CZ":Yb,"da-DK":Xb,"de-DE":Jb,"el-GR":Qb,"en-US":e0,"es-ES":t0,"et-EE":r0,"fi-FI":n0,"fr-FR":o0,"he-IL":s0,"hr-HR":i0,"hu-HU":a0,"it-IT":l0,"ja-JP":u0,"ko-KR":c0,"lt-LT":d0,"lv-LV":f0,"nb-NO":p0,"nl-NL":h0,"pl-PL":m0,"pt-BR":g0,"pt-PT":v0,"ro-RO":b0,"ru-RU":y0,"sk-SK":x0,"sl-SI":w0,"sr-SP":$0,"sv-SE":E0,"tr-TR":P0,"uk-UA":C0,"zh-CN":S0,"zh-TW":T0};function P3(e){return e&&e.__esModule?e.default:e}function C3(e,t,r){let{type:n="menu",isDisabled:o,trigger:s="press"}=e,i=Nt(),{triggerProps:a,overlayProps:l}=Bg({type:n},t,r),c=h=>{if(!o&&!(s==="longPress"&&!h.altKey)&&r&&r.current)switch(h.key){case"Enter":case" ":if(s==="longPress"||h.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},u=jg(P3(k0),"@react-aria/menu"),{longPressProps:d}=Om({isDisabled:o||s!=="longPress",accessibilityDescription:u.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={preventFocusOnPress:!0,onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&(Yt(h.target),t.open(h.pointerType==="virtual"?"first":null))},onPress(h){h.pointerType==="touch"&&!o&&(Yt(h.target),t.toggle())}};return delete a.onPress,{menuTriggerProps:{...a,...s==="press"?p:d,id:i,onKeyDown:c},menuProps:{...l,"aria-labelledby":i,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function Dc(e){return L$()?e.altKey:e.ctrlKey}function aa(e,t){var r,n;let o=`[data-key="${CSS.escape(String(t))}"]`,s=(r=e.current)===null||r===void 0?void 0:r.dataset.collection;return s&&(o=`[data-collection="${CSS.escape(s)}"]${o}`),(n=e.current)===null||n===void 0?void 0:n.querySelector(o)}const I0=new WeakMap;function S3(e){let t=Nt();return I0.set(e,t),t}function T3(e){return I0.get(e)}const k3=1e3;function _0(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=f.useRef({search:"",timeout:void 0}).current,s=i=>{let a=I3(i.key);if(!(!a||i.ctrlKey||i.metaKey||!i.currentTarget.contains(i.target)||o.search.length===0&&a===" ")){if(a===" "&&o.search.trim().length>0&&(i.preventDefault(),"continuePropagation"in i||i.stopPropagation()),o.search+=a,t.getKeyForSearch!=null){let l=t.getKeyForSearch(o.search,r.focusedKey);l==null&&(l=t.getKeyForSearch(o.search)),l!=null&&(r.setFocusedKey(l),n&&n(l))}clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},k3)}};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?s:void 0}}}function I3(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function _3(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:o=!1,shouldFocusWrap:s=!1,disallowEmptySelection:i=!1,disallowSelectAll:a=!1,escapeKeyBehavior:l="clearSelection",selectOnFocus:c=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:d,allowsTabNavigation:p=!1,isVirtualized:h,scrollRef:g=n,linkBehavior:m="action"}=e,{direction:x}=ss(),v=fl(),$=S=>{var _;if(S.altKey&&S.key==="Tab"&&S.preventDefault(),!(!((_=n.current)===null||_===void 0)&&_.contains(S.target)))return;const B=(q,X)=>{if(q!=null){if(t.isLink(q)&&m==="selection"&&c&&!Dc(S)){Wn.flushSync(()=>{t.setFocusedKey(q,X)});let le=aa(n,q),ae=t.getItemProps(q);le&&v.open(le,S,ae.href,ae.routerOptions);return}if(t.setFocusedKey(q,X),t.isLink(q)&&m==="override")return;S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&!Dc(S)&&t.replaceSelection(q)}};switch(S.key){case"ArrowDown":if(r.getKeyBelow){var L,K,z;let q=t.focusedKey!=null?(L=r.getKeyBelow)===null||L===void 0?void 0:L.call(r,t.focusedKey):(K=r.getFirstKey)===null||K===void 0?void 0:K.call(r);q==null&&s&&(q=(z=r.getFirstKey)===null||z===void 0?void 0:z.call(r,t.focusedKey)),q!=null&&(S.preventDefault(),B(q))}break;case"ArrowUp":if(r.getKeyAbove){var W,U,ee;let q=t.focusedKey!=null?(W=r.getKeyAbove)===null||W===void 0?void 0:W.call(r,t.focusedKey):(U=r.getLastKey)===null||U===void 0?void 0:U.call(r);q==null&&s&&(q=(ee=r.getLastKey)===null||ee===void 0?void 0:ee.call(r,t.focusedKey)),q!=null&&(S.preventDefault(),B(q))}break;case"ArrowLeft":if(r.getKeyLeftOf){var G,R,me;let q=t.focusedKey!=null?(G=r.getKeyLeftOf)===null||G===void 0?void 0:G.call(r,t.focusedKey):null;q==null&&s&&(q=x==="rtl"?(R=r.getFirstKey)===null||R===void 0?void 0:R.call(r,t.focusedKey):(me=r.getLastKey)===null||me===void 0?void 0:me.call(r,t.focusedKey)),q!=null&&(S.preventDefault(),B(q,x==="rtl"?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){var ue,Q,ie;let q=t.focusedKey!=null?(ue=r.getKeyRightOf)===null||ue===void 0?void 0:ue.call(r,t.focusedKey):null;q==null&&s&&(q=x==="rtl"?(Q=r.getLastKey)===null||Q===void 0?void 0:Q.call(r,t.focusedKey):(ie=r.getFirstKey)===null||ie===void 0?void 0:ie.call(r,t.focusedKey)),q!=null&&(S.preventDefault(),B(q,x==="rtl"?"last":"first"))}break;case"Home":if(r.getFirstKey){if(t.focusedKey===null&&S.shiftKey)return;S.preventDefault();let q=r.getFirstKey(t.focusedKey,io(S));t.setFocusedKey(q),q!=null&&(io(S)&&S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"End":if(r.getLastKey){if(t.focusedKey===null&&S.shiftKey)return;S.preventDefault();let q=r.getLastKey(t.focusedKey,io(S));t.setFocusedKey(q),q!=null&&(io(S)&&S.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(q):c&&t.replaceSelection(q))}break;case"PageDown":if(r.getKeyPageBelow&&t.focusedKey!=null){let q=r.getKeyPageBelow(t.focusedKey);q!=null&&(S.preventDefault(),B(q))}break;case"PageUp":if(r.getKeyPageAbove&&t.focusedKey!=null){let q=r.getKeyPageAbove(t.focusedKey);q!=null&&(S.preventDefault(),B(q))}break;case"a":io(S)&&t.selectionMode==="multiple"&&a!==!0&&(S.preventDefault(),t.selectAll());break;case"Escape":l==="clearSelection"&&!i&&t.selectedKeys.size!==0&&(S.stopPropagation(),S.preventDefault(),t.clearSelection());break;case"Tab":if(!p){if(S.shiftKey)n.current.focus();else{let q=mr(n.current,{tabbable:!0}),X,le;do le=q.lastChild(),le&&(X=le);while(le);X&&!X.contains(document.activeElement)&&Yt(X)}break}}},C=f.useRef({top:0,left:0});ti(g,"scroll",h?void 0:()=>{var S,_,B,L;C.current={top:(B=(S=g.current)===null||S===void 0?void 0:S.scrollTop)!==null&&B!==void 0?B:0,left:(L=(_=g.current)===null||_===void 0?void 0:_.scrollLeft)!==null&&L!==void 0?L:0}});let E=S=>{if(t.isFocused){S.currentTarget.contains(S.target)||t.setFocused(!1);return}if(S.currentTarget.contains(S.target)){if(t.setFocused(!0),t.focusedKey==null){var _,B;let z=U=>{U!=null&&(t.setFocusedKey(U),c&&!t.isSelected(U)&&t.replaceSelection(U))},W=S.relatedTarget;var L,K;W&&S.currentTarget.compareDocumentPosition(W)&Node.DOCUMENT_POSITION_FOLLOWING?z((L=t.lastSelectedKey)!==null&&L!==void 0?L:(_=r.getLastKey)===null||_===void 0?void 0:_.call(r)):z((K=t.firstSelectedKey)!==null&&K!==void 0?K:(B=r.getFirstKey)===null||B===void 0?void 0:B.call(r))}else!h&&g.current&&(g.current.scrollTop=C.current.top,g.current.scrollLeft=C.current.left);if(t.focusedKey!=null&&g.current){let z=aa(n,t.focusedKey);z instanceof HTMLElement&&(!z.contains(document.activeElement)&&!d&&Yt(z),es()==="keyboard"&&rp(z,{containingElement:n.current}))}}},T=S=>{S.currentTarget.contains(S.relatedTarget)||t.setFocused(!1)},k=f.useRef(!1);ti(n,Y$,d?S=>{let{detail:_}=S;S.stopPropagation(),t.setFocused(!0),_?.focusStrategy==="first"&&(k.current=!0)}:void 0);let D=Ye(()=>{var S,_;let B=(_=(S=r.getFirstKey)===null||S===void 0?void 0:S.call(r))!==null&&_!==void 0?_:null;if(B==null){let L=Tt();Bm(n.current),Rm(L,null),t.collection.size>0&&(k.current=!1)}else t.setFocusedKey(B),k.current=!1});Xf(()=>{k.current&&D()},[t.collection,D]);let P=Ye(()=>{t.collection.size>0&&(k.current=!1)});Xf(()=>{P()},[t.focusedKey,P]),ti(n,q$,d?S=>{var _;S.stopPropagation(),t.setFocused(!1),!((_=S.detail)===null||_===void 0)&&_.clearFocusKey&&t.setFocusedKey(null)}:void 0);const V=f.useRef(o),F=f.useRef(!1);f.useEffect(()=>{if(V.current){var S,_;let K=null;var B;o==="first"&&(K=(B=(S=r.getFirstKey)===null||S===void 0?void 0:S.call(r))!==null&&B!==void 0?B:null);var L;o==="last"&&(K=(L=(_=r.getLastKey)===null||_===void 0?void 0:_.call(r))!==null&&L!==void 0?L:null);let z=t.selectedKeys;if(z.size){for(let W of z)if(t.canSelectItem(W)){K=W;break}}t.setFocused(!0),t.setFocusedKey(K),K==null&&!d&&n.current&&$n(n.current),t.collection.size>0&&(V.current=!1,F.current=!0)}});let y=f.useRef(t.focusedKey),M=f.useRef(null);f.useEffect(()=>{if(t.isFocused&&t.focusedKey!=null&&(t.focusedKey!==y.current||F.current)&&g.current&&n.current){let S=es(),_=aa(n,t.focusedKey);if(!(_ instanceof HTMLElement))return;(S==="keyboard"||F.current)&&(M.current&&cancelAnimationFrame(M.current),M.current=requestAnimationFrame(()=>{g.current&&(ep(g.current,_),S!=="virtual"&&rp(_,{containingElement:n.current}))}))}!d&&t.isFocused&&t.focusedKey==null&&y.current!=null&&n.current&&$n(n.current),y.current=t.focusedKey,F.current=!1}),f.useEffect(()=>()=>{M.current&&cancelAnimationFrame(M.current)},[]),ti(n,"react-aria-focus-scope-restore",S=>{S.preventDefault(),t.setFocused(!0)});let A={onKeyDown:$,onFocus:E,onBlur:T,onMouseDown(S){g.current===S.target&&S.preventDefault()}},{typeSelectProps:I}=_0({keyboardDelegate:r,selectionManager:t});u||(A=_e(I,A));let N;d||(N=t.focusedKey==null?0:-1);let w=S3(t.collection);return{collectionProps:_e(A,{tabIndex:N,"data-collection":w})}}function M3(e){let{id:t,selectionManager:r,key:n,ref:o,shouldSelectOnPressUp:s,shouldUseVirtualFocus:i,focus:a,isDisabled:l,onAction:c,allowsDifferentPressOrigin:u,linkBehavior:d="action"}=e,p=fl();t=Nt(t);let h=L=>{if(L.pointerType==="keyboard"&&Dc(L))r.toggleSelection(n);else{if(r.selectionMode==="none")return;if(r.isLink(n)){if(d==="selection"&&o.current){let K=r.getItemProps(n);p.open(o.current,L,K.href,K.routerOptions),r.setSelectedKeys(r.selectedKeys);return}else if(d==="override"||d==="none")return}r.selectionMode==="single"?r.isSelected(n)&&!r.disallowEmptySelection?r.toggleSelection(n):r.replaceSelection(n):L&&L.shiftKey?r.extendSelection(n):r.selectionBehavior==="toggle"||L&&(io(L)||L.pointerType==="touch"||L.pointerType==="virtual")?r.toggleSelection(n):r.replaceSelection(n)}};f.useEffect(()=>{n===r.focusedKey&&r.isFocused&&(i?Bm(o.current):a?a():document.activeElement!==o.current&&o.current&&$n(o.current))},[o,n,r.focusedKey,r.childFocusStrategy,r.isFocused,i]),l=l||r.isDisabled(n);let g={};!i&&!l?g={tabIndex:n===r.focusedKey?0:-1,onFocus(L){L.target===o.current&&r.setFocusedKey(n)}}:l&&(g.onMouseDown=L=>{L.preventDefault()});let m=r.isLink(n)&&d==="override",x=c&&e.UNSTABLE_itemBehavior==="action",v=r.isLink(n)&&d!=="selection"&&d!=="none",$=!l&&r.canSelectItem(n)&&!m&&!x,C=(c||v)&&!l,E=C&&(r.selectionBehavior==="replace"?!$:!$||r.isEmpty),T=C&&$&&r.selectionBehavior==="replace",k=E||T,D=f.useRef(null),P=k&&$,V=f.useRef(!1),F=f.useRef(!1),y=r.getItemProps(n),M=L=>{if(c){var K;c(),(K=o.current)===null||K===void 0||K.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}v&&o.current&&p.open(o.current,L,y.href,y.routerOptions)},A={ref:o};if(s?(A.onPressStart=L=>{D.current=L.pointerType,V.current=P,L.pointerType==="keyboard"&&(!k||D0())&&h(L)},u?(A.onPressUp=E?void 0:L=>{L.pointerType==="mouse"&&$&&h(L)},A.onPress=E?M:L=>{L.pointerType!=="keyboard"&&L.pointerType!=="mouse"&&$&&h(L)}):A.onPress=L=>{if(E||T&&L.pointerType!=="mouse"){if(L.pointerType==="keyboard"&&!M0())return;M(L)}else L.pointerType!=="keyboard"&&$&&h(L)}):(A.onPressStart=L=>{D.current=L.pointerType,V.current=P,F.current=E,$&&(L.pointerType==="mouse"&&!E||L.pointerType==="keyboard"&&(!C||D0()))&&h(L)},A.onPress=L=>{(L.pointerType==="touch"||L.pointerType==="pen"||L.pointerType==="virtual"||L.pointerType==="keyboard"&&k&&M0()||L.pointerType==="mouse"&&F.current)&&(k?M(L):$&&h(L))}),g["data-collection"]=T3(r.collection),g["data-key"]=n,A.preventFocusOnPress=i,i&&(A=_e(A,{onPressStart(L){L.pointerType!=="touch"&&(r.setFocused(!0),r.setFocusedKey(n))},onPress(L){L.pointerType==="touch"&&(r.setFocused(!0),r.setFocusedKey(n))}})),y)for(let L of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])y[L]&&(A[L]=an(A[L],y[L]));let{pressProps:I,isPressed:N}=hr(A),w=T?L=>{D.current==="mouse"&&(L.stopPropagation(),L.preventDefault(),M(L))}:void 0,{longPressProps:S}=Om({isDisabled:!P,onLongPress(L){L.pointerType==="touch"&&(h(L),r.setSelectionBehavior("toggle"))}}),_=L=>{D.current==="touch"&&V.current&&L.preventDefault()},B=d!=="none"&&r.isLink(n)?L=>{un.isOpening||L.preventDefault()}:void 0;return{itemProps:_e(g,$||E||i&&!l?I:{},P?S:{},{onDoubleClick:w,onDragStartCapture:_,onClick:B,id:t},i?{onMouseDown:L=>L.preventDefault()}:void 0),isPressed:N,isSelected:r.isSelected(n),isFocused:r.isFocused&&r.focusedKey===n,isDisabled:l,allowsSelection:$,hasAction:k}}function M0(){let e=window.event;return e?.key==="Enter"}function D0(){let e=window.event;return e?.key===" "||e?.code==="Space"}class A0{getItemRect(t){let r=this.ref.current;if(!r)return null;let n=t!=null?aa(this.ref,t):null;if(!n)return null;let o=r.getBoundingClientRect(),s=n.getBoundingClientRect();return{x:s.left-o.left-r.clientLeft+r.scrollLeft,y:s.top-o.top-r.clientTop+r.scrollTop,width:s.width,height:s.height}}getContentSize(){let t=this.ref.current;var r,n;return{width:(r=t?.scrollWidth)!==null&&r!==void 0?r:0,height:(n=t?.scrollHeight)!==null&&n!==void 0?n:0}}getVisibleRect(){let t=this.ref.current;var r,n,o,s;return{x:(r=t?.scrollLeft)!==null&&r!==void 0?r:0,y:(n=t?.scrollTop)!==null&&n!==void 0?n:0,width:(o=t?.clientWidth)!==null&&o!==void 0?o:0,height:(s=t?.clientHeight)!==null&&s!==void 0?s:0}}constructor(t){this.ref=t}}class N0{isDisabled(t){var r;return this.disabledBehavior==="all"&&(((r=t.props)===null||r===void 0?void 0:r.isDisabled)||this.disabledKeys.has(t.key))}findNextNonDisabled(t,r){let n=t;for(;n!=null;){let o=this.collection.getItem(n);if(o?.type==="item"&&!this.isDisabled(o))return n;n=r(n)}return null}getNextKey(t){let r=t;return r=this.collection.getKeyAfter(r),this.findNextNonDisabled(r,n=>this.collection.getKeyAfter(n))}getPreviousKey(t){let r=t;return r=this.collection.getKeyBefore(r),this.findNextNonDisabled(r,n=>this.collection.getKeyBefore(n))}findKey(t,r,n){let o=t,s=this.layoutDelegate.getItemRect(o);if(!s||o==null)return null;let i=s;do{if(o=r(o),o==null)break;s=this.layoutDelegate.getItemRect(o)}while(s&&n(i,s)&&o!=null);return o}isSameRow(t,r){return t.y===r.y||t.x!==r.x}isSameColumn(t,r){return t.x===r.x||t.y!==r.y}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){let r=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){let r=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[r]?(t=this.layoutDelegate[r](t),this.findNextNonDisabled(t,n=>this.layoutDelegate[r](n))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyAfter(r))}getLastKey(){let t=this.collection.getLastKey();return this.findNextNonDisabled(t,r=>this.collection.getKeyBefore(r))}getKeyPageAbove(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!so(r))return this.getFirstKey();let o=t;if(this.orientation==="horizontal"){let s=Math.max(0,n.x+n.width-this.layoutDelegate.getVisibleRect().width);for(;n&&n.x>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.max(0,n.y+n.height-this.layoutDelegate.getVisibleRect().height);for(;n&&n.y>s&&o!=null;)o=this.getKeyAbove(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.layoutDelegate.getItemRect(t);if(!n)return null;if(r&&!so(r))return this.getLastKey();let o=t;if(this.orientation==="horizontal"){let s=Math.min(this.layoutDelegate.getContentSize().width,n.y-n.width+this.layoutDelegate.getVisibleRect().width);for(;n&&n.x<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}else{let s=Math.min(this.layoutDelegate.getContentSize().height,n.y-n.height+this.layoutDelegate.getVisibleRect().height);for(;n&&n.y<s&&o!=null;)o=this.getKeyBelow(o),n=o==null?null:this.layoutDelegate.getItemRect(o)}return o??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,o=r||this.getFirstKey();for(;o!=null;){let s=n.getItem(o);if(!s)return null;let i=s.textValue.slice(0,t.length);if(s.textValue&&this.collator.compare(i,t)===0)return o;o=this.getNextKey(o)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.collator=r.collator,this.disabledKeys=r.disabledKeys||new Set,this.disabledBehavior=r.disabledBehavior||"all",this.orientation=r.orientation||"vertical",this.direction=r.direction,this.layout=r.layout||"stack",this.layoutDelegate=r.layoutDelegate||new A0(r.ref)}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new A0(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function D3(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:o,keyboardDelegate:s,layoutDelegate:i}=e,a=zg({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,c=f.useMemo(()=>s||new N0({collection:r,disabledKeys:n,disabledBehavior:l,ref:o,collator:a,layoutDelegate:i}),[s,i,r,n,o,a,l]),{collectionProps:u}=_3({...e,ref:o,selectionManager:t,keyboardDelegate:c});return{listProps:u}}function A3(e,t,r){const{disallowEmptySelection:n,isDisabled:o}=e,s=zg({usage:"search",sensitivity:"base"}),i=f.useMemo(()=>new N0(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:a,menuProps:l}=C3({isDisabled:o,type:"listbox"},t,r),c=T=>{if(t.selectionMode==="single")switch(T.key){case"ArrowLeft":{T.preventDefault();const k=t.selectedKeys.size>0?i.getKeyAbove(t.selectedKeys.values().next().value):i.getFirstKey();k&&t.setSelectedKeys([k]);break}case"ArrowRight":{T.preventDefault();const k=t.selectedKeys.size>0?i.getKeyBelow(t.selectedKeys.values().next().value):i.getFirstKey();k&&t.setSelectedKeys([k]);break}}},{typeSelectProps:u}=_0({keyboardDelegate:i,selectionManager:t.selectionManager,onTypeSelect(T){t.setSelectedKeys([T])}}),{isInvalid:d,validationErrors:p,validationDetails:h}=t.displayValidation,{labelProps:g,fieldProps:m,descriptionProps:x,errorMessageProps:v}=ob({...e,labelElementType:"span",isInvalid:d,errorMessage:e.errorMessage||p});u.onKeyDown=u.onKeyDownCapture,delete u.onKeyDownCapture,a.onPressStart=T=>{T.pointerType!=="touch"&&T.pointerType!=="keyboard"&&!o&&t.toggle(T.pointerType==="virtual"?"first":null)};const $=cr(e,{labelable:!0}),C=_e(u,a,m),E=Nt();return{labelProps:{...g,onClick:()=>{var T;e.isDisabled||((T=r.current)==null||T.focus(),Oi("keyboard"))}},triggerProps:_e($,{...C,onKeyDown:an(C.onKeyDown,c,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[E,C["aria-labelledby"],C["aria-label"]&&!C["aria-labelledby"]?C.id:null].join(" "),onFocus(T){t.isFocused||(e.onFocus&&e.onFocus(T),t.setFocused(!0))},onBlur(T){t.isOpen||(e.onBlur&&e.onBlur(T),t.setFocused(!1))}}),valueProps:{id:E},menuProps:{...l,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:T=>{T.currentTarget.contains(T.relatedTarget)||(e.onBlur&&e.onBlur(T),t.setFocused(!1))},onFocus:l?.onFocus,"aria-labelledby":[m["aria-labelledby"],C["aria-label"]&&!m["aria-labelledby"]?C.id:null].filter(Boolean).join(" ")},descriptionProps:x,errorMessageProps:v,isInvalid:d,validationErrors:p,validationDetails:h}}var O0=new WeakMap;function N3(e){var t,r,n,o,s,i;const a=gt(),{validationBehavior:l}=wc(ta)||{},[c,u]=Bt(e,zd.variantKeys),d=(r=(t=e.disableAnimation)!=null?t:a?.disableAnimation)!=null?r:!1,{ref:p,as:h,label:g,name:m,isLoading:x,selectorIcon:v,isOpen:$,defaultOpen:C,onOpenChange:E,startContent:T,endContent:k,description:D,renderValue:P,onSelectionChange:V,placeholder:F,isVirtualized:y,itemHeight:M=36,maxListboxHeight:A=256,children:I,disallowEmptySelection:N=!1,selectionMode:w="single",spinnerRef:S,scrollRef:_,popoverProps:B={},scrollShadowProps:L={},listboxProps:K={},spinnerProps:z={},validationState:W,onChange:U,onClose:ee,className:G,classNames:R,validationBehavior:me=(n=l??a?.validationBehavior)!=null?n:"native",hideEmptyContent:ue=!1,onClear:Q,...ie}=c,q=Rt(_),X={popoverProps:Ve({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:d},B),scrollShadowProps:Ve({ref:q,isEnabled:(o=e.showScrollIndicators)!=null?o:!0,hideScrollBar:!0,offset:15},L),listboxProps:Ve({disableAnimation:d},K)},le=h||"button",ae=typeof le=="string",oe=Rt(p),be=f.useRef(null),Me=f.useRef(null),ye=f.useRef(null);let te=E3({...c,isOpen:$,selectionMode:w,disallowEmptySelection:N,validationBehavior:me,children:I,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:C,hideEmptyContent:ue,onOpenChange:ne=>{E?.(ne),ne||ee?.()},onSelectionChange:ne=>{V?.(ne),U&&typeof U=="function"&&U({target:{...oe.current&&{...oe.current,name:oe.current.name},value:Array.from(ne).join(",")}}),te.commitValidation()}});te={...te,...e.isDisabled&&{disabledKeys:new Set([...te.collection.getKeys()])}},Mn(()=>{var ne;(ne=oe.current)!=null&&ne.value&&te.setSelectedKeys(new Set([...te.selectedKeys,oe.current.value]))},[oe.current]);const{labelProps:je,triggerProps:xe,valueProps:We,menuProps:lt,descriptionProps:Te,errorMessageProps:Ge,isInvalid:pt,validationErrors:Ft,validationDetails:Oe}=A3({...c,disallowEmptySelection:N,isDisabled:e.isDisabled},te,be),Ct=f.useCallback(()=>{var ne;te.setSelectedKeys(new Set([])),Q?.(),(ne=be.current)==null||ne.focus()},[Q,te]),{pressProps:It}=hr({isDisabled:!!e?.isDisabled,onPress:Ct}),_t=e.isInvalid||W==="invalid"||pt,{isPressed:Wt,buttonProps:Ze}=hc(xe,be),{focusProps:Ar,isFocused:lr,isFocusVisible:Qr}=Sn(),{focusProps:Vt,isFocusVisible:Ce}=Sn(),{isHovered:ze,hoverProps:Mt}=Pn({isDisabled:e.isDisabled}),$t=cT({labelPlacement:e.labelPlacement,label:g}),rr=!!F,_o=$t==="outside-left"||$t==="outside",Nr=$t==="inside",Ut=$t==="outside-left",Vn=e.isClearable,jn=te.isOpen||rr||!!((s=te.selectedItems)!=null&&s.length)||!!T||!!k||!!e.isMultiline,qe=!!((i=te.selectedItems)!=null&&i.length),zn=!!g,Bn=zn&&(Ut||_o&&rr),en=Pe(R?.base,G),ke=f.useMemo(()=>zd({...u,isInvalid:_t,isClearable:Vn,labelPlacement:$t,disableAnimation:d}),[qr(u),_t,$t,d]);dc({isDisabled:!te.isOpen});const Mo=typeof c.errorMessage=="function"?c.errorMessage({isInvalid:_t,validationErrors:Ft,validationDetails:Oe}):c.errorMessage||Ft?.join(" "),Rn=!!D||!!Mo,Cs=!!k;f.useEffect(()=>{if(te.isOpen&&ye.current&&be.current){let ne=be.current.getBoundingClientRect(),Kn=ye.current;Kn.style.width=ne.width+"px"}},[te.isOpen]);const O=f.useCallback((ne={})=>({"data-slot":"base","data-filled":he(jn),"data-has-value":he(qe),"data-has-label":he(zn),"data-has-helper":he(Rn),"data-has-end-content":he(Cs),"data-invalid":he(_t),"data-has-label-outside":he(Bn),className:ke.base({class:Pe(en,ne.className)}),...ne}),[ke,Rn,qe,zn,Bn,jn,en]),J=f.useCallback((ne={})=>({ref:be,"data-slot":"trigger","data-open":he(te.isOpen),"data-disabled":he(e?.isDisabled),"data-focus":he(lr),"data-pressed":he(Wt),"data-focus-visible":he(Qr),"data-hover":he(ze),className:ke.trigger({class:R?.trigger}),...Ve(Ze,Ar,Mt,ct(ie,{enabled:ae}),ct(ne))}),[ke,be,te.isOpen,R?.trigger,e?.isDisabled,lr,Wt,Qr,ze,Ze,Ar,Mt,ie,ae]),se=f.useCallback((ne={})=>({state:te,triggerRef:be,selectRef:oe,selectionMode:w,label:e?.label,name:e?.name,isRequired:e?.isRequired,autoComplete:e?.autoComplete,isDisabled:e?.isDisabled,form:e?.form,onChange:U,...ne}),[te,w,e?.label,e?.autoComplete,e?.name,e?.isDisabled,be]),ve=f.useCallback((ne={})=>({"data-slot":"label",className:ke.label({class:Pe(R?.label,ne.className)}),...je,...ne}),[ke,R?.label,je]),re=f.useCallback((ne={})=>({"data-slot":"value",className:ke.value({class:Pe(R?.value,ne.className)}),...We,...ne}),[ke,R?.value,We]),Ae=f.useCallback((ne={})=>({"data-slot":"listboxWrapper",className:ke.listboxWrapper({class:Pe(R?.listboxWrapper,ne?.className)}),style:{maxHeight:A??256,...ne.style},...Ve(X.scrollShadowProps,ne)}),[ke.listboxWrapper,R?.listboxWrapper,X.scrollShadowProps,A]),De=(ne={})=>{const Kn=y??te.collection.size>50;return{state:te,ref:Me,isVirtualized:Kn,virtualization:Kn?{maxListboxHeight:A,itemHeight:M}:void 0,"data-slot":"listbox",className:ke.listbox({class:Pe(R?.listbox,ne?.className)}),scrollShadowProps:X.scrollShadowProps,...Ve(X.listboxProps,ne,lt)}},Se=f.useCallback((ne={})=>{var Kn,o1;const G8=Ve(X.popoverProps,ne);return{state:te,triggerRef:be,ref:ye,"data-slot":"popover",scrollRef:Me,triggerType:"listbox",classNames:{content:ke.popoverContent({class:Pe(R?.popoverContent,ne.className)})},...G8,offset:te.selectedItems&&te.selectedItems.length>0?te.selectedItems.length*1e-8+(((Kn=X.popoverProps)==null?void 0:Kn.offset)||0):(o1=X.popoverProps)==null?void 0:o1.offset}},[ke,R?.popoverContent,X.popoverProps,be,te,te.selectedItems]),St=f.useCallback(()=>({"data-slot":"selectorIcon","aria-hidden":he(!0),"data-open":he(te.isOpen),className:ke.selectorIcon({class:R?.selectorIcon})}),[ke,R?.selectorIcon,te.isOpen]),rt=f.useCallback((ne={})=>({...ne,"data-slot":"innerWrapper",className:ke.innerWrapper({class:Pe(R?.innerWrapper,ne?.className)})}),[ke,R?.innerWrapper]),st=f.useCallback((ne={})=>({...ne,"data-slot":"helperWrapper",className:ke.helperWrapper({class:Pe(R?.helperWrapper,ne?.className)})}),[ke,R?.helperWrapper]),Ht=f.useCallback((ne={})=>({...ne,...Te,"data-slot":"description",className:ke.description({class:Pe(R?.description,ne?.className)})}),[ke,R?.description]),tn=f.useCallback((ne={})=>({...ne,"data-slot":"mainWrapper",className:ke.mainWrapper({class:Pe(R?.mainWrapper,ne?.className)})}),[ke,R?.mainWrapper]),Or=f.useCallback((ne={})=>({...ne,"data-slot":"end-wrapper",className:ke.endWrapper({class:Pe(R?.endWrapper,ne?.className)})}),[ke,R?.endWrapper]),Dt=f.useCallback((ne={})=>({...ne,"data-slot":"end-content",className:ke.endContent({class:Pe(R?.endContent,ne?.className)})}),[ke,R?.endContent]),Ss=f.useCallback((ne={})=>({...ne,...Ge,"data-slot":"error-message",className:ke.errorMessage({class:Pe(R?.errorMessage,ne?.className)})}),[ke,Ge,R?.errorMessage]),dd=f.useCallback((ne={})=>({"aria-hidden":he(!0),"data-slot":"spinner",color:"current",size:"sm",...z,...ne,ref:S,className:ke.spinner({class:Pe(R?.spinner,ne?.className)})}),[ke,S,z,R?.spinner]),fd=f.useCallback((ne={})=>({...ne,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":he(Ce),className:ke.clearButton({class:Pe(R?.clearButton,ne?.className)}),...Ve(It,Vt)}),[ke,Ce,It,Vt,R?.clearButton]);return O0.set(te,{isDisabled:e?.isDisabled,isRequired:e?.isRequired,name:e?.name,isInvalid:_t,validationBehavior:me}),{Component:le,domRef:oe,state:te,label:g,name:m,triggerRef:be,isLoading:x,placeholder:F,startContent:T,endContent:k,description:D,selectorIcon:v,hasHelper:Rn,labelPlacement:$t,hasPlaceholder:rr,renderValue:P,selectionMode:w,disableAnimation:d,isOutsideLeft:Ut,shouldLabelBeOutside:_o,shouldLabelBeInside:Nr,isInvalid:_t,errorMessage:Mo,isClearable:Vn,getClearButtonProps:fd,getBaseProps:O,getTriggerProps:J,getLabelProps:ve,getValueProps:re,getListboxProps:De,getPopoverProps:Se,getSpinnerProps:dd,getMainWrapperProps:tn,getListboxWrapperProps:Ae,getHiddenSelectProps:se,getInnerWrapperProps:rt,getHelperWrapperProps:st,getDescriptionProps:Ht,getErrorMessageProps:Ss,getSelectorIconProps:St,getEndWrapperProps:Or,getEndContentProps:Dt}}var O3=typeof document<"u"?f.useLayoutEffect:()=>{};function L3(e){const t=f.useRef(null);return O3(()=>{t.current=e},[e]),f.useCallback((...r)=>{const n=t.current;return n?.(...r)},[])}function F3(e,t,r){let n=f.useRef(t),o=L3(()=>{r&&r(n.current)});f.useEffect(()=>{var s;let i=(s=e?.current)==null?void 0:s.form;return i?.addEventListener("reset",o),()=>{i?.removeEventListener("reset",o)}},[e,o])}function V3(e,t,r){var n;let o=O0.get(t)||{},{autoComplete:s,name:i=o.name,isDisabled:a=o.isDisabled,selectionMode:l,onChange:c,form:u}=e,{validationBehavior:d,isRequired:p,isInvalid:h}=o,{visuallyHiddenProps:g}=Sv();return F3(e.selectRef,t.selectedKeys,t.setSelectedKeys),rb({validationBehavior:d,focus:()=>{var m;return(m=r.current)==null?void 0:m.focus()}},t,e.selectRef),{containerProps:{...g,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:u,autoComplete:s,disabled:a,"aria-invalid":h||void 0,"aria-required":p&&d==="aria"||void 0,required:p&&d==="native",name:i,tabIndex:-1,value:l==="multiple"?[...t.selectedKeys].map(m=>String(m)):(n=[...t.selectedKeys][0])!=null?n:"",multiple:l==="multiple",onChange:m=>{t.setSelectedKeys(m.target.value),c?.(m)}}}}function j3(e){var t;let{state:r,triggerRef:n,selectRef:o,label:s,name:i,isDisabled:a,form:l}=e,{containerProps:c,selectProps:u}=V3({...e,selectRef:o},r,n);return r.collection.size<=300?b.jsx("div",{...c,"data-testid":"hidden-select-container",children:b.jsxs("label",{children:[s,b.jsxs("select",{...u,ref:o,children:[b.jsx("option",{}),[...r.collection.getKeys()].map(d=>{let p=r.collection.getItem(d);if(p?.type==="item")return b.jsx("option",{value:p.key,children:p.textValue},p.key)})]})]})}):i?b.jsx("input",{autoComplete:u.autoComplete,disabled:a,form:l,name:i,type:"hidden",value:(t=[...r.selectedKeys].join(","))!=null?t:""}):null}var z3=e=>{const t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return t?.[e]||{}},B3=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],R3=(e,t)=>{if(t.includes("-")){const[r]=t.split("-");if(r.includes(e))return!1}return!0},L0=(e,t)=>{if(t.includes("-")){const[,r]=t.split("-");return`${e}-${r}`}return e},hs=new WeakMap,Kt=[];function K3(e,t=document.body){let r=new Set(e),n=new Set,o=l=>{for(let p of l.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let c=p=>{if(r.has(p)||p.parentElement&&n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of r)if(p.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},u=document.createTreeWalker(l,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),d=c(l);if(d===NodeFilter.FILTER_ACCEPT&&s(l),d!==NodeFilter.FILTER_REJECT){let p=u.nextNode();for(;p!=null;)s(p),p=u.nextNode()}},s=l=>{var c;let u=(c=hs.get(l))!=null?c:0;l.getAttribute("aria-hidden")==="true"&&u===0||(u===0&&l.setAttribute("aria-hidden","true"),n.add(l),hs.set(l,u+1))};Kt.length&&Kt[Kt.length-1].disconnect(),o(t);let i=new MutationObserver(l=>{for(let c of l)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(u=>u.contains(c.target))){for(let u of c.removedNodes)u instanceof Element&&(r.delete(u),n.delete(u));for(let u of c.addedNodes)(u instanceof HTMLElement||u instanceof SVGElement)&&(u.dataset.liveAnnouncer==="true"||u.dataset.reactAriaTopLayer==="true")?r.add(u):u instanceof Element&&o(u)}});i.observe(t,{childList:!0,subtree:!0});let a={visibleNodes:r,hiddenNodes:n,observe(){i.observe(t,{childList:!0,subtree:!0})},disconnect(){i.disconnect()}};return Kt.push(a),()=>{i.disconnect();for(let l of n){let c=hs.get(l);c!=null&&(c===1?(l.removeAttribute("aria-hidden"),hs.delete(l)):hs.set(l,c-1))}a===Kt[Kt.length-1]?(Kt.pop(),Kt.length&&Kt[Kt.length-1].observe()):Kt.splice(Kt.indexOf(a),1)}}function W3(e){let t=Kt[Kt.length-1];if(t&&!t.visibleNodes.has(e))return t.visibleNodes.add(e),()=>{t.visibleNodes.delete(e)}}var U3=p3,Pt=U3;const Ac=new WeakMap;function H3(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function G3(e,t){let r=Ac.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${H3(t)}`}function Z3(e,t,r){let n=cr(e,{labelable:!0}),o=e.selectionBehavior||"toggle",s=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&s==="action"&&(s="override");let{listProps:i}=D3({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:a}=Hr({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),l=Nt(e.id);Ac.set(t,{id:l,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:c,fieldProps:u}=nb({...e,id:l,labelElementType:"span"});return{labelProps:c,listBoxProps:_e(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",..._e(u,i)})}}function q3(e,t,r){var n,o;let{key:s}=e,i=Ac.get(t);var a;let l=(a=e.isDisabled)!==null&&a!==void 0?a:t.selectionManager.isDisabled(s);var c;let u=(c=e.isSelected)!==null&&c!==void 0?c:t.selectionManager.isSelected(s);var d;let p=(d=e.shouldSelectOnPressUp)!==null&&d!==void 0?d:i?.shouldSelectOnPressUp;var h;let g=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:i?.shouldFocusOnHover;var m;let x=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:i?.shouldUseVirtualFocus;var v;let $=(v=e.isVirtualized)!==null&&v!==void 0?v:i?.isVirtualized,C=sn(),E=sn(),T={role:"option","aria-disabled":l||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};zr()&&Qs()||(T["aria-label"]=e["aria-label"],T["aria-labelledby"]=C,T["aria-describedby"]=E);let k=t.collection.getItem(s);if($){let S=Number(k?.index);T["aria-posinset"]=Number.isNaN(S)?void 0:S+1,T["aria-setsize"]=y3(t.collection)}let D=i?.onAction?()=>{var S;return i==null||(S=i.onAction)===null||S===void 0?void 0:S.call(i,s)}:void 0,P=G3(t,s),{itemProps:V,isPressed:F,isFocused:y,hasAction:M,allowsSelection:A}=M3({selectionManager:t.selectionManager,key:s,ref:r,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&g,isVirtualized:$,shouldUseVirtualFocus:x,isDisabled:l,onAction:D||!(k==null||(n=k.props)===null||n===void 0)&&n.onAction?an(k==null||(o=k.props)===null||o===void 0?void 0:o.onAction,D):void 0,linkBehavior:i?.linkBehavior,UNSTABLE_itemBehavior:i?.UNSTABLE_itemBehavior,id:P}),{hoverProps:I}=Pn({isDisabled:l||!g,onHoverStart(){Eo()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(s))}}),N=cr(k?.props);delete N.id;let w=B$(k?.props);return{optionProps:{...T,..._e(N,V,I,w),id:P},labelProps:{id:C},descriptionProps:{id:E},isFocused:y,isFocusVisible:y&&t.selectionManager.isFocused&&Eo(),isSelected:u,isDisabled:l,isPressed:F,allowsSelection:A,hasAction:M}}function Y3(e){let{heading:t,"aria-label":r}=e,n=Nt();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function X3(e){var t;const r=gt(),{ref:n,as:o,state:s,variant:i,color:a,onAction:l,children:c,onSelectionChange:u,disableAnimation:d=(t=r?.disableAnimation)!=null?t:!1,itemClasses:p,className:h,topContent:g,bottomContent:m,emptyContent:x="No items.",hideSelectedIcon:v=!1,hideEmptyContent:$=!1,shouldHighlightOnFocus:C=!1,classNames:E,...T}=e,k=o||"ul",D=typeof k=="string",P=Rt(n),V=Gb({...e,children:c,onSelectionChange:u}),F=s||V,{listBoxProps:y}=Z3({...e,onAction:l},F,P),M=f.useMemo(()=>fx(),[]),A=Pe(E?.base,h);return{Component:k,state:F,variant:i,color:a,slots:M,classNames:E,topContent:g,bottomContent:m,emptyContent:x,hideEmptyContent:$,shouldHighlightOnFocus:C,hideSelectedIcon:v,disableAnimation:d,className:h,itemClasses:p,getBaseProps:(S={})=>({ref:P,"data-slot":"base",className:M.base({class:A}),...ct(T,{enabled:D}),...S}),getListProps:(S={})=>({"data-slot":"list",className:M.list({class:E?.list}),...y,...S}),getEmptyContentProps:(S={})=>({"data-slot":"empty-content",children:x,className:M.emptyContent({class:E?.emptyContent}),...S})}}function J3(e){const{isSelected:t,disableAnimation:r,...n}=e;return b.jsx("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...n,children:b.jsx("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var Q3=700;function ek(){return ro()||typeof window>"u"?!1:window.screen.width<=Q3}function tk(e){var t,r;const n=gt(),[o,s]=Bt(e,Rd.variantKeys),{as:i,item:a,state:l,description:c,startContent:u,endContent:d,isVirtualized:p,selectedIcon:h,className:g,classNames:m,autoFocus:x,onPress:v,onPressUp:$,onPressStart:C,onPressEnd:E,onPressChange:T,onClick:k,shouldHighlightOnFocus:D,hideSelectedIcon:P=!1,isReadOnly:V=!1,...F}=o,y=(r=(t=e.disableAnimation)!=null?t:n?.disableAnimation)!=null?r:!1,M=f.useRef(null),A=i||(e.href?"a":"li"),I=typeof A=="string",{rendered:N,key:w}=a,S=l.disabledKeys.has(w)||e.isDisabled,_=l.selectionManager.selectionMode!=="none",B=ek(),{pressProps:L,isPressed:K}=hr({ref:M,isDisabled:S,onClick:k,onPress:v,onPressUp:$,onPressStart:C,onPressEnd:E,onPressChange:T}),{isHovered:z,hoverProps:W}=Pn({isDisabled:S}),{isFocusVisible:U,focusProps:ee}=Sn({autoFocus:x}),{isFocused:G,isSelected:R,optionProps:me,labelProps:ue,descriptionProps:Q}=q3({key:w,isDisabled:S,"aria-label":o["aria-label"],isVirtualized:p},l,M);let ie=me;const q=f.useMemo(()=>Rd({...s,isDisabled:S,disableAnimation:y,hasTitleTextChild:typeof N=="string",hasDescriptionTextChild:typeof c=="string"}),[qr(s),S,y,N,c]),X=Pe(m?.base,g);V&&(ie=YT(ie));const le=D&&G||(B?z||K:z||G&&!U),ae=(te={})=>({ref:M,...Ve(ie,V?{}:Ve(ee,L),W,ct(F,{enabled:I}),te),"data-selectable":he(_),"data-focus":he(G),"data-hover":he(le),"data-disabled":he(S),"data-selected":he(R),"data-pressed":he(K),"data-focus-visible":he(U),className:q.base({class:Pe(X,te.className)})}),oe=(te={})=>({...Ve(ue,te),"data-label":he(!0),className:q.title({class:m?.title})}),be=(te={})=>({...Ve(Q,te),className:q.description({class:m?.description})}),Me=(te={})=>({...Ve(te),className:q.wrapper({class:m?.wrapper})}),ye=f.useCallback((te={})=>({"aria-hidden":he(!0),"data-disabled":he(S),className:q.selectedIcon({class:m?.selectedIcon}),...te}),[S,q,m]);return{Component:A,domRef:M,slots:q,classNames:m,isSelectable:_,isSelected:R,isDisabled:S,rendered:N,description:c,startContent:u,endContent:d,selectedIcon:h,hideSelectedIcon:P,disableAnimation:y,getItemProps:ae,getLabelProps:oe,getWrapperProps:Me,getDescriptionProps:be,getSelectedIconProps:ye}}var F0=e=>{const{Component:t,rendered:r,description:n,isSelectable:o,isSelected:s,isDisabled:i,selectedIcon:a,startContent:l,endContent:c,hideSelectedIcon:u,disableAnimation:d,getItemProps:p,getLabelProps:h,getWrapperProps:g,getDescriptionProps:m,getSelectedIconProps:x}=tk(e),v=f.useMemo(()=>{const $=b.jsx(J3,{disableAnimation:d,isSelected:s});return typeof a=="function"?a({icon:$,isSelected:s,isDisabled:i}):a||$},[a,s,i,d]);return b.jsxs(t,{...p(),children:[l,n?b.jsxs("div",{...g(),children:[b.jsx("span",{...h(),children:r}),b.jsx("span",{...m(),children:n})]}):b.jsx("span",{...h(),children:r}),o&&!u&&b.jsx("span",{...x(),children:v}),c]})};F0.displayName="HeroUI.ListboxItem";var Nc=F0;function rk(e){let t=ct(e,{enabled:typeof e.elementType=="string"}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}function nk(e){const{as:t,className:r,orientation:n,...o}=e;let s=t||"hr";s==="hr"&&n==="vertical"&&(s="div");const{separatorProps:i}=rk({elementType:typeof s=="string"?s:"hr",orientation:n}),a=f.useMemo(()=>Wd({orientation:n,className:r}),[n,r]),l=f.useCallback((c={})=>({className:a,role:"separator","data-orientation":n,...i,...o,...c}),[a,n,i,o]);return{Component:s,getDividerProps:l}}function V0(e){return f.forwardRef(e)}var ok=(e,t,r=!0)=>{if(!t)return[e,{}];const n=t.reduce((o,s)=>s in e?{...o,[s]:e[s]}:o,{});return r?[Object.keys(e).filter(s=>!t.includes(s)).reduce((s,i)=>({...s,[i]:e[i]}),{}),n]:[e,n]},j0=V0((e,t)=>{const{Component:r,getDividerProps:n}=nk({...e});return b.jsx(r,{ref:t,...n()})});j0.displayName="HeroUI.Divider";var sk=j0,z0=Re(({item:e,state:t,as:r,variant:n,color:o,disableAnimation:s,className:i,classNames:a,hideSelectedIcon:l,showDivider:c=!1,dividerProps:u={},itemClasses:d,title:p,items:h,...g},m)=>{const x=r||"li",v=f.useMemo(()=>px(),[]),$=Pe(a?.base,i),C=Pe(a?.divider,u?.className),{itemProps:E,headingProps:T,groupProps:k}=Y3({heading:e.rendered,"aria-label":e["aria-label"]});return b.jsxs(x,{"data-slot":"base",...Ve(E,g),className:v.base({class:$}),children:[e.rendered&&b.jsx("span",{...T,className:v.heading({class:a?.heading}),"data-slot":"heading",children:e.rendered}),b.jsxs("ul",{...k,className:v.group({class:a?.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(D=>{const{key:P,props:V}=D;let F=b.jsx(Nc,{classNames:d,color:o,disableAnimation:s,hideSelectedIcon:l,item:D,state:t,variant:n,...V},P);return D.wrapper&&(F=D.wrapper(F)),F}),c&&b.jsx(sk,{as:"li",className:v.divider({class:C}),...u})]})]},e.key)});z0.displayName="HeroUI.ListboxSection";var B0=z0;function To(e,t,r){let n=r.initialDeps??[],o;return()=>{var s,i,a,l;let c;r.key&&((s=r.debug)!=null&&s.call(r))&&(c=Date.now());const u=e();if(!(u.length!==n.length||u.some((h,g)=>n[g]!==h)))return o;n=u;let p;if(r.key&&((i=r.debug)!=null&&i.call(r))&&(p=Date.now()),o=t(...u),r.key&&((a=r.debug)!=null&&a.call(r))){const h=Math.round((Date.now()-c)*100)/100,g=Math.round((Date.now()-p)*100)/100,m=g/16,x=(v,$)=>{for(v=String(v);v.length<$;)v=" "+v;return v};console.info(`%c⏱ ${x(g,5)} /${x(h,5)} ms`,`
|
|
408
447
|
font-size: .6rem;
|
|
409
448
|
font-weight: bold;
|
|
410
|
-
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Kc(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const k3=(e,t)=>Math.abs(e-t)<1,I3=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},_3=e=>e,M3=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},D3=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const i=new n.ResizeObserver(s=>{const a=s[0];if(a?.borderBoxSize){const l=a.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return i.observe(r,{box:"border-box"}),()=>{i.unobserve(r)}},ay={passive:!0},A3=typeof window>"u"?!0:"onscrollend"in window,O3=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const i=e.options.useScrollendEvent&&A3?()=>{}:I3(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),s=c=>()=>{const{horizontal:u,isRtl:d}=e.options;o=u?r.scrollLeft*(d&&-1||1):r.scrollTop,i(),t(o,c)},a=s(!0),l=s(!1);return l(),r.addEventListener("scroll",a,ay),r.addEventListener("scrollend",l,ay),()=>{r.removeEventListener("scroll",a),r.removeEventListener("scrollend",l)}},N3=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},L3=(e,{adjustments:t=0,behavior:r},n)=>{var o,i;const s=e+t;(i=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[n.options.horizontal?"left":"top"]:s,behavior:r})};class F3{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{this._measureElement(i.target,i)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var i;return(i=n())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=n())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_3,rangeExtractor:M3,onChange:()=>{},measureElement:N3,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=To(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,i)=>{this.scrollAdjustments=0,this.scrollDirection=i?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=i,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,i=new Map;for(let s=n-1;s>=0;s--){const a=r[s];if(o.has(a.lane))continue;const l=i.get(a.lane);if(l==null||a.end>l.end?i.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=To(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=To(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:i,enabled:s},a)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let u=l;u<r;u++){const d=i(u),h=this.options.lanes===1?c[u-1]:this.getFurthestMeasurement(c,u),p=h?h.end+this.options.gap:n+o,g=a.get(d),m=typeof g=="number"?g:this.options.estimateSize(u),x=p+m,v=h?h.lane:u%this.options.lanes;c[u]={index:u,start:p,size:m,end:x,key:d,lane:v}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=To(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?V3({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=To(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,i,s)=>i===null||s===null?[]:r({startIndex:i,endIndex:s,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),i=this.measurementsCache[o];if(!i)return;const s=i.key,a=this.elementsCache.get(s);a!==r&&(a&&this.observer.unobserve(a),this.observer.observe(r),this.elementsCache.set(s,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const i=this.itemSizeCache.get(o.key)??o.size,s=n-i;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,s,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",s),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=To(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let i=0,s=r.length;i<s;i++){const a=r[i],l=n[a];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Kc(n[ly(0,n.length-1,o=>Kc(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),i=this.getScrollOffset();n==="auto"&&r>=i+o&&(n="end"),n==="end"&&(r-=o);const s=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const i=this.getSize(),s=this.getScrollOffset();if(n==="auto")if(o.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(o.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];const a=o.start-this.options.scrollPaddingStart+(o.size-i)/2;switch(n){case"center":return[this.getOffsetForAlignment(a,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const i=this.getOffsetForIndex(r,n);if(!i)return;const[s,a]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[c]=Kc(this.getOffsetForIndex(r,a));k3(c,this.getScrollOffset())||this.scrollToIndex(r,{align:a,behavior:o})}else this.scrollToIndex(r,{align:a,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(i=>i.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const ly=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,i=r(o);if(i<n)e=o+1;else if(i>n)t=o-1;else return o}return e>0?e-1:0};function V3({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,i=ly(0,n,a=>e[a].start,r);let s=i;for(;s<n&&e[s].end<r+t;)s++;return{startIndex:i,endIndex:s}}const uy=typeof document<"u"?Nt.useLayoutEffect:Nt.useEffect;function j3(e){const t=Nt.useReducer(()=>({}),{})[1],r={...e,onChange:(o,i)=>{var s;i?Bn.flushSync(t):t(),(s=e.onChange)==null||s.call(e,o,i)}},[n]=Nt.useState(()=>new F3(r));return n.setOptions(r),uy(()=>n._didMount(),[]),uy(()=>n._willUpdate()),n}function z3(e){return j3({observeElementRect:D3,observeElementOffset:O3,scrollToFn:L3,...e})}function B3(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(p,g,m,x,v)=>{if(o==="auto"){const $=`${x}${eg(v)}Scroll`;g&&m?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=g.toString(),c.dataset[`${v}Scroll`]=m.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=g&&m?"both":g?x:m?v:"none";$!==l.current&&(s?.($),l.current=$)}},d=()=>{var p,g;const m=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((p=x?.getAttribute("data-virtual-scroll-height"))!=null?p:c.scrollHeight),$=+((g=x?.getAttribute("data-virtual-scroll-top"))!=null?g:c.scrollTop);for(const{type:S,prefix:C,suffix:T}of m)if(n===S||n==="both"){const k=S==="vertical"?$>i:c.scrollLeft>i,D=S==="vertical"?$+c.clientHeight+i<v:c.scrollLeft+c.clientWidth+i<c.scrollWidth;u(S,k,D,C,T)}},h=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(p=>{c.removeAttribute(`data-${p}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(h(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(p=>{c.dataset[`${p}Scroll`]=String(o===p)}))),()=>{c.removeEventListener("scroll",d,!0),h()}},[...a,r,o,n,s,t])}function R3(e){var t;const[r,n]=qt(e,Li.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:h=!0,onVisibilityChange:p,...g}=r,m=i||"div",x=er(o);B3({domRef:x,offset:u,visibility:d,isEnabled:h,onVisibilityChange:p,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Li({...n,className:a}),[yn(n),a]);return{Component:m,styles:v,domRef:x,children:s,getBaseProps:(S={})=>{var C;return{ref:x,className:v,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...S.style},...g,...S}}}}var K3=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},W3=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},U3=e=>{var t;const{Component:r,state:n,color:o,variant:i,itemClasses:s,getBaseProps:a,topContent:l,bottomContent:c,hideEmptyContent:u,hideSelectedIcon:d,shouldHighlightOnFocus:h,disableAnimation:p,getEmptyContentProps:g,getListProps:m,scrollShadowProps:x}=e,{virtualization:v}=e;if(!v||!sT(v)&&!v.maxListboxHeight&&!v.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:$,itemHeight:S}=v,C=Math.min($,S*n.collection.size),T=f.useRef(null),k=f.useMemo(()=>K3([...n.collection],S),[n.collection,S]),D=z3({count:[...n.collection].length,getScrollElement:()=>T.current,estimateSize:N=>k[N]}),E=D.getVirtualItems(),V=D.getTotalSize(),{getBaseProps:F}=R3({...x}),b=N=>{var w;const P=[...n.collection][N.index];if(!P)return null;const _={color:o,item:P,state:n,variant:i,disableAnimation:p,hideSelectedIcon:d,...P.props},B={position:"absolute",top:0,left:0,width:"100%",height:`${N.size}px`,transform:`translateY(${N.start}px)`};if(P.type==="section")return y.jsx(sy,{..._,itemClasses:s,style:{...B,..._.style}},P.key);let L=y.jsx(Rc,{..._,classNames:Ve(s,(w=P.props)==null?void 0:w.classNames),shouldHighlightOnFocus:h,style:{...B,..._.style}},P.key);return P.wrapper&&(L=P.wrapper(L)),L},[M,A]=f.useState({isTop:!1,isBottom:!0,isMiddle:!1}),I=y.jsxs(r,{...m(),"data-virtual-scroll-height":V,"data-virtual-scroll-top":(t=T?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!u&&y.jsx("li",{children:y.jsx("div",{...g()})}),y.jsx("div",{...Tt(F()),ref:T,style:{height:$,overflow:"auto"},onScroll:N=>{A(W3(N.target))},children:C>0&&S>0&&y.jsx("div",{style:{height:`${V}px`,width:"100%",position:"relative"},children:E.map(N=>b(N))})})]});return y.jsxs("div",{...a(),children:[l,I,c]})},H3=U3,G3=Re(function(t,r){const{isVirtualized:n,...o}=t,i=y3({...o,ref:r}),{Component:s,state:a,color:l,variant:c,itemClasses:u,getBaseProps:d,topContent:h,bottomContent:p,hideEmptyContent:g,hideSelectedIcon:m,shouldHighlightOnFocus:x,disableAnimation:v,getEmptyContentProps:$,getListProps:S}=i;if(n)return y.jsx(H3,{...t,...i});const C=y.jsxs(s,{...S(),children:[!a.collection.size&&!g&&y.jsx("li",{children:y.jsx("div",{...$()})}),[...a.collection].map(T=>{var k;const D={color:l,item:T,state:a,variant:c,disableAnimation:v,hideSelectedIcon:m,...T.props};if(T.type==="section")return y.jsx(sy,{...D,itemClasses:u},T.key);let E=y.jsx(Rc,{...D,classNames:Ve(u,(k=T.props)==null?void 0:k.classNames),shouldHighlightOnFocus:x},T.key);return T.wrapper&&(E=T.wrapper(E)),E})]});return y.jsxs("div",{...d(),children:[h,C,p]})}),Z3=G3;function q3(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:i,offset:s=7,crossOffset:a=0,scrollRef:l,shouldFlip:c,boundaryElement:u,isDismissable:d=!0,shouldCloseOnBlur:h=!0,shouldCloseOnScroll:p=!0,placement:g="top",containerPadding:m,shouldCloseOnInteractOutside:x,isNonModal:v,isKeyboardDismissDisabled:$,updatePositionDeps:S=[],...C}=e,T=v??!0,k=C.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:E}=tb({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:h,isDismissable:d||k,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:x||(I=>{var N;return!((N=n.current)!=null&&N.contains(I))}),disableOutsideEvents:!T},o),{overlayProps:V,arrowProps:F,placement:b,updatePosition:M,triggerAnchorPoint:A}=p4({...C,shouldFlip:c,crossOffset:a,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:u,containerPadding:m,placement:u3(g),offset:i?s+3:s,onClose:T&&!k&&p?t.close:()=>{}});return kn(()=>{S.length&&M()},S),f.useEffect(()=>{var I,N;if(t.isOpen&&o.current)return T?f3((I=r?.current)!=null?I:o.current):d3([(N=r?.current)!=null?N:o.current])},[T,t.isOpen,o,r]),{popoverProps:Ve(D,V),arrowProps:F,underlayProps:E,placement:b,triggerAnchorPoint:A}}var Y3="top";function X3(e){var t,r,n;const o=gt(),[i,s]=qt(e,Ni.variantKeys),{as:a,ref:l,children:c,state:u,triggerRef:d,scrollRef:h,defaultOpen:p,onOpenChange:g,isOpen:m,isNonModal:x=!0,shouldFlip:v=!0,containerPadding:$=12,shouldBlockScroll:S=!1,isDismissable:C=!0,shouldCloseOnBlur:T,portalContainer:k,updatePositionDeps:D,dialogProps:E,placement:V=Y3,triggerType:F="dialog",showArrow:b=!1,offset:M=7,crossOffset:A=0,boundaryElement:I,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:w,shouldCloseOnScroll:P,triggerAnchorPoint:_,motionProps:B,className:L,classNames:K,onClose:z,...W}=i,U=a||"div",ee=er(l),Z=f.useRef(null),R=f.useRef(!1),he=d||Z,fe=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,Q=ra({isOpen:m,defaultOpen:p,onOpenChange:Oe=>{g?.(Oe),Oe||z?.()}}),se=u||Q,{popoverProps:q,underlayProps:Y,placement:de}=q3({triggerRef:he,isNonModal:x,popoverRef:ee,placement:V,offset:M,scrollRef:h,isDismissable:C,shouldCloseOnBlur:T,boundaryElement:I,crossOffset:A,shouldFlip:v,containerPadding:$,updatePositionDeps:D,isKeyboardDismissDisabled:N,shouldCloseOnScroll:P,shouldCloseOnInteractOutside:w,triggerAnchorPoint:_},se),ae=f.useMemo(()=>de?c3(de,V)?de:V:null,[de,V]),{triggerProps:ie}=iv({type:F},se,he),{isFocusVisible:we,isFocused:De,focusProps:xe}=So(),te=f.useMemo(()=>Ni({...s}),[yn(s)]),je=Se(K?.base,L),Ee={"--trigger-anchor-point":_?`${_.x}px ${_.y}px`:void 0};wc({isDisabled:!(S&&se.isOpen)});const Ke=(Oe={})=>({ref:ee,...Ve(q,W,Oe),style:Ve(q.style,W.style,Oe.style)}),lt=(Oe={})=>({"data-slot":"base","data-open":ve(se.isOpen),"data-focus":ve(De),"data-arrow":ve(b),"data-focus-visible":ve(we),"data-placement":de?ty(de,V):void 0,...Ve(xe,E,Oe),className:te.base({class:Se(je)}),style:{outline:"none",...Ee}}),Te=f.useCallback((Oe={})=>({"data-slot":"content","data-open":ve(se.isOpen),"data-arrow":ve(b),"data-placement":de?ty(de,V):void 0,className:te.content({class:Se(K?.content,Oe.className)})}),[te,se.isOpen,b,ae,V,K,de]),Ge=f.useCallback(Oe=>{var St;let Mt;return Oe.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?Mt=setTimeout(()=>{R.current=!0},100):R.current=!0,(St=ie.onPress)==null||St.call(ie,Oe),()=>{clearTimeout(Mt)}},[ie?.onPress]),ft=f.useCallback((Oe={},St=null)=>{const{isDisabled:Mt,...Dt}=Oe;return{"data-slot":"trigger",...Ve({"aria-haspopup":"dialog"},ie,Dt),onPress:Ge,isDisabled:Mt,className:te.trigger({class:Se(K?.trigger,Oe.className),isTriggerDisabled:Mt}),ref:Vu(St,he)}},[se,ie,Ge,he]),Ft=f.useCallback((Oe={})=>({"data-slot":"backdrop",className:te.backdrop({class:K?.backdrop}),onClick:St=>{if(!R.current){St.preventDefault();return}se.close(),R.current=!1},...Y,...Oe}),[te,se.isOpen,K,Y]);return{state:se,Component:U,children:c,classNames:K,showArrow:b,triggerRef:he,placement:ae,isNonModal:x,popoverRef:ee,portalContainer:k,isOpen:se.isOpen,onClose:se.close,disableAnimation:fe,shouldBlockScroll:S,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:B,getBackdropProps:Ft,getPopoverProps:Ke,getTriggerProps:ft,getDialogProps:lt,getContentProps:Te}}var cy=()=>Promise.resolve().then(()=>Oa).then(e=>e.default),dy=Re(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:i={},...s},a)=>{let l=o;return i.originX!==void 0||i.originY!==void 0?l={...l,transformOrigin:i}:r&&(l={...l,...l3(r==="center"?"top":r)}),n?y.jsx("div",{...s,ref:a,children:e}):y.jsx(ao,{features:cy,children:y.jsx(lo.div,{ref:a,animate:"enter",exit:"exit",initial:"initial",style:l,variants:ju.scaleSpringOpacity,...Ve(s,t),children:e})})});dy.displayName="HeroUI.FreeSoloPopoverWrapper";var fy=Re(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:i,state:s,placement:a,backdrop:l,portalContainer:c,disableAnimation:u,motionProps:d,isNonModal:h,getPopoverProps:p,getBackdropProps:g,getDialogProps:m,getContentProps:x}=X3({...n,ref:o}),v=Nt.useRef(null),{dialogProps:$,titleProps:S}=qv({},v),C=m({...!r&&{ref:v},...$}),T=Nt.useMemo(()=>l==="transparent"?null:u?y.jsx("div",{...g()}):y.jsx(ao,{features:cy,children:y.jsx(lo.div,{animate:"enter",exit:"exit",initial:"exit",variants:ju.fade,...g()})}),[l,u,g]);return y.jsxs(Gv,{portalContainer:c,children:[!h&&T,y.jsx(i,{...p(),children:y.jsxs(dy,{disableAnimation:u,motionProps:d,placement:a,tabIndex:-1,transformOrigin:t,...C,children:[!h&&y.jsx(ta,{onDismiss:s.close}),y.jsx("div",{...x(),children:typeof e=="function"?e(S):e}),y.jsx(ta,{onDismiss:s.close})]})})]})});fy.displayName="HeroUI.FreeSoloPopover";var J3=fy,[pM,Q3]=Nu({name:"ProviderContext",strict:!1});function e6(e){var t,r;const[n,o]=C3(e,Oi.variantKeys),i=Q3(),s=(r=(t=e?.variant)!=null?t:i?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,h=f.useMemo(()=>Oi({...o}),[yn(o)]),p=Se(c?.base,l),g=u||a,m=f.useMemo(()=>g&&typeof g=="string"?g:d["aria-label"]?"":"Loading",[a,g,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":m,className:h.base({class:p}),...d}),[m,h,p,d]);return{label:g,slots:h,classNames:c,variant:s,getSpinnerProps:x}}var py=ny((e,t)=>{const{slots:r,classNames:n,label:o,variant:i,getSpinnerProps:s}=e6({...e});return i==="wave"||i==="dots"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>y.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="simple"?y.jsxs("div",{ref:t,...s(),children:[y.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[y.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),y.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):i==="spinner"?y.jsxs("div",{ref:t,...s(),children:[y.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>y.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]}):y.jsxs("div",{ref:t,...s(),children:[y.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[y.jsx("i",{className:r.circle1({class:n?.circle1})}),y.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&y.jsx("span",{className:r.label({class:n?.label}),children:o})]})});py.displayName="HeroUI.Spinner";var t6=py;function r6(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:i=0,onVisibilityChange:s,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(p,g,m,x,v)=>{if(o==="auto"){const $=`${x}${eg(v)}Scroll`;g&&m?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=g.toString(),c.dataset[`${v}Scroll`]=m.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=g&&m?"both":g?x:m?v:"none";$!==l.current&&(s?.($),l.current=$)}},d=()=>{var p,g;const m=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((p=x?.getAttribute("data-virtual-scroll-height"))!=null?p:c.scrollHeight),$=+((g=x?.getAttribute("data-virtual-scroll-top"))!=null?g:c.scrollTop);for(const{type:S,prefix:C,suffix:T}of m)if(n===S||n==="both"){const k=S==="vertical"?$>i:c.scrollLeft>i,D=S==="vertical"?$+c.clientHeight+i<v:c.scrollLeft+c.clientWidth+i<c.scrollWidth;u(S,k,D,C,T)}},h=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(p=>{c.removeAttribute(`data-${p}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(h(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(p=>{c.dataset[`${p}Scroll`]=String(o===p)}))),()=>{c.removeEventListener("scroll",d,!0),h()}},[...a,r,o,n,s,t])}function n6(e){var t;const[r,n]=qt(e,Li.variantKeys),{ref:o,as:i,children:s,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:h=!0,onVisibilityChange:p,...g}=r,m=i||"div",x=er(o);r6({domRef:x,offset:u,visibility:d,isEnabled:h,onVisibilityChange:p,updateDeps:[s],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Li({...n,className:a}),[yn(n),a]);return{Component:m,styles:v,domRef:x,children:s,getBaseProps:(S={})=>{var C;return{ref:x,className:v,"data-orientation":(C=e.orientation)!=null?C:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...S.style},...g,...S}}}}var hy=Re((e,t)=>{const{Component:r,children:n,getBaseProps:o}=n6({...e,ref:t});return y.jsx(r,{...o(),children:n})});hy.displayName="HeroUI.ScrollShadow";var o6=hy,i6=Re(function(t,r){var n;const{Component:o,state:i,label:s,hasHelper:a,isLoading:l,triggerRef:c,selectorIcon:u=y.jsx(x2,{}),description:d,errorMessage:h,isInvalid:p,startContent:g,endContent:m,placeholder:x,renderValue:v,shouldLabelBeOutside:$,disableAnimation:S,getBaseProps:C,getLabelProps:T,getTriggerProps:k,getValueProps:D,getListboxProps:E,getPopoverProps:V,getSpinnerProps:F,getMainWrapperProps:b,getInnerWrapperProps:M,getHiddenSelectProps:A,getHelperWrapperProps:I,getListboxWrapperProps:N,getDescriptionProps:w,getErrorMessageProps:P,getSelectorIconProps:_,isClearable:B,getClearButtonProps:L,getEndWrapperProps:K,getEndContentProps:z}=r3({...t,ref:r}),W=s?y.jsx("label",{...T(),children:s}):null,U=f.cloneElement(u,_()),ee=f.useMemo(()=>{var se;return B&&((se=i.selectedItems)!=null&&se.length)?y.jsx("span",{...L(),children:y.jsx(xu,{})}):null},[B,L,(n=i.selectedItems)==null?void 0:n.length]),Z=f.useMemo(()=>ee?y.jsxs("div",{...K(),children:[ee,m&&y.jsx("span",{...z(),children:m})]}):m&&y.jsx("span",{...z(),children:m}),[ee,m,K,z]),R=f.useMemo(()=>{const se=p&&h;return!a||!(se||d)?null:y.jsx("div",{...I(),children:se?y.jsx("div",{...P(),children:h}):y.jsx("div",{...w(),children:d})})},[a,p,h,d,I,P,w]),he=f.useMemo(()=>{var se;if(!((se=i.selectedItems)!=null&&se.length))return x;if(v&&typeof v=="function"){const q=[...i.selectedItems].map(Y=>({key:Y.key,data:Y.value,type:Y.type,props:Y.props,textValue:Y.textValue,rendered:Y.rendered,"aria-label":Y["aria-label"]}));return v(q)}return i.selectedItems.map(q=>q.textValue).join(", ")},[i.selectedItems,v,x]),fe=f.useMemo(()=>l?y.jsx(t6,{...F()}):U,[l,U,F]),Q=f.useMemo(()=>i.isOpen?y.jsx(J3,{...V(),children:y.jsx(o6,{...N(),children:y.jsx(Z3,{...E()})})}):null,[i.isOpen,V,i,c,N,E]);return y.jsxs("div",{...C(),children:[y.jsx(a3,{...A()}),$?W:null,y.jsxs("div",{...b(),children:[y.jsxs(o,{...k(),children:[$?null:W,y.jsxs("div",{...M(),children:[g,y.jsx("span",{...D(),children:he}),m&&i.selectedItems&&y.jsx(Uv,{elementType:"span",children:","}),Z]}),fe]}),R]}),S?Q:y.jsx(ss,{children:Q})]})}),ca=i6;function G(e,t,r){function n(a,l){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,l);for(const u in s.prototype)u in a||Object.defineProperty(a,u,{value:s.prototype[u].bind(a)});a._zod.constr=s,a._zod.def=l}const o=r?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var l;const c=r?.Parent?new i:this;n(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:n}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class ko extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class my extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const gy={};function Mn(e){return gy}function s6(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function Wc(e,t){return typeof t=="bigint"?t.toString():t}function Uc(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Hc(e){return e==null}function Gc(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const vy=Symbol("evaluating");function He(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==vy)return n===void 0&&(n=vy,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Dn(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function An(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function by(e){return JSON.stringify(e)}const yy="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function da(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const a6=Uc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function vi(e){if(da(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(da(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function xy(e){return vi(e)?{...e}:Array.isArray(e)?[...e]:e}const l6=new Set(["string","number","symbol"]);function fa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function qr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function ye(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function u6(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function c6(e,t){const r=e._zod.def,n=An(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=r.shape[i])}return Dn(this,"shape",o),o},checks:[]});return qr(e,n)}function d6(e,t){const r=e._zod.def,n=An(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return Dn(this,"shape",o),o},checks:[]});return qr(e,n)}function f6(e,t){if(!vi(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=An(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return Dn(this,"shape",i),i},checks:[]});return qr(e,o)}function p6(e,t){if(!vi(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return Dn(this,"shape",n),n},checks:e._zod.def.checks};return qr(e,r)}function h6(e,t){const r=An(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return Dn(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return qr(e,r)}function m6(e,t,r){const n=An(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=e?new e({type:"optional",innerType:o[s]}):o[s])}else for(const s in o)i[s]=e?new e({type:"optional",innerType:o[s]}):o[s];return Dn(this,"shape",i),i},checks:[]});return qr(t,n)}function g6(e,t,r){const n=An(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(r)for(const s in r){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return Dn(this,"shape",i),i},checks:[]});return qr(t,n)}function Io(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function wy(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function pa(e){return typeof e=="string"?e:e?.message}function On(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=pa(e.inst?._zod.def?.error?.(e))??pa(t?.error?.(e))??pa(r.customError?.(e))??pa(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Zc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bi(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const $y=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Wc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ey=G("$ZodError",$y),Py=G("$ZodError",$y,{Parent:Error});function v6(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function b6(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(s=>n({issues:s}));else if(i.code==="invalid_key")n({issues:i.issues});else if(i.code==="invalid_element")n({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let s=r,a=0;for(;a<i.path.length;){const l=i.path[a];a===i.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(i))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return n(e),r}const qc=e=>(t,r,n,o)=>{const i=n?Object.assign(n,{async:!1}):{async:!1},s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise)throw new ko;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>On(l,i,Mn())));throw yy(a,o?.callee),a}return s.value},Yc=e=>async(t,r,n,o)=>{const i=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>On(l,i,Mn())));throw yy(a,o?.callee),a}return s.value},ha=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},o);if(i instanceof Promise)throw new ko;return i.issues.length?{success:!1,error:new(e??Ey)(i.issues.map(s=>On(s,o,Mn())))}:{success:!0,data:i.value}},y6=ha(Py),ma=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>On(s,o,Mn())))}:{success:!0,data:i.value}},x6=ma(Py),w6=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return qc(e)(t,r,o)},$6=e=>(t,r,n)=>qc(e)(t,r,n),E6=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Yc(e)(t,r,o)},P6=e=>async(t,r,n)=>Yc(e)(t,r,n),S6=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ha(e)(t,r,o)},C6=e=>(t,r,n)=>ha(e)(t,r,n),T6=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return ma(e)(t,r,o)},k6=e=>async(t,r,n)=>ma(e)(t,r,n),I6=/^[cC][^\s-]{8,}$/,_6=/^[0-9a-z]+$/,M6=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,D6=/^[0-9a-vA-V]{20}$/,A6=/^[A-Za-z0-9]{27}$/,O6=/^[a-zA-Z0-9_-]{21}$/,N6=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,L6=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Sy=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,F6=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,V6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function j6(){return new RegExp(V6,"u")}const z6=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,B6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,R6=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,K6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,W6=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Cy=/^[A-Za-z0-9_-]*$/,U6=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,H6=/^\+(?:[0-9]){6,14}[0-9]$/,Ty="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",G6=new RegExp(`^${Ty}$`);function ky(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Z6(e){return new RegExp(`^${ky(e)}$`)}function q6(e){const t=ky({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${Ty}T(?:${n})$`)}const Y6=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},X6=/^[^A-Z]*$/,J6=/^[^a-z]*$/,yr=G("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Q6=G("$ZodCheckMaxLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Hc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const s=Zc(o);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),e9=G("$ZodCheckMinLength",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Hc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const s=Zc(o);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),t9=G("$ZodCheckLengthEquals",(e,t)=>{var r;yr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Hc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,i=o.length;if(i===t.length)return;const s=Zc(o),a=i>t.length;n.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ga=G("$ZodCheckStringFormat",(e,t)=>{var r,n;yr.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),r9=G("$ZodCheckRegex",(e,t)=>{ga.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),n9=G("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=X6),ga.init(e,t)}),o9=G("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=J6),ga.init(e,t)}),i9=G("$ZodCheckIncludes",(e,t)=>{yr.init(e,t);const r=fa(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),s9=G("$ZodCheckStartsWith",(e,t)=>{yr.init(e,t);const r=new RegExp(`^${fa(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),a9=G("$ZodCheckEndsWith",(e,t)=>{yr.init(e,t);const r=new RegExp(`.*${fa(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),l9=G("$ZodCheckOverwrite",(e,t)=>{yr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class u9{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
411
|
-
`).filter(
|
|
412
|
-
`))}}const
|
|
413
|
-
if (${
|
|
414
|
-
payload.issues = payload.issues.concat(${
|
|
449
|
+
color: hsl(${Math.max(0,Math.min(120-120*m,120))}deg 100% 31%);`,r?.key)}return(l=r?.onChange)==null||l.call(r,o),o}}function Oc(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const ik=(e,t)=>Math.abs(e-t)<1,ak=(e,t,r)=>{let n;return function(...o){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,o),r)}},lk=e=>e,uk=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let o=t;o<=r;o++)n.push(o);return n},ck=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const o=i=>{const{width:a,height:l}=i;t({width:Math.round(a),height:Math.round(l)})};if(o(r.getBoundingClientRect()),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(i=>{const a=i[0];if(a?.borderBoxSize){const l=a.borderBoxSize[0];if(l){o({width:l.inlineSize,height:l.blockSize});return}}o(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},R0={passive:!0},dk=typeof window>"u"?!0:"onscrollend"in window,fk=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let o=0;const s=e.options.useScrollendEvent&&dk?()=>{}:ak(n,()=>{t(o,!1)},e.options.isScrollingResetDelay),i=c=>()=>{const{horizontal:u,isRtl:d}=e.options;o=u?r.scrollLeft*(d&&-1||1):r.scrollTop,s(),t(o,c)},a=i(!0),l=i(!1);return l(),r.addEventListener("scroll",a,R0),r.addEventListener("scrollend",l,R0),()=>{r.removeEventListener("scroll",a),r.removeEventListener("scrollend",l)}},pk=(e,t,r)=>{if(t?.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[r.options.horizontal?"width":"height"])},hk=(e,{adjustments:t=0,behavior:r},n)=>{var o,s;const i=e+t;(s=(o=n.scrollElement)==null?void 0:o.scrollTo)==null||s.call(o,{[n.options.horizontal?"left":"top"]:i,behavior:r})};class mk{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(o=>{o.forEach(s=>{this._measureElement(s.target,s)})}));return{disconnect:()=>{var o;(o=n())==null||o.disconnect(),r=null},observe:o=>{var s;return(s=n())==null?void 0:s.observe(o,{box:"border-box"})},unobserve:o=>{var s;return(s=n())==null?void 0:s.unobserve(o)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,o])=>{typeof o>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:lk,rangeExtractor:uk,onChange:()=>{},measureElement:pk,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...r}},this.notify=r=>{var n,o;(o=(n=this.options).onChange)==null||o.call(n,this,r)},this.maybeNotify=To(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=s,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const o=new Map,s=new Map;for(let i=n-1;i>=0;i--){const a=r[i];if(o.has(a.lane))continue;const l=s.get(a.lane);if(l==null||a.end>l.end?s.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((i,a)=>i.end===a.end?i.index-a.index:i.end-a.end)[0]:void 0},this.getMeasurementOptions=To(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(r,n,o,s,i)=>(this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:i}),{key:!1}),this.getMeasurements=To(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:o,getItemKey:s,enabled:i},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const l=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,l);for(let u=l;u<r;u++){const d=s(u),p=this.options.lanes===1?c[u-1]:this.getFurthestMeasurement(c,u),h=p?p.end+this.options.gap:n+o,g=a.get(d),m=typeof g=="number"?g:this.options.estimateSize(u),x=h+m,v=p?p.lane:u%this.options.lanes;c[u]={index:u,start:h,size:m,end:x,key:d,lane:v}}return this.measurementsCache=c,c},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=To(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(r,n,o)=>this.range=r.length>0&&n>0?gk({measurements:r,outerSize:n,scrollOffset:o}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getIndexes=To(()=>{let r=null,n=null;const o=this.calculateRange();return o&&(r=o.startIndex,n=o.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,o,s,i)=>s===null||i===null?[]:r({startIndex:s,endIndex:i,overscan:n,count:o}),{key:process.env.NODE_ENV!=="production"&&"getIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,o=r.getAttribute(n);return o?parseInt(o,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this._measureElement=(r,n)=>{const o=this.indexFromElement(r),s=this.measurementsCache[o];if(!s)return;const i=s.key,a=this.elementsCache.get(i);a!==r&&(a&&this.observer.unobserve(a),this.observer.observe(r),this.elementsCache.set(i,r)),r.isConnected&&this.resizeItem(o,this.options.measureElement(r,n,this))},this.resizeItem=(r,n)=>{const o=this.measurementsCache[r];if(!o)return;const s=this.itemSizeCache.get(o.key)??o.size,i=n-s;i!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,i,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",i),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,n)),this.notify(!1))},this.measureElement=r=>{if(!r){this.elementsCache.forEach((n,o)=>{n.isConnected||(this.observer.unobserve(n),this.elementsCache.delete(o))});return}this._measureElement(r,void 0)},this.getVirtualItems=To(()=>[this.getIndexes(),this.getMeasurements()],(r,n)=>{const o=[];for(let s=0,i=r.length;s<i;s++){const a=r[s],l=n[a];o.push(l)}return o},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Oc(n[K0(0,n.length-1,o=>Oc(n[o]).start,r)])},this.getOffsetForAlignment=(r,n)=>{const o=this.getSize(),s=this.getScrollOffset();n==="auto"&&r>=s+o&&(n="end"),n==="end"&&(r-=o);const i=this.options.horizontal?"scrollWidth":"scrollHeight",l=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[i]:this.scrollElement[i]:0)-o;return Math.max(Math.min(l,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const o=this.measurementsCache[r];if(!o)return;const s=this.getSize(),i=this.getScrollOffset();if(n==="auto")if(o.end>=i+s-this.options.scrollPaddingEnd)n="end";else if(o.start<=i+this.options.scrollPaddingStart)n="start";else return[i,n];const a=o.start-this.options.scrollPaddingStart+(o.size-s)/2;switch(n){case"center":return[this.getOffsetForAlignment(a,n),n];case"end":return[this.getOffsetForAlignment(o.end+this.options.scrollPaddingEnd,n),n];default:return[this.getOffsetForAlignment(o.start-this.options.scrollPaddingStart,n),n]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(r,{align:n="start",behavior:o}={})=>{this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(r,n),{adjustments:void 0,behavior:o})},this.scrollToIndex=(r,{align:n="auto",behavior:o}={})=>{r=Math.max(0,Math.min(r,this.options.count-1)),this.cancelScrollToIndex(),o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const s=this.getOffsetForIndex(r,n);if(!s)return;const[i,a]=s;this._scrollToOffset(i,{adjustments:void 0,behavior:o}),o!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(r))){const[c]=Oc(this.getOffsetForIndex(r,a));ik(c,this.getScrollOffset())||this.scrollToIndex(r,{align:a,behavior:o})}else this.scrollToIndex(r,{align:a,behavior:o})}))},this.scrollBy=(r,{behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+r,{adjustments:void 0,behavior:n})},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let o;return n.length===0?o=this.options.paddingStart:o=this.options.lanes===1?((r=n[n.length-1])==null?void 0:r.end)??0:Math.max(...n.slice(-this.options.lanes).map(s=>s.end)),Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:o})=>{this.options.scrollToFn(r,{behavior:o,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const K0=(e,t,r,n)=>{for(;e<=t;){const o=(e+t)/2|0,s=r(o);if(s<n)e=o+1;else if(s>n)t=o-1;else return o}return e>0?e-1:0};function gk({measurements:e,outerSize:t,scrollOffset:r}){const n=e.length-1,s=K0(0,n,a=>e[a].start,r);let i=s;for(;i<n&&e[i].end<r+t;)i++;return{startIndex:s,endIndex:i}}const W0=typeof document<"u"?At.useLayoutEffect:At.useEffect;function vk(e){const t=At.useReducer(()=>({}),{})[1],r={...e,onChange:(o,s)=>{var i;s?Wn.flushSync(t):t(),(i=e.onChange)==null||i.call(e,o,s)}},[n]=At.useState(()=>new mk(r));return n.setOptions(r),W0(()=>n._didMount(),[]),W0(()=>n._willUpdate()),n}function bk(e){return vk({observeElementRect:ck,observeElementOffset:fk,scrollToFn:hk,...e})}function yk(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:i,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(h,g,m,x,v)=>{if(o==="auto"){const $=`${x}${$g(v)}Scroll`;g&&m?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=g.toString(),c.dataset[`${v}Scroll`]=m.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=g&&m?"both":g?x:m?v:"none";$!==l.current&&(i?.($),l.current=$)}},d=()=>{var h,g;const m=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((h=x?.getAttribute("data-virtual-scroll-height"))!=null?h:c.scrollHeight),$=+((g=x?.getAttribute("data-virtual-scroll-top"))!=null?g:c.scrollTop);for(const{type:C,prefix:E,suffix:T}of m)if(n===C||n==="both"){const k=C==="vertical"?$>s:c.scrollLeft>s,D=C==="vertical"?$+c.clientHeight+s<v:c.scrollLeft+c.clientWidth+s<c.scrollWidth;u(C,k,D,E,T)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{c.removeAttribute(`data-${h}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{c.dataset[`${h}Scroll`]=String(o===h)}))),()=>{c.removeEventListener("scroll",d,!0),p()}},[...a,r,o,n,i,t])}function xk(e){var t;const[r,n]=Bt(e,Fs.variantKeys),{ref:o,as:s,children:i,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...g}=r,m=s||"div",x=Rt(o);yk({domRef:x,offset:u,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[i],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Fs({...n,className:a}),[qr(n),a]);return{Component:m,styles:v,domRef:x,children:i,getBaseProps:(C={})=>{var E;return{ref:x,className:v,"data-orientation":(E=e.orientation)!=null?E:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...C.style},...g,...C}}}}var wk=(e,t)=>{const r=[];for(const n of e)n.type==="section"?r.push(([...n.childNodes].length+1)*t):r.push(t);return r},$k=e=>{if(!e||e.scrollTop===void 0||e.clientHeight===void 0||e.scrollHeight===void 0)return{isTop:!1,isBottom:!1,isMiddle:!1};const t=e.scrollTop===0,r=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:r,isMiddle:!t&&!r}},Ek=e=>{var t;const{Component:r,state:n,color:o,variant:s,itemClasses:i,getBaseProps:a,topContent:l,bottomContent:c,hideEmptyContent:u,hideSelectedIcon:d,shouldHighlightOnFocus:p,disableAnimation:h,getEmptyContentProps:g,getListProps:m,scrollShadowProps:x}=e,{virtualization:v}=e;if(!v||!_n(v)&&!v.maxListboxHeight&&!v.itemHeight)throw new Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");const{maxListboxHeight:$,itemHeight:C}=v,E=Math.min($,C*n.collection.size),T=f.useRef(null),k=f.useMemo(()=>wk([...n.collection],C),[n.collection,C]),D=bk({count:[...n.collection].length,getScrollElement:()=>T.current,estimateSize:N=>k[N]}),P=D.getVirtualItems(),V=D.getTotalSize(),{getBaseProps:F}=xk({...x}),y=N=>{var w;const S=[...n.collection][N.index];if(!S)return null;const _={color:o,item:S,state:n,variant:s,disableAnimation:h,hideSelectedIcon:d,...S.props},B={position:"absolute",top:0,left:0,width:"100%",height:`${N.size}px`,transform:`translateY(${N.start}px)`};if(S.type==="section")return b.jsx(B0,{..._,itemClasses:i,style:{...B,..._.style}},S.key);let L=b.jsx(Nc,{..._,classNames:Ve(i,(w=S.props)==null?void 0:w.classNames),shouldHighlightOnFocus:p,style:{...B,..._.style}},S.key);return S.wrapper&&(L=S.wrapper(L)),L},[M,A]=f.useState({isTop:!1,isBottom:!0,isMiddle:!1}),I=b.jsxs(r,{...m(),"data-virtual-scroll-height":V,"data-virtual-scroll-top":(t=T?.current)==null?void 0:t.scrollTop,children:[!n.collection.size&&!u&&b.jsx("li",{children:b.jsx("div",{...g()})}),b.jsx("div",{...ct(F()),ref:T,style:{height:$,overflow:"auto"},onScroll:N=>{A($k(N.target))},children:E>0&&C>0&&b.jsx("div",{style:{height:`${V}px`,width:"100%",position:"relative"},children:P.map(N=>y(N))})})]});return b.jsxs("div",{...a(),children:[l,I,c]})},Pk=Ek,Ck=Re(function(t,r){const{isVirtualized:n,...o}=t,s=X3({...o,ref:r}),{Component:i,state:a,color:l,variant:c,itemClasses:u,getBaseProps:d,topContent:p,bottomContent:h,hideEmptyContent:g,hideSelectedIcon:m,shouldHighlightOnFocus:x,disableAnimation:v,getEmptyContentProps:$,getListProps:C}=s;if(n)return b.jsx(Pk,{...t,...s});const E=b.jsxs(i,{...C(),children:[!a.collection.size&&!g&&b.jsx("li",{children:b.jsx("div",{...$()})}),[...a.collection].map(T=>{var k;const D={color:l,item:T,state:a,variant:c,disableAnimation:v,hideSelectedIcon:m,...T.props};if(T.type==="section")return b.jsx(B0,{...D,itemClasses:u},T.key);let P=b.jsx(Nc,{...D,classNames:Ve(u,(k=T.props)==null?void 0:k.classNames),shouldHighlightOnFocus:x},T.key);return T.wrapper&&(P=T.wrapper(P)),P})]});return b.jsxs("div",{...d(),children:[p,E,h]})}),Sk=Ck;function Tk(e,t){const{groupRef:r,triggerRef:n,popoverRef:o,showArrow:s,offset:i=7,crossOffset:a=0,scrollRef:l,shouldFlip:c,boundaryElement:u,isDismissable:d=!0,shouldCloseOnBlur:p=!0,shouldCloseOnScroll:h=!0,placement:g="top",containerPadding:m,shouldCloseOnInteractOutside:x,isNonModal:v,isKeyboardDismissDisabled:$,updatePositionDeps:C=[],...E}=e,T=v??!0,k=E.trigger==="SubmenuTrigger",{overlayProps:D,underlayProps:P}=Fv({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:p,isDismissable:d||k,isKeyboardDismissDisabled:$,shouldCloseOnInteractOutside:x||(I=>{var N;return!((N=n.current)!=null&&N.contains(I))}),disableOutsideEvents:!T},o),{overlayProps:V,arrowProps:F,placement:y,updatePosition:M,triggerAnchorPoint:A}=b4({...E,shouldFlip:c,crossOffset:a,targetRef:n,overlayRef:o,isOpen:t.isOpen,scrollRef:l,boundaryElement:u,containerPadding:m,placement:B3(g),offset:s?i+3:i,onClose:T&&!k&&h?t.close:()=>{}});return Mn(()=>{C.length&&M()},C),f.useEffect(()=>{var I,N;if(t.isOpen&&o.current)return T?W3((I=r?.current)!=null?I:o.current):K3([(N=r?.current)!=null?N:o.current])},[T,t.isOpen,o,r]),{popoverProps:Ve(D,V),arrowProps:F,underlayProps:P,placement:y,triggerAnchorPoint:A}}var kk="top";function Ik(e){var t,r,n;const o=gt(),[s,i]=Bt(e,Ls.variantKeys),{as:a,ref:l,children:c,state:u,triggerRef:d,scrollRef:p,defaultOpen:h,onOpenChange:g,isOpen:m,isNonModal:x=!0,shouldFlip:v=!0,containerPadding:$=12,shouldBlockScroll:C=!1,isDismissable:E=!0,shouldCloseOnBlur:T,portalContainer:k,updatePositionDeps:D,dialogProps:P,placement:V=kk,triggerType:F="dialog",showArrow:y=!1,offset:M=7,crossOffset:A=0,boundaryElement:I,isKeyboardDismissDisabled:N,shouldCloseOnInteractOutside:w,shouldCloseOnScroll:S,triggerAnchorPoint:_,motionProps:B,className:L,classNames:K,onClose:z,...W}=s,U=a||"div",ee=Rt(l),G=f.useRef(null),R=f.useRef(!1),me=d||G,ue=(r=(t=e.disableAnimation)!=null?t:o?.disableAnimation)!=null?r:!1,Q=ea({isOpen:m,defaultOpen:h,onOpenChange:Oe=>{g?.(Oe),Oe||z?.()}}),ie=u||Q,{popoverProps:q,underlayProps:X,placement:le}=Tk({triggerRef:me,isNonModal:x,popoverRef:ee,placement:V,offset:M,scrollRef:p,isDismissable:E,shouldCloseOnBlur:T,boundaryElement:I,crossOffset:A,shouldFlip:v,containerPadding:$,updatePositionDeps:D,isKeyboardDismissDisabled:N,shouldCloseOnScroll:S,shouldCloseOnInteractOutside:w,triggerAnchorPoint:_},ie),ae=f.useMemo(()=>le?R3(le,V)?le:V:null,[le,V]),{triggerProps:oe}=Bg({type:F},ie,me),{isFocusVisible:be,isFocused:Me,focusProps:ye}=Sn(),te=f.useMemo(()=>Ls({...i}),[qr(i)]),je=Pe(K?.base,L),xe={"--trigger-anchor-point":_?`${_.x}px ${_.y}px`:void 0};dc({isDisabled:!(C&&ie.isOpen)});const We=(Oe={})=>({ref:ee,...Ve(q,W,Oe),style:Ve(q.style,W.style,Oe.style)}),lt=(Oe={})=>({"data-slot":"base","data-open":he(ie.isOpen),"data-focus":he(Me),"data-arrow":he(y),"data-focus-visible":he(be),"data-placement":le?L0(le,V):void 0,...Ve(ye,P,Oe),className:te.base({class:Pe(je)}),style:{outline:"none",...xe}}),Te=f.useCallback((Oe={})=>({"data-slot":"content","data-open":he(ie.isOpen),"data-arrow":he(y),"data-placement":le?L0(le,V):void 0,className:te.content({class:Pe(K?.content,Oe.className)})}),[te,ie.isOpen,y,ae,V,K,le]),Ge=f.useCallback(Oe=>{var Ct;let It;return Oe.pointerType==="touch"&&(e?.backdrop==="blur"||e?.backdrop==="opaque")?It=setTimeout(()=>{R.current=!0},100):R.current=!0,(Ct=oe.onPress)==null||Ct.call(oe,Oe),()=>{clearTimeout(It)}},[oe?.onPress]),pt=f.useCallback((Oe={},Ct=null)=>{const{isDisabled:It,..._t}=Oe;return{"data-slot":"trigger",...Ve({"aria-haspopup":"dialog"},oe,_t),onPress:Ge,isDisabled:It,className:te.trigger({class:Pe(K?.trigger,Oe.className),isTriggerDisabled:It}),ref:nc(Ct,me)}},[ie,oe,Ge,me]),Ft=f.useCallback((Oe={})=>({"data-slot":"backdrop",className:te.backdrop({class:K?.backdrop}),onClick:Ct=>{if(!R.current){Ct.preventDefault();return}ie.close(),R.current=!1},...X,...Oe}),[te,ie.isOpen,K,X]);return{state:ie,Component:U,children:c,classNames:K,showArrow:y,triggerRef:me,placement:ae,isNonModal:x,popoverRef:ee,portalContainer:k,isOpen:ie.isOpen,onClose:ie.close,disableAnimation:ue,shouldBlockScroll:C,backdrop:(n=e.backdrop)!=null?n:"transparent",motionProps:B,getBackdropProps:Ft,getPopoverProps:We,getTriggerProps:pt,getDialogProps:lt,getContentProps:Te}}var U0=()=>Promise.resolve().then(()=>Ps).then(e=>e.default),H0=Re(({children:e,motionProps:t,placement:r,disableAnimation:n,style:o={},transformOrigin:s={},...i},a)=>{let l=o;return s.originX!==void 0||s.originY!==void 0?l={...l,transformOrigin:s}:r&&(l={...l,...z3(r==="center"?"top":r)}),n?b.jsx("div",{...i,ref:a,children:e}):b.jsx(gn,{features:U0,children:b.jsx(vn.div,{ref:a,animate:"enter",exit:"exit",initial:"initial",style:l,variants:oc.scaleSpringOpacity,...Ve(i,t),children:e})})});H0.displayName="HeroUI.FreeSoloPopoverWrapper";var G0=Re(({children:e,transformOrigin:t,disableDialogFocus:r=!1,...n},o)=>{const{Component:s,state:i,placement:a,backdrop:l,portalContainer:c,disableAnimation:u,motionProps:d,isNonModal:p,getPopoverProps:h,getBackdropProps:g,getDialogProps:m,getContentProps:x}=Ik({...n,ref:o}),v=At.useRef(null),{dialogProps:$,titleProps:C}=Mv({},v),E=m({...!r&&{ref:v},...$}),T=At.useMemo(()=>l==="transparent"?null:u?b.jsx("div",{...g()}):b.jsx(gn,{features:U0,children:b.jsx(vn.div,{animate:"enter",exit:"exit",initial:"exit",variants:oc.fade,...g()})}),[l,u,g]);return b.jsxs(Iv,{portalContainer:c,children:[!p&&T,b.jsx(s,{...h(),children:b.jsxs(H0,{disableAnimation:u,motionProps:d,placement:a,tabIndex:-1,transformOrigin:t,...E,children:[!p&&b.jsx(Qi,{onDismiss:i.close}),b.jsx("div",{...x(),children:typeof e=="function"?e(C):e}),b.jsx(Qi,{onDismiss:i.close})]})})]})});G0.displayName="HeroUI.FreeSoloPopover";var _k=G0,[e_,Mk]=Gi({name:"ButtonGroupContext",strict:!1}),Dk=()=>Promise.resolve().then(()=>Ps).then(e=>e.default),Z0=e=>{const{ripples:t=[],motionProps:r,color:n="currentColor",style:o,onClear:s}=e;return b.jsx(b.Fragment,{children:t.map(i=>{const a=XT(.01*i.size,.2,i.size>100?.75:.5);return b.jsx(gn,{features:Dk,children:b.jsx(Zo,{mode:"popLayout",children:b.jsx(vn.span,{animate:{transform:"scale(2)",opacity:0},className:"heroui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:i.y,left:i.x,width:`${i.size}px`,height:`${i.size}px`,...o},transition:{duration:a},onAnimationComplete:()=>{s(i.key)},...r})})},i.key)})})};Z0.displayName="HeroUI.Ripple";var Ak=Z0;function Nk(e={}){const[t,r]=f.useState([]),n=f.useCallback(s=>{const i=s.target,a=Math.max(i.clientWidth,i.clientHeight);r(l=>[...l,{key:qT(l.length.toString()),size:a,x:s.x-a/2,y:s.y-a/2}])},[]),o=f.useCallback(s=>{r(i=>i.filter(a=>a.key!==s))},[]);return{ripples:t,onClear:o,onPress:n,...e}}function Ok(e){var t,r,n,o,s,i,a,l,c;const u=Mk(),d=gt(),p=!!u,{ref:h,as:g,children:m,startContent:x,endContent:v,autoFocus:$,className:C,spinner:E,isLoading:T=!1,disableRipple:k=!1,fullWidth:D=(t=u?.fullWidth)!=null?t:!1,radius:P=u?.radius,size:V=(r=u?.size)!=null?r:"md",color:F=(n=u?.color)!=null?n:"default",variant:y=(o=u?.variant)!=null?o:"solid",disableAnimation:M=(i=(s=u?.disableAnimation)!=null?s:d?.disableAnimation)!=null?i:!1,isDisabled:A=(a=u?.isDisabled)!=null?a:!1,isIconOnly:I=(l=u?.isIconOnly)!=null?l:!1,spinnerPlacement:N="start",onPress:w,onClick:S,..._}=e,B=g||"button",L=typeof B=="string",K=Rt(h),z=(c=k||d?.disableRipple)!=null?c:M,{isFocusVisible:W,isFocused:U,focusProps:ee}=Sn({autoFocus:$}),G=A||T,R=f.useMemo(()=>Gd({size:V,color:F,variant:y,radius:P,fullWidth:D,isDisabled:G,isInGroup:p,disableAnimation:M,isIconOnly:I,className:C}),[V,F,y,P,D,G,p,I,M,C]),{onPress:me,onClear:ue,ripples:Q}=Nk(),ie=f.useCallback(xe=>{z||G||M||K.current&&me(xe)},[z,G,M,K,me]),{buttonProps:q,isPressed:X}=hc({elementType:g,isDisabled:G,onPress:Zi(w,ie),onClick:S,..._},K),{isHovered:le,hoverProps:ae}=Pn({isDisabled:G}),oe=f.useCallback((xe={})=>({"data-disabled":he(G),"data-focus":he(U),"data-pressed":he(X),"data-focus-visible":he(W),"data-hover":he(le),"data-loading":he(T),...Ve(q,ee,ae,ct(_,{enabled:L}),ct(xe)),className:R}),[T,G,U,X,L,W,le,q,ee,ae,_,R]),be=xe=>f.isValidElement(xe)?f.cloneElement(xe,{"aria-hidden":!0,focusable:!1}):null,Me=be(x),ye=be(v),te=f.useMemo(()=>({sm:"sm",md:"sm",lg:"md"})[V],[V]),je=f.useCallback(()=>({ripples:Q,onClear:ue}),[Q,ue]);return{Component:B,children:m,domRef:K,spinner:E,styles:R,startContent:Me,endContent:ye,isLoading:T,spinnerPlacement:N,spinnerSize:te,disableRipple:z,getButtonProps:oe,getRippleProps:je,isIconOnly:I}}var[t_,Lk]=Gi({name:"ProviderContext",strict:!1});function Fk(e){var t,r;const[n,o]=ok(e,Os.variantKeys),s=Lk(),i=(r=(t=e?.variant)!=null?t:s?.spinnerVariant)!=null?r:"default",{children:a,className:l,classNames:c,label:u,...d}=n,p=f.useMemo(()=>Os({...o}),[qr(o)]),h=Pe(c?.base,l),g=u||a,m=f.useMemo(()=>g&&typeof g=="string"?g:d["aria-label"]?"":"Loading",[a,g,d["aria-label"]]),x=f.useCallback(()=>({"aria-label":m,className:p.base({class:h}),...d}),[m,p,h,d]);return{label:g,slots:p,classNames:c,variant:i,getSpinnerProps:x}}var q0=V0((e,t)=>{const{slots:r,classNames:n,label:o,variant:s,getSpinnerProps:i}=Fk({...e});return s==="wave"||s==="dots"?b.jsxs("div",{ref:t,...i(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(3)].map((a,l)=>b.jsx("i",{className:r.dots({class:n?.dots}),style:{"--dot-index":l}},`dot-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="simple"?b.jsxs("div",{ref:t,...i(),children:[b.jsxs("svg",{className:r.wrapper({class:n?.wrapper}),fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:r.circle1({class:n?.circle1}),cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:r.circle2({class:n?.circle2}),d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):s==="spinner"?b.jsxs("div",{ref:t,...i(),children:[b.jsx("div",{className:r.wrapper({class:n?.wrapper}),children:[...new Array(12)].map((a,l)=>b.jsx("i",{className:r.spinnerBars({class:n?.spinnerBars}),style:{"--bar-index":l}},`star-${l}`))}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]}):b.jsxs("div",{ref:t,...i(),children:[b.jsxs("div",{className:r.wrapper({class:n?.wrapper}),children:[b.jsx("i",{className:r.circle1({class:n?.circle1})}),b.jsx("i",{className:r.circle2({class:n?.circle2})})]}),o&&b.jsx("span",{className:r.label({class:n?.label}),children:o})]})});q0.displayName="HeroUI.Spinner";var Y0=q0,X0=Re((e,t)=>{const{Component:r,domRef:n,children:o,spinnerSize:s,spinner:i=b.jsx(Y0,{color:"current",size:s}),spinnerPlacement:a,startContent:l,endContent:c,isLoading:u,disableRipple:d,getButtonProps:p,getRippleProps:h,isIconOnly:g}=Ok({...e,ref:t});return b.jsxs(r,{ref:n,...p(),children:[l,u&&a==="start"&&i,u&&g?null:o,u&&a==="end"&&i,c,!d&&b.jsx(Ak,{...h()})]})});X0.displayName="HeroUI.Button";var Vk=X0;function jk(e={}){const{domRef:t,isEnabled:r=!0,overflowCheck:n="vertical",visibility:o="auto",offset:s=0,onVisibilityChange:i,updateDeps:a=[]}=e,l=f.useRef(o);f.useEffect(()=>{const c=t?.current;if(!c||!r)return;const u=(h,g,m,x,v)=>{if(o==="auto"){const $=`${x}${$g(v)}Scroll`;g&&m?(c.dataset[$]="true",c.removeAttribute(`data-${x}-scroll`),c.removeAttribute(`data-${v}-scroll`)):(c.dataset[`${x}Scroll`]=g.toString(),c.dataset[`${v}Scroll`]=m.toString(),c.removeAttribute(`data-${x}-${v}-scroll`))}else{const $=g&&m?"both":g?x:m?v:"none";$!==l.current&&(i?.($),l.current=$)}},d=()=>{var h,g;const m=[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}],x=c.querySelector('ul[data-slot="list"]'),v=+((h=x?.getAttribute("data-virtual-scroll-height"))!=null?h:c.scrollHeight),$=+((g=x?.getAttribute("data-virtual-scroll-top"))!=null?g:c.scrollTop);for(const{type:C,prefix:E,suffix:T}of m)if(n===C||n==="both"){const k=C==="vertical"?$>s:c.scrollLeft>s,D=C==="vertical"?$+c.clientHeight+s<v:c.scrollLeft+c.clientWidth+s<c.scrollWidth;u(C,k,D,E,T)}},p=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(h=>{c.removeAttribute(`data-${h}-scroll`)})};return d(),c.addEventListener("scroll",d,!0),o!=="auto"&&(p(),o==="both"?(c.dataset.topBottomScroll=String(n==="vertical"),c.dataset.leftRightScroll=String(n==="horizontal")):(c.dataset.topBottomScroll="false",c.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(h=>{c.dataset[`${h}Scroll`]=String(o===h)}))),()=>{c.removeEventListener("scroll",d,!0),p()}},[...a,r,o,n,i,t])}function zk(e){var t;const[r,n]=Bt(e,Fs.variantKeys),{ref:o,as:s,children:i,className:a,style:l,size:c=40,offset:u=0,visibility:d="auto",isEnabled:p=!0,onVisibilityChange:h,...g}=r,m=s||"div",x=Rt(o);jk({domRef:x,offset:u,visibility:d,isEnabled:p,onVisibilityChange:h,updateDeps:[i],overflowCheck:(t=e.orientation)!=null?t:"vertical"});const v=f.useMemo(()=>Fs({...n,className:a}),[qr(n),a]);return{Component:m,styles:v,domRef:x,children:i,getBaseProps:(C={})=>{var E;return{ref:x,className:v,"data-orientation":(E=e.orientation)!=null?E:"vertical",style:{"--scroll-shadow-size":`${c}px`,...l,...C.style},...g,...C}}}}var J0=Re((e,t)=>{const{Component:r,children:n,getBaseProps:o}=zk({...e,ref:t});return b.jsx(r,{...o(),children:n})});J0.displayName="HeroUI.ScrollShadow";var Bk=J0,Rk=Re(function(t,r){var n;const{Component:o,state:s,label:i,hasHelper:a,isLoading:l,triggerRef:c,selectorIcon:u=b.jsx(kT,{}),description:d,errorMessage:p,isInvalid:h,startContent:g,endContent:m,placeholder:x,renderValue:v,shouldLabelBeOutside:$,disableAnimation:C,getBaseProps:E,getLabelProps:T,getTriggerProps:k,getValueProps:D,getListboxProps:P,getPopoverProps:V,getSpinnerProps:F,getMainWrapperProps:y,getInnerWrapperProps:M,getHiddenSelectProps:A,getHelperWrapperProps:I,getListboxWrapperProps:N,getDescriptionProps:w,getErrorMessageProps:S,getSelectorIconProps:_,isClearable:B,getClearButtonProps:L,getEndWrapperProps:K,getEndContentProps:z}=N3({...t,ref:r}),W=i?b.jsx("label",{...T(),children:i}):null,U=f.cloneElement(u,_()),ee=f.useMemo(()=>{var ie;return B&&((ie=s.selectedItems)!=null&&ie.length)?b.jsx("span",{...L(),children:b.jsx(Qu,{})}):null},[B,L,(n=s.selectedItems)==null?void 0:n.length]),G=f.useMemo(()=>ee?b.jsxs("div",{...K(),children:[ee,m&&b.jsx("span",{...z(),children:m})]}):m&&b.jsx("span",{...z(),children:m}),[ee,m,K,z]),R=f.useMemo(()=>{const ie=h&&p;return!a||!(ie||d)?null:b.jsx("div",{...I(),children:ie?b.jsx("div",{...S(),children:p}):b.jsx("div",{...w(),children:d})})},[a,h,p,d,I,S,w]),me=f.useMemo(()=>{var ie;if(!((ie=s.selectedItems)!=null&&ie.length))return x;if(v&&typeof v=="function"){const q=[...s.selectedItems].map(X=>({key:X.key,data:X.value,type:X.type,props:X.props,textValue:X.textValue,rendered:X.rendered,"aria-label":X["aria-label"]}));return v(q)}return s.selectedItems.map(q=>q.textValue).join(", ")},[s.selectedItems,v,x]),ue=f.useMemo(()=>l?b.jsx(Y0,{...F()}):U,[l,U,F]),Q=f.useMemo(()=>s.isOpen?b.jsx(_k,{...V(),children:b.jsx(Bk,{...N(),children:b.jsx(Sk,{...P()})})}):null,[s.isOpen,V,s,c,N,P]);return b.jsxs("div",{...E(),children:[b.jsx(j3,{...A()}),$?W:null,b.jsxs("div",{...y(),children:[b.jsxs(o,{...k(),children:[$?null:W,b.jsxs("div",{...M(),children:[g,b.jsx("span",{...D(),children:me}),m&&s.selectedItems&&b.jsx(Tv,{elementType:"span",children:","}),G]}),ue]}),R]}),C?Q:b.jsx(Zo,{children:Q})]})}),la=Rk;function Z(e,t,r){function n(a,l){var c;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(c=a._zod).traits??(c.traits=new Set),a._zod.traits.add(e),t(a,l);for(const u in i.prototype)u in a||Object.defineProperty(a,u,{value:i.prototype[u].bind(a)});a._zod.constr=i,a._zod.def=l}const o=r?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function i(a){var l;const c=r?.Parent?new s:this;n(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:a=>r?.Parent&&a instanceof r.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}class ko extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Q0 extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const ey={};function Nn(e){return ey}function Kk(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,o])=>t.indexOf(+n)===-1).map(([n,o])=>o)}function Lc(e,t){return typeof t=="bigint"?t.toString():t}function Fc(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Vc(e){return e==null}function jc(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const ty=Symbol("evaluating");function He(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==ty)return n===void 0&&(n=ty,n=r()),n},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function On(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Ln(...e){const t={};for(const r of e){const n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function ry(e){return JSON.stringify(e)}const ny="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ua(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Wk=Fc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function ms(e){if(ua(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(ua(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function oy(e){return ms(e)?{...e}:Array.isArray(e)?[...e]:e}const Uk=new Set(["string","number","symbol"]);function ca(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Yr(e,t,r){const n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}function $e(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Hk(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function Gk(e,t){const r=e._zod.def,n=Ln(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=r.shape[s])}return On(this,"shape",o),o},checks:[]});return Yr(e,n)}function Zk(e,t){const r=e._zod.def,n=Ln(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return On(this,"shape",o),o},checks:[]});return Yr(e,n)}function qk(e,t){if(!ms(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Ln(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return On(this,"shape",s),s},checks:[]});return Yr(e,o)}function Yk(e,t){if(!ms(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r={...e._zod.def,get shape(){const n={...e._zod.def.shape,...t};return On(this,"shape",n),n},checks:e._zod.def.checks};return Yr(e,r)}function Xk(e,t){const r=Ln(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return On(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return Yr(e,r)}function Jk(e,t,r){const n=Ln(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(r)for(const i in r){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(s[i]=e?new e({type:"optional",innerType:o[i]}):o[i])}else for(const i in o)s[i]=e?new e({type:"optional",innerType:o[i]}):o[i];return On(this,"shape",s),s},checks:[]});return Yr(t,n)}function Qk(e,t,r){const n=Ln(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(r)for(const i in r){if(!(i in s))throw new Error(`Unrecognized key: "${i}"`);r[i]&&(s[i]=new e({type:"nonoptional",innerType:o[i]}))}else for(const i in o)s[i]=new e({type:"nonoptional",innerType:o[i]});return On(this,"shape",s),s},checks:[]});return Yr(t,n)}function Io(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function sy(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}function da(e){return typeof e=="string"?e:e?.message}function Fn(e,t,r){const n={...e,path:e.path??[]};if(!e.message){const o=da(e.inst?._zod.def?.error?.(e))??da(t?.error?.(e))??da(r.customError?.(e))??da(r.localeError?.(e))??"Invalid input";n.message=o}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function zc(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function gs(...e){const[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}const iy=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Lc,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ay=Z("$ZodError",iy),ly=Z("$ZodError",iy,{Parent:Error});function e9(e,t=r=>r.message){const r={},n=[];for(const o of e.issues)o.path.length>0?(r[o.path[0]]=r[o.path[0]]||[],r[o.path[0]].push(t(o))):n.push(t(o));return{formErrors:n,fieldErrors:r}}function t9(e,t=r=>r.message){const r={_errors:[]},n=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(i=>n({issues:i}));else if(s.code==="invalid_key")n({issues:s.issues});else if(s.code==="invalid_element")n({issues:s.issues});else if(s.path.length===0)r._errors.push(t(s));else{let i=r,a=0;for(;a<s.path.length;){const l=s.path[a];a===s.path.length-1?(i[l]=i[l]||{_errors:[]},i[l]._errors.push(t(s))):i[l]=i[l]||{_errors:[]},i=i[l],a++}}};return n(e),r}const Bc=e=>(t,r,n,o)=>{const s=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:r,issues:[]},s);if(i instanceof Promise)throw new ko;if(i.issues.length){const a=new(o?.Err??e)(i.issues.map(l=>Fn(l,s,Nn())));throw ny(a,o?.callee),a}return i.value},Rc=e=>async(t,r,n,o)=>{const s=n?Object.assign(n,{async:!0}):{async:!0};let i=t._zod.run({value:r,issues:[]},s);if(i instanceof Promise&&(i=await i),i.issues.length){const a=new(o?.Err??e)(i.issues.map(l=>Fn(l,s,Nn())));throw ny(a,o?.callee),a}return i.value},fa=e=>(t,r,n)=>{const o=n?{...n,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},o);if(s instanceof Promise)throw new ko;return s.issues.length?{success:!1,error:new(e??ay)(s.issues.map(i=>Fn(i,o,Nn())))}:{success:!0,data:s.value}},r9=fa(ly),pa=e=>async(t,r,n)=>{const o=n?Object.assign(n,{async:!0}):{async:!0};let s=t._zod.run({value:r,issues:[]},o);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(i=>Fn(i,o,Nn())))}:{success:!0,data:s.value}},n9=pa(ly),o9=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Bc(e)(t,r,o)},s9=e=>(t,r,n)=>Bc(e)(t,r,n),i9=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Rc(e)(t,r,o)},a9=e=>async(t,r,n)=>Rc(e)(t,r,n),l9=e=>(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return fa(e)(t,r,o)},u9=e=>(t,r,n)=>fa(e)(t,r,n),c9=e=>async(t,r,n)=>{const o=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return pa(e)(t,r,o)},d9=e=>async(t,r,n)=>pa(e)(t,r,n),f9=/^[cC][^\s-]{8,}$/,p9=/^[0-9a-z]+$/,h9=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,m9=/^[0-9a-vA-V]{20}$/,g9=/^[A-Za-z0-9]{27}$/,v9=/^[a-zA-Z0-9_-]{21}$/,b9=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,y9=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,uy=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,x9=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,w9="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function $9(){return new RegExp(w9,"u")}const E9=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,P9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,C9=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,S9=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,T9=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,cy=/^[A-Za-z0-9_-]*$/,k9=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,I9=/^\+(?:[0-9]){6,14}[0-9]$/,dy="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_9=new RegExp(`^${dy}$`);function fy(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function M9(e){return new RegExp(`^${fy(e)}$`)}function D9(e){const t=fy({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${t}(?:${r.join("|")})`;return new RegExp(`^${dy}T(?:${n})$`)}const A9=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},N9=/^[^A-Z]*$/,O9=/^[^a-z]*$/,xr=Z("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),L9=Z("$ZodCheckMaxLength",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Vc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const o=n.value;if(o.length<=t.maximum)return;const i=zc(o);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),F9=Z("$ZodCheckMinLength",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Vc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const o=n.value;if(o.length>=t.minimum)return;const i=zc(o);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),V9=Z("$ZodCheckLengthEquals",(e,t)=>{var r;xr.init(e,t),(r=e._zod.def).when??(r.when=n=>{const o=n.value;return!Vc(o)&&o.length!==void 0}),e._zod.onattach.push(n=>{const o=n._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=n=>{const o=n.value,s=o.length;if(s===t.length)return;const i=zc(o),a=s>t.length;n.issues.push({origin:i,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),ha=Z("$ZodCheckStringFormat",(e,t)=>{var r,n;xr.init(e,t),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),j9=Z("$ZodCheckRegex",(e,t)=>{ha.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),z9=Z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=N9),ha.init(e,t)}),B9=Z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=O9),ha.init(e,t)}),R9=Z("$ZodCheckIncludes",(e,t)=>{xr.init(e,t);const r=ca(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=n,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),K9=Z("$ZodCheckStartsWith",(e,t)=>{xr.init(e,t);const r=new RegExp(`^${ca(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),W9=Z("$ZodCheckEndsWith",(e,t)=>{xr.init(e,t);const r=new RegExp(`.*${ca(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),U9=Z("$ZodCheckOverwrite",(e,t)=>{xr.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class H9{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const n=t.split(`
|
|
450
|
+
`).filter(i=>i),o=Math.min(...n.map(i=>i.length-i.trimStart().length)),s=n.map(i=>i.slice(o)).map(i=>" ".repeat(this.indent*2)+i);for(const i of s)this.content.push(i)}compile(){const t=Function,r=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...r,o.join(`
|
|
451
|
+
`))}}const G9={major:4,minor:1,patch:12},vt=Z("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=G9;const n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(const o of n)for(const s of o._zod.onattach)s(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(i,a,l)=>{let c=Io(i),u;for(const d of a){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(c)continue;const p=i.issues.length,h=d._zod.check(i);if(h instanceof Promise&&l?.async===!1)throw new ko;if(u||h instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await h,i.issues.length!==p&&(c||(c=Io(i,p)))});else{if(i.issues.length===p)continue;c||(c=Io(i,p))}}return u?u.then(()=>i):i},s=(i,a,l)=>{if(Io(i))return i.aborted=!0,i;const c=o(a,n,l);if(c instanceof Promise){if(l.async===!1)throw new ko;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction==="backward"){const c=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>s(u,i,a)):s(c,i,a)}const l=e._zod.parse(i,a);if(l instanceof Promise){if(a.async===!1)throw new ko;return l.then(c=>o(c,n,a))}return o(l,n,a)}}e["~standard"]={validate:o=>{try{const s=r9(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return n9(e,o).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),Kc=Z("$ZodString",(e,t)=>{vt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??A9(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Qe=Z("$ZodStringFormat",(e,t)=>{ha.init(e,t),Kc.init(e,t)}),Z9=Z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=y9),Qe.init(e,t)}),q9=Z("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=uy(n))}else t.pattern??(t.pattern=uy());Qe.init(e,t)}),Y9=Z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=x9),Qe.init(e,t)}),X9=Z("$ZodURL",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{try{const n=r.value.trim(),o=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:k9.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=o.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),J9=Z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=$9()),Qe.init(e,t)}),Q9=Z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=v9),Qe.init(e,t)}),e6=Z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=f9),Qe.init(e,t)}),t6=Z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=p9),Qe.init(e,t)}),r6=Z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=h9),Qe.init(e,t)}),n6=Z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=m9),Qe.init(e,t)}),o6=Z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=g9),Qe.init(e,t)}),s6=Z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=D9(t)),Qe.init(e,t)}),i6=Z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=_9),Qe.init(e,t)}),a6=Z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=M9(t)),Qe.init(e,t)}),l6=Z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=b9),Qe.init(e,t)}),u6=Z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=E9),Qe.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv4"})}),c6=Z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=P9),Qe.init(e,t),e._zod.onattach.push(r=>{const n=r._zod.bag;n.format="ipv6"}),e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),d6=Z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=C9),Qe.init(e,t)}),f6=Z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=S9),Qe.init(e,t),e._zod.check=r=>{const n=r.value.split("/");try{if(n.length!==2)throw new Error;const[o,s]=n;if(!s)throw new Error;const i=Number(s);if(`${i}`!==s)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${o}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function py(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const p6=Z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=T9),Qe.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64"}),e._zod.check=r=>{py(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function h6(e){if(!cy.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return py(r)}const m6=Z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=cy),Qe.init(e,t),e._zod.onattach.push(r=>{r._zod.bag.contentEncoding="base64url"}),e._zod.check=r=>{h6(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),g6=Z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=I9),Qe.init(e,t)});function v6(e,t=null){try{const r=e.split(".");if(r.length!==3)return!1;const[n]=r;if(!n)return!1;const o=JSON.parse(atob(n));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const b6=Z("$ZodJWT",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{v6(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),y6=Z("$ZodUnknown",(e,t)=>{vt.init(e,t),e._zod.parse=r=>r}),x6=Z("$ZodNever",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)});function hy(e,t,r){e.issues.length&&t.issues.push(...sy(r,e.issues)),t.value[r]=e.value}const w6=Z("$ZodArray",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=Array(o.length);const s=[];for(let i=0;i<o.length;i++){const a=o[i],l=t.element._zod.run({value:a,issues:[]},n);l instanceof Promise?s.push(l.then(c=>hy(c,r,i))):hy(l,r,i)}return s.length?Promise.all(s).then(()=>r):r}});function ma(e,t,r,n){e.issues.length&&t.issues.push(...sy(r,e.issues)),e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}function my(e){const t=Object.keys(e.shape);for(const n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);const r=Hk(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function gy(e,t,r,n,o,s){const i=[],a=o.keySet,l=o.catchall._zod,c=l.def.type;for(const u of Object.keys(t)){if(a.has(u))continue;if(c==="never"){i.push(u);continue}const d=l.run({value:t[u],issues:[]},n);d instanceof Promise?e.push(d.then(p=>ma(p,r,u,t))):ma(d,r,u,t)}return i.length&&r.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}const $6=Z("$ZodObject",(e,t)=>{if(vt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const n=Fc(()=>my(t));He(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const d of u.values)l[c].add(d)}}return l});const o=ua,s=t.catchall;let i;e._zod.parse=(a,l)=>{i??(i=n.value);const c=a.value;if(!o(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const u=[],d=i.shape;for(const p of i.keys){const g=d[p]._zod.run({value:c[p],issues:[]},l);g instanceof Promise?u.push(g.then(m=>ma(m,a,p,c))):ma(g,a,p,c)}return s?gy(u,c,a,l,n.value,e):u.length?Promise.all(u).then(()=>a):a}}),E6=Z("$ZodObjectJIT",(e,t)=>{$6.init(e,t);const r=e._zod.parse,n=Fc(()=>my(t)),o=p=>{const h=new H9(["shape","payload","ctx"]),g=n.value,m=C=>{const E=ry(C);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};h.write("const input = payload.value;");const x=Object.create(null);let v=0;for(const C of g.keys)x[C]=`key_${v++}`;h.write("const newResult = {};");for(const C of g.keys){const E=x[C],T=ry(C);h.write(`const ${E} = ${m(C)};`),h.write(`
|
|
452
|
+
if (${E}.issues.length) {
|
|
453
|
+
payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
|
|
415
454
|
...iss,
|
|
416
455
|
path: iss.path ? [${T}, ...iss.path] : [${T}]
|
|
417
456
|
})));
|
|
418
457
|
}
|
|
419
458
|
|
|
420
459
|
|
|
421
|
-
if (${
|
|
460
|
+
if (${E}.value === undefined) {
|
|
422
461
|
if (${T} in input) {
|
|
423
462
|
newResult[${T}] = undefined;
|
|
424
463
|
}
|
|
425
464
|
} else {
|
|
426
|
-
newResult[${T}] = ${
|
|
465
|
+
newResult[${T}] = ${E}.value;
|
|
427
466
|
}
|
|
428
467
|
|
|
429
|
-
`)}p.write("payload.value = newResult;"),p.write("return payload;");const $=p.compile();return(S,C)=>$(h,S,C)};let i;const s=da,a=!gy.jitless,c=a&&a6.value,u=t.catchall;let d;e._zod.parse=(h,p)=>{d??(d=n.value);const g=h.value;return s(g)?a&&c&&p?.async===!1&&p.jitless!==!0?(i||(i=o(t.shape)),h=i(h,p),u?Dy([],g,h,p,d,e):h):r(h,p):(h.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),h)}});function Ay(e,t,r,n){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!Io(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(s=>On(s,n,Mn())))}),t)}const B9=G("$ZodUnion",(e,t)=>{mt.init(e,t),He(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),He(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),He(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),He(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>Gc(i.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(r)return n(o,i);let s=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:o.value,issues:[]},i);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(l=>Ay(l,o,e,i)):Ay(a,o,e,i)}}),R9=G("$ZodIntersection",(e,t)=>{mt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,i=t.left._zod.run({value:o,issues:[]},n),s=t.right._zod.run({value:o,issues:[]},n);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>Oy(r,l,c)):Oy(r,i,s)}});function Jc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vi(e)&&vi(t)){const r=Object.keys(t),n=Object.keys(e).filter(i=>r.indexOf(i)!==-1),o={...e,...t};for(const i of n){const s=Jc(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],i=t[n],s=Jc(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[n,...s.mergeErrorPath]};r.push(s.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Oy(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Io(e))return e;const n=Jc(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const K9=G("$ZodEnum",(e,t)=>{mt.init(e,t);const r=s6(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>l6.has(typeof o)).map(o=>typeof o=="string"?fa(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return n.has(s)||o.issues.push({code:"invalid_value",values:r,input:s,inst:e}),o}}),W9=G("$ZodTransform",(e,t)=>{mt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new my(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(r.value=s,r));if(o instanceof Promise)throw new ko;return r.value=o,r}});function Ny(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const U9=G("$ZodOptional",(e,t)=>{mt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Gc(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Ny(i,r.value)):Ny(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),H9=G("$ZodNullable",(e,t)=>{mt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${Gc(r.source)}|null)$`):void 0}),He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),G9=G("$ZodDefault",(e,t)=>{mt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Ly(i,t)):Ly(o,t)}});function Ly(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Z9=G("$ZodPrefault",(e,t)=>{mt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),q9=G("$ZodNonOptional",(e,t)=>{mt.init(e,t),He(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>Fy(i,e)):Fy(o,e)}});function Fy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Y9=G("$ZodCatch",(e,t)=>{mt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(s=>On(s,n,Mn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(i=>On(i,n,Mn()))},input:r.value}),r.issues=[]),r)}}),X9=G("$ZodPipe",(e,t)=>{mt.init(e,t),He(e._zod,"values",()=>t.in._zod.values),He(e._zod,"optin",()=>t.in._zod.optin),He(e._zod,"optout",()=>t.out._zod.optout),He(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const i=t.out._zod.run(r,n);return i instanceof Promise?i.then(s=>ba(s,t.in,n)):ba(i,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(i=>ba(i,t.out,n)):ba(o,t.out,n)}});function ba(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const J9=G("$ZodReadonly",(e,t)=>{mt.init(e,t),He(e._zod,"propValues",()=>t.innerType._zod.propValues),He(e._zod,"values",()=>t.innerType._zod.values),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(Vy):Vy(o)}});function Vy(e){return e.value=Object.freeze(e.value),e}const Q9=G("$ZodCustom",(e,t)=>{yr.init(e,t),mt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(i=>jy(i,r,n,e));jy(o,r,n,e)}});function jy(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(bi(o))}}class e7{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function t7(){return new e7}const ya=t7();function r7(e,t){return new e({type:"string",...ye(t)})}function n7(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ye(t)})}function zy(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ye(t)})}function o7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ye(t)})}function i7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ye(t)})}function s7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ye(t)})}function a7(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ye(t)})}function l7(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ye(t)})}function u7(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ye(t)})}function c7(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ye(t)})}function d7(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ye(t)})}function f7(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ye(t)})}function p7(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ye(t)})}function h7(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ye(t)})}function m7(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ye(t)})}function g7(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ye(t)})}function v7(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ye(t)})}function b7(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ye(t)})}function y7(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ye(t)})}function x7(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ye(t)})}function w7(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ye(t)})}function $7(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ye(t)})}function E7(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ye(t)})}function P7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ye(t)})}function S7(e,t){return new e({type:"string",format:"date",check:"string_format",...ye(t)})}function C7(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ye(t)})}function T7(e,t){return new e({type:"string",format:"duration",check:"string_format",...ye(t)})}function k7(e){return new e({type:"unknown"})}function I7(e,t){return new e({type:"never",...ye(t)})}function By(e,t){return new Q6({check:"max_length",...ye(t),maximum:e})}function xa(e,t){return new e9({check:"min_length",...ye(t),minimum:e})}function Ry(e,t){return new t9({check:"length_equals",...ye(t),length:e})}function _7(e,t){return new r9({check:"string_format",format:"regex",...ye(t),pattern:e})}function M7(e){return new n9({check:"string_format",format:"lowercase",...ye(e)})}function D7(e){return new o9({check:"string_format",format:"uppercase",...ye(e)})}function A7(e,t){return new i9({check:"string_format",format:"includes",...ye(t),includes:e})}function O7(e,t){return new s9({check:"string_format",format:"starts_with",...ye(t),prefix:e})}function N7(e,t){return new a9({check:"string_format",format:"ends_with",...ye(t),suffix:e})}function yi(e){return new l9({check:"overwrite",tx:e})}function L7(e){return yi(t=>t.normalize(e))}function F7(){return yi(e=>e.trim())}function V7(){return yi(e=>e.toLowerCase())}function j7(){return yi(e=>e.toUpperCase())}function z7(e,t,r){return new e({type:"array",element:t,...ye(r)})}function B7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...ye(r)})}function R7(e){const t=K7(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(bi(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(bi(o))}},e(r.value,r)));return t}function K7(e,t){const r=new yr({check:"custom",...ye(t)});return r._zod.check=e,r}const W7=G("ZodISODateTime",(e,t)=>{$9.init(e,t),et.init(e,t)});function U7(e){return P7(W7,e)}const H7=G("ZodISODate",(e,t)=>{E9.init(e,t),et.init(e,t)});function G7(e){return S7(H7,e)}const Z7=G("ZodISOTime",(e,t)=>{P9.init(e,t),et.init(e,t)});function q7(e){return C7(Z7,e)}const Y7=G("ZodISODuration",(e,t)=>{S9.init(e,t),et.init(e,t)});function X7(e){return T7(Y7,e)}const or=G("ZodError",(e,t)=>{Ey.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>b6(e,r)},flatten:{value:r=>v6(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Wc,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Wc,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),J7=qc(or),Q7=Yc(or),eI=ha(or),tI=ma(or),rI=w6(or),nI=$6(or),oI=E6(or),iI=P6(or),sI=S6(or),aI=C6(or),lI=T6(or),uI=k6(or),xt=G("ZodType",(e,t)=>(mt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(An(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>qr(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>J7(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>eI(e,r,n),e.parseAsync=async(r,n)=>Q7(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>tI(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>rI(e,r,n),e.decode=(r,n)=>nI(e,r,n),e.encodeAsync=async(r,n)=>oI(e,r,n),e.decodeAsync=async(r,n)=>iI(e,r,n),e.safeEncode=(r,n)=>sI(e,r,n),e.safeDecode=(r,n)=>aI(e,r,n),e.safeEncodeAsync=async(r,n)=>lI(e,r,n),e.safeDecodeAsync=async(r,n)=>uI(e,r,n),e.refine=(r,n)=>e.check(e_(r,n)),e.superRefine=r=>e.check(t_(r)),e.overwrite=r=>e.check(yi(r)),e.optional=()=>Gy(e),e.nullable=()=>Zy(e),e.nullish=()=>Gy(Zy(e)),e.nonoptional=r=>GI(e,r),e.array=()=>DI(e),e.or=r=>LI([e,r]),e.and=r=>VI(e,r),e.transform=r=>Yy(e,BI(r)),e.default=r=>WI(e,r),e.prefault=r=>HI(e,r),e.catch=r=>qI(e,r),e.pipe=r=>Yy(e,r),e.readonly=()=>JI(e),e.describe=r=>{const n=e.clone();return ya.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return ya.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return ya.get(e);const n=e.clone();return ya.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ky=G("_ZodString",(e,t)=>{Xc.init(e,t),xt.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(_7(...n)),e.includes=(...n)=>e.check(A7(...n)),e.startsWith=(...n)=>e.check(O7(...n)),e.endsWith=(...n)=>e.check(N7(...n)),e.min=(...n)=>e.check(xa(...n)),e.max=(...n)=>e.check(By(...n)),e.length=(...n)=>e.check(Ry(...n)),e.nonempty=(...n)=>e.check(xa(1,...n)),e.lowercase=n=>e.check(M7(n)),e.uppercase=n=>e.check(D7(n)),e.trim=()=>e.check(F7()),e.normalize=(...n)=>e.check(L7(...n)),e.toLowerCase=()=>e.check(V7()),e.toUpperCase=()=>e.check(j7())}),cI=G("ZodString",(e,t)=>{Xc.init(e,t),Ky.init(e,t),e.email=r=>e.check(n7(dI,r)),e.url=r=>e.check(l7(fI,r)),e.jwt=r=>e.check(E7(TI,r)),e.emoji=r=>e.check(u7(pI,r)),e.guid=r=>e.check(zy(Wy,r)),e.uuid=r=>e.check(o7(wa,r)),e.uuidv4=r=>e.check(i7(wa,r)),e.uuidv6=r=>e.check(s7(wa,r)),e.uuidv7=r=>e.check(a7(wa,r)),e.nanoid=r=>e.check(c7(hI,r)),e.guid=r=>e.check(zy(Wy,r)),e.cuid=r=>e.check(d7(mI,r)),e.cuid2=r=>e.check(f7(gI,r)),e.ulid=r=>e.check(p7(vI,r)),e.base64=r=>e.check(x7(PI,r)),e.base64url=r=>e.check(w7(SI,r)),e.xid=r=>e.check(h7(bI,r)),e.ksuid=r=>e.check(m7(yI,r)),e.ipv4=r=>e.check(g7(xI,r)),e.ipv6=r=>e.check(v7(wI,r)),e.cidrv4=r=>e.check(b7($I,r)),e.cidrv6=r=>e.check(y7(EI,r)),e.e164=r=>e.check($7(CI,r)),e.datetime=r=>e.check(U7(r)),e.date=r=>e.check(G7(r)),e.time=r=>e.check(q7(r)),e.duration=r=>e.check(X7(r))});function xi(e){return r7(cI,e)}const et=G("ZodStringFormat",(e,t)=>{Je.init(e,t),Ky.init(e,t)}),dI=G("ZodEmail",(e,t)=>{p9.init(e,t),et.init(e,t)}),Wy=G("ZodGUID",(e,t)=>{d9.init(e,t),et.init(e,t)}),wa=G("ZodUUID",(e,t)=>{f9.init(e,t),et.init(e,t)}),fI=G("ZodURL",(e,t)=>{h9.init(e,t),et.init(e,t)}),pI=G("ZodEmoji",(e,t)=>{m9.init(e,t),et.init(e,t)}),hI=G("ZodNanoID",(e,t)=>{g9.init(e,t),et.init(e,t)}),mI=G("ZodCUID",(e,t)=>{v9.init(e,t),et.init(e,t)}),gI=G("ZodCUID2",(e,t)=>{b9.init(e,t),et.init(e,t)}),vI=G("ZodULID",(e,t)=>{y9.init(e,t),et.init(e,t)}),bI=G("ZodXID",(e,t)=>{x9.init(e,t),et.init(e,t)}),yI=G("ZodKSUID",(e,t)=>{w9.init(e,t),et.init(e,t)}),xI=G("ZodIPv4",(e,t)=>{C9.init(e,t),et.init(e,t)}),wI=G("ZodIPv6",(e,t)=>{T9.init(e,t),et.init(e,t)}),$I=G("ZodCIDRv4",(e,t)=>{k9.init(e,t),et.init(e,t)}),EI=G("ZodCIDRv6",(e,t)=>{I9.init(e,t),et.init(e,t)}),PI=G("ZodBase64",(e,t)=>{_9.init(e,t),et.init(e,t)}),SI=G("ZodBase64URL",(e,t)=>{D9.init(e,t),et.init(e,t)}),CI=G("ZodE164",(e,t)=>{A9.init(e,t),et.init(e,t)}),TI=G("ZodJWT",(e,t)=>{N9.init(e,t),et.init(e,t)}),kI=G("ZodUnknown",(e,t)=>{L9.init(e,t),xt.init(e,t)});function Uy(){return k7(kI)}const II=G("ZodNever",(e,t)=>{F9.init(e,t),xt.init(e,t)});function _I(e){return I7(II,e)}const MI=G("ZodArray",(e,t)=>{V9.init(e,t),xt.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(xa(r,n)),e.nonempty=r=>e.check(xa(1,r)),e.max=(r,n)=>e.check(By(r,n)),e.length=(r,n)=>e.check(Ry(r,n)),e.unwrap=()=>e.element});function DI(e,t){return z7(MI,e,t)}const AI=G("ZodObject",(e,t)=>{z9.init(e,t),xt.init(e,t),He(e,"shape",()=>t.shape),e.keyof=()=>jI(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Uy()}),e.loose=()=>e.clone({...e._zod.def,catchall:Uy()}),e.strict=()=>e.clone({...e._zod.def,catchall:_I()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>f6(e,r),e.safeExtend=r=>p6(e,r),e.merge=r=>h6(e,r),e.pick=r=>c6(e,r),e.omit=r=>d6(e,r),e.partial=(...r)=>m6(Hy,e,r[0]),e.required=(...r)=>g6(qy,e,r[0])});function OI(e,t){const r={type:"object",shape:e??{},...ye(t)};return new AI(r)}const NI=G("ZodUnion",(e,t)=>{B9.init(e,t),xt.init(e,t),e.options=t.options});function LI(e,t){return new NI({type:"union",options:e,...ye(t)})}const FI=G("ZodIntersection",(e,t)=>{R9.init(e,t),xt.init(e,t)});function VI(e,t){return new FI({type:"intersection",left:e,right:t})}const Qc=G("ZodEnum",(e,t)=>{K9.init(e,t),xt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const i={};for(const s of n)if(r.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Qc({...t,checks:[],...ye(o),entries:i})},e.exclude=(n,o)=>{const i={...t.entries};for(const s of n)if(r.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new Qc({...t,checks:[],...ye(o),entries:i})}});function jI(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Qc({type:"enum",entries:r,...ye(t)})}const zI=G("ZodTransform",(e,t)=>{W9.init(e,t),xt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new my(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(bi(i,r.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=e),r.issues.push(bi(s))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(i=>(r.value=i,r)):(r.value=o,r)}});function BI(e){return new zI({type:"transform",transform:e})}const Hy=G("ZodOptional",(e,t)=>{U9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Gy(e){return new Hy({type:"optional",innerType:e})}const RI=G("ZodNullable",(e,t)=>{H9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Zy(e){return new RI({type:"nullable",innerType:e})}const KI=G("ZodDefault",(e,t)=>{G9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function WI(e,t){return new KI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():xy(t)}})}const UI=G("ZodPrefault",(e,t)=>{Z9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function HI(e,t){return new UI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():xy(t)}})}const qy=G("ZodNonOptional",(e,t)=>{q9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function GI(e,t){return new qy({type:"nonoptional",innerType:e,...ye(t)})}const ZI=G("ZodCatch",(e,t)=>{Y9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function qI(e,t){return new ZI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const YI=G("ZodPipe",(e,t)=>{X9.init(e,t),xt.init(e,t),e.in=t.in,e.out=t.out});function Yy(e,t){return new YI({type:"pipe",in:e,out:t})}const XI=G("ZodReadonly",(e,t)=>{J9.init(e,t),xt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function JI(e){return new XI({type:"readonly",innerType:e})}const QI=G("ZodCustom",(e,t)=>{Q9.init(e,t),xt.init(e,t)});function e_(e,t={}){return B7(QI,e,t)}function t_(e){return R7(e)}const r_=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/i,n_=OI({postcode:xi().trim().min(1,{message:"Dit is een verplicht veld."}).regex(r_,{message:"Geef een geldige postcode op."}).max(6,{message:"De postcode is te lang."}),number:xi().min(1,{message:"Dit is een verplicht veld."}),numberAddon:xi().optional().transform(e=>e??void 0),street:xi().min(1,{message:"Vul de straat in."}),city:xi().min(1,{message:"Vul de woonplaats in."})});function o_({classNames:e,options:t,selectedValue:r,handleFilterChange:n}){const{popoverContent:o,listbox:i,...s}=e||{};return y.jsx(ca,{placeholder:"Sorteren",selectionMode:"single",disallowEmptySelection:!0,onChange:a=>n({id:"sorteren",value:a.target.value}),selectedKeys:[r],radius:"sm",popoverProps:{classNames:{...o,base:j("mobielnl-elements",o?.base),content:j("p-0 rounded-small border border-divider shadow-lg",o?.content)}},listboxProps:{itemClasses:{...i,base:j("data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small",i?.base)}},classNames:{...s,base:j("min-w-1/2 lg:min-w-auto lg:w-[180px]",s?.base),label:j("text-primary-500 group-data-[filled=true]:text-primary-500",s?.label),trigger:j("bg-white data-[hover=true]:text-primary-500 data-[hover=true]:bg-white border border-divider shadow-none cursor-pointer",s?.trigger),value:j("group-data-[has-value=true]:text-foreground",s?.value)},children:t.map(a=>y.jsx(Pt,{children:a.label},a.value))})}function i_(e,t){const r=f.useRef(!0);f.useEffect(()=>{r.current?r.current=!1:e()},t)}function s_(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function Yt(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function Xy(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return Yt(r,{dashed:!0})}function $a(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`Van ${Yt(t,{dashed:!0})} voor:`:`${e[0].term} mnd van ${Yt(t,{dashed:!0})} voor:`}function a_(e){return e.filter(t=>t.value.descriptiveText!==void 0&&t.value.descriptiveText!==null).map(t=>({title:t.value.descriptiveText}))}const wi=2147483647;function Jy(e){switch(e){case wi:return"Onbp";case 0:return"-";default:return e}}function ed(e,t){const r=e.minutes!==0?`${Jy(e.minutes)} ${e.minutes===wi?"min":"minuten"}`:void 0,n=e.sms!==0?`${Jy(e.sms)} sms`:void 0,o=e.minutes===wi&&e.sms===wi||["minutes","sms"].every(s=>e.sharedCredits?.includes(s)),i=o?" / ":" + ";return!r&&!n?"":o?[r,"sms"].join(i):[r,n].join(i)}function l_(e){switch(e){case 24:return"2 jaar";case 12:return"1 jaar";case 1:return"Maandelijks";default:return""}}function Ea(e,t){return e===wi?`Onbp ${t}`:`${(e/1e3).toString().replace(".",",")} ${t}`}function u_(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Pa(e){const t=l_(e.planVariant.contractTerm);if(e.productType==="fixed"){const i=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} Mb/s`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:i,slug:"internet-speed"}];const s=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`,a=!e.content.receivers||e.content.receivers===0?"via TV app":`${e.content.receivers} TV-${e.content.receivers===1?"ontvanger":"ontvangers"}`;return[{title:t,slug:"contract-term"},{title:i,slug:"internet-speed"},{title:s,slug:"channels"},{title:a,slug:"tv-receiver"}]}const r=`${e.content.dataSpeedDown/1e3} Mbps`,n=`${(e.provider.network||"").replace("-netwerk","")} ${u_(e.content.networkGeneration)}`,o=`${Ea(e.content.dataEu,"GB")} in EU`;return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function c_(e,t=500,r=7){const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e&&e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function Sa(e,t=!0){const r=e.filter(o=>c_(o));if(r.length===0)return;const n=Math.min(...r.map(o=>{const i=new Date,s=new Date(o.validUntil);return Math.ceil((s.getTime()-i.getTime())/(1440*60*1e3))}))+1;return n===1?"Laatste dag":`${t?"Nog":"Actie nog"} ${n} dagen`}function d_({size:e,height:t,width:r,className:n,style:o,...i}){return y.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...i,children:[y.jsx("title",{children:"Search Loading Icon"}),y.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),y.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),y.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),y.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),y.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function f_({classNames:e,address:t}){return y.jsxs("div",{className:j("flex flex-row items-center justify-center gap-8 rounded-lg bg-white p-4 shadow-md mb-4",e?.base),children:[y.jsx(d_,{className:j("animate-pulse",e?.icon)}),y.jsxs("div",{className:j("max-w-[215px] text-center flex flex-col items-center gap-2",e?.textWrapper),children:[y.jsx("div",{className:j("text-xl font-bold leading-none text-foreground",e?.heading),children:"Aan het zoeken naar de beste deals..."}),y.jsxs("div",{className:j("text-sm text-foreground leading-none",e?.addressText),children:[t.street," ",s_(t.number,t.numberAddon),", ",t.city]})]})]})}function p_(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function Ca(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}var Ta={exports:{}},td={};/**
|
|
468
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");const $=h.compile();return(C,E)=>$(p,C,E)};let s;const i=ua,a=!ey.jitless,c=a&&Wk.value,u=t.catchall;let d;e._zod.parse=(p,h)=>{d??(d=n.value);const g=p.value;return i(g)?a&&c&&h?.async===!1&&h.jitless!==!0?(s||(s=o(t.shape)),p=s(p,h),u?gy([],g,p,h,d,e):p):r(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function vy(e,t,r,n){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Io(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(i=>Fn(i,n,Nn())))}),t)}const P6=Z("$ZodUnion",(e,t)=>{vt.init(e,t),He(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),He(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),He(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),He(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>jc(s.source)).join("|")})$`)}});const r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(r)return n(o,s);let i=!1;const a=[];for(const l of t.options){const c=l._zod.run({value:o.value,issues:[]},s);if(c instanceof Promise)a.push(c),i=!0;else{if(c.issues.length===0)return c;a.push(c)}}return i?Promise.all(a).then(l=>vy(l,o,e,s)):vy(a,o,e,s)}}),C6=Z("$ZodIntersection",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{const o=r.value,s=t.left._zod.run({value:o,issues:[]},n),i=t.right._zod.run({value:o,issues:[]},n);return s instanceof Promise||i instanceof Promise?Promise.all([s,i]).then(([l,c])=>by(r,l,c)):by(r,s,i)}});function Wc(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ms(e)&&ms(t)){const r=Object.keys(t),n=Object.keys(e).filter(s=>r.indexOf(s)!==-1),o={...e,...t};for(const s of n){const i=Wc(e[s],t[s]);if(!i.valid)return{valid:!1,mergeErrorPath:[s,...i.mergeErrorPath]};o[s]=i.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let n=0;n<e.length;n++){const o=e[n],s=t[n],i=Wc(o,s);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};r.push(i.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function by(e,t,r){if(t.issues.length&&e.issues.push(...t.issues),r.issues.length&&e.issues.push(...r.issues),Io(e))return e;const n=Wc(t.value,r.value);if(!n.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(n.mergeErrorPath)}`);return e.value=n.data,e}const S6=Z("$ZodEnum",(e,t)=>{vt.init(e,t);const r=Kk(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(o=>Uk.has(typeof o)).map(o=>typeof o=="string"?ca(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const i=o.value;return n.has(i)||o.issues.push({code:"invalid_value",values:r,input:i,inst:e}),o}}),T6=Z("$ZodTransform",(e,t)=>{vt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Q0(e.constructor.name);const o=t.transform(r.value,r);if(n.async)return(o instanceof Promise?o:Promise.resolve(o)).then(i=>(r.value=i,r));if(o instanceof Promise)throw new ko;return r.value=o,r}});function yy(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const k6=Z("$ZodOptional",(e,t)=>{vt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${jc(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>yy(s,r.value)):yy(o,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}}),I6=Z("$ZodNullable",(e,t)=>{vt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${jc(r.source)}|null)$`):void 0}),He(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)}),_6=Z("$ZodDefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);if(r.value===void 0)return r.value=t.defaultValue,r;const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>xy(s,t)):xy(o,t)}});function xy(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const M6=Z("$ZodPrefault",(e,t)=>{vt.init(e,t),e._zod.optin="optional",He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>(n.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,n))}),D6=Z("$ZodNonOptional",(e,t)=>{vt.init(e,t),He(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(n=>n!==void 0)):void 0}),e._zod.parse=(r,n)=>{const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>wy(s,e)):wy(o,e)}});function wy(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const A6=Z("$ZodCatch",(e,t)=>{vt.init(e,t),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),He(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(i=>Fn(i,n,Nn()))},input:r.value}),r.issues=[]),r)):(r.value=o.value,o.issues.length&&(r.value=t.catchValue({...r,error:{issues:o.issues.map(s=>Fn(s,n,Nn()))},input:r.value}),r.issues=[]),r)}}),N6=Z("$ZodPipe",(e,t)=>{vt.init(e,t),He(e._zod,"values",()=>t.in._zod.values),He(e._zod,"optin",()=>t.in._zod.optin),He(e._zod,"optout",()=>t.out._zod.optout),He(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){const s=t.out._zod.run(r,n);return s instanceof Promise?s.then(i=>ga(i,t.in,n)):ga(s,t.in,n)}const o=t.in._zod.run(r,n);return o instanceof Promise?o.then(s=>ga(s,t.out,n)):ga(o,t.out,n)}});function ga(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const O6=Z("$ZodReadonly",(e,t)=>{vt.init(e,t),He(e._zod,"propValues",()=>t.innerType._zod.propValues),He(e._zod,"values",()=>t.innerType._zod.values),He(e._zod,"optin",()=>t.innerType._zod.optin),He(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(r,n)=>{if(n.direction==="backward")return t.innerType._zod.run(r,n);const o=t.innerType._zod.run(r,n);return o instanceof Promise?o.then($y):$y(o)}});function $y(e){return e.value=Object.freeze(e.value),e}const L6=Z("$ZodCustom",(e,t)=>{xr.init(e,t),vt.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{const n=r.value,o=t.fn(n);if(o instanceof Promise)return o.then(s=>Ey(s,r,n,e));Ey(o,r,n,e)}});function Ey(e,t,r,n){if(!e){const o={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(o.params=n._zod.def.params),t.issues.push(gs(o))}}class F6{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const n=r[0];if(this._map.set(t,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const n={...this.get(r)??{}};delete n.id;const o={...n,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function V6(){return new F6}const va=V6();function j6(e,t){return new e({type:"string",...$e(t)})}function z6(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...$e(t)})}function Py(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...$e(t)})}function B6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...$e(t)})}function R6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...$e(t)})}function K6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...$e(t)})}function W6(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...$e(t)})}function U6(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...$e(t)})}function H6(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...$e(t)})}function G6(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...$e(t)})}function Z6(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...$e(t)})}function q6(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...$e(t)})}function Y6(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...$e(t)})}function X6(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...$e(t)})}function J6(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...$e(t)})}function Q6(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...$e(t)})}function e7(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...$e(t)})}function t7(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...$e(t)})}function r7(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...$e(t)})}function n7(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...$e(t)})}function o7(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...$e(t)})}function s7(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...$e(t)})}function i7(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...$e(t)})}function a7(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...$e(t)})}function l7(e,t){return new e({type:"string",format:"date",check:"string_format",...$e(t)})}function u7(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...$e(t)})}function c7(e,t){return new e({type:"string",format:"duration",check:"string_format",...$e(t)})}function d7(e){return new e({type:"unknown"})}function f7(e,t){return new e({type:"never",...$e(t)})}function Cy(e,t){return new L9({check:"max_length",...$e(t),maximum:e})}function ba(e,t){return new F9({check:"min_length",...$e(t),minimum:e})}function Sy(e,t){return new V9({check:"length_equals",...$e(t),length:e})}function p7(e,t){return new j9({check:"string_format",format:"regex",...$e(t),pattern:e})}function h7(e){return new z9({check:"string_format",format:"lowercase",...$e(e)})}function m7(e){return new B9({check:"string_format",format:"uppercase",...$e(e)})}function g7(e,t){return new R9({check:"string_format",format:"includes",...$e(t),includes:e})}function v7(e,t){return new K9({check:"string_format",format:"starts_with",...$e(t),prefix:e})}function b7(e,t){return new W9({check:"string_format",format:"ends_with",...$e(t),suffix:e})}function vs(e){return new U9({check:"overwrite",tx:e})}function y7(e){return vs(t=>t.normalize(e))}function x7(){return vs(e=>e.trim())}function w7(){return vs(e=>e.toLowerCase())}function $7(){return vs(e=>e.toUpperCase())}function E7(e,t,r){return new e({type:"array",element:t,...$e(r)})}function P7(e,t,r){return new e({type:"custom",check:"custom",fn:t,...$e(r)})}function C7(e){const t=S7(r=>(r.addIssue=n=>{if(typeof n=="string")r.issues.push(gs(n,r.value,t._zod.def));else{const o=n;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),r.issues.push(gs(o))}},e(r.value,r)));return t}function S7(e,t){const r=new xr({check:"custom",...$e(t)});return r._zod.check=e,r}const T7=Z("ZodISODateTime",(e,t)=>{s6.init(e,t),tt.init(e,t)});function k7(e){return a7(T7,e)}const I7=Z("ZodISODate",(e,t)=>{i6.init(e,t),tt.init(e,t)});function _7(e){return l7(I7,e)}const M7=Z("ZodISOTime",(e,t)=>{a6.init(e,t),tt.init(e,t)});function D7(e){return u7(M7,e)}const A7=Z("ZodISODuration",(e,t)=>{l6.init(e,t),tt.init(e,t)});function N7(e){return c7(A7,e)}const tr=Z("ZodError",(e,t)=>{ay.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>t9(e,r)},flatten:{value:r=>e9(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Lc,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Lc,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),O7=Bc(tr),L7=Rc(tr),F7=fa(tr),V7=pa(tr),j7=o9(tr),z7=s9(tr),B7=i9(tr),R7=a9(tr),K7=l9(tr),W7=u9(tr),U7=c9(tr),H7=d9(tr),wt=Z("ZodType",(e,t)=>(vt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(Ln(t,{checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]})),e.clone=(r,n)=>Yr(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.parse=(r,n)=>O7(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>F7(e,r,n),e.parseAsync=async(r,n)=>L7(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>V7(e,r,n),e.spa=e.safeParseAsync,e.encode=(r,n)=>j7(e,r,n),e.decode=(r,n)=>z7(e,r,n),e.encodeAsync=async(r,n)=>B7(e,r,n),e.decodeAsync=async(r,n)=>R7(e,r,n),e.safeEncode=(r,n)=>K7(e,r,n),e.safeDecode=(r,n)=>W7(e,r,n),e.safeEncodeAsync=async(r,n)=>U7(e,r,n),e.safeDecodeAsync=async(r,n)=>H7(e,r,n),e.refine=(r,n)=>e.check(FI(r,n)),e.superRefine=r=>e.check(VI(r)),e.overwrite=r=>e.check(vs(r)),e.optional=()=>My(e),e.nullable=()=>Dy(e),e.nullish=()=>My(Dy(e)),e.nonoptional=r=>_I(e,r),e.array=()=>mI(e),e.or=r=>yI([e,r]),e.and=r=>wI(e,r),e.transform=r=>Ny(e,PI(r)),e.default=r=>TI(e,r),e.prefault=r=>II(e,r),e.catch=r=>DI(e,r),e.pipe=r=>Ny(e,r),e.readonly=()=>OI(e),e.describe=r=>{const n=e.clone();return va.add(n,{description:r}),n},Object.defineProperty(e,"description",{get(){return va.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return va.get(e);const n=e.clone();return va.add(n,r[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ty=Z("_ZodString",(e,t)=>{Kc.init(e,t),wt.init(e,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...n)=>e.check(p7(...n)),e.includes=(...n)=>e.check(g7(...n)),e.startsWith=(...n)=>e.check(v7(...n)),e.endsWith=(...n)=>e.check(b7(...n)),e.min=(...n)=>e.check(ba(...n)),e.max=(...n)=>e.check(Cy(...n)),e.length=(...n)=>e.check(Sy(...n)),e.nonempty=(...n)=>e.check(ba(1,...n)),e.lowercase=n=>e.check(h7(n)),e.uppercase=n=>e.check(m7(n)),e.trim=()=>e.check(x7()),e.normalize=(...n)=>e.check(y7(...n)),e.toLowerCase=()=>e.check(w7()),e.toUpperCase=()=>e.check($7())}),G7=Z("ZodString",(e,t)=>{Kc.init(e,t),Ty.init(e,t),e.email=r=>e.check(z6(Z7,r)),e.url=r=>e.check(U6(q7,r)),e.jwt=r=>e.check(i7(cI,r)),e.emoji=r=>e.check(H6(Y7,r)),e.guid=r=>e.check(Py(ky,r)),e.uuid=r=>e.check(B6(ya,r)),e.uuidv4=r=>e.check(R6(ya,r)),e.uuidv6=r=>e.check(K6(ya,r)),e.uuidv7=r=>e.check(W6(ya,r)),e.nanoid=r=>e.check(G6(X7,r)),e.guid=r=>e.check(Py(ky,r)),e.cuid=r=>e.check(Z6(J7,r)),e.cuid2=r=>e.check(q6(Q7,r)),e.ulid=r=>e.check(Y6(eI,r)),e.base64=r=>e.check(n7(aI,r)),e.base64url=r=>e.check(o7(lI,r)),e.xid=r=>e.check(X6(tI,r)),e.ksuid=r=>e.check(J6(rI,r)),e.ipv4=r=>e.check(Q6(nI,r)),e.ipv6=r=>e.check(e7(oI,r)),e.cidrv4=r=>e.check(t7(sI,r)),e.cidrv6=r=>e.check(r7(iI,r)),e.e164=r=>e.check(s7(uI,r)),e.datetime=r=>e.check(k7(r)),e.date=r=>e.check(_7(r)),e.time=r=>e.check(D7(r)),e.duration=r=>e.check(N7(r))});function bs(e){return j6(G7,e)}const tt=Z("ZodStringFormat",(e,t)=>{Qe.init(e,t),Ty.init(e,t)}),Z7=Z("ZodEmail",(e,t)=>{Y9.init(e,t),tt.init(e,t)}),ky=Z("ZodGUID",(e,t)=>{Z9.init(e,t),tt.init(e,t)}),ya=Z("ZodUUID",(e,t)=>{q9.init(e,t),tt.init(e,t)}),q7=Z("ZodURL",(e,t)=>{X9.init(e,t),tt.init(e,t)}),Y7=Z("ZodEmoji",(e,t)=>{J9.init(e,t),tt.init(e,t)}),X7=Z("ZodNanoID",(e,t)=>{Q9.init(e,t),tt.init(e,t)}),J7=Z("ZodCUID",(e,t)=>{e6.init(e,t),tt.init(e,t)}),Q7=Z("ZodCUID2",(e,t)=>{t6.init(e,t),tt.init(e,t)}),eI=Z("ZodULID",(e,t)=>{r6.init(e,t),tt.init(e,t)}),tI=Z("ZodXID",(e,t)=>{n6.init(e,t),tt.init(e,t)}),rI=Z("ZodKSUID",(e,t)=>{o6.init(e,t),tt.init(e,t)}),nI=Z("ZodIPv4",(e,t)=>{u6.init(e,t),tt.init(e,t)}),oI=Z("ZodIPv6",(e,t)=>{c6.init(e,t),tt.init(e,t)}),sI=Z("ZodCIDRv4",(e,t)=>{d6.init(e,t),tt.init(e,t)}),iI=Z("ZodCIDRv6",(e,t)=>{f6.init(e,t),tt.init(e,t)}),aI=Z("ZodBase64",(e,t)=>{p6.init(e,t),tt.init(e,t)}),lI=Z("ZodBase64URL",(e,t)=>{m6.init(e,t),tt.init(e,t)}),uI=Z("ZodE164",(e,t)=>{g6.init(e,t),tt.init(e,t)}),cI=Z("ZodJWT",(e,t)=>{b6.init(e,t),tt.init(e,t)}),dI=Z("ZodUnknown",(e,t)=>{y6.init(e,t),wt.init(e,t)});function Iy(){return d7(dI)}const fI=Z("ZodNever",(e,t)=>{x6.init(e,t),wt.init(e,t)});function pI(e){return f7(fI,e)}const hI=Z("ZodArray",(e,t)=>{w6.init(e,t),wt.init(e,t),e.element=t.element,e.min=(r,n)=>e.check(ba(r,n)),e.nonempty=r=>e.check(ba(1,r)),e.max=(r,n)=>e.check(Cy(r,n)),e.length=(r,n)=>e.check(Sy(r,n)),e.unwrap=()=>e.element});function mI(e,t){return E7(hI,e,t)}const gI=Z("ZodObject",(e,t)=>{E6.init(e,t),wt.init(e,t),He(e,"shape",()=>t.shape),e.keyof=()=>$I(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Iy()}),e.loose=()=>e.clone({...e._zod.def,catchall:Iy()}),e.strict=()=>e.clone({...e._zod.def,catchall:pI()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>qk(e,r),e.safeExtend=r=>Yk(e,r),e.merge=r=>Xk(e,r),e.pick=r=>Gk(e,r),e.omit=r=>Zk(e,r),e.partial=(...r)=>Jk(_y,e,r[0]),e.required=(...r)=>Qk(Ay,e,r[0])});function vI(e,t){const r={type:"object",shape:e??{},...$e(t)};return new gI(r)}const bI=Z("ZodUnion",(e,t)=>{P6.init(e,t),wt.init(e,t),e.options=t.options});function yI(e,t){return new bI({type:"union",options:e,...$e(t)})}const xI=Z("ZodIntersection",(e,t)=>{C6.init(e,t),wt.init(e,t)});function wI(e,t){return new xI({type:"intersection",left:e,right:t})}const Uc=Z("ZodEnum",(e,t)=>{S6.init(e,t),wt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(n,o)=>{const s={};for(const i of n)if(r.has(i))s[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new Uc({...t,checks:[],...$e(o),entries:s})},e.exclude=(n,o)=>{const s={...t.entries};for(const i of n)if(r.has(i))delete s[i];else throw new Error(`Key ${i} not found in enum`);return new Uc({...t,checks:[],...$e(o),entries:s})}});function $I(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Uc({type:"enum",entries:r,...$e(t)})}const EI=Z("ZodTransform",(e,t)=>{T6.init(e,t),wt.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Q0(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(gs(s,r.value,t));else{const i=s;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=e),r.issues.push(gs(i))}};const o=t.transform(r.value,r);return o instanceof Promise?o.then(s=>(r.value=s,r)):(r.value=o,r)}});function PI(e){return new EI({type:"transform",transform:e})}const _y=Z("ZodOptional",(e,t)=>{k6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function My(e){return new _y({type:"optional",innerType:e})}const CI=Z("ZodNullable",(e,t)=>{I6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Dy(e){return new CI({type:"nullable",innerType:e})}const SI=Z("ZodDefault",(e,t)=>{_6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function TI(e,t){return new SI({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():oy(t)}})}const kI=Z("ZodPrefault",(e,t)=>{M6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function II(e,t){return new kI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():oy(t)}})}const Ay=Z("ZodNonOptional",(e,t)=>{D6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _I(e,t){return new Ay({type:"nonoptional",innerType:e,...$e(t)})}const MI=Z("ZodCatch",(e,t)=>{A6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function DI(e,t){return new MI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const AI=Z("ZodPipe",(e,t)=>{N6.init(e,t),wt.init(e,t),e.in=t.in,e.out=t.out});function Ny(e,t){return new AI({type:"pipe",in:e,out:t})}const NI=Z("ZodReadonly",(e,t)=>{O6.init(e,t),wt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function OI(e){return new NI({type:"readonly",innerType:e})}const LI=Z("ZodCustom",(e,t)=>{L6.init(e,t),wt.init(e,t)});function FI(e,t={}){return P7(LI,e,t)}function VI(e){return C7(e)}const jI=/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/i,zI=vI({postcode:bs().trim().min(1,{message:"Dit is een verplicht veld."}).regex(jI,{message:"Geef een geldige postcode op."}).max(6,{message:"De postcode is te lang."}),number:bs().min(1,{message:"Dit is een verplicht veld."}),numberAddon:bs().optional().transform(e=>e??void 0),street:bs().min(1,{message:"Vul de straat in."}),city:bs().min(1,{message:"Vul de woonplaats in."})});function BI({classNames:e,options:t,selectedValue:r,handleFilterChange:n}){const{popoverContent:o,listbox:s,...i}=e||{};return b.jsx(la,{placeholder:"Sorteren",selectionMode:"single",disallowEmptySelection:!0,onChange:a=>n({slug:"sorteren",value:a.target.value}),selectedKeys:[r],radius:"sm",popoverProps:{classNames:{...o,base:j("mobielnl-elements",o?.base),content:j("p-0 rounded-small border border-divider shadow-lg",o?.content)}},listboxProps:{itemClasses:{...s,base:j("data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small",s?.base)}},classNames:{...i,base:j("min-w-1/2 lg:min-w-auto lg:w-[180px]",i?.base),label:j("text-primary-500 group-data-[filled=true]:text-primary-500",i?.label),trigger:j("bg-white data-[hover=true]:text-primary-500 data-[hover=true]:bg-white border border-divider shadow-none cursor-pointer",i?.trigger),value:j("group-data-[has-value=true]:text-foreground",i?.value)},children:t.map(a=>b.jsx(Pt,{children:a.name},a.value))})}var xa={exports:{}},Hc={};/**
|
|
430
469
|
* @license React
|
|
431
470
|
* use-sync-external-store-shim.production.js
|
|
432
471
|
*
|
|
@@ -434,7 +473,7 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
434
473
|
*
|
|
435
474
|
* This source code is licensed under the MIT license found in the
|
|
436
475
|
* LICENSE file in the root directory of this source tree.
|
|
437
|
-
*/var
|
|
476
|
+
*/var Oy;function RI(){if(Oy)return Hc;Oy=1;var e=f;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,s=e.useLayoutEffect,i=e.useDebugValue;function a(d,p){var h=p(),g=n({inst:{value:h,getSnapshot:p}}),m=g[0].inst,x=g[1];return s(function(){m.value=h,m.getSnapshot=p,l(m)&&x({inst:m})},[d,h,p]),o(function(){return l(m)&&x({inst:m}),d(function(){l(m)&&x({inst:m})})},[d]),i(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!r(d,h)}catch{return!0}}function c(d,p){return p()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Hc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,Hc}var Gc={};/**
|
|
438
477
|
* @license React
|
|
439
478
|
* use-sync-external-store-shim.development.js
|
|
440
479
|
*
|
|
@@ -442,4 +481,38 @@ ${String(e)}`)}catch(t){return t}},Mm=e=>{if(typeof e!="object"||e===null)throw
|
|
|
442
481
|
*
|
|
443
482
|
* This source code is licensed under the MIT license found in the
|
|
444
483
|
* LICENSE file in the root directory of this source tree.
|
|
445
|
-
*/var e1;function m_(){return e1||(e1=1,process.env.NODE_ENV!=="production"&&function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!d){var x=g();i(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=s({inst:{value:m,getSnapshot:g}});var v=x[0].inst,$=x[1];return l(function(){v.value=m,v.getSnapshot=g,r(v)&&$({inst:v})},[p,m,g]),a(function(){return r(v)&&$({inst:v}),p(function(){r(v)&&$({inst:v})})},[p]),c(m),m}function r(p){var g=p.getSnapshot;p=p.value;try{var m=g();return!i(p,m)}catch{return!0}}function n(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=f,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;rd.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:h,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),rd}var t1;function g_(){return t1||(t1=1,process.env.NODE_ENV==="production"?Ta.exports=h_():Ta.exports=m_()),Ta.exports}var v_=g_();const r1=0,n1=1,o1=2,i1=3;var s1=Object.prototype.hasOwnProperty;function nd(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&nd(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(s1.call(e,r)&&++n&&!s1.call(t,r)||!(r in t)||!nd(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const Dr=new WeakMap,Yr=()=>{},_t=Yr(),od=Object,Ae=e=>e===_t,xr=e=>typeof e=="function",Xr=(e,t)=>({...e,...t}),a1=e=>xr(e.then),id={},ka={},sd="undefined",$i=typeof window!=sd,ad=typeof document!=sd,b_=$i&&"Deno"in window,y_=()=>$i&&typeof window.requestAnimationFrame!=sd,l1=(e,t)=>{const r=Dr.get(e);return[()=>!Ae(t)&&e.get(t)||id,n=>{if(!Ae(t)){const o=e.get(t);t in ka||(ka[t]=o),r[5](t,Xr(o,n),o||id)}},r[6],()=>!Ae(t)&&t in ka?ka[t]:!Ae(t)&&e.get(t)||id]};let ld=!0;const x_=()=>ld,[ud,cd]=$i&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Yr,Yr],w_=()=>{const e=ad&&document.visibilityState;return Ae(e)||e!=="hidden"},$_=e=>(ad&&document.addEventListener("visibilitychange",e),ud("focus",e),()=>{ad&&document.removeEventListener("visibilitychange",e),cd("focus",e)}),E_=e=>{const t=()=>{ld=!0,e()},r=()=>{ld=!1};return ud("online",t),ud("offline",r),()=>{cd("online",t),cd("offline",r)}},P_={isOnline:x_,isVisible:w_},S_={initFocus:$_,initReconnect:E_},u1=!f.useId,Ei=!$i||b_,C_=e=>y_()?window.requestAnimationFrame(e):setTimeout(e,1),dd=Ei?f.useEffect:f.useLayoutEffect,fd=typeof navigator<"u"&&navigator.connection,c1=!Ei&&fd&&(["slow-2g","2g"].includes(fd.effectiveType)||fd.saveData),Ia=new WeakMap,T_=e=>od.prototype.toString.call(e),pd=(e,t)=>e===`[object ${t}]`;let k_=0;const hd=e=>{const t=typeof e,r=T_(e),n=pd(r,"Date"),o=pd(r,"RegExp"),i=pd(r,"Object");let s,a;if(od(e)===e&&!n&&!o){if(s=Ia.get(e),s)return s;if(s=++k_+"~",Ia.set(e,s),Array.isArray(e)){for(s="@",a=0;a<e.length;a++)s+=hd(e[a])+",";Ia.set(e,s)}if(i){s="#";const l=od.keys(e).sort();for(;!Ae(a=l.pop());)Ae(e[a])||(s+=a+":"+hd(e[a])+",");Ia.set(e,s)}}else s=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},md=e=>{if(xr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?hd(e):"",[e,t]};let I_=0;const gd=()=>++I_;async function d1(...e){const[t,r,n,o]=e,i=Xr({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=h=>typeof a=="function"?a(h):a!==!1,u=i.throwOnError;if(xr(r)){const h=r,p=[],g=t.keys();for(const m of g)!/^\$(inf|sub)\$/.test(m)&&h(t.get(m)._k)&&p.push(m);return Promise.all(p.map(d))}return d(r);async function d(h){const[p]=md(h);if(!p)return;const[g,m]=l1(t,p),[x,v,$,S]=Dr.get(t),C=()=>{const I=x[p];return(xr(i.revalidate)?i.revalidate(g().data,h):i.revalidate!==!1)&&(delete $[p],delete S[p],I&&I[0])?I[0](o1).then(()=>g().data):g().data};if(e.length<3)return C();let T=n,k,D=!1;const E=gd();v[p]=[E,0];const V=!Ae(l),F=g(),b=F.data,M=F._c,A=Ae(M)?b:M;if(V&&(l=xr(l)?l(A,b):l,m({data:l,_c:A})),xr(T))try{T=T(A)}catch(I){k=I,D=!0}if(T&&a1(T))if(T=await T.catch(I=>{k=I,D=!0}),E!==v[p][0]){if(D)throw k;return T}else D&&V&&c(k)&&(s=!0,m({data:A,_c:_t}));if(s&&!D)if(xr(s)){const I=s(T,A);m({data:I,error:_t,_c:_t})}else m({data:T,error:_t,_c:_t});if(v[p][1]=gd(),Promise.resolve(C()).then(()=>{m({_c:_t})}),D){if(u)throw k;return}return T}}const f1=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},__=(e,t)=>{if(!Dr.has(e)){const r=Xr(S_,t),n=Object.create(null),o=d1.bind(_t,e);let i=Yr;const s=Object.create(null),a=(u,d)=>{const h=s[u]||[];return s[u]=h,h.push(d),()=>h.splice(h.indexOf(d),1)},l=(u,d,h)=>{e.set(u,d);const p=s[u];if(p)for(const g of p)g(d,h)},c=()=>{if(!Dr.has(e)&&(Dr.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!Ei)){const u=r.initFocus(setTimeout.bind(_t,f1.bind(_t,n,r1))),d=r.initReconnect(setTimeout.bind(_t,f1.bind(_t,n,n1)));i=()=>{u&&u(),d&&d(),Dr.delete(e)}}};return c(),[e,o,c,i]}return[e,Dr.get(e)[4]]},M_=(e,t,r,n,o)=>{const i=r.errorRetryCount,s=o.retryCount,a=~~((Math.random()+.5)*(1<<(s<8?s:8)))*r.errorRetryInterval;!Ae(i)&&s>i||setTimeout(n,a,o)},D_=nd,[p1,A_]=__(new Map),O_=Xr({onLoadingSlow:Yr,onSuccess:Yr,onError:Yr,onErrorRetry:M_,onDiscarded:Yr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:c1?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:c1?5e3:3e3,compare:D_,isPaused:()=>!1,cache:p1,mutate:A_,fallback:{}},P_),N_=(e,t)=>{const r=Xr(e,t);if(t){const{use:n,fallback:o}=e,{use:i,fallback:s}=t;n&&i&&(r.use=n.concat(i)),o&&s&&(r.fallback=Xr(o,s))}return r},L_=f.createContext({}),F_="$inf$",h1=$i&&window.__SWR_DEVTOOLS_USE__,V_=h1?window.__SWR_DEVTOOLS_USE__:[],j_=()=>{h1&&(window.__SWR_DEVTOOLS_REACT__=f)},m1=e=>xr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],z_=()=>{const e=f.useContext(L_);return f.useMemo(()=>Xr(O_,e),[e])},B_=e=>(t,r,n)=>e(t,r&&((...i)=>{const[s]=md(t),[,,,a]=Dr.get(p1);if(s.startsWith(F_))return r(...i);const l=a[s];return Ae(l)?r(...i):(delete a[s],l)}),n),R_=V_.concat(B_),K_=e=>function(...r){const n=z_(),[o,i,s]=m1(r),a=N_(n,s);let l=e;const{use:c}=a,u=(c||[]).concat(R_);for(let d=u.length;d--;)l=u[d](l);return l(o,i||a.fetcher||null,a)},W_=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const o=n.indexOf(r);o>=0&&(n[o]=n[n.length-1],n.pop())}},U_=(e,t)=>(...r)=>{const[n,o,i]=m1(r),s=(i.use||[]).concat(t);return e(n,o,{...i,use:s})};j_();const vd=f.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),bd={dedupe:!0},g1=Promise.resolve(_t),H_=K_((e,t,r)=>{const{cache:n,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:h}=r,[p,g,m,x]=Dr.get(n),[v,$]=md(e),S=f.useRef(!1),C=f.useRef(!1),T=f.useRef(v),k=f.useRef(t),D=f.useRef(r),E=()=>D.current,V=()=>E().isVisible()&&E().isOnline(),[F,b,M,A]=l1(n,v),I=f.useRef({}).current,N=Ae(s)?Ae(r.fallback)?_t:r.fallback[v]:s,w=(Y,de)=>{for(const ae in I){const ie=ae;if(ie==="data"){if(!o(Y[ie],de[ie])&&(!Ae(Y[ie])||!o(ee,de[ie])))return!1}else if(de[ie]!==Y[ie])return!1}return!0},P=f.useMemo(()=>{const Y=!v||!t?!1:Ae(a)?E().isPaused()||i?!1:l!==!1:a,de=te=>{const je=Xr(te);return delete je._k,Y?{isValidating:!0,isLoading:!0,...je}:je},ae=F(),ie=A(),we=de(ae),De=ae===ie?we:de(ie);let xe=we;return[()=>{const te=de(F());return w(te,xe)?(xe.data=te.data,xe.isLoading=te.isLoading,xe.isValidating=te.isValidating,xe.error=te.error,xe):(xe=te,te)},()=>De]},[n,v]),_=v_.useSyncExternalStore(f.useCallback(Y=>M(v,(de,ae)=>{w(ae,de)||Y()}),[n,v]),P[0],P[1]),B=!S.current,L=p[v]&&p[v].length>0,K=_.data,z=Ae(K)?N&&a1(N)?vd(N):N:K,W=_.error,U=f.useRef(z),ee=h?Ae(K)?Ae(U.current)?z:U.current:K:z,Z=L&&!Ae(W)?!1:B&&!Ae(a)?a:E().isPaused()?!1:i?Ae(z)?!1:l:Ae(z)||l,R=!!(v&&t&&B&&Z),he=Ae(_.isValidating)?R:_.isValidating,fe=Ae(_.isLoading)?R:_.isLoading,Q=f.useCallback(async Y=>{const de=k.current;if(!v||!de||C.current||E().isPaused())return!1;let ae,ie,we=!0;const De=Y||{},xe=!m[v]||!De.dedupe,te=()=>u1?!C.current&&v===T.current&&S.current:v===T.current,je={isValidating:!1,isLoading:!1},Ee=()=>{b(je)},Ke=()=>{const Te=m[v];Te&&Te[1]===ie&&delete m[v]},lt={isValidating:!0};Ae(F().data)&&(lt.isLoading=!0);try{if(xe&&(b(lt),r.loadingTimeout&&Ae(F().data)&&setTimeout(()=>{we&&te()&&E().onLoadingSlow(v,r)},r.loadingTimeout),m[v]=[de($),gd()]),[ae,ie]=m[v],ae=await ae,xe&&setTimeout(Ke,r.dedupingInterval),!m[v]||m[v][1]!==ie)return xe&&te()&&E().onDiscarded(v),!1;je.error=_t;const Te=g[v];if(!Ae(Te)&&(ie<=Te[0]||ie<=Te[1]||Te[1]===0))return Ee(),xe&&te()&&E().onDiscarded(v),!1;const Ge=F().data;je.data=o(Ge,ae)?Ge:ae,xe&&te()&&E().onSuccess(ae,v,r)}catch(Te){Ke();const Ge=E(),{shouldRetryOnError:ft}=Ge;Ge.isPaused()||(je.error=Te,xe&&te()&&(Ge.onError(Te,v,Ge),(ft===!0||xr(ft)&&ft(Te))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||V())&&Ge.onErrorRetry(Te,v,Ge,Ft=>{const Oe=p[v];Oe&&Oe[0]&&Oe[0](i1,Ft)},{retryCount:(De.retryCount||0)+1,dedupe:!0})))}return we=!1,Ee(),!0},[v,n]),se=f.useCallback((...Y)=>d1(n,T.current,...Y),[]);if(dd(()=>{k.current=t,D.current=r,Ae(K)||(U.current=K)}),dd(()=>{if(!v)return;const Y=Q.bind(_t,bd);let de=0;E().revalidateOnFocus&&(de=Date.now()+E().focusThrottleInterval);const ie=W_(v,p,(we,De={})=>{if(we==r1){const xe=Date.now();E().revalidateOnFocus&&xe>de&&V()&&(de=xe+E().focusThrottleInterval,Y())}else if(we==n1)E().revalidateOnReconnect&&V()&&Y();else{if(we==o1)return Q();if(we==i1)return Q(De)}});return C.current=!1,T.current=v,S.current=!0,b({_k:$}),Z&&(m[v]||(Ae(z)||Ei?Y():C_(Y))),()=>{C.current=!0,ie()}},[v]),dd(()=>{let Y;function de(){const ie=xr(c)?c(F().data):c;ie&&Y!==-1&&(Y=setTimeout(ae,ie))}function ae(){!F().error&&(u||E().isVisible())&&(d||E().isOnline())?Q(bd).then(de):de()}return de(),()=>{Y&&(clearTimeout(Y),Y=-1)}},[c,u,d,v]),f.useDebugValue(ee),i){const Y=v&&Ae(z);if(!u1&&Ei&&Y)throw new Error("Fallback data is required when using Suspense in SSR.");Y&&(k.current=t,D.current=r,C.current=!1);const de=x[v],ae=!Ae(de)&&Y?se(de):g1;if(vd(ae),!Ae(W)&&Y)throw W;const ie=Y?Q(bd):g1;!Ae(ee)&&Y&&(ie.status="fulfilled",ie.value=!0),vd(ie)}return{mutate:se,get data(){return I.data=!0,ee},get error(){return I.error=!0,W},get isValidating(){return I.isValidating=!0,he},get isLoading(){return I.isLoading=!0,fe}}}),_a=U_(H_,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));let v1;function G_(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return v1=new IC(t,{headers:e}),v1}function Z_(e,t={}){return G_().request(e,t)}function Ma([e,t]){return Z_(e,t)}function Da(e){return(t,r,n)=>{const o=f.useRef(void 0),i=e(t,r,n);f.useEffect(()=>{i.data!==void 0&&(o.current=i.data)},[i.data]);const s=f.useCallback(()=>{o.current=void 0},[]),a=i.data===void 0?o.current:i.data,l=i.data===void 0&&o.current!==void 0;return Object.assign({},i,{data:a,isSticky:l,resetSticky:s})}}function q_({query:e,modificationBlocks:t,address:r}){return _a([DC,{query:e,modificationBlocks:t,...r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:{}}],{use:[Da],fetcher:Ma})}function Y_({query:e,modificationBlocks:t}){return _a([AC,{query:e,modificationBlocks:t}],{use:[Da],fetcher:Ma})}function X_({query:e,modificationBlocks:t}){return _a([OC,{query:e,modificationBlocks:t}],{use:[Da],fetcher:Ma})}function J_({query:e,modificationBlocks:t}){return _a([NC,{query:e,modificationBlocks:t}],{use:[Da],fetcher:Ma})}function Aa({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o}){const i=p_(n,o),s=zC({filterOptions:e,filterValues:t,limit:r,currentProvider:i});switch(n){case"sim-only-proposition":{const a=Kr(t,"provider");return s.groupBy(Array.isArray(a)&&a.length===1?"data_and_speed":"provider"),Y_({query:s.serialize(),modificationBlocks:Ca(n,o)})}case"fixed-proposition":return s.groupBy("provider_data_speed_down"),q_({query:s.serialize(),modificationBlocks:Ca(n,o),address:o.address});case"smartphone-proposition":{const a=Kr(t,"sorteren");return s.groupBy(a==="relevantie"?"product_provider_slug":"product_slug"),X_({query:s.serialize(),modificationBlocks:Ca(n,o)})}case"phone-and-subscription":{const a=Kr(t,"sorteren"),l=Kr(t,"provider");return s.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":a==="top"?"product_provider_slug":"product_slug"),J_({query:s.serialize(),modificationBlocks:Ca(n,o)})}default:return{data:void 0,isValidating:!1,mutate:async()=>{}}}}function Q_({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l,mutate:c}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),u=a?.search.records||[],{polling:d,validating:h}=a&&"fetchInfo"in a?a.fetchInfo:{polling:!1,validating:!1};return f.useEffect(()=>{if(!d)return;const p=setInterval(()=>c(),1e3);return()=>clearInterval(p)},[d]),i_(()=>{i.address&&c()},[i.address?.postcode,i.address?.number,i.address?.numberAddon]),y.jsxs("div",{children:[d&&i.address&&y.jsx(f_,{address:i.address,classNames:s?.postcodeCheckLoading}),y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",(l||h)&&!d&&"opacity-50 pointer-events-none",s?.resultsGrid),children:u.map(p=>y.jsx(hi,{disabled:i.currentFixedProviderScope?.includes(p.provider.slug),horizontal:o==="horizontal",monthlyFee:Yt(p.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(p.monthlyFees,p.baseMonthlyFee,p.lifetimeMonthlyFee),tcoPerMonth:Yt(p.tcoPerMonth,{dashed:!0}),propositionTitle:`${p.content.dataSpeedDown/1e3} Mb/s`,propositionSubtitle:p.tags.find(g=>g.type==="internet")?.label??"",propositionImageUrl:p.provider.imageUrl,propositionImageAlt:p.provider.name,propositionSpecifications:Pa(p),urgentText:Sa(p.specialPromotions),specialPromotions:p.specialPromotions.map(g=>g.publicTitle),modificationPromotions:p.modificationPromotions,href:`https://www.mobiel.nl/aanbieding/${p.key}`,classNames:s?.propositionCard},p.key))})]})}function eM({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),c=a?.search.records||[];return y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",l&&"opacity-50 pointer-events-none",s?.resultsGrid),children:c.map(u=>y.jsx(hi,{horizontal:o==="horizontal",monthlyFee:Yt(u.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(u.monthlyFees,u.baseMonthlyFee,u.lifetimeMonthlyFee),tcoPerMonth:Yt(u.tcoPerMonth,{dashed:!0}),propositionTitle:Ea(u.content.data,"GB"),propositionSubtitle:ed(u.content),propositionImageUrl:u.provider.imageUrl,propositionImageAlt:u.provider.name,propositionSpecifications:Pa(u),urgentText:Sa(u.specialPromotions),specialPromotions:u.specialPromotions.map(d=>d.publicTitle),modificationPromotions:u.modificationPromotions,deliveryText:u.deliveryPromise,href:`https://www.mobiel.nl/aanbieding/${u.key}`,classNames:s?.propositionCard},u.key))})}function tM({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),c=a?.search.records||[];return y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",l&&"opacity-50 pointer-events-none",s?.resultsGrid),children:c.map(u=>y.jsx(hi,{horizontal:o==="horizontal",monthlyFee:Yt(u.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(u.monthlyFees,u.baseMonthlyFee,u.lifetimeMonthlyFee),deviceDiscount:Xy(u),tcoPerMonth:Yt(u.tcoPerMonth,{dashed:!0}),productPrice:Yt(u.price,{dashed:!0}),productImageAlt:u.productVersion?.media.main?.altText||void 0,productImageUrl:u.productVersion?.media.main?.url||void 0,productReviewCount:u.productVersion?.product.reviews.numberOfReviews,productReviewScore:u.productVersion?.product.reviews.starsAverage,productSpecifications:a_(u.productVersion?.specifications||[]),productStockStatus:u.productVersion?.stock.status,productSubtitle:u.productVersion?.product.brand.name,productTitle:u.productVersion?.product.name,propositionTitle:Ea(u.content.data,"GB"),propositionSubtitle:ed(u.content),propositionImageUrl:u.provider.imageUrl,propositionImageAlt:u.provider.name,propositionSpecifications:Pa(u),urgentText:Sa(u.specialPromotions),specialPromotions:u.specialPromotions.map(d=>d.publicTitle),modificationPromotions:u.modificationPromotions,deliveryText:u.productVersion?.stock.status==="in_stock"?u.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${u.key}`,classNames:s?.propositionCard},u.key))})}function rM({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:i,classNames:s}){const{data:a,isValidating:l}=Aa({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:i}),c=a?.search.records||[];return y.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",l&&"opacity-50 pointer-events-none",s?.resultsGrid),children:c.map(u=>y.jsx(hi,{horizontal:o==="horizontal",monthlyFee:Yt(u.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:$a(u.monthlyFees,u.baseMonthlyFee,u.lifetimeMonthlyFee),deviceDiscount:Xy(u),tcoPerMonth:Yt(u.tcoPerMonth,{dashed:!0}),productPrice:Yt(u.price,{dashed:!0}),propositionTitle:Ea(u.content.data,"GB"),propositionSubtitle:ed(u.content),propositionImageUrl:u.provider.imageUrl,propositionImageAlt:u.provider.name,propositionSpecifications:Pa(u),urgentText:Sa(u.specialPromotions),specialPromotions:u.specialPromotions.map(d=>d.publicTitle),modificationPromotions:u.modificationPromotions,deliveryText:u.productVersion?.stock.status==="in_stock"?u.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${u.key}`,classNames:s?.propositionCard},u.key))})}function nM({...e}){switch(e.productCategory){case"fixed-proposition":return y.jsx(Q_,{...e});case"smartphone-proposition":return y.jsx(tM,{...e});case"phone-and-subscription":return y.jsx(rM,{...e});case"sim-only-proposition":return y.jsx(eM,{...e});default:return null}}function oM({productCategory:e,filterOptions:t=[],initialSelectedFilters:r=[],limit:n=12,propositionCardLayout:o="horizontal",classNames:i,profile:s={},onProfileChange:a}){const[l,c]=f.useState(r),u=f.useCallback(g=>{c(m=>{const x=m.filter($=>$.id!==g.id);let v=!1;return Array.isArray(g.value)?v=g.value.length>0:v=g.value!==""&&g.value!==void 0&&g.value!==null,v&&x.push(g),x})},[]),d=f.useCallback(g=>{c(m=>m.filter(x=>x.id!==g.id))},[]),h=f.useMemo(()=>[{value:e==="smartphone-proposition"?"relevantie":"top",label:"Relevantie"},{value:"meest-voordelig",label:"Prijs laag-hoog"},{value:"best-verkocht",label:"Best verkocht"}],[e]),p={inputWrapper:"bg-white border border-default-200",input:"placeholder:text-default-300"};return y.jsxs("div",{className:j("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",i?.base),children:[y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e==="phone-and-subscription"&&y.jsx(ca,{label:"Telefoon",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[l.find(g=>g.id==="product_slug")?.value??""],radius:"sm",onChange:g=>u({id:"product_slug",value:g.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:y.jsx(Pt,{children:"Apple iPhone 17"},"iphone-17")}),y.jsx("p",{className:"text-base font-bold text-foreground",children:"Profiel"}),y.jsxs(ca,{label:"Huidige mobiele provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentProviderSlug||""],radius:"sm",onChange:g=>a?.({currentProviderSlug:g.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[y.jsx(Pt,{children:"Geen"},""),y.jsx(Pt,{children:"Odido"},"odido"),y.jsx(Pt,{children:"KPN"},"kpn"),y.jsx(Pt,{children:"Hollandsnieuwe"},"hollandsnieuwe"),y.jsx(Pt,{children:"Lebara"},"lebara"),y.jsx(Pt,{children:"Ben"},"ben"),y.jsx(Pt,{children:"Vodafone"},"vodafone")]}),y.jsxs(ca,{label:"Huidige thuis internet provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentFixedProviderScope||"other"],radius:"sm",onChange:g=>a?.({currentFixedProviderScope:g.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[y.jsx(Pt,{children:"Geen i.v.m. verhuizing"},"other/moving"),y.jsx(Pt,{children:"KPN Internet"},"fixed/kpn/internet"),y.jsx(Pt,{children:"Ziggo Internet"},"fixed/ziggo/internet"),y.jsx(Pt,{children:"Odido Internet"},"fixed/odido/thuis"),y.jsx(Pt,{children:"Budget Internet"},"fixed/budget-internet"),y.jsx(Pt,{children:"Youfone Internet"},"fixed/youfone/internet"),y.jsx(Pt,{children:"Delta Internet"},"fixed/delta"),y.jsx(Pt,{children:"Andere / geen provider"},"other")]}),e==="fixed-proposition"&&y.jsxs("form",{className:"flex flex-col gap-2 my-4",onSubmit:g=>{g.preventDefault();const m=new FormData(g.target),x=Object.fromEntries(m.entries()),v=n_.safeParse(x);if(!v.success){console.error(v.error);return}a?.({address:v.data})},children:[y.jsx("p",{className:"text-base font-bold text-foreground",children:"Adres"}),y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx(mi,{placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",defaultValue:s.address?.postcode,classNames:p}),y.jsx(mi,{placeholder:"1",radius:"sm",type:"text",name:"number",defaultValue:s.address?.number,classNames:p}),y.jsx(mi,{placeholder:"A",radius:"sm",type:"text",name:"numberAddon",defaultValue:s.address?.numberAddon,classNames:p})]}),y.jsxs("div",{className:"flex flex-row gap-2",children:[y.jsx(mi,{placeholder:"Kalverstraat",radius:"sm",type:"text",name:"street",defaultValue:s.address?.street,classNames:p}),y.jsx(mi,{placeholder:"Amsterdam",radius:"sm",type:"text",name:"city",defaultValue:s.address?.city,classNames:p}),y.jsx(ti,{color:"primary",type:"submit",children:"Bekijk"})]})]})]}),y.jsx(Ac,{filters:t,activeFilters:l,onFilterChange:u,classNames:{...i?.filters,base:j("hidden lg:block",i?.filters?.base)}})]}),y.jsxs("div",{className:j("col-span-1 lg:col-span-3 space-y-4",i?.resultsGrid),children:[y.jsxs("div",{className:"flex flex-row-reverse justify-between items-center gap-2",children:[y.jsx(o_,{handleFilterChange:u,selectedValue:l.find(g=>g.id==="sorteren")?.value??h[0].value,classNames:i?.sortSelect,options:h}),y.jsx(ob,{filters:t,activeFilters:l,onFilterChange:u,classNames:{modal:i?.modal,filters:i?.filters,button:j("lg:hidden",i?.filterButton)}}),y.jsx(Um,{activeFilters:l,filterOptions:t,onFilterRemove:d,classNames:{container:"hidden lg:flex",...i?.activeFilterChips}})]}),y.jsx(nM,{productCategory:e,filterOptions:t,activeFilters:l,limit:n,propositionCardLayout:o,profile:s,classNames:i})]})]})}var iM=SS;const Oa=Object.freeze(Object.defineProperty({__proto__:null,default:iM},Symbol.toStringTag,{value:"Module"}));$t.ActiveFilterChips=Um,$t.ElementsRoot=Rx,$t.FilterChip=Wm,$t.FilterModal=ob,$t.Filters=Ac,$t.ProductResults=oM,$t.PropositionCard=hi,$t.RadioFilter=bb,$t.RangeFilter=kb,$t.SelectFilter=jb,Object.defineProperty($t,Symbol.toStringTag,{value:"Module"})});
|
|
484
|
+
*/var Ly;function KI(){return Ly||(Ly=1,process.env.NODE_ENV!=="production"&&function(){function e(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}function t(h,g){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var m=g();if(!d){var x=g();s(m,x)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}x=i({inst:{value:m,getSnapshot:g}});var v=x[0].inst,$=x[1];return l(function(){v.value=m,v.getSnapshot=g,r(v)&&$({inst:v})},[h,m,g]),a(function(){return r(v)&&$({inst:v}),h(function(){r(v)&&$({inst:v})})},[h]),c(m),m}function r(h){var g=h.getSnapshot;h=h.value;try{var m=g();return!s(h,m)}catch{return!0}}function n(h,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=f,s=typeof Object.is=="function"?Object.is:e,i=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,d=!1,p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;Gc.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:p,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Gc}var Fy;function WI(){return Fy||(Fy=1,process.env.NODE_ENV==="production"?xa.exports=RI():xa.exports=KI()),xa.exports}var UI=WI();const Vy=0,jy=1,zy=2,By=3;var Ry=Object.prototype.hasOwnProperty;function Zc(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Zc(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Ry.call(e,r)&&++n&&!Ry.call(t,r)||!(r in t)||!Zc(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}const Dr=new WeakMap,Xr=()=>{},kt=Xr(),qc=Object,Ne=e=>e===kt,wr=e=>typeof e=="function",Jr=(e,t)=>({...e,...t}),Ky=e=>wr(e.then),Yc={},wa={},Xc="undefined",ys=typeof window!=Xc,Jc=typeof document!=Xc,HI=ys&&"Deno"in window,GI=()=>ys&&typeof window.requestAnimationFrame!=Xc,Wy=(e,t)=>{const r=Dr.get(e);return[()=>!Ne(t)&&e.get(t)||Yc,n=>{if(!Ne(t)){const o=e.get(t);t in wa||(wa[t]=o),r[5](t,Jr(o,n),o||Yc)}},r[6],()=>!Ne(t)&&t in wa?wa[t]:!Ne(t)&&e.get(t)||Yc]};let Qc=!0;const ZI=()=>Qc,[ed,td]=ys&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Xr,Xr],qI=()=>{const e=Jc&&document.visibilityState;return Ne(e)||e!=="hidden"},YI=e=>(Jc&&document.addEventListener("visibilitychange",e),ed("focus",e),()=>{Jc&&document.removeEventListener("visibilitychange",e),td("focus",e)}),XI=e=>{const t=()=>{Qc=!0,e()},r=()=>{Qc=!1};return ed("online",t),ed("offline",r),()=>{td("online",t),td("offline",r)}},JI={isOnline:ZI,isVisible:qI},QI={initFocus:YI,initReconnect:XI},Uy=!f.useId,xs=!ys||HI,e8=e=>GI()?window.requestAnimationFrame(e):setTimeout(e,1),rd=xs?f.useEffect:f.useLayoutEffect,nd=typeof navigator<"u"&&navigator.connection,Hy=!xs&&nd&&(["slow-2g","2g"].includes(nd.effectiveType)||nd.saveData),$a=new WeakMap,t8=e=>qc.prototype.toString.call(e),od=(e,t)=>e===`[object ${t}]`;let r8=0;const sd=e=>{const t=typeof e,r=t8(e),n=od(r,"Date"),o=od(r,"RegExp"),s=od(r,"Object");let i,a;if(qc(e)===e&&!n&&!o){if(i=$a.get(e),i)return i;if(i=++r8+"~",$a.set(e,i),Array.isArray(e)){for(i="@",a=0;a<e.length;a++)i+=sd(e[a])+",";$a.set(e,i)}if(s){i="#";const l=qc.keys(e).sort();for(;!Ne(a=l.pop());)Ne(e[a])||(i+=a+":"+sd(e[a])+",");$a.set(e,i)}}else i=n?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},id=e=>{if(wr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?sd(e):"",[e,t]};let n8=0;const ad=()=>++n8;async function Gy(...e){const[t,r,n,o]=e,s=Jr({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let i=s.populateCache;const a=s.rollbackOnError;let l=s.optimisticData;const c=p=>typeof a=="function"?a(p):a!==!1,u=s.throwOnError;if(wr(r)){const p=r,h=[],g=t.keys();for(const m of g)!/^\$(inf|sub)\$/.test(m)&&p(t.get(m)._k)&&h.push(m);return Promise.all(h.map(d))}return d(r);async function d(p){const[h]=id(p);if(!h)return;const[g,m]=Wy(t,h),[x,v,$,C]=Dr.get(t),E=()=>{const I=x[h];return(wr(s.revalidate)?s.revalidate(g().data,p):s.revalidate!==!1)&&(delete $[h],delete C[h],I&&I[0])?I[0](zy).then(()=>g().data):g().data};if(e.length<3)return E();let T=n,k,D=!1;const P=ad();v[h]=[P,0];const V=!Ne(l),F=g(),y=F.data,M=F._c,A=Ne(M)?y:M;if(V&&(l=wr(l)?l(A,y):l,m({data:l,_c:A})),wr(T))try{T=T(A)}catch(I){k=I,D=!0}if(T&&Ky(T))if(T=await T.catch(I=>{k=I,D=!0}),P!==v[h][0]){if(D)throw k;return T}else D&&V&&c(k)&&(i=!0,m({data:A,_c:kt}));if(i&&!D)if(wr(i)){const I=i(T,A);m({data:I,error:kt,_c:kt})}else m({data:T,error:kt,_c:kt});if(v[h][1]=ad(),Promise.resolve(E()).then(()=>{m({_c:kt})}),D){if(u)throw k;return}return T}}const Zy=(e,t)=>{for(const r in e)e[r][0]&&e[r][0](t)},o8=(e,t)=>{if(!Dr.has(e)){const r=Jr(QI,t),n=Object.create(null),o=Gy.bind(kt,e);let s=Xr;const i=Object.create(null),a=(u,d)=>{const p=i[u]||[];return i[u]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(u,d,p)=>{e.set(u,d);const h=i[u];if(h)for(const g of h)g(d,p)},c=()=>{if(!Dr.has(e)&&(Dr.set(e,[n,Object.create(null),Object.create(null),Object.create(null),o,l,a]),!xs)){const u=r.initFocus(setTimeout.bind(kt,Zy.bind(kt,n,Vy))),d=r.initReconnect(setTimeout.bind(kt,Zy.bind(kt,n,jy)));s=()=>{u&&u(),d&&d(),Dr.delete(e)}}};return c(),[e,o,c,s]}return[e,Dr.get(e)[4]]},s8=(e,t,r,n,o)=>{const s=r.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*r.errorRetryInterval;!Ne(s)&&i>s||setTimeout(n,a,o)},i8=Zc,[qy,a8]=o8(new Map),l8=Jr({onLoadingSlow:Xr,onSuccess:Xr,onError:Xr,onErrorRetry:s8,onDiscarded:Xr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Hy?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:Hy?5e3:3e3,compare:i8,isPaused:()=>!1,cache:qy,mutate:a8,fallback:{}},JI),u8=(e,t)=>{const r=Jr(e,t);if(t){const{use:n,fallback:o}=e,{use:s,fallback:i}=t;n&&s&&(r.use=n.concat(s)),o&&i&&(r.fallback=Jr(o,i))}return r},c8=f.createContext({}),d8="$inf$",Yy=ys&&window.__SWR_DEVTOOLS_USE__,f8=Yy?window.__SWR_DEVTOOLS_USE__:[],p8=()=>{Yy&&(window.__SWR_DEVTOOLS_REACT__=f)},Xy=e=>wr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],h8=()=>{const e=f.useContext(c8);return f.useMemo(()=>Jr(l8,e),[e])},m8=e=>(t,r,n)=>e(t,r&&((...s)=>{const[i]=id(t),[,,,a]=Dr.get(qy);if(i.startsWith(d8))return r(...s);const l=a[i];return Ne(l)?r(...s):(delete a[i],l)}),n),g8=f8.concat(m8),v8=e=>function(...r){const n=h8(),[o,s,i]=Xy(r),a=u8(n,i);let l=e;const{use:c}=a,u=(c||[]).concat(g8);for(let d=u.length;d--;)l=u[d](l);return l(o,s||a.fetcher||null,a)},b8=(e,t,r)=>{const n=t[e]||(t[e]=[]);return n.push(r),()=>{const o=n.indexOf(r);o>=0&&(n[o]=n[n.length-1],n.pop())}},y8=(e,t)=>(...r)=>{const[n,o,s]=Xy(r),i=(s.use||[]).concat(t);return e(n,o,{...s,use:i})};p8();const ld=f.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),ud={dedupe:!0},Jy=Promise.resolve(kt),x8=v8((e,t,r)=>{const{cache:n,compare:o,suspense:s,fallbackData:i,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:p}=r,[h,g,m,x]=Dr.get(n),[v,$]=id(e),C=f.useRef(!1),E=f.useRef(!1),T=f.useRef(v),k=f.useRef(t),D=f.useRef(r),P=()=>D.current,V=()=>P().isVisible()&&P().isOnline(),[F,y,M,A]=Wy(n,v),I=f.useRef({}).current,N=Ne(i)?Ne(r.fallback)?kt:r.fallback[v]:i,w=(X,le)=>{for(const ae in I){const oe=ae;if(oe==="data"){if(!o(X[oe],le[oe])&&(!Ne(X[oe])||!o(ee,le[oe])))return!1}else if(le[oe]!==X[oe])return!1}return!0},S=f.useMemo(()=>{const X=!v||!t?!1:Ne(a)?P().isPaused()||s?!1:l!==!1:a,le=te=>{const je=Jr(te);return delete je._k,X?{isValidating:!0,isLoading:!0,...je}:je},ae=F(),oe=A(),be=le(ae),Me=ae===oe?be:le(oe);let ye=be;return[()=>{const te=le(F());return w(te,ye)?(ye.data=te.data,ye.isLoading=te.isLoading,ye.isValidating=te.isValidating,ye.error=te.error,ye):(ye=te,te)},()=>Me]},[n,v]),_=UI.useSyncExternalStore(f.useCallback(X=>M(v,(le,ae)=>{w(ae,le)||X()}),[n,v]),S[0],S[1]),B=!C.current,L=h[v]&&h[v].length>0,K=_.data,z=Ne(K)?N&&Ky(N)?ld(N):N:K,W=_.error,U=f.useRef(z),ee=p?Ne(K)?Ne(U.current)?z:U.current:K:z,G=L&&!Ne(W)?!1:B&&!Ne(a)?a:P().isPaused()?!1:s?Ne(z)?!1:l:Ne(z)||l,R=!!(v&&t&&B&&G),me=Ne(_.isValidating)?R:_.isValidating,ue=Ne(_.isLoading)?R:_.isLoading,Q=f.useCallback(async X=>{const le=k.current;if(!v||!le||E.current||P().isPaused())return!1;let ae,oe,be=!0;const Me=X||{},ye=!m[v]||!Me.dedupe,te=()=>Uy?!E.current&&v===T.current&&C.current:v===T.current,je={isValidating:!1,isLoading:!1},xe=()=>{y(je)},We=()=>{const Te=m[v];Te&&Te[1]===oe&&delete m[v]},lt={isValidating:!0};Ne(F().data)&&(lt.isLoading=!0);try{if(ye&&(y(lt),r.loadingTimeout&&Ne(F().data)&&setTimeout(()=>{be&&te()&&P().onLoadingSlow(v,r)},r.loadingTimeout),m[v]=[le($),ad()]),[ae,oe]=m[v],ae=await ae,ye&&setTimeout(We,r.dedupingInterval),!m[v]||m[v][1]!==oe)return ye&&te()&&P().onDiscarded(v),!1;je.error=kt;const Te=g[v];if(!Ne(Te)&&(oe<=Te[0]||oe<=Te[1]||Te[1]===0))return xe(),ye&&te()&&P().onDiscarded(v),!1;const Ge=F().data;je.data=o(Ge,ae)?Ge:ae,ye&&te()&&P().onSuccess(ae,v,r)}catch(Te){We();const Ge=P(),{shouldRetryOnError:pt}=Ge;Ge.isPaused()||(je.error=Te,ye&&te()&&(Ge.onError(Te,v,Ge),(pt===!0||wr(pt)&&pt(Te))&&(!P().revalidateOnFocus||!P().revalidateOnReconnect||V())&&Ge.onErrorRetry(Te,v,Ge,Ft=>{const Oe=h[v];Oe&&Oe[0]&&Oe[0](By,Ft)},{retryCount:(Me.retryCount||0)+1,dedupe:!0})))}return be=!1,xe(),!0},[v,n]),ie=f.useCallback((...X)=>Gy(n,T.current,...X),[]);if(rd(()=>{k.current=t,D.current=r,Ne(K)||(U.current=K)}),rd(()=>{if(!v)return;const X=Q.bind(kt,ud);let le=0;P().revalidateOnFocus&&(le=Date.now()+P().focusThrottleInterval);const oe=b8(v,h,(be,Me={})=>{if(be==Vy){const ye=Date.now();P().revalidateOnFocus&&ye>le&&V()&&(le=ye+P().focusThrottleInterval,X())}else if(be==jy)P().revalidateOnReconnect&&V()&&X();else{if(be==zy)return Q();if(be==By)return Q(Me)}});return E.current=!1,T.current=v,C.current=!0,y({_k:$}),G&&(m[v]||(Ne(z)||xs?X():e8(X))),()=>{E.current=!0,oe()}},[v]),rd(()=>{let X;function le(){const oe=wr(c)?c(F().data):c;oe&&X!==-1&&(X=setTimeout(ae,oe))}function ae(){!F().error&&(u||P().isVisible())&&(d||P().isOnline())?Q(ud).then(le):le()}return le(),()=>{X&&(clearTimeout(X),X=-1)}},[c,u,d,v]),f.useDebugValue(ee),s){const X=v&&Ne(z);if(!Uy&&xs&&X)throw new Error("Fallback data is required when using Suspense in SSR.");X&&(k.current=t,D.current=r,E.current=!1);const le=x[v],ae=!Ne(le)&&X?ie(le):Jy;if(ld(ae),!Ne(W)&&X)throw W;const oe=X?Q(ud):Jy;!Ne(ee)&&X&&(oe.status="fulfilled",oe.value=!0),ld(oe)}return{mutate:ie,get data(){return I.data=!0,ee},get error(){return I.error=!0,W},get isValidating(){return I.isValidating=!0,me},get isLoading(){return I.isLoading=!0,ue}}}),ws=y8(x8,e=>(t,r,n)=>(n.revalidateOnFocus=!1,n.revalidateIfStale=!1,n.revalidateOnReconnect=!1,e(t,r,n)));let Qy;function w8(){const e={"MobielNl-Application":"elements-client"},t="https://graph.mobiel.nl/api";return Qy=new Nw(t,{headers:e}),Qy}function $8(e,t={}){return w8().request(e,t)}function $s([e,t]){return $8(e,t)}function Es(e){return(t,r,n)=>{const o=f.useRef(void 0),s=e(t,r,n);f.useEffect(()=>{s.data!==void 0&&(o.current=s.data)},[s.data]);const i=f.useCallback(()=>{o.current=void 0},[]),a=s.data===void 0?o.current:s.data,l=s.data===void 0&&o.current!==void 0;return Object.assign({},s,{data:a,isSticky:l,resetSticky:i})}}const E8=jr`
|
|
485
|
+
query getPageByPath($path: String) {
|
|
486
|
+
page(path: $path) {
|
|
487
|
+
productCategory
|
|
488
|
+
filter
|
|
489
|
+
filterDefaults
|
|
490
|
+
pageFilters {
|
|
491
|
+
id
|
|
492
|
+
name
|
|
493
|
+
shortName
|
|
494
|
+
slug
|
|
495
|
+
column
|
|
496
|
+
type
|
|
497
|
+
valueType
|
|
498
|
+
dynamic
|
|
499
|
+
min
|
|
500
|
+
max
|
|
501
|
+
rank
|
|
502
|
+
operator
|
|
503
|
+
url
|
|
504
|
+
formatType
|
|
505
|
+
showCounts
|
|
506
|
+
options {
|
|
507
|
+
name
|
|
508
|
+
descriptiveName
|
|
509
|
+
value
|
|
510
|
+
}
|
|
511
|
+
aliases {
|
|
512
|
+
name
|
|
513
|
+
value
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
`;function P8({path:e}){const{data:t}=ws(e?[E8,{path:e}]:null,{use:[Es],fetcher:$s});return t?.page}function C8(e,t){return!e&&!t?"":t&&/^\d+$/.test(t)?`${e}/${t}`:`${e}${t??""}`}function Gt(e,t){if(e===void 0)return"";const r=e.toFixed(2).toString().replace(".",","),n=t?.symbol?`${t.symbol} ${r}`:r;return t?.dashed?n.replace(/,00$/,",-"):n}function e1(e){if(!e.productVersion)return;const r=parseFloat(e.productVersion.pricing.sellingPriceInclVat)-(e.creditFee+e.price);if(!(r<=0))return Gt(r,{dashed:!0})}function Ea(e,t,r){if(!(t===e[0].fee&&e[0].fee===e[e.length-1].fee))return t>r?`Van ${Gt(t,{dashed:!0})} voor:`:`${e[0].term} mnd van ${Gt(t,{dashed:!0})} voor:`}function S8(e){return e.filter(t=>t.value.descriptiveText!==void 0&&t.value.descriptiveText!==null).map(t=>({title:t.value.descriptiveText}))}function t1(e){switch(e){case Zt:return"Onbp";case 0:return"-";default:return e}}function cd(e,t){const r=e.minutes!==0?`${t1(e.minutes)} ${e.minutes===Zt?"min":"minuten"}`:void 0,n=e.sms!==0?`${t1(e.sms)} sms`:void 0,o=e.minutes===Zt&&e.sms===Zt||["minutes","sms"].every(i=>e.sharedCredits?.includes(i)),s=o?" / ":" + ";return!r&&!n?"":o?[r,"sms"].join(s):[r,n].join(s)}function T8(e){switch(e){case 24:return"2 jaar";case 12:return"1 jaar";case 1:return"Maandelijks";default:return""}}function Pa(e,t){return e===Zt?`Onbp ${t}`:`${(e/1e3).toString().replace(".",",")} ${t}`}function k8(e){switch(e){case 3:return"3G";case 4:return"4G";case 4.5:return"4G+";case 4.9:return"5G-ready";case 5:return"5G";default:return""}}function Ca(e){const t=T8(e.planVariant.contractTerm);if(e.productType==="fixed"){const s=`${e.content.dataSpeedDown/1e3} / ${e.content.dataSpeedUp/1e3} Mb/s`;if(e.content.types&&!e.content.types.includes("tv"))return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"}];const i=`${(e.content.channels||[]).length} (${(e.content.hdChannels||[]).length} HD)`,a=!e.content.receivers||e.content.receivers===0?"via TV app":`${e.content.receivers} TV-${e.content.receivers===1?"ontvanger":"ontvangers"}`;return[{title:t,slug:"contract-term"},{title:s,slug:"internet-speed"},{title:i,slug:"channels"},{title:a,slug:"tv-receiver"}]}const r=`${e.content.dataSpeedDown/1e3} Mbps`,n=`${(e.provider.network||"").replace("-netwerk","")} ${k8(e.content.networkGeneration)}`,o=`${Pa(e.content.dataEu,"GB")} in EU`;return[{title:t,slug:"contract-term"},{title:r,slug:"data-speed-down"},{title:n,slug:"provider-network"},{title:o,slug:"data-eu"}]}function I8(e,t=500,r=7){const n=new Date(new Date().toISOString().split("T")[0]),o=new Date(n.getTime()+r*24*60*60*1e3);return e&&e.weight>t&&new Date(e.validUntil)>=n&&new Date(e.validUntil)<o}function Sa(e,t=!0){const r=e.filter(o=>I8(o));if(r.length===0)return;const n=Math.min(...r.map(o=>{const s=new Date,i=new Date(o.validUntil);return Math.ceil((i.getTime()-s.getTime())/(1440*60*1e3))}))+1;return n===1?"Laatste dag":`${t?"Nog":"Actie nog"} ${n} dagen`}function _8({size:e,height:t,width:r,className:n,style:o,...s}){return b.jsxs("svg",{fill:"none",width:e||r||106,height:e||t||106,viewBox:"0 0 106 106",xmlns:"http://www.w3.org/2000/svg",className:n,style:o,...s,children:[b.jsx("title",{children:"Search Loading Icon"}),b.jsx("path",{d:"M87.9225 102.652C90.5856 105.824 95.3164 106.237 98.4889 103.574C101.662 100.911 102.075 96.1805 99.4115 93.0079L87.9225 102.652ZM99.4115 93.0079L79.2493 68.9884L67.7604 78.6323L87.9225 102.652L99.4115 93.0079Z",fill:"#1A2B8F"}),b.jsx("circle",{cx:"51",cy:"47",r:"27",stroke:"#1A2B8F",strokeWidth:4}),b.jsx("circle",{cx:"51",cy:"47",r:"32",stroke:"white",strokeWidth:6}),b.jsx("circle",{cx:"51",cy:"47",r:"37.5",stroke:"#1A2B8F",strokeWidth:5}),b.jsx("circle",{cx:"51",cy:"47",r:"43.5",stroke:"white",strokeWidth:7})]})}function M8({classNames:e,address:t}){return b.jsxs("div",{className:j("flex flex-row items-center justify-center gap-8 rounded-lg bg-white p-4 shadow-md mb-4",e?.base),children:[b.jsx(_8,{className:j("animate-pulse",e?.icon)}),b.jsxs("div",{className:j("max-w-[215px] text-center flex flex-col items-center gap-2",e?.textWrapper),children:[b.jsx("div",{className:j("text-xl font-bold leading-none text-foreground",e?.heading),children:"Aan het zoeken naar de beste deals..."}),b.jsxs("div",{className:j("text-sm text-foreground leading-none",e?.addressText),children:[t.street," ",C8(t.number,t.numberAddon),", ",t.city]})]})]})}function D8(e){const[t,r]=Bt(e,Yd.variantKeys),{as:n,title:o,children:s,description:i,onClose:a,isClosable:l,ref:c,icon:u,startContent:d,endContent:p,isVisible:h,isDefaultVisible:g,onVisibleChange:m,closeButtonProps:x={size:"sm"},className:v,classNames:$,...C}=t,[E,T]=Cr(h,g??!0,m),D=typeof(n||"div")=="string",P=Rt(c),V=f.useCallback(()=>{T(!1),a?.()},[T,a]),F=Pe($?.base,v),y=f.useMemo(()=>Yd({hasContent:!_n(i)||!_n(s),...r}),[i,qr(r)]),M=f.useCallback(()=>({"data-visible":he(E),"data-closeable":he(l),"data-has-title":he(!_n(o)),"data-has-description":he(!_n(i)),...Ve(ct(C,{enabled:D}),ct(t)),className:y.base({class:F})}),[y,F]),A=f.useCallback(()=>({className:y.mainWrapper({class:$?.mainWrapper})}),[y,$?.mainWrapper]),I=f.useCallback(()=>({className:y.description({class:$?.description})}),[y,$?.description]),N=f.useCallback(()=>({className:y.title({class:$?.title})}),[y,$?.title]),w=f.useCallback(()=>({...x,className:y.closeButton({class:$?.closeButton})}),[y,$?.closeButton]),S=f.useCallback(()=>({className:y.alertIcon({class:$?.alertIcon})}),[y,$?.alertIcon]),_=f.useCallback(()=>({className:y.iconWrapper({class:$?.iconWrapper})}),[y,$?.iconWrapper]);return{title:o,icon:u,children:s,description:i,isClosable:l,domRef:P,endContent:p,startContent:d,getBaseProps:M,getMainWrapperProps:A,getDescriptionProps:I,getTitleProps:N,color:r.color,getCloseButtonProps:w,handleClose:V,isVisible:E,onClose:a,getAlertIconProps:S,getIconWrapperProps:_}}var r1={primary:ag,secondary:ag,success:CT,warning:ST,danger:TT},n1=Re((e,t)=>{const{title:r,icon:n,children:o,description:s,endContent:i,startContent:a,isClosable:l,domRef:c,handleClose:u,getBaseProps:d,getMainWrapperProps:p,getDescriptionProps:h,getTitleProps:g,getCloseButtonProps:m,color:x,isVisible:v,onClose:$,getAlertIconProps:C,getIconWrapperProps:E}=D8({...e,ref:t});if(!v)return null;const T=n&&f.isValidElement(n)?f.cloneElement(n,C()):null,k=r1[x]||r1.primary;return b.jsxs("div",{ref:c,role:"alert",...d(),children:[a,b.jsx("div",{...E(),children:T||b.jsx(k,{...C()})}),b.jsxs("div",{...p(),children:[!_n(r)&&b.jsx("div",{...g(),children:r}),!_n(s)&&b.jsx("div",{...h(),children:s}),o]}),i,(l||$)&&b.jsx(Vk,{isIconOnly:!0,"aria-label":"Close",radius:"full",variant:"light",onPress:u,...m(),children:b.jsx(lg,{height:20,width:20})})]})});n1.displayName="HeroUI.Alert";var A8=n1;function Ta({activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:n}){return b.jsxs("div",{children:[b.jsx("div",{className:j("text-base font-bold text-foreground mb-1 lg:hidden",n?.filterChips?.title),children:"Gekozen filters:"}),b.jsx(tc,{activeFilters:e,filterOptions:t,onFilterRemove:r,classNames:{container:j("mb-6 lg:hidden",n?.filterChips?.container),filterChip:n?.filterChips?.filterChip}}),b.jsx(A8,{color:"warning",variant:"faded",title:"Geen resultaten gevonden",description:"Er zijn geen producten gevonden met je gekozen filtercombinatie.",classNames:{base:j(n?.alert?.base),title:j(n?.alert?.title),description:j(n?.alert?.description),mainWrapper:j(n?.alert?.mainWrapper),closeButton:j(n?.alert?.closeButton),iconWrapper:j(n?.alert?.iconWrapper),alertIcon:j(n?.alert?.alertIcon)}})]})}function N8(e,t){const r=!e.includes("fixed"),n=r?t.currentProviderSlug:t.currentFixedProviderScope?.split("/")[1];if(!(n==="other"||n==="none"||n===void 0)&&!(r&&!t.keepCurrentMsisdn)&&!(r&&t.currentSubscriptionType==="prepaid"))return n}function ka(e,t){return[{amount:1,scope:e.includes("fixed")?"fixed/*":"mobile/*"},{amount:1,scope:t.currentFixedProviderScope},{amount:1,scope:t.customerSegment},...(t.currentMobileProviders||[]).map(({scope:r,value:n})=>({amount:parseInt(n),scope:r}))].filter(r=>!!r.scope&&r.amount>0)}function O8({query:e,modificationBlocks:t,address:r}){return ws([Fw,{query:e,modificationBlocks:t,...r?{postcode:r.postcode,number:parseInt(r.number),numberAddon:r.numberAddon}:{}}],{use:[Es],fetcher:$s})}function L8({query:e,modificationBlocks:t}){return ws([Vw,{query:e,modificationBlocks:t}],{use:[Es],fetcher:$s})}function F8({query:e,modificationBlocks:t}){return ws([jw,{query:e,modificationBlocks:t}],{use:[Es],fetcher:$s})}function V8({query:e,modificationBlocks:t}){return ws([zw,{query:e,modificationBlocks:t}],{use:[Es],fetcher:$s})}function Ia({filterOptions:e,activeFilters:t,limit:r,productCategory:n,profile:o}){const s=N8(n,o),i=Ww({filterOptions:e,filterValues:t,limit:r,currentProvider:s});switch(n){case"sim-only-proposition":{const a=Yn(t,"providers");return i.groupBy(Array.isArray(a)&&a.length===1?"data_and_speed":"provider"),L8({query:i.serialize(),modificationBlocks:ka(n,o)})}case"fixed-proposition":return i.groupBy("provider_data_speed_down"),O8({query:i.serialize(),modificationBlocks:ka(n,o),address:o.address});case"smartphone-proposition":{const a=Yn(t,"sorteren");return i.groupBy(a==="relevantie"?"product_provider_slug":"product_slug"),F8({query:i.serialize(),modificationBlocks:ka(n,o)})}case"phone-and-subscription":{const a=Yn(t,"sorteren"),l=Yn(t,"providers");return i.groupBy(Array.isArray(l)&&l.length===1?"data_and_speed":a==="top"?"product_provider_slug":"product_slug"),V8({query:i.serialize(),modificationBlocks:ka(n,o)})}default:return{data:void 0,isValidating:!1,mutate:async()=>{}}}}function j8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:s,onFilterRemove:i,classNames:a}){const{data:l,isValidating:c,mutate:u}=Ia({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:s}),d=l?.search.records||[],{polling:p,validating:h}=l&&"fetchInfo"in l?l.fetchInfo:{polling:!1,validating:!1};return f.useEffect(()=>{if(!p)return;const g=setInterval(()=>u(),1e3);return()=>clearInterval(g)},[p,u]),us(()=>{s.address&&u()},[s.address?.postcode,s.address?.number,s.address?.numberAddon]),!p&&!c&&d.length===0?b.jsx(Ta,{filterOptions:t,activeFilters:r,onFilterRemove:i,classNames:a?.resultsNotFound}):b.jsxs("div",{children:[p&&s.address&&b.jsx(M8,{address:s.address,classNames:a?.postcodeCheckLoading}),b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",(c||h)&&!p&&"opacity-50 pointer-events-none",a?.resultsGrid),children:d.map(g=>b.jsx(fs,{disabled:s.currentFixedProviderScope?.includes(g.provider.slug),horizontal:o==="horizontal",monthlyFee:Gt(g.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Ea(g.monthlyFees,g.baseMonthlyFee,g.lifetimeMonthlyFee),tcoPerMonth:Gt(g.tcoPerMonth,{dashed:!0}),propositionTitle:`${g.content.dataSpeedDown/1e3} Mb/s`,propositionSubtitle:g.tags.find(m=>m.type==="internet")?.label??"",propositionImageUrl:g.provider.imageUrl,propositionImageAlt:g.provider.name,propositionSpecifications:Ca(g),urgentText:Sa(g.specialPromotions),specialPromotions:g.specialPromotions.map(m=>m.publicTitle),modificationPromotions:g.modificationPromotions,href:`https://www.mobiel.nl/aanbieding/${g.key}`,classNames:a?.propositionCard},g.key))})]})}function z8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:s,onFilterRemove:i,classNames:a}){const{data:l,isValidating:c}=Ia({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:s}),u=l?.search.records||[];return!c&&u.length===0?b.jsx(Ta,{filterOptions:t,activeFilters:r,onFilterRemove:i,classNames:a?.resultsNotFound}):b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",c&&"opacity-50 pointer-events-none",a?.resultsGrid),children:u.map(d=>b.jsx(fs,{horizontal:o==="horizontal",monthlyFee:Gt(d.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Ea(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),tcoPerMonth:Gt(d.tcoPerMonth,{dashed:!0}),propositionTitle:Pa(d.content.data,"GB"),propositionSubtitle:cd(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:Ca(d),urgentText:Sa(d.specialPromotions),specialPromotions:d.specialPromotions.map(p=>p.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.deliveryPromise,href:`https://www.mobiel.nl/aanbieding/${d.key}`,classNames:a?.propositionCard},d.key))})}function B8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:s,onFilterRemove:i,classNames:a}){const{data:l,isValidating:c}=Ia({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:s}),u=l?.search.records||[];return!c&&u.length===0?b.jsx(Ta,{filterOptions:t,activeFilters:r,onFilterRemove:i,classNames:a?.resultsNotFound}):b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",c&&"opacity-50 pointer-events-none",a?.resultsGrid),children:u.map(d=>b.jsx(fs,{horizontal:o==="horizontal",monthlyFee:Gt(d.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Ea(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),deviceDiscount:e1(d),tcoPerMonth:Gt(d.tcoPerMonth,{dashed:!0}),productPrice:Gt(d.price,{dashed:!0}),productImageAlt:d.productVersion?.media.main?.altText||void 0,productImageUrl:d.productVersion?.media.main?.url||void 0,productReviewCount:d.productVersion?.product.reviews.numberOfReviews,productReviewScore:d.productVersion?.product.reviews.starsAverage,productSpecifications:S8(d.productVersion?.specifications||[]),productStockStatus:d.productVersion?.stock.status,productSubtitle:d.productVersion?.product.brand.name,productTitle:d.productVersion?.product.name,propositionTitle:Pa(d.content.data,"GB"),propositionSubtitle:cd(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:Ca(d),urgentText:Sa(d.specialPromotions),specialPromotions:d.specialPromotions.map(p=>p.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.productVersion?.stock.status==="in_stock"?d.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${d.key}`,classNames:a?.propositionCard},d.key))})}function R8({productCategory:e,filterOptions:t,activeFilters:r,limit:n,propositionCardLayout:o,profile:s,onFilterRemove:i,classNames:a}){const{data:l,isValidating:c}=Ia({filterOptions:t,activeFilters:r,limit:n,productCategory:e,profile:s}),u=l?.search.records||[];return!c&&u.length===0?b.jsx(Ta,{filterOptions:t,activeFilters:r,onFilterRemove:i,classNames:a?.resultsNotFound}):b.jsx("div",{className:j("gap-4 grid grid-cols-1",o==="vertical"&&"lg:grid-cols-3",c&&"opacity-50 pointer-events-none",a?.resultsGrid),children:u.map(d=>b.jsx(fs,{horizontal:o==="horizontal",monthlyFee:Gt(d.monthlyFees[0]?.fee,{dashed:!0}),monthlyFeePromotionText:Ea(d.monthlyFees,d.baseMonthlyFee,d.lifetimeMonthlyFee),deviceDiscount:e1(d),tcoPerMonth:Gt(d.tcoPerMonth,{dashed:!0}),productPrice:Gt(d.price,{dashed:!0}),propositionTitle:Pa(d.content.data,"GB"),propositionSubtitle:cd(d.content),propositionImageUrl:d.provider.imageUrl,propositionImageAlt:d.provider.name,propositionSpecifications:Ca(d),urgentText:Sa(d.specialPromotions),specialPromotions:d.specialPromotions.map(p=>p.publicTitle),modificationPromotions:d.modificationPromotions,deliveryText:d.productVersion?.stock.status==="in_stock"?d.deliveryPromise:void 0,href:`https://www.mobiel.nl/aanbieding/${d.key}`,classNames:a?.propositionCard},d.key))})}function K8({...e}){switch(e.productCategory){case"fixed-proposition":return b.jsx(j8,{...e});case"smartphone-proposition":return b.jsx(B8,{...e});case"phone-and-subscription":return b.jsx(R8,{...e});case"sim-only-proposition":return b.jsx(z8,{...e});default:return null}}function W8(e){switch(e){case"sim-only-proposition":return"/elements/sim-only";case"fixed-proposition":return"/elements/internet-en-tv";case"smartphone-proposition":case"phone-and-subscription":return"/elements/telefoon-met-abonnement";default:return}}function U8({productCategory:e,initialSelectedFilters:t=[],limit:r=12,propositionCardLayout:n="horizontal",classNames:o,profile:s={},onProfileChange:i}){const[a,l]=f.useState(t),[c,u]=f.useState(new Set);us(()=>{l(t)},[JSON.stringify([...t].sort((E,T)=>E.slug.localeCompare(T.slug)))]);const d=P8({path:W8(e)}),p=(d?.pageFilters??[]).sort((E,T)=>E.rank-T.rank),h=d?.filter?uf(d.filter,p):[],g=d?.filterDefaults?uf(d.filterDefaults,p):[],m=p.find(E=>E.slug==="sorteren")?.options??[],x=f.useMemo(()=>{const E=g.filter(D=>!c.has(D.slug)),k=[...Dx(a,E),...h].reduce((D,P)=>(D.set(P.slug,P),D),new Map);return Array.from(k.values())},[a,h,g,c]),v=f.useCallback(E=>{l(T=>{const k=T.filter(P=>P.slug!==E.slug);let D=!1;if(Array.isArray(E.value)?D=E.value.length>0:D=E.value!==""&&E.value!==void 0&&E.value!==null,D&&typeof E.value=="string"&&E.value.includes("-")){const P=qn(p,E.slug);if(P&&["range","min","max"].includes(P.type)){const{from:V,to:F}=qt(E.value);if(V!==void 0&&F!==void 0){const y=P.min||0,M=P.max||Zt;D=!(V<=y&&F>=M)}}}return D&&k.push(E),k}),u(T=>{const k=new Set(T);return k.delete(E.slug),k})},[p]),$=f.useCallback(E=>{g.some(k=>k.slug===E.slug)?(l(k=>k.filter(D=>D.slug!==E.slug)),u(k=>new Set([...k,E.slug]))):l(k=>k.filter(D=>D.slug!==E.slug))},[g]),C={inputWrapper:"bg-white border border-default-200",input:"placeholder:text-default-300"};return b.jsxs("div",{className:j("grid grid-cols-1 lg:grid-cols-4 gap-4 lg:gap-x-6 w-full",o?.base),children:[b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsxs("div",{className:"flex flex-col gap-2 mb-4",children:[e==="phone-and-subscription"&&b.jsx(la,{label:"Telefoon",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[x.find(E=>E.slug==="product_slug")?.value??""],radius:"sm",onChange:E=>v({slug:"product_slug",value:E.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:b.jsx(Pt,{children:"Apple iPhone 17"},"iphone-17")}),b.jsx("p",{className:"text-base font-bold text-foreground",children:"Profiel"}),b.jsxs(la,{label:"Huidige mobiele provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentProviderSlug||""],radius:"sm",onChange:E=>i?.({currentProviderSlug:E.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[b.jsx(Pt,{children:"Geen"},""),b.jsx(Pt,{children:"Odido"},"odido"),b.jsx(Pt,{children:"KPN"},"kpn"),b.jsx(Pt,{children:"Hollandsnieuwe"},"hollandsnieuwe"),b.jsx(Pt,{children:"Lebara"},"lebara"),b.jsx(Pt,{children:"Ben"},"ben"),b.jsx(Pt,{children:"Vodafone"},"vodafone")]}),b.jsxs(la,{label:"Huidige thuis internet provider",popoverProps:{classNames:{base:"mobielnl-elements"}},selectionMode:"single",disallowEmptySelection:!0,selectedKeys:[s.currentFixedProviderScope||"other"],radius:"sm",onChange:E=>i?.({currentFixedProviderScope:E.target.value}),listboxProps:{itemClasses:{base:"data-[hover=true]:bg-default-100 data-[selectable=true]:focus:bg-default-100 data-[selectable=true]:focus:text-foreground rounded-small"}},classNames:{label:"whitespace-nowrap group-data-[filled=true]:-translate-y-[calc(50%_+_var(--mobielnl-font-size-small)/2_-_8px)]",trigger:"bg-white border border-default-200 cursor-pointer"},children:[b.jsx(Pt,{children:"Geen i.v.m. verhuizing"},"other/moving"),b.jsx(Pt,{children:"KPN Internet"},"fixed/kpn/internet"),b.jsx(Pt,{children:"Ziggo Internet"},"fixed/ziggo/internet"),b.jsx(Pt,{children:"Odido Internet"},"fixed/odido/thuis"),b.jsx(Pt,{children:"Budget Internet"},"fixed/budget-internet"),b.jsx(Pt,{children:"Youfone Internet"},"fixed/youfone/internet"),b.jsx(Pt,{children:"Delta Internet"},"fixed/delta"),b.jsx(Pt,{children:"Andere / geen provider"},"other")]}),e==="fixed-proposition"&&b.jsxs("form",{className:"flex flex-col gap-2 my-4",onSubmit:E=>{E.preventDefault();const T=new FormData(E.target),k=Object.fromEntries(T.entries()),D=zI.safeParse(k);if(!D.success){console.error(D.error);return}i?.({address:D.data})},children:[b.jsx("p",{className:"text-base font-bold text-foreground",children:"Adres"}),b.jsxs("div",{className:"flex flex-row gap-2",children:[b.jsx(ps,{placeholder:"1234AB",radius:"sm",type:"text",name:"postcode",defaultValue:s.address?.postcode,classNames:C}),b.jsx(ps,{placeholder:"1",radius:"sm",type:"text",name:"number",defaultValue:s.address?.number,classNames:C}),b.jsx(ps,{placeholder:"A",radius:"sm",type:"text",name:"numberAddon",defaultValue:s.address?.numberAddon,classNames:C})]}),b.jsxs("div",{className:"flex flex-row gap-2",children:[b.jsx(ps,{placeholder:"Kalverstraat",radius:"sm",type:"text",name:"street",defaultValue:s.address?.street,classNames:C}),b.jsx(ps,{placeholder:"Amsterdam",radius:"sm",type:"text",name:"city",defaultValue:s.address?.city,classNames:C}),b.jsx(rs,{color:"primary",type:"submit",children:"Bekijk"})]})]})]}),b.jsx(Cc,{filterOptions:p,activeFilters:x,onFilterChange:v,classNames:{...o?.filters,base:j("hidden lg:block",o?.filters?.base)}})]}),b.jsxs("div",{className:j("col-span-1 lg:col-span-3 space-y-4",o?.resultsGrid),children:[b.jsxs("div",{className:"flex flex-row-reverse justify-between items-center gap-2",children:[b.jsx(BI,{handleFilterChange:v,selectedValue:x.find(E=>E.slug==="sorteren")?.value??m[0].value,classNames:o?.sortSelect,options:m}),b.jsx(jv,{filterOptions:p,activeFilters:x,onFilterChange:v,classNames:{modal:o?.modal,filters:o?.filters,button:j("lg:hidden",o?.filterButton)}}),b.jsx(tc,{filterOptions:p,activeFilters:x,onFilterRemove:$,classNames:{container:"hidden lg:flex",...o?.activeFilterChips}})]}),b.jsx(K8,{productCategory:e,filterOptions:p,activeFilters:x,onFilterRemove:$,limit:r,propositionCardLayout:n,profile:s,classNames:o})]})]})}var H8=zC;const Ps=Object.freeze(Object.defineProperty({__proto__:null,default:H8},Symbol.toStringTag,{value:"Module"}));Et.ActiveFilterChips=tc,Et.ElementsRoot=Tx,Et.FilterChip=pg,Et.FilterModal=jv,Et.Filters=Cc,Et.ProductResults=U8,Et.PropositionCard=fs,Et.RadioFilter=lb,Et.RangeFilter=ub,Et.SelectFilter=xb,Object.defineProperty(Et,Symbol.toStringTag,{value:"Module"})});
|