New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details β†’ β†’
Socket
Book a DemoSign in
Socket

@headlessui-float/react

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@headlessui-float/react - npm Package Compare versions

Comparing version
0.15.0
to
0.15.1
+9
-9
dist/headlessui-float.cjs

@@ -1,2 +0,2 @@

"use strict";var Mt=Object.defineProperty;var Yt=(t,o,n)=>o in t?Mt(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n;var je=(t,o,n)=>Yt(t,typeof o!="symbol"?o+"":o,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),Se=require("@headlessui/react"),Qe=require("@floating-ui/react"),z=require("@floating-ui/dom");var Oe={exports:{}},Q={};/**
"use strict";var Wt=Object.defineProperty;var Mt=(t,o,n)=>o in t?Wt(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n;var Ce=(t,o,n)=>Mt(t,typeof o!="symbol"?o+"":o,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),_e=require("@headlessui/react"),Ze=require("@floating-ui/react"),z=require("@floating-ui/dom");var Se={exports:{}},Z={};/**
* @license React

@@ -9,3 +9,3 @@ * react-jsx-runtime.production.min.js

* LICENSE file in the root directory of this source tree.
*/var Je;function Lt(){if(Je)return Q;Je=1;var t=a,o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(h,g,w){var d,v={},x=null,E=null;w!==void 0&&(x=""+w),g.key!==void 0&&(x=""+g.key),g.ref!==void 0&&(E=g.ref);for(d in g)r.call(g,d)&&!f.hasOwnProperty(d)&&(v[d]=g[d]);if(h&&h.defaultProps)for(d in g=h.defaultProps,g)v[d]===void 0&&(v[d]=g[d]);return{$$typeof:o,type:h,key:x,ref:E,props:v,_owner:u.current}}return Q.Fragment=n,Q.jsx=c,Q.jsxs=c,Q}var ee={};/**
*/var Xe;function Yt(){if(Xe)return Z;Xe=1;var t=a,o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(h,g,w){var d,v={},x=null,E=null;w!==void 0&&(x=""+w),g.key!==void 0&&(x=""+g.key),g.ref!==void 0&&(E=g.ref);for(d in g)r.call(g,d)&&!f.hasOwnProperty(d)&&(v[d]=g[d]);if(h&&h.defaultProps)for(d in g=h.defaultProps,g)v[d]===void 0&&(v[d]=g[d]);return{$$typeof:o,type:h,key:x,ref:E,props:v,_owner:u.current}}return Z.Fragment=n,Z.jsx=c,Z.jsxs=c,Z}var Q={};/**
* @license React

@@ -18,11 +18,11 @@ * react-jsx-runtime.development.js

* LICENSE file in the root directory of this source tree.
*/var Ke;function Ut(){return Ke||(Ke=1,process.env.NODE_ENV!=="production"&&function(){var t=a,o=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),R=Symbol.iterator,_="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var i=R&&e[R]||e[_];return typeof i=="function"?i:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];L("error",e,s)}}function L(e,i,s){{var l=k.ReactDebugCurrentFrame,p=l.getStackAddendum();p!==""&&(i+="%s",s=s.concat([p]));var C=s.map(function(y){return String(y)});C.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,C)}}var U=!1,S=!1,W=!1,V=!1,ne=!1,X;X=Symbol.for("react.module.reference");function J(e){return!!(typeof e=="string"||typeof e=="function"||e===r||e===f||ne||e===u||e===w||e===d||V||e===E||U||S||W||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===v||e.$$typeof===c||e.$$typeof===h||e.$$typeof===g||e.$$typeof===X||e.getModuleId!==void 0))}function K(e,i,s){var l=e.displayName;if(l)return l;var p=i.displayName||i.name||"";return p!==""?s+"("+p+")":s}function N(e){return e.displayName||"Context"}function F(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case r:return"Fragment";case n:return"Portal";case f:return"Profiler";case u:return"StrictMode";case w:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var i=e;return N(i)+".Consumer";case c:var s=e;return N(s._context)+".Provider";case g:return K(e,e.render,"ForwardRef");case v:var l=e.displayName||null;return l!==null?l:F(e.type)||"Memo";case x:{var p=e,C=p._payload,y=p._init;try{return F(y(C))}catch{return null}}}return null}var M=Object.assign,H=0,fe,de,ge,ve,me,he,ie;function De(){}De.__reactDisabledLog=!0;function ft(){{if(H===0){fe=console.log,de=console.info,ge=console.warn,ve=console.error,me=console.group,he=console.groupCollapsed,ie=console.groupEnd;var e={configurable:!0,enumerable:!0,value:De,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function dt(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:fe}),info:M({},e,{value:de}),warn:M({},e,{value:ge}),error:M({},e,{value:ve}),group:M({},e,{value:me}),groupCollapsed:M({},e,{value:he}),groupEnd:M({},e,{value:ie})})}H<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=k.ReactCurrentDispatcher,be;function oe(e,i,s){{if(be===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);be=l&&l[1]||""}return`
`+be+e}}var Ee=!1,ae;{var gt=typeof WeakMap=="function"?WeakMap:Map;ae=new gt}function Ie(e,i){if(!e||Ee)return"";{var s=ae.get(e);if(s!==void 0)return s}var l;Ee=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=ye.current,ye.current=null,ft();try{if(i){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(A){l=A}Reflect.construct(e,[],y)}else{try{y.call()}catch(A){l=A}e.call(y.prototype)}}else{try{throw Error()}catch(A){l=A}e()}}catch(A){if(A&&l&&typeof A.stack=="string"){for(var m=A.stack.split(`
*/var Je;function Lt(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&function(){var t=a,o=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),E=Symbol.for("react.offscreen"),R=Symbol.iterator,_="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var i=R&&e[R]||e[_];return typeof i=="function"?i:null}var A=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(e){{for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];L("error",e,s)}}function L(e,i,s){{var l=A.ReactDebugCurrentFrame,p=l.getStackAddendum();p!==""&&(i+="%s",s=s.concat([p]));var C=s.map(function(y){return String(y)});C.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,C)}}var U=!1,S=!1,W=!1,V=!1,re=!1,X;X=Symbol.for("react.module.reference");function J(e){return!!(typeof e=="string"||typeof e=="function"||e===r||e===f||re||e===u||e===w||e===d||V||e===E||U||S||W||typeof e=="object"&&e!==null&&(e.$$typeof===x||e.$$typeof===v||e.$$typeof===c||e.$$typeof===h||e.$$typeof===g||e.$$typeof===X||e.getModuleId!==void 0))}function K(e,i,s){var l=e.displayName;if(l)return l;var p=i.displayName||i.name||"";return p!==""?s+"("+p+")":s}function N(e){return e.displayName||"Context"}function k(e){if(e==null)return null;if(typeof e.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case r:return"Fragment";case n:return"Portal";case f:return"Profiler";case u:return"StrictMode";case w:return"Suspense";case d:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var i=e;return N(i)+".Consumer";case c:var s=e;return N(s._context)+".Provider";case g:return K(e,e.render,"ForwardRef");case v:var l=e.displayName||null;return l!==null?l:k(e.type)||"Memo";case x:{var p=e,C=p._payload,y=p._init;try{return k(y(C))}catch{return null}}}return null}var M=Object.assign,H=0,le,fe,de,ge,ve,me,ne;function Ae(){}Ae.__reactDisabledLog=!0;function lt(){{if(H===0){le=console.log,fe=console.info,de=console.warn,ge=console.error,ve=console.group,me=console.groupCollapsed,ne=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function ft(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:le}),info:M({},e,{value:fe}),warn:M({},e,{value:de}),error:M({},e,{value:ge}),group:M({},e,{value:ve}),groupCollapsed:M({},e,{value:me}),groupEnd:M({},e,{value:ne})})}H<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var he=A.ReactCurrentDispatcher,ye;function ie(e,i,s){{if(ye===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ye=l&&l[1]||""}return`
`+ye+e}}var be=!1,oe;{var dt=typeof WeakMap=="function"?WeakMap:Map;oe=new dt}function ke(e,i){if(!e||be)return"";{var s=oe.get(e);if(s!==void 0)return s}var l;be=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var C;C=he.current,he.current=null,lt();try{if(i){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(F){l=F}Reflect.construct(e,[],y)}else{try{y.call()}catch(F){l=F}e.call(y.prototype)}}else{try{throw Error()}catch(F){l=F}e()}}catch(F){if(F&&l&&typeof F.stack=="string"){for(var m=F.stack.split(`
`),P=l.stack.split(`
`),T=m.length-1,O=P.length-1;T>=1&&O>=0&&m[T]!==P[O];)O--;for(;T>=1&&O>=0;T--,O--)if(m[T]!==P[O]){if(T!==1||O!==1)do if(T--,O--,O<0||m[T]!==P[O]){var D=`
`+m[T].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&ae.set(e,D),D}while(T>=1&&O>=0);break}}}finally{Ee=!1,ye.current=C,dt(),Error.prepareStackTrace=p}var q=e?e.displayName||e.name:"",Y=q?oe(q):"";return typeof e=="function"&&ae.set(e,Y),Y}function vt(e,i,s){return Ie(e,!1)}function mt(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function se(e,i,s){if(e==null)return"";if(typeof e=="function")return Ie(e,mt(e));if(typeof e=="string")return oe(e);switch(e){case w:return oe("Suspense");case d:return oe("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return vt(e.render);case v:return se(e.type,i,s);case x:{var l=e,p=l._payload,C=l._init;try{return se(C(p),i,s)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,$e={},We=k.ReactDebugCurrentFrame;function ue(e){if(e){var i=e._owner,s=se(e.type,e._source,i?i.type:null);We.setExtraStackFrame(s)}else We.setExtraStackFrame(null)}function ht(e,i,s,l,p){{var C=Function.call.bind(G);for(var y in e)if(C(e,y)){var m=void 0;try{if(typeof e[y]!="function"){var P=Error((l||"React class")+": "+s+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}m=e[y](i,y,l,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){m=T}m&&!(m instanceof Error)&&(ue(p),j("%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).",l||"React class",s,y,typeof m),ue(null)),m instanceof Error&&!(m.message in $e)&&($e[m.message]=!0,ue(p),j("Failed %s type: %s",s,m.message),ue(null))}}}var yt=Array.isArray;function we(e){return yt(e)}function bt(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,s=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Et(e){try{return Me(e),!1}catch{return!0}}function Me(e){return""+e}function Ye(e){if(Et(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",bt(e)),Me(e)}var Z=k.ReactCurrentOwner,wt={key:!0,ref:!0,__self:!0,__source:!0},Le,Ue,Re;Re={};function Rt(e){if(G.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function pt(e){if(G.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function xt(e,i){if(typeof e.ref=="string"&&Z.current&&i&&Z.current.stateNode!==i){var s=F(Z.current.type);Re[s]||(j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',F(Z.current.type),e.ref),Re[s]=!0)}}function Ct(e,i){{var s=function(){Le||(Le=!0,j("%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)",i))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function _t(e,i){{var s=function(){Ue||(Ue=!0,j("%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)",i))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var jt=function(e,i,s,l,p,C,y){var m={$$typeof:o,type:e,key:i,ref:s,props:y,_owner:C};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function St(e,i,s,l,p){{var C,y={},m=null,P=null;s!==void 0&&(Ye(s),m=""+s),pt(i)&&(Ye(i.key),m=""+i.key),Rt(i)&&(P=i.ref,xt(i,p));for(C in i)G.call(i,C)&&!wt.hasOwnProperty(C)&&(y[C]=i[C]);if(e&&e.defaultProps){var T=e.defaultProps;for(C in T)y[C]===void 0&&(y[C]=T[C])}if(m||P){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&Ct(y,O),P&&_t(y,O)}return jt(e,m,P,p,l,Z.current,y)}}var pe=k.ReactCurrentOwner,Ve=k.ReactDebugCurrentFrame;function B(e){if(e){var i=e._owner,s=se(e.type,e._source,i?i.type:null);Ve.setExtraStackFrame(s)}else Ve.setExtraStackFrame(null)}var xe;xe=!1;function Ce(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ne(){{if(pe.current){var e=F(pe.current.type);if(e)return`
`+m[T].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&oe.set(e,D),D}while(T>=1&&O>=0);break}}}finally{be=!1,he.current=C,ft(),Error.prepareStackTrace=p}var q=e?e.displayName||e.name:"",Y=q?ie(q):"";return typeof e=="function"&&oe.set(e,Y),Y}function gt(e,i,s){return ke(e,!1)}function vt(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function ae(e,i,s){if(e==null)return"";if(typeof e=="function")return ke(e,vt(e));if(typeof e=="string")return ie(e);switch(e){case w:return ie("Suspense");case d:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case g:return gt(e.render);case v:return ae(e.type,i,s);case x:{var l=e,p=l._payload,C=l._init;try{return ae(C(p),i,s)}catch{}}}return""}var G=Object.prototype.hasOwnProperty,De={},Ie=A.ReactDebugCurrentFrame;function se(e){if(e){var i=e._owner,s=ae(e.type,e._source,i?i.type:null);Ie.setExtraStackFrame(s)}else Ie.setExtraStackFrame(null)}function mt(e,i,s,l,p){{var C=Function.call.bind(G);for(var y in e)if(C(e,y)){var m=void 0;try{if(typeof e[y]!="function"){var P=Error((l||"React class")+": "+s+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw P.name="Invariant Violation",P}m=e[y](i,y,l,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(T){m=T}m&&!(m instanceof Error)&&(se(p),j("%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).",l||"React class",s,y,typeof m),se(null)),m instanceof Error&&!(m.message in De)&&(De[m.message]=!0,se(p),j("Failed %s type: %s",s,m.message),se(null))}}}var ht=Array.isArray;function Ee(e){return ht(e)}function yt(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,s=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function bt(e){try{return $e(e),!1}catch{return!0}}function $e(e){return""+e}function We(e){if(bt(e))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),$e(e)}var Me=A.ReactCurrentOwner,Et={key:!0,ref:!0,__self:!0,__source:!0},Ye,Le;function wt(e){if(G.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function Rt(e){if(G.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function pt(e,i){typeof e.ref=="string"&&Me.current}function xt(e,i){{var s=function(){Ye||(Ye=!0,j("%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)",i))};s.isReactWarning=!0,Object.defineProperty(e,"key",{get:s,configurable:!0})}}function Ct(e,i){{var s=function(){Le||(Le=!0,j("%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)",i))};s.isReactWarning=!0,Object.defineProperty(e,"ref",{get:s,configurable:!0})}}var _t=function(e,i,s,l,p,C,y){var m={$$typeof:o,type:e,key:i,ref:s,props:y,_owner:C};return m._store={},Object.defineProperty(m._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(m,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(m,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(m.props),Object.freeze(m)),m};function jt(e,i,s,l,p){{var C,y={},m=null,P=null;s!==void 0&&(We(s),m=""+s),Rt(i)&&(We(i.key),m=""+i.key),wt(i)&&(P=i.ref,pt(i,p));for(C in i)G.call(i,C)&&!Et.hasOwnProperty(C)&&(y[C]=i[C]);if(e&&e.defaultProps){var T=e.defaultProps;for(C in T)y[C]===void 0&&(y[C]=T[C])}if(m||P){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;m&&xt(y,O),P&&Ct(y,O)}return _t(e,m,P,p,l,Me.current,y)}}var we=A.ReactCurrentOwner,Ue=A.ReactDebugCurrentFrame;function B(e){if(e){var i=e._owner,s=ae(e.type,e._source,i?i.type:null);Ue.setExtraStackFrame(s)}else Ue.setExtraStackFrame(null)}var Re;Re=!1;function pe(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ve(){{if(we.current){var e=k(we.current.type);if(e)return`
Check the render method of \``+e+"`."}return""}}function Tt(e){return""}var He={};function Ot(e){{var i=Ne();if(!i){var s=typeof e=="string"?e:e.displayName||e.name;s&&(i=`
Check the render method of \``+e+"`."}return""}}function St(e){return""}var Ne={};function Tt(e){{var i=Ve();if(!i){var s=typeof e=="string"?e:e.displayName||e.name;s&&(i=`
Check the top-level render call using <`+s+">.")}return i}}function Be(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Ot(i);if(He[s])return;He[s]=!0;var l="";e&&e._owner&&e._owner!==pe.current&&(l=" It was passed a child from "+F(e._owner.type)+"."),B(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,l),B(null)}}function qe(e,i){{if(typeof e!="object")return;if(we(e))for(var s=0;s<e.length;s++){var l=e[s];Ce(l)&&Be(l,i)}else if(Ce(e))e._store&&(e._store.validated=!0);else if(e){var p=$(e);if(typeof p=="function"&&p!==e.entries)for(var C=p.call(e),y;!(y=C.next()).done;)Ce(y.value)&&Be(y.value,i)}}}function Pt(e){{var i=e.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===g||i.$$typeof===v))s=i.propTypes;else return;if(s){var l=F(i);ht(s,e.props,"prop",l,e)}else if(i.PropTypes!==void 0&&!xe){xe=!0;var p=F(i);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ft(e){{for(var i=Object.keys(e.props),s=0;s<i.length;s++){var l=i[s];if(l!=="children"&&l!=="key"){B(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),B(null);break}}e.ref!==null&&(B(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),B(null))}}var ze={};function Xe(e,i,s,l,p,C){{var y=J(e);if(!y){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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 P=Tt();P?m+=P:m+=Ne();var T;e===null?T="null":we(e)?T="array":e!==void 0&&e.$$typeof===o?(T="<"+(F(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,m)}var O=St(e,i,s,p,C);if(O==null)return O;if(y){var D=i.children;if(D!==void 0)if(l)if(we(D)){for(var q=0;q<D.length;q++)qe(D[q],e);Object.freeze&&Object.freeze(D)}else j("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 qe(D,e)}if(G.call(i,"key")){var Y=F(e),A=Object.keys(i).filter(function(Wt){return Wt!=="key"}),_e=A.length>0?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}";if(!ze[Y+_e]){var $t=A.length>0?"{"+A.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
Check the top-level render call using <`+s+">.")}return i}}function He(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var s=Tt(i);if(Ne[s])return;Ne[s]=!0;var l="";e&&e._owner&&e._owner!==we.current&&(l=" It was passed a child from "+k(e._owner.type)+"."),B(e),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',s,l),B(null)}}function Be(e,i){{if(typeof e!="object")return;if(Ee(e))for(var s=0;s<e.length;s++){var l=e[s];pe(l)&&He(l,i)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var p=$(e);if(typeof p=="function"&&p!==e.entries)for(var C=p.call(e),y;!(y=C.next()).done;)pe(y.value)&&He(y.value,i)}}}function Ot(e){{var i=e.type;if(i==null||typeof i=="string")return;var s;if(typeof i=="function")s=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===g||i.$$typeof===v))s=i.propTypes;else return;if(s){var l=k(i);mt(s,e.props,"prop",l,e)}else if(i.PropTypes!==void 0&&!Re){Re=!0;var p=k(i);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pt(e){{for(var i=Object.keys(e.props),s=0;s<i.length;s++){var l=i[s];if(l!=="children"&&l!=="key"){B(e),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),B(null);break}}e.ref!==null&&(B(e),j("Invalid attribute `ref` supplied to `React.Fragment`."),B(null))}}var qe={};function ze(e,i,s,l,p,C){{var y=J(e);if(!y){var m="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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 P=St();P?m+=P:m+=Ve();var T;e===null?T="null":Ee(e)?T="array":e!==void 0&&e.$$typeof===o?(T="<"+(k(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):T=typeof e,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",T,m)}var O=jt(e,i,s,p,C);if(O==null)return O;if(y){var D=i.children;if(D!==void 0)if(l)if(Ee(D)){for(var q=0;q<D.length;q++)Be(D[q],e);Object.freeze&&Object.freeze(D)}else j("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 Be(D,e)}if(G.call(i,"key")){var Y=k(e),F=Object.keys(i).filter(function($t){return $t!=="key"}),xe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[Y+xe]){var It=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
let props = %s;

@@ -32,3 +32,3 @@ <%s {...props} />

let props = %s;
<%s key={someKey} {...props} />`,_e,Y,$t,Y),ze[Y+_e]=!0}}return e===r?Ft(O):Pt(O),O}}function At(e,i,s){return Xe(e,i,s,!0)}function kt(e,i,s){return Xe(e,i,s,!1)}var Dt=kt,It=At;ee.Fragment=r,ee.jsx=Dt,ee.jsxs=It}()),ee}process.env.NODE_ENV==="production"?Oe.exports=Lt():Oe.exports=Ut();var b=Oe.exports;function Vt(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ge(t,o){const n=Vt(t);return Math.round(o*n)/n}class Nt{constructor(){je(this,"current",this.detect());je(this,"currentId",0)}set(o){this.current!==o&&(this.currentId=0,this.current=o)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}const te=new Nt,et=(t,o)=>{te.isServer?a.useEffect(t,o):a.useLayoutEffect(t,o)},Te={serverHandoffComplete:!1};function Ht(){const[t,o]=a.useState(Te.serverHandoffComplete);return a.useEffect(()=>{t!==!0&&o(!0)},[t]),a.useEffect(()=>{Te.serverHandoffComplete===!1&&(Te.serverHandoffComplete=!0)},[]),t}const Bt=a.useId??function(){const o=Ht(),[n,r]=a.useState(o?()=>te.nextId():null);return et(()=>{n===null&&r(te.nextId())},[n]),n!=null?`${n}`:void 0};function qt(t,o,n,r){a.useEffect(()=>{const u=[];(typeof r.offset=="number"||typeof r.offset=="object"||typeof r.offset=="function")&&u.push(z.offset(r.offset)),(r.flip===!0||typeof r.flip=="number"||typeof r.flip=="object")&&u.push(z.flip({padding:typeof r.flip=="number"?r.flip:void 0,...typeof r.flip=="object"?r.flip:{}})),(r.shift===!0||typeof r.shift=="number"||typeof r.shift=="object")&&u.push(z.shift({padding:typeof r.shift=="number"?r.shift:void 0,...typeof r.shift=="object"?r.shift:{}})),(r.autoPlacement===!0||typeof r.autoPlacement=="object")&&u.push(z.autoPlacement(typeof r.autoPlacement=="object"?r.autoPlacement:void 0)),u.push(...typeof r.middleware=="function"?r.middleware({referenceEl:o.reference,floatingEl:o.floating}):r.middleware||[]),(r.arrow===!0||typeof r.arrow=="number")&&u.push(Qe.arrow({element:n,padding:r.arrow===!0?0:r.arrow})),(r.hide===!0||typeof r.hide=="object"||Array.isArray(r.hide))&&(Array.isArray(r.hide)?r.hide:[r.hide]).forEach(f=>{u.push(z.hide(typeof f=="object"?f:void 0))}),t(u)},[r.offset,r.shift,r.flip,r.arrow,r.autoPlacement,r.hide,r.middleware])}function zt(t,o,n){a.useEffect(()=>{if(t&&te.isClient&&typeof ResizeObserver<"u"&&o.current&&o.current instanceof Element){const r=new ResizeObserver(([u])=>{const f=u.borderBoxSize.reduce((c,{inlineSize:h})=>c+h,0);n(f)});return r.observe(o.current),()=>{r.disconnect(),n(null)}}},[])}const Xt=["origin-bottom","origin-top","origin-right","origin-left","origin-bottom-left","origin-bottom-right","origin-top-left","origin-top-right"],tt=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"origin-right";case"right":return"origin-left";case"top-start":case"right-end":return"origin-bottom-left";case"top-end":case"left-end":return"origin-bottom-right";case"right-start":case"bottom-start":return"origin-top-left";case"left-start":case"bottom-end":return"origin-top-right";default:return"origin-center"}},Jt=["origin-bottom","origin-top","ltr:origin-right rtl:origin-left","ltr:origin-left rtl:origin-right","ltr:origin-bottom-left rtl:origin-bottom-right","ltr:origin-bottom-right rtl:origin-bottom-left","ltr:origin-top-left rtl:origin-top-right","ltr:origin-top-right rtl:origin-top-left"],Kt=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"ltr:origin-right rtl:origin-left";case"right":return"ltr:origin-left rtl:origin-right";case"top-start":case"right-end":return"ltr:origin-bottom-left rtl:origin-bottom-right";case"top-end":case"left-end":return"ltr:origin-bottom-right rtl:origin-bottom-left";case"right-start":case"bottom-start":return"ltr:origin-top-left rtl:origin-top-right";case"left-start":case"bottom-end":return"ltr:origin-top-right rtl:origin-top-left";default:return"origin-center"}};function Gt(t,o){return a.useMemo(()=>typeof t.originClass=="function"?t.originClass(o):typeof t.originClass=="string"?t.originClass:t.tailwindcssOriginClass?tt(o):"",[o,t.originClass,t.tailwindcssOriginClass])}function rt(t,o,...n){if(t in o){const u=o[t];return typeof u=="function"?u(...n):u}const r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(u=>`"${u}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,rt),r}function nt(t){return te.isServer?null:t instanceof Node?t.ownerDocument:t&&Object.prototype.hasOwnProperty.call(t,"current")&&t.current instanceof Node?t.current.ownerDocument:document}const Ze=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?t=>`${t}:not([tabindex='-1']):not([style*='display: none'])`:t=>`${t}:not([tabindex='-1'])`).join(",");var it=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(it||{});function Zt(t,o=0){var n;return t===((n=nt(t))==null?void 0:n.body)?!1:rt(o,{0(){return t.matches(Ze)},1(){let r=t;for(;r!==null;){if(r.matches(Ze))return!0;r=r.parentElement}return!1}})}function Qt(t){const o=a.useRef(t);return et(()=>{o.current=t},[t]),o}function I(t,o,n){const r=Qt(o);a.useEffect(()=>{function u(f){r.current(f)}return document.addEventListener(t,u,n),()=>document.removeEventListener(t,u,n)},[t,n])}function ot(t,o,n=!0){const r=a.useRef(!1);a.useEffect(process.env.NODE_ENV==="test"?()=>{r.current=n}:()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function u(c,h){if(!r.current||c.defaultPrevented)return;const g=function d(v){return typeof v=="function"?d(v()):Array.isArray(v)||v instanceof Set?v:[v]}(t),w=h(c);if(w!==null&&w.getRootNode().contains(w)){for(const d of g){if(d===null)continue;const v=d instanceof HTMLElement?d:d.current;if(v!=null&&v.contains(w)||c.composed&&c.composedPath().includes(v))return}return!Zt(w,it.Loose)&&w.tabIndex!==-1&&c.preventDefault(),o(c,w)}}const f=a.useRef(null);I("mousedown",c=>{var h,g;r.current&&(f.current=((g=(h=c.composedPath)==null?void 0:h.call(c))==null?void 0:g[0])||c.target)},!0),I("click",c=>{f.current&&(u(c,()=>f.current),f.current=null)},!0),I("blur",c=>u(c,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}const ce=new Map,Pe=a.createContext(null);Pe.displayName="ReferenceContext";const Fe=a.createContext(null);Fe.displayName="FloatingContext";const re=a.createContext(null);re.displayName="ArrowContext";function at(t){const o=a.useContext(Pe);if(o===null){const n=new Error(`<${t} /> is missing a parent <Float /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,at),n}return o}function st(t){const o=a.useContext(Fe);if(o===null){const n=new Error(`<${t} /> is missing a parent <Float /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,st),n}return o}function ut(t){const o=a.useContext(re);if(o===null){const n=new Error(`<${t} /> is missing a parent <Float /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ut),n}return o}function Ae(t,o,{key:n,...r},u){const{referenceRef:f}=u,c=o;if(c.as===a.Fragment)return b.jsx(t.type,{...t.props,...r,ref:f},n);const h=c.as||"div";return b.jsx(h,{...r,ref:f,children:b.jsx(t.type,{...t.props})},n)}function le(t,o,{key:n,...r},u){const{floatingRef:f,props:c,mounted:h,setShow:g,referenceHidden:w,escaped:d,placement:v,floatingStyles:x,referenceElWidth:E}=u,R={...c,...o},_=Gt(R,v),$={show:h.current?R.show:!1,unmount:t.props.unmount===!1?!1:void 0,enter:`${R.enter||""} ${_}`,enterFrom:`${R.enterFrom||""}`,enterTo:`${R.enterTo||""}`,leave:`${R.leave||""} ${_}`,leaveFrom:`${R.leaveFrom||""}`,leaveTo:`${R.leaveTo||""}`,beforeEnter:()=>{g(!0)},afterLeave:()=>{g(!1)}},k={className:[w?R.referenceHiddenClass:void 0,d?R.escapedClass:void 0].filter(S=>!!S).join(" "),style:{...x,zIndex:R.zIndex||9999}};if(R.adaptiveWidth&&typeof E=="number"){const S={attribute:"width",...typeof R.adaptiveWidth=="object"?R.adaptiveWidth:{}};k.style[S.attribute]=`${E}px`}function j(S){return R.portal?h.current?b.jsx(Se.Portal,{children:S}):b.jsx(a.Fragment,{}):S}function L(S){const W={...k,...r,ref:f};if(S.type===a.Fragment)return b.jsx(a.Fragment,{});if(R.as===a.Fragment)return b.jsx(S.type,{...S.props,...W},n);const V=R.as||"div";return b.jsx(V,{...W,children:b.jsx(S.type,{...S.props})},n)}function U(){return h.current?R.transitionChild?b.jsx(Se.Transition.Child,{as:a.Fragment,...$,children:b.jsx(t.type,{...t.props})}):b.jsx(Se.Transition,{as:a.Fragment,...$,children:b.jsx(t.type,{...t.props})}):b.jsx(a.Fragment,{})}return j(L(U()))}function ct([t,o],n){var J,K;const r=Bt(),u=a.useRef(!1),[f,c]=a.useState(),[h,g]=a.useState(void 0),[w,d]=a.useState(void 0),v=a.useRef(null),x=a.useMemo(()=>({show:n.onShow||(()=>{}),hide:n.onHide||(()=>{}),update:n.onUpdate||(()=>{})}),[n.onShow,n.onHide,n.onUpdate]),{placement:E,update:R,refs:_,floatingStyles:$,isPositioned:k,middlewareData:j}=Qe.useFloating({placement:n.placement||"bottom-start",strategy:n.strategy,middleware:f,transform:n.dialog?!1:n.transform??!1}),[L,U]=a.useState(null);a.useEffect(()=>{u.current=!0},[]),a.useEffect(()=>{t&&!ce.get(r)?(ce.set(r,!0),x.show()):!t&&ce.get(r)&&(ce.delete(r),x.hide())},[t]);const S=a.useCallback(()=>{R(),x.update()},[R,x]);a.useEffect(S,[n.placement,n.strategy,f]),qt(c,_,v,n),a.useEffect(()=>{var N,F;(n.hide===!0||typeof n.hide=="object"||Array.isArray(n.hide))&&(g(((N=j.hide)==null?void 0:N.referenceHidden)||!k),d((F=j.hide)==null?void 0:F.escaped))},[j,n.hide,k]),zt(!!n.adaptiveWidth,_.reference,U),a.useEffect(()=>{if(_.reference.current&&_.floating.current&&t)return n.autoUpdate!==!1?z.autoUpdate(_.reference.current,_.floating.current,S,typeof n.autoUpdate=="object"?n.autoUpdate:void 0):()=>{}},[t,S,_]);const W=a.useRef(!0);a.useEffect(()=>{!(_.reference.current instanceof Element)&&_.reference.current&&_.floating.current&&W.current&&(W.current=!1,S(),window.requestAnimationFrame(()=>{W.current=!0,S()}))},[_]);const V={referenceRef:_.setReference,placement:E},ne={floatingRef:_.setFloating,props:n,mounted:u,setShow:o,referenceHidden:h,escaped:w,placement:E,floatingStyles:$,referenceElWidth:L},X={arrowRef:v,placement:E,x:(J=j.arrow)==null?void 0:J.x,y:(K=j.arrow)==null?void 0:K.y};return{referenceApi:V,floatingApi:ne,arrowApi:X,placement:E,update:S,refs:_,middlewareData:j}}const lt=a.forwardRef((t,o)=>{const[n,r]=a.useState(t.show??!1),{referenceApi:u,floatingApi:f,arrowApi:c,placement:h}=ct([n,r],t),g={placement:h},[w,d]=typeof t.children=="function"?t.children(g):t.children;if(!a.isValidElement(w))return console.warn("<Float /> is missing a reference and floating element."),b.jsx(a.Fragment,{});function v(R){if(t.as===a.Fragment||!t.as)return b.jsx(a.Fragment,{children:R});const _=t.as;return b.jsx(_,{ref:o,className:t.className,children:R})}if(t.composable||t.dialog)return v(b.jsx(Pe.Provider,{value:u,children:b.jsx(Fe.Provider,{value:f,children:b.jsx(re.Provider,{value:c,children:typeof t.children=="function"?t.children(g):t.children})})},"FloatingNode"));const x=Ae(w,{as:a.Fragment},{key:"reference-node"},u),E=le(d,{as:t.floatingAs||"div"},{},f);return v([x,b.jsx(re.Provider,{value:c,children:E},"floating-node")])});lt.displayName="Float";function er(t){if(!t.children)return b.jsx(a.Fragment,{});const o=a.useMemo(()=>{const{as:f,children:c,...h}=t;return h},[t]),n=at("Float.Reference"),{placement:r}=n,u={placement:r};return Ae(typeof t.children=="function"?t.children(u):t.children,{...t,as:t.as||a.Fragment},o,n)}function tr(t){if(!t.children)return b.jsx(a.Fragment,{});const o=a.useMemo(()=>{const{as:f,enter:c,enterFrom:h,enterTo:g,leave:w,leaveFrom:d,leaveTo:v,originClass:x,tailwindcssOriginClass:E,transitionChild:R,children:_,...$}=t;return $},[t]),n=st("Float.Content"),{placement:r}=n,u={placement:r};return le(typeof t.children=="function"?t.children(u):t.children,{...t,as:t.as||"div"},o,n)}function rr(t){const{arrowRef:o,placement:n,x:r,y:u}=ut("Float.Arrow"),f=a.useMemo(()=>{const{as:w,offset:d,children:v,...x}=t;return x},[t]),c={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],h={left:o.current&&typeof r=="number"?`${Ge(o.current,r)}px`:void 0,top:o.current&&typeof u=="number"?`${Ge(o.current,u)}px`:void 0,right:void 0,bottom:void 0,[c]:`${(t.offset??4)*-1}px`,...f.style};if(t.as===a.Fragment){const w={placement:n},d=typeof t.children=="function"?t.children(w):t.children;return!d||!a.isValidElement(d)?b.jsx(a.Fragment,{}):b.jsx(d.type,{...d.props,ref:o,style:h})}const g=t.as||"div";return b.jsx(g,{ref:o,...f,style:h,children:t.children})}function ke({onInitial:t,children:o,...n}){const[r,u]=a.useState(n.show??!1),f=a.useMemo(()=>{const{as:E,show:R,placement:_,strategy:$,offset:k,shift:j,flip:L,arrow:U,autoPlacement:S,autoUpdate:W,zIndex:V,enter:ne,enterFrom:X,enterTo:J,leave:K,leaveFrom:N,leaveTo:F,originClass:M,tailwindcssOriginClass:H,portal:fe,transform:de,middleware:ge,onShow:ve,onHide:me,onUpdate:he,...ie}=n;return ie},[n]),{floatingApi:c,arrowApi:h,placement:g,refs:w}=ct([r,u],n);a.useEffect(()=>{u(n.show??!1)},[n.show]);function d(){r&&u(!1)}if(t({show:r,setShow:u,placement:g,refs:w}),!o)return b.jsx(a.Fragment,{});const x=le(typeof o=="function"?o({placement:g,close:d}):o,{...n,as:n.as||a.Fragment,show:r},f,c);return b.jsx(re.Provider,{value:h,children:x})}function nr(t){const[o,n]=a.useState(!1);function r({setShow:u,refs:f}){I("contextmenu",c=>{c.preventDefault(),f.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:c.clientX,y:c.clientY,top:c.clientY,left:c.clientX,right:c.clientX,bottom:c.clientY}}}),u(!0)}),ot(f.floating,()=>{u(!1)})}return a.useEffect(()=>(n(!0),()=>{n(!1)}),[]),o?b.jsx(ke,{flip:!0,...t,show:!1,portal:!0,onInitial:r}):b.jsx(a.Fragment,{})}function ir({globalHideCursor:t,...o}){const[n,r]=a.useState(!1);function u({setShow:f,refs:c}){function h(){f(!0)}function g(){f(!1)}function w(E){c.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:E.clientX,y:E.clientY,top:E.clientY,left:E.clientX,right:E.clientX,bottom:E.clientY}}})}function d(E){h(),w(E)}function v(E){h(),w(E.touches[0])}const x=nt(c.floating);x&&(a.useEffect(()=>{if((t||t===void 0)&&!x.getElementById("headlesui-float-cursor-style")){const E=x.createElement("style");return(x.head||x.getElementsByTagName("head")[0]).appendChild(E),E.id="headlesui-float-cursor-style",E.appendChild(x.createTextNode(["*, *::before, *::after {"," cursor: none !important;","}",".headlesui-float-cursor-root {"," pointer-events: none !important;","}"].join(`
`))),()=>{var _;return(_=x.getElementById("headlesui-float-cursor-style"))==null?void 0:_.remove()}}},[t]),"ontouchstart"in window||navigator.maxTouchPoints>0?(I("touchstart",v),I("touchend",g),I("touchmove",v)):(I("mouseenter",d),I("mouseleave",g),I("mousemove",d)))}return a.useEffect(()=>(r(!0),()=>{r(!1)}),[]),n?b.jsx(ke,{...o,portal:!0,className:"headlesui-float-cursor-root",onInitial:u}):b.jsx(a.Fragment,{})}const or=Object.assign(lt,{Reference:er,Content:tr,Arrow:rr,Virtual:ke,ContextMenu:nr,Cursor:ir});exports.Float=or;exports.renderFloatingElement=le;exports.renderReferenceElement=Ae;exports.tailwindcssOriginClassResolver=tt;exports.tailwindcssOriginSafelist=Xt;exports.tailwindcssRtlOriginClassResolver=Kt;exports.tailwindcssRtlOriginSafelist=Jt;exports.useOutsideClick=ot;
<%s key={someKey} {...props} />`,xe,Y,It,Y),qe[Y+xe]=!0}}return e===r?Pt(O):Ot(O),O}}function Ft(e,i,s){return ze(e,i,s,!0)}function At(e,i,s){return ze(e,i,s,!1)}var kt=At,Dt=Ft;Q.Fragment=r,Q.jsx=kt,Q.jsxs=Dt}()),Q}process.env.NODE_ENV==="production"?Se.exports=Yt():Se.exports=Lt();var b=Se.exports;function Ut(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Ke(t,o){const n=Ut(t);return Math.round(o*n)/n}class Vt{constructor(){Ce(this,"current",this.detect());Ce(this,"currentId",0)}set(o){this.current!==o&&(this.currentId=0,this.current=o)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}}const ee=new Vt,Qe=(t,o)=>{ee.isServer?a.useEffect(t,o):a.useLayoutEffect(t,o)},je={serverHandoffComplete:!1};function Nt(){const[t,o]=a.useState(je.serverHandoffComplete);return a.useEffect(()=>{t!==!0&&o(!0)},[t]),a.useEffect(()=>{je.serverHandoffComplete===!1&&(je.serverHandoffComplete=!0)},[]),t}const Ht=a.useId??function(){const o=Nt(),[n,r]=a.useState(o?()=>ee.nextId():null);return Qe(()=>{n===null&&r(ee.nextId())},[n]),n!=null?`${n}`:void 0};function Bt(t,o,n,r){a.useEffect(()=>{const u=[];(typeof r.offset=="number"||typeof r.offset=="object"||typeof r.offset=="function")&&u.push(z.offset(r.offset)),(r.flip===!0||typeof r.flip=="number"||typeof r.flip=="object")&&u.push(z.flip({padding:typeof r.flip=="number"?r.flip:void 0,...typeof r.flip=="object"?r.flip:{}})),(r.shift===!0||typeof r.shift=="number"||typeof r.shift=="object")&&u.push(z.shift({padding:typeof r.shift=="number"?r.shift:void 0,...typeof r.shift=="object"?r.shift:{}})),(r.autoPlacement===!0||typeof r.autoPlacement=="object")&&u.push(z.autoPlacement(typeof r.autoPlacement=="object"?r.autoPlacement:void 0)),u.push(...typeof r.middleware=="function"?r.middleware({referenceEl:o.reference,floatingEl:o.floating}):r.middleware||[]),(r.arrow===!0||typeof r.arrow=="number")&&u.push(Ze.arrow({element:n,padding:r.arrow===!0?0:r.arrow})),(r.hide===!0||typeof r.hide=="object"||Array.isArray(r.hide))&&(Array.isArray(r.hide)?r.hide:[r.hide]).forEach(f=>{u.push(z.hide(typeof f=="object"?f:void 0))}),t(u)},[r.offset,r.shift,r.flip,r.arrow,r.autoPlacement,r.hide,r.middleware])}function qt(t,o,n){a.useEffect(()=>{if(t&&ee.isClient&&typeof ResizeObserver<"u"&&o.current&&o.current instanceof Element){const r=new ResizeObserver(([u])=>{const f=u.borderBoxSize.reduce((c,{inlineSize:h})=>c+h,0);n(f)});return r.observe(o.current),()=>{r.disconnect(),n(null)}}},[])}const zt=["origin-bottom","origin-top","origin-right","origin-left","origin-bottom-left","origin-bottom-right","origin-top-left","origin-top-right"],et=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"origin-right";case"right":return"origin-left";case"top-start":case"right-end":return"origin-bottom-left";case"top-end":case"left-end":return"origin-bottom-right";case"right-start":case"bottom-start":return"origin-top-left";case"left-start":case"bottom-end":return"origin-top-right";default:return"origin-center"}},Xt=["origin-bottom","origin-top","ltr:origin-right rtl:origin-left","ltr:origin-left rtl:origin-right","ltr:origin-bottom-left rtl:origin-bottom-right","ltr:origin-bottom-right rtl:origin-bottom-left","ltr:origin-top-left rtl:origin-top-right","ltr:origin-top-right rtl:origin-top-left"],Jt=t=>{switch(t){case"top":return"origin-bottom";case"bottom":return"origin-top";case"left":return"ltr:origin-right rtl:origin-left";case"right":return"ltr:origin-left rtl:origin-right";case"top-start":case"right-end":return"ltr:origin-bottom-left rtl:origin-bottom-right";case"top-end":case"left-end":return"ltr:origin-bottom-right rtl:origin-bottom-left";case"right-start":case"bottom-start":return"ltr:origin-top-left rtl:origin-top-right";case"left-start":case"bottom-end":return"ltr:origin-top-right rtl:origin-top-left";default:return"origin-center"}};function Kt(t,o){return a.useMemo(()=>typeof t.originClass=="function"?t.originClass(o):typeof t.originClass=="string"?t.originClass:t.tailwindcssOriginClass?et(o):"",[o,t.originClass,t.tailwindcssOriginClass])}function tt(t,o,...n){if(t in o){const u=o[t];return typeof u=="function"?u(...n):u}const r=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(o).map(u=>`"${u}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,tt),r}function rt(t){return ee.isServer?null:t instanceof Node?t.ownerDocument:t&&Object.prototype.hasOwnProperty.call(t,"current")&&t.current instanceof Node?t.current.ownerDocument:document}const Ge=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(process.env.NODE_ENV==="test"?t=>`${t}:not([tabindex='-1']):not([style*='display: none'])`:t=>`${t}:not([tabindex='-1'])`).join(",");var nt=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(nt||{});function Gt(t,o=0){var n;return t===((n=rt(t))==null?void 0:n.body)?!1:tt(o,{0(){return t.matches(Ge)},1(){let r=t;for(;r!==null;){if(r.matches(Ge))return!0;r=r.parentElement}return!1}})}function Zt(t){const o=a.useRef(t);return Qe(()=>{o.current=t},[t]),o}function I(t,o,n){const r=Zt(o);a.useEffect(()=>{function u(f){r.current(f)}return document.addEventListener(t,u,n),()=>document.removeEventListener(t,u,n)},[t,n])}function it(t,o,n=!0){const r=a.useRef(!1);a.useEffect(process.env.NODE_ENV==="test"?()=>{r.current=n}:()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function u(c,h){if(!r.current||c.defaultPrevented)return;const g=function d(v){return typeof v=="function"?d(v()):Array.isArray(v)||v instanceof Set?v:[v]}(t),w=h(c);if(w!==null&&w.getRootNode().contains(w)){for(const d of g){if(d===null)continue;const v=d instanceof HTMLElement?d:d.current;if(v!=null&&v.contains(w)||c.composed&&c.composedPath().includes(v))return}return!Gt(w,nt.Loose)&&w.tabIndex!==-1&&c.preventDefault(),o(c,w)}}const f=a.useRef(null);I("mousedown",c=>{var h,g;r.current&&(f.current=((g=(h=c.composedPath)==null?void 0:h.call(c))==null?void 0:g[0])||c.target)},!0),I("click",c=>{f.current&&(u(c,()=>f.current),f.current=null)},!0),I("blur",c=>u(c,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}const ue=new Map,Te=a.createContext(null);Te.displayName="ReferenceContext";const Oe=a.createContext(null);Oe.displayName="FloatingContext";const te=a.createContext(null);te.displayName="ArrowContext";function ot(t){const o=a.useContext(Te);if(o===null){const n=new Error(`<${t} /> is missing a parent <Float /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ot),n}return o}function at(t){const o=a.useContext(Oe);if(o===null){const n=new Error(`<${t} /> is missing a parent <Float /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,at),n}return o}function st(t){const o=a.useContext(te);if(o===null){const n=new Error(`<${t} /> is missing a parent <Float /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,st),n}return o}function Pe(t,o,{key:n,...r},u){const{referenceRef:f}=u,c=o;if(c.as===a.Fragment)return b.jsx(t.type,{...t.props,...r,ref:f},n);const h=c.as||"div";return b.jsx(h,{...r,ref:f,children:b.jsx(t.type,{...t.props})},n)}function ce(t,o,{key:n,...r},u){const{floatingRef:f,props:c,mounted:h,setShow:g,referenceHidden:w,escaped:d,placement:v,floatingStyles:x,referenceElWidth:E}=u,R={...c,...o},_=Kt(R,v),$={show:h.current?R.show:!1,unmount:t.props.unmount===!1?!1:void 0,enter:`${R.enter||""} ${_}`,enterFrom:`${R.enterFrom||""}`,enterTo:`${R.enterTo||""}`,leave:`${R.leave||""} ${_}`,leaveFrom:`${R.leaveFrom||""}`,leaveTo:`${R.leaveTo||""}`,beforeEnter:()=>{g(!0)},afterLeave:()=>{g(!1)}},A={className:[w?R.referenceHiddenClass:void 0,d?R.escapedClass:void 0].filter(S=>!!S).join(" "),style:{...x,zIndex:R.zIndex||9999}};if(R.adaptiveWidth&&typeof E=="number"){const S={attribute:"width",...typeof R.adaptiveWidth=="object"?R.adaptiveWidth:{}};A.style[S.attribute]=`${E}px`}function j(S){return R.portal?h.current?b.jsx(_e.Portal,{children:S}):b.jsx(a.Fragment,{}):S}function L(S){const W={...A,...r,ref:f};if(S.type===a.Fragment)return b.jsx(a.Fragment,{});if(R.as===a.Fragment)return b.jsx(S.type,{...S.props,...W},n);const V=R.as||"div";return b.jsx(V,{...W,children:b.jsx(S.type,{...S.props})},n)}function U(){return h.current?R.transitionChild?b.jsx(_e.Transition.Child,{as:a.Fragment,...$,children:b.jsx(t.type,{...t.props})}):b.jsx(_e.Transition,{as:a.Fragment,...$,children:b.jsx(t.type,{...t.props})}):b.jsx(a.Fragment,{})}return j(L(U()))}function ut([t,o],n){var J,K;const r=Ht(),u=a.useRef(!1),[f,c]=a.useState(),[h,g]=a.useState(void 0),[w,d]=a.useState(void 0),v=a.useRef(null),x=a.useMemo(()=>({show:n.onShow||(()=>{}),hide:n.onHide||(()=>{}),update:n.onUpdate||(()=>{})}),[n.onShow,n.onHide,n.onUpdate]),{placement:E,update:R,refs:_,floatingStyles:$,isPositioned:A,middlewareData:j}=Ze.useFloating({placement:n.placement||"bottom-start",strategy:n.strategy,middleware:f,transform:n.dialog?!1:n.transform??!1}),[L,U]=a.useState(null);a.useEffect(()=>{u.current=!0},[]),a.useEffect(()=>{t&&!ue.get(r)?(ue.set(r,!0),x.show()):!t&&ue.get(r)&&(ue.delete(r),x.hide())},[t]);const S=a.useCallback(()=>{R(),x.update()},[R,x]);a.useEffect(S,[n.placement,n.strategy,f]),Bt(c,_,v,n),a.useEffect(()=>{var N,k;(n.hide===!0||typeof n.hide=="object"||Array.isArray(n.hide))&&(g(((N=j.hide)==null?void 0:N.referenceHidden)||!A),d((k=j.hide)==null?void 0:k.escaped))},[j,n.hide,A]),qt(!!n.adaptiveWidth,_.reference,U),a.useEffect(()=>{if(_.reference.current&&_.floating.current&&t)return n.autoUpdate!==!1?z.autoUpdate(_.reference.current,_.floating.current,S,typeof n.autoUpdate=="object"?n.autoUpdate:void 0):()=>{}},[t,S,_]);const W=a.useRef(!0);a.useEffect(()=>{!(_.reference.current instanceof Element)&&_.reference.current&&_.floating.current&&W.current&&(W.current=!1,S(),window.requestAnimationFrame(()=>{W.current=!0,S()}))},[_]);const V={referenceRef:_.setReference,placement:E},re={floatingRef:_.setFloating,props:n,mounted:u,setShow:o,referenceHidden:h,escaped:w,placement:E,floatingStyles:$,referenceElWidth:L},X={arrowRef:v,placement:E,x:(J=j.arrow)==null?void 0:J.x,y:(K=j.arrow)==null?void 0:K.y};return{referenceApi:V,floatingApi:re,arrowApi:X,placement:E,update:S,refs:_,middlewareData:j}}const ct=a.forwardRef((t,o)=>{const[n,r]=a.useState(t.show??!1),{referenceApi:u,floatingApi:f,arrowApi:c,placement:h}=ut([n,r],t),g={placement:h},[w,d]=typeof t.children=="function"?t.children(g):t.children;if(!a.isValidElement(w))return console.warn("<Float /> is missing a reference and floating element."),b.jsx(a.Fragment,{});function v(R){if(t.as===a.Fragment||!t.as)return b.jsx(a.Fragment,{children:R});const _=t.as;return b.jsx(_,{ref:o,className:t.className,children:R})}if(t.composable||t.dialog)return v(b.jsx(Te.Provider,{value:u,children:b.jsx(Oe.Provider,{value:f,children:b.jsx(te.Provider,{value:c,children:typeof t.children=="function"?t.children(g):t.children})})},"FloatingNode"));const x=Pe(w,{as:a.Fragment},{key:"reference-node"},u),E=ce(d,{as:t.floatingAs||"div"},{},f);return v([x,b.jsx(te.Provider,{value:c,children:E},"floating-node")])});ct.displayName="Float";function Qt(t){if(!t.children)return b.jsx(a.Fragment,{});const o=a.useMemo(()=>{const{as:f,children:c,...h}=t;return h},[t]),n=ot("Float.Reference"),{placement:r}=n,u={placement:r};return Pe(typeof t.children=="function"?t.children(u):t.children,{...t,as:t.as||a.Fragment},o,n)}function er(t){if(!t.children)return b.jsx(a.Fragment,{});const o=a.useMemo(()=>{const{as:f,enter:c,enterFrom:h,enterTo:g,leave:w,leaveFrom:d,leaveTo:v,originClass:x,tailwindcssOriginClass:E,transitionChild:R,children:_,...$}=t;return $},[t]),n=at("Float.Content"),{placement:r}=n,u={placement:r};return ce(typeof t.children=="function"?t.children(u):t.children,{...t,as:t.as||"div"},o,n)}function tr(t){const{arrowRef:o,placement:n,x:r,y:u}=st("Float.Arrow"),f=a.useMemo(()=>{const{as:w,offset:d,children:v,...x}=t;return x},[t]),c={top:"bottom",right:"left",bottom:"top",left:"right"}[n.split("-")[0]],h={left:o.current&&typeof r=="number"?`${Ke(o.current,r)}px`:void 0,top:o.current&&typeof u=="number"?`${Ke(o.current,u)}px`:void 0,right:void 0,bottom:void 0,[c]:`${(t.offset??4)*-1}px`,...f.style};if(t.as===a.Fragment){const w={placement:n},d=typeof t.children=="function"?t.children(w):t.children;return!d||!a.isValidElement(d)?b.jsx(a.Fragment,{}):b.jsx(d.type,{...d.props,ref:o,style:h})}const g=t.as||"div";return b.jsx(g,{ref:o,...f,style:h,children:t.children})}function Fe({onInitial:t,children:o,...n}){const[r,u]=a.useState(n.show??!1),f=a.useMemo(()=>{const{as:E,show:R,placement:_,strategy:$,offset:A,shift:j,flip:L,arrow:U,autoPlacement:S,autoUpdate:W,zIndex:V,enter:re,enterFrom:X,enterTo:J,leave:K,leaveFrom:N,leaveTo:k,originClass:M,tailwindcssOriginClass:H,portal:le,transform:fe,middleware:de,onShow:ge,onHide:ve,onUpdate:me,...ne}=n;return ne},[n]),{floatingApi:c,arrowApi:h,placement:g,refs:w}=ut([r,u],n);a.useEffect(()=>{u(n.show??!1)},[n.show]);function d(){r&&u(!1)}if(t({show:r,setShow:u,placement:g,refs:w}),!o)return b.jsx(a.Fragment,{});const x=ce(typeof o=="function"?o({placement:g,close:d}):o,{...n,as:n.as||a.Fragment,show:r},f,c);return b.jsx(te.Provider,{value:h,children:x})}function rr(t){const[o,n]=a.useState(!1);function r({setShow:u,refs:f}){I("contextmenu",c=>{c.preventDefault(),f.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:c.clientX,y:c.clientY,top:c.clientY,left:c.clientX,right:c.clientX,bottom:c.clientY}}}),u(!0)}),it(f.floating,()=>{u(!1)})}return a.useEffect(()=>(n(!0),()=>{n(!1)}),[]),o?b.jsx(Fe,{flip:!0,...t,show:!1,portal:!0,onInitial:r}):b.jsx(a.Fragment,{})}function nr({globalHideCursor:t,...o}){const[n,r]=a.useState(!1);function u({setShow:f,refs:c}){function h(){f(!0)}function g(){f(!1)}function w(E){c.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:E.clientX,y:E.clientY,top:E.clientY,left:E.clientX,right:E.clientX,bottom:E.clientY}}})}function d(E){h(),w(E)}function v(E){h(),w(E.touches[0])}const x=rt(c.floating);x&&(a.useEffect(()=>{if((t||t===void 0)&&!x.getElementById("headlesui-float-cursor-style")){const E=x.createElement("style");return(x.head||x.getElementsByTagName("head")[0]).appendChild(E),E.id="headlesui-float-cursor-style",E.appendChild(x.createTextNode(["*, *::before, *::after {"," cursor: none !important;","}",".headlesui-float-cursor-root {"," pointer-events: none !important;","}"].join(`
`))),()=>{var _;return(_=x.getElementById("headlesui-float-cursor-style"))==null?void 0:_.remove()}}},[t]),"ontouchstart"in window||navigator.maxTouchPoints>0?(I("touchstart",v),I("touchend",g),I("touchmove",v)):(I("mouseenter",d),I("mouseleave",g),I("mousemove",d)))}return a.useEffect(()=>(r(!0),()=>{r(!1)}),[]),n?b.jsx(Fe,{...o,portal:!0,className:"headlesui-float-cursor-root",onInitial:u}):b.jsx(a.Fragment,{})}const ir=Object.assign(ct,{Reference:Qt,Content:er,Arrow:tr,Virtual:Fe,ContextMenu:rr,Cursor:nr});exports.Float=ir;exports.renderFloatingElement=ce;exports.renderReferenceElement=Pe;exports.tailwindcssOriginClassResolver=et;exports.tailwindcssOriginSafelist=zt;exports.tailwindcssRtlOriginClassResolver=Jt;exports.tailwindcssRtlOriginSafelist=Xt;exports.useOutsideClick=it;

@@ -1,9 +0,9 @@

var Vt = Object.defineProperty;
var Nt = (t, o, n) => o in t ? Vt(t, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[o] = n;
var Pe = (t, o, n) => Nt(t, typeof o != "symbol" ? o + "" : o, n);
import ve, { useEffect as O, useLayoutEffect as Ht, useState as L, useMemo as K, useRef as J, createContext as Ae, Fragment as S, forwardRef as Bt, isValidElement as it, useCallback as zt, useContext as ke } from "react";
import { Portal as Xt, Transition as Qe } from "@headlessui/react";
import { arrow as qt, useFloating as Jt } from "@floating-ui/react";
import { offset as Kt, flip as Gt, shift as Zt, autoPlacement as Qt, hide as er, autoUpdate as tr } from "@floating-ui/dom";
var Fe = { exports: {} }, re = {};
var Ut = Object.defineProperty;
var Vt = (t, o, n) => o in t ? Ut(t, o, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[o] = n;
var Te = (t, o, n) => Vt(t, typeof o != "symbol" ? o + "" : o, n);
import de, { useEffect as O, useLayoutEffect as Nt, useState as M, useMemo as K, useRef as J, Fragment as P, forwardRef as Ht, isValidElement as nt, createContext as Oe, useCallback as Bt, useContext as Fe } from "react";
import { Portal as zt, Transition as Ze } from "@headlessui/react";
import { arrow as Xt, useFloating as qt } from "@floating-ui/react";
import { offset as Jt, flip as Kt, shift as Gt, autoPlacement as Zt, hide as Qt, autoUpdate as er } from "@floating-ui/dom";
var Se = { exports: {} }, te = {};
/**

@@ -18,17 +18,17 @@ * @license React

*/
var et;
function rr() {
if (et) return re;
et = 1;
var t = ve, o = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
function u(g, d, w) {
var Qe;
function tr() {
if (Qe) return te;
Qe = 1;
var t = de, o = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, u = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
function s(g, d, E) {
var f, v = {}, R = null, b = null;
w !== void 0 && (R = "" + w), d.key !== void 0 && (R = "" + d.key), d.ref !== void 0 && (b = d.ref);
E !== void 0 && (R = "" + E), d.key !== void 0 && (R = "" + d.key), d.ref !== void 0 && (b = d.ref);
for (f in d) r.call(d, f) && !l.hasOwnProperty(f) && (v[f] = d[f]);
if (g && g.defaultProps) for (f in d = g.defaultProps, d) v[f] === void 0 && (v[f] = d[f]);
return { $$typeof: o, type: g, key: R, ref: b, props: v, _owner: s.current };
return { $$typeof: o, type: g, key: R, ref: b, props: v, _owner: u.current };
}
return re.Fragment = n, re.jsx = u, re.jsxs = u, re;
return te.Fragment = n, te.jsx = s, te.jsxs = s, te;
}
var ne = {};
var re = {};
/**

@@ -43,13 +43,13 @@ * @license React

*/
var tt;
function nr() {
return tt || (tt = 1, process.env.NODE_ENV !== "production" && function() {
var t = ve, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), E = Symbol.iterator, C = "@@iterator";
var et;
function rr() {
return et || (et = 1, process.env.NODE_ENV !== "production" && function() {
var t = de, o = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), E = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), w = Symbol.iterator, C = "@@iterator";
function W(e) {
if (e === null || typeof e != "object")
return null;
var i = E && e[E] || e[C];
var i = w && e[w] || e[C];
return typeof i == "function" ? i : null;
}
var D = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
var k = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
function _(e) {

@@ -64,3 +64,3 @@ {

{
var c = D.ReactDebugCurrentFrame, p = c.getStackAddendum();
var c = k.ReactDebugCurrentFrame, p = c.getStackAddendum();
p !== "" && (i += "%s", a = a.concat([p]));

@@ -73,6 +73,6 @@ var x = a.map(function(m) {

}
var N = !1, j = !1, Y = !1, H = !1, ae = !1, G;
var N = !1, j = !1, Y = !1, H = !1, oe = !1, G;
G = Symbol.for("react.module.reference");
function Z(e) {
return !!(typeof e == "string" || typeof e == "function" || e === r || e === l || ae || e === s || e === w || e === f || H || e === b || N || j || Y || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === v || e.$$typeof === u || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object
return !!(typeof e == "string" || typeof e == "function" || e === r || e === l || oe || e === u || e === E || e === f || H || e === b || N || j || Y || typeof e == "object" && e !== null && (e.$$typeof === R || e.$$typeof === v || e.$$typeof === s || e.$$typeof === g || e.$$typeof === d || // This needs to include all possible module reference object
// types supported by any Flight configuration anywhere since

@@ -93,3 +93,3 @@ // we don't know which Flight build this will end up being used

}
function A(e) {
function D(e) {
if (e == null)

@@ -108,5 +108,5 @@ return null;

return "Profiler";
case s:
case u:
return "StrictMode";
case w:
case E:
return "Suspense";

@@ -121,3 +121,3 @@ case f:

return B(i) + ".Consumer";
case u:
case s:
var a = e;

@@ -129,7 +129,7 @@ return B(a._context) + ".Provider";

var c = e.displayName || null;
return c !== null ? c : A(e.type) || "Memo";
return c !== null ? c : D(e.type) || "Memo";
case R: {
var p = e, x = p._payload, m = p._init;
try {
return A(m(x));
return D(m(x));
} catch {

@@ -142,14 +142,14 @@ return null;

}
var M = Object.assign, z = 0, he, ge, me, ye, be, we, se;
function Ye() {
var L = Object.assign, z = 0, ve, he, ge, me, ye, be, ae;
function $e() {
}
Ye.__reactDisabledLog = !0;
function gt() {
$e.__reactDisabledLog = !0;
function ht() {
{
if (z === 0) {
he = console.log, ge = console.info, me = console.warn, ye = console.error, be = console.group, we = console.groupCollapsed, se = console.groupEnd;
ve = console.log, he = console.info, ge = console.warn, me = console.error, ye = console.group, be = console.groupCollapsed, ae = console.groupEnd;
var e = {
configurable: !0,
enumerable: !0,
value: Ye,
value: $e,
writable: !0

@@ -170,3 +170,3 @@ };

}
function mt() {
function gt() {
{

@@ -180,22 +180,22 @@ if (z--, z === 0) {

Object.defineProperties(console, {
log: M({}, e, {
log: L({}, e, {
value: ve
}),
info: L({}, e, {
value: he
}),
info: M({}, e, {
warn: L({}, e, {
value: ge
}),
warn: M({}, e, {
error: L({}, e, {
value: me
}),
error: M({}, e, {
group: L({}, e, {
value: ye
}),
group: M({}, e, {
groupCollapsed: L({}, e, {
value: be
}),
groupCollapsed: M({}, e, {
value: we
}),
groupEnd: M({}, e, {
value: se
groupEnd: L({}, e, {
value: ae
})

@@ -207,6 +207,6 @@ });

}
var Ee = D.ReactCurrentDispatcher, pe;
var Ee = k.ReactCurrentDispatcher, we;
function ue(e, i, a) {
{
if (pe === void 0)
if (we === void 0)
try {

@@ -216,18 +216,18 @@ throw Error();

var c = p.stack.trim().match(/\n( *(at )?)/);
pe = c && c[1] || "";
we = c && c[1] || "";
}
return `
` + pe + e;
` + we + e;
}
}
var Re = !1, ce;
var pe = !1, se;
{
var yt = typeof WeakMap == "function" ? WeakMap : Map;
ce = new yt();
var mt = typeof WeakMap == "function" ? WeakMap : Map;
se = new mt();
}
function Le(e, i) {
if (!e || Re)
function We(e, i) {
if (!e || pe)
return "";
{
var a = ce.get(e);
var a = se.get(e);
if (a !== void 0)

@@ -237,7 +237,7 @@ return a;

var c;
Re = !0;
pe = !0;
var p = Error.prepareStackTrace;
Error.prepareStackTrace = void 0;
var x;
x = Ee.current, Ee.current = null, gt();
x = Ee.current, Ee.current = null, ht();
try {

@@ -255,4 +255,4 @@ if (i) {

Reflect.construct(m, []);
} catch (k) {
c = k;
} catch (A) {
c = A;
}

@@ -263,4 +263,4 @@ Reflect.construct(e, [], m);

m.call();
} catch (k) {
c = k;
} catch (A) {
c = A;
}

@@ -272,23 +272,23 @@ e.call(m.prototype);

throw Error();
} catch (k) {
c = k;
} catch (A) {
c = A;
}
e();
}
} catch (k) {
if (k && c && typeof k.stack == "string") {
for (var h = k.stack.split(`
} catch (A) {
if (A && c && typeof A.stack == "string") {
for (var h = A.stack.split(`
`), F = c.stack.split(`
`), T = h.length - 1, P = F.length - 1; T >= 1 && P >= 0 && h[T] !== F[P]; )
P--;
for (; T >= 1 && P >= 0; T--, P--)
if (h[T] !== F[P]) {
if (T !== 1 || P !== 1)
`), T = h.length - 1, S = F.length - 1; T >= 1 && S >= 0 && h[T] !== F[S]; )
S--;
for (; T >= 1 && S >= 0; T--, S--)
if (h[T] !== F[S]) {
if (T !== 1 || S !== 1)
do
if (T--, P--, P < 0 || h[T] !== F[P]) {
if (T--, S--, S < 0 || h[T] !== F[S]) {
var I = `
` + h[T].replace(" at new ", " at ");
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, I), I;
return e.displayName && I.includes("<anonymous>") && (I = I.replace("<anonymous>", e.displayName)), typeof e == "function" && se.set(e, I), I;
}
while (T >= 1 && P >= 0);
while (T >= 1 && S >= 0);
break;

@@ -298,23 +298,23 @@ }

} finally {
Re = !1, Ee.current = x, mt(), Error.prepareStackTrace = p;
pe = !1, Ee.current = x, gt(), Error.prepareStackTrace = p;
}
var q = e ? e.displayName || e.name : "", U = q ? ue(q) : "";
return typeof e == "function" && ce.set(e, U), U;
return typeof e == "function" && se.set(e, U), U;
}
function bt(e, i, a) {
return Le(e, !1);
function yt(e, i, a) {
return We(e, !1);
}
function wt(e) {
function bt(e) {
var i = e.prototype;
return !!(i && i.isReactComponent);
}
function le(e, i, a) {
function ce(e, i, a) {
if (e == null)
return "";
if (typeof e == "function")
return Le(e, wt(e));
return We(e, bt(e));
if (typeof e == "string")
return ue(e);
switch (e) {
case w:
case E:
return ue("Suspense");

@@ -327,9 +327,9 @@ case f:

case d:
return bt(e.render);
return yt(e.render);
case v:
return le(e.type, i, a);
return ce(e.type, i, a);
case R: {
var c = e, p = c._payload, x = c._init;
try {
return le(x(p), i, a);
return ce(x(p), i, a);
} catch {

@@ -341,9 +341,9 @@ }

}
var ee = Object.prototype.hasOwnProperty, Me = {}, Ue = D.ReactDebugCurrentFrame;
function fe(e) {
var ee = Object.prototype.hasOwnProperty, Ye = {}, Me = k.ReactDebugCurrentFrame;
function le(e) {
if (e) {
var i = e._owner, a = le(e.type, e._source, i ? i.type : null);
Ue.setExtraStackFrame(a);
var i = e._owner, a = ce(e.type, e._source, i ? i.type : null);
Me.setExtraStackFrame(a);
} else
Ue.setExtraStackFrame(null);
Me.setExtraStackFrame(null);
}

@@ -365,11 +365,11 @@ function Et(e, i, a, c, p) {

}
h && !(h instanceof Error) && (fe(p), _("%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).", c || "React class", a, m, typeof h), fe(null)), h instanceof Error && !(h.message in Me) && (Me[h.message] = !0, fe(p), _("Failed %s type: %s", a, h.message), fe(null));
h && !(h instanceof Error) && (le(p), _("%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).", c || "React class", a, m, typeof h), le(null)), h instanceof Error && !(h.message in Ye) && (Ye[h.message] = !0, le(p), _("Failed %s type: %s", a, h.message), le(null));
}
}
}
var pt = Array.isArray;
function xe(e) {
return pt(e);
var wt = Array.isArray;
function Re(e) {
return wt(e);
}
function Rt(e) {
function pt(e) {
{

@@ -380,5 +380,5 @@ var i = typeof Symbol == "function" && Symbol.toStringTag, a = i && e[Symbol.toStringTag] || e.constructor.name || "Object";

}
function xt(e) {
function Rt(e) {
try {
return Ve(e), !1;
return Le(e), !1;
} catch {

@@ -388,10 +388,10 @@ return !0;

}
function Ve(e) {
function Le(e) {
return "" + e;
}
function Ne(e) {
if (xt(e))
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Rt(e)), Ve(e);
function Ue(e) {
if (Rt(e))
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(e)), Le(e);
}
var te = D.ReactCurrentOwner, Ct = {
var Ve = k.ReactCurrentOwner, xt = {
key: !0,

@@ -401,5 +401,4 @@ ref: !0,

__source: !0
}, He, Be, Ce;
Ce = {};
function _t(e) {
}, Ne, He;
function Ct(e) {
if (ee.call(e, "ref")) {

@@ -412,3 +411,3 @@ var i = Object.getOwnPropertyDescriptor(e, "ref").get;

}
function jt(e) {
function _t(e) {
if (ee.call(e, "key")) {

@@ -421,12 +420,9 @@ var i = Object.getOwnPropertyDescriptor(e, "key").get;

}
function jt(e, i) {
typeof e.ref == "string" && Ve.current;
}
function Tt(e, i) {
if (typeof e.ref == "string" && te.current && i && te.current.stateNode !== i) {
var a = A(te.current.type);
Ce[a] || (_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(te.current.type), e.ref), Ce[a] = !0);
}
}
function St(e, i) {
{
var a = function() {
He || (He = !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)", i));
Ne || (Ne = !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)", i));
};

@@ -442,3 +438,3 @@ a.isReactWarning = !0, Object.defineProperty(e, "key", {

var a = function() {
Be || (Be = !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)", i));
He || (He = !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)", i));
};

@@ -451,3 +447,3 @@ a.isReactWarning = !0, Object.defineProperty(e, "ref", {

}
var Ot = function(e, i, a, c, p, x, m) {
var St = function(e, i, a, c, p, x, m) {
var h = {

@@ -481,8 +477,8 @@ // This tag allows us to uniquely identify this as a React Element

};
function Ft(e, i, a, c, p) {
function Ot(e, i, a, c, p) {
{
var x, m = {}, h = null, F = null;
a !== void 0 && (Ne(a), h = "" + a), jt(i) && (Ne(i.key), h = "" + i.key), _t(i) && (F = i.ref, Tt(i, p));
a !== void 0 && (Ue(a), h = "" + a), _t(i) && (Ue(i.key), h = "" + i.key), Ct(i) && (F = i.ref, jt(i, p));
for (x in i)
ee.call(i, x) && !Ct.hasOwnProperty(x) && (m[x] = i[x]);
ee.call(i, x) && !xt.hasOwnProperty(x) && (m[x] = i[x]);
if (e && e.defaultProps) {

@@ -494,25 +490,25 @@ var T = e.defaultProps;

if (h || F) {
var P = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
h && St(m, P), F && Pt(m, P);
var S = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
h && Tt(m, S), F && Pt(m, S);
}
return Ot(e, h, F, p, c, te.current, m);
return St(e, h, F, p, c, Ve.current, m);
}
}
var _e = D.ReactCurrentOwner, ze = D.ReactDebugCurrentFrame;
var xe = k.ReactCurrentOwner, Be = k.ReactDebugCurrentFrame;
function X(e) {
if (e) {
var i = e._owner, a = le(e.type, e._source, i ? i.type : null);
ze.setExtraStackFrame(a);
var i = e._owner, a = ce(e.type, e._source, i ? i.type : null);
Be.setExtraStackFrame(a);
} else
ze.setExtraStackFrame(null);
Be.setExtraStackFrame(null);
}
var je;
je = !1;
function Te(e) {
var Ce;
Ce = !1;
function _e(e) {
return typeof e == "object" && e !== null && e.$$typeof === o;
}
function Xe() {
function ze() {
{
if (_e.current) {
var e = A(_e.current.type);
if (xe.current) {
var e = D(xe.current.type);
if (e)

@@ -526,9 +522,9 @@ return `

}
function At(e) {
function Ft(e) {
return "";
}
var qe = {};
function kt(e) {
var Xe = {};
function At(e) {
{
var i = Xe();
var i = ze();
if (!i) {

@@ -543,3 +539,3 @@ var a = typeof e == "string" ? e : e.displayName || e.name;

}
function Je(e, i) {
function qe(e, i) {
{

@@ -549,20 +545,20 @@ if (!e._store || e._store.validated || e.key != null)

e._store.validated = !0;
var a = kt(i);
if (qe[a])
var a = At(i);
if (Xe[a])
return;
qe[a] = !0;
Xe[a] = !0;
var c = "";
e && e._owner && e._owner !== _e.current && (c = " It was passed a child from " + A(e._owner.type) + "."), X(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), X(null);
e && e._owner && e._owner !== xe.current && (c = " It was passed a child from " + D(e._owner.type) + "."), X(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, c), X(null);
}
}
function Ke(e, i) {
function Je(e, i) {
{
if (typeof e != "object")
return;
if (xe(e))
if (Re(e))
for (var a = 0; a < e.length; a++) {
var c = e[a];
Te(c) && Je(c, i);
_e(c) && qe(c, i);
}
else if (Te(e))
else if (_e(e))
e._store && (e._store.validated = !0);

@@ -573,7 +569,7 @@ else if (e) {

for (var x = p.call(e), m; !(m = x.next()).done; )
Te(m.value) && Je(m.value, i);
_e(m.value) && qe(m.value, i);
}
}
}
function Dt(e) {
function kt(e) {
{

@@ -593,7 +589,7 @@ var i = e.type;

if (a) {
var c = A(i);
var c = D(i);
Et(a, e.props, "prop", c, e);
} else if (i.PropTypes !== void 0 && !je) {
je = !0;
var p = A(i);
} else if (i.PropTypes !== void 0 && !Ce) {
Ce = !0;
var p = D(i);
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");

@@ -604,3 +600,3 @@ }

}
function It(e) {
function Dt(e) {
{

@@ -617,4 +613,4 @@ for (var i = Object.keys(e.props), a = 0; a < i.length; a++) {

}
var Ge = {};
function Ze(e, i, a, c, p, x) {
var Ke = {};
function Ge(e, i, a, c, p, x) {
{

@@ -625,10 +621,10 @@ var m = Z(e);

(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (h += " 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 F = At();
F ? h += F : h += Xe();
var F = Ft();
F ? h += F : h += ze();
var T;
e === null ? T = "null" : xe(e) ? T = "array" : e !== void 0 && e.$$typeof === o ? (T = "<" + (A(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, h);
e === null ? T = "null" : Re(e) ? T = "array" : e !== void 0 && e.$$typeof === o ? (T = "<" + (D(e.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : T = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", T, h);
}
var P = Ft(e, i, a, p, x);
if (P == null)
return P;
var S = Ot(e, i, a, p, x);
if (S == null)
return S;
if (m) {

@@ -638,5 +634,5 @@ var I = i.children;

if (c)
if (xe(I)) {
if (Re(I)) {
for (var q = 0; q < I.length; q++)
Ke(I[q], e);
Je(I[q], e);
Object.freeze && Object.freeze(I);

@@ -646,10 +642,10 @@ } else

else
Ke(I, e);
Je(I, e);
}
if (ee.call(i, "key")) {
var U = A(e), k = Object.keys(i).filter(function(Ut) {
return Ut !== "key";
}), Se = k.length > 0 ? "{key: someKey, " + k.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Ge[U + Se]) {
var Mt = k.length > 0 ? "{" + k.join(": ..., ") + ": ...}" : "{}";
var U = D(e), A = Object.keys(i).filter(function(Lt) {
return Lt !== "key";
}), je = A.length > 0 ? "{key: someKey, " + A.join(": ..., ") + ": ...}" : "{key: someKey}";
if (!Ke[U + je]) {
var Mt = A.length > 0 ? "{" + A.join(": ..., ") + ": ...}" : "{}";
_(`A props object containing a "key" prop is being spread into JSX:

@@ -660,31 +656,31 @@ let props = %s;

let props = %s;
<%s key={someKey} {...props} />`, Se, U, Mt, U), Ge[U + Se] = !0;
<%s key={someKey} {...props} />`, je, U, Mt, U), Ke[U + je] = !0;
}
}
return e === r ? It(P) : Dt(P), P;
return e === r ? Dt(S) : kt(S), S;
}
}
function It(e, i, a) {
return Ge(e, i, a, !0);
}
function $t(e, i, a) {
return Ze(e, i, a, !0);
return Ge(e, i, a, !1);
}
function Wt(e, i, a) {
return Ze(e, i, a, !1);
}
var Yt = Wt, Lt = $t;
ne.Fragment = r, ne.jsx = Yt, ne.jsxs = Lt;
}()), ne;
var Wt = $t, Yt = It;
re.Fragment = r, re.jsx = Wt, re.jsxs = Yt;
}()), re;
}
process.env.NODE_ENV === "production" ? Fe.exports = rr() : Fe.exports = nr();
var y = Fe.exports;
function ir(t) {
process.env.NODE_ENV === "production" ? Se.exports = tr() : Se.exports = rr();
var y = Se.exports;
function nr(t) {
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
}
function rt(t, o) {
const n = ir(t);
function tt(t, o) {
const n = nr(t);
return Math.round(o * n) / n;
}
class or {
class ir {
constructor() {
Pe(this, "current", this.detect());
Pe(this, "currentId", 0);
Te(this, "current", this.detect());
Te(this, "currentId", 0);
}

@@ -710,19 +706,19 @@ set(o) {

}
const ie = new or(), ot = (t, o) => {
ie.isServer ? O(t, o) : Ht(t, o);
}, Oe = { serverHandoffComplete: !1 };
function ar() {
const [t, o] = L(Oe.serverHandoffComplete);
const ne = new ir(), it = (t, o) => {
ne.isServer ? O(t, o) : Nt(t, o);
}, Pe = { serverHandoffComplete: !1 };
function or() {
const [t, o] = M(Pe.serverHandoffComplete);
return O(() => {
t !== !0 && o(!0);
}, [t]), O(() => {
Oe.serverHandoffComplete === !1 && (Oe.serverHandoffComplete = !0);
Pe.serverHandoffComplete === !1 && (Pe.serverHandoffComplete = !0);
}, []), t;
}
const sr = (
const ar = (
// Prefer React's `useId` if it's available.
ve.useId ?? function() {
const o = ar(), [n, r] = ve.useState(o ? () => ie.nextId() : null);
return ot(() => {
n === null && r(ie.nextId());
de.useId ?? function() {
const o = or(), [n, r] = de.useState(o ? () => ne.nextId() : null);
return it(() => {
n === null && r(ne.nextId());
}, [n]), n != null ? `${n}` : void 0;

@@ -733,22 +729,22 @@ }

O(() => {
const s = [];
(typeof r.offset == "number" || typeof r.offset == "object" || typeof r.offset == "function") && s.push(Kt(r.offset)), (r.flip === !0 || typeof r.flip == "number" || typeof r.flip == "object") && s.push(Gt({
const u = [];
(typeof r.offset == "number" || typeof r.offset == "object" || typeof r.offset == "function") && u.push(Jt(r.offset)), (r.flip === !0 || typeof r.flip == "number" || typeof r.flip == "object") && u.push(Kt({
padding: typeof r.flip == "number" ? r.flip : void 0,
...typeof r.flip == "object" ? r.flip : {}
})), (r.shift === !0 || typeof r.shift == "number" || typeof r.shift == "object") && s.push(Zt({
})), (r.shift === !0 || typeof r.shift == "number" || typeof r.shift == "object") && u.push(Gt({
padding: typeof r.shift == "number" ? r.shift : void 0,
...typeof r.shift == "object" ? r.shift : {}
})), (r.autoPlacement === !0 || typeof r.autoPlacement == "object") && s.push(Qt(
})), (r.autoPlacement === !0 || typeof r.autoPlacement == "object") && u.push(Zt(
typeof r.autoPlacement == "object" ? r.autoPlacement : void 0
)), s.push(...typeof r.middleware == "function" ? r.middleware({
)), u.push(...typeof r.middleware == "function" ? r.middleware({
referenceEl: o.reference,
floatingEl: o.floating
}) : r.middleware || []), (r.arrow === !0 || typeof r.arrow == "number") && s.push(qt({
}) : r.middleware || []), (r.arrow === !0 || typeof r.arrow == "number") && u.push(Xt({
element: n,
padding: r.arrow === !0 ? 0 : r.arrow
})), (r.hide === !0 || typeof r.hide == "object" || Array.isArray(r.hide)) && (Array.isArray(r.hide) ? r.hide : [r.hide]).forEach((l) => {
s.push(er(
u.push(Qt(
typeof l == "object" ? l : void 0
));
}), t(s);
}), t(u);
}, [

@@ -764,7 +760,7 @@ r.offset,

}
function cr(t, o, n) {
function sr(t, o, n) {
O(() => {
if (t && ie.isClient && typeof ResizeObserver < "u" && o.current && o.current instanceof Element) {
const r = new ResizeObserver(([s]) => {
const l = s.borderBoxSize.reduce((u, { inlineSize: g }) => u + g, 0);
if (t && ne.isClient && typeof ResizeObserver < "u" && o.current && o.current instanceof Element) {
const r = new ResizeObserver(([u]) => {
const l = u.borderBoxSize.reduce((s, { inlineSize: g }) => s + g, 0);
n(l);

@@ -778,3 +774,3 @@ });

}
const _r = [
const Cr = [
"origin-bottom",

@@ -788,3 +784,3 @@ "origin-top",

"origin-top-right"
], lr = (t) => {
], cr = (t) => {
switch (t) {

@@ -814,3 +810,3 @@ case "top":

}
}, jr = [
}, _r = [
"origin-bottom",

@@ -824,3 +820,3 @@ "origin-top",

"ltr:origin-top-right rtl:origin-top-left"
], Tr = (t) => {
], jr = (t) => {
switch (t) {

@@ -851,9 +847,9 @@ case "top":

};
function fr(t, o) {
return K(() => typeof t.originClass == "function" ? t.originClass(o) : typeof t.originClass == "string" ? t.originClass : t.tailwindcssOriginClass ? lr(o) : "", [o, t.originClass, t.tailwindcssOriginClass]);
function lr(t, o) {
return K(() => typeof t.originClass == "function" ? t.originClass(o) : typeof t.originClass == "string" ? t.originClass : t.tailwindcssOriginClass ? cr(o) : "", [o, t.originClass, t.tailwindcssOriginClass]);
}
function at(t, o, ...n) {
function ot(t, o, ...n) {
if (t in o) {
const s = o[t];
return typeof s == "function" ? s(...n) : s;
const u = o[t];
return typeof u == "function" ? u(...n) : u;
}

@@ -863,10 +859,10 @@ const r = new Error(

o
).map((s) => `"${s}"`).join(", ")}.`
).map((u) => `"${u}"`).join(", ")}.`
);
throw Error.captureStackTrace && Error.captureStackTrace(r, at), r;
throw Error.captureStackTrace && Error.captureStackTrace(r, ot), r;
}
function st(t) {
return ie.isServer ? null : t instanceof Node ? t.ownerDocument : t && Object.prototype.hasOwnProperty.call(t, "current") && t.current instanceof Node ? t.current.ownerDocument : document;
function at(t) {
return ne.isServer ? null : t instanceof Node ? t.ownerDocument : t && Object.prototype.hasOwnProperty.call(t, "current") && t.current instanceof Node ? t.current.ownerDocument : document;
}
const nt = [
const rt = [
"[contentEditable=true]",

@@ -888,7 +884,7 @@ "[tabindex]",

var ut = /* @__PURE__ */ ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ut || {});
function dr(t, o = 0) {
function fr(t, o = 0) {
var n;
return t === ((n = st(t)) == null ? void 0 : n.body) ? !1 : at(o, {
return t === ((n = at(t)) == null ? void 0 : n.body) ? !1 : ot(o, {
0() {
return t.matches(nt);
return t.matches(rt);
},

@@ -898,3 +894,3 @@ 1() {

for (; r !== null; ) {
if (r.matches(nt)) return !0;
if (r.matches(rt)) return !0;
r = r.parentElement;

@@ -906,5 +902,5 @@ }

}
function vr(t) {
function dr(t) {
const o = J(t);
return ot(() => {
return it(() => {
o.current = t;

@@ -914,11 +910,11 @@ }, [t]), o;

function $(t, o, n) {
const r = vr(o);
const r = dr(o);
O(() => {
function s(l) {
function u(l) {
r.current(l);
}
return document.addEventListener(t, s, n), () => document.removeEventListener(t, s, n);
return document.addEventListener(t, u, n), () => document.removeEventListener(t, u, n);
}, [t, n]);
}
function hr(t, o, n = !0) {
function vr(t, o, n = !0) {
const r = J(!1);

@@ -935,12 +931,12 @@ O(

);
function s(u, g) {
if (!r.current || u.defaultPrevented) return;
function u(s, g) {
if (!r.current || s.defaultPrevented) return;
const d = function f(v) {
return typeof v == "function" ? f(v()) : Array.isArray(v) || v instanceof Set ? v : [v];
}(t), w = g(u);
if (w !== null && w.getRootNode().contains(w)) {
}(t), E = g(s);
if (E !== null && E.getRootNode().contains(E)) {
for (const f of d) {
if (f === null) continue;
const v = f instanceof HTMLElement ? f : f.current;
if (v != null && v.contains(w) || u.composed && u.composedPath().includes(v))
if (v != null && v.contains(E) || s.composed && s.composedPath().includes(v))
return;

@@ -953,6 +949,6 @@ }

// revisit that so that you will require 2 clicks instead.
!dr(w, ut.Loose) && // This could be improved, but the `Combobox.Button` adds tabIndex={-1} to make it
!fr(E, ut.Loose) && // This could be improved, but the `Combobox.Button` adds tabIndex={-1} to make it
// unfocusable via the keyboard so that tabbing to the next item from the input doesn't
// first go to the button.
w.tabIndex !== -1 && u.preventDefault(), o(u, w)
E.tabIndex !== -1 && s.preventDefault(), o(s, E)
);

@@ -962,9 +958,9 @@ }

const l = J(null);
$("mousedown", (u) => {
$("mousedown", (s) => {
var g, d;
r.current && (l.current = ((d = (g = u.composedPath) == null ? void 0 : g.call(u)) == null ? void 0 : d[0]) || u.target);
r.current && (l.current = ((d = (g = s.composedPath) == null ? void 0 : g.call(s)) == null ? void 0 : d[0]) || s.target);
}, !0), $(
"click",
(u) => {
l.current && (s(u, () => l.current), l.current = null);
(s) => {
l.current && (u(s, () => l.current), l.current = null);
},

@@ -976,40 +972,40 @@ // We will use the `capture` phase so that layers in between with `event.stopPropagation()`

!0
), $("blur", (u) => s(
u,
), $("blur", (s) => u(
s,
() => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null
), !0);
}
const de = /* @__PURE__ */ new Map(), De = Ae(null);
De.displayName = "ReferenceContext";
const Ie = Ae(null);
Ie.displayName = "FloatingContext";
const oe = Ae(null);
oe.displayName = "ArrowContext";
function ct(t) {
const o = ke(De);
const fe = /* @__PURE__ */ new Map(), Ae = Oe(null);
Ae.displayName = "ReferenceContext";
const ke = Oe(null);
ke.displayName = "FloatingContext";
const ie = Oe(null);
ie.displayName = "ArrowContext";
function st(t) {
const o = Fe(Ae);
if (o === null) {
const n = new Error(`<${t} /> is missing a parent <Float /> component.`);
throw Error.captureStackTrace && Error.captureStackTrace(n, ct), n;
throw Error.captureStackTrace && Error.captureStackTrace(n, st), n;
}
return o;
}
function lt(t) {
const o = ke(Ie);
function ct(t) {
const o = Fe(ke);
if (o === null) {
const n = new Error(`<${t} /> is missing a parent <Float /> component.`);
throw Error.captureStackTrace && Error.captureStackTrace(n, lt), n;
throw Error.captureStackTrace && Error.captureStackTrace(n, ct), n;
}
return o;
}
function ft(t) {
const o = ke(oe);
function lt(t) {
const o = Fe(ie);
if (o === null) {
const n = new Error(`<${t} /> is missing a parent <Float /> component.`);
throw Error.captureStackTrace && Error.captureStackTrace(n, ft), n;
throw Error.captureStackTrace && Error.captureStackTrace(n, lt), n;
}
return o;
}
function dt(t, o, { key: n, ...r }, s) {
const { referenceRef: l } = s, u = o;
if (u.as === S)
function ft(t, o, { key: n, ...r }, u) {
const { referenceRef: l } = u, s = o;
if (s.as === P)
return /* @__PURE__ */ y.jsx(

@@ -1024,18 +1020,18 @@ t.type,

);
const g = u.as || "div";
const g = s.as || "div";
return /* @__PURE__ */ y.jsx(g, { ...r, ref: l, children: /* @__PURE__ */ y.jsx(t.type, { ...t.props }) }, n);
}
function $e(t, o, { key: n, ...r }, s) {
const { floatingRef: l, props: u, mounted: g, setShow: d, referenceHidden: w, escaped: f, placement: v, floatingStyles: R, referenceElWidth: b } = s, E = {
...u,
function De(t, o, { key: n, ...r }, u) {
const { floatingRef: l, props: s, mounted: g, setShow: d, referenceHidden: E, escaped: f, placement: v, floatingStyles: R, referenceElWidth: b } = u, w = {
...s,
...o
}, C = fr(E, v), W = {
show: g.current ? E.show : !1,
}, C = lr(w, v), W = {
show: g.current ? w.show : !1,
unmount: t.props.unmount === !1 ? !1 : void 0,
enter: `${E.enter || ""} ${C}`,
enterFrom: `${E.enterFrom || ""}`,
enterTo: `${E.enterTo || ""}`,
leave: `${E.leave || ""} ${C}`,
leaveFrom: `${E.leaveFrom || ""}`,
leaveTo: `${E.leaveTo || ""}`,
enter: `${w.enter || ""} ${C}`,
enterFrom: `${w.enterFrom || ""}`,
enterTo: `${w.enterTo || ""}`,
leave: `${w.leave || ""} ${C}`,
leaveFrom: `${w.leaveFrom || ""}`,
leaveTo: `${w.leaveTo || ""}`,
beforeEnter: () => {

@@ -1047,31 +1043,31 @@ d(!0);

}
}, D = {
}, k = {
className: [
w ? E.referenceHiddenClass : void 0,
f ? E.escapedClass : void 0
E ? w.referenceHiddenClass : void 0,
f ? w.escapedClass : void 0
].filter((j) => !!j).join(" "),
style: {
...R,
zIndex: E.zIndex || 9999
zIndex: w.zIndex || 9999
}
};
if (E.adaptiveWidth && typeof b == "number") {
if (w.adaptiveWidth && typeof b == "number") {
const j = {
attribute: "width",
...typeof E.adaptiveWidth == "object" ? E.adaptiveWidth : {}
...typeof w.adaptiveWidth == "object" ? w.adaptiveWidth : {}
};
D.style[j.attribute] = `${b}px`;
k.style[j.attribute] = `${b}px`;
}
function _(j) {
return E.portal ? g.current ? /* @__PURE__ */ y.jsx(Xt, { children: j }) : /* @__PURE__ */ y.jsx(S, {}) : j;
return w.portal ? g.current ? /* @__PURE__ */ y.jsx(zt, { children: j }) : /* @__PURE__ */ y.jsx(P, {}) : j;
}
function V(j) {
const Y = {
...D,
...k,
...r,
ref: l
};
if (j.type === S)
return /* @__PURE__ */ y.jsx(S, {});
if (E.as === S)
if (j.type === P)
return /* @__PURE__ */ y.jsx(P, {});
if (w.as === P)
return /* @__PURE__ */ y.jsx(

@@ -1085,7 +1081,7 @@ j.type,

);
const H = E.as || "div";
const H = w.as || "div";
return /* @__PURE__ */ y.jsx(H, { ...Y, children: /* @__PURE__ */ y.jsx(j.type, { ...j.props }) }, n);
}
function N() {
return g.current ? E.transitionChild ? /* @__PURE__ */ y.jsx(Qe.Child, { as: S, ...W, children: /* @__PURE__ */ y.jsx(t.type, { ...t.props }) }) : /* @__PURE__ */ y.jsx(Qe, { as: S, ...W, children: /* @__PURE__ */ y.jsx(t.type, { ...t.props }) }) : /* @__PURE__ */ y.jsx(S, {});
return g.current ? w.transitionChild ? /* @__PURE__ */ y.jsx(Ze.Child, { as: P, ...W, children: /* @__PURE__ */ y.jsx(t.type, { ...t.props }) }) : /* @__PURE__ */ y.jsx(Ze, { as: P, ...W, children: /* @__PURE__ */ y.jsx(t.type, { ...t.props }) }) : /* @__PURE__ */ y.jsx(P, {});
}

@@ -1098,5 +1094,5 @@ return _(

}
function vt([t, o], n) {
function dt([t, o], n) {
var Z, Q;
const r = sr(), s = J(!1), [l, u] = L(), [g, d] = L(void 0), [w, f] = L(void 0), v = J(null), R = K(() => ({
const r = ar(), u = J(!1), [l, s] = M(), [g, d] = M(void 0), [E, f] = M(void 0), v = J(null), R = K(() => ({
show: n.onShow || (() => {

@@ -1108,3 +1104,3 @@ }),

})
}), [n.onShow, n.onHide, n.onUpdate]), { placement: b, update: E, refs: C, floatingStyles: W, isPositioned: D, middlewareData: _ } = Jt({
}), [n.onShow, n.onHide, n.onUpdate]), { placement: b, update: w, refs: C, floatingStyles: W, isPositioned: k, middlewareData: _ } = qt({
placement: n.placement || "bottom-start",

@@ -1115,17 +1111,17 @@ strategy: n.strategy,

// If enable dialog mode, then set `transform` to false.
}), [V, N] = L(null);
}), [V, N] = M(null);
O(() => {
s.current = !0;
u.current = !0;
}, []), O(() => {
t && !de.get(r) ? (de.set(r, !0), R.show()) : !t && de.get(r) && (de.delete(r), R.hide());
t && !fe.get(r) ? (fe.set(r, !0), R.show()) : !t && fe.get(r) && (fe.delete(r), R.hide());
}, [t]);
const j = zt(() => {
E(), R.update();
}, [E, R]);
O(j, [n.placement, n.strategy, l]), ur(u, C, v, n), O(() => {
var B, A;
(n.hide === !0 || typeof n.hide == "object" || Array.isArray(n.hide)) && (d(((B = _.hide) == null ? void 0 : B.referenceHidden) || !D), f((A = _.hide) == null ? void 0 : A.escaped));
}, [_, n.hide, D]), cr(!!n.adaptiveWidth, C.reference, N), O(() => {
const j = Bt(() => {
w(), R.update();
}, [w, R]);
O(j, [n.placement, n.strategy, l]), ur(s, C, v, n), O(() => {
var B, D;
(n.hide === !0 || typeof n.hide == "object" || Array.isArray(n.hide)) && (d(((B = _.hide) == null ? void 0 : B.referenceHidden) || !k), f((D = _.hide) == null ? void 0 : D.escaped));
}, [_, n.hide, k]), sr(!!n.adaptiveWidth, C.reference, N), O(() => {
if (C.reference.current && C.floating.current && t)
return n.autoUpdate !== !1 ? tr(
return n.autoUpdate !== !1 ? er(
C.reference.current,

@@ -1147,9 +1143,9 @@ C.floating.current,

placement: b
}, ae = {
}, oe = {
floatingRef: C.setFloating,
props: n,
mounted: s,
mounted: u,
setShow: o,
referenceHidden: g,
escaped: w,
escaped: E,
placement: b,

@@ -1164,29 +1160,29 @@ floatingStyles: W,

};
return { referenceApi: H, floatingApi: ae, arrowApi: G, placement: b, update: j, refs: C, middlewareData: _ };
return { referenceApi: H, floatingApi: oe, arrowApi: G, placement: b, update: j, refs: C, middlewareData: _ };
}
const ht = Bt((t, o) => {
const [n, r] = L(t.show ?? !1), {
referenceApi: s,
const vt = Ht((t, o) => {
const [n, r] = M(t.show ?? !1), {
referenceApi: u,
floatingApi: l,
arrowApi: u,
arrowApi: s,
placement: g
} = vt([n, r], t), d = { placement: g }, [w, f] = typeof t.children == "function" ? t.children(d) : t.children;
if (!it(w))
return console.warn("<Float /> is missing a reference and floating element."), /* @__PURE__ */ y.jsx(S, {});
function v(E) {
if (t.as === S || !t.as)
return /* @__PURE__ */ y.jsx(S, { children: E });
} = dt([n, r], t), d = { placement: g }, [E, f] = typeof t.children == "function" ? t.children(d) : t.children;
if (!nt(E))
return console.warn("<Float /> is missing a reference and floating element."), /* @__PURE__ */ y.jsx(P, {});
function v(w) {
if (t.as === P || !t.as)
return /* @__PURE__ */ y.jsx(P, { children: w });
const C = t.as;
return /* @__PURE__ */ y.jsx(C, { ref: o, className: t.className, children: E });
return /* @__PURE__ */ y.jsx(C, { ref: o, className: t.className, children: w });
}
if (t.composable || t.dialog)
return v(
/* @__PURE__ */ y.jsx(De.Provider, { value: s, children: /* @__PURE__ */ y.jsx(Ie.Provider, { value: l, children: /* @__PURE__ */ y.jsx(oe.Provider, { value: u, children: typeof t.children == "function" ? t.children(d) : t.children }) }) }, "FloatingNode")
/* @__PURE__ */ y.jsx(Ae.Provider, { value: u, children: /* @__PURE__ */ y.jsx(ke.Provider, { value: l, children: /* @__PURE__ */ y.jsx(ie.Provider, { value: s, children: typeof t.children == "function" ? t.children(d) : t.children }) }) }, "FloatingNode")
);
const R = dt(
w,
{ as: S },
const R = ft(
E,
{ as: P },
{ key: "reference-node" },
s
), b = $e(
u
), b = De(
f,

@@ -1199,16 +1195,16 @@ { as: t.floatingAs || "div" },

R,
/* @__PURE__ */ y.jsx(oe.Provider, { value: u, children: b }, "floating-node")
/* @__PURE__ */ y.jsx(ie.Provider, { value: s, children: b }, "floating-node")
]);
});
ht.displayName = "Float";
function gr(t) {
vt.displayName = "Float";
function hr(t) {
if (!t.children)
return /* @__PURE__ */ y.jsx(S, {});
return /* @__PURE__ */ y.jsx(P, {});
const o = K(() => {
const { as: l, children: u, ...g } = t;
const { as: l, children: s, ...g } = t;
return g;
}, [t]), n = ct("Float.Reference"), { placement: r } = n, s = { placement: r };
return dt(
typeof t.children == "function" ? t.children(s) : t.children,
{ ...t, as: t.as || S },
}, [t]), n = st("Float.Reference"), { placement: r } = n, u = { placement: r };
return ft(
typeof t.children == "function" ? t.children(u) : t.children,
{ ...t, as: t.as || P },
o,

@@ -1218,11 +1214,11 @@ n

}
function mr(t) {
function gr(t) {
if (!t.children)
return /* @__PURE__ */ y.jsx(S, {});
return /* @__PURE__ */ y.jsx(P, {});
const o = K(() => {
const { as: l, enter: u, enterFrom: g, enterTo: d, leave: w, leaveFrom: f, leaveTo: v, originClass: R, tailwindcssOriginClass: b, transitionChild: E, children: C, ...W } = t;
const { as: l, enter: s, enterFrom: g, enterTo: d, leave: E, leaveFrom: f, leaveTo: v, originClass: R, tailwindcssOriginClass: b, transitionChild: w, children: C, ...W } = t;
return W;
}, [t]), n = lt("Float.Content"), { placement: r } = n, s = { placement: r };
return $e(
typeof t.children == "function" ? t.children(s) : t.children,
}, [t]), n = ct("Float.Content"), { placement: r } = n, u = { placement: r };
return De(
typeof t.children == "function" ? t.children(u) : t.children,
{ ...t, as: t.as || "div" },

@@ -1233,7 +1229,7 @@ o,

}
function yr(t) {
const { arrowRef: o, placement: n, x: r, y: s } = ft("Float.Arrow"), l = K(() => {
const { as: w, offset: f, children: v, ...R } = t;
function mr(t) {
const { arrowRef: o, placement: n, x: r, y: u } = lt("Float.Arrow"), l = K(() => {
const { as: E, offset: f, children: v, ...R } = t;
return R;
}, [t]), u = {
}, [t]), s = {
top: "bottom",

@@ -1244,12 +1240,12 @@ right: "left",

}[n.split("-")[0]], g = {
left: o.current && typeof r == "number" ? `${rt(o.current, r)}px` : void 0,
top: o.current && typeof s == "number" ? `${rt(o.current, s)}px` : void 0,
left: o.current && typeof r == "number" ? `${tt(o.current, r)}px` : void 0,
top: o.current && typeof u == "number" ? `${tt(o.current, u)}px` : void 0,
right: void 0,
bottom: void 0,
[u]: `${(t.offset ?? 4) * -1}px`,
[s]: `${(t.offset ?? 4) * -1}px`,
...l.style
};
if (t.as === S) {
const w = { placement: n }, f = typeof t.children == "function" ? t.children(w) : t.children;
return !f || !it(f) ? /* @__PURE__ */ y.jsx(S, {}) : /* @__PURE__ */ y.jsx(
if (t.as === P) {
const E = { placement: n }, f = typeof t.children == "function" ? t.children(E) : t.children;
return !f || !nt(f) ? /* @__PURE__ */ y.jsx(P, {}) : /* @__PURE__ */ y.jsx(
f.type,

@@ -1274,37 +1270,37 @@ {

}
function We({ onInitial: t, children: o, ...n }) {
const [r, s] = L(n.show ?? !1), l = K(() => {
const { as: b, show: E, placement: C, strategy: W, offset: D, shift: _, flip: V, arrow: N, autoPlacement: j, autoUpdate: Y, zIndex: H, enter: ae, enterFrom: G, enterTo: Z, leave: Q, leaveFrom: B, leaveTo: A, originClass: M, tailwindcssOriginClass: z, portal: he, transform: ge, middleware: me, onShow: ye, onHide: be, onUpdate: we, ...se } = n;
return se;
function Ie({ onInitial: t, children: o, ...n }) {
const [r, u] = M(n.show ?? !1), l = K(() => {
const { as: b, show: w, placement: C, strategy: W, offset: k, shift: _, flip: V, arrow: N, autoPlacement: j, autoUpdate: Y, zIndex: H, enter: oe, enterFrom: G, enterTo: Z, leave: Q, leaveFrom: B, leaveTo: D, originClass: L, tailwindcssOriginClass: z, portal: ve, transform: he, middleware: ge, onShow: me, onHide: ye, onUpdate: be, ...ae } = n;
return ae;
}, [n]), {
floatingApi: u,
floatingApi: s,
arrowApi: g,
placement: d,
refs: w
} = vt([r, s], n);
refs: E
} = dt([r, u], n);
O(() => {
s(n.show ?? !1);
u(n.show ?? !1);
}, [n.show]);
function f() {
r && s(!1);
r && u(!1);
}
if (t({ show: r, setShow: s, placement: d, refs: w }), !o)
return /* @__PURE__ */ y.jsx(S, {});
const R = $e(
if (t({ show: r, setShow: u, placement: d, refs: E }), !o)
return /* @__PURE__ */ y.jsx(P, {});
const R = De(
typeof o == "function" ? o({ placement: d, close: f }) : o,
{
...n,
as: n.as || S,
as: n.as || P,
show: r
},
l,
u
s
);
return /* @__PURE__ */ y.jsx(oe.Provider, { value: g, children: R });
return /* @__PURE__ */ y.jsx(ie.Provider, { value: g, children: R });
}
function br(t) {
const [o, n] = L(!1);
function r({ setShow: s, refs: l }) {
$("contextmenu", (u) => {
u.preventDefault(), l.setPositionReference({
function yr(t) {
const [o, n] = M(!1);
function r({ setShow: u, refs: l }) {
$("contextmenu", (s) => {
s.preventDefault(), l.setPositionReference({
getBoundingClientRect() {

@@ -1314,13 +1310,13 @@ return {

height: 0,
x: u.clientX,
y: u.clientY,
top: u.clientY,
left: u.clientX,
right: u.clientX,
bottom: u.clientY
x: s.clientX,
y: s.clientY,
top: s.clientY,
left: s.clientX,
right: s.clientX,
bottom: s.clientY
};
}
}), s(!0);
}), hr(l.floating, () => {
s(!1);
}), u(!0);
}), vr(l.floating, () => {
u(!1);
});

@@ -1331,3 +1327,3 @@ }

}), []), o ? /* @__PURE__ */ y.jsx(
We,
Ie,
{

@@ -1340,7 +1336,7 @@ flip: !0,

}
) : /* @__PURE__ */ y.jsx(S, {});
) : /* @__PURE__ */ y.jsx(P, {});
}
function wr({ globalHideCursor: t, ...o }) {
const [n, r] = L(!1);
function s({ setShow: l, refs: u }) {
function br({ globalHideCursor: t, ...o }) {
const [n, r] = M(!1);
function u({ setShow: l, refs: s }) {
function g() {

@@ -1352,4 +1348,4 @@ l(!0);

}
function w(b) {
u.setPositionReference({
function E(b) {
s.setPositionReference({
getBoundingClientRect() {

@@ -1370,8 +1366,8 @@ return {

function f(b) {
g(), w(b);
g(), E(b);
}
function v(b) {
g(), w(b.touches[0]);
g(), E(b.touches[0]);
}
const R = st(u.floating);
const R = at(s.floating);
R && (O(() => {

@@ -1398,3 +1394,3 @@ if ((t || t === void 0) && !R.getElementById("headlesui-float-cursor-style")) {

}), []), n ? /* @__PURE__ */ y.jsx(
We,
Ie,
{

@@ -1404,16 +1400,16 @@ ...o,

className: "headlesui-float-cursor-root",
onInitial: s
onInitial: u
}
) : /* @__PURE__ */ y.jsx(S, {});
) : /* @__PURE__ */ y.jsx(P, {});
}
const Sr = Object.assign(ht, { Reference: gr, Content: mr, Arrow: yr, Virtual: We, ContextMenu: br, Cursor: wr });
const Tr = Object.assign(vt, { Reference: hr, Content: gr, Arrow: mr, Virtual: Ie, ContextMenu: yr, Cursor: br });
export {
Sr as Float,
$e as renderFloatingElement,
dt as renderReferenceElement,
lr as tailwindcssOriginClassResolver,
_r as tailwindcssOriginSafelist,
Tr as tailwindcssRtlOriginClassResolver,
jr as tailwindcssRtlOriginSafelist,
hr as useOutsideClick
Tr as Float,
De as renderFloatingElement,
ft as renderReferenceElement,
cr as tailwindcssOriginClassResolver,
Cr as tailwindcssOriginSafelist,
jr as tailwindcssRtlOriginClassResolver,
_r as tailwindcssRtlOriginSafelist,
vr as useOutsideClick
};

@@ -0,0 +0,0 @@ # The MIT License (MIT)

{
"name": "@headlessui-float/react",
"type": "module",
"version": "0.15.0",
"version": "0.15.1",
"description": "Easily use Headless UI for React with Floating UI (Popper.js)",

@@ -66,3 +66,3 @@ "license": "MIT",

"@types/jsdom": "^21.1.7",
"@types/node": "^20.0.0",
"@types/node": "^22.0.0",
"@types/react": "^18.0.0",

@@ -75,5 +75,5 @@ "@types/react-dom": "^18.0.0",

"typescript": "~5.4.0",
"vite": "^5.4.0",
"vite": "^5.4.12",
"vitest": "^2.0.0"
}
}

@@ -15,2 +15,5 @@ <h2 align="center">Headless UI Float React</h2>

> [!WARNING]
> This package is unmaintained due to lack of time. It should mostly work but do not expect fixes or new features.
> [!NOTE]

@@ -17,0 +20,0 @@ > [Headless UI](https://headlessui.com/) has [released version 2.0](https://tailwindcss.com/blog/headless-ui-v2#built-in-anchor-positioning) (currently for React only), which builds in anchor positioning with Floating UI, making this package unnecessary.