@nafr/echo-ui
Version:
A UI library born for WAA
27 lines (24 loc) • 409 kB
JavaScript
(function(ft,b){typeof exports=="object"&&typeof module<"u"?b(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],b):(ft=typeof globalThis<"u"?globalThis:ft||self,b(ft["echo-ui"]={},ft.require$$0))})(this,function(ft,b){"use strict";var li={exports:{}},rr={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ta;function nh(){return ta||(ta=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),p=Symbol.iterator,m="@@iterator";function g(N){if(N===null||typeof N!="object")return null;var j=p&&N[p]||N[m];return typeof j=="function"?j:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(N){{for(var j=arguments.length,Z=new Array(j>1?j-1:0),tt=1;tt<j;tt++)Z[tt-1]=arguments[tt];A("error",N,Z)}}function A(N,j,Z){{var tt=_.ReactDebugCurrentFrame,pt=tt.getStackAddendum();pt!==""&&(j+="%s",Z=Z.concat([pt]));var yt=Z.map(function(dt){return String(dt)});yt.unshift("Warning: "+j),Function.prototype.apply.call(console[N],console,yt)}}var v=!1,y=!1,C=!1,k=!1,T=!1,O;O=Symbol.for("react.module.reference");function M(N){return!!(typeof N=="string"||typeof N=="function"||N===r||N===i||T||N===s||N===l||N===u||k||N===f||v||y||C||typeof N=="object"&&N!==null&&(N.$$typeof===d||N.$$typeof===h||N.$$typeof===o||N.$$typeof===a||N.$$typeof===c||N.$$typeof===O||N.getModuleId!==void 0))}function S(N,j,Z){var tt=N.displayName;if(tt)return tt;var pt=j.displayName||j.name||"";return pt!==""?Z+"("+pt+")":Z}function w(N){return N.displayName||"Context"}function E(N){if(N==null)return null;if(typeof N.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof N=="function")return N.displayName||N.name||null;if(typeof N=="string")return N;switch(N){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case s:return"StrictMode";case l:return"Suspense";case u:return"SuspenseList"}if(typeof N=="object")switch(N.$$typeof){case a:var j=N;return w(j)+".Consumer";case o:var Z=N;return w(Z._context)+".Provider";case c:return S(N,N.render,"ForwardRef");case h:var tt=N.displayName||null;return tt!==null?tt:E(N.type)||"Memo";case d:{var pt=N,yt=pt._payload,dt=pt._init;try{return E(dt(yt))}catch{return null}}}return null}var I=Object.assign,P=0,R,D,W,V,G,z,q;function X(){}X.__reactDisabledLog=!0;function ot(){{if(P===0){R=console.log,D=console.info,W=console.warn,V=console.error,G=console.group,z=console.groupCollapsed,q=console.groupEnd;var N={configurable:!0,enumerable:!0,value:X,writable:!0};Object.defineProperties(console,{info:N,log:N,warn:N,error:N,group:N,groupCollapsed:N,groupEnd:N})}P++}}function Q(){{if(P--,P===0){var N={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},N,{value:R}),info:I({},N,{value:D}),warn:I({},N,{value:W}),error:I({},N,{value:V}),group:I({},N,{value:G}),groupCollapsed:I({},N,{value:z}),groupEnd:I({},N,{value:q})})}P<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var st=_.ReactCurrentDispatcher,B;function L(N,j,Z){{if(B===void 0)try{throw Error()}catch(pt){var tt=pt.stack.trim().match(/\n( *(at )?)/);B=tt&&tt[1]||""}return`
`+B+N}}var F=!1,$;{var wt=typeof WeakMap=="function"?WeakMap:Map;$=new wt}function mt(N,j){if(!N||F)return"";{var Z=$.get(N);if(Z!==void 0)return Z}var tt;F=!0;var pt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var yt;yt=st.current,st.current=null,ot();try{if(j){var dt=function(){throw Error()};if(Object.defineProperty(dt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(dt,[])}catch(Ze){tt=Ze}Reflect.construct(N,[],dt)}else{try{dt.call()}catch(Ze){tt=Ze}N.call(dt.prototype)}}else{try{throw Error()}catch(Ze){tt=Ze}N()}}catch(Ze){if(Ze&&tt&&typeof Ze.stack=="string"){for(var ht=Ze.stack.split(`
`),ne=tt.stack.split(`
`),Pt=ht.length-1,Wt=ne.length-1;Pt>=1&&Wt>=0&&ht[Pt]!==ne[Wt];)Wt--;for(;Pt>=1&&Wt>=0;Pt--,Wt--)if(ht[Pt]!==ne[Wt]){if(Pt!==1||Wt!==1)do if(Pt--,Wt--,Wt<0||ht[Pt]!==ne[Wt]){var pe=`
`+ht[Pt].replace(" at new "," at ");return N.displayName&&pe.includes("<anonymous>")&&(pe=pe.replace("<anonymous>",N.displayName)),typeof N=="function"&&$.set(N,pe),pe}while(Pt>=1&&Wt>=0);break}}}finally{F=!1,st.current=yt,Q(),Error.prepareStackTrace=pt}var nr=N?N.displayName||N.name:"",$u=nr?L(nr):"";return typeof N=="function"&&$.set(N,$u),$u}function Bt(N,j,Z){return mt(N,!1)}function Ve(N){var j=N.prototype;return!!(j&&j.isReactComponent)}function H(N,j,Z){if(N==null)return"";if(typeof N=="function")return mt(N,Ve(N));if(typeof N=="string")return L(N);switch(N){case l:return L("Suspense");case u:return L("SuspenseList")}if(typeof N=="object")switch(N.$$typeof){case c:return Bt(N.render);case h:return H(N.type,j,Z);case d:{var tt=N,pt=tt._payload,yt=tt._init;try{return H(yt(pt),j,Z)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,xt={},ct=_.ReactDebugCurrentFrame;function et(N){if(N){var j=N._owner,Z=H(N.type,N._source,j?j.type:null);ct.setExtraStackFrame(Z)}else ct.setExtraStackFrame(null)}function Tt(N,j,Z,tt,pt){{var yt=Function.call.bind(J);for(var dt in N)if(yt(N,dt)){var ht=void 0;try{if(typeof N[dt]!="function"){var ne=Error((tt||"React class")+": "+Z+" type `"+dt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof N[dt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}ht=N[dt](j,dt,tt,Z,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Pt){ht=Pt}ht&&!(ht instanceof Error)&&(et(pt),x("%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).",tt||"React class",Z,dt,typeof ht),et(null)),ht instanceof Error&&!(ht.message in xt)&&(xt[ht.message]=!0,et(pt),x("Failed %s type: %s",Z,ht.message),et(null))}}}var Xt=Array.isArray;function ee(N){return Xt(N)}function at(N){{var j=typeof Symbol=="function"&&Symbol.toStringTag,Z=j&&N[Symbol.toStringTag]||N.constructor.name||"Object";return Z}}function de(N){try{return Fe(N),!1}catch{return!0}}function Fe(N){return""+N}function fe(N){if(de(N))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",at(N)),Fe(N)}var Qr=_.ReactCurrentOwner,z1={key:!0,ref:!0,__self:!0,__source:!0},Hu,Yu,qo;qo={};function B1(N){if(J.call(N,"ref")){var j=Object.getOwnPropertyDescriptor(N,"ref").get;if(j&&j.isReactWarning)return!1}return N.ref!==void 0}function G1(N){if(J.call(N,"key")){var j=Object.getOwnPropertyDescriptor(N,"key").get;if(j&&j.isReactWarning)return!1}return N.key!==void 0}function U1(N,j){if(typeof N.ref=="string"&&Qr.current&&j&&Qr.current.stateNode!==j){var Z=E(Qr.current.type);qo[Z]||(x('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',E(Qr.current.type),N.ref),qo[Z]=!0)}}function H1(N,j){{var Z=function(){Hu||(Hu=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};Z.isReactWarning=!0,Object.defineProperty(N,"key",{get:Z,configurable:!0})}}function Y1(N,j){{var Z=function(){Yu||(Yu=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};Z.isReactWarning=!0,Object.defineProperty(N,"ref",{get:Z,configurable:!0})}}var X1=function(N,j,Z,tt,pt,yt,dt){var ht={$$typeof:t,type:N,key:j,ref:Z,props:dt,_owner:yt};return ht._store={},Object.defineProperty(ht._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ht,"_self",{configurable:!1,enumerable:!1,writable:!1,value:tt}),Object.defineProperty(ht,"_source",{configurable:!1,enumerable:!1,writable:!1,value:pt}),Object.freeze&&(Object.freeze(ht.props),Object.freeze(ht)),ht};function Z1(N,j,Z,tt,pt){{var yt,dt={},ht=null,ne=null;Z!==void 0&&(fe(Z),ht=""+Z),G1(j)&&(fe(j.key),ht=""+j.key),B1(j)&&(ne=j.ref,U1(j,pt));for(yt in j)J.call(j,yt)&&!z1.hasOwnProperty(yt)&&(dt[yt]=j[yt]);if(N&&N.defaultProps){var Pt=N.defaultProps;for(yt in Pt)dt[yt]===void 0&&(dt[yt]=Pt[yt])}if(ht||ne){var Wt=typeof N=="function"?N.displayName||N.name||"Unknown":N;ht&&H1(dt,Wt),ne&&Y1(dt,Wt)}return X1(N,ht,ne,pt,tt,Qr.current,dt)}}var Qo=_.ReactCurrentOwner,Xu=_.ReactDebugCurrentFrame;function er(N){if(N){var j=N._owner,Z=H(N.type,N._source,j?j.type:null);Xu.setExtraStackFrame(Z)}else Xu.setExtraStackFrame(null)}var Ko;Ko=!1;function Jo(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function Zu(){{if(Qo.current){var N=E(Qo.current.type);if(N)return`
Check the render method of \``+N+"`."}return""}}function q1(N){{if(N!==void 0){var j=N.fileName.replace(/^.*[\\\/]/,""),Z=N.lineNumber;return`
Check your code at `+j+":"+Z+"."}return""}}var qu={};function Q1(N){{var j=Zu();if(!j){var Z=typeof N=="string"?N:N.displayName||N.name;Z&&(j=`
Check the top-level render call using <`+Z+">.")}return j}}function Qu(N,j){{if(!N._store||N._store.validated||N.key!=null)return;N._store.validated=!0;var Z=Q1(j);if(qu[Z])return;qu[Z]=!0;var tt="";N&&N._owner&&N._owner!==Qo.current&&(tt=" It was passed a child from "+E(N._owner.type)+"."),er(N),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Z,tt),er(null)}}function Ku(N,j){{if(typeof N!="object")return;if(ee(N))for(var Z=0;Z<N.length;Z++){var tt=N[Z];Jo(tt)&&Qu(tt,j)}else if(Jo(N))N._store&&(N._store.validated=!0);else if(N){var pt=g(N);if(typeof pt=="function"&&pt!==N.entries)for(var yt=pt.call(N),dt;!(dt=yt.next()).done;)Jo(dt.value)&&Qu(dt.value,j)}}}function K1(N){{var j=N.type;if(j==null||typeof j=="string")return;var Z;if(typeof j=="function")Z=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===c||j.$$typeof===h))Z=j.propTypes;else return;if(Z){var tt=E(j);Tt(Z,N.props,"prop",tt,N)}else if(j.PropTypes!==void 0&&!Ko){Ko=!0;var pt=E(j);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",pt||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function J1(N){{for(var j=Object.keys(N.props),Z=0;Z<j.length;Z++){var tt=j[Z];if(tt!=="children"&&tt!=="key"){er(N),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",tt),er(null);break}}N.ref!==null&&(er(N),x("Invalid attribute `ref` supplied to `React.Fragment`."),er(null))}}function Ju(N,j,Z,tt,pt,yt){{var dt=M(N);if(!dt){var ht="";(N===void 0||typeof N=="object"&&N!==null&&Object.keys(N).length===0)&&(ht+=" 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 ne=q1(pt);ne?ht+=ne:ht+=Zu();var Pt;N===null?Pt="null":ee(N)?Pt="array":N!==void 0&&N.$$typeof===t?(Pt="<"+(E(N.type)||"Unknown")+" />",ht=" Did you accidentally export a JSX literal instead of a component?"):Pt=typeof N,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Pt,ht)}var Wt=Z1(N,j,Z,pt,yt);if(Wt==null)return Wt;if(dt){var pe=j.children;if(pe!==void 0)if(tt)if(ee(pe)){for(var nr=0;nr<pe.length;nr++)Ku(pe[nr],N);Object.freeze&&Object.freeze(pe)}else x("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 Ku(pe,N)}return N===r?J1(Wt):K1(Wt),Wt}}function $1(N,j,Z){return Ju(N,j,Z,!0)}function tT(N,j,Z){return Ju(N,j,Z,!1)}var eT=tT,nT=$1;rr.Fragment=r,rr.jsx=eT,rr.jsxs=nT}()),rr}var sr={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ea;function rh(){if(ea)return sr;ea=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,h={},d=null,f=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(f=c.ref);for(u in c)r.call(c,u)&&!i.hasOwnProperty(u)&&(h[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)h[u]===void 0&&(h[u]=c[u]);return{$$typeof:t,type:a,key:d,ref:f,props:h,_owner:s.current}}return sr.Fragment=n,sr.jsx=o,sr.jsxs=o,sr}process.env.NODE_ENV==="production"?li.exports=rh():li.exports=nh();var Y=li.exports;const ui=e=>b.useCallback(n=>{(n.metaKey||n.altKey)&&n.button===0&&e()},[e]),Kr=(e,t,n=[])=>{if(!t)return e;const r={...e,...t},s={...e};for(const i in r)if(!n.includes(i))if(i in e)s[i]=e[i];else{if(i==="children"||i==="className"||i==="style")continue;s[i]=t[i]}return s},ir=(e,t,n,r,s=!0,i=null)=>{const o=b.useRef({width:t,height:n});return b.useEffect(()=>{const a=sh(r,100),c=new ResizeObserver(([l])=>{const{width:u,height:h}=l.contentRect;(u!==o.current.width||h!==o.current.height)&&(o.current={width:u,height:h},s?a():r())});return e.current&&c.observe(e.current),()=>c.disconnect()},[e,s,t,n,i]),o},sh=(e,t)=>{let n;return function(){n||(e(),n=!0,setTimeout(()=>{n=!1,e()},t))}};function na(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=na(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ih(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=na(e))&&(r&&(r+=" "),r+=t);return r}const hi="-";function oh(e){const t=ch(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function s(o){const a=o.split(hi);return a[0]===""&&a.length!==1&&a.shift(),ra(a,t)||ah(o)}function i(o,a){const c=n[o]||[];return a&&r[o]?[...c,...r[o]]:c}return{getClassGroupId:s,getConflictingClassGroupIds:i}}function ra(e,t){var o;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?ra(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(hi);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId}const sa=/^\[(.+)\]$/;function ah(e){if(sa.test(e)){const t=sa.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function ch(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return uh(Object.entries(e.classGroups),n).forEach(([i,o])=>{di(o,r,i,t)}),r}function di(e,t,n,r){e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:ia(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(lh(s)){di(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,o])=>{di(o,ia(t,i),n,r)})})}function ia(e,t){let n=e;return t.split(hi).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function lh(e){return e.isThemeGetter}function uh(e,t){return t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,s]}):e}function hh(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function s(i,o){n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=r.get(i))!==void 0)return s(i,o),o},set(i,o){n.has(i)?n.set(i,o):s(i,o)}}}const oa="!";function dh(e){const t=e.separator,n=t.length===1,r=t[0],s=t.length;return function(o){const a=[];let c=0,l=0,u;for(let m=0;m<o.length;m++){let g=o[m];if(c===0){if(g===r&&(n||o.slice(m,m+s)===t)){a.push(o.slice(l,m)),l=m+s;continue}if(g==="/"){u=m;continue}}g==="["?c++:g==="]"&&c--}const h=a.length===0?o:o.substring(l),d=h.startsWith(oa),f=d?h.substring(1):h,p=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}}}function fh(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function ph(e){return{cache:hh(e.cacheSize),splitModifiers:dh(e),...oh(e)}}const mh=/\s+/;function gh(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=new Set;return e.trim().split(mh).map(o=>{const{modifiers:a,hasImportantModifier:c,baseClassName:l,maybePostfixModifierPosition:u}=n(o);let h=r(u?l.substring(0,u):l),d=!!u;if(!h){if(!u)return{isTailwindClass:!1,originalClassName:o};if(h=r(l),!h)return{isTailwindClass:!1,originalClassName:o};d=!1}const f=fh(a).join(":");return{isTailwindClass:!0,modifierId:c?f+oa:f,classGroupId:h,originalClassName:o,hasPostfixModifier:d}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:c,hasPostfixModifier:l}=o,u=a+c;return i.has(u)?!1:(i.add(u),s(c,l).forEach(h=>i.add(a+h)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function _h(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=aa(t))&&(r&&(r+=" "),r+=n);return r}function aa(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=aa(e[r]))&&(n&&(n+=" "),n+=t);return n}function yh(e,...t){let n,r,s,i=o;function o(c){const l=t.reduce((u,h)=>h(u),e());return n=ph(l),r=n.cache.get,s=n.cache.set,i=a,a(c)}function a(c){const l=r(c);if(l)return l;const u=gh(c,n);return s(c,u),u}return function(){return i(_h.apply(null,arguments))}}function St(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const ca=/^\[(?:([a-z-]+):)?(.+)\]$/i,vh=/^\d+\/\d+$/,bh=new Set(["px","full","screen"]),wh=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xh=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Th=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sh=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function me(e){return cn(e)||bh.has(e)||vh.test(e)}function qe(e){return Mn(e,"length",Rh)}function cn(e){return!!e&&!Number.isNaN(Number(e))}function Jr(e){return Mn(e,"number",cn)}function or(e){return!!e&&Number.isInteger(Number(e))}function Ch(e){return e.endsWith("%")&&cn(e.slice(0,-1))}function it(e){return ca.test(e)}function Qe(e){return wh.test(e)}const kh=new Set(["length","size","percentage"]);function Ah(e){return Mn(e,kh,la)}function Nh(e){return Mn(e,"position",la)}const Eh=new Set(["image","url"]);function Mh(e){return Mn(e,Eh,Dh)}function Ih(e){return Mn(e,"",Oh)}function ar(){return!0}function Mn(e,t,n){const r=ca.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function Rh(e){return xh.test(e)}function la(){return!1}function Oh(e){return Th.test(e)}function Dh(e){return Sh.test(e)}function Ph(){const e=St("colors"),t=St("spacing"),n=St("blur"),r=St("brightness"),s=St("borderColor"),i=St("borderRadius"),o=St("borderSpacing"),a=St("borderWidth"),c=St("contrast"),l=St("grayscale"),u=St("hueRotate"),h=St("invert"),d=St("gap"),f=St("gradientColorStops"),p=St("gradientColorStopPositions"),m=St("inset"),g=St("margin"),_=St("opacity"),x=St("padding"),A=St("saturate"),v=St("scale"),y=St("sepia"),C=St("skew"),k=St("space"),T=St("translate"),O=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto",it,t],w=()=>[it,t],E=()=>["",me,qe],I=()=>["auto",cn,it],P=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],R=()=>["solid","dashed","dotted","double","none"],D=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"],W=()=>["start","end","center","between","around","evenly","stretch"],V=()=>["","0",it],G=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>[cn,Jr],q=()=>[cn,it];return{cacheSize:500,separator:":",theme:{colors:[ar],spacing:[me,qe],blur:["none","",Qe,it],brightness:z(),borderColor:[e],borderRadius:["none","","full",Qe,it],borderSpacing:w(),borderWidth:E(),contrast:z(),grayscale:V(),hueRotate:q(),invert:V(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[Ch,qe],inset:S(),margin:S(),opacity:z(),padding:w(),saturate:z(),scale:z(),sepia:V(),skew:q(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",it]}],container:["container"],columns:[{columns:[Qe]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...P(),it]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",or,it]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",it]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",or,it]}],"grid-cols":[{"grid-cols":[ar]}],"col-start-end":[{col:["auto",{span:["full",or,it]},it]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[ar]}],"row-start-end":[{row:["auto",{span:[or,it]},it]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",it]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",it]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",it,t]}],"min-w":[{"min-w":["min","max","fit",it,me]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Qe]},Qe,it]}],h:[{h:[it,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",me,it]}],"max-h":[{"max-h":[it,t,"min","max","fit"]}],"font-size":[{text:["base",Qe,qe]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jr]}],"font-family":[{font:[ar]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",it]}],"line-clamp":[{"line-clamp":["none",cn,Jr]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",me,it]}],"list-image":[{"list-image":["none",it]}],"list-style-type":[{list:["none","disc","decimal",it]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...R(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",me,qe]}],"underline-offset":[{"underline-offset":["auto",me,it]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",it]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",it]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...P(),Nh]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Ah]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Mh]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...R(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:R()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...R()]}],"outline-offset":[{"outline-offset":[me,it]}],"outline-w":[{outline:[me,qe]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:E()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[me,qe]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Qe,Ih]}],"shadow-color":[{shadow:[ar]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":D()}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Qe,it]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[A]}],sepia:[{sepia:[y]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[A]}],"backdrop-sepia":[{"backdrop-sepia":[y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",it]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",it]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",it]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[v]}],"scale-x":[{"scale-x":[v]}],"scale-y":[{"scale-y":[v]}],rotate:[{rotate:[or,it]}],"translate-x":[{"translate-x":[T]}],"translate-y":[{"translate-y":[T]}],"skew-x":[{"skew-x":[C]}],"skew-y":[{"skew-y":[C]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",it]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",it]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",it]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[me,qe,Jr]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Vh=yh(Ph);function K(...e){return Vh(ih(e))}const re=(e,t,n)=>e<t?t:e>n?n:e,Ke=(e,t)=>(t-Math.abs(e))/2,Et=(e,t=2)=>Number(e.toFixed(t)),Fh=e=>{const t=s=>s<10?"0"+s:s.toString(),n=Math.floor(e/60),r=e%60;return t(n)+":"+t(r)},In=(e,t,n)=>{let r=e(t);return Number.isNaN(r)&&(r=n),r};function Lh(e,t){const n=document.createElement("div");n.style.display="none",document.body.appendChild(n),n.style.color=e;const r=window.getComputedStyle(n).color;document.body.removeChild(n);const s=r.match(/^rgba?\((\d+), (\d+), (\d+)(?:, (\d+))?\)$/);if(!s)return e;const[,i,o,a]=s.map(Number);return`rgba(${i}, ${o}, ${a}, ${t})`}const ua=b.createContext(null),Wh=ua.Provider;var ha=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Kt=e=>!e||typeof e!="object"||Object.keys(e).length===0,jh=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function da(e,t){e.forEach(function(n){Array.isArray(n)?da(n,t):t.push(n)})}function fa(e){let t=[];return da(e,t),t}var pa=(...e)=>fa(e).filter(Boolean),ma=(e,t)=>{let n={},r=Object.keys(e),s=Object.keys(t);for(let i of r)if(s.includes(i)){let o=e[i],a=t[i];typeof o=="object"&&typeof a=="object"?n[i]=ma(o,a):Array.isArray(o)||Array.isArray(a)?n[i]=pa(a,o):n[i]=a+" "+o}else n[i]=e[i];for(let i of s)r.includes(i)||(n[i]=t[i]);return n},ga=e=>!e||typeof e!="string"?e:e.replace(/\s+/g," ").trim();function zh(){for(var e=0,t,n,r="";e<arguments.length;)(t=arguments[e++])&&(n=_a(t))&&(r&&(r+=" "),r+=n);return r}function _a(e){if(typeof e=="string")return e;for(var t,n="",r=0;r<e.length;r++)e[r]&&(t=_a(e[r]))&&(n&&(n+=" "),n+=t);return n}var fi="-";function Bh(e){var t=Uh(e),n=e.conflictingClassGroups,r=e.conflictingClassGroupModifiers,s=r===void 0?{}:r;function i(a){var c=a.split(fi);return c[0]===""&&c.length!==1&&c.shift(),ya(c,t)||Gh(a)}function o(a,c){var l=n[a]||[];return c&&s[a]?[].concat(l,s[a]):l}return{getClassGroupId:i,getConflictingClassGroupIds:o}}function ya(e,t){var o;if(e.length===0)return t.classGroupId;var n=e[0],r=t.nextPart.get(n),s=r?ya(e.slice(1),r):void 0;if(s)return s;if(t.validators.length!==0){var i=e.join(fi);return(o=t.validators.find(function(a){var c=a.validator;return c(i)}))==null?void 0:o.classGroupId}}var va=/^\[(.+)\]$/;function Gh(e){if(va.test(e)){var t=va.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Uh(e){var t=e.theme,n=e.prefix,r={nextPart:new Map,validators:[]},s=Yh(Object.entries(e.classGroups),n);return s.forEach(function(i){var o=i[0],a=i[1];pi(a,r,o,t)}),r}function pi(e,t,n,r){e.forEach(function(s){if(typeof s=="string"){var i=s===""?t:ba(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(Hh(s)){pi(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(function(o){var a=o[0],c=o[1];pi(c,ba(t,a),n,r)})})}function ba(e,t){var n=e;return t.split(fi).forEach(function(r){n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Hh(e){return e.isThemeGetter}function Yh(e,t){return t?e.map(function(n){var r=n[0],s=n[1],i=s.map(function(o){return typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(function(a){var c=a[0],l=a[1];return[t+c,l]})):o});return[r,i]}):e}function Xh(e){if(e<1)return{get:function(){},set:function(){}};var t=0,n=new Map,r=new Map;function s(i,o){n.set(i,o),t++,t>e&&(t=0,r=n,n=new Map)}return{get:function(o){var a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return s(o,a),a},set:function(o,a){n.has(o)?n.set(o,a):s(o,a)}}}var wa="!";function Zh(e){var t=e.separator||":",n=t.length===1,r=t[0],s=t.length;return function(o){for(var a=[],c=0,l=0,u,h=0;h<o.length;h++){var d=o[h];if(c===0){if(d===r&&(n||o.slice(h,h+s)===t)){a.push(o.slice(l,h)),l=h+s;continue}if(d==="/"){u=h;continue}}d==="["?c++:d==="]"&&c--}var f=a.length===0?o:o.substring(l),p=f.startsWith(wa),m=p?f.substring(1):f,g=u&&u>l?u-l:void 0;return{modifiers:a,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:g}}}function qh(e){if(e.length<=1)return e;var t=[],n=[];return e.forEach(function(r){var s=r[0]==="[";s?(t.push.apply(t,n.sort().concat([r])),n=[]):n.push(r)}),t.push.apply(t,n.sort()),t}function Qh(e){return{cache:Xh(e.cacheSize),splitModifiers:Zh(e),...Bh(e)}}var Kh=/\s+/;function Jh(e,t){var n=t.splitModifiers,r=t.getClassGroupId,s=t.getConflictingClassGroupIds,i=new Set;return e.trim().split(Kh).map(function(o){var a=n(o),c=a.modifiers,l=a.hasImportantModifier,u=a.baseClassName,h=a.maybePostfixModifierPosition,d=r(h?u.substring(0,h):u),f=!!h;if(!d){if(!h)return{isTailwindClass:!1,originalClassName:o};if(d=r(u),!d)return{isTailwindClass:!1,originalClassName:o};f=!1}var p=qh(c).join(":"),m=l?p+wa:p;return{isTailwindClass:!0,modifierId:m,classGroupId:d,originalClassName:o,hasPostfixModifier:f}}).reverse().filter(function(o){if(!o.isTailwindClass)return!0;var a=o.modifierId,c=o.classGroupId,l=o.hasPostfixModifier,u=a+c;return i.has(u)?!1:(i.add(u),s(c,l).forEach(function(h){return i.add(a+h)}),!0)}).reverse().map(function(o){return o.originalClassName}).join(" ")}function mi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,s,i,o=a;function a(l){var u=t[0],h=t.slice(1),d=h.reduce(function(f,p){return p(f)},u());return r=Qh(d),s=r.cache.get,i=r.cache.set,o=c,c(l)}function c(l){var u=s(l);if(u)return u;var h=Jh(l,r);return i(l,h),h}return function(){return o(zh.apply(null,arguments))}}function Ct(e){var t=function(r){return r[e]||[]};return t.isThemeGetter=!0,t}var xa=/^\[(?:([a-z-]+):)?(.+)\]$/i,$h=/^\d+\/\d+$/,td=new Set(["px","full","screen"]),ed=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,rd=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function ge(e){return ln(e)||td.has(e)||$h.test(e)||gi(e)}function gi(e){return un(e,"length",ld)}function sd(e){return un(e,"size",Ta)}function id(e){return un(e,"position",Ta)}function od(e){return un(e,"url",ud)}function $r(e){return un(e,"number",ln)}function ln(e){return!Number.isNaN(Number(e))}function ad(e){return e.endsWith("%")&&ln(e.slice(0,-1))}function cr(e){return Sa(e)||un(e,"number",Sa)}function lt(e){return xa.test(e)}function lr(){return!0}function Je(e){return ed.test(e)}function cd(e){return un(e,"",hd)}function un(e,t,n){var r=xa.exec(e);return r?r[1]?r[1]===t:n(r[2]):!1}function ld(e){return nd.test(e)}function Ta(){return!1}function ud(e){return e.startsWith("url(")}function Sa(e){return Number.isInteger(Number(e))}function hd(e){return rd.test(e)}function _i(){var e=Ct("colors"),t=Ct("spacing"),n=Ct("blur"),r=Ct("brightness"),s=Ct("borderColor"),i=Ct("borderRadius"),o=Ct("borderSpacing"),a=Ct("borderWidth"),c=Ct("contrast"),l=Ct("grayscale"),u=Ct("hueRotate"),h=Ct("invert"),d=Ct("gap"),f=Ct("gradientColorStops"),p=Ct("gradientColorStopPositions"),m=Ct("inset"),g=Ct("margin"),_=Ct("opacity"),x=Ct("padding"),A=Ct("saturate"),v=Ct("scale"),y=Ct("sepia"),C=Ct("skew"),k=Ct("space"),T=Ct("translate"),O=function(){return["auto","contain","none"]},M=function(){return["auto","hidden","clip","visible","scroll"]},S=function(){return["auto",lt,t]},w=function(){return[lt,t]},E=function(){return["",ge]},I=function(){return["auto",ln,lt]},P=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},R=function(){return["solid","dashed","dotted","double","none"]},D=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},W=function(){return["start","end","center","between","around","evenly","stretch"]},V=function(){return["","0",lt]},G=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},z=function(){return[ln,$r]},q=function(){return[ln,lt]};return{cacheSize:500,theme:{colors:[lr],spacing:[ge],blur:["none","",Je,lt],brightness:z(),borderColor:[e],borderRadius:["none","","full",Je,lt],borderSpacing:w(),borderWidth:E(),contrast:z(),grayscale:V(),hueRotate:q(),invert:V(),gap:w(),gradientColorStops:[e],gradientColorStopPositions:[ad,gi],inset:S(),margin:S(),opacity:z(),padding:w(),saturate:z(),scale:z(),sepia:V(),skew:q(),space:w(),translate:w()},classGroups:{aspect:[{aspect:["auto","square","video",lt]}],container:["container"],columns:[{columns:[Je]}],"break-after":[{"break-after":G()}],"break-before":[{"break-before":G()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(P(),[lt])}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",cr]}],basis:[{basis:S()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",lt]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",cr]}],"grid-cols":[{"grid-cols":[lr]}],"col-start-end":[{col:["auto",{span:["full",cr]},lt]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[lr]}],"row-start-end":[{row:["auto",{span:[cr]},lt]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",lt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",lt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal"].concat(W())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(W(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(W(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",lt,t]}],"min-w":[{"min-w":["min","max","fit",lt,ge]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[Je]},Je,lt]}],h:[{h:[lt,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",lt,ge]}],"max-h":[{"max-h":[lt,t,"min","max","fit"]}],"font-size":[{text:["base",Je,gi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",$r]}],"font-family":[{font:[lr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",lt]}],"line-clamp":[{"line-clamp":["none",ln,$r]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",lt,ge]}],"list-image":[{"list-image":["none",lt]}],"list-style-type":[{list:["none","disc","decimal",lt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(R(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",ge]}],"underline-offset":[{"underline-offset":["auto",lt,ge]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:w()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",lt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",lt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(P(),[id])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",sd]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},od]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"roun