@unizap/uniui 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(O,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(O=typeof globalThis<"u"?globalThis:O||self,w(O.UniUI={},O.React,O.ReactDOM))})(this,function(O,w,Te){"use strict";function Wr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const $=Wr(w);function mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We={exports:{}},ze={};/**
1
+ (function(O,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],w):(O=typeof globalThis<"u"?globalThis:O||self,w(O.UniUI={},O.React,O.ReactDOM))})(this,function(O,w,Te){"use strict";function Gr(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const $=Gr(w);function mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We={exports:{}},ze={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var gn;function Ur(){if(gn)return ze;gn=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var l in o)l!=="key"&&(a[l]=o[l])}else a=o;return o=a.ref,{$$typeof:e,type:r,key:i,ref:o!==void 0?o:null,props:a}}return ze.Fragment=n,ze.jsx=t,ze.jsxs=t,ze}var Oe={};/**
9
+ */var gn;function Wr(){if(gn)return ze;gn=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function t(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return ze.Fragment=n,ze.jsx=t,ze.jsxs=t,ze}var Oe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var vn;function Yr(){return vn||(vn=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===X?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case C:return"Suspense";case V:return"SuspenseList";case A:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case v:return"Portal";case y:return(h.displayName||"Context")+".Provider";case R:return(h._context.displayName||"Context")+".Consumer";case E:var S=h.render;return h=h.displayName,h||(h=S.displayName||S.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case T:return S=h.displayName||null,S!==null?S:e(h.type)||"Memo";case B:S=h._payload,h=h._init;try{return e(h(S))}catch{}}return null}function n(h){return""+h}function t(h){try{n(h);var S=!1}catch{S=!0}if(S){S=console;var F=S.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return F.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),n(h)}}function r(h){if(h===m)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===B)return"<...>";try{var S=e(h);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var h=ae.A;return h===null?null:h.getOwner()}function a(){return Error("react-stack-top-frame")}function i(h){if(se.call(h,"key")){var S=Object.getOwnPropertyDescriptor(h,"key").get;if(S&&S.isReactWarning)return!1}return h.key!==void 0}function l(h,S){function F(){K||(K=!0,console.error("%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://react.dev/link/special-props)",S))}F.isReactWarning=!0,Object.defineProperty(h,"key",{get:F,configurable:!0})}function c(){var h=e(this.type);return I[h]||(I[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function u(h,S,F,L,D,H,z,P){return F=H.ref,h={$$typeof:f,type:h,key:S,props:H,_owner:D},(F!==void 0?F:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:c}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function d(h,S,F,L,D,H,z,P){var M=S.children;if(M!==void 0)if(L)if(ee(M)){for(L=0;L<M.length;L++)g(M[L]);Object.freeze&&Object.freeze(M)}else console.error("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 g(M);if(se.call(S,"key")){M=e(h);var G=Object.keys(S).filter(function(j){return j!=="key"});L=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",J[M+L]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var vn;function Ur(){return vn||(vn=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===X?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case m:return"Fragment";case x:return"Profiler";case b:return"StrictMode";case C:return"Suspense";case V:return"SuspenseList";case A:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case v:return"Portal";case y:return(h.displayName||"Context")+".Provider";case R:return(h._context.displayName||"Context")+".Consumer";case E:var S=h.render;return h=h.displayName,h||(h=S.displayName||S.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case T:return S=h.displayName||null,S!==null?S:e(h.type)||"Memo";case B:S=h._payload,h=h._init;try{return e(h(S))}catch{}}return null}function n(h){return""+h}function t(h){try{n(h);var S=!1}catch{S=!0}if(S){S=console;var F=S.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return F.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),n(h)}}function r(h){if(h===m)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===B)return"<...>";try{var S=e(h);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var h=ie.A;return h===null?null:h.getOwner()}function i(){return Error("react-stack-top-frame")}function a(h){if(se.call(h,"key")){var S=Object.getOwnPropertyDescriptor(h,"key").get;if(S&&S.isReactWarning)return!1}return h.key!==void 0}function l(h,S){function F(){K||(K=!0,console.error("%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://react.dev/link/special-props)",S))}F.isReactWarning=!0,Object.defineProperty(h,"key",{get:F,configurable:!0})}function c(){var h=e(this.type);return I[h]||(I[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function u(h,S,F,L,D,H,z,P){return F=H.ref,h={$$typeof:f,type:h,key:S,props:H,_owner:D},(F!==void 0?F:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:c}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:z}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function d(h,S,F,L,D,H,z,P){var M=S.children;if(M!==void 0)if(L)if(ee(M)){for(L=0;L<M.length;L++)g(M[L]);Object.freeze&&Object.freeze(M)}else console.error("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 g(M);if(se.call(S,"key")){M=e(h);var G=Object.keys(S).filter(function(j){return j!=="key"});L=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",J[M+L]||(G=0<G.length?"{"+G.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,L,M,G,M),J[M+L]=!0)}if(M=null,F!==void 0&&(t(F),M=""+F),i(S)&&(t(S.key),M=""+S.key),"key"in S){F={};for(var W in S)W!=="key"&&(F[W]=S[W])}else F=S;return M&&l(F,typeof h=="function"?h.displayName||h.name||"Unknown":h),u(h,M,H,D,o(),F,z,P)}function g(h){typeof h=="object"&&h!==null&&h.$$typeof===f&&h._store&&(h._store.validated=1)}var p=w,f=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),y=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ae=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,ee=Array.isArray,q=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(h){return h()}};var K,I={},ne=p["react-stack-bottom-frame"].bind(p,a)(),ue=q(r(a)),J={};Oe.Fragment=m,Oe.jsx=function(h,S,F,L,D){var H=1e4>ae.recentlyCreatedOwnerStacks++;return d(h,S,F,!1,L,D,H?Error("react-stack-top-frame"):ne,H?q(r(h)):ue)},Oe.jsxs=function(h,S,F,L,D){var H=1e4>ae.recentlyCreatedOwnerStacks++;return d(h,S,F,!0,L,D,H?Error("react-stack-top-frame"):ne,H?q(r(h)):ue)}}()),Oe}var hn;function Zr(){return hn||(hn=1,process.env.NODE_ENV==="production"?We.exports=Ur():We.exports=Yr()),We.exports}var s=Zr();const fe={dark:{filled:"bg-color-gray-800 text-color-gray-200 hover:bg-color-gray-900",outline:"border-color-gray-900 text-color-gray-900 hover:bg-color-gray-50",transparent:"text-color-gray-900 hover:bg-color-gray-50",accent:"accent-color-gray-900",peer:"peer-checked:border-color-gray-900 peer-checked:text-color-gray-900",text:"text-color-gray-900"},gray:{filled:"bg-color-gray-500 text-color-white hover:bg-color-gray-600",outline:"border-color-gray-500 text-color-gray-500 hover:bg-color-gray-50",transparent:"text-color-gray-500 hover:bg-color-gray-50",accent:"accent-color-gray-500",peer:"peer-checked:border-color-gray-500 peer-checked:text-color-gray-500",text:"text-color-gray-500"},light:{filled:"bg-color-white text-color-gray-700 hover:bg-color-gray-50",outline:"border-color-white text-color-white hover:bg-color-gray-50",transparent:"text-color-white hover:bg-color-gray-50",accent:"accent-color-white",peer:"peer-checked:border-color-white peer-checked:text-color-white",text:"text-color-white"},pearl:{filled:"bg-color-zinc-200 text-color-zinc-600 hover:bg-color-zinc-300",outline:"border-color-zinc-200 text-color-zinc-900 hover:bg-color-zinc-50",transparent:"text-color-zinc-600 hover:bg-color-zinc-50",accent:"accent-color-zinc-200",peer:"peer-checked:border-color-zinc-200 peer-checked:text-color-zinc-200",text:"text-color-zinc-600"},red:{filled:"bg-color-red-500 text-color-white hover:bg-color-red-600",outline:"border-color-red-500 text-color-red-500 hover:bg-color-red-50",transparent:"text-color-red-500 hover:bg-color-red-50",accent:"accent-color-red-500",peer:"peer-checked:border-color-red-500 peer-checked:text-color-red-500",text:"text-color-red-500"},orange:{filled:"bg-color-orange-500 text-color-white hover:bg-color-orange-600",outline:"border-color-orange-500 text-color-orange-500 hover:bg-color-orange-50",transparent:"text-color-orange-500 hover:bg-color-orange-50",accent:"accent-color-orange-500",peer:"peer-checked:border-color-orange-500 peer-checked:text-color-orange-500",text:"text-color-orange-500"},amber:{filled:"bg-color-amber-500 text-color-white hover:bg-color-amber-600",outline:"border-color-amber-500 text-color-amber-500 hover:bg-color-amber-50",transparent:"text-color-amber-500 hover:bg-color-amber-50",accent:"accent-color-amber-500",peer:"peer-checked:border-color-amber-500 peer-checked:text-color-amber-500",text:"text-color-amber-500"},yellow:{filled:"bg-color-yellow-500 text-color-white hover:bg-color-yellow-600",outline:"border-color-yellow-500 text-color-yellow-500 hover:bg-color-yellow-50",transparent:"text-color-yellow-500 hover:bg-color-yellow-50",accent:"accent-color-yellow-500",peer:"peer-checked:border-color-yellow-500 peer-checked:text-color-yellow-500",text:"text-color-yellow-500"},lime:{filled:"bg-color-lime-500 text-color-white hover:bg-color-lime-600",outline:"border-color-lime-500 text-color-lime-500 hover:bg-color-lime-50",transparent:"text-color-lime-500 hover:bg-color-lime-50",accent:"accent-color-lime-500",peer:"peer-checked:border-color-lime-500 peer-checked:text-color-lime-500",text:"text-color-lime-500"},green:{filled:"bg-color-green-500 text-color-white hover:bg-color-green-600",outline:"border-color-green-500 text-color-green-500 hover:bg-color-green-50",transparent:"text-color-green-500 hover:bg-color-green-50",accent:"accent-color-green-500",peer:"peer-checked:border-color-green-500 peer-checked:text-color-green-500",text:"text-color-green-500"},emerald:{filled:"bg-color-emerald-500 text-color-white hover:bg-color-emerald-600",outline:"border-color-emerald-500 text-color-emerald-500 hover:bg-color-emerald-50",transparent:"text-color-emerald-500 hover:bg-color-emerald-50",accent:"accent-color-emerald-500",peer:"peer-checked:border-color-emerald-500 peer-checked:text-color-emerald-500",text:"text-color-emerald-500"},teal:{filled:"bg-color-teal-500 text-color-white hover:bg-color-teal-600",outline:"border-color-teal-500 text-color-teal-500 hover:bg-color-teal-50",transparent:"text-color-teal-500 hover:bg-color-teal-50",accent:"accent-color-teal-500",peer:"peer-checked:border-color-teal-500 peer-checked:text-color-teal-500",text:"text-color-teal-500"},cyan:{filled:"bg-color-cyan-500 text-color-white hover:bg-color-cyan-600",outline:"border-color-cyan-500 text-color-cyan-500 hover:bg-color-cyan-50",transparent:"text-color-cyan-500 hover:bg-color-cyan-50",accent:"accent-color-cyan-500",peer:"peer-checked:border-color-cyan-500 peer-checked:text-color-cyan-500",text:"text-color-cyan-500"},sky:{filled:"bg-color-sky-500 text-color-white hover:bg-color-sky-600",outline:"border-color-sky-500 text-color-sky-500 hover:bg-color-sky-50",transparent:"text-color-sky-500 hover:bg-color-sky-50",accent:"accent-color-sky-500",peer:"peer-checked:border-color-sky-500 peer-checked:text-color-sky-500",text:"text-color-sky-500"},blue:{filled:"bg-color-blue-500 text-color-white hover:bg-color-blue-600",outline:"border-color-blue-500 text-color-blue-500 hover:bg-color-blue-50",transparent:"text-color-blue-500 hover:bg-color-blue-50",accent:"accent-color-blue-500",peer:"peer-checked:border-color-blue-500 peer-checked:text-color-blue-500",text:"text-color-blue-500"},indigo:{filled:"bg-color-indigo-500 text-color-white hover:bg-color-indigo-600",outline:"border-color-indigo-500 text-color-indigo-500 hover:bg-color-indigo-50",transparent:"text-color-indigo-500 hover:bg-color-indigo-50",accent:"accent-color-indigo-500",peer:"peer-checked:border-color-indigo-500 peer-checked:text-color-indigo-500",text:"text-color-indigo-500"},violet:{filled:"bg-color-violet-500 text-color-white hover:bg-color-violet-600",outline:"border-color-violet-500 text-color-violet-500 hover:bg-color-violet-50",transparent:"text-color-violet-500 hover:bg-color-violet-50",accent:"accent-color-violet-500",peer:"peer-checked:border-color-violet-500 peer-checked:text-color-violet-500",text:"text-color-violet-500"},purple:{filled:"bg-color-purple-500 text-color-white hover:bg-color-purple-600",outline:"border-color-purple-500 text-color-purple-500 hover:bg-color-purple-50",transparent:"text-color-purple-500 hover:bg-color-purple-50",accent:"accent-color-purple-500",peer:"peer-checked:border-color-purple-500 peer-checked:text-color-purple-500",text:"text-color-purple-500"},fuchsia:{filled:"bg-color-fuchsia-500 text-color-white hover:bg-color-fuchsia-600",outline:"border-color-fuchsia-500 text-color-fuchsia-500 hover:bg-color-fuchsia-50",transparent:"text-color-fuchsia-500 hover:bg-color-fuchsia-50",accent:"accent-color-fuchsia-500",peer:"peer-checked:border-color-fuchsia-500 peer-checked:text-color-fuchsia-500",text:"text-color-fuchsia-500"},pink:{filled:"bg-color-pink-500 text-color-white hover:bg-color-pink-600",outline:"border-color-pink-500 text-color-pink-500 hover:bg-color-pink-50",transparent:"text-color-pink-500 hover:bg-color-pink-50",accent:"accent-color-pink-500",peer:"peer-checked:border-color-pink-500 peer-checked:text-color-pink-500",text:"text-color-pink-500"},rose:{filled:"bg-color-rose-500 text-color-white hover:bg-color-rose-600",outline:"border-color-rose-500 text-color-rose-500 hover:bg-color-rose-50",transparent:"text-color-rose-500 hover:bg-color-rose-50",accent:"accent-color-rose-500",peer:"peer-checked:border-color-rose-500 peer-checked:text-color-rose-500",text:"text-color-rose-500"}},Kr=e=>{Object.assign(fe,e)},Ue={dark:{track:"bg-color-gray-200",progress:"bg-color-gray-900",thumb:"bg-color-gray-900 border-color-gray-950 shadow-color-gray-300",thumbHover:"hover:bg-color-gray-900",thumbActive:"active:bg-color-gray-900"},gray:{track:"bg-color-gray-200",progress:"bg-color-gray-500",thumb:"bg-color-gray-500 border-color-gray-600 shadow-color-gray-200",thumbHover:"hover:bg-color-gray-600",thumbActive:"active:bg-color-gray-700"},light:{track:"bg-color-gray-600",progress:"bg-color-white",thumb:"bg-color-gray-100 border-color-white shadow-color-gray-200",thumbHover:"hover:bg-color-gray-200",thumbActive:"active:bg-color-white"},pearl:{track:"bg-color-zinc-200",progress:"bg-color-zinc-500",thumb:"bg-color-zinc-500 border-color-zinc-600 shadow-color-zinc-200",thumbHover:"hover:bg-color-zinc-600",thumbActive:"active:bg-color-zinc-700"},red:{track:"bg-color-red-200",progress:"bg-color-red-500",thumb:"bg-color-red-500 border-color-red-600/50 shadow-color-red-200",thumbHover:"hover:bg-color-red-600",thumbActive:"active:bg-color-red-700"},orange:{track:"bg-color-orange-200",progress:"bg-color-orange-500",thumb:"bg-color-orange-500 border-color-orange-600/50 shadow-color-orange-200",thumbHover:"hover:bg-color-orange-600",thumbActive:"active:bg-color-orange-700"},amber:{track:"bg-color-amber-200",progress:"bg-color-amber-500",thumb:"bg-color-amber-500 border-color-amber-600/50 shadow-color-amber-200",thumbHover:"hover:bg-color-amber-600",thumbActive:"active:bg-color-amber-700"},yellow:{track:"bg-color-yellow-200",progress:"bg-color-yellow-500",thumb:"bg-color-yellow-500 border-color-yellow-600/50 shadow-color-yellow-200",thumbHover:"hover:bg-color-yellow-600",thumbActive:"active:bg-color-yellow-700"},lime:{track:"bg-color-lime-200",progress:"bg-color-lime-500",thumb:"bg-color-lime-500 border-color-lime-600/50 shadow-color-lime-200",thumbHover:"hover:bg-color-lime-600",thumbActive:"active:bg-color-lime-700"},green:{track:"bg-color-green-200",progress:"bg-color-green-500",thumb:"bg-color-green-500 border-color-green-600/50 shadow-color-green-200",thumbHover:"hover:bg-color-green-600",thumbActive:"active:bg-color-green-700"},emerald:{track:"bg-color-emerald-200",progress:"bg-color-emerald-500",thumb:"bg-color-emerald-500 border-color-emerald-600/50 shadow-color-emerald-200",thumbHover:"hover:bg-color-emerald-600",thumbActive:"active:bg-color-emerald-700"},teal:{track:"bg-color-teal-200",progress:"bg-color-teal-500",thumb:"bg-color-teal-500 border-color-teal-600/50 shadow-color-teal-200",thumbHover:"hover:bg-color-teal-600",thumbActive:"active:bg-color-teal-700"},cyan:{track:"bg-color-cyan-200",progress:"bg-color-cyan-500",thumb:"bg-color-cyan-500 border-color-cyan-600/50 shadow-color-cyan-200",thumbHover:"hover:bg-color-cyan-600",thumbActive:"active:bg-color-cyan-700"},sky:{track:"bg-color-sky-200",progress:"bg-color-sky-500",thumb:"bg-color-sky-500 border-color-sky-600/50 shadow-color-sky-200",thumbHover:"hover:bg-color-sky-600",thumbActive:"active:bg-color-sky-700"},blue:{track:"bg-color-blue-200",progress:"bg-color-blue-500",thumb:"bg-color-blue-500 border-color-blue-600/50 shadow-color-blue-200",thumbHover:"hover:bg-color-blue-600",thumbActive:"active:bg-color-blue-700"},indigo:{track:"bg-color-indigo-200",progress:"bg-color-indigo-500",thumb:"bg-color-indigo-500 border-color-indigo-600/50 shadow-color-indigo-200",thumbHover:"hover:bg-color-indigo-600",thumbActive:"active:bg-color-indigo-700"},violet:{track:"bg-color-violet-200",progress:"bg-color-violet-500",thumb:"bg-color-violet-500 border-color-violet-600/50 shadow-color-violet-200",thumbHover:"hover:bg-color-violet-600",thumbActive:"active:bg-color-violet-700"},purple:{track:"bg-color-purple-200",progress:"bg-color-purple-500",thumb:"bg-color-purple-500 border-color-purple-600/50 shadow-color-purple-200",thumbHover:"hover:bg-color-purple-600",thumbActive:"active:bg-color-purple-700"},fuchsia:{track:"bg-color-fuchsia-200",progress:"bg-color-fuchsia-500",thumb:"bg-color-fuchsia-500 border-color-fuchsia-600/50 shadow-color-fuchsia-200",thumbHover:"hover:bg-color-fuchsia-600",thumbActive:"active:bg-color-fuchsia-700"},pink:{track:"bg-color-pink-200",progress:"bg-color-pink-500",thumb:"bg-color-pink-500 border-color-pink-600/50 shadow-color-pink-200",thumbHover:"hover:bg-color-pink-600",thumbActive:"active:bg-color-pink-700"},rose:{track:"bg-color-rose-200",progress:"bg-color-rose-500",thumb:"bg-color-rose-500 border-color-rose-600/50 shadow-color-rose-200",thumbHover:"hover:bg-color-rose-600",thumbActive:"active:bg-color-rose-700"}},Xr=e=>{Object.assign(Ue,e)},Ye=({title:e,children:n,variant:t="filled",color:r="blue",startIcon:o,endIcon:a,onClick:i,className:l="",fullWidth:c=!1,disabled:u=!1,roundedFull:d=!1,size:g="medium",type:p="button",autoFocus:f=!1,href:v,target:m,...b})=>{var C;const x=w.useRef(null),R=w.useRef(null),y=V=>{const T=x.current;if(!T)return;const B=document.createElement("span"),A=T.getBoundingClientRect(),X=Math.max(A.width,A.height);B.style.width=B.style.height=`${X}px`,B.style.left=`${V.clientX-A.left-X/2}px`,B.style.top=`${V.clientY-A.top-X/2}px`,B.className="ripple",T.appendChild(B),setTimeout(()=>B.remove(),600),i==null||i(V)},E=((C=fe[r])==null?void 0:C[t==="filled"?"filled":t==="outlined"?"outline":"transparent"])||"";return s.jsx(s.Fragment,{children:v?s.jsxs("a",{ref:R,href:v,target:m,className:`relative leading-none no-underline inline-flex font-medium overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
22
+ <%s key={someKey} {...props} />`,L,M,G,M),J[M+L]=!0)}if(M=null,F!==void 0&&(t(F),M=""+F),a(S)&&(t(S.key),M=""+S.key),"key"in S){F={};for(var W in S)W!=="key"&&(F[W]=S[W])}else F=S;return M&&l(F,typeof h=="function"?h.displayName||h.name||"Unknown":h),u(h,M,H,D,o(),F,z,P)}function g(h){typeof h=="object"&&h!==null&&h.$$typeof===f&&h._store&&(h._store.validated=1)}var p=w,f=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),y=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ie=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.prototype.hasOwnProperty,ee=Array.isArray,q=console.createTask?console.createTask:function(){return null};p={"react-stack-bottom-frame":function(h){return h()}};var K,I={},ne=p["react-stack-bottom-frame"].bind(p,i)(),ue=q(r(i)),J={};Oe.Fragment=m,Oe.jsx=function(h,S,F,L,D){var H=1e4>ie.recentlyCreatedOwnerStacks++;return d(h,S,F,!1,L,D,H?Error("react-stack-top-frame"):ne,H?q(r(h)):ue)},Oe.jsxs=function(h,S,F,L,D){var H=1e4>ie.recentlyCreatedOwnerStacks++;return d(h,S,F,!0,L,D,H?Error("react-stack-top-frame"):ne,H?q(r(h)):ue)}}()),Oe}var hn;function Yr(){return hn||(hn=1,process.env.NODE_ENV==="production"?We.exports=Wr():We.exports=Ur()),We.exports}var s=Yr();const fe={dark:{filled:"bg-color-gray-800 text-color-gray-200 hover:bg-color-gray-900",outline:"border-color-gray-900 text-color-gray-900 hover:bg-color-gray-50",transparent:"text-color-gray-900 hover:bg-color-gray-50",accent:"accent-color-gray-900",peer:"peer-checked:border-color-gray-900 peer-checked:text-color-gray-900",text:"text-color-gray-900"},gray:{filled:"bg-color-gray-500 text-color-white hover:bg-color-gray-600",outline:"border-color-gray-500 text-color-gray-500 hover:bg-color-gray-50",transparent:"text-color-gray-500 hover:bg-color-gray-50",accent:"accent-color-gray-500",peer:"peer-checked:border-color-gray-500 peer-checked:text-color-gray-500",text:"text-color-gray-500"},light:{filled:"bg-color-white text-color-gray-700 hover:bg-color-gray-50",outline:"border-color-white text-color-white hover:bg-color-gray-50",transparent:"text-color-white hover:bg-color-gray-50",accent:"accent-color-white",peer:"peer-checked:border-color-white peer-checked:text-color-white",text:"text-color-white"},pearl:{filled:"bg-color-zinc-200 text-color-zinc-600 hover:bg-color-zinc-300",outline:"border-color-zinc-200 text-color-zinc-900 hover:bg-color-zinc-50",transparent:"text-color-zinc-600 hover:bg-color-zinc-50",accent:"accent-color-zinc-200",peer:"peer-checked:border-color-zinc-200 peer-checked:text-color-zinc-200",text:"text-color-zinc-600"},red:{filled:"bg-color-red-500 text-color-white hover:bg-color-red-600",outline:"border-color-red-500 text-color-red-500 hover:bg-color-red-50",transparent:"text-color-red-500 hover:bg-color-red-50",accent:"accent-color-red-500",peer:"peer-checked:border-color-red-500 peer-checked:text-color-red-500",text:"text-color-red-500"},orange:{filled:"bg-color-orange-500 text-color-white hover:bg-color-orange-600",outline:"border-color-orange-500 text-color-orange-500 hover:bg-color-orange-50",transparent:"text-color-orange-500 hover:bg-color-orange-50",accent:"accent-color-orange-500",peer:"peer-checked:border-color-orange-500 peer-checked:text-color-orange-500",text:"text-color-orange-500"},amber:{filled:"bg-color-amber-500 text-color-white hover:bg-color-amber-600",outline:"border-color-amber-500 text-color-amber-500 hover:bg-color-amber-50",transparent:"text-color-amber-500 hover:bg-color-amber-50",accent:"accent-color-amber-500",peer:"peer-checked:border-color-amber-500 peer-checked:text-color-amber-500",text:"text-color-amber-500"},yellow:{filled:"bg-color-yellow-500 text-color-white hover:bg-color-yellow-600",outline:"border-color-yellow-500 text-color-yellow-500 hover:bg-color-yellow-50",transparent:"text-color-yellow-500 hover:bg-color-yellow-50",accent:"accent-color-yellow-500",peer:"peer-checked:border-color-yellow-500 peer-checked:text-color-yellow-500",text:"text-color-yellow-500"},lime:{filled:"bg-color-lime-500 text-color-white hover:bg-color-lime-600",outline:"border-color-lime-500 text-color-lime-500 hover:bg-color-lime-50",transparent:"text-color-lime-500 hover:bg-color-lime-50",accent:"accent-color-lime-500",peer:"peer-checked:border-color-lime-500 peer-checked:text-color-lime-500",text:"text-color-lime-500"},green:{filled:"bg-color-green-500 text-color-white hover:bg-color-green-600",outline:"border-color-green-500 text-color-green-500 hover:bg-color-green-50",transparent:"text-color-green-500 hover:bg-color-green-50",accent:"accent-color-green-500",peer:"peer-checked:border-color-green-500 peer-checked:text-color-green-500",text:"text-color-green-500"},emerald:{filled:"bg-color-emerald-500 text-color-white hover:bg-color-emerald-600",outline:"border-color-emerald-500 text-color-emerald-500 hover:bg-color-emerald-50",transparent:"text-color-emerald-500 hover:bg-color-emerald-50",accent:"accent-color-emerald-500",peer:"peer-checked:border-color-emerald-500 peer-checked:text-color-emerald-500",text:"text-color-emerald-500"},teal:{filled:"bg-color-teal-500 text-color-white hover:bg-color-teal-600",outline:"border-color-teal-500 text-color-teal-500 hover:bg-color-teal-50",transparent:"text-color-teal-500 hover:bg-color-teal-50",accent:"accent-color-teal-500",peer:"peer-checked:border-color-teal-500 peer-checked:text-color-teal-500",text:"text-color-teal-500"},cyan:{filled:"bg-color-cyan-500 text-color-white hover:bg-color-cyan-600",outline:"border-color-cyan-500 text-color-cyan-500 hover:bg-color-cyan-50",transparent:"text-color-cyan-500 hover:bg-color-cyan-50",accent:"accent-color-cyan-500",peer:"peer-checked:border-color-cyan-500 peer-checked:text-color-cyan-500",text:"text-color-cyan-500"},sky:{filled:"bg-color-sky-500 text-color-white hover:bg-color-sky-600",outline:"border-color-sky-500 text-color-sky-500 hover:bg-color-sky-50",transparent:"text-color-sky-500 hover:bg-color-sky-50",accent:"accent-color-sky-500",peer:"peer-checked:border-color-sky-500 peer-checked:text-color-sky-500",text:"text-color-sky-500"},blue:{filled:"bg-color-blue-500 text-color-white hover:bg-color-blue-600",outline:"border-color-blue-500 text-color-blue-500 hover:bg-color-blue-50",transparent:"text-color-blue-500 hover:bg-color-blue-50",accent:"accent-color-blue-500",peer:"peer-checked:border-color-blue-500 peer-checked:text-color-blue-500",text:"text-color-blue-500"},indigo:{filled:"bg-color-indigo-500 text-color-white hover:bg-color-indigo-600",outline:"border-color-indigo-500 text-color-indigo-500 hover:bg-color-indigo-50",transparent:"text-color-indigo-500 hover:bg-color-indigo-50",accent:"accent-color-indigo-500",peer:"peer-checked:border-color-indigo-500 peer-checked:text-color-indigo-500",text:"text-color-indigo-500"},violet:{filled:"bg-color-violet-500 text-color-white hover:bg-color-violet-600",outline:"border-color-violet-500 text-color-violet-500 hover:bg-color-violet-50",transparent:"text-color-violet-500 hover:bg-color-violet-50",accent:"accent-color-violet-500",peer:"peer-checked:border-color-violet-500 peer-checked:text-color-violet-500",text:"text-color-violet-500"},purple:{filled:"bg-color-purple-500 text-color-white hover:bg-color-purple-600",outline:"border-color-purple-500 text-color-purple-500 hover:bg-color-purple-50",transparent:"text-color-purple-500 hover:bg-color-purple-50",accent:"accent-color-purple-500",peer:"peer-checked:border-color-purple-500 peer-checked:text-color-purple-500",text:"text-color-purple-500"},fuchsia:{filled:"bg-color-fuchsia-500 text-color-white hover:bg-color-fuchsia-600",outline:"border-color-fuchsia-500 text-color-fuchsia-500 hover:bg-color-fuchsia-50",transparent:"text-color-fuchsia-500 hover:bg-color-fuchsia-50",accent:"accent-color-fuchsia-500",peer:"peer-checked:border-color-fuchsia-500 peer-checked:text-color-fuchsia-500",text:"text-color-fuchsia-500"},pink:{filled:"bg-color-pink-500 text-color-white hover:bg-color-pink-600",outline:"border-color-pink-500 text-color-pink-500 hover:bg-color-pink-50",transparent:"text-color-pink-500 hover:bg-color-pink-50",accent:"accent-color-pink-500",peer:"peer-checked:border-color-pink-500 peer-checked:text-color-pink-500",text:"text-color-pink-500"},rose:{filled:"bg-color-rose-500 text-color-white hover:bg-color-rose-600",outline:"border-color-rose-500 text-color-rose-500 hover:bg-color-rose-50",transparent:"text-color-rose-500 hover:bg-color-rose-50",accent:"accent-color-rose-500",peer:"peer-checked:border-color-rose-500 peer-checked:text-color-rose-500",text:"text-color-rose-500"}},Zr=e=>{Object.assign(fe,e)},Ue={dark:{track:"bg-color-gray-200",progress:"bg-color-gray-900",thumb:"bg-color-gray-900 border-color-gray-950 shadow-color-gray-300",thumbHover:"hover:bg-color-gray-900",thumbActive:"active:bg-color-gray-900"},gray:{track:"bg-color-gray-200",progress:"bg-color-gray-500",thumb:"bg-color-gray-500 border-color-gray-600 shadow-color-gray-200",thumbHover:"hover:bg-color-gray-600",thumbActive:"active:bg-color-gray-700"},light:{track:"bg-color-gray-600",progress:"bg-color-white",thumb:"bg-color-gray-100 border-color-white shadow-color-gray-200",thumbHover:"hover:bg-color-gray-200",thumbActive:"active:bg-color-white"},pearl:{track:"bg-color-zinc-200",progress:"bg-color-zinc-500",thumb:"bg-color-zinc-500 border-color-zinc-600 shadow-color-zinc-200",thumbHover:"hover:bg-color-zinc-600",thumbActive:"active:bg-color-zinc-700"},red:{track:"bg-color-red-200",progress:"bg-color-red-500",thumb:"bg-color-red-500 border-color-red-600/50 shadow-color-red-200",thumbHover:"hover:bg-color-red-600",thumbActive:"active:bg-color-red-700"},orange:{track:"bg-color-orange-200",progress:"bg-color-orange-500",thumb:"bg-color-orange-500 border-color-orange-600/50 shadow-color-orange-200",thumbHover:"hover:bg-color-orange-600",thumbActive:"active:bg-color-orange-700"},amber:{track:"bg-color-amber-200",progress:"bg-color-amber-500",thumb:"bg-color-amber-500 border-color-amber-600/50 shadow-color-amber-200",thumbHover:"hover:bg-color-amber-600",thumbActive:"active:bg-color-amber-700"},yellow:{track:"bg-color-yellow-200",progress:"bg-color-yellow-500",thumb:"bg-color-yellow-500 border-color-yellow-600/50 shadow-color-yellow-200",thumbHover:"hover:bg-color-yellow-600",thumbActive:"active:bg-color-yellow-700"},lime:{track:"bg-color-lime-200",progress:"bg-color-lime-500",thumb:"bg-color-lime-500 border-color-lime-600/50 shadow-color-lime-200",thumbHover:"hover:bg-color-lime-600",thumbActive:"active:bg-color-lime-700"},green:{track:"bg-color-green-200",progress:"bg-color-green-500",thumb:"bg-color-green-500 border-color-green-600/50 shadow-color-green-200",thumbHover:"hover:bg-color-green-600",thumbActive:"active:bg-color-green-700"},emerald:{track:"bg-color-emerald-200",progress:"bg-color-emerald-500",thumb:"bg-color-emerald-500 border-color-emerald-600/50 shadow-color-emerald-200",thumbHover:"hover:bg-color-emerald-600",thumbActive:"active:bg-color-emerald-700"},teal:{track:"bg-color-teal-200",progress:"bg-color-teal-500",thumb:"bg-color-teal-500 border-color-teal-600/50 shadow-color-teal-200",thumbHover:"hover:bg-color-teal-600",thumbActive:"active:bg-color-teal-700"},cyan:{track:"bg-color-cyan-200",progress:"bg-color-cyan-500",thumb:"bg-color-cyan-500 border-color-cyan-600/50 shadow-color-cyan-200",thumbHover:"hover:bg-color-cyan-600",thumbActive:"active:bg-color-cyan-700"},sky:{track:"bg-color-sky-200",progress:"bg-color-sky-500",thumb:"bg-color-sky-500 border-color-sky-600/50 shadow-color-sky-200",thumbHover:"hover:bg-color-sky-600",thumbActive:"active:bg-color-sky-700"},blue:{track:"bg-color-blue-200",progress:"bg-color-blue-500",thumb:"bg-color-blue-500 border-color-blue-600/50 shadow-color-blue-200",thumbHover:"hover:bg-color-blue-600",thumbActive:"active:bg-color-blue-700"},indigo:{track:"bg-color-indigo-200",progress:"bg-color-indigo-500",thumb:"bg-color-indigo-500 border-color-indigo-600/50 shadow-color-indigo-200",thumbHover:"hover:bg-color-indigo-600",thumbActive:"active:bg-color-indigo-700"},violet:{track:"bg-color-violet-200",progress:"bg-color-violet-500",thumb:"bg-color-violet-500 border-color-violet-600/50 shadow-color-violet-200",thumbHover:"hover:bg-color-violet-600",thumbActive:"active:bg-color-violet-700"},purple:{track:"bg-color-purple-200",progress:"bg-color-purple-500",thumb:"bg-color-purple-500 border-color-purple-600/50 shadow-color-purple-200",thumbHover:"hover:bg-color-purple-600",thumbActive:"active:bg-color-purple-700"},fuchsia:{track:"bg-color-fuchsia-200",progress:"bg-color-fuchsia-500",thumb:"bg-color-fuchsia-500 border-color-fuchsia-600/50 shadow-color-fuchsia-200",thumbHover:"hover:bg-color-fuchsia-600",thumbActive:"active:bg-color-fuchsia-700"},pink:{track:"bg-color-pink-200",progress:"bg-color-pink-500",thumb:"bg-color-pink-500 border-color-pink-600/50 shadow-color-pink-200",thumbHover:"hover:bg-color-pink-600",thumbActive:"active:bg-color-pink-700"},rose:{track:"bg-color-rose-200",progress:"bg-color-rose-500",thumb:"bg-color-rose-500 border-color-rose-600/50 shadow-color-rose-200",thumbHover:"hover:bg-color-rose-600",thumbActive:"active:bg-color-rose-700"}},Kr=e=>{Object.assign(Ue,e)},Ye=({title:e,children:n,variant:t="filled",color:r="blue",startIcon:o,endIcon:i,onClick:a,className:l="",fullWidth:c=!1,disabled:u=!1,roundedFull:d=!1,size:g="medium",type:p="button",autoFocus:f=!1,href:v,target:m,...b})=>{var C;const x=w.useRef(null),R=w.useRef(null),y=V=>{const T=x.current;if(!T)return;const B=document.createElement("span"),A=T.getBoundingClientRect(),X=Math.max(A.width,A.height);B.style.width=B.style.height=`${X}px`,B.style.left=`${V.clientX-A.left-X/2}px`,B.style.top=`${V.clientY-A.top-X/2}px`,B.className="ripple",T.appendChild(B),setTimeout(()=>B.remove(),600),a==null||a(V)},E=((C=fe[r])==null?void 0:C[t==="filled"?"filled":t==="outlined"?"outline":"transparent"])||"";return s.jsx(s.Fragment,{children:v?s.jsxs("a",{ref:R,href:v,target:m,className:`relative leading-none no-underline inline-flex font-medium overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
23
23
  ${t==="outlined"&&"border"}
24
24
  ${E}
25
25
  ${l}
@@ -27,7 +27,7 @@ React keys must be passed directly to JSX without using spread:
27
27
  ${c?"w-full":""}
28
28
  ${d?"rounded-full":"rounded-md"}
29
29
  ${u?`${t==="filled"&&"!bg-color-gray-300 !text-color-white"} ${t==="outlined"&&"!border-color-gray-200 !text-color-gray-300"} cursor-not-allowed hover:bg-color-transparent !text-color-gray-300`:"cursor-pointer"}
30
- `,children:[o&&s.jsx("span",{className:"mr-1",children:o}),n||e,a&&s.jsx("span",{className:"ml-1",children:a})]}):s.jsxs("button",{ref:x,type:p,disabled:u,onClick:y,className:`relative leading-none font-medium overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
30
+ `,children:[o&&s.jsx("span",{className:"mr-1",children:o}),n||e,i&&s.jsx("span",{className:"ml-1",children:i})]}):s.jsxs("button",{ref:x,type:p,disabled:u,onClick:y,className:`relative leading-none font-medium overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
31
31
  ${t==="outlined"&&"border"}
32
32
  ${E}
33
33
  ${l}
@@ -35,11 +35,11 @@ React keys must be passed directly to JSX without using spread:
35
35
  ${c?"w-full":""}
36
36
  ${d?"rounded-full":"rounded-md"}
37
37
  ${u?`${t==="filled"&&"!bg-color-gray-300 !text-color-white"} ${t==="outlined"&&"!border-color-gray-200 !text-color-gray-300"} cursor-not-allowed hover:bg-color-transparent !text-color-gray-300`:"cursor-pointer"}
38
- `,autoFocus:f,...b,children:[o&&s.jsx("span",{className:"mr-1",children:o}),n||e,a&&s.jsx("span",{className:"ml-1",children:a})]})})},Jr=({children:e,className:n="",border:t=!0})=>s.jsx("div",{className:`
38
+ `,autoFocus:f,...b,children:[o&&s.jsx("span",{className:"mr-1",children:o}),n||e,i&&s.jsx("span",{className:"ml-1",children:i})]})})},Xr=({children:e,className:n="",border:t=!0})=>s.jsx("div",{className:`
39
39
  ${n||"w-fit rounded-md bg-color-white"}
40
40
  p-2 sm:p-4 overflow-hidden rounded-md
41
41
  ${t?" border border-color-gray-300":" !border-none "}
42
- `,children:e}),Qr=({label:e,checked:n=!1,disabled:t=!1,onChange:r,className:o="",labelClass:a="",id:i})=>s.jsxs("label",{className:`inline-flex items-center gap-2 cursor-pointer ${t?"opacity-50":""}`,children:[s.jsx("input",{id:i,type:"checkbox",className:`
42
+ `,children:e}),Jr=({label:e,checked:n=!1,disabled:t=!1,onChange:r,className:o="",labelClass:i="",id:a})=>s.jsxs("label",{className:`inline-flex items-center gap-2 cursor-pointer ${t?"opacity-50":""}`,children:[s.jsx("input",{id:a,type:"checkbox",className:`
43
43
  w-[16px] h-[16px] border border-color-gray-400 appearance-none
44
44
  checked:bg-color-blue-500 checked:border-color-blue-500
45
45
  focus:outline-none rounded-sm cursor-pointer transition
@@ -56,7 +56,7 @@ React keys must be passed directly to JSX without using spread:
56
56
  after:-translate-x-1/2
57
57
  after:-translate-y-1/2
58
58
  ${o}
59
- `,defaultChecked:n,disabled:t,onChange:l=>r==null?void 0:r(l.target.checked)}),e&&s.jsx("span",{className:`text-sm text-color-gray-700 ${a}`,children:e})]}),eo=({selected:e,items:n=[],className:t="",menuClassName:r="",stayOpenOnSelect:o=!1})=>{const[a,i]=w.useState(!1),l=w.useRef(null);return w.useEffect(()=>{const c=u=>{l.current&&!l.current.contains(u.target)&&i(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.jsxs("div",{ref:l,className:"relative inline-block",children:[s.jsxs("button",{onClick:()=>i(!a),className:`flex items-center cursor-pointer justify-between w-40 px-4 py-3 bg-color-white rounded-sm border border-color-gray-200 text-sm font-medium text-color-gray-700 hover:bg-color-gray-50 focus:outline-none ${t}`,children:[(e==null?void 0:e.label)||"Select",a?s.jsx("svg",{className:"ml-2 text-color-gray-500 size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})}):s.jsx("svg",{className:"ml-2 text-color-gray-500 size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})})]}),a&&s.jsx("ul",{className:`absolute mt-2 right-0 z-10 w-40 rounded-xl bg-color-white shadow-lg shadow-color-zinc-200 border border-color-gray-100 py-2 ${r}`,children:n.map((c,u)=>{const d=c.label===(e==null?void 0:e.label);return s.jsx("li",{onClick:()=>{c.onClick(c),o||i(!1)},children:s.jsx("div",{className:`block cursor-pointer w-full px-4 py-2 text-left text-sm text-color-gray-700
59
+ `,defaultChecked:n,disabled:t,onChange:l=>r==null?void 0:r(l.target.checked)}),e&&s.jsx("span",{className:`text-sm text-color-gray-700 ${i}`,children:e})]}),Qr=({selected:e,items:n=[],className:t="",menuClassName:r="",stayOpenOnSelect:o=!1})=>{const[i,a]=w.useState(!1),l=w.useRef(null);return w.useEffect(()=>{const c=u=>{l.current&&!l.current.contains(u.target)&&a(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[]),s.jsxs("div",{ref:l,className:"relative inline-block",children:[s.jsxs("button",{onClick:()=>a(!i),className:`flex items-center cursor-pointer justify-between w-40 px-4 py-3 bg-color-white rounded-sm border border-color-gray-200 text-sm font-medium text-color-gray-700 hover:bg-color-gray-50 focus:outline-none ${t}`,children:[(e==null?void 0:e.label)||"Select",i?s.jsx("svg",{className:"ml-2 text-color-gray-500 size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z"})}):s.jsx("svg",{className:"ml-2 text-color-gray-500 size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})})]}),i&&s.jsx("ul",{className:`absolute mt-2 right-0 z-10 w-40 rounded-xl bg-color-white shadow-lg shadow-color-zinc-200 border border-color-gray-100 py-2 ${r}`,children:n.map((c,u)=>{const d=c.label===(e==null?void 0:e.label);return s.jsx("li",{onClick:()=>{c.onClick(c),o||a(!1)},children:s.jsx("div",{className:`block cursor-pointer w-full px-4 py-2 text-left text-sm text-color-gray-700
60
60
  ${d?" bg-color-gray-200":" hover:bg-color-gray-100 "}`,children:c.label})},u)})})]})};var Ze={exports:{}},Ke={exports:{}},re={};/** @license React v16.13.1
61
61
  * react-is.production.min.js
62
62
  *
@@ -64,45 +64,45 @@ React keys must be passed directly to JSX without using spread:
64
64
  *
65
65
  * This source code is licensed under the MIT license found in the
66
66
  * LICENSE file in the root directory of this source tree.
67
- */var xn;function to(){if(xn)return re;xn=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function y(C){if(typeof C=="object"&&C!==null){var V=C.$$typeof;switch(V){case n:switch(C=C.type,C){case c:case u:case r:case a:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case l:case d:case v:case f:case i:return C;default:return V}}case t:return V}}}function E(C){return y(C)===u}return re.AsyncMode=c,re.ConcurrentMode=u,re.ContextConsumer=l,re.ContextProvider=i,re.Element=n,re.ForwardRef=d,re.Fragment=r,re.Lazy=v,re.Memo=f,re.Portal=t,re.Profiler=a,re.StrictMode=o,re.Suspense=g,re.isAsyncMode=function(C){return E(C)||y(C)===c},re.isConcurrentMode=E,re.isContextConsumer=function(C){return y(C)===l},re.isContextProvider=function(C){return y(C)===i},re.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},re.isForwardRef=function(C){return y(C)===d},re.isFragment=function(C){return y(C)===r},re.isLazy=function(C){return y(C)===v},re.isMemo=function(C){return y(C)===f},re.isPortal=function(C){return y(C)===t},re.isProfiler=function(C){return y(C)===a},re.isStrictMode=function(C){return y(C)===o},re.isSuspense=function(C){return y(C)===g},re.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===a||C===o||C===g||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===f||C.$$typeof===i||C.$$typeof===l||C.$$typeof===d||C.$$typeof===b||C.$$typeof===x||C.$$typeof===R||C.$$typeof===m)},re.typeOf=y,re}var oe={};/** @license React v16.13.1
67
+ */var xn;function eo(){if(xn)return re;xn=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function y(C){if(typeof C=="object"&&C!==null){var V=C.$$typeof;switch(V){case n:switch(C=C.type,C){case c:case u:case r:case i:case o:case g:return C;default:switch(C=C&&C.$$typeof,C){case l:case d:case v:case f:case a:return C;default:return V}}case t:return V}}}function E(C){return y(C)===u}return re.AsyncMode=c,re.ConcurrentMode=u,re.ContextConsumer=l,re.ContextProvider=a,re.Element=n,re.ForwardRef=d,re.Fragment=r,re.Lazy=v,re.Memo=f,re.Portal=t,re.Profiler=i,re.StrictMode=o,re.Suspense=g,re.isAsyncMode=function(C){return E(C)||y(C)===c},re.isConcurrentMode=E,re.isContextConsumer=function(C){return y(C)===l},re.isContextProvider=function(C){return y(C)===a},re.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===n},re.isForwardRef=function(C){return y(C)===d},re.isFragment=function(C){return y(C)===r},re.isLazy=function(C){return y(C)===v},re.isMemo=function(C){return y(C)===f},re.isPortal=function(C){return y(C)===t},re.isProfiler=function(C){return y(C)===i},re.isStrictMode=function(C){return y(C)===o},re.isSuspense=function(C){return y(C)===g},re.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===i||C===o||C===g||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===f||C.$$typeof===a||C.$$typeof===l||C.$$typeof===d||C.$$typeof===b||C.$$typeof===x||C.$$typeof===R||C.$$typeof===m)},re.typeOf=y,re}var oe={};/** @license React v16.13.1
68
68
  * react-is.development.js
69
69
  *
70
70
  * Copyright (c) Facebook, Inc. and its affiliates.
71
71
  *
72
72
  * This source code is licensed under the MIT license found in the
73
73
  * LICENSE file in the root directory of this source tree.
74
- */var bn;function no(){return bn||(bn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function y(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===a||k===o||k===g||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===f||k.$$typeof===i||k.$$typeof===l||k.$$typeof===d||k.$$typeof===b||k.$$typeof===x||k.$$typeof===R||k.$$typeof===m)}function E(k){if(typeof k=="object"&&k!==null){var _=k.$$typeof;switch(_){case n:var Q=k.type;switch(Q){case c:case u:case r:case a:case o:case g:return Q;default:var te=Q&&Q.$$typeof;switch(te){case l:case d:case v:case f:case i:return te;default:return _}}case t:return _}}}var C=c,V=u,T=l,B=i,A=n,X=d,ae=r,se=v,ee=f,q=t,K=a,I=o,ne=g,ue=!1;function J(k){return ue||(ue=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),h(k)||E(k)===c}function h(k){return E(k)===u}function S(k){return E(k)===l}function F(k){return E(k)===i}function L(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function D(k){return E(k)===d}function H(k){return E(k)===r}function z(k){return E(k)===v}function P(k){return E(k)===f}function M(k){return E(k)===t}function G(k){return E(k)===a}function W(k){return E(k)===o}function j(k){return E(k)===g}oe.AsyncMode=C,oe.ConcurrentMode=V,oe.ContextConsumer=T,oe.ContextProvider=B,oe.Element=A,oe.ForwardRef=X,oe.Fragment=ae,oe.Lazy=se,oe.Memo=ee,oe.Portal=q,oe.Profiler=K,oe.StrictMode=I,oe.Suspense=ne,oe.isAsyncMode=J,oe.isConcurrentMode=h,oe.isContextConsumer=S,oe.isContextProvider=F,oe.isElement=L,oe.isForwardRef=D,oe.isFragment=H,oe.isLazy=z,oe.isMemo=P,oe.isPortal=M,oe.isProfiler=G,oe.isStrictMode=W,oe.isSuspense=j,oe.isValidElementType=y,oe.typeOf=E}()),oe}var wn;function yn(){return wn||(wn=1,process.env.NODE_ENV==="production"?Ke.exports=to():Ke.exports=no()),Ke.exports}/*
74
+ */var bn;function to(){return bn||(bn=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function y(k){return typeof k=="string"||typeof k=="function"||k===r||k===u||k===i||k===o||k===g||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===v||k.$$typeof===f||k.$$typeof===a||k.$$typeof===l||k.$$typeof===d||k.$$typeof===b||k.$$typeof===x||k.$$typeof===R||k.$$typeof===m)}function E(k){if(typeof k=="object"&&k!==null){var _=k.$$typeof;switch(_){case n:var Q=k.type;switch(Q){case c:case u:case r:case i:case o:case g:return Q;default:var te=Q&&Q.$$typeof;switch(te){case l:case d:case v:case f:case a:return te;default:return _}}case t:return _}}}var C=c,V=u,T=l,B=a,A=n,X=d,ie=r,se=v,ee=f,q=t,K=i,I=o,ne=g,ue=!1;function J(k){return ue||(ue=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),h(k)||E(k)===c}function h(k){return E(k)===u}function S(k){return E(k)===l}function F(k){return E(k)===a}function L(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function D(k){return E(k)===d}function H(k){return E(k)===r}function z(k){return E(k)===v}function P(k){return E(k)===f}function M(k){return E(k)===t}function G(k){return E(k)===i}function W(k){return E(k)===o}function j(k){return E(k)===g}oe.AsyncMode=C,oe.ConcurrentMode=V,oe.ContextConsumer=T,oe.ContextProvider=B,oe.Element=A,oe.ForwardRef=X,oe.Fragment=ie,oe.Lazy=se,oe.Memo=ee,oe.Portal=q,oe.Profiler=K,oe.StrictMode=I,oe.Suspense=ne,oe.isAsyncMode=J,oe.isConcurrentMode=h,oe.isContextConsumer=S,oe.isContextProvider=F,oe.isElement=L,oe.isForwardRef=D,oe.isFragment=H,oe.isLazy=z,oe.isMemo=P,oe.isPortal=M,oe.isProfiler=G,oe.isStrictMode=W,oe.isSuspense=j,oe.isValidElementType=y,oe.typeOf=E}()),oe}var wn;function yn(){return wn||(wn=1,process.env.NODE_ENV==="production"?Ke.exports=eo():Ke.exports=to()),Ke.exports}/*
75
75
  object-assign
76
76
  (c) Sindre Sorhus
77
77
  @license MIT
78
- */var ht,Cn;function ro(){if(Cn)return ht;Cn=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(d){return i[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ht=o()?Object.assign:function(a,i){for(var l,c=r(a),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var g in l)n.call(l,g)&&(c[g]=l[g]);if(e){u=e(l);for(var p=0;p<u.length;p++)t.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},ht}var xt,Sn;function bt(){if(Sn)return xt;Sn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xt=e,xt}var wt,jn;function kn(){return jn||(jn=1,wt=Function.call.bind(Object.prototype.hasOwnProperty)),wt}var yt,$n;function oo(){if($n)return yt;$n=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=bt(),t={},r=kn();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in a)if(r(a,d)){var g;try{if(typeof a[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=a[d](i,d,c,l,null,n)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in t)){t[g.message]=!0;var f=u?u():"";e("Failed "+l+" type: "+g.message+(f??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},yt=o,yt}var Ct,Rn;function ao(){if(Rn)return Ct;Rn=1;var e=yn(),n=ro(),t=bt(),r=kn(),o=oo(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return Ct=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function g(h){var S=h&&(u&&h[u]||h[d]);if(typeof S=="function")return S}var p="<<anonymous>>",f={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:R(),arrayOf:y,element:E(),elementType:C(),instanceOf:V,node:X(),objectOf:B,oneOf:T,oneOfType:A,shape:se,exact:ee};function v(h,S){return h===S?h!==0||1/h===1/S:h!==h&&S!==S}function m(h,S){this.message=h,this.data=S&&typeof S=="object"?S:{},this.stack=""}m.prototype=Error.prototype;function b(h){if(process.env.NODE_ENV!=="production")var S={},F=0;function L(H,z,P,M,G,W,j){if(M=M||p,W=W||P,j!==t){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _=M+":"+P;!S[_]&&F<3&&(a("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+M+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[_]=!0,F++)}}return z[P]==null?H?z[P]===null?new m("The "+G+" `"+W+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new m("The "+G+" `"+W+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:h(z,P,M,G,W)}var D=L.bind(null,!1);return D.isRequired=L.bind(null,!0),D}function x(h){function S(F,L,D,H,z,P){var M=F[L],G=I(M);if(G!==h){var W=ne(M);return new m("Invalid "+H+" `"+z+"` of type "+("`"+W+"` supplied to `"+D+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return b(S)}function R(){return b(i)}function y(h){function S(F,L,D,H,z){if(typeof h!="function")return new m("Property `"+z+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var P=F[L];if(!Array.isArray(P)){var M=I(P);return new m("Invalid "+H+" `"+z+"` of type "+("`"+M+"` supplied to `"+D+"`, expected an array."))}for(var G=0;G<P.length;G++){var W=h(P,G,D,H,z+"["+G+"]",t);if(W instanceof Error)return W}return null}return b(S)}function E(){function h(S,F,L,D,H){var z=S[F];if(!l(z)){var P=I(z);return new m("Invalid "+D+" `"+H+"` of type "+("`"+P+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return b(h)}function C(){function h(S,F,L,D,H){var z=S[F];if(!e.isValidElementType(z)){var P=I(z);return new m("Invalid "+D+" `"+H+"` of type "+("`"+P+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return b(h)}function V(h){function S(F,L,D,H,z){if(!(F[L]instanceof h)){var P=h.name||p,M=J(F[L]);return new m("Invalid "+H+" `"+z+"` of type "+("`"+M+"` supplied to `"+D+"`, expected ")+("instance of `"+P+"`."))}return null}return b(S)}function T(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function S(F,L,D,H,z){for(var P=F[L],M=0;M<h.length;M++)if(v(P,h[M]))return null;var G=JSON.stringify(h,function(j,k){var _=ne(k);return _==="symbol"?String(k):k});return new m("Invalid "+H+" `"+z+"` of value `"+String(P)+"` "+("supplied to `"+D+"`, expected one of "+G+"."))}return b(S)}function B(h){function S(F,L,D,H,z){if(typeof h!="function")return new m("Property `"+z+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var P=F[L],M=I(P);if(M!=="object")return new m("Invalid "+H+" `"+z+"` of type "+("`"+M+"` supplied to `"+D+"`, expected an object."));for(var G in P)if(r(P,G)){var W=h(P,G,D,H,z+"."+G,t);if(W instanceof Error)return W}return null}return b(S)}function A(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var S=0;S<h.length;S++){var F=h[S];if(typeof F!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(F)+" at index "+S+"."),i}function L(D,H,z,P,M){for(var G=[],W=0;W<h.length;W++){var j=h[W],k=j(D,H,z,P,M,t);if(k==null)return null;k.data&&r(k.data,"expectedType")&&G.push(k.data.expectedType)}var _=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new m("Invalid "+P+" `"+M+"` supplied to "+("`"+z+"`"+_+"."))}return b(L)}function X(){function h(S,F,L,D,H){return q(S[F])?null:new m("Invalid "+D+" `"+H+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return b(h)}function ae(h,S,F,L,D){return new m((h||"React class")+": "+S+" type `"+F+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function se(h){function S(F,L,D,H,z){var P=F[L],M=I(P);if(M!=="object")return new m("Invalid "+H+" `"+z+"` of type `"+M+"` "+("supplied to `"+D+"`, expected `object`."));for(var G in h){var W=h[G];if(typeof W!="function")return ae(D,H,z,G,ne(W));var j=W(P,G,D,H,z+"."+G,t);if(j)return j}return null}return b(S)}function ee(h){function S(F,L,D,H,z){var P=F[L],M=I(P);if(M!=="object")return new m("Invalid "+H+" `"+z+"` of type `"+M+"` "+("supplied to `"+D+"`, expected `object`."));var G=n({},F[L],h);for(var W in G){var j=h[W];if(r(h,W)&&typeof j!="function")return ae(D,H,z,W,ne(j));if(!j)return new m("Invalid "+H+" `"+z+"` key `"+W+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(F[L],null," ")+`
79
- Valid keys: `+JSON.stringify(Object.keys(h),null," "));var k=j(P,W,D,H,z+"."+W,t);if(k)return k}return null}return b(S)}function q(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(q);if(h===null||l(h))return!0;var S=g(h);if(S){var F=S.call(h),L;if(S!==h.entries){for(;!(L=F.next()).done;)if(!q(L.value))return!1}else for(;!(L=F.next()).done;){var D=L.value;if(D&&!q(D[1]))return!1}}else return!1;return!0;default:return!1}}function K(h,S){return h==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function I(h){var S=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":K(S,h)?"symbol":S}function ne(h){if(typeof h>"u"||h===null)return""+h;var S=I(h);if(S==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return S}function ue(h){var S=ne(h);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function J(h){return!h.constructor||!h.constructor.name?p:h.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},Ct}var St,En;function io(){if(En)return St;En=1;var e=bt();function n(){}function t(){}return t.resetWarningCache=n,St=function(){function r(i,l,c,u,d,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function o(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:n};return a.PropTypes=a,a},St}var _n;function lo(){if(_n)return Ze.exports;if(_n=1,process.env.NODE_ENV!=="production"){var e=yn(),n=!0;Ze.exports=ao()(e.isElement,n)}else Ze.exports=io()();return Ze.exports}var so=lo();const ie=mn(so);function Me(e,n,t,r){function o(a){return a instanceof t?a:new t(function(i){i(a)})}return new(t||(t=Promise))(function(a,i){function l(d){try{u(r.next(d))}catch(g){i(g)}}function c(d){try{u(r.throw(d))}catch(g){i(g)}}function u(d){d.done?a(d.value):o(d.value).then(l,c)}u((r=r.apply(e,n||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const co=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Ae(e,n,t){const r=uo(e),{webkitRelativePath:o}=e,a=typeof n=="string"?n:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&Pn(r,"path",a),Pn(r,"relativePath",a),r}function uo(e){const{name:n}=e;if(n&&n.lastIndexOf(".")!==-1&&!e.type){const r=n.split(".").pop().toLowerCase(),o=co.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function Pn(e,n,t){Object.defineProperty(e,n,{value:t,writable:!1,configurable:!1,enumerable:!0})}const po=[".DS_Store","Thumbs.db"];function fo(e){return Me(this,void 0,void 0,function*(){return Xe(e)&&mo(e.dataTransfer)?xo(e.dataTransfer,e.type):go(e)?vo(e):Array.isArray(e)&&e.every(n=>"getFile"in n&&typeof n.getFile=="function")?ho(e):[]})}function mo(e){return Xe(e)}function go(e){return Xe(e)&&Xe(e.target)}function Xe(e){return typeof e=="object"&&e!==null}function vo(e){return jt(e.target.files).map(n=>Ae(n))}function ho(e){return Me(this,void 0,void 0,function*(){return(yield Promise.all(e.map(t=>t.getFile()))).map(t=>Ae(t))})}function xo(e,n){return Me(this,void 0,void 0,function*(){if(e.items){const t=jt(e.items).filter(o=>o.kind==="file");if(n!=="drop")return t;const r=yield Promise.all(t.map(bo));return Mn(Ln(r))}return Mn(jt(e.files).map(t=>Ae(t)))})}function Mn(e){return e.filter(n=>po.indexOf(n.name)===-1)}function jt(e){if(e===null)return[];const n=[];for(let t=0;t<e.length;t++){const r=e[t];n.push(r)}return n}function bo(e){if(typeof e.webkitGetAsEntry!="function")return Fn(e);const n=e.webkitGetAsEntry();return n&&n.isDirectory?An(n):Fn(e,n)}function Ln(e){return e.reduce((n,t)=>[...n,...Array.isArray(t)?Ln(t):[t]],[])}function Fn(e,n){return Me(this,void 0,void 0,function*(){var t;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const a=yield e.getAsFileSystemHandle();if(a===null)throw new Error(`${e} is not a File`);if(a!==void 0){const i=yield a.getFile();return i.handle=a,Ae(i)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Ae(r,(t=n==null?void 0:n.fullPath)!==null&&t!==void 0?t:void 0)})}function wo(e){return Me(this,void 0,void 0,function*(){return e.isDirectory?An(e):yo(e)})}function An(e){const n=e.createReader();return new Promise((t,r)=>{const o=[];function a(){n.readEntries(i=>Me(this,void 0,void 0,function*(){if(i.length){const l=Promise.all(i.map(wo));o.push(l),a()}else try{const l=yield Promise.all(o);t(l)}catch(l){r(l)}}),i=>{r(i)})}a()})}function yo(e){return Me(this,void 0,void 0,function*(){return new Promise((n,t)=>{e.file(r=>{const o=Ae(r,e.fullPath);n(o)},r=>{t(r)})})})}var Je={},Nn;function Co(){return Nn||(Nn=1,Je.__esModule=!0,Je.default=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(",");if(t.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),a=o.replace(/\/.*$/,"");return t.some(function(i){var l=i.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):o===l})}return!0}),Je}var So=Co();const kt=mn(So);function Dn(e){return $o(e)||ko(e)||In(e)||jo()}function jo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
80
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ko(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $o(e){if(Array.isArray(e))return $t(e)}function Tn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function zn(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Tn(Object(t),!0).forEach(function(r){On(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tn(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function On(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ie(e,n){return _o(e)||Eo(e,n)||In(e,n)||Ro()}function Ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
81
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(e,n){if(e){if(typeof e=="string")return $t(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $t(e,n)}}function $t(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Eo(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],o=!0,a=!1,i,l;try{for(t=t.call(e);!(o=(i=t.next()).done)&&(r.push(i.value),!(n&&r.length===n));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw l}}return r}}function _o(e){if(Array.isArray(e))return e}var Po=typeof kt=="function"?kt:kt.default,Mo="file-invalid-type",Lo="file-too-large",Fo="file-too-small",Ao="too-many-files",No=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=n.split(","),r=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:Mo,message:"File type must be ".concat(r)}},Vn=function(n){return{code:Lo,message:"File is larger than ".concat(n," ").concat(n===1?"byte":"bytes")}},Hn=function(n){return{code:Fo,message:"File is smaller than ".concat(n," ").concat(n===1?"byte":"bytes")}},Do={code:Ao,message:"Too many files"};function Bn(e,n){var t=e.type==="application/x-moz-file"||Po(e,n);return[t,t?null:No(n)]}function qn(e,n,t){if(Le(e.size))if(Le(n)&&Le(t)){if(e.size>t)return[!1,Vn(t)];if(e.size<n)return[!1,Hn(n)]}else{if(Le(n)&&e.size<n)return[!1,Hn(n)];if(Le(t)&&e.size>t)return[!1,Vn(t)]}return[!0,null]}function Le(e){return e!=null}function To(e){var n=e.files,t=e.accept,r=e.minSize,o=e.maxSize,a=e.multiple,i=e.maxFiles,l=e.validator;return!a&&n.length>1||a&&i>=1&&n.length>i?!1:n.every(function(c){var u=Bn(c,t),d=Ie(u,1),g=d[0],p=qn(c,r,o),f=Ie(p,1),v=f[0],m=l?l(c):null;return g&&v&&!m})}function Qe(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function et(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(n){return n==="Files"||n==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Gn(e){e.preventDefault()}function zo(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Oo(e){return e.indexOf("Edge/")!==-1}function Io(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return zo(e)||Oo(e)}function Ce(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(r){for(var o=arguments.length,a=new Array(o>1?o-1:0),i=1;i<o;i++)a[i-1]=arguments[i];return n.some(function(l){return!Qe(r)&&l&&l.apply(void 0,[r].concat(a)),Qe(r)})}}function Vo(){return"showOpenFilePicker"in window}function Ho(e){if(Le(e)){var n=Object.entries(e).filter(function(t){var r=Ie(t,2),o=r[0],a=r[1],i=!0;return Wn(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),i=!1),(!Array.isArray(a)||!a.every(Un))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),i=!1),i}).reduce(function(t,r){var o=Ie(r,2),a=o[0],i=o[1];return zn(zn({},t),{},On({},a,i))},{});return[{description:"Files",accept:n}]}return e}function Bo(e){if(Le(e))return Object.entries(e).reduce(function(n,t){var r=Ie(t,2),o=r[0],a=r[1];return[].concat(Dn(n),[o],Dn(a))},[]).filter(function(n){return Wn(n)||Un(n)}).join(",")}function qo(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Go(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Wn(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Un(e){return/^.*\.[\w]+$/.test(e)}var Wo=["children"],Uo=["open"],Yo=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Zo=["refKey","onChange","onClick"];function Ko(e){return Qo(e)||Jo(e)||Yn(e)||Xo()}function Xo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qo(e){if(Array.isArray(e))return Et(e)}function Rt(e,n){return na(e)||ta(e,n)||Yn(e,n)||ea()}function ea(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(e,n){if(e){if(typeof e=="string")return Et(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Et(e,n)}}function Et(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ta(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],o=!0,a=!1,i,l;try{for(t=t.call(e);!(o=(i=t.next()).done)&&(r.push(i.value),!(n&&r.length===n));o=!0);}catch(c){a=!0,l=c}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw l}}return r}}function na(e){if(Array.isArray(e))return e}function Zn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function le(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Zn(Object(t),!0).forEach(function(r){_t(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Zn(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function tt(e,n){if(e==null)return{};var t=ra(e,n),r,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function ra(e,n){if(e==null)return{};var t={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(n.indexOf(o)>=0)&&(t[o]=e[o]);return t}var Pt=w.forwardRef(function(e,n){var t=e.children,r=tt(e,Wo),o=Xn(r),a=o.open,i=tt(o,Uo);return w.useImperativeHandle(n,function(){return{open:a}},[a]),w.createElement(w.Fragment,null,t(le(le({},i),{},{open:a})))});Pt.displayName="Dropzone";var Kn={disabled:!1,getFilesFromEvent:fo,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Pt.defaultProps=Kn,Pt.propTypes={children:ie.func,accept:ie.objectOf(ie.arrayOf(ie.string)),multiple:ie.bool,preventDropOnDocument:ie.bool,noClick:ie.bool,noKeyboard:ie.bool,noDrag:ie.bool,noDragEventsBubbling:ie.bool,minSize:ie.number,maxSize:ie.number,maxFiles:ie.number,disabled:ie.bool,getFilesFromEvent:ie.func,onFileDialogCancel:ie.func,onFileDialogOpen:ie.func,useFsAccessApi:ie.bool,autoFocus:ie.bool,onDragEnter:ie.func,onDragLeave:ie.func,onDragOver:ie.func,onDrop:ie.func,onDropAccepted:ie.func,onDropRejected:ie.func,onError:ie.func,validator:ie.func};var Mt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Xn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=le(le({},Kn),e),t=n.accept,r=n.disabled,o=n.getFilesFromEvent,a=n.maxSize,i=n.minSize,l=n.multiple,c=n.maxFiles,u=n.onDragEnter,d=n.onDragLeave,g=n.onDragOver,p=n.onDrop,f=n.onDropAccepted,v=n.onDropRejected,m=n.onFileDialogCancel,b=n.onFileDialogOpen,x=n.useFsAccessApi,R=n.autoFocus,y=n.preventDropOnDocument,E=n.noClick,C=n.noKeyboard,V=n.noDrag,T=n.noDragEventsBubbling,B=n.onError,A=n.validator,X=w.useMemo(function(){return Bo(t)},[t]),ae=w.useMemo(function(){return Ho(t)},[t]),se=w.useMemo(function(){return typeof b=="function"?b:Jn},[b]),ee=w.useMemo(function(){return typeof m=="function"?m:Jn},[m]),q=w.useRef(null),K=w.useRef(null),I=w.useReducer(oa,Mt),ne=Rt(I,2),ue=ne[0],J=ne[1],h=ue.isFocused,S=ue.isFileDialogActive,F=w.useRef(typeof window<"u"&&window.isSecureContext&&x&&Vo()),L=function(){!F.current&&S&&setTimeout(function(){if(K.current){var U=K.current.files;U.length||(J({type:"closeDialog"}),ee())}},300)};w.useEffect(function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}},[K,S,ee,F]);var D=w.useRef([]),H=function(U){q.current&&q.current.contains(U.target)||(U.preventDefault(),D.current=[])};w.useEffect(function(){return y&&(document.addEventListener("dragover",Gn,!1),document.addEventListener("drop",H,!1)),function(){y&&(document.removeEventListener("dragover",Gn),document.removeEventListener("drop",H))}},[q,y]),w.useEffect(function(){return!r&&R&&q.current&&q.current.focus(),function(){}},[q,R,r]);var z=w.useCallback(function(N){B?B(N):console.error(N)},[B]),P=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N),D.current=[].concat(Ko(D.current),[N.target]),et(N)&&Promise.resolve(o(N)).then(function(U){if(!(Qe(N)&&!T)){var pe=U.length,me=pe>0&&To({files:U,accept:X,minSize:i,maxSize:a,multiple:l,maxFiles:c,validator:A}),be=pe>0&&!me;J({isDragAccept:me,isDragReject:be,isDragActive:!0,type:"setDraggedFiles"}),u&&u(N)}}).catch(function(U){return z(U)})},[o,u,z,T,X,i,a,l,c,A]),M=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N);var U=et(N);if(U&&N.dataTransfer)try{N.dataTransfer.dropEffect="copy"}catch{}return U&&g&&g(N),!1},[g,T]),G=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N);var U=D.current.filter(function(me){return q.current&&q.current.contains(me)}),pe=U.indexOf(N.target);pe!==-1&&U.splice(pe,1),D.current=U,!(U.length>0)&&(J({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),et(N)&&d&&d(N))},[q,d,T]),W=w.useCallback(function(N,U){var pe=[],me=[];N.forEach(function(be){var Ge=Bn(be,X),De=Rt(Ge,2),ln=De[0],sn=De[1],cn=qn(be,i,a),vt=Rt(cn,2),un=vt[0],dn=vt[1],pn=A?A(be):null;if(ln&&un&&!pn)pe.push(be);else{var fn=[sn,dn];pn&&(fn=fn.concat(pn)),me.push({file:be,errors:fn.filter(function(Ul){return Ul})})}}),(!l&&pe.length>1||l&&c>=1&&pe.length>c)&&(pe.forEach(function(be){me.push({file:be,errors:[Do]})}),pe.splice(0)),J({acceptedFiles:pe,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),p&&p(pe,me,U),me.length>0&&v&&v(me,U),pe.length>0&&f&&f(pe,U)},[J,l,X,i,a,c,p,f,v,A]),j=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N),D.current=[],et(N)&&Promise.resolve(o(N)).then(function(U){Qe(N)&&!T||W(U,N)}).catch(function(U){return z(U)}),J({type:"reset"})},[o,W,z,T]),k=w.useCallback(function(){if(F.current){J({type:"openDialog"}),se();var N={multiple:l,types:ae};window.showOpenFilePicker(N).then(function(U){return o(U)}).then(function(U){W(U,null),J({type:"closeDialog"})}).catch(function(U){qo(U)?(ee(U),J({type:"closeDialog"})):Go(U)?(F.current=!1,K.current?(K.current.value=null,K.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):z(U)});return}K.current&&(J({type:"openDialog"}),se(),K.current.value=null,K.current.click())},[J,se,ee,x,W,z,ae,l]),_=w.useCallback(function(N){!q.current||!q.current.isEqualNode(N.target)||(N.key===" "||N.key==="Enter"||N.keyCode===32||N.keyCode===13)&&(N.preventDefault(),k())},[q,k]),Q=w.useCallback(function(){J({type:"focus"})},[]),te=w.useCallback(function(){J({type:"blur"})},[]),ce=w.useCallback(function(){E||(Io()?setTimeout(k,0):k())},[E,k]),de=function(U){return r?null:U},he=function(U){return C?null:de(U)},mt=function(U){return V?null:de(U)},gt=function(U){T&&U.stopPropagation()},ql=w.useMemo(function(){return function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=N.refKey,pe=U===void 0?"ref":U,me=N.role,be=N.onKeyDown,Ge=N.onFocus,De=N.onBlur,ln=N.onClick,sn=N.onDragEnter,cn=N.onDragOver,vt=N.onDragLeave,un=N.onDrop,dn=tt(N,Yo);return le(le(_t({onKeyDown:he(Ce(be,_)),onFocus:he(Ce(Ge,Q)),onBlur:he(Ce(De,te)),onClick:de(Ce(ln,ce)),onDragEnter:mt(Ce(sn,P)),onDragOver:mt(Ce(cn,M)),onDragLeave:mt(Ce(vt,G)),onDrop:mt(Ce(un,j)),role:typeof me=="string"&&me!==""?me:"presentation"},pe,q),!r&&!C?{tabIndex:0}:{}),dn)}},[q,_,Q,te,ce,P,M,G,j,C,V,r]),Gl=w.useCallback(function(N){N.stopPropagation()},[]),Wl=w.useMemo(function(){return function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=N.refKey,pe=U===void 0?"ref":U,me=N.onChange,be=N.onClick,Ge=tt(N,Zo),De=_t({accept:X,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:de(Ce(me,j)),onClick:de(Ce(be,Gl)),tabIndex:-1},pe,K);return le(le({},De),Ge)}},[K,t,l,j,r]);return le(le({},ue),{},{isFocused:h&&!r,getRootProps:ql,getInputProps:Wl,rootRef:q,inputRef:K,open:de(k)})}function oa(e,n){switch(n.type){case"focus":return le(le({},e),{},{isFocused:!0});case"blur":return le(le({},e),{},{isFocused:!1});case"openDialog":return le(le({},Mt),{},{isFileDialogActive:!0});case"closeDialog":return le(le({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return le(le({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return le(le({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections,isDragReject:n.isDragReject});case"reset":return le({},Mt);default:return e}}function Jn(){}const aa=({onFilesAccepted:e,onError:n,accept:t={"image/*":[],"application/pdf":[],"application/msword":[],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[]},multiple:r=!1,maxSizeInBytes:o=1*1024*1024,maxFiles:a=void 0,disabled:i=!1,label:l="Upload PDF",subLabel:c="Maximum size: 2 MB",icon:u=s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z"})}),wrapperClass:d="",iconClass:g="",labelClass:p="",subLabelClass:f="",showList:v=!0,listView:m=!0,showListImage:b=!1,uploadedFiles:x=[],onDeleteCallback:R=()=>{}})=>{const[y,E]=w.useState(x),[C,V]=w.useState([]);w.useEffect(()=>{E(x)},[x]);const T=w.useCallback((ee,q)=>{const K=[];if(q.length>0&&q.forEach(I=>{I.errors.forEach(ne=>{ne.code==="file-too-large"&&K.push(`${I.file.name} is too large (max ${(o/1024/1024).toFixed(2)}MB)`),ne.code==="file-invalid-type"&&K.push(`${I.file.name} has an invalid file type`)})}),a!==void 0&&(r?y.length:0)+ee.length>a&&K.push(`You can only upload up to ${a} file${a>1?"s":""}.`),K.length>0){V(K),n==null||n(K);return}else V([]);ee.length>0&&(E(I=>r?[...I,...ee]:ee),e(ee))},[e,n,o,a,y,r]),B=ee=>{E(q=>q.filter((K,I)=>I!==ee)),R(y)},{getRootProps:A,getInputProps:X,isDragActive:ae,isDragReject:se}=Xn({onDrop:T,accept:t,multiple:r,maxSize:o,disabled:i});return s.jsxs("div",{className:`
78
+ */var ht,Cn;function no(){if(Cn)return ht;Cn=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ht=o()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var g in l)n.call(l,g)&&(c[g]=l[g]);if(e){u=e(l);for(var p=0;p<u.length;p++)t.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},ht}var xt,Sn;function bt(){if(Sn)return xt;Sn=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xt=e,xt}var wt,jn;function kn(){return jn||(jn=1,wt=Function.call.bind(Object.prototype.hasOwnProperty)),wt}var yt,$n;function ro(){if($n)return yt;$n=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=bt(),t={},r=kn();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var g;try{if(typeof i[d]!="function"){var p=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=i[d](a,d,c,l,null,n)}catch(v){g=v}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in t)){t[g.message]=!0;var f=u?u():"";e("Failed "+l+" type: "+g.message+(f??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},yt=o,yt}var Ct,Rn;function oo(){if(Rn)return Ct;Rn=1;var e=yn(),n=no(),t=bt(),r=kn(),o=ro(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Ct=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function g(h){var S=h&&(u&&h[u]||h[d]);if(typeof S=="function")return S}var p="<<anonymous>>",f={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:R(),arrayOf:y,element:E(),elementType:C(),instanceOf:V,node:X(),objectOf:B,oneOf:T,oneOfType:A,shape:se,exact:ee};function v(h,S){return h===S?h!==0||1/h===1/S:h!==h&&S!==S}function m(h,S){this.message=h,this.data=S&&typeof S=="object"?S:{},this.stack=""}m.prototype=Error.prototype;function b(h){if(process.env.NODE_ENV!=="production")var S={},F=0;function L(H,z,P,M,G,W,j){if(M=M||p,W=W||P,j!==t){if(c){var k=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw k.name="Invariant Violation",k}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _=M+":"+P;!S[_]&&F<3&&(i("You are manually calling a React.PropTypes validation function for the `"+W+"` prop on `"+M+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),S[_]=!0,F++)}}return z[P]==null?H?z[P]===null?new m("The "+G+" `"+W+"` is marked as required "+("in `"+M+"`, but its value is `null`.")):new m("The "+G+" `"+W+"` is marked as required in "+("`"+M+"`, but its value is `undefined`.")):null:h(z,P,M,G,W)}var D=L.bind(null,!1);return D.isRequired=L.bind(null,!0),D}function x(h){function S(F,L,D,H,z,P){var M=F[L],G=I(M);if(G!==h){var W=ne(M);return new m("Invalid "+H+" `"+z+"` of type "+("`"+W+"` supplied to `"+D+"`, expected ")+("`"+h+"`."),{expectedType:h})}return null}return b(S)}function R(){return b(a)}function y(h){function S(F,L,D,H,z){if(typeof h!="function")return new m("Property `"+z+"` of component `"+D+"` has invalid PropType notation inside arrayOf.");var P=F[L];if(!Array.isArray(P)){var M=I(P);return new m("Invalid "+H+" `"+z+"` of type "+("`"+M+"` supplied to `"+D+"`, expected an array."))}for(var G=0;G<P.length;G++){var W=h(P,G,D,H,z+"["+G+"]",t);if(W instanceof Error)return W}return null}return b(S)}function E(){function h(S,F,L,D,H){var z=S[F];if(!l(z)){var P=I(z);return new m("Invalid "+D+" `"+H+"` of type "+("`"+P+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return b(h)}function C(){function h(S,F,L,D,H){var z=S[F];if(!e.isValidElementType(z)){var P=I(z);return new m("Invalid "+D+" `"+H+"` of type "+("`"+P+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return b(h)}function V(h){function S(F,L,D,H,z){if(!(F[L]instanceof h)){var P=h.name||p,M=J(F[L]);return new m("Invalid "+H+" `"+z+"` of type "+("`"+M+"` supplied to `"+D+"`, expected ")+("instance of `"+P+"`."))}return null}return b(S)}function T(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function S(F,L,D,H,z){for(var P=F[L],M=0;M<h.length;M++)if(v(P,h[M]))return null;var G=JSON.stringify(h,function(j,k){var _=ne(k);return _==="symbol"?String(k):k});return new m("Invalid "+H+" `"+z+"` of value `"+String(P)+"` "+("supplied to `"+D+"`, expected one of "+G+"."))}return b(S)}function B(h){function S(F,L,D,H,z){if(typeof h!="function")return new m("Property `"+z+"` of component `"+D+"` has invalid PropType notation inside objectOf.");var P=F[L],M=I(P);if(M!=="object")return new m("Invalid "+H+" `"+z+"` of type "+("`"+M+"` supplied to `"+D+"`, expected an object."));for(var G in P)if(r(P,G)){var W=h(P,G,D,H,z+"."+G,t);if(W instanceof Error)return W}return null}return b(S)}function A(h){if(!Array.isArray(h))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var S=0;S<h.length;S++){var F=h[S];if(typeof F!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ue(F)+" at index "+S+"."),a}function L(D,H,z,P,M){for(var G=[],W=0;W<h.length;W++){var j=h[W],k=j(D,H,z,P,M,t);if(k==null)return null;k.data&&r(k.data,"expectedType")&&G.push(k.data.expectedType)}var _=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new m("Invalid "+P+" `"+M+"` supplied to "+("`"+z+"`"+_+"."))}return b(L)}function X(){function h(S,F,L,D,H){return q(S[F])?null:new m("Invalid "+D+" `"+H+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return b(h)}function ie(h,S,F,L,D){return new m((h||"React class")+": "+S+" type `"+F+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+D+"`.")}function se(h){function S(F,L,D,H,z){var P=F[L],M=I(P);if(M!=="object")return new m("Invalid "+H+" `"+z+"` of type `"+M+"` "+("supplied to `"+D+"`, expected `object`."));for(var G in h){var W=h[G];if(typeof W!="function")return ie(D,H,z,G,ne(W));var j=W(P,G,D,H,z+"."+G,t);if(j)return j}return null}return b(S)}function ee(h){function S(F,L,D,H,z){var P=F[L],M=I(P);if(M!=="object")return new m("Invalid "+H+" `"+z+"` of type `"+M+"` "+("supplied to `"+D+"`, expected `object`."));var G=n({},F[L],h);for(var W in G){var j=h[W];if(r(h,W)&&typeof j!="function")return ie(D,H,z,W,ne(j));if(!j)return new m("Invalid "+H+" `"+z+"` key `"+W+"` supplied to `"+D+"`.\nBad object: "+JSON.stringify(F[L],null," ")+`
79
+ Valid keys: `+JSON.stringify(Object.keys(h),null," "));var k=j(P,W,D,H,z+"."+W,t);if(k)return k}return null}return b(S)}function q(h){switch(typeof h){case"number":case"string":case"undefined":return!0;case"boolean":return!h;case"object":if(Array.isArray(h))return h.every(q);if(h===null||l(h))return!0;var S=g(h);if(S){var F=S.call(h),L;if(S!==h.entries){for(;!(L=F.next()).done;)if(!q(L.value))return!1}else for(;!(L=F.next()).done;){var D=L.value;if(D&&!q(D[1]))return!1}}else return!1;return!0;default:return!1}}function K(h,S){return h==="symbol"?!0:S?S["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&S instanceof Symbol:!1}function I(h){var S=typeof h;return Array.isArray(h)?"array":h instanceof RegExp?"object":K(S,h)?"symbol":S}function ne(h){if(typeof h>"u"||h===null)return""+h;var S=I(h);if(S==="object"){if(h instanceof Date)return"date";if(h instanceof RegExp)return"regexp"}return S}function ue(h){var S=ne(h);switch(S){case"array":case"object":return"an "+S;case"boolean":case"date":case"regexp":return"a "+S;default:return S}}function J(h){return!h.constructor||!h.constructor.name?p:h.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},Ct}var St,En;function io(){if(En)return St;En=1;var e=bt();function n(){}function t(){}return t.resetWarningCache=n,St=function(){function r(a,l,c,u,d,g){if(g!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:n};return i.PropTypes=i,i},St}var _n;function ao(){if(_n)return Ze.exports;if(_n=1,process.env.NODE_ENV!=="production"){var e=yn(),n=!0;Ze.exports=oo()(e.isElement,n)}else Ze.exports=io()();return Ze.exports}var lo=ao();const ae=mn(lo);function Me(e,n,t,r){function o(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(g){a(g)}}function c(d){try{u(r.throw(d))}catch(g){a(g)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((r=r.apply(e,n||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const so=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Ae(e,n,t){const r=co(e),{webkitRelativePath:o}=e,i=typeof n=="string"?n:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&Pn(r,"path",i),Pn(r,"relativePath",i),r}function co(e){const{name:n}=e;if(n&&n.lastIndexOf(".")!==-1&&!e.type){const r=n.split(".").pop().toLowerCase(),o=so.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function Pn(e,n,t){Object.defineProperty(e,n,{value:t,writable:!1,configurable:!1,enumerable:!0})}const uo=[".DS_Store","Thumbs.db"];function po(e){return Me(this,void 0,void 0,function*(){return Xe(e)&&fo(e.dataTransfer)?ho(e.dataTransfer,e.type):mo(e)?go(e):Array.isArray(e)&&e.every(n=>"getFile"in n&&typeof n.getFile=="function")?vo(e):[]})}function fo(e){return Xe(e)}function mo(e){return Xe(e)&&Xe(e.target)}function Xe(e){return typeof e=="object"&&e!==null}function go(e){return jt(e.target.files).map(n=>Ae(n))}function vo(e){return Me(this,void 0,void 0,function*(){return(yield Promise.all(e.map(t=>t.getFile()))).map(t=>Ae(t))})}function ho(e,n){return Me(this,void 0,void 0,function*(){if(e.items){const t=jt(e.items).filter(o=>o.kind==="file");if(n!=="drop")return t;const r=yield Promise.all(t.map(xo));return Mn(Ln(r))}return Mn(jt(e.files).map(t=>Ae(t)))})}function Mn(e){return e.filter(n=>uo.indexOf(n.name)===-1)}function jt(e){if(e===null)return[];const n=[];for(let t=0;t<e.length;t++){const r=e[t];n.push(r)}return n}function xo(e){if(typeof e.webkitGetAsEntry!="function")return Fn(e);const n=e.webkitGetAsEntry();return n&&n.isDirectory?An(n):Fn(e,n)}function Ln(e){return e.reduce((n,t)=>[...n,...Array.isArray(t)?Ln(t):[t]],[])}function Fn(e,n){return Me(this,void 0,void 0,function*(){var t;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const i=yield e.getAsFileSystemHandle();if(i===null)throw new Error(`${e} is not a File`);if(i!==void 0){const a=yield i.getFile();return a.handle=i,Ae(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return Ae(r,(t=n==null?void 0:n.fullPath)!==null&&t!==void 0?t:void 0)})}function bo(e){return Me(this,void 0,void 0,function*(){return e.isDirectory?An(e):wo(e)})}function An(e){const n=e.createReader();return new Promise((t,r)=>{const o=[];function i(){n.readEntries(a=>Me(this,void 0,void 0,function*(){if(a.length){const l=Promise.all(a.map(bo));o.push(l),i()}else try{const l=yield Promise.all(o);t(l)}catch(l){r(l)}}),a=>{r(a)})}i()})}function wo(e){return Me(this,void 0,void 0,function*(){return new Promise((n,t)=>{e.file(r=>{const o=Ae(r,e.fullPath);n(o)},r=>{t(r)})})})}var Je={},Nn;function yo(){return Nn||(Nn=1,Je.__esModule=!0,Je.default=function(e,n){if(e&&n){var t=Array.isArray(n)?n:n.split(",");if(t.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return t.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0}),Je}var Co=yo();const kt=mn(Co);function Dn(e){return ko(e)||jo(e)||In(e)||So()}function So(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
80
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ko(e){if(Array.isArray(e))return $t(e)}function Tn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function zn(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Tn(Object(t),!0).forEach(function(r){On(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tn(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function On(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ie(e,n){return Eo(e)||Ro(e,n)||In(e,n)||$o()}function $o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
81
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(e,n){if(e){if(typeof e=="string")return $t(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return $t(e,n)}}function $t(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Ro(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],o=!0,i=!1,a,l;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!(n&&r.length===n));o=!0);}catch(c){i=!0,l=c}finally{try{!o&&t.return!=null&&t.return()}finally{if(i)throw l}}return r}}function Eo(e){if(Array.isArray(e))return e}var _o=typeof kt=="function"?kt:kt.default,Po="file-invalid-type",Mo="file-too-large",Lo="file-too-small",Fo="too-many-files",Ao=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=n.split(","),r=t.length>1?"one of ".concat(t.join(", ")):t[0];return{code:Po,message:"File type must be ".concat(r)}},Vn=function(n){return{code:Mo,message:"File is larger than ".concat(n," ").concat(n===1?"byte":"bytes")}},Hn=function(n){return{code:Lo,message:"File is smaller than ".concat(n," ").concat(n===1?"byte":"bytes")}},No={code:Fo,message:"Too many files"};function Bn(e,n){var t=e.type==="application/x-moz-file"||_o(e,n);return[t,t?null:Ao(n)]}function qn(e,n,t){if(Le(e.size))if(Le(n)&&Le(t)){if(e.size>t)return[!1,Vn(t)];if(e.size<n)return[!1,Hn(n)]}else{if(Le(n)&&e.size<n)return[!1,Hn(n)];if(Le(t)&&e.size>t)return[!1,Vn(t)]}return[!0,null]}function Le(e){return e!=null}function Do(e){var n=e.files,t=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,l=e.validator;return!i&&n.length>1||i&&a>=1&&n.length>a?!1:n.every(function(c){var u=Bn(c,t),d=Ie(u,1),g=d[0],p=qn(c,r,o),f=Ie(p,1),v=f[0],m=l?l(c):null;return g&&v&&!m})}function Qe(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function et(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(n){return n==="Files"||n==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Gn(e){e.preventDefault()}function To(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function zo(e){return e.indexOf("Edge/")!==-1}function Oo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return To(e)||zo(e)}function Ce(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return n.some(function(l){return!Qe(r)&&l&&l.apply(void 0,[r].concat(i)),Qe(r)})}}function Io(){return"showOpenFilePicker"in window}function Vo(e){if(Le(e)){var n=Object.entries(e).filter(function(t){var r=Ie(t,2),o=r[0],i=r[1],a=!0;return Wn(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(i)||!i.every(Un))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(t,r){var o=Ie(r,2),i=o[0],a=o[1];return zn(zn({},t),{},On({},i,a))},{});return[{description:"Files",accept:n}]}return e}function Ho(e){if(Le(e))return Object.entries(e).reduce(function(n,t){var r=Ie(t,2),o=r[0],i=r[1];return[].concat(Dn(n),[o],Dn(i))},[]).filter(function(n){return Wn(n)||Un(n)}).join(",")}function Bo(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function qo(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Wn(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Un(e){return/^.*\.[\w]+$/.test(e)}var Go=["children"],Wo=["open"],Uo=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Yo=["refKey","onChange","onClick"];function Zo(e){return Jo(e)||Xo(e)||Yn(e)||Ko()}function Ko(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jo(e){if(Array.isArray(e))return Et(e)}function Rt(e,n){return ti(e)||ei(e,n)||Yn(e,n)||Qo()}function Qo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yn(e,n){if(e){if(typeof e=="string")return Et(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Et(e,n)}}function Et(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ei(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],o=!0,i=!1,a,l;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!(n&&r.length===n));o=!0);}catch(c){i=!0,l=c}finally{try{!o&&t.return!=null&&t.return()}finally{if(i)throw l}}return r}}function ti(e){if(Array.isArray(e))return e}function Zn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),t.push.apply(t,r)}return t}function le(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Zn(Object(t),!0).forEach(function(r){_t(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Zn(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function _t(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function tt(e,n){if(e==null)return{};var t=ni(e,n),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function ni(e,n){if(e==null)return{};var t={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(n.indexOf(o)>=0)&&(t[o]=e[o]);return t}var Pt=w.forwardRef(function(e,n){var t=e.children,r=tt(e,Go),o=Xn(r),i=o.open,a=tt(o,Wo);return w.useImperativeHandle(n,function(){return{open:i}},[i]),w.createElement(w.Fragment,null,t(le(le({},a),{},{open:i})))});Pt.displayName="Dropzone";var Kn={disabled:!1,getFilesFromEvent:po,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Pt.defaultProps=Kn,Pt.propTypes={children:ae.func,accept:ae.objectOf(ae.arrayOf(ae.string)),multiple:ae.bool,preventDropOnDocument:ae.bool,noClick:ae.bool,noKeyboard:ae.bool,noDrag:ae.bool,noDragEventsBubbling:ae.bool,minSize:ae.number,maxSize:ae.number,maxFiles:ae.number,disabled:ae.bool,getFilesFromEvent:ae.func,onFileDialogCancel:ae.func,onFileDialogOpen:ae.func,useFsAccessApi:ae.bool,autoFocus:ae.bool,onDragEnter:ae.func,onDragLeave:ae.func,onDragOver:ae.func,onDrop:ae.func,onDropAccepted:ae.func,onDropRejected:ae.func,onError:ae.func,validator:ae.func};var Mt={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Xn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=le(le({},Kn),e),t=n.accept,r=n.disabled,o=n.getFilesFromEvent,i=n.maxSize,a=n.minSize,l=n.multiple,c=n.maxFiles,u=n.onDragEnter,d=n.onDragLeave,g=n.onDragOver,p=n.onDrop,f=n.onDropAccepted,v=n.onDropRejected,m=n.onFileDialogCancel,b=n.onFileDialogOpen,x=n.useFsAccessApi,R=n.autoFocus,y=n.preventDropOnDocument,E=n.noClick,C=n.noKeyboard,V=n.noDrag,T=n.noDragEventsBubbling,B=n.onError,A=n.validator,X=w.useMemo(function(){return Ho(t)},[t]),ie=w.useMemo(function(){return Vo(t)},[t]),se=w.useMemo(function(){return typeof b=="function"?b:Jn},[b]),ee=w.useMemo(function(){return typeof m=="function"?m:Jn},[m]),q=w.useRef(null),K=w.useRef(null),I=w.useReducer(ri,Mt),ne=Rt(I,2),ue=ne[0],J=ne[1],h=ue.isFocused,S=ue.isFileDialogActive,F=w.useRef(typeof window<"u"&&window.isSecureContext&&x&&Io()),L=function(){!F.current&&S&&setTimeout(function(){if(K.current){var U=K.current.files;U.length||(J({type:"closeDialog"}),ee())}},300)};w.useEffect(function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}},[K,S,ee,F]);var D=w.useRef([]),H=function(U){q.current&&q.current.contains(U.target)||(U.preventDefault(),D.current=[])};w.useEffect(function(){return y&&(document.addEventListener("dragover",Gn,!1),document.addEventListener("drop",H,!1)),function(){y&&(document.removeEventListener("dragover",Gn),document.removeEventListener("drop",H))}},[q,y]),w.useEffect(function(){return!r&&R&&q.current&&q.current.focus(),function(){}},[q,R,r]);var z=w.useCallback(function(N){B?B(N):console.error(N)},[B]),P=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N),D.current=[].concat(Zo(D.current),[N.target]),et(N)&&Promise.resolve(o(N)).then(function(U){if(!(Qe(N)&&!T)){var pe=U.length,me=pe>0&&Do({files:U,accept:X,minSize:a,maxSize:i,multiple:l,maxFiles:c,validator:A}),be=pe>0&&!me;J({isDragAccept:me,isDragReject:be,isDragActive:!0,type:"setDraggedFiles"}),u&&u(N)}}).catch(function(U){return z(U)})},[o,u,z,T,X,a,i,l,c,A]),M=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N);var U=et(N);if(U&&N.dataTransfer)try{N.dataTransfer.dropEffect="copy"}catch{}return U&&g&&g(N),!1},[g,T]),G=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N);var U=D.current.filter(function(me){return q.current&&q.current.contains(me)}),pe=U.indexOf(N.target);pe!==-1&&U.splice(pe,1),D.current=U,!(U.length>0)&&(J({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),et(N)&&d&&d(N))},[q,d,T]),W=w.useCallback(function(N,U){var pe=[],me=[];N.forEach(function(be){var Ge=Bn(be,X),De=Rt(Ge,2),ln=De[0],sn=De[1],cn=qn(be,a,i),vt=Rt(cn,2),un=vt[0],dn=vt[1],pn=A?A(be):null;if(ln&&un&&!pn)pe.push(be);else{var fn=[sn,dn];pn&&(fn=fn.concat(pn)),me.push({file:be,errors:fn.filter(function(Ul){return Ul})})}}),(!l&&pe.length>1||l&&c>=1&&pe.length>c)&&(pe.forEach(function(be){me.push({file:be,errors:[No]})}),pe.splice(0)),J({acceptedFiles:pe,fileRejections:me,isDragReject:me.length>0,type:"setFiles"}),p&&p(pe,me,U),me.length>0&&v&&v(me,U),pe.length>0&&f&&f(pe,U)},[J,l,X,a,i,c,p,f,v,A]),j=w.useCallback(function(N){N.preventDefault(),N.persist(),gt(N),D.current=[],et(N)&&Promise.resolve(o(N)).then(function(U){Qe(N)&&!T||W(U,N)}).catch(function(U){return z(U)}),J({type:"reset"})},[o,W,z,T]),k=w.useCallback(function(){if(F.current){J({type:"openDialog"}),se();var N={multiple:l,types:ie};window.showOpenFilePicker(N).then(function(U){return o(U)}).then(function(U){W(U,null),J({type:"closeDialog"})}).catch(function(U){Bo(U)?(ee(U),J({type:"closeDialog"})):qo(U)?(F.current=!1,K.current?(K.current.value=null,K.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):z(U)});return}K.current&&(J({type:"openDialog"}),se(),K.current.value=null,K.current.click())},[J,se,ee,x,W,z,ie,l]),_=w.useCallback(function(N){!q.current||!q.current.isEqualNode(N.target)||(N.key===" "||N.key==="Enter"||N.keyCode===32||N.keyCode===13)&&(N.preventDefault(),k())},[q,k]),Q=w.useCallback(function(){J({type:"focus"})},[]),te=w.useCallback(function(){J({type:"blur"})},[]),ce=w.useCallback(function(){E||(Oo()?setTimeout(k,0):k())},[E,k]),de=function(U){return r?null:U},he=function(U){return C?null:de(U)},mt=function(U){return V?null:de(U)},gt=function(U){T&&U.stopPropagation()},ql=w.useMemo(function(){return function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=N.refKey,pe=U===void 0?"ref":U,me=N.role,be=N.onKeyDown,Ge=N.onFocus,De=N.onBlur,ln=N.onClick,sn=N.onDragEnter,cn=N.onDragOver,vt=N.onDragLeave,un=N.onDrop,dn=tt(N,Uo);return le(le(_t({onKeyDown:he(Ce(be,_)),onFocus:he(Ce(Ge,Q)),onBlur:he(Ce(De,te)),onClick:de(Ce(ln,ce)),onDragEnter:mt(Ce(sn,P)),onDragOver:mt(Ce(cn,M)),onDragLeave:mt(Ce(vt,G)),onDrop:mt(Ce(un,j)),role:typeof me=="string"&&me!==""?me:"presentation"},pe,q),!r&&!C?{tabIndex:0}:{}),dn)}},[q,_,Q,te,ce,P,M,G,j,C,V,r]),Gl=w.useCallback(function(N){N.stopPropagation()},[]),Wl=w.useMemo(function(){return function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},U=N.refKey,pe=U===void 0?"ref":U,me=N.onChange,be=N.onClick,Ge=tt(N,Yo),De=_t({accept:X,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:de(Ce(me,j)),onClick:de(Ce(be,Gl)),tabIndex:-1},pe,K);return le(le({},De),Ge)}},[K,t,l,j,r]);return le(le({},ue),{},{isFocused:h&&!r,getRootProps:ql,getInputProps:Wl,rootRef:q,inputRef:K,open:de(k)})}function ri(e,n){switch(n.type){case"focus":return le(le({},e),{},{isFocused:!0});case"blur":return le(le({},e),{},{isFocused:!1});case"openDialog":return le(le({},Mt),{},{isFileDialogActive:!0});case"closeDialog":return le(le({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return le(le({},e),{},{isDragActive:n.isDragActive,isDragAccept:n.isDragAccept,isDragReject:n.isDragReject});case"setFiles":return le(le({},e),{},{acceptedFiles:n.acceptedFiles,fileRejections:n.fileRejections,isDragReject:n.isDragReject});case"reset":return le({},Mt);default:return e}}function Jn(){}const oi=({onFilesAccepted:e,onError:n,accept:t={"image/*":[],"application/pdf":[],"application/msword":[],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[]},multiple:r=!1,maxSizeInBytes:o=1*1024*1024,maxFiles:i=void 0,disabled:a=!1,label:l="Upload PDF",subLabel:c="Maximum size: 2 MB",icon:u=s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M3 19H21V21H3V19ZM13 5.82843V17H11V5.82843L4.92893 11.8995L3.51472 10.4853L12 2L20.4853 10.4853L19.0711 11.8995L13 5.82843Z"})}),wrapperClass:d="",iconClass:g="",labelClass:p="",subLabelClass:f="",showList:v=!0,listView:m=!0,showListImage:b=!1,uploadedFiles:x=[],onDeleteCallback:R=()=>{}})=>{const[y,E]=w.useState(x),[C,V]=w.useState([]);w.useEffect(()=>{E(x)},[x]);const T=w.useCallback((ee,q)=>{const K=[];if(q.length>0&&q.forEach(I=>{I.errors.forEach(ne=>{ne.code==="file-too-large"&&K.push(`${I.file.name} is too large (max ${(o/1024/1024).toFixed(2)}MB)`),ne.code==="file-invalid-type"&&K.push(`${I.file.name} has an invalid file type`)})}),i!==void 0&&(r?y.length:0)+ee.length>i&&K.push(`You can only upload up to ${i} file${i>1?"s":""}.`),K.length>0){V(K),n==null||n(K);return}else V([]);ee.length>0&&(E(I=>r?[...I,...ee]:ee),e(ee))},[e,n,o,i,y,r]),B=ee=>{E(q=>q.filter((K,I)=>I!==ee)),R(y)},{getRootProps:A,getInputProps:X,isDragActive:ie,isDragReject:se}=Xn({onDrop:T,accept:t,multiple:r,maxSize:o,disabled:a});return s.jsxs("div",{className:`
84
84
  border border-style-dashed rounded-lg p-0 overflow-hidden transition
85
- ${ae?"border-color-blue-500 bg-color-blue-50":"border-color-gray-200 bg-color-gray-50"}
85
+ ${ie?"border-color-blue-500 bg-color-blue-50":"border-color-gray-200 bg-color-gray-50"}
86
86
  ${se?"border-color-red-500 bg-color-red-50":""}
87
- ${i?"opacity-50 cursor-not-allowed":""}
87
+ ${a?"opacity-50 cursor-not-allowed":""}
88
88
  ${d}
89
- `,children:[s.jsxs("div",{...A(),className:"flex flex-col items-center justify-center text-center px-6 pt-6 pb-4 cursor-pointer",children:[s.jsx("input",{...X()}),s.jsx("div",{className:`text-4xl mb-2 ${g}`,children:u}),s.jsx("p",{className:`text-sm font-medium ${p}`,children:l}),c&&s.jsx("p",{className:`text-xs mt-1 ${f}`,children:c})]}),C.length>0&&s.jsx("div",{className:"text-left text-sm text-color-red-600 px-6 pb-2 space-y-1",children:C.map((ee,q)=>s.jsxs("p",{children:["• ",ee]},q))}),v&&y.length>0&&s.jsx("ul",{className:`w-full ${m?"space-y-2":"grid grid-columns-2 gap-2"} px-4 pb-4`,children:y.map((ee,q)=>s.jsxs("li",{className:"flex items-center justify-between bg-color-white rounded-md px-4 py-2 shadow-sm",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[b&&s.jsx("div",{className:"w-10 h-10 rounded bg-color-gray-100 overflow-hidden flex-shrink-0",children:s.jsx("img",{src:ee.type.startsWith("image/")?URL.createObjectURL(ee):"https://img.icons8.com/ios-filled/50/pdf-2.png",className:"w-full h-full object-cover",alt:"preview"})}),s.jsx("div",{className:"text-sm max-w-[200px]",children:s.jsx("p",{className:"font-medium truncate text-xs text-color-gray-700",children:ee.name})})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("p",{className:"text-xs text-color-gray-400",children:[(ee.size/1024).toFixed(2)," KB"]}),s.jsx("button",{className:"ml-2 p-1 bg-color-red-50 rounded-full text-color-red-500 hover:text-color-red-700 cursor-pointer",onClick:()=>B(q),children:s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})})})]})]},q))})]})};function Qn({options:e=[],selectedValue:n,onChange:t=()=>{},placementTop:r}){const[o,a]=w.useState(!1),i=w.useRef(null);return w.useEffect(()=>{function l(c){i.current&&!i.current.contains(c.target)&&a(!1)}return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[]),s.jsxs("div",{className:"relative w-fit rounded-md",ref:i,children:[s.jsxs("div",{className:"px-2 border border-color-gray-200 rounded-sm rounded-md flex items-center justify-center gap-1 cursor-pointer",onClick:()=>a(!o),children:[s.jsx("div",{className:"text-color-gray-700 flex text-sm font-medium leading-none",children:n}),s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})})]}),o&&s.jsx("div",{className:`p-1 absolute mt-1 w-fit min-w-20 max-w-60 bg-color-white border border-color-gray-200 shadow-lg rounded-md
89
+ `,children:[s.jsxs("div",{...A(),className:"flex flex-col items-center justify-center text-center px-6 pt-6 pb-4 cursor-pointer",children:[s.jsx("input",{...X()}),s.jsx("div",{className:`text-4xl mb-2 ${g}`,children:u}),s.jsx("p",{className:`text-sm font-medium ${p}`,children:l}),c&&s.jsx("p",{className:`text-xs mt-1 ${f}`,children:c})]}),C.length>0&&s.jsx("div",{className:"text-left text-sm text-color-red-600 px-6 pb-2 space-y-1",children:C.map((ee,q)=>s.jsxs("p",{children:["• ",ee]},q))}),v&&y.length>0&&s.jsx("ul",{className:`w-full ${m?"space-y-2":"grid grid-columns-2 gap-2"} px-4 pb-4`,children:y.map((ee,q)=>s.jsxs("li",{className:"flex items-center justify-between bg-color-white rounded-md px-4 py-2 shadow-sm",children:[s.jsxs("div",{className:"flex items-center gap-3",children:[b&&s.jsx("div",{className:"w-10 h-10 rounded bg-color-gray-100 overflow-hidden flex-shrink-0",children:s.jsx("img",{src:ee.type.startsWith("image/")?URL.createObjectURL(ee):"https://img.icons8.com/ios-filled/50/pdf-2.png",className:"w-full h-full object-cover",alt:"preview"})}),s.jsx("div",{className:"text-sm max-w-[200px]",children:s.jsx("p",{className:"font-medium truncate text-xs text-color-gray-700",children:ee.name})})]}),s.jsxs("div",{className:"flex items-center gap-3",children:[s.jsxs("p",{className:"text-xs text-color-gray-400",children:[(ee.size/1024).toFixed(2)," KB"]}),s.jsx("button",{className:"ml-2 p-1 bg-color-red-50 rounded-full text-color-red-500 hover:text-color-red-700 cursor-pointer",onClick:()=>B(q),children:s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})})})]})]},q))})]})};function Qn({options:e=[],selectedValue:n,onChange:t=()=>{},placementTop:r}){const[o,i]=w.useState(!1),a=w.useRef(null);return w.useEffect(()=>{function l(c){a.current&&!a.current.contains(c.target)&&i(!1)}return document.addEventListener("mousedown",l),()=>document.removeEventListener("mousedown",l)},[]),s.jsxs("div",{className:"relative w-fit rounded-md",ref:a,children:[s.jsxs("div",{className:"px-2 border border-color-gray-200 rounded-sm rounded-md flex items-center justify-center gap-1 cursor-pointer",onClick:()=>i(!o),children:[s.jsx("div",{className:"text-color-gray-700 flex text-sm font-medium leading-none",children:n}),s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})})]}),o&&s.jsx("div",{className:`p-1 absolute mt-1 w-fit min-w-20 max-w-60 bg-color-white border border-color-gray-200 shadow-lg rounded-md
90
90
  ${r?" bottom-7":" top-6"}`,children:e.map(l=>s.jsx("div",{className:`px-2 py-1 text-sm cursor-pointer rounded
91
- ${n===l?"bg-color-gray-100 text-color-gray-800 font-semibold":"hover:bg-color-gray-50"}`,onClick:()=>{t(l),a(!1)},children:l},String(l)))})]})}const ia={small:"w-8 h-8 text-base",medium:"w-12 h-12 text-2xl",large:"w-16 h-16 text-3xl"},la={none:"rounded-none",small:"rounded-sm",medium:"rounded-md",large:"rounded-lg",full:"rounded-full"},sa={outlined:"border border-color-gray-300 bg-transparent",filled:"border border-color-gray-300 bg-color-gray-50"},er=w.forwardRef(({className:e="",inputClass:n="",value:t="",onChange:r,onComplete:o,length:a=6,disabled:i=!1,size:l="medium",variant:c="outlined",rounded:u="medium",...d},g)=>{const p=w.useRef([]),f=(m,b)=>{var y;const x=m.target.value.replace(/[^0-9]/g,"").slice(0,1);if(!x&&t[b]===void 0)return;const R=t.substring(0,b)+x+t.substring(b+1,a);r==null||r(R),x&&b<a-1&&((y=p.current[b+1])==null||y.focus()),o&&R.length===a&&!R.split("").some(E=>!E)&&o(R)},v=(m,b)=>{var x,R,y;m.key==="Backspace"&&!t[b]&&b>0?(r==null||r(t.substring(0,b-1)+""+t.substring(b,a)),(x=p.current[b-1])==null||x.focus(),m.preventDefault()):m.key==="ArrowLeft"&&b>0?((R=p.current[b-1])==null||R.focus(),m.preventDefault()):m.key==="ArrowRight"&&b<a-1&&((y=p.current[b+1])==null||y.focus(),m.preventDefault())};return s.jsx("div",{className:`flex justify-center gap-2 ${e}`,children:Array.from({length:a}).map((m,b)=>s.jsx("input",{ref:x=>{p.current[b]=x},type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:1,disabled:i,className:`
91
+ ${n===l?"bg-color-gray-100 text-color-gray-800 font-semibold":"hover:bg-color-gray-50"}`,onClick:()=>{t(l),i(!1)},children:l},String(l)))})]})}const ii={small:"w-8 h-8 text-base",medium:"w-12 h-12 text-2xl",large:"w-16 h-16 text-3xl"},ai={none:"rounded-none",small:"rounded-sm",medium:"rounded-md",large:"rounded-lg",full:"rounded-full"},li={outlined:"border border-color-gray-300 bg-transparent",filled:"border border-color-gray-300 bg-color-gray-50"},er=w.forwardRef(({className:e="",inputClass:n="",value:t="",onChange:r,onComplete:o,length:i=6,disabled:a=!1,size:l="medium",variant:c="outlined",rounded:u="medium",...d},g)=>{const p=w.useRef([]),f=(m,b)=>{var y;const x=m.target.value.replace(/[^0-9]/g,"").slice(0,1);if(!x&&t[b]===void 0)return;const R=t.substring(0,b)+x+t.substring(b+1,i);r==null||r(R),x&&b<i-1&&((y=p.current[b+1])==null||y.focus()),o&&R.length===i&&!R.split("").some(E=>!E)&&o(R)},v=(m,b)=>{var x,R,y;m.key==="Backspace"&&!t[b]&&b>0?(r==null||r(t.substring(0,b-1)+""+t.substring(b,i)),(x=p.current[b-1])==null||x.focus(),m.preventDefault()):m.key==="ArrowLeft"&&b>0?((R=p.current[b-1])==null||R.focus(),m.preventDefault()):m.key==="ArrowRight"&&b<i-1&&((y=p.current[b+1])==null||y.focus(),m.preventDefault())};return s.jsx("div",{className:`flex justify-center gap-2 ${e}`,children:Array.from({length:i}).map((m,b)=>s.jsx("input",{ref:x=>{p.current[b]=x},type:"text",inputMode:"numeric",autoComplete:"one-time-code",maxLength:1,disabled:a,className:`
92
92
  text-center font-semibold focus:ring-1 ring-color-primary outline-0 transition-all
93
- ${ia[l]}
94
- ${sa[c]}
95
- ${la[u]}
93
+ ${ii[l]}
94
+ ${li[c]}
95
+ ${ai[u]}
96
96
  ${n}
97
- `,value:t[b]||"",onChange:x=>f(x,b),onKeyDown:x=>v(x,b),...d},b))})});er.displayName="OtpInput";const ca={small:"p-2 text-sm",medium:"p-3 text-base",large:"p-4 text-lg"},ua={filled:"bg-color-gray-100 border-color-gray-200",outlined:"border-color-gray-200 bg-color-transparent"},Lt=w.forwardRef(({placeholder:e,value:n,onChange:t,type:r="text",className:o="",inputClass:a="",iconStyle:i="",startIcon:l,endIcon:c,error:u,maxLength:d,label:g,labelClassName:p="",variant:f="outlined",size:v="medium",...m},b)=>{const x=u?"border-color-red-500 focus-within:ring-color-red-500":"border-color-gray-200",R=u?"text-color-red-500":i;return s.jsxs("div",{className:"w-full",children:[g&&s.jsx("label",{className:`text-sm text-color-gray-500 mb-2 block ${p}`,children:g}),s.jsxs("div",{className:`flex items-center w-full rounded-md border focus-within:ring-1 ${x} ${ua[f]} ${o}`,children:[l&&s.jsx("span",{className:`pl-3 ${R}`,children:l}),s.jsx("input",{...m,ref:b,type:r,placeholder:e,defaultValue:n,maxLength:d,onChange:t,className:`grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${ca[v]} ${a}`}),c&&s.jsx("span",{className:`pr-3 ${R}`,children:c})]}),u&&s.jsx("p",{className:"text-color-red-500 text-xs mt-1",children:u})]})});Lt.displayName="TextInput";const tr=w.forwardRef((e,n)=>{const[t,r]=w.useState(!1);return s.jsx(Lt,{...e,ref:n,type:t?"text":"password",inputClass:e.inputClass,startIcon:e.startIcon??s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M19 10H20C20.5523 10 21 10.4477 21 11V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V11C3 10.4477 3.44772 10 4 10H5V9C5 5.13401 8.13401 2 12 2C15.866 2 19 5.13401 19 9V10ZM5 12V20H19V12H5ZM11 14H13V18H11V14ZM17 10V9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9V10H17Z"})}),endIcon:s.jsx("span",{onClick:()=>r(!t),className:"cursor-pointer",children:t?s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})}):s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})})})})});tr.displayName="PasswordInput";const Ft=({src:e,alt:n,size:t="medium",fallback:r,className:o="",color:a="pearl",shape:i="circle"})=>{var u;const l={small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-base",large:"w-14 h-14 text-lg","extra-large":"w-20 h-20 text-xl"},c={circle:"rounded-full",rounded:"rounded-md",square:"rounded-none"};return s.jsx("div",{className:`inline-flex items-center justify-center font-medium overflow-hidden ${l[t]} ${c[i]} ${fe[a].filled} ${o}`,children:e?s.jsx("img",{src:e,alt:n,className:`object-cover w-full h-full ${c[i]}`}):r||((u=n==null?void 0:n[0])==null?void 0:u.toUpperCase())||"?"})},we=({variant:e="filled",color:n="blue",icon:t,onClick:r,className:o="",disabled:a=!1,roundedFull:i=!1,size:l="medium",autoFocus:c=!1,...u})=>{var f;const d=w.useRef(null),g=v=>{const m=d.current;if(!m)return;const b=document.createElement("span"),x=m.getBoundingClientRect(),R=Math.max(x.width,x.height);b.style.width=b.style.height=`${R}px`,b.style.left=`${v.clientX-x.left-R/2}px`,b.style.top=`${v.clientY-x.top-R/2}px`,b.className="ripple_small",m.appendChild(b),setTimeout(()=>b.remove(),600),r==null||r(v)},p=((f=fe[n])==null?void 0:f[e==="filled"?"filled":e==="outlined"?"outline":"transparent"])||"";return s.jsx("button",{ref:d,type:"button",disabled:a,onClick:g,className:`relative overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
97
+ `,value:t[b]||"",onChange:x=>f(x,b),onKeyDown:x=>v(x,b),...d},b))})});er.displayName="OtpInput";const si={small:"p-2 text-sm",medium:"p-3 text-base",large:"p-4 text-lg"},ci={filled:"bg-color-gray-100 border-color-gray-200",outlined:"border-color-gray-200 bg-color-transparent"},Lt=w.forwardRef(({placeholder:e,value:n,onChange:t,type:r="text",className:o="",inputClass:i="",iconStyle:a="",startIcon:l,endIcon:c,error:u,maxLength:d,label:g,labelClassName:p="",variant:f="outlined",size:v="medium",...m},b)=>{const x=u?"border-color-red-500 focus-within:ring-color-red-500":"border-color-gray-200",R=u?"text-color-red-500":a;return s.jsxs("div",{className:"w-full",children:[g&&s.jsx("label",{className:`text-sm text-color-gray-500 mb-2 block ${p}`,children:g}),s.jsxs("div",{className:`flex items-center w-full rounded-md border focus-within:ring-1 ${x} ${ci[f]} ${o}`,children:[l&&s.jsx("span",{className:`pl-3 ${R}`,children:l}),s.jsx("input",{...m,ref:b,type:r,placeholder:e,defaultValue:n,maxLength:d,onChange:t,className:`grow outline-0 w-full font-medium placeholder:font-normal bg-color-transparent ${si[v]} ${i}`}),c&&s.jsx("span",{className:`pr-3 ${R}`,children:c})]}),u&&s.jsx("p",{className:"text-color-red-500 text-xs mt-1",children:u})]})});Lt.displayName="TextInput";const tr=w.forwardRef((e,n)=>{const[t,r]=w.useState(!1);return s.jsx(Lt,{...e,ref:n,type:t?"text":"password",inputClass:e.inputClass,startIcon:e.startIcon??s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M19 10H20C20.5523 10 21 10.4477 21 11V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V11C3 10.4477 3.44772 10 4 10H5V9C5 5.13401 8.13401 2 12 2C15.866 2 19 5.13401 19 9V10ZM5 12V20H19V12H5ZM11 14H13V18H11V14ZM17 10V9C17 6.23858 14.7614 4 12 4C9.23858 4 7 6.23858 7 9V10H17Z"})}),endIcon:s.jsx("span",{onClick:()=>r(!t),className:"cursor-pointer",children:t?s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12.0003 3C17.3924 3 21.8784 6.87976 22.8189 12C21.8784 17.1202 17.3924 21 12.0003 21C6.60812 21 2.12215 17.1202 1.18164 12C2.12215 6.87976 6.60812 3 12.0003 3ZM12.0003 19C16.2359 19 19.8603 16.052 20.7777 12C19.8603 7.94803 16.2359 5 12.0003 5C7.7646 5 4.14022 7.94803 3.22278 12C4.14022 16.052 7.7646 19 12.0003 19ZM12.0003 16.5C9.51498 16.5 7.50026 14.4853 7.50026 12C7.50026 9.51472 9.51498 7.5 12.0003 7.5C14.4855 7.5 16.5003 9.51472 16.5003 12C16.5003 14.4853 14.4855 16.5 12.0003 16.5ZM12.0003 14.5C13.381 14.5 14.5003 13.3807 14.5003 12C14.5003 10.6193 13.381 9.5 12.0003 9.5C10.6196 9.5 9.50026 10.6193 9.50026 12C9.50026 13.3807 10.6196 14.5 12.0003 14.5Z"})}):s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M17.8827 19.2968C16.1814 20.3755 14.1638 21.0002 12.0003 21.0002C6.60812 21.0002 2.12215 17.1204 1.18164 12.0002C1.61832 9.62282 2.81932 7.5129 4.52047 5.93457L1.39366 2.80777L2.80788 1.39355L22.6069 21.1925L21.1927 22.6068L17.8827 19.2968ZM5.9356 7.3497C4.60673 8.56015 3.6378 10.1672 3.22278 12.0002C4.14022 16.0521 7.7646 19.0002 12.0003 19.0002C13.5997 19.0002 15.112 18.5798 16.4243 17.8384L14.396 15.8101C13.7023 16.2472 12.8808 16.5002 12.0003 16.5002C9.51498 16.5002 7.50026 14.4854 7.50026 12.0002C7.50026 11.1196 7.75317 10.2981 8.19031 9.60442L5.9356 7.3497ZM12.9139 14.328L9.67246 11.0866C9.5613 11.3696 9.50026 11.6777 9.50026 12.0002C9.50026 13.3809 10.6196 14.5002 12.0003 14.5002C12.3227 14.5002 12.6309 14.4391 12.9139 14.328ZM20.8068 16.5925L19.376 15.1617C20.0319 14.2268 20.5154 13.1586 20.7777 12.0002C19.8603 7.94818 16.2359 5.00016 12.0003 5.00016C11.1544 5.00016 10.3329 5.11773 9.55249 5.33818L7.97446 3.76015C9.22127 3.26959 10.5793 3.00016 12.0003 3.00016C17.3924 3.00016 21.8784 6.87992 22.8189 12.0002C22.5067 13.6998 21.8038 15.2628 20.8068 16.5925ZM11.7229 7.50857C11.8146 7.50299 11.9071 7.50016 12.0003 7.50016C14.4855 7.50016 16.5003 9.51488 16.5003 12.0002C16.5003 12.0933 16.4974 12.1858 16.4919 12.2775L11.7229 7.50857Z"})})})})});tr.displayName="PasswordInput";const Ft=({src:e,alt:n,size:t="medium",fallback:r,className:o="",color:i="pearl",shape:a="circle"})=>{var u;const l={small:"w-8 h-8 text-sm",medium:"w-10 h-10 text-base",large:"w-14 h-14 text-lg","extra-large":"w-20 h-20 text-xl"},c={circle:"rounded-full",rounded:"rounded-md",square:"rounded-none"};return s.jsx("div",{className:`inline-flex items-center justify-center font-medium overflow-hidden ${l[t]} ${c[a]} ${fe[i].filled} ${o}`,children:e?s.jsx("img",{src:e,alt:n,className:`object-cover w-full h-full ${c[a]}`}):r||((u=n==null?void 0:n[0])==null?void 0:u.toUpperCase())||"?"})},we=({variant:e="filled",color:n="blue",icon:t,onClick:r,className:o="",disabled:i=!1,roundedFull:a=!1,size:l="medium",autoFocus:c=!1,...u})=>{var f;const d=w.useRef(null),g=v=>{const m=d.current;if(!m)return;const b=document.createElement("span"),x=m.getBoundingClientRect(),R=Math.max(x.width,x.height);b.style.width=b.style.height=`${R}px`,b.style.left=`${v.clientX-x.left-R/2}px`,b.style.top=`${v.clientY-x.top-R/2}px`,b.className="ripple_small",m.appendChild(b),setTimeout(()=>b.remove(),600),r==null||r(v)},p=((f=fe[n])==null?void 0:f[e==="filled"?"filled":e==="outlined"?"outline":"transparent"])||"";return s.jsx("button",{ref:d,type:"button",disabled:i,onClick:g,className:`relative overflow-hidden flex items-center justify-center gap-1 transition-all focus:outline-0
98
98
  ${p}
99
99
  ${e==="outlined"&&"border"}
100
100
  ${o}
101
101
  ${l==="small"?"text-sm size-8":l==="large"?"text-lg size-12":"text-base size-10"}
102
- ${i?"rounded-full":"rounded-md"}
103
- ${a?`!text-color-gray-400 hover:bg-color-transparent ${e==="filled"&&"!bg-color-gray-200"} !border-color-gray-200 cursor-not-allowed`:"cursor-pointer hover:opacity-90"}
104
- `,autoFocus:c,...u,children:t&&s.jsx(s.Fragment,{children:t})})},da={small:"text-xs px-2 py-1 gap-1",medium:"text-sm px-3 py-[0.35rem] gap-2",large:"text-base px-4 py-2 gap-2"},nr={small:"!w-4 !h-4 text-xs",medium:"!w-5 !h-5 text-sm",large:"!w-6 !h-6 text-base"},pa=({label:e,color:n="blue",variant:t="filled",size:r="medium",className:o="",onClick:a,onDelete:i,deleteIcon:l,href:c,target:u="_self",avatar:d,icon:g})=>{var x,R;const p=(x=fe[n])==null?void 0:x.filled,f=(R=fe[n])==null?void 0:R.outline,v=da[r],m=`inline-flex items-center rounded-full font-medium leading-none ${t==="outlined"?`border ${f}`:p} ${v} ${a?"cursor-pointer transition hover:opacity-80":""}`.trim(),b=s.jsxs(s.Fragment,{children:[d&&s.jsx(Ft,{...typeof d=="object"?d:{},className:`-ml-1 mr-1 ${nr[r]}`}),g&&s.jsx("span",{className:"mr-1 -ml-1",children:g}),s.jsx("span",{children:e}),i&&s.jsx(we,{type:"button",className:`ml-1 -mr-1 ${nr[r]}`,tabIndex:-1,onClick:y=>{y.stopPropagation(),i(y)},color:"pearl",roundedFull:!0,icon:l||s.jsx("svg",{className:"p-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})})})]});return c?s.jsx("a",{href:c,target:u,className:`no-underline ${m} ${o}`,onClick:a,children:b}):s.jsx("span",{className:`${m} ${o}`,onClick:a,children:b})},fa=({size:e,imageUrl:n,name:t="User",number:r="1234567890",className:o=""})=>s.jsxs("div",{className:o||"flex items-center gap-2 w-fit bg-color-transparent rounded-md p-1",children:[s.jsx(Ft,{size:e,src:n,alt:`${t}'s profile`}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"text-sm font-medium text-color-gray-800",children:t}),s.jsx("span",{className:"text-xs text-color-gray-600",children:r})]})]}),ma=({steps:e,currentStep:n,className:t="",onChange:r})=>s.jsx("div",{className:`flex items-center ${t}`,children:e.map((o,a)=>{const i=a===n,l=a<n;return s.jsxs(w.Fragment,{children:[s.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer",onClick:()=>r==null?void 0:r(a),children:[s.jsx("div",{className:`flex items-center font-semibold justify-center w-7 h-7 rounded-full text-sm transition-color duration-200 leading-none
105
- ${i?"bg-color-blue-500 text-color-white ":l?"bg-color-green-500 text-color-white ":" bg-color-white text-color-gray-400 ring "}`,children:l?s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"})}):a+1}),s.jsx("span",{className:`text-sm ${i?"text-color-blue-600 ":"text-color-gray-600"}`,children:o.label})]}),a<e.length-1&&s.jsx("svg",{className:"mx-4 text-color-gray-400 size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})]},a)})});/**
102
+ ${a?"rounded-full":"rounded-md"}
103
+ ${i?`!text-color-gray-400 hover:bg-color-transparent ${e==="filled"&&"!bg-color-gray-200"} !border-color-gray-200 cursor-not-allowed`:"cursor-pointer hover:opacity-90"}
104
+ `,autoFocus:c,...u,children:t&&s.jsx(s.Fragment,{children:t})})},ui={small:"text-xs px-2 py-1 gap-1",medium:"text-sm px-3 py-[0.35rem] gap-2",large:"text-base px-4 py-2 gap-2"},nr={small:"!w-4 !h-4 text-xs",medium:"!w-5 !h-5 text-sm",large:"!w-6 !h-6 text-base"},di=({label:e,color:n="blue",variant:t="filled",size:r="medium",className:o="",onClick:i,onDelete:a,deleteIcon:l,href:c,target:u="_self",avatar:d,icon:g})=>{var x,R;const p=(x=fe[n])==null?void 0:x.filled,f=(R=fe[n])==null?void 0:R.outline,v=ui[r],m=`inline-flex items-center rounded-full font-medium leading-none ${t==="outlined"?`border ${f}`:p} ${v} ${i?"cursor-pointer transition hover:opacity-80":""}`.trim(),b=s.jsxs(s.Fragment,{children:[d&&s.jsx(Ft,{...typeof d=="object"?d:{},className:`-ml-1 mr-1 ${nr[r]}`}),g&&s.jsx("span",{className:"mr-1 -ml-1",children:g}),s.jsx("span",{children:e}),a&&s.jsx(we,{type:"button",className:`ml-1 -mr-1 ${nr[r]}`,tabIndex:-1,onClick:y=>{y.stopPropagation(),a(y)},color:"pearl",roundedFull:!0,icon:l||s.jsx("svg",{className:"p-1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})})})]});return c?s.jsx("a",{href:c,target:u,className:`no-underline ${m} ${o}`,onClick:i,children:b}):s.jsx("span",{className:`${m} ${o}`,onClick:i,children:b})},pi=({size:e,imageUrl:n,name:t="User",number:r="1234567890",className:o=""})=>s.jsxs("div",{className:o||"flex items-center gap-2 w-fit bg-color-transparent rounded-md p-1",children:[s.jsx(Ft,{size:e,src:n,alt:`${t}'s profile`}),s.jsxs("div",{className:"flex flex-col",children:[s.jsx("span",{className:"text-sm font-medium text-color-gray-800",children:t}),s.jsx("span",{className:"text-xs text-color-gray-600",children:r})]})]}),fi=({steps:e,currentStep:n,className:t="",onChange:r})=>s.jsx("div",{className:`flex items-center ${t}`,children:e.map((o,i)=>{const a=i===n,l=i<n;return s.jsxs(w.Fragment,{children:[s.jsxs("div",{className:"flex items-center space-x-2 cursor-pointer",onClick:()=>r==null?void 0:r(i),children:[s.jsx("div",{className:`flex items-center font-semibold justify-center w-7 h-7 rounded-full text-sm transition-color duration-200 leading-none
105
+ ${a?"bg-color-blue-500 text-color-white ":l?"bg-color-green-500 text-color-white ":" bg-color-white text-color-gray-400 ring "}`,children:l?s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M9.9997 15.1709L19.1921 5.97852L20.6063 7.39273L9.9997 17.9993L3.63574 11.6354L5.04996 10.2212L9.9997 15.1709Z"})}):i+1}),s.jsx("span",{className:`text-sm ${a?"text-color-blue-600 ":"text-color-gray-600"}`,children:o.label})]}),i<e.length-1&&s.jsx("svg",{className:"mx-4 text-color-gray-400 size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})]},i)})});/**
106
106
  * table-core
107
107
  *
108
108
  * Copyright (c) TanStack
@@ -111,10 +111,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
111
111
  * LICENSE.md file in the root directory of this source tree.
112
112
  *
113
113
  * @license MIT
114
- */function Ee(e,n){return typeof e=="function"?e(n):e}function xe(e,n){return t=>{n.setState(r=>({...r,[e]:Ee(t,r[e])}))}}function nt(e){return e instanceof Function}function ga(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function va(e,n){const t=[],r=o=>{o.forEach(a=>{t.push(a);const i=n(a);i!=null&&i.length&&r(i)})};return r(e),t}function Y(e,n,t){let r=[],o;return a=>{let i;t.key&&t.debug&&(i=Date.now());const l=e(a);if(!(l.length!==r.length||l.some((d,g)=>r[g]!==d)))return o;r=l;let u;if(t.key&&t.debug&&(u=Date.now()),o=n(...l),t==null||t.onChange==null||t.onChange(o),t.key&&t.debug&&t!=null&&t.debug()){const d=Math.round((Date.now()-i)*100)/100,g=Math.round((Date.now()-u)*100)/100,p=g/16,f=(v,m)=>{for(v=String(v);v.length<m;)v=" "+v;return v};console.info(`%c⏱ ${f(g,5)} /${f(d,5)} ms`,`
114
+ */function Ee(e,n){return typeof e=="function"?e(n):e}function xe(e,n){return t=>{n.setState(r=>({...r,[e]:Ee(t,r[e])}))}}function nt(e){return e instanceof Function}function mi(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function gi(e,n){const t=[],r=o=>{o.forEach(i=>{t.push(i);const a=n(i);a!=null&&a.length&&r(a)})};return r(e),t}function Y(e,n,t){let r=[],o;return i=>{let a;t.key&&t.debug&&(a=Date.now());const l=e(i);if(!(l.length!==r.length||l.some((d,g)=>r[g]!==d)))return o;r=l;let u;if(t.key&&t.debug&&(u=Date.now()),o=n(...l),t==null||t.onChange==null||t.onChange(o),t.key&&t.debug&&t!=null&&t.debug()){const d=Math.round((Date.now()-a)*100)/100,g=Math.round((Date.now()-u)*100)/100,p=g/16,f=(v,m)=>{for(v=String(v);v.length<m;)v=" "+v;return v};console.info(`%c⏱ ${f(g,5)} /${f(d,5)} ms`,`
115
115
  font-size: .6rem;
116
116
  font-weight: bold;
117
- color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,t==null?void 0:t.key)}return o}}function Z(e,n,t,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[n]},key:process.env.NODE_ENV==="development"&&t,onChange:r}}function ha(e,n,t,r){const o=()=>{var i;return(i=a.getValue())!=null?i:e.options.renderFallbackValue},a={id:`${n.id}_${t.id}`,row:n,column:t,getValue:()=>n.getValue(r),renderValue:o,getContext:Y(()=>[e,t,n,a],(i,l,c,u)=>({table:i,column:l,row:c,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Z(e.options,"debugCells","cell.getContext"))};return e._features.forEach(i=>{i.createCell==null||i.createCell(a,t,n,e)},{}),a}function xa(e,n,t,r){var o,a;const l={...e._getDefaultColumnDef(),...n},c=l.accessorKey;let u=(o=(a=l.id)!=null?a:c?typeof String.prototype.replaceAll=="function"?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,d;if(l.accessorFn?d=l.accessorFn:c&&(c.includes(".")?d=p=>{let f=p;for(const m of c.split(".")){var v;f=(v=f)==null?void 0:v[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${c}" returned undefined.`)}return f}:d=p=>p[l.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let g={id:`${String(u)}`,accessorFn:d,parent:r,depth:t,columnDef:l,columns:[],getFlatColumns:Y(()=>[!0],()=>{var p;return[g,...(p=g.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},Z(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Y(()=>[e._getOrderColumnsFn()],p=>{var f;if((f=g.columns)!=null&&f.length){let v=g.columns.flatMap(m=>m.getLeafColumns());return p(v)}return[g]},Z(e.options,"debugColumns","column.getLeafColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(g,e);return g}const ve="debugHeaders";function rr(e,n,t){var r;let a={id:(r=t.id)!=null?r:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const i=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),i.push(c)};return l(a),i},getContext:()=>({table:e,header:a,column:n})};return e._features.forEach(i=>{i.createHeader==null||i.createHeader(a,e)}),a}const ba={createTable:e=>{e.getHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>{var a,i;const l=(a=r==null?void 0:r.map(g=>t.find(p=>p.id===g)).filter(Boolean))!=null?a:[],c=(i=o==null?void 0:o.map(g=>t.find(p=>p.id===g)).filter(Boolean))!=null?i:[],u=t.filter(g=>!(r!=null&&r.includes(g.id))&&!(o!=null&&o.includes(g.id)));return rt(n,[...l,...u,...c],e)},Z(e.options,ve,"getHeaderGroups")),e.getCenterHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>(t=t.filter(a=>!(r!=null&&r.includes(a.id))&&!(o!=null&&o.includes(a.id))),rt(n,t,e,"center")),Z(e.options,ve,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,t,r)=>{var o;const a=(o=r==null?void 0:r.map(i=>t.find(l=>l.id===i)).filter(Boolean))!=null?o:[];return rt(n,a,e,"left")},Z(e.options,ve,"getLeftHeaderGroups")),e.getRightHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,t,r)=>{var o;const a=(o=r==null?void 0:r.map(i=>t.find(l=>l.id===i)).filter(Boolean))!=null?o:[];return rt(n,a,e,"right")},Z(e.options,ve,"getRightHeaderGroups")),e.getFooterGroups=Y(()=>[e.getHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getFooterGroups")),e.getLeftFooterGroups=Y(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getLeftFooterGroups")),e.getCenterFooterGroups=Y(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getCenterFooterGroups")),e.getRightFooterGroups=Y(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getRightFooterGroups")),e.getFlatHeaders=Y(()=>[e.getHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getFlatHeaders")),e.getLeftFlatHeaders=Y(()=>[e.getLeftHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Y(()=>[e.getCenterHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getCenterFlatHeaders")),e.getRightFlatHeaders=Y(()=>[e.getRightHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getRightFlatHeaders")),e.getCenterLeafHeaders=Y(()=>[e.getCenterFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Z(e.options,ve,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Y(()=>[e.getLeftFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Z(e.options,ve,"getLeftLeafHeaders")),e.getRightLeafHeaders=Y(()=>[e.getRightFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Z(e.options,ve,"getRightLeafHeaders")),e.getLeafHeaders=Y(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,t,r)=>{var o,a,i,l,c,u;return[...(o=(a=n[0])==null?void 0:a.headers)!=null?o:[],...(i=(l=t[0])==null?void 0:l.headers)!=null?i:[],...(c=(u=r[0])==null?void 0:u.headers)!=null?c:[]].map(d=>d.getLeafHeaders()).flat()},Z(e.options,ve,"getLeafHeaders"))}};function rt(e,n,t,r){var o,a;let i=0;const l=function(p,f){f===void 0&&(f=1),i=Math.max(i,f),p.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&l(v.columns,f+1)},0)};l(e);let c=[];const u=(p,f)=>{const v={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];p.forEach(b=>{const x=[...m].reverse()[0],R=b.column.depth===v.depth;let y,E=!1;if(R&&b.column.parent?y=b.column.parent:(y=b.column,E=!0),x&&(x==null?void 0:x.column)===y)x.subHeaders.push(b);else{const C=rr(t,y,{id:[r,f,y.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:E,placeholderId:E?`${m.filter(V=>V.column===y).length}`:void 0,depth:f,index:m.length});C.subHeaders.push(b),m.push(C)}v.headers.push(b),b.headerGroup=v}),c.push(v),f>0&&u(m,f-1)},d=n.map((p,f)=>rr(t,p,{depth:i,index:f}));u(d,i-1),c.reverse();const g=p=>p.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,b=0,x=[0];v.subHeaders&&v.subHeaders.length?(x=[],g(v.subHeaders).forEach(y=>{let{colSpan:E,rowSpan:C}=y;m+=E,x.push(C)})):m=1;const R=Math.min(...x);return b=b+R,v.colSpan=m,v.rowSpan=b,{colSpan:m,rowSpan:b}});return g((o=(a=c[0])==null?void 0:a.headers)!=null?o:[]),c}const wa=(e,n,t,r,o,a,i)=>{let l={id:n,index:r,original:t,depth:o,parentId:i,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const u=e.getColumn(c);if(u!=null&&u.accessorFn)return l._valuesCache[c]=u.accessorFn(l.original,r),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const u=e.getColumn(c);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=u.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var u;return(u=l.getValue(c))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>va(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],u=l;for(;;){const d=u.getParentRow();if(!d)break;c.push(d),u=d}return c.reverse()},getAllCells:Y(()=>[e.getAllLeafColumns()],c=>c.map(u=>ha(e,l,u,u.id)),Z(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Y(()=>[l.getAllCells()],c=>c.reduce((u,d)=>(u[d.column.id]=d,u),{}),Z(e.options,"debugRows","getAllCellsByColumnId"))};for(let c=0;c<e._features.length;c++){const u=e._features[c];u==null||u.createRow==null||u.createRow(l,e)}return l},ya={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},or=(e,n,t)=>{var r,o;const a=t==null||(r=t.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(a))};or.autoRemove=e=>ye(e);const ar=(e,n,t)=>{var r;return!!(!((r=e.getValue(n))==null||(r=r.toString())==null)&&r.includes(t))};ar.autoRemove=e=>ye(e);const ir=(e,n,t)=>{var r;return((r=e.getValue(n))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(t==null?void 0:t.toLowerCase())};ir.autoRemove=e=>ye(e);const lr=(e,n,t)=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(t)};lr.autoRemove=e=>ye(e);const sr=(e,n,t)=>!t.some(r=>{var o;return!((o=e.getValue(n))!=null&&o.includes(r))});sr.autoRemove=e=>ye(e)||!(e!=null&&e.length);const cr=(e,n,t)=>t.some(r=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(r)});cr.autoRemove=e=>ye(e)||!(e!=null&&e.length);const ur=(e,n,t)=>e.getValue(n)===t;ur.autoRemove=e=>ye(e);const dr=(e,n,t)=>e.getValue(n)==t;dr.autoRemove=e=>ye(e);const At=(e,n,t)=>{let[r,o]=t;const a=e.getValue(n);return a>=r&&a<=o};At.resolveFilterValue=e=>{let[n,t]=e,r=typeof n!="number"?parseFloat(n):n,o=typeof t!="number"?parseFloat(t):t,a=n===null||Number.isNaN(r)?-1/0:r,i=t===null||Number.isNaN(o)?1/0:o;if(a>i){const l=a;a=i,i=l}return[a,i]},At.autoRemove=e=>ye(e)||ye(e[0])&&ye(e[1]);const Se={includesString:or,includesStringSensitive:ar,equalsString:ir,arrIncludes:lr,arrIncludesAll:sr,arrIncludesSome:cr,equals:ur,weakEquals:dr,inNumberRange:At};function ye(e){return e==null||e===""}const Ca={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:xe("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);return typeof r=="string"?Se.includesString:typeof r=="number"?Se.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Se.equals:Array.isArray(r)?Se.arrIncludes:Se.weakEquals},e.getFilterFn=()=>{var t,r;return nt(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(r=n.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?t:Se[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,r,o;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((r=n.options.enableColumnFilters)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=n.getState().columnFilters)==null||(t=t.find(r=>r.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,r;return(t=(r=n.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.setFilterValue=t=>{n.setColumnFilters(r=>{const o=e.getFilterFn(),a=r==null?void 0:r.find(d=>d.id===e.id),i=Ee(t,a?a.value:void 0);if(pr(o,i,e)){var l;return(l=r==null?void 0:r.filter(d=>d.id!==e.id))!=null?l:[]}const c={id:e.id,value:i};if(a){var u;return(u=r==null?void 0:r.map(d=>d.id===e.id?c:d))!=null?u:[]}return r!=null&&r.length?[...r,c]:[c]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const t=e.getAllLeafColumns(),r=o=>{var a;return(a=Ee(n,o))==null?void 0:a.filter(i=>{const l=t.find(c=>c.id===i.id);if(l){const c=l.getFilterFn();if(pr(c,i.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=n=>{var t,r;e.setColumnFilters(n?[]:(t=(r=e.initialState)==null?void 0:r.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function pr(e,n,t){return(e&&e.autoRemove?e.autoRemove(n,t):!1)||typeof n>"u"||typeof n=="string"&&!n}const Nt={sum:(e,n,t)=>t.reduce((r,o)=>{const a=o.getValue(e);return r+(typeof a=="number"?a:0)},0),min:(e,n,t)=>{let r;return t.forEach(o=>{const a=o.getValue(e);a!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}),r},max:(e,n,t)=>{let r;return t.forEach(o=>{const a=o.getValue(e);a!=null&&(r<a||r===void 0&&a>=a)&&(r=a)}),r},extent:(e,n,t)=>{let r,o;return t.forEach(a=>{const i=a.getValue(e);i!=null&&(r===void 0?i>=i&&(r=o=i):(r>i&&(r=i),o<i&&(o=i)))}),[r,o]},mean:(e,n)=>{let t=0,r=0;if(n.forEach(o=>{let a=o.getValue(e);a!=null&&(a=+a)>=a&&(++t,r+=a)}),t)return r/t},median:(e,n)=>{if(!n.length)return;const t=n.map(a=>a.getValue(e));if(!ga(t))return;if(t.length===1)return t[0];const r=Math.floor(t.length/2),o=t.sort((a,i)=>a-i);return t.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,n)=>Array.from(new Set(n.map(t=>t.getValue(e))).values()),uniqueCount:(e,n)=>new Set(n.map(t=>t.getValue(e))).size,count:(e,n)=>n.length},Sa={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return(n=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:xe("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(r=>r!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,r;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((r=n.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);if(typeof r=="number")return Nt.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nt.extent},e.getAggregationFn=()=>{var t,r;if(!e)throw new Error;return nt(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(r=n.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?t:Nt[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var t,r;e.setGrouping(n?[]:(t=(r=e.initialState)==null?void 0:r.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const r=n.getColumn(t);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[t]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,n,t,r)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=t.subRows)!=null&&o.length)}}};function ja(e,n,t){if(!(n!=null&&n.length)||!t)return e;const r=e.filter(a=>!n.includes(a.id));return t==="remove"?r:[...n.map(a=>e.find(i=>i.id===a)).filter(Boolean),...r]}const ka={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:xe("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=Y(t=>[Ve(n,t)],t=>t.findIndex(r=>r.id===e.id),Z(n.options,"debugColumns","getIndex")),e.getIsFirstColumn=t=>{var r;return((r=Ve(n,t)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=t=>{var r;const o=Ve(n,t);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var t;e.setColumnOrder(n?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=Y(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,t,r)=>o=>{let a=[];if(!(n!=null&&n.length))a=o;else{const i=[...n],l=[...o];for(;l.length&&i.length;){const c=i.shift(),u=l.findIndex(d=>d.id===c);u>-1&&a.push(l.splice(u,1)[0])}a=[...a,...l]}return ja(a,t,r)},Z(e.options,"debugTable","_getOrderColumnsFn"))}},Dt=()=>({left:[],right:[]}),$a={getInitialState:e=>({columnPinning:Dt(),...e}),getDefaultOptions:e=>({onColumnPinningChange:xe("columnPinning",e)}),createColumn:(e,n)=>{e.pin=t=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);n.setColumnPinning(o=>{var a,i;if(t==="right"){var l,c;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(g=>!(r!=null&&r.includes(g))),right:[...((c=o==null?void 0:o.right)!=null?c:[]).filter(g=>!(r!=null&&r.includes(g))),...r]}}if(t==="left"){var u,d;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(g=>!(r!=null&&r.includes(g))),...r],right:((d=o==null?void 0:o.right)!=null?d:[]).filter(g=>!(r!=null&&r.includes(g)))}}return{left:((a=o==null?void 0:o.left)!=null?a:[]).filter(g=>!(r!=null&&r.includes(g))),right:((i=o==null?void 0:o.right)!=null?i:[]).filter(g=>!(r!=null&&r.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,a,i;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((a=(i=n.options.enableColumnPinning)!=null?i:n.options.enablePinning)!=null?a:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(l=>l.id),{left:r,right:o}=n.getState().columnPinning,a=t.some(l=>r==null?void 0:r.includes(l)),i=t.some(l=>o==null?void 0:o.includes(l));return a?"left":i?"right":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();return o?(t=(r=n.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?t:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=Y(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(t,r,o)=>{const a=[...r??[],...o??[]];return t.filter(i=>!a.includes(i.column.id))},Z(n.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Y(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(t,r)=>(r??[]).map(a=>t.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"left"})),Z(n.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Y(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(t,r)=>(r??[]).map(a=>t.find(i=>i.column.id===a)).filter(Boolean).map(a=>({...a,position:"right"})),Z(n.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var t,r;return e.setColumnPinning(n?Dt():(t=(r=e.initialState)==null?void 0:r.columnPinning)!=null?t:Dt())},e.getIsSomeColumnsPinned=n=>{var t;const r=e.getState().columnPinning;if(!n){var o,a;return!!((o=r.left)!=null&&o.length||(a=r.right)!=null&&a.length)}return!!((t=r[n])!=null&&t.length)},e.getLeftLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Z(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Z(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r)=>{const o=[...t??[],...r??[]];return n.filter(a=>!o.includes(a.id))},Z(e.options,"debugColumns","getCenterLeafColumns"))}},ot={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Tt=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Ra={getDefaultColumnDef:()=>ot,getInitialState:e=>({columnSizing:{},columnSizingInfo:Tt(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:xe("columnSizing",e),onColumnSizingInfoChange:xe("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var t,r,o;const a=n.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:ot.minSize,(r=a??e.columnDef.size)!=null?r:ot.size),(o=e.columnDef.maxSize)!=null?o:ot.maxSize)},e.getStart=Y(t=>[t,Ve(n,t),n.getState().columnSizing],(t,r)=>r.slice(0,e.getIndex(t)).reduce((o,a)=>o+a.getSize(),0),Z(n.options,"debugColumns","getStart")),e.getAfter=Y(t=>[t,Ve(n,t),n.getState().columnSizing],(t,r)=>r.slice(e.getIndex(t)+1).reduce((o,a)=>o+a.getSize(),0),Z(n.options,"debugColumns","getAfter")),e.resetSize=()=>{n.setColumnSizing(t=>{let{[e.id]:r,...o}=t;return o})},e.getCanResize=()=>{var t,r;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((r=n.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let t=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var a;t+=(a=o.column.getSize())!=null?a:0}};return r(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const r=n.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return a=>{if(!r||!o||(a.persist==null||a.persist(),zt(a)&&a.touches&&a.touches.length>1))return;const i=e.getSize(),l=e?e.getLeafHeaders().map(x=>[x.column.id,x.column.getSize()]):[[r.id,r.getSize()]],c=zt(a)?Math.round(a.touches[0].clientX):a.clientX,u={},d=(x,R)=>{typeof R=="number"&&(n.setColumnSizingInfo(y=>{var E,C;const V=n.options.columnResizeDirection==="rtl"?-1:1,T=(R-((E=y==null?void 0:y.startOffset)!=null?E:0))*V,B=Math.max(T/((C=y==null?void 0:y.startSize)!=null?C:0),-.999999);return y.columnSizingStart.forEach(A=>{let[X,ae]=A;u[X]=Math.round(Math.max(ae+ae*B,0)*100)/100}),{...y,deltaOffset:T,deltaPercentage:B}}),(n.options.columnResizeMode==="onChange"||x==="end")&&n.setColumnSizing(y=>({...y,...u})))},g=x=>d("move",x),p=x=>{d("end",x),n.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=t||typeof document<"u"?document:null,v={moveHandler:x=>g(x.clientX),upHandler:x=>{f==null||f.removeEventListener("mousemove",v.moveHandler),f==null||f.removeEventListener("mouseup",v.upHandler),p(x.clientX)}},m={moveHandler:x=>(x.cancelable&&(x.preventDefault(),x.stopPropagation()),g(x.touches[0].clientX),!1),upHandler:x=>{var R;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),p((R=x.touches[0])==null?void 0:R.clientX)}},b=Ea()?{passive:!1}:!1;zt(a)?(f==null||f.addEventListener("touchmove",m.moveHandler,b),f==null||f.addEventListener("touchend",m.upHandler,b)):(f==null||f.addEventListener("mousemove",v.moveHandler,b),f==null||f.addEventListener("mouseup",v.upHandler,b)),n.setColumnSizingInfo(x=>({...x,startOffset:c,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var t;e.setColumnSizing(n?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=n=>{var t;e.setColumnSizingInfo(n?Tt():(t=e.initialState.columnSizingInfo)!=null?t:Tt())},e.getTotalSize=()=>{var n,t;return(n=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,t;return(n=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,t;return(n=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,t;return(n=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0}}};let at=null;function Ea(){if(typeof at=="boolean")return at;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch{e=!1}return at=e,at}function zt(e){return e.type==="touchstart"}const _a={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:xe("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=t=>{e.getCanHide()&&n.setColumnVisibility(r=>({...r,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,r;const o=e.columns;return(t=o.length?o.some(a=>a.getIsVisible()):(r=n.getState().columnVisibility)==null?void 0:r[e.id])!=null?t:!0},e.getCanHide=()=>{var t,r;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((r=n.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=Y(()=>[e.getAllCells(),n.getState().columnVisibility],t=>t.filter(r=>r.column.getIsVisible()),Z(n.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Y(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,r,o)=>[...t,...r,...o],Z(n.options,"debugRows","getVisibleCells"))},createTable:e=>{const n=(t,r)=>Y(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(a=>a.getIsVisible==null?void 0:a.getIsVisible()),Z(e.options,"debugColumns",t));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var r;e.setColumnVisibility(t?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=t=>{var r;t=(r=t)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,a)=>({...o,[a.id]:t||!(a.getCanHide!=null&&a.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;e.toggleAllColumnsVisible((r=t.target)==null?void 0:r.checked)}}};function Ve(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Pa={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Ma={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:xe("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t;const r=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[n.id])==null?void 0:t.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var t,r,o,a;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((r=n.options.enableGlobalFilter)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&((a=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?a:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Se.includesString,e.getGlobalFilterFn=()=>{var n,t;const{globalFilterFn:r}=e.options;return nt(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(n=(t=e.options.filterFns)==null?void 0:t[r])!=null?n:Se[r]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},La={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:xe("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;e._autoResetExpanded=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,a;e.setExpanded(r?{}:(o=(a=e.initialState)==null?void 0:a.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(a=>{const i=a.split(".");r=Math.max(r,i.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=t=>{n.setExpanded(r=>{var o;const a=r===!0?!0:!!(r!=null&&r[e.id]);let i={};if(r===!0?Object.keys(n.getRowModel().rowsById).forEach(l=>{i[l]=!0}):i=r,t=(o=t)!=null?o:!a,!a&&t)return{...i,[e.id]:!0};if(a&&!t){const{[e.id]:l,...c}=i;return c}return r})},e.getIsExpanded=()=>{var t;const r=n.getState().expanded;return!!((t=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?t:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var t,r,o;return(t=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?t:((r=n.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let t=!0,r=e;for(;t&&r.parentId;)r=n.getRow(r.parentId,!0),t=r.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Ot=0,It=10,Vt=()=>({pageIndex:Ot,pageSize:It}),Fa={getInitialState:e=>({...e,pagination:{...Vt(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:xe("pagination",e)}),createTable:e=>{let n=!1,t=!1;e._autoResetPageIndex=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=r=>{const o=a=>Ee(r,a);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Vt():(o=e.initialState.pagination)!=null?o:Vt())},e.setPageIndex=r=>{e.setPagination(o=>{let a=Ee(r,o.pageIndex);const i=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return a=Math.max(0,Math.min(a,i)),{...o,pageIndex:a}})},e.resetPageIndex=r=>{var o,a;e.setPageIndex(r?Ot:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageIndex)!=null?o:Ot)},e.resetPageSize=r=>{var o,a;e.setPageSize(r?It:(o=(a=e.initialState)==null||(a=a.pagination)==null?void 0:a.pageSize)!=null?o:It)},e.setPageSize=r=>{e.setPagination(o=>{const a=Math.max(1,Ee(r,o.pageSize)),i=o.pageSize*o.pageIndex,l=Math.floor(i/a);return{...o,pageIndex:l,pageSize:a}})},e.setPageCount=r=>e.setPagination(o=>{var a;let i=Ee(r,(a=e.options.pageCount)!=null?a:-1);return typeof i=="number"&&(i=Math.max(-1,i)),{...o,pageCount:i}}),e.getPageOptions=Y(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((a,i)=>i)),o},Z(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ht=()=>({top:[],bottom:[]}),Aa={getInitialState:e=>({rowPinning:Ht(),...e}),getDefaultOptions:e=>({onRowPinningChange:xe("rowPinning",e)}),createRow:(e,n)=>{e.pin=(t,r,o)=>{const a=r?e.getLeafRows().map(c=>{let{id:u}=c;return u}):[],i=o?e.getParentRows().map(c=>{let{id:u}=c;return u}):[],l=new Set([...i,e.id,...a]);n.setRowPinning(c=>{var u,d;if(t==="bottom"){var g,p;return{top:((g=c==null?void 0:c.top)!=null?g:[]).filter(m=>!(l!=null&&l.has(m))),bottom:[...((p=c==null?void 0:c.bottom)!=null?p:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)]}}if(t==="top"){var f,v;return{top:[...((f=c==null?void 0:c.top)!=null?f:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)],bottom:((v=c==null?void 0:c.bottom)!=null?v:[]).filter(m=>!(l!=null&&l.has(m)))}}return{top:((u=c==null?void 0:c.top)!=null?u:[]).filter(m=>!(l!=null&&l.has(m))),bottom:((d=c==null?void 0:c.bottom)!=null?d:[]).filter(m=>!(l!=null&&l.has(m)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:r,enablePinning:o}=n.options;return typeof r=="function"?r(e):(t=r??o)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:r,bottom:o}=n.getState().rowPinning,a=t.some(l=>r==null?void 0:r.includes(l)),i=t.some(l=>o==null?void 0:o.includes(l));return a?"top":i?"bottom":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();if(!o)return-1;const a=(t=o==="top"?n.getTopRows():n.getBottomRows())==null?void 0:t.map(i=>{let{id:l}=i;return l});return(r=a==null?void 0:a.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var t,r;return e.setRowPinning(n?Ht():(t=(r=e.initialState)==null?void 0:r.rowPinning)!=null?t:Ht())},e.getIsSomeRowsPinned=n=>{var t;const r=e.getState().rowPinning;if(!n){var o,a;return!!((o=r.top)!=null&&o.length||(a=r.bottom)!=null&&a.length)}return!!((t=r[n])!=null&&t.length)},e._getPinnedRows=(n,t,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(t??[]).map(i=>{const l=e.getRow(i,!0);return l.getIsAllParentsExpanded()?l:null}):(t??[]).map(i=>n.find(l=>l.id===i))).filter(Boolean).map(i=>({...i,position:r}))},e.getTopRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,t)=>e._getPinnedRows(n,t,"top"),Z(e.options,"debugRows","getTopRows")),e.getBottomRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,t)=>e._getPinnedRows(n,t,"bottom"),Z(e.options,"debugRows","getBottomRows")),e.getCenterRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,t,r)=>{const o=new Set([...t??[],...r??[]]);return n.filter(a=>!o.has(a.id))},Z(e.options,"debugRows","getCenterRows"))}},Na={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:xe("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var t;return e.setRowSelection(n?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(t=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const r={...t},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach(a=>{a.getCanSelect()&&(r[a.id]=!0)}):o.forEach(a=>{delete r[a.id]}),r})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(t=>{const r=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach(a=>{Bt(o,a.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,t)=>Object.keys(n).length?qt(e,t):{rows:[],flatRows:[],rowsById:{}},Z(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,t)=>Object.keys(n).length?qt(e,t):{rows:[],flatRows:[],rowsById:{}},Z(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,t)=>Object.keys(n).length?qt(e,t):{rows:[],flatRows:[],rowsById:{}},Z(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let r=!!(n.length&&Object.keys(t).length);return r&&n.some(o=>o.getCanSelect()&&!t[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:t}=e.getState();let r=!!n.length;return r&&n.some(o=>!t[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var n;const t=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(t,r)=>{const o=e.getIsSelected();n.setRowSelection(a=>{var i;if(t=typeof t<"u"?t:!o,e.getCanSelect()&&o===t)return a;const l={...a};return Bt(l,e.id,t,(i=r==null?void 0:r.selectChildren)!=null?i:!0,n),l})},e.getIsSelected=()=>{const{rowSelection:t}=n.getState();return Gt(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=n.getState();return Wt(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=n.getState();return Wt(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(t=n.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(t=n.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(t=n.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return r=>{var o;t&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Bt=(e,n,t,r,o)=>{var a;const i=o.getRow(n,!0);t?(i.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),i.getCanSelect()&&(e[n]=!0)):delete e[n],r&&(a=i.subRows)!=null&&a.length&&i.getCanSelectSubRows()&&i.subRows.forEach(l=>Bt(e,l.id,t,r,o))};function qt(e,n){const t=e.getState().rowSelection,r=[],o={},a=function(i,l){return i.map(c=>{var u;const d=Gt(c,t);if(d&&(r.push(c),o[c.id]=c),(u=c.subRows)!=null&&u.length&&(c={...c,subRows:a(c.subRows)}),d)return c}).filter(Boolean)};return{rows:a(n.rows),flatRows:r,rowsById:o}}function Gt(e,n){var t;return(t=n[e.id])!=null?t:!1}function Wt(e,n,t){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,a=!1;return e.subRows.forEach(i=>{if(!(a&&!o)&&(i.getCanSelect()&&(Gt(i,n)?a=!0:o=!1),i.subRows&&i.subRows.length)){const l=Wt(i,n);l==="all"?a=!0:(l==="some"&&(a=!0),o=!1)}}),o?"all":a?"some":!1}const Ut=/([0-9]+)/gm,Da=(e,n,t)=>fr(_e(e.getValue(t)).toLowerCase(),_e(n.getValue(t)).toLowerCase()),Ta=(e,n,t)=>fr(_e(e.getValue(t)),_e(n.getValue(t))),za=(e,n,t)=>Yt(_e(e.getValue(t)).toLowerCase(),_e(n.getValue(t)).toLowerCase()),Oa=(e,n,t)=>Yt(_e(e.getValue(t)),_e(n.getValue(t))),Ia=(e,n,t)=>{const r=e.getValue(t),o=n.getValue(t);return r>o?1:r<o?-1:0},Va=(e,n,t)=>Yt(e.getValue(t),n.getValue(t));function Yt(e,n){return e===n?0:e>n?1:-1}function _e(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function fr(e,n){const t=e.split(Ut).filter(Boolean),r=n.split(Ut).filter(Boolean);for(;t.length&&r.length;){const o=t.shift(),a=r.shift(),i=parseInt(o,10),l=parseInt(a,10),c=[i,l].sort();if(isNaN(c[0])){if(o>a)return 1;if(a>o)return-1;continue}if(isNaN(c[1]))return isNaN(i)?-1:1;if(i>l)return 1;if(l>i)return-1}return t.length-r.length}const He={alphanumeric:Da,alphanumericCaseSensitive:Ta,text:za,textCaseSensitive:Oa,datetime:Ia,basic:Va},Ha=[ba,_a,ka,$a,ya,Ca,Pa,Ma,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:xe("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of t){const a=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(a)==="[object Date]")return He.datetime;if(typeof a=="string"&&(r=!0,a.split(Ut).length>1))return He.alphanumeric}return r?He.text:He.basic},e.getAutoSortDir=()=>{const t=n.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,r;if(!e)throw new Error;return nt(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(r=n.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?t:He[e.columnDef.sortingFn]},e.toggleSorting=(t,r)=>{const o=e.getNextSortingOrder(),a=typeof t<"u"&&t!==null;n.setSorting(i=>{const l=i==null?void 0:i.find(f=>f.id===e.id),c=i==null?void 0:i.findIndex(f=>f.id===e.id);let u=[],d,g=a?t:o==="desc";if(i!=null&&i.length&&e.getCanMultiSort()&&r?l?d="toggle":d="add":i!=null&&i.length&&c!==i.length-1?d="replace":l?d="toggle":d="replace",d==="toggle"&&(a||o||(d="remove")),d==="add"){var p;u=[...i,{id:e.id,desc:g}],u.splice(0,u.length-((p=n.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else d==="toggle"?u=i.map(f=>f.id===e.id?{...f,desc:g}:f):d==="remove"?u=i.filter(f=>f.id!==e.id):u=[{id:e.id,desc:g}];return u})},e.getFirstSortDir=()=>{var t,r;return((t=(r=e.columnDef.sortDescFirst)!=null?r:n.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var r,o;const a=e.getFirstSortDir(),i=e.getIsSorted();return i?i!==a&&((r=n.options.enableSortingRemoval)==null||r)&&(!(t&&(o=n.options.enableMultiRemove)!=null)||o)?!1:i==="desc"?"asc":"desc":a},e.getCanSort=()=>{var t,r;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((r=n.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,r;return(t=(r=e.columnDef.enableMultiSort)!=null?r:n.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const r=(t=n.getState().sorting)==null?void 0:t.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,r;return(t=(r=n.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.clearSorting=()=>{n.setSorting(t=>t!=null&&t.length?t.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return r=>{t&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var t,r;e.setSorting(n?[]:(t=(r=e.initialState)==null?void 0:r.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Sa,La,Fa,Aa,Na,Ra];function Ba(e){var n,t;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...Ha,...(n=e._features)!=null?n:[]];let o={_features:r};const a=o._features.reduce((p,f)=>Object.assign(p,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),i=p=>o.options.mergeOptions?o.options.mergeOptions(a,p):{...a,...p};let c={...{},...(t=e.initialState)!=null?t:{}};o._features.forEach(p=>{var f;c=(f=p.getInitialState==null?void 0:p.getInitialState(c))!=null?f:c});const u=[];let d=!1;const g={_features:r,options:{...a,...e},initialState:c,_queue:p=>{u.push(p),d||(d=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();d=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:p=>{const f=Ee(p,o.options);o.options=i(f)},getState:()=>o.options.state,setState:p=>{o.options.onStateChange==null||o.options.onStateChange(p)},_getRowId:(p,f,v)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(p,f,v))!=null?m:`${v?[v.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(p,f)=>{let v=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[p];if(!v&&(v=o.getCoreRowModel().rowsById[p],!v))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${p}`):new Error;return v},_getDefaultColumnDef:Y(()=>[o.options.defaultColumn],p=>{var f;return p=(f=p)!=null?f:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,b;return(m=(b=v.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...o._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...p}},Z(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:Y(()=>[o._getColumnDefs()],p=>{const f=function(v,m,b){return b===void 0&&(b=0),v.map(x=>{const R=xa(o,x,b,m),y=x;return R.columns=y.columns?f(y.columns,R,b+1):[],R})};return f(p)},Z(e,"debugColumns","getAllColumns")),getAllFlatColumns:Y(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),Z(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Y(()=>[o.getAllFlatColumns()],p=>p.reduce((f,v)=>(f[v.id]=v,f),{}),Z(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Y(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let v=p.flatMap(m=>m.getLeafColumns());return f(v)},Z(e,"debugColumns","getAllLeafColumns")),getColumn:p=>{const f=o._getAllFlatColumnsById()[p];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${p}' does not exist.`),f}};Object.assign(o,g);for(let p=0;p<o._features.length;p++){const f=o._features[p];f==null||f.createTable==null||f.createTable(o)}return o}function qa(){return e=>Y(()=>[e.options.data],n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(o,a,i){a===void 0&&(a=0);const l=[];for(let u=0;u<o.length;u++){const d=wa(e,e._getRowId(o[u],u,i),o[u],u,a,void 0,i==null?void 0:i.id);if(t.flatRows.push(d),t.rowsById[d.id]=d,l.push(d),e.options.getSubRows){var c;d.originalSubRows=e.options.getSubRows(o[u],u),(c=d.originalSubRows)!=null&&c.length&&(d.subRows=r(d.originalSubRows,a+1,d))}}return l};return t.rows=r(n),t},Z(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
117
+ color: hsl(${Math.max(0,Math.min(120-120*p,120))}deg 100% 31%);`,t==null?void 0:t.key)}return o}}function Z(e,n,t,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[n]},key:process.env.NODE_ENV==="development"&&t,onChange:r}}function vi(e,n,t,r){const o=()=>{var a;return(a=i.getValue())!=null?a:e.options.renderFallbackValue},i={id:`${n.id}_${t.id}`,row:n,column:t,getValue:()=>n.getValue(r),renderValue:o,getContext:Y(()=>[e,t,n,i],(a,l,c,u)=>({table:a,column:l,row:c,cell:u,getValue:u.getValue,renderValue:u.renderValue}),Z(e.options,"debugCells","cell.getContext"))};return e._features.forEach(a=>{a.createCell==null||a.createCell(i,t,n,e)},{}),i}function hi(e,n,t,r){var o,i;const l={...e._getDefaultColumnDef(),...n},c=l.accessorKey;let u=(o=(i=l.id)!=null?i:c?typeof String.prototype.replaceAll=="function"?c.replaceAll(".","_"):c.replace(/\./g,"_"):void 0)!=null?o:typeof l.header=="string"?l.header:void 0,d;if(l.accessorFn?d=l.accessorFn:c&&(c.includes(".")?d=p=>{let f=p;for(const m of c.split(".")){var v;f=(v=f)==null?void 0:v[m],process.env.NODE_ENV!=="production"&&f===void 0&&console.warn(`"${m}" in deeply nested key "${c}" returned undefined.`)}return f}:d=p=>p[l.accessorKey]),!u)throw process.env.NODE_ENV!=="production"?new Error(l.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let g={id:`${String(u)}`,accessorFn:d,parent:r,depth:t,columnDef:l,columns:[],getFlatColumns:Y(()=>[!0],()=>{var p;return[g,...(p=g.columns)==null?void 0:p.flatMap(f=>f.getFlatColumns())]},Z(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:Y(()=>[e._getOrderColumnsFn()],p=>{var f;if((f=g.columns)!=null&&f.length){let v=g.columns.flatMap(m=>m.getLeafColumns());return p(v)}return[g]},Z(e.options,"debugColumns","column.getLeafColumns"))};for(const p of e._features)p.createColumn==null||p.createColumn(g,e);return g}const ve="debugHeaders";function rr(e,n,t){var r;let i={id:(r=t.id)!=null?r:n.id,column:n,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],l=c=>{c.subHeaders&&c.subHeaders.length&&c.subHeaders.map(l),a.push(c)};return l(i),a},getContext:()=>({table:e,header:i,column:n})};return e._features.forEach(a=>{a.createHeader==null||a.createHeader(i,e)}),i}const xi={createTable:e=>{e.getHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>{var i,a;const l=(i=r==null?void 0:r.map(g=>t.find(p=>p.id===g)).filter(Boolean))!=null?i:[],c=(a=o==null?void 0:o.map(g=>t.find(p=>p.id===g)).filter(Boolean))!=null?a:[],u=t.filter(g=>!(r!=null&&r.includes(g.id))&&!(o!=null&&o.includes(g.id)));return rt(n,[...l,...u,...c],e)},Z(e.options,ve,"getHeaderGroups")),e.getCenterHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r,o)=>(t=t.filter(i=>!(r!=null&&r.includes(i.id))&&!(o!=null&&o.includes(i.id))),rt(n,t,e,"center")),Z(e.options,ve,"getCenterHeaderGroups")),e.getLeftHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,t,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>t.find(l=>l.id===a)).filter(Boolean))!=null?o:[];return rt(n,i,e,"left")},Z(e.options,ve,"getLeftHeaderGroups")),e.getRightHeaderGroups=Y(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,t,r)=>{var o;const i=(o=r==null?void 0:r.map(a=>t.find(l=>l.id===a)).filter(Boolean))!=null?o:[];return rt(n,i,e,"right")},Z(e.options,ve,"getRightHeaderGroups")),e.getFooterGroups=Y(()=>[e.getHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getFooterGroups")),e.getLeftFooterGroups=Y(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getLeftFooterGroups")),e.getCenterFooterGroups=Y(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getCenterFooterGroups")),e.getRightFooterGroups=Y(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),Z(e.options,ve,"getRightFooterGroups")),e.getFlatHeaders=Y(()=>[e.getHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getFlatHeaders")),e.getLeftFlatHeaders=Y(()=>[e.getLeftHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getLeftFlatHeaders")),e.getCenterFlatHeaders=Y(()=>[e.getCenterHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getCenterFlatHeaders")),e.getRightFlatHeaders=Y(()=>[e.getRightHeaderGroups()],n=>n.map(t=>t.headers).flat(),Z(e.options,ve,"getRightFlatHeaders")),e.getCenterLeafHeaders=Y(()=>[e.getCenterFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Z(e.options,ve,"getCenterLeafHeaders")),e.getLeftLeafHeaders=Y(()=>[e.getLeftFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Z(e.options,ve,"getLeftLeafHeaders")),e.getRightLeafHeaders=Y(()=>[e.getRightFlatHeaders()],n=>n.filter(t=>{var r;return!((r=t.subHeaders)!=null&&r.length)}),Z(e.options,ve,"getRightLeafHeaders")),e.getLeafHeaders=Y(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,t,r)=>{var o,i,a,l,c,u;return[...(o=(i=n[0])==null?void 0:i.headers)!=null?o:[],...(a=(l=t[0])==null?void 0:l.headers)!=null?a:[],...(c=(u=r[0])==null?void 0:u.headers)!=null?c:[]].map(d=>d.getLeafHeaders()).flat()},Z(e.options,ve,"getLeafHeaders"))}};function rt(e,n,t,r){var o,i;let a=0;const l=function(p,f){f===void 0&&(f=1),a=Math.max(a,f),p.filter(v=>v.getIsVisible()).forEach(v=>{var m;(m=v.columns)!=null&&m.length&&l(v.columns,f+1)},0)};l(e);let c=[];const u=(p,f)=>{const v={depth:f,id:[r,`${f}`].filter(Boolean).join("_"),headers:[]},m=[];p.forEach(b=>{const x=[...m].reverse()[0],R=b.column.depth===v.depth;let y,E=!1;if(R&&b.column.parent?y=b.column.parent:(y=b.column,E=!0),x&&(x==null?void 0:x.column)===y)x.subHeaders.push(b);else{const C=rr(t,y,{id:[r,f,y.id,b==null?void 0:b.id].filter(Boolean).join("_"),isPlaceholder:E,placeholderId:E?`${m.filter(V=>V.column===y).length}`:void 0,depth:f,index:m.length});C.subHeaders.push(b),m.push(C)}v.headers.push(b),b.headerGroup=v}),c.push(v),f>0&&u(m,f-1)},d=n.map((p,f)=>rr(t,p,{depth:a,index:f}));u(d,a-1),c.reverse();const g=p=>p.filter(v=>v.column.getIsVisible()).map(v=>{let m=0,b=0,x=[0];v.subHeaders&&v.subHeaders.length?(x=[],g(v.subHeaders).forEach(y=>{let{colSpan:E,rowSpan:C}=y;m+=E,x.push(C)})):m=1;const R=Math.min(...x);return b=b+R,v.colSpan=m,v.rowSpan=b,{colSpan:m,rowSpan:b}});return g((o=(i=c[0])==null?void 0:i.headers)!=null?o:[]),c}const bi=(e,n,t,r,o,i,a)=>{let l={id:n,index:r,original:t,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:c=>{if(l._valuesCache.hasOwnProperty(c))return l._valuesCache[c];const u=e.getColumn(c);if(u!=null&&u.accessorFn)return l._valuesCache[c]=u.accessorFn(l.original,r),l._valuesCache[c]},getUniqueValues:c=>{if(l._uniqueValuesCache.hasOwnProperty(c))return l._uniqueValuesCache[c];const u=e.getColumn(c);if(u!=null&&u.accessorFn)return u.columnDef.getUniqueValues?(l._uniqueValuesCache[c]=u.columnDef.getUniqueValues(l.original,r),l._uniqueValuesCache[c]):(l._uniqueValuesCache[c]=[l.getValue(c)],l._uniqueValuesCache[c])},renderValue:c=>{var u;return(u=l.getValue(c))!=null?u:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>gi(l.subRows,c=>c.subRows),getParentRow:()=>l.parentId?e.getRow(l.parentId,!0):void 0,getParentRows:()=>{let c=[],u=l;for(;;){const d=u.getParentRow();if(!d)break;c.push(d),u=d}return c.reverse()},getAllCells:Y(()=>[e.getAllLeafColumns()],c=>c.map(u=>vi(e,l,u,u.id)),Z(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:Y(()=>[l.getAllCells()],c=>c.reduce((u,d)=>(u[d.column.id]=d,u),{}),Z(e.options,"debugRows","getAllCellsByColumnId"))};for(let c=0;c<e._features.length;c++){const u=e._features[c];u==null||u.createRow==null||u.createRow(l,e)}return l},wi={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},or=(e,n,t)=>{var r,o;const i=t==null||(r=t.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(i))};or.autoRemove=e=>ye(e);const ir=(e,n,t)=>{var r;return!!(!((r=e.getValue(n))==null||(r=r.toString())==null)&&r.includes(t))};ir.autoRemove=e=>ye(e);const ar=(e,n,t)=>{var r;return((r=e.getValue(n))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(t==null?void 0:t.toLowerCase())};ar.autoRemove=e=>ye(e);const lr=(e,n,t)=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(t)};lr.autoRemove=e=>ye(e);const sr=(e,n,t)=>!t.some(r=>{var o;return!((o=e.getValue(n))!=null&&o.includes(r))});sr.autoRemove=e=>ye(e)||!(e!=null&&e.length);const cr=(e,n,t)=>t.some(r=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(r)});cr.autoRemove=e=>ye(e)||!(e!=null&&e.length);const ur=(e,n,t)=>e.getValue(n)===t;ur.autoRemove=e=>ye(e);const dr=(e,n,t)=>e.getValue(n)==t;dr.autoRemove=e=>ye(e);const At=(e,n,t)=>{let[r,o]=t;const i=e.getValue(n);return i>=r&&i<=o};At.resolveFilterValue=e=>{let[n,t]=e,r=typeof n!="number"?parseFloat(n):n,o=typeof t!="number"?parseFloat(t):t,i=n===null||Number.isNaN(r)?-1/0:r,a=t===null||Number.isNaN(o)?1/0:o;if(i>a){const l=i;i=a,a=l}return[i,a]},At.autoRemove=e=>ye(e)||ye(e[0])&&ye(e[1]);const Se={includesString:or,includesStringSensitive:ir,equalsString:ar,arrIncludes:lr,arrIncludesAll:sr,arrIncludesSome:cr,equals:ur,weakEquals:dr,inNumberRange:At};function ye(e){return e==null||e===""}const yi={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:xe("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);return typeof r=="string"?Se.includesString:typeof r=="number"?Se.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?Se.equals:Array.isArray(r)?Se.arrIncludes:Se.weakEquals},e.getFilterFn=()=>{var t,r;return nt(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(r=n.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?t:Se[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,r,o;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((r=n.options.enableColumnFilters)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=n.getState().columnFilters)==null||(t=t.find(r=>r.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,r;return(t=(r=n.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.setFilterValue=t=>{n.setColumnFilters(r=>{const o=e.getFilterFn(),i=r==null?void 0:r.find(d=>d.id===e.id),a=Ee(t,i?i.value:void 0);if(pr(o,a,e)){var l;return(l=r==null?void 0:r.filter(d=>d.id!==e.id))!=null?l:[]}const c={id:e.id,value:a};if(i){var u;return(u=r==null?void 0:r.map(d=>d.id===e.id?c:d))!=null?u:[]}return r!=null&&r.length?[...r,c]:[c]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const t=e.getAllLeafColumns(),r=o=>{var i;return(i=Ee(n,o))==null?void 0:i.filter(a=>{const l=t.find(c=>c.id===a.id);if(l){const c=l.getFilterFn();if(pr(c,a.value,l))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=n=>{var t,r;e.setColumnFilters(n?[]:(t=(r=e.initialState)==null?void 0:r.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function pr(e,n,t){return(e&&e.autoRemove?e.autoRemove(n,t):!1)||typeof n>"u"||typeof n=="string"&&!n}const Nt={sum:(e,n,t)=>t.reduce((r,o)=>{const i=o.getValue(e);return r+(typeof i=="number"?i:0)},0),min:(e,n,t)=>{let r;return t.forEach(o=>{const i=o.getValue(e);i!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}),r},max:(e,n,t)=>{let r;return t.forEach(o=>{const i=o.getValue(e);i!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}),r},extent:(e,n,t)=>{let r,o;return t.forEach(i=>{const a=i.getValue(e);a!=null&&(r===void 0?a>=a&&(r=o=a):(r>a&&(r=a),o<a&&(o=a)))}),[r,o]},mean:(e,n)=>{let t=0,r=0;if(n.forEach(o=>{let i=o.getValue(e);i!=null&&(i=+i)>=i&&(++t,r+=i)}),t)return r/t},median:(e,n)=>{if(!n.length)return;const t=n.map(i=>i.getValue(e));if(!mi(t))return;if(t.length===1)return t[0];const r=Math.floor(t.length/2),o=t.sort((i,a)=>i-a);return t.length%2!==0?o[r]:(o[r-1]+o[r])/2},unique:(e,n)=>Array.from(new Set(n.map(t=>t.getValue(e))).values()),uniqueCount:(e,n)=>new Set(n.map(t=>t.getValue(e))).size,count:(e,n)=>n.length},Ci={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,t;return(n=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:xe("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(r=>r!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,r;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((r=n.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=n.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=n.getCoreRowModel().flatRows[0],r=t==null?void 0:t.getValue(e.id);if(typeof r=="number")return Nt.sum;if(Object.prototype.toString.call(r)==="[object Date]")return Nt.extent},e.getAggregationFn=()=>{var t,r;if(!e)throw new Error;return nt(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(r=n.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?t:Nt[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var t,r;e.setGrouping(n?[]:(t=(r=e.initialState)==null?void 0:r.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const r=n.getColumn(t);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[t]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,n,t,r)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=t.subRows)!=null&&o.length)}}};function Si(e,n,t){if(!(n!=null&&n.length)||!t)return e;const r=e.filter(i=>!n.includes(i.id));return t==="remove"?r:[...n.map(i=>e.find(a=>a.id===i)).filter(Boolean),...r]}const ji={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:xe("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=Y(t=>[Ve(n,t)],t=>t.findIndex(r=>r.id===e.id),Z(n.options,"debugColumns","getIndex")),e.getIsFirstColumn=t=>{var r;return((r=Ve(n,t)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=t=>{var r;const o=Ve(n,t);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var t;e.setColumnOrder(n?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=Y(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,t,r)=>o=>{let i=[];if(!(n!=null&&n.length))i=o;else{const a=[...n],l=[...o];for(;l.length&&a.length;){const c=a.shift(),u=l.findIndex(d=>d.id===c);u>-1&&i.push(l.splice(u,1)[0])}i=[...i,...l]}return Si(i,t,r)},Z(e.options,"debugTable","_getOrderColumnsFn"))}},Dt=()=>({left:[],right:[]}),ki={getInitialState:e=>({columnPinning:Dt(),...e}),getDefaultOptions:e=>({onColumnPinningChange:xe("columnPinning",e)}),createColumn:(e,n)=>{e.pin=t=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);n.setColumnPinning(o=>{var i,a;if(t==="right"){var l,c;return{left:((l=o==null?void 0:o.left)!=null?l:[]).filter(g=>!(r!=null&&r.includes(g))),right:[...((c=o==null?void 0:o.right)!=null?c:[]).filter(g=>!(r!=null&&r.includes(g))),...r]}}if(t==="left"){var u,d;return{left:[...((u=o==null?void 0:o.left)!=null?u:[]).filter(g=>!(r!=null&&r.includes(g))),...r],right:((d=o==null?void 0:o.right)!=null?d:[]).filter(g=>!(r!=null&&r.includes(g)))}}return{left:((i=o==null?void 0:o.left)!=null?i:[]).filter(g=>!(r!=null&&r.includes(g))),right:((a=o==null?void 0:o.right)!=null?a:[]).filter(g=>!(r!=null&&r.includes(g)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,i,a;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((i=(a=n.options.enableColumnPinning)!=null?a:n.options.enablePinning)!=null?i:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(l=>l.id),{left:r,right:o}=n.getState().columnPinning,i=t.some(l=>r==null?void 0:r.includes(l)),a=t.some(l=>o==null?void 0:o.includes(l));return i?"left":a?"right":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();return o?(t=(r=n.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?t:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=Y(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(t,r,o)=>{const i=[...r??[],...o??[]];return t.filter(a=>!i.includes(a.column.id))},Z(n.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=Y(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(t,r)=>(r??[]).map(i=>t.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"left"})),Z(n.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=Y(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(t,r)=>(r??[]).map(i=>t.find(a=>a.column.id===i)).filter(Boolean).map(i=>({...i,position:"right"})),Z(n.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var t,r;return e.setColumnPinning(n?Dt():(t=(r=e.initialState)==null?void 0:r.columnPinning)!=null?t:Dt())},e.getIsSomeColumnsPinned=n=>{var t;const r=e.getState().columnPinning;if(!n){var o,i;return!!((o=r.left)!=null&&o.length||(i=r.right)!=null&&i.length)}return!!((t=r[n])!=null&&t.length)},e.getLeftLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Z(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,t)=>(t??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Z(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=Y(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,t,r)=>{const o=[...t??[],...r??[]];return n.filter(i=>!o.includes(i.id))},Z(e.options,"debugColumns","getCenterLeafColumns"))}},ot={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},Tt=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),$i={getDefaultColumnDef:()=>ot,getInitialState:e=>({columnSizing:{},columnSizingInfo:Tt(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:xe("columnSizing",e),onColumnSizingInfoChange:xe("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var t,r,o;const i=n.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:ot.minSize,(r=i??e.columnDef.size)!=null?r:ot.size),(o=e.columnDef.maxSize)!=null?o:ot.maxSize)},e.getStart=Y(t=>[t,Ve(n,t),n.getState().columnSizing],(t,r)=>r.slice(0,e.getIndex(t)).reduce((o,i)=>o+i.getSize(),0),Z(n.options,"debugColumns","getStart")),e.getAfter=Y(t=>[t,Ve(n,t),n.getState().columnSizing],(t,r)=>r.slice(e.getIndex(t)+1).reduce((o,i)=>o+i.getSize(),0),Z(n.options,"debugColumns","getAfter")),e.resetSize=()=>{n.setColumnSizing(t=>{let{[e.id]:r,...o}=t;return o})},e.getCanResize=()=>{var t,r;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((r=n.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let t=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var i;t+=(i=o.column.getSize())!=null?i:0}};return r(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const r=n.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return i=>{if(!r||!o||(i.persist==null||i.persist(),zt(i)&&i.touches&&i.touches.length>1))return;const a=e.getSize(),l=e?e.getLeafHeaders().map(x=>[x.column.id,x.column.getSize()]):[[r.id,r.getSize()]],c=zt(i)?Math.round(i.touches[0].clientX):i.clientX,u={},d=(x,R)=>{typeof R=="number"&&(n.setColumnSizingInfo(y=>{var E,C;const V=n.options.columnResizeDirection==="rtl"?-1:1,T=(R-((E=y==null?void 0:y.startOffset)!=null?E:0))*V,B=Math.max(T/((C=y==null?void 0:y.startSize)!=null?C:0),-.999999);return y.columnSizingStart.forEach(A=>{let[X,ie]=A;u[X]=Math.round(Math.max(ie+ie*B,0)*100)/100}),{...y,deltaOffset:T,deltaPercentage:B}}),(n.options.columnResizeMode==="onChange"||x==="end")&&n.setColumnSizing(y=>({...y,...u})))},g=x=>d("move",x),p=x=>{d("end",x),n.setColumnSizingInfo(R=>({...R,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},f=t||typeof document<"u"?document:null,v={moveHandler:x=>g(x.clientX),upHandler:x=>{f==null||f.removeEventListener("mousemove",v.moveHandler),f==null||f.removeEventListener("mouseup",v.upHandler),p(x.clientX)}},m={moveHandler:x=>(x.cancelable&&(x.preventDefault(),x.stopPropagation()),g(x.touches[0].clientX),!1),upHandler:x=>{var R;f==null||f.removeEventListener("touchmove",m.moveHandler),f==null||f.removeEventListener("touchend",m.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),p((R=x.touches[0])==null?void 0:R.clientX)}},b=Ri()?{passive:!1}:!1;zt(i)?(f==null||f.addEventListener("touchmove",m.moveHandler,b),f==null||f.addEventListener("touchend",m.upHandler,b)):(f==null||f.addEventListener("mousemove",v.moveHandler,b),f==null||f.addEventListener("mouseup",v.upHandler,b)),n.setColumnSizingInfo(x=>({...x,startOffset:c,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:l,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var t;e.setColumnSizing(n?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=n=>{var t;e.setColumnSizingInfo(n?Tt():(t=e.initialState.columnSizingInfo)!=null?t:Tt())},e.getTotalSize=()=>{var n,t;return(n=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,t;return(n=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,t;return(n=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,t;return(n=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0}}};let it=null;function Ri(){if(typeof it=="boolean")return it;let e=!1;try{const n={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,n),window.removeEventListener("test",t)}catch{e=!1}return it=e,it}function zt(e){return e.type==="touchstart"}const Ei={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:xe("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=t=>{e.getCanHide()&&n.setColumnVisibility(r=>({...r,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,r;const o=e.columns;return(t=o.length?o.some(i=>i.getIsVisible()):(r=n.getState().columnVisibility)==null?void 0:r[e.id])!=null?t:!0},e.getCanHide=()=>{var t,r;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((r=n.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=Y(()=>[e.getAllCells(),n.getState().columnVisibility],t=>t.filter(r=>r.column.getIsVisible()),Z(n.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=Y(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,r,o)=>[...t,...r,...o],Z(n.options,"debugRows","getVisibleCells"))},createTable:e=>{const n=(t,r)=>Y(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(i=>i.getIsVisible==null?void 0:i.getIsVisible()),Z(e.options,"debugColumns",t));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var r;e.setColumnVisibility(t?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=t=>{var r;t=(r=t)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,i)=>({...o,[i.id]:t||!(i.getCanHide!=null&&i.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var r;e.toggleAllColumnsVisible((r=t.target)==null?void 0:r.checked)}}};function Ve(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const _i={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Pi={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:xe("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var t;const r=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[n.id])==null?void 0:t.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var t,r,o,i;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((r=n.options.enableGlobalFilter)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&((i=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?i:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>Se.includesString,e.getGlobalFilterFn=()=>{var n,t;const{globalFilterFn:r}=e.options;return nt(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(n=(t=e.options.filterFns)==null?void 0:t[r])!=null?n:Se[r]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},Mi={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:xe("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,t=!1;e._autoResetExpanded=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,i;e.setExpanded(r?{}:(o=(i=e.initialState)==null?void 0:i.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(i=>{const a=i.split(".");r=Math.max(r,a.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=t=>{n.setExpanded(r=>{var o;const i=r===!0?!0:!!(r!=null&&r[e.id]);let a={};if(r===!0?Object.keys(n.getRowModel().rowsById).forEach(l=>{a[l]=!0}):a=r,t=(o=t)!=null?o:!i,!i&&t)return{...a,[e.id]:!0};if(i&&!t){const{[e.id]:l,...c}=a;return c}return r})},e.getIsExpanded=()=>{var t;const r=n.getState().expanded;return!!((t=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?t:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var t,r,o;return(t=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?t:((r=n.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let t=!0,r=e;for(;t&&r.parentId;)r=n.getRow(r.parentId,!0),t=r.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},Ot=0,It=10,Vt=()=>({pageIndex:Ot,pageSize:It}),Li={getInitialState:e=>({...e,pagination:{...Vt(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:xe("pagination",e)}),createTable:e=>{let n=!1,t=!1;e._autoResetPageIndex=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=r=>{const o=i=>Ee(r,i);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Vt():(o=e.initialState.pagination)!=null?o:Vt())},e.setPageIndex=r=>{e.setPagination(o=>{let i=Ee(r,o.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return i=Math.max(0,Math.min(i,a)),{...o,pageIndex:i}})},e.resetPageIndex=r=>{var o,i;e.setPageIndex(r?Ot:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageIndex)!=null?o:Ot)},e.resetPageSize=r=>{var o,i;e.setPageSize(r?It:(o=(i=e.initialState)==null||(i=i.pagination)==null?void 0:i.pageSize)!=null?o:It)},e.setPageSize=r=>{e.setPagination(o=>{const i=Math.max(1,Ee(r,o.pageSize)),a=o.pageSize*o.pageIndex,l=Math.floor(a/i);return{...o,pageIndex:l,pageSize:i}})},e.setPageCount=r=>e.setPagination(o=>{var i;let a=Ee(r,(i=e.options.pageCount)!=null?i:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...o,pageCount:a}}),e.getPageOptions=Y(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((i,a)=>a)),o},Z(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Ht=()=>({top:[],bottom:[]}),Fi={getInitialState:e=>({rowPinning:Ht(),...e}),getDefaultOptions:e=>({onRowPinningChange:xe("rowPinning",e)}),createRow:(e,n)=>{e.pin=(t,r,o)=>{const i=r?e.getLeafRows().map(c=>{let{id:u}=c;return u}):[],a=o?e.getParentRows().map(c=>{let{id:u}=c;return u}):[],l=new Set([...a,e.id,...i]);n.setRowPinning(c=>{var u,d;if(t==="bottom"){var g,p;return{top:((g=c==null?void 0:c.top)!=null?g:[]).filter(m=>!(l!=null&&l.has(m))),bottom:[...((p=c==null?void 0:c.bottom)!=null?p:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)]}}if(t==="top"){var f,v;return{top:[...((f=c==null?void 0:c.top)!=null?f:[]).filter(m=>!(l!=null&&l.has(m))),...Array.from(l)],bottom:((v=c==null?void 0:c.bottom)!=null?v:[]).filter(m=>!(l!=null&&l.has(m)))}}return{top:((u=c==null?void 0:c.top)!=null?u:[]).filter(m=>!(l!=null&&l.has(m))),bottom:((d=c==null?void 0:c.bottom)!=null?d:[]).filter(m=>!(l!=null&&l.has(m)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:r,enablePinning:o}=n.options;return typeof r=="function"?r(e):(t=r??o)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:r,bottom:o}=n.getState().rowPinning,i=t.some(l=>r==null?void 0:r.includes(l)),a=t.some(l=>o==null?void 0:o.includes(l));return i?"top":a?"bottom":!1},e.getPinnedIndex=()=>{var t,r;const o=e.getIsPinned();if(!o)return-1;const i=(t=o==="top"?n.getTopRows():n.getBottomRows())==null?void 0:t.map(a=>{let{id:l}=a;return l});return(r=i==null?void 0:i.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var t,r;return e.setRowPinning(n?Ht():(t=(r=e.initialState)==null?void 0:r.rowPinning)!=null?t:Ht())},e.getIsSomeRowsPinned=n=>{var t;const r=e.getState().rowPinning;if(!n){var o,i;return!!((o=r.top)!=null&&o.length||(i=r.bottom)!=null&&i.length)}return!!((t=r[n])!=null&&t.length)},e._getPinnedRows=(n,t,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(t??[]).map(a=>{const l=e.getRow(a,!0);return l.getIsAllParentsExpanded()?l:null}):(t??[]).map(a=>n.find(l=>l.id===a))).filter(Boolean).map(a=>({...a,position:r}))},e.getTopRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,t)=>e._getPinnedRows(n,t,"top"),Z(e.options,"debugRows","getTopRows")),e.getBottomRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,t)=>e._getPinnedRows(n,t,"bottom"),Z(e.options,"debugRows","getBottomRows")),e.getCenterRows=Y(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,t,r)=>{const o=new Set([...t??[],...r??[]]);return n.filter(i=>!o.has(i.id))},Z(e.options,"debugRows","getCenterRows"))}},Ai={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:xe("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var t;return e.setRowSelection(n?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(t=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const r={...t},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach(i=>{i.getCanSelect()&&(r[i.id]=!0)}):o.forEach(i=>{delete r[i.id]}),r})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(t=>{const r=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),o={...t};return e.getRowModel().rows.forEach(i=>{Bt(o,i.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,t)=>Object.keys(n).length?qt(e,t):{rows:[],flatRows:[],rowsById:{}},Z(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,t)=>Object.keys(n).length?qt(e,t):{rows:[],flatRows:[],rowsById:{}},Z(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=Y(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,t)=>Object.keys(n).length?qt(e,t):{rows:[],flatRows:[],rowsById:{}},Z(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let r=!!(n.length&&Object.keys(t).length);return r&&n.some(o=>o.getCanSelect()&&!t[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:t}=e.getState();let r=!!n.length;return r&&n.some(o=>!t[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var n;const t=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(t,r)=>{const o=e.getIsSelected();n.setRowSelection(i=>{var a;if(t=typeof t<"u"?t:!o,e.getCanSelect()&&o===t)return i;const l={...i};return Bt(l,e.id,t,(a=r==null?void 0:r.selectChildren)!=null?a:!0,n),l})},e.getIsSelected=()=>{const{rowSelection:t}=n.getState();return Gt(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=n.getState();return Wt(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=n.getState();return Wt(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(t=n.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(t=n.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(t=n.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return r=>{var o;t&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},Bt=(e,n,t,r,o)=>{var i;const a=o.getRow(n,!0);t?(a.getCanMultiSelect()||Object.keys(e).forEach(l=>delete e[l]),a.getCanSelect()&&(e[n]=!0)):delete e[n],r&&(i=a.subRows)!=null&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(l=>Bt(e,l.id,t,r,o))};function qt(e,n){const t=e.getState().rowSelection,r=[],o={},i=function(a,l){return a.map(c=>{var u;const d=Gt(c,t);if(d&&(r.push(c),o[c.id]=c),(u=c.subRows)!=null&&u.length&&(c={...c,subRows:i(c.subRows)}),d)return c}).filter(Boolean)};return{rows:i(n.rows),flatRows:r,rowsById:o}}function Gt(e,n){var t;return(t=n[e.id])!=null?t:!1}function Wt(e,n,t){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(a=>{if(!(i&&!o)&&(a.getCanSelect()&&(Gt(a,n)?i=!0:o=!1),a.subRows&&a.subRows.length)){const l=Wt(a,n);l==="all"?i=!0:(l==="some"&&(i=!0),o=!1)}}),o?"all":i?"some":!1}const Ut=/([0-9]+)/gm,Ni=(e,n,t)=>fr(_e(e.getValue(t)).toLowerCase(),_e(n.getValue(t)).toLowerCase()),Di=(e,n,t)=>fr(_e(e.getValue(t)),_e(n.getValue(t))),Ti=(e,n,t)=>Yt(_e(e.getValue(t)).toLowerCase(),_e(n.getValue(t)).toLowerCase()),zi=(e,n,t)=>Yt(_e(e.getValue(t)),_e(n.getValue(t))),Oi=(e,n,t)=>{const r=e.getValue(t),o=n.getValue(t);return r>o?1:r<o?-1:0},Ii=(e,n,t)=>Yt(e.getValue(t),n.getValue(t));function Yt(e,n){return e===n?0:e>n?1:-1}function _e(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function fr(e,n){const t=e.split(Ut).filter(Boolean),r=n.split(Ut).filter(Boolean);for(;t.length&&r.length;){const o=t.shift(),i=r.shift(),a=parseInt(o,10),l=parseInt(i,10),c=[a,l].sort();if(isNaN(c[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(c[1]))return isNaN(a)?-1:1;if(a>l)return 1;if(l>a)return-1}return t.length-r.length}const He={alphanumeric:Ni,alphanumericCaseSensitive:Di,text:Ti,textCaseSensitive:zi,datetime:Oi,basic:Ii},Vi=[xi,Ei,ji,ki,wi,yi,_i,Pi,{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:xe("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const t=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of t){const i=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(i)==="[object Date]")return He.datetime;if(typeof i=="string"&&(r=!0,i.split(Ut).length>1))return He.alphanumeric}return r?He.text:He.basic},e.getAutoSortDir=()=>{const t=n.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,r;if(!e)throw new Error;return nt(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(r=n.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?t:He[e.columnDef.sortingFn]},e.toggleSorting=(t,r)=>{const o=e.getNextSortingOrder(),i=typeof t<"u"&&t!==null;n.setSorting(a=>{const l=a==null?void 0:a.find(f=>f.id===e.id),c=a==null?void 0:a.findIndex(f=>f.id===e.id);let u=[],d,g=i?t:o==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&r?l?d="toggle":d="add":a!=null&&a.length&&c!==a.length-1?d="replace":l?d="toggle":d="replace",d==="toggle"&&(i||o||(d="remove")),d==="add"){var p;u=[...a,{id:e.id,desc:g}],u.splice(0,u.length-((p=n.options.maxMultiSortColCount)!=null?p:Number.MAX_SAFE_INTEGER))}else d==="toggle"?u=a.map(f=>f.id===e.id?{...f,desc:g}:f):d==="remove"?u=a.filter(f=>f.id!==e.id):u=[{id:e.id,desc:g}];return u})},e.getFirstSortDir=()=>{var t,r;return((t=(r=e.columnDef.sortDescFirst)!=null?r:n.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var r,o;const i=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==i&&((r=n.options.enableSortingRemoval)==null||r)&&(!(t&&(o=n.options.enableMultiRemove)!=null)||o)?!1:a==="desc"?"asc":"desc":i},e.getCanSort=()=>{var t,r;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((r=n.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,r;return(t=(r=e.columnDef.enableMultiSort)!=null?r:n.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const r=(t=n.getState().sorting)==null?void 0:t.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,r;return(t=(r=n.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?t:-1},e.clearSorting=()=>{n.setSorting(t=>t!=null&&t.length?t.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return r=>{t&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var t,r;e.setSorting(n?[]:(t=(r=e.initialState)==null?void 0:r.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Ci,Mi,Li,Fi,Ai,$i];function Hi(e){var n,t;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");const r=[...Vi,...(n=e._features)!=null?n:[]];let o={_features:r};const i=o._features.reduce((p,f)=>Object.assign(p,f.getDefaultOptions==null?void 0:f.getDefaultOptions(o)),{}),a=p=>o.options.mergeOptions?o.options.mergeOptions(i,p):{...i,...p};let c={...{},...(t=e.initialState)!=null?t:{}};o._features.forEach(p=>{var f;c=(f=p.getInitialState==null?void 0:p.getInitialState(c))!=null?f:c});const u=[];let d=!1;const g={_features:r,options:{...i,...e},initialState:c,_queue:p=>{u.push(p),d||(d=!0,Promise.resolve().then(()=>{for(;u.length;)u.shift()();d=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{o.setState(o.initialState)},setOptions:p=>{const f=Ee(p,o.options);o.options=a(f)},getState:()=>o.options.state,setState:p=>{o.options.onStateChange==null||o.options.onStateChange(p)},_getRowId:(p,f,v)=>{var m;return(m=o.options.getRowId==null?void 0:o.options.getRowId(p,f,v))!=null?m:`${v?[v.id,f].join("."):f}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(p,f)=>{let v=(f?o.getPrePaginationRowModel():o.getRowModel()).rowsById[p];if(!v&&(v=o.getCoreRowModel().rowsById[p],!v))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${p}`):new Error;return v},_getDefaultColumnDef:Y(()=>[o.options.defaultColumn],p=>{var f;return p=(f=p)!=null?f:{},{header:v=>{const m=v.header.column.columnDef;return m.accessorKey?m.accessorKey:m.accessorFn?m.id:null},cell:v=>{var m,b;return(m=(b=v.renderValue())==null||b.toString==null?void 0:b.toString())!=null?m:null},...o._features.reduce((v,m)=>Object.assign(v,m.getDefaultColumnDef==null?void 0:m.getDefaultColumnDef()),{}),...p}},Z(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:Y(()=>[o._getColumnDefs()],p=>{const f=function(v,m,b){return b===void 0&&(b=0),v.map(x=>{const R=hi(o,x,b,m),y=x;return R.columns=y.columns?f(y.columns,R,b+1):[],R})};return f(p)},Z(e,"debugColumns","getAllColumns")),getAllFlatColumns:Y(()=>[o.getAllColumns()],p=>p.flatMap(f=>f.getFlatColumns()),Z(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:Y(()=>[o.getAllFlatColumns()],p=>p.reduce((f,v)=>(f[v.id]=v,f),{}),Z(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:Y(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(p,f)=>{let v=p.flatMap(m=>m.getLeafColumns());return f(v)},Z(e,"debugColumns","getAllLeafColumns")),getColumn:p=>{const f=o._getAllFlatColumnsById()[p];return process.env.NODE_ENV!=="production"&&!f&&console.error(`[Table] Column with id '${p}' does not exist.`),f}};Object.assign(o,g);for(let p=0;p<o._features.length;p++){const f=o._features[p];f==null||f.createTable==null||f.createTable(o)}return o}function Bi(){return e=>Y(()=>[e.options.data],n=>{const t={rows:[],flatRows:[],rowsById:{}},r=function(o,i,a){i===void 0&&(i=0);const l=[];for(let u=0;u<o.length;u++){const d=bi(e,e._getRowId(o[u],u,a),o[u],u,i,void 0,a==null?void 0:a.id);if(t.flatRows.push(d),t.rowsById[d.id]=d,l.push(d),e.options.getSubRows){var c;d.originalSubRows=e.options.getSubRows(o[u],u),(c=d.originalSubRows)!=null&&c.length&&(d.subRows=r(d.originalSubRows,i+1,d))}}return l};return t.rows=r(n),t},Z(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}/**
118
118
  * react-table
119
119
  *
120
120
  * Copyright (c) TanStack
@@ -123,56 +123,56 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
123
123
  * LICENSE.md file in the root directory of this source tree.
124
124
  *
125
125
  * @license MIT
126
- */function Ga(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=$.useState(()=>({current:Ba(n)})),[r,o]=$.useState(()=>t.current.initialState);return t.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:i=>{o(i),e.onStateChange==null||e.onStateChange(i)}})),t.current}const Wa={h1:"text-5xl font-bold",h2:"text-4xl font-bold",h3:"text-3xl font-bold",h4:"text-2xl font-semibold",h5:"text-xl font-semibold",h6:"text-lg font-semibold",subtitle1:"text-base font-medium",subtitle2:"text-sm font-normal",body1:"text-base",body2:"text-sm",caption:"text-xs",overline:"text-xs uppercase tracking-wide"},mr=({variant:e="body1",component:n,className:t="",children:r,color:o="dark"})=>{var l;const i=n||{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",body1:"p",body2:"p",caption:"span",overline:"span"}[e]||"p";return s.jsx(i,{className:`${Wa[e]} ${(l=fe[o])==null?void 0:l.text} ${t}`,children:r})},gr=({total:e,currentPage:n,pageSize:t=10,onPageChange:r,hideEdgeButtons:o=!1,className:a=""})=>{const i=Math.ceil(e/t),l=n===1,c=n===i;return i<=1?null:s.jsxs("div",{className:`flex items-center space-x-1 ${a}`,children:[!o&&s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z"})}),onClick:()=>r(1),disabled:l,roundedFull:!0,size:"small",variant:"transparent"}),s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"})}),onClick:()=>r(n-1),disabled:l,roundedFull:!0,size:"small",variant:"transparent"}),s.jsxs("span",{className:"text-sm text-color-gray-800",children:["Page ",n," of ",i]}),s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})}),onClick:()=>r(n+1),disabled:c,roundedFull:!0,size:"small",variant:"transparent"}),!o&&s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M19.1642 12L12.9571 5.79291L11.5429 7.20712L16.3358 12L11.5429 16.7929L12.9571 18.2071L19.1642 12ZM13.5143 12L7.30722 5.79291L5.89301 7.20712L10.6859 12L5.89301 16.7929L7.30722 18.2071L13.5143 12Z"})}),onClick:()=>r(i),disabled:c,roundedFull:!0,size:"small",variant:"transparent"})]})},Ua=({data:e,columns:n=[],pageSize:t,pageIndex:r,onPageSizeChange:o,onPageChange:a,rowOptionArray:i=[5,10,15],totalRecords:l=e.length,className:c="",paginationClassName:u="",tdClassName:d="",thClassName:g=""})=>{const p=Ga({data:e,columns:n,getCoreRowModel:qa(),manualPagination:!0,pageCount:Math.ceil(l/t),state:{pagination:{pageIndex:r,pageSize:t}}});return s.jsx(s.Fragment,{children:s.jsxs("div",{className:`relative overflow-y-auto flex flex-col ${c} `,children:[s.jsxs("table",{className:"w-full relative border-collapse",children:[s.jsx("thead",{className:"sticky top-0 left-0 rounded-xl bg-color-[#FAFBFB] z-10 h-10",children:p.getHeaderGroups().map(f=>s.jsx("tr",{children:f.headers.map(v=>s.jsx("th",{className:`bg-color-[#FAFBFB] p-2 text-left text-xs font-semibold text-color-gray-500 border-b border-color-gray-200 ${g}`,children:v.isPlaceholder?null:v.column.columnDef.header instanceof Function?v.column.columnDef.header(v.getContext()):v.column.columnDef.header},v.id))},f.id))}),s.jsx("tbody",{className:"",children:p.getRowModel().rows.map(f=>s.jsx("tr",{className:"border-b border-color-gray-200",children:f.getVisibleCells().map(v=>s.jsx("td",{className:`px-2 py-4 font-normal text-sm text-color-gray-800 ${d}`,children:v.column.columnDef.cell instanceof Function?v.column.columnDef.cell(v.getContext()):v.getValue()},v.id))},f.id))})]}),s.jsxs("div",{className:`w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mr,{variant:"body2",className:"hidden md:!flex",children:"Rows per page"}),s.jsx(Qn,{options:i,selectedValue:t,placementTop:!0,onChange:f=>{o(f),a(0)}})]}),s.jsx(gr,{total:l,pageSize:t,currentPage:r+1,onPageChange:f=>a(f-1)})]})]})})},Ya=({children:e,className:n=""})=>s.jsx("ul",{className:`divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${n}`,children:e}),Za=({children:e,secondaryAction:n,className:t=""})=>s.jsxs("li",{className:`flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`,children:[s.jsx("div",{className:"flex-1",children:e}),n&&s.jsx("div",{className:"ml-4",children:n})]}),Ka=({open:e,onClick:n,className:t="",children:r,...o})=>{const[a,i]=w.useState(!1);return w.useEffect(()=>{let l;return e?l=setTimeout(()=>i(!0),100):i(!1),()=>clearTimeout(l)},[e]),!e&&!a?null:s.jsx("div",{className:`fixed inset-0 z-999 bg-color-black/50 flex items-center justify-center transition-all duration-300 ${a?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"} ${t}`,onClick:n,"aria-hidden":!a,...o,children:r})},Xa=({animation:e="pulse",variant:n="rectangular",width:t,height:r,className:o=""})=>{const a="bg-color-gray-200 dark:bg-color-gray-700",i={pulse:"animate-pulse",wave:"relative overflow-hidden"},l=()=>{switch(n){case"circular":return{classes:"rounded-full",defaultWidth:40,defaultHeight:40};case"rectangular":return{classes:"",defaultWidth:200,defaultHeight:100};case"rounded":return{classes:"rounded-lg",defaultWidth:200,defaultHeight:100};case"text":return{classes:"rounded-sm",defaultWidth:void 0,defaultHeight:16};default:return{classes:"",defaultWidth:200,defaultHeight:100}}},{classes:c,defaultWidth:u,defaultHeight:d}=l(),g=t??u,p=r??d,f={};g!==void 0&&(f.width=`${g}px`),p!==void 0&&(f.height=`${p}px`),n==="text"&&t===void 0&&(f.width="100%");const v=[a,c,i[e],o].filter(Boolean).join(" ");return s.jsx("div",{className:v,style:f,children:e==="wave"&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.35)_50%,_rgba(255,_255,_255,_0)_100%)] dark:bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.1)_50%,_rgba(255,_255,_255,_0)_100%)]",style:{animation:"skeleton-wave 2s ease-in-out infinite"}}),s.jsx("style",{children:`
126
+ */function qi(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[t]=$.useState(()=>({current:Hi(n)})),[r,o]=$.useState(()=>t.current.initialState);return t.current.setOptions(i=>({...i,...e,state:{...r,...e.state},onStateChange:a=>{o(a),e.onStateChange==null||e.onStateChange(a)}})),t.current}const Gi={h1:"text-5xl font-bold",h2:"text-4xl font-bold",h3:"text-3xl font-bold",h4:"text-2xl font-semibold",h5:"text-xl font-semibold",h6:"text-lg font-semibold",subtitle1:"text-base font-medium",subtitle2:"text-sm font-normal",body1:"text-base",body2:"text-sm",caption:"text-xs",overline:"text-xs uppercase tracking-wide"},mr=({variant:e="body1",component:n,className:t="",children:r,color:o="dark"})=>{var l;const a=n||{h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"p",subtitle2:"p",body1:"p",body2:"p",caption:"span",overline:"span"}[e]||"p";return s.jsx(a,{className:`${Gi[e]} ${(l=fe[o])==null?void 0:l.text} ${t}`,children:r})},gr=({total:e,currentPage:n,pageSize:t=10,onPageChange:r,hideEdgeButtons:o=!1,className:i=""})=>{const a=Math.ceil(e/t),l=n===1,c=n===a;return a<=1?null:s.jsxs("div",{className:`flex items-center space-x-1 ${i}`,children:[!o&&s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M4.83582 12L11.0429 18.2071L12.4571 16.7929L7.66424 12L12.4571 7.20712L11.0429 5.79291L4.83582 12ZM10.4857 12L16.6928 18.2071L18.107 16.7929L13.3141 12L18.107 7.20712L16.6928 5.79291L10.4857 12Z"})}),onClick:()=>r(1),disabled:l,roundedFull:!0,size:"small",variant:"transparent"}),s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"})}),onClick:()=>r(n-1),disabled:l,roundedFull:!0,size:"small",variant:"transparent"}),s.jsxs("span",{className:"text-sm text-color-gray-800",children:["Page ",n," of ",a]}),s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})}),onClick:()=>r(n+1),disabled:c,roundedFull:!0,size:"small",variant:"transparent"}),!o&&s.jsx(we,{color:"dark",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M19.1642 12L12.9571 5.79291L11.5429 7.20712L16.3358 12L11.5429 16.7929L12.9571 18.2071L19.1642 12ZM13.5143 12L7.30722 5.79291L5.89301 7.20712L10.6859 12L5.89301 16.7929L7.30722 18.2071L13.5143 12Z"})}),onClick:()=>r(a),disabled:c,roundedFull:!0,size:"small",variant:"transparent"})]})},Wi=({data:e,columns:n=[],pageSize:t,pageIndex:r,onPageSizeChange:o,onPageChange:i,rowOptionArray:a=[5,10,15],totalRecords:l=e.length,className:c="",paginationClassName:u="",tdClassName:d="",thClassName:g=""})=>{const p=qi({data:e,columns:n,getCoreRowModel:Bi(),manualPagination:!0,pageCount:Math.ceil(l/t),state:{pagination:{pageIndex:r,pageSize:t}}});return s.jsx(s.Fragment,{children:s.jsxs("div",{className:`relative overflow-y-auto flex flex-col ${c} `,children:[s.jsxs("table",{className:"w-full relative border-collapse",children:[s.jsx("thead",{className:"sticky top-0 left-0 rounded-xl bg-color-[#FAFBFB] z-10 h-10",children:p.getHeaderGroups().map(f=>s.jsx("tr",{children:f.headers.map(v=>s.jsx("th",{className:`bg-color-[#FAFBFB] p-2 text-left text-xs font-semibold text-color-gray-500 border-b border-color-gray-200 ${g}`,children:v.isPlaceholder?null:v.column.columnDef.header instanceof Function?v.column.columnDef.header(v.getContext()):v.column.columnDef.header},v.id))},f.id))}),s.jsx("tbody",{className:"",children:p.getRowModel().rows.map(f=>s.jsx("tr",{className:"border-b border-color-gray-200",children:f.getVisibleCells().map(v=>s.jsx("td",{className:`px-2 py-4 font-normal text-sm text-color-gray-800 ${d}`,children:v.column.columnDef.cell instanceof Function?v.column.columnDef.cell(v.getContext()):v.getValue()},v.id))},f.id))})]}),s.jsxs("div",{className:`w-full py-4 px-2 border-t border-color-gray-200 bg-color-[#FAFBFB] flex justify-between items-center ${u} sticky bottom-0 z-10`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(mr,{variant:"body2",className:"hidden md:!flex",children:"Rows per page"}),s.jsx(Qn,{options:a,selectedValue:t,placementTop:!0,onChange:f=>{o(f),i(0)}})]}),s.jsx(gr,{total:l,pageSize:t,currentPage:r+1,onPageChange:f=>i(f-1)})]})]})})},Ui=({children:e,className:n=""})=>s.jsx("ul",{className:`divide-y divide-color-gray-200 rounded-md bg-color-white shadow-sm border border-color-gray-200 ${n}`,children:e}),Yi=({children:e,secondaryAction:n,className:t=""})=>s.jsxs("li",{className:`flex items-center justify-between overflow-hidden px-4 py-3 hover:bg-color-gray-50 transition ${t}`,children:[s.jsx("div",{className:"flex-1",children:e}),n&&s.jsx("div",{className:"ml-4",children:n})]}),Zi=({open:e,onClick:n,className:t="",children:r,...o})=>{const[i,a]=w.useState(!1);return w.useEffect(()=>{let l;return e?l=setTimeout(()=>a(!0),100):a(!1),()=>clearTimeout(l)},[e]),!e&&!i?null:s.jsx("div",{className:`fixed inset-0 z-999 bg-color-black/50 flex items-center justify-center transition-all duration-300 ${i?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"} ${t}`,onClick:n,"aria-hidden":!i,...o,children:r})},Ki=({animation:e="pulse",variant:n="rectangular",width:t,height:r,className:o=""})=>{const i="bg-color-gray-200 dark:bg-color-gray-700",a={pulse:"animate-pulse",wave:"relative overflow-hidden"},l=()=>{switch(n){case"circular":return{classes:"rounded-full",defaultWidth:40,defaultHeight:40};case"rectangular":return{classes:"",defaultWidth:200,defaultHeight:100};case"rounded":return{classes:"rounded-lg",defaultWidth:200,defaultHeight:100};case"text":return{classes:"rounded-sm",defaultWidth:void 0,defaultHeight:16};default:return{classes:"",defaultWidth:200,defaultHeight:100}}},{classes:c,defaultWidth:u,defaultHeight:d}=l(),g=t??u,p=r??d,f={};g!==void 0&&(f.width=`${g}px`),p!==void 0&&(f.height=`${p}px`),n==="text"&&t===void 0&&(f.width="100%");const v=[i,c,a[e],o].filter(Boolean).join(" ");return s.jsx("div",{className:v,style:f,children:e==="wave"&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"absolute inset-0 bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.35)_50%,_rgba(255,_255,_255,_0)_100%)] dark:bg-gradient-[linear-gradient(90deg,_rgba(255,_255,_255,_0)_0%,_rgba(255,_255,_255,_0.1)_50%,_rgba(255,_255,_255,_0)_100%)]",style:{animation:"skeleton-wave 2s ease-in-out infinite"}}),s.jsx("style",{children:`
127
127
  @keyframes skeleton-wave {
128
128
  0% { transform: translateX(-100%); }
129
129
  50% { transform: translateX(100%); }
130
130
  100% { transform: translateX(100%); }
131
131
  }
132
- `})]})})},Ja=({label:e,error:n,className:t="",inputClass:r="",labelClass:o="",...a})=>s.jsxs("div",{className:`flex flex-col gap-1 ${t}`,children:[e&&s.jsx("label",{className:`text-sm font-medium ${o}`,children:e}),s.jsx("textarea",{className:`border border-color-gray-300 rounded-md px-3 py-2 resize-none focus:ring-1 focus:outline-none ${r}`,...a}),n&&s.jsx("span",{className:"text-xs text-color-red-500",children:n})]}),vr={small:{track:"h-1",thumb:"w-3 h-3"},medium:{track:"h-2",thumb:"w-4 h-4"},large:{track:"h-3",thumb:"w-5 h-5"}};function Qa(e){const n=w.useRef(null),t=w.useRef(null),r=w.useRef(null),o=(c,u)=>{if(c===u)return!0;if(Array.isArray(c)&&Array.isArray(u)){if(c.length!==u.length)return!1;for(let d=0;d<c.length;d++)if(c[d]!==u[d])return!1;return!0}return!1},a=w.useCallback(c=>{e&&(o(c,r.current)||(r.current=c,e(c)))},[e]),i=w.useCallback(c=>{t.current=c,n.current==null&&(n.current=requestAnimationFrame(()=>{n.current=null,t.current!=null&&a(t.current)}))},[a]),l=w.useCallback(()=>{n.current!=null&&cancelAnimationFrame(n.current),n.current=null},[]);return{schedule:i,flush:a,cancel:l,last:t}}const ei=w.memo(function({value:n,defaultValue:t,onChange:r,onChangeEnd:o,min:a=0,max:i=100,step:l=1,color:c="blue",size:u="medium",disabled:d=!1,className:g="",showValue:p=!0,showMarks:f=!1,marks:v=[],range:m=!1,minDistance:b=0}){const x=n!==void 0,[R,y]=w.useState(()=>t!==void 0?t:m?[a,i]:a),E=x?n:R,C=Array.isArray(E)?E[0]:E,[V,T]=Array.isArray(E)?E:[E,E],B=Ue[c]||Ue.blue,A=vr[u]??vr.medium,X=w.useCallback(_=>(_-a)/(i-a)*100,[a,i]),ae=X(C),se=X(V),ee=X(T),q=w.useCallback(_=>Math.max(a,Math.min(i,_)),[a,i]),K=w.useCallback(_=>Math.round(_/l)*l,[l]),I=Qa(r),ne=w.useCallback((_,Q=!0)=>{x||y(_),Q?I.schedule(_):I.flush(_)},[x,I]),ue=w.useCallback(()=>{const _=I.last.current;_!=null&&(I.flush(_),o==null||o(_))},[I,o]),J=w.useCallback((_,Q)=>{if(m&&Array.isArray(_)){let[te,ce]=_,de=K(q(te)),he=K(q(ce));return he-de<b&&(Q==="min"?he=q(de+b):Q==="max"&&(de=q(he-b))),de>he&&(Q==="min"?de=he:he=de),[de,he]}else if(!m&&typeof _=="number")return K(q(_));return _},[m,q,K,b]),h=w.useRef(null),S=w.useCallback(_=>{var ce;const Q=(ce=h.current)==null?void 0:ce.getBoundingClientRect();if(!Q)return m?a:C;const te=Math.max(0,Math.min(1,(_-Q.left)/Q.width));return a+te*(i-a)},[a,i,m,C]),F=w.useCallback(_=>{const Q=Math.abs(_-V),te=Math.abs(_-T);return Q<=te?"min":"max"},[V,T]),[L,D]=w.useState(null),[H,z]=w.useState(null),[P,M]=w.useState(null),G=w.useCallback((_,Q)=>{var ce,de;if(d)return;_.preventDefault(),(de=(ce=_.currentTarget).setPointerCapture)==null||de.call(ce,_.pointerId),M(_.pointerId);const te=S(_.clientX);if(m){const he=Q||F(te);D(he),ne(he==="min"?J([te,T],"min"):J([V,te],"max"))}else D("single"),ne(J(te,"single"))},[d,m,S,F,J,V,T,ne]),W=w.useCallback(_=>{if(d||P==null||L==null)return;const Q=S(_.clientX);m?L==="min"?ne(J([Q,T],"min")):L==="max"&&ne(J([V,Q],"max")):ne(J(Q,"single"))},[d,P,L,m,S,J,V,T,ne]),j=w.useCallback(()=>{L!=null&&(D(null),M(null),ue())},[L,ue]),k=w.useCallback((_,Q)=>{if(d)return;const te=m?Q==="min"?V:T:C;let ce=te;const de=(i-a)/10;switch(_.key){case"ArrowLeft":case"ArrowDown":ce=te-l;break;case"ArrowRight":case"ArrowUp":ce=te+l;break;case"PageDown":ce=te-de;break;case"PageUp":ce=te+de;break;case"Home":ce=a;break;case"End":ce=i;break;default:return}_.preventDefault(),ne(m?Q==="min"?J([ce,T],"min"):J([V,ce],"max"):J(ce,"single"),!1),o==null||o(x?n:E)},[d,m,C,V,T,l,a,i,J,ne,o,x,n,E]);return w.useEffect(()=>{if(!L)return;const _=document.body.style.userSelect;return document.body.style.userSelect="none",()=>{document.body.style.userSelect=_}},[L]),s.jsx("div",{className:`w-full ${g}`,children:s.jsxs("div",{className:"relative flex items-center",children:[m&&s.jsx("div",{className:"mr-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem]",children:s.jsx("div",{className:"range-min",children:s.jsx("div",{children:V})})}),s.jsxs("div",{className:"w-full",children:[s.jsxs("div",{ref:h,className:`
132
+ `})]})})},Xi=({label:e,error:n,className:t="",inputClass:r="",labelClass:o="",...i})=>s.jsxs("div",{className:`flex flex-col gap-1 ${t}`,children:[e&&s.jsx("label",{className:`text-sm font-medium ${o}`,children:e}),s.jsx("textarea",{className:`border border-color-gray-300 rounded-md px-3 py-2 resize-none focus:ring-1 focus:outline-none ${r}`,...i}),n&&s.jsx("span",{className:"text-xs text-color-red-500",children:n})]}),vr={small:{track:"h-1",thumb:"w-3 h-3"},medium:{track:"h-2",thumb:"w-4 h-4"},large:{track:"h-3",thumb:"w-5 h-5"}};function Ji(e){const n=w.useRef(null),t=w.useRef(null),r=w.useRef(null),o=(c,u)=>{if(c===u)return!0;if(Array.isArray(c)&&Array.isArray(u)){if(c.length!==u.length)return!1;for(let d=0;d<c.length;d++)if(c[d]!==u[d])return!1;return!0}return!1},i=w.useCallback(c=>{e&&(o(c,r.current)||(r.current=c,e(c)))},[e]),a=w.useCallback(c=>{t.current=c,n.current==null&&(n.current=requestAnimationFrame(()=>{n.current=null,t.current!=null&&i(t.current)}))},[i]),l=w.useCallback(()=>{n.current!=null&&cancelAnimationFrame(n.current),n.current=null},[]);return{schedule:a,flush:i,cancel:l,last:t}}const Qi=w.memo(function({value:n,defaultValue:t,onChange:r,onChangeEnd:o,min:i=0,max:a=100,step:l=1,color:c="blue",size:u="medium",disabled:d=!1,className:g="",showValue:p=!0,showMarks:f=!1,marks:v=[],range:m=!1,minDistance:b=0}){const x=n!==void 0,[R,y]=w.useState(()=>t!==void 0?t:m?[i,a]:i),E=x?n:R,C=Array.isArray(E)?E[0]:E,[V,T]=Array.isArray(E)?E:[E,E],B=Ue[c]||Ue.blue,A=vr[u]??vr.medium,X=w.useCallback(_=>(_-i)/(a-i)*100,[i,a]),ie=X(C),se=X(V),ee=X(T),q=w.useCallback(_=>Math.max(i,Math.min(a,_)),[i,a]),K=w.useCallback(_=>Math.round(_/l)*l,[l]),I=Ji(r),ne=w.useCallback((_,Q=!0)=>{x||y(_),Q?I.schedule(_):I.flush(_)},[x,I]),ue=w.useCallback(()=>{const _=I.last.current;_!=null&&(I.flush(_),o==null||o(_))},[I,o]),J=w.useCallback((_,Q)=>{if(m&&Array.isArray(_)){let[te,ce]=_,de=K(q(te)),he=K(q(ce));return he-de<b&&(Q==="min"?he=q(de+b):Q==="max"&&(de=q(he-b))),de>he&&(Q==="min"?de=he:he=de),[de,he]}else if(!m&&typeof _=="number")return K(q(_));return _},[m,q,K,b]),h=w.useRef(null),S=w.useCallback(_=>{var ce;const Q=(ce=h.current)==null?void 0:ce.getBoundingClientRect();if(!Q)return m?i:C;const te=Math.max(0,Math.min(1,(_-Q.left)/Q.width));return i+te*(a-i)},[i,a,m,C]),F=w.useCallback(_=>{const Q=Math.abs(_-V),te=Math.abs(_-T);return Q<=te?"min":"max"},[V,T]),[L,D]=w.useState(null),[H,z]=w.useState(null),[P,M]=w.useState(null),G=w.useCallback((_,Q)=>{var ce,de;if(d)return;_.preventDefault(),(de=(ce=_.currentTarget).setPointerCapture)==null||de.call(ce,_.pointerId),M(_.pointerId);const te=S(_.clientX);if(m){const he=Q||F(te);D(he),ne(he==="min"?J([te,T],"min"):J([V,te],"max"))}else D("single"),ne(J(te,"single"))},[d,m,S,F,J,V,T,ne]),W=w.useCallback(_=>{if(d||P==null||L==null)return;const Q=S(_.clientX);m?L==="min"?ne(J([Q,T],"min")):L==="max"&&ne(J([V,Q],"max")):ne(J(Q,"single"))},[d,P,L,m,S,J,V,T,ne]),j=w.useCallback(()=>{L!=null&&(D(null),M(null),ue())},[L,ue]),k=w.useCallback((_,Q)=>{if(d)return;const te=m?Q==="min"?V:T:C;let ce=te;const de=(a-i)/10;switch(_.key){case"ArrowLeft":case"ArrowDown":ce=te-l;break;case"ArrowRight":case"ArrowUp":ce=te+l;break;case"PageDown":ce=te-de;break;case"PageUp":ce=te+de;break;case"Home":ce=i;break;case"End":ce=a;break;default:return}_.preventDefault(),ne(m?Q==="min"?J([ce,T],"min"):J([V,ce],"max"):J(ce,"single"),!1),o==null||o(x?n:E)},[d,m,C,V,T,l,i,a,J,ne,o,x,n,E]);return w.useEffect(()=>{if(!L)return;const _=document.body.style.userSelect;return document.body.style.userSelect="none",()=>{document.body.style.userSelect=_}},[L]),s.jsx("div",{className:`w-full ${g}`,children:s.jsxs("div",{className:"relative flex items-center",children:[m&&s.jsx("div",{className:"mr-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem]",children:s.jsx("div",{className:"range-min",children:s.jsx("div",{children:V})})}),s.jsxs("div",{className:"w-full",children:[s.jsxs("div",{ref:h,className:`
133
133
  relative w-full ${A.track} ${B.track} rounded-full
134
134
  ${d?"opacity-60 cursor-not-allowed":"cursor-pointer"}
135
- `,onPointerDown:_=>G(_),onPointerMove:W,onPointerUp:j,onPointerCancel:j,children:[m?s.jsx("div",{className:`absolute top-0 ${A.track} ${B.progress} rounded-full ${L?"":"transition-all duration-150"}`,style:{left:`${se}%`,width:`${ee-se}%`}}):s.jsx("div",{className:`absolute top-0 left-0 ${A.track} ${B.progress} rounded-full ${L?"":"transition-all duration-150"}`,style:{width:`${ae}%`}}),f&&v.map((_,Q)=>{const te=X(_.value);return s.jsx("div",{className:"absolute top-1/2 transform -translate-y-1/2 w-1 h-1 bg-gray-400 rounded-full",style:{left:`${te}%`}},Q)}),!m&&s.jsx("div",{className:`
135
+ `,onPointerDown:_=>G(_),onPointerMove:W,onPointerUp:j,onPointerCancel:j,children:[m?s.jsx("div",{className:`absolute top-0 ${A.track} ${B.progress} rounded-full ${L?"":"transition-all duration-150"}`,style:{left:`${se}%`,width:`${ee-se}%`}}):s.jsx("div",{className:`absolute top-0 left-0 ${A.track} ${B.progress} rounded-full ${L?"":"transition-all duration-150"}`,style:{width:`${ie}%`}}),f&&v.map((_,Q)=>{const te=X(_.value);return s.jsx("div",{className:"absolute top-1/2 transform -translate-y-1/2 w-1 h-1 bg-gray-400 rounded-full",style:{left:`${te}%`}},Q)}),!m&&s.jsx("div",{className:`
136
136
  absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2
137
137
  ${A.thumb} ${B.thumb} ${B.thumbHover} ${B.thumbActive}
138
138
  rounded-full border-2 ${d?"opacity-60 cursor-not-allowed":"cursor-grab"}
139
139
  ${L==="single"?"cursor-grabbing scale-110":L?"":"transition-all duration-150"}
140
140
  ${H==="single"?"ring-2 ring-offset-1 ring-blue-300":""}
141
141
  shadow-md hover:shadow-lg focus:outline-none dark:shadow-none
142
- `,style:{left:`${ae}%`},tabIndex:d?-1:0,role:"slider","aria-orientation":"horizontal","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":C,"aria-disabled":d,onKeyDown:_=>k(_,"single"),onFocus:()=>z("single"),onBlur:()=>z(null),onPointerDown:_=>G(_,"single")}),m&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:`
142
+ `,style:{left:`${ie}%`},tabIndex:d?-1:0,role:"slider","aria-orientation":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":C,"aria-disabled":d,onKeyDown:_=>k(_,"single"),onFocus:()=>z("single"),onBlur:()=>z(null),onPointerDown:_=>G(_,"single")}),m&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:`
143
143
  absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2 z-10
144
144
  ${A.thumb} ${B.thumb} ${B.thumbHover} ${B.thumbActive}
145
145
  rounded-full border-2 ${d?"opacity-60 cursor-not-allowed":"cursor-grab"}
146
146
  ${L==="min"?"cursor-grabbing scale-110 z-20":L?"":"transition-all duration-150"}
147
147
  ${H==="min"?"ring-2 ring-offset-1 ring-blue-300":""}
148
148
  shadow-md hover:shadow-lg focus:outline-none dark:shadow-none
149
- `,style:{left:`${se}%`},tabIndex:d?-1:0,role:"slider","aria-orientation":"horizontal","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":V,"aria-disabled":d,"aria-label":"Minimum value",onKeyDown:_=>k(_,"min"),onFocus:()=>z("min"),onBlur:()=>z(null),onPointerDown:_=>G(_,"min")}),s.jsx("div",{className:`
149
+ `,style:{left:`${se}%`},tabIndex:d?-1:0,role:"slider","aria-orientation":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":V,"aria-disabled":d,"aria-label":"Minimum value",onKeyDown:_=>k(_,"min"),onFocus:()=>z("min"),onBlur:()=>z(null),onPointerDown:_=>G(_,"min")}),s.jsx("div",{className:`
150
150
  absolute top-1/2 transform -translate-y-1/2 -translate-x-1/2 z-10
151
151
  ${A.thumb} ${B.thumb} ${B.thumbHover} ${B.thumbActive}
152
152
  rounded-full border-2 ${d?"opacity-60 cursor-not-allowed":"cursor-grab"}
153
153
  ${L==="max"?"cursor-grabbing scale-110 z-20":L?"":"transition-all duration-150"}
154
154
  ${H==="max"?"ring-2 ring-offset-1 ring-blue-300":""}
155
155
  shadow-md hover:shadow-lg focus:outline-none dark:shadow-none
156
- `,style:{left:`${ee}%`},tabIndex:d?-1:0,role:"slider","aria-orientation":"horizontal","aria-valuemin":a,"aria-valuemax":i,"aria-valuenow":T,"aria-disabled":d,"aria-label":"Maximum value",onKeyDown:_=>k(_,"max"),onFocus:()=>z("max"),onBlur:()=>z(null),onPointerDown:_=>G(_,"max")})]})]}),f&&v.length>0&&s.jsx("div",{className:"relative mt-2 text-xs text-color-gray-500 dark:text-color-gray-200",children:v.map((_,Q)=>{const te=X(_.value);return s.jsx("div",{className:"absolute transform -translate-x-1/2 text-xs",style:{left:`${te}%`},children:_.label||_.value},Q)})})]}),p&&s.jsx("div",{className:"ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right",children:m?s.jsx("div",{className:"range-max",children:s.jsx("div",{children:T})}):s.jsx("span",{children:C})})]})})}),ti=({open:e=!1,message:n,autoHideDuration:t=4e3,position:r="bottom-center",color:o="dark",onClose:a,action:i,className:l=""})=>{var g;w.useEffect(()=>{if(e&&t>0&&a){const p=setTimeout(()=>{a()},t);return()=>clearTimeout(p)}},[e,t,a]),w.useEffect(()=>{const p=f=>{f.key==="Escape"&&e&&a&&a()};if(e)return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[e,a]);const c=w.useCallback(()=>{a&&a()},[a]),u=p=>{const f="fixed z-50 transform transition-all duration-300 ease-in-out";switch(p){case"top-center":return`${f} top-4 left-1/2 -translate-x-1/2 ${e?"translate-y-0 opacity-100":"-translate-y-full opacity-0"}`;case"top-left":return`${f} top-4 left-4 ${e?"translate-y-0 opacity-100":"-translate-y-full opacity-0"}`;case"top-right":return`${f} top-4 right-4 ${e?"translate-y-0 opacity-100":"-translate-y-full opacity-0"}`;case"bottom-left":return`${f} bottom-4 left-4 ${e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}`;case"bottom-right":return`${f} bottom-4 right-4 ${e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}`;case"bottom-center":default:return`${f} bottom-4 left-1/2 -translate-x-1/2 ${e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}`}},d=(g=fe[o])==null?void 0:g.filled;return e?s.jsxs(s.Fragment,{children:[e&&s.jsx("div",{className:"fixed inset-0 z-40 bg-color-black/10 backdrop-blur-[1px] md:hidden",onClick:c}),s.jsxs("div",{className:`min-w-72 max-w-lg mx-4 px-4 py-2 rounded-lg shadow-xl flex items-center justify-between gap-3 backdrop-blur-sm border border-color-white/20
157
- ${u(r)} ${d} ${l}`,role:"alert","aria-live":"assertive","aria-atomic":"true",children:[s.jsx("span",{className:"flex-1 text-sm font-medium leading-relaxed",children:n}),s.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[i&&s.jsx("div",{className:"flex items-center",children:i}),a&&s.jsx(we,{color:"light",size:"small",icon:s.jsx("svg",{className:"size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})}),onClick:c,roundedFull:!0,className:"hover:!bg-color-white/10 -mr-1",variant:"transparent"})]})]})]}):null},hr=w.memo(({variant:e="linear",value:n=0,color:t="blue",determinate:r=!0,className:o="",...a})=>{var p,f;const i="inline-block",l=(p=fe[t])==null?void 0:p.transparent,c=(f=fe[t])==null?void 0:f.filled,u=Math.min(Math.max(n,0),100);if(e==="circular"){const{size:v=40,thickness:m=3.6}=a,b=w.useMemo(()=>(v-m)/2,[v,m]),x=w.useMemo(()=>2*Math.PI*b,[b]),R=`${x} ${x}`,y=x-u/100*x;return s.jsx("div",{className:`${i} ${o}`,style:{width:v,height:v,contain:"paint"},role:"progressbar","aria-valuenow":r?u:void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!r,children:s.jsxs("svg",{className:r?"":"animate-spin-slow",width:v,height:v,viewBox:`0 0 ${v} ${v}`,children:[s.jsx("circle",{cx:v/2,cy:v/2,r:b,stroke:"currentColor",strokeWidth:m,fill:"none",className:"text-color-gray-200 dark:text-color-gray-700"}),s.jsx("circle",{cx:v/2,cy:v/2,r:b,stroke:"currentColor",strokeWidth:m,fill:"none",strokeLinecap:"round",className:`${l}`,style:r?{strokeDasharray:R,strokeDashoffset:y,transformOrigin:"center"}:{strokeDasharray:`${x*.25} ${x}`,strokeDashoffset:0}})]})})}const{thickness:d=4}=a,g=r?u/100:.4;return s.jsx("div",{className:`${i} w-full ${o}`,role:"progressbar","aria-valuenow":r?u:void 0,"aria-valuemin":0,"aria-valuemax":100,"aria-busy":!r,style:{contain:"paint"},children:s.jsx("div",{className:"w-full bg-color-gray-200 dark:bg-color-gray-700 rounded-full overflow-hidden relative",style:{height:`${d}px`},children:r?s.jsx("div",{className:`h-full ${c}`,style:{width:"100%",transform:`scaleX(${g})`,transformOrigin:"left",willChange:"transform",transition:"transform 300ms ease-out"}}):s.jsx("div",{className:`absolute left-0 top-0 h-full ${c} animate-progress-indeterminate-gpu`,style:{width:"40%",willChange:"transform"}})})})});hr.displayName="Progress";const xr=s.jsx("svg",{className:"w-5 h-5 fill-color-yellow-500",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z"})}),br=s.jsx("svg",{className:"w-5 h-5 fill-color-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z"})}),it={small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8"},ni=({value:e,onChange:n,readOnly:t=!1,disabled:r=!1,precision:o=1,max:a=5,size:i="medium",icon:l,emptyIcon:c,className:u="",showHoverValue:d=!1,showValue:g=!1,labels:p={}})=>{const[f,v]=w.useState(null),m=(y,E)=>{if(t||r||!n)return;const{left:C,width:V}=y.target.getBoundingClientRect(),T=(y.clientX-C)/V;let B=E-1+Math.ceil(T/o)*o;B=Math.min(a,Math.max(o,Math.round(B/o)*o)),n(B)},b=(y,E)=>{if(t||r)return;const{left:C,width:V}=y.target.getBoundingClientRect(),T=(y.clientX-C)/V;let B=E-1+Math.ceil(T/o)*o;B=Math.min(a,Math.max(o,Math.round(B/o)*o)),v(B)},x=()=>v(null),R=[];for(let y=1;y<=a;y++){let E=(f!==null?f:e)>=y,C=!E&&(f!==null?f:e)>y-1,V=E?l||w.cloneElement(xr,{className:`fill-color-yellow-500 ${it[i]}`}):c||w.cloneElement(br,{className:`stroke-color-gray-300 ${it[i]}`});if(C){const T=((f!==null?f:e)-(y-1))*100;V=s.jsxs("span",{className:"relative block",children:[s.jsx("span",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${T}%`},children:l||w.cloneElement(xr,{className:`fill-color-yellow-500 ${it[i]}`})}),c||w.cloneElement(br,{className:`stroke-color-gray-300 ${it[i]}`})]})}R.push(s.jsx("span",{className:`inline-block ${r?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,onClick:T=>m(T,y),onMouseMove:T=>b(T,y),onMouseLeave:x,tabIndex:t||r?-1:0,"aria-label":`Rate ${y}`,role:"radio","aria-checked":e===y,children:V},y))}return s.jsxs("div",{className:`flex items-center gap-1 ${u}`,role:"radiogroup","aria-disabled":r,children:[R,d&&f!==null?s.jsx("span",{className:"ml-2 text-xs text-gray-500",children:p[f]||f}):g?s.jsx("span",{className:"ml-2 text-xs text-gray-500",children:p[e]||e}):null]})},ri=({children:e,width:n="100%",height:t="auto",showIndicators:r=!0,showArrows:o=!0,autoplay:a=!1,interval:i=3e3,infiniteLoop:l=!1,perview:c=1,gap:u=0,onClickItem:d,showThumbs:g=!1,pauseOnHover:p=!1,swipeable:f=!0,thumbWidth:v=60,orientation:m="horizontal",nextIcon:b,prevIcon:x,className:R})=>{const y=e.length,E=Math.min(Math.max(c,.1),y),[C,V]=w.useState(0),[T,B]=w.useState(!1),[A,X]=w.useState(!1),[ae,se]=w.useState(0),ee=w.useRef(null),q=w.useRef(0),K=w.useRef(0),I=E>=y?0:Math.max(0,y-E),ne=P=>Math.max(0,Math.min(P,I)),ue=P=>V(l&&I>0?(P%(I+1)+(I+1))%(I+1):ne(P)),J=()=>{l&&I>0?V(C===0?I:C-1):ue(C-1)},h=()=>{l&&I>0?V(C>=I?0:C+1):ue(C+1)};w.useEffect(()=>{if(!a||p&&T||A||I===0)return;const P=setInterval(()=>{V(M=>{const G=M+1;return G>I?l?0:M:G})},i);return()=>clearInterval(P)},[a,i,T,p,A,I,l]);const S=(P,M)=>{!f||I===0||(X(!0),q.current=m==="horizontal"?P:M,K.current=q.current)},F=(P,M)=>{A&&(K.current=m==="horizontal"?P:M,se(K.current-q.current))},L=()=>{if(!A)return;Math.abs(K.current-q.current)>50&&(K.current<q.current?h():J()),X(!1),se(0)},D=()=>{const P=m==="horizontal"?"X":"Y";let M=0;if(A&&ee.current&&I>0){const Q=m==="horizontal"?ee.current.offsetWidth:ee.current.offsetHeight;M=ae/Q*100*(E/y)}const W=Math.min(C,I)*(100/y)-M,j=C>=I,_=C<=0?0:j?u/(c/2):u/c;return`translate${P}(calc(-${W}% - ${_}px))`},H=()=>E>=y?1:Math.floor(I)+1,z=()=>I===0?0:Math.round(C/I*(H()-1));return s.jsxs("div",{className:`relative flex flex-col items-center select-none ${R}`,style:{width:n,height:t},onMouseEnter:()=>p&&B(!0),onMouseLeave:()=>p&&B(!1),children:[s.jsxs("div",{ref:ee,className:`w-full overflow-hidden relative ${f&&I>0?A?"cursor-grabbing":"cursor-grab":"cursor-default"}`,style:{height:g?`calc(${t} - ${v+20}px)`:t},onMouseDown:P=>{P.preventDefault(),S(P.clientX,P.clientY)},onMouseMove:P=>F(P.clientX,P.clientY),onMouseUp:L,onMouseLeave:L,onTouchStart:P=>S(P.touches[0].clientX,P.touches[0].clientY),onTouchMove:P=>F(P.touches[0].clientX,P.touches[0].clientY),onTouchEnd:L,children:[s.jsx("div",{className:`flex ${m==="horizontal"?"flex-row":"flex-col"} transition-transform duration-300 ease-in-out`,style:{width:m==="horizontal"?`${y*100/E}%`:"100%",height:m==="vertical"?`${y*100/E}%`:"100%",transform:D(),gap:`${u}px`,transitionProperty:A?"none":"transform"},children:e.map((P,M)=>s.jsx("div",{className:"shrink-0 flex items-center justify-center",style:{width:m==="horizontal"?`calc(${100/y}% - ${u/c}px)`:"100%",height:m==="vertical"?`calc(${100/y}% - ${u*(y-1)/y}px)`:"100%"},onClick:()=>!A&&(d==null?void 0:d(M)),children:P},M))}),o&&I>0&&s.jsxs(s.Fragment,{children:[s.jsx("button",{"aria-label":"prev",onClick:J,className:`absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
156
+ `,style:{left:`${ee}%`},tabIndex:d?-1:0,role:"slider","aria-orientation":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":T,"aria-disabled":d,"aria-label":"Maximum value",onKeyDown:_=>k(_,"max"),onFocus:()=>z("max"),onBlur:()=>z(null),onPointerDown:_=>G(_,"max")})]})]}),f&&v.length>0&&s.jsx("div",{className:"relative mt-2 text-xs text-color-gray-500 dark:text-color-gray-200",children:v.map((_,Q)=>{const te=X(_.value);return s.jsx("div",{className:"absolute transform -translate-x-1/2 text-xs",style:{left:`${te}%`},children:_.label||_.value},Q)})})]}),p&&s.jsx("div",{className:"ml-3 text-sm font-medium text-color-gray-700 dark:text-color-gray-200 min-w-[2rem] text-right",children:m?s.jsx("div",{className:"range-max",children:s.jsx("div",{children:T})}):s.jsx("span",{children:C})})]})})}),ea=({open:e=!1,message:n,autoHideDuration:t=4e3,position:r="bottom-center",color:o="dark",onClose:i,action:a,className:l=""})=>{var g;w.useEffect(()=>{if(e&&t>0&&i){const p=setTimeout(()=>{i()},t);return()=>clearTimeout(p)}},[e,t,i]),w.useEffect(()=>{const p=f=>{f.key==="Escape"&&e&&i&&i()};if(e)return document.addEventListener("keydown",p),()=>document.removeEventListener("keydown",p)},[e,i]);const c=w.useCallback(()=>{i&&i()},[i]),u=p=>{const f="fixed z-50 transform transition-all duration-300 ease-in-out";switch(p){case"top-center":return`${f} top-4 left-1/2 -translate-x-1/2 ${e?"translate-y-0 opacity-100":"-translate-y-full opacity-0"}`;case"top-left":return`${f} top-4 left-4 ${e?"translate-y-0 opacity-100":"-translate-y-full opacity-0"}`;case"top-right":return`${f} top-4 right-4 ${e?"translate-y-0 opacity-100":"-translate-y-full opacity-0"}`;case"bottom-left":return`${f} bottom-4 left-4 ${e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}`;case"bottom-right":return`${f} bottom-4 right-4 ${e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}`;case"bottom-center":default:return`${f} bottom-4 left-1/2 -translate-x-1/2 ${e?"translate-y-0 opacity-100":"translate-y-full opacity-0"}`}},d=(g=fe[o])==null?void 0:g.filled;return e?s.jsxs(s.Fragment,{children:[e&&s.jsx("div",{className:"fixed inset-0 z-40 bg-color-black/10 backdrop-blur-[1px] md:hidden",onClick:c}),s.jsxs("div",{className:`min-w-72 max-w-lg mx-4 px-4 py-2 rounded-lg shadow-xl flex items-center justify-between gap-3 backdrop-blur-sm border border-color-white/20
157
+ ${u(r)} ${d} ${l}`,role:"alert","aria-live":"assertive","aria-atomic":"true",children:[s.jsx("span",{className:"flex-1 text-sm font-medium leading-relaxed",children:n}),s.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[a&&s.jsx("div",{className:"flex items-center",children:a}),i&&s.jsx(we,{color:"light",size:"small",icon:s.jsx("svg",{className:"size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})}),onClick:c,roundedFull:!0,className:"hover:!bg-color-white/10 -mr-1",variant:"transparent"})]})]})]}):null},ta=({variant:e="linear",value:n=0,color:t="blue",determinate:r=!0,className:o="",...i})=>{var g,p;const a="inline-block",l=(g=fe[t])==null?void 0:g.transparent,c=(p=fe[t])==null?void 0:p.filled,u=Math.min(Math.max(n,0),100);if(e==="circular"){const{size:f=40,thickness:v=3.6}=i,m=(f-v)/2,b=2*Math.PI*m,x=`${b} ${b}`,R=b-u/100*b;return s.jsx("div",{className:`${a} ${o}`,style:{width:f,height:f},role:"progressbar","aria-valuenow":r?u:void 0,"aria-valuemin":0,"aria-valuemax":100,children:s.jsxs("svg",{className:"transform -rotate-90",width:f,height:f,viewBox:`0 0 ${f} ${f}`,children:[s.jsx("circle",{cx:f/2,cy:f/2,r:m,stroke:"currentColor",strokeWidth:v,fill:"none",className:"text-color-gray-200 dark:text-color-gray-700"}),s.jsx("circle",{cx:f/2,cy:f/2,r:m,stroke:"currentColor",strokeWidth:v,fill:"none",strokeLinecap:"round",className:`${l} transition-all duration-300 ease-out ${r?"":"animate-spin-slow"}`,style:{strokeDasharray:x,strokeDashoffset:r?R:b*.75,transformOrigin:"center"}})]})})}const{thickness:d=4}=i;return s.jsx("div",{className:`${a} w-full ${o}`,role:"progressbar","aria-valuenow":r?u:void 0,"aria-valuemin":0,"aria-valuemax":100,children:s.jsx("div",{className:"w-full bg-color-gray-200 dark:bg-color-gray-700 rounded-full overflow-hidden relative",style:{height:`${d}px`},children:r?s.jsx("div",{className:`h-full ${c} transition-all duration-300 ease-out`,style:{width:`${u}%`}}):s.jsx("div",{className:`absolute left-0 top-0 h-full ${c} animate-progress-indeterminate-gpu`,style:{width:"40%"}})})})},hr=s.jsx("svg",{className:"w-5 h-5 fill-color-yellow-500",fill:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z"})}),xr=s.jsx("svg",{className:"w-5 h-5 fill-color-gray-300",fill:"none",stroke:"currentColor",viewBox:"0 0 20 20",children:s.jsx("path",{d:"M10 15l-5.878 3.09 1.122-6.545L.488 6.91l6.561-.955L10 0l2.951 5.955 6.561.955-4.756 4.635 1.122 6.545z"})}),at={small:"w-4 h-4",medium:"w-6 h-6",large:"w-8 h-8"},na=({value:e,onChange:n,readOnly:t=!1,disabled:r=!1,precision:o=1,max:i=5,size:a="medium",icon:l,emptyIcon:c,className:u="",showHoverValue:d=!1,showValue:g=!1,labels:p={}})=>{const[f,v]=w.useState(null),m=(y,E)=>{if(t||r||!n)return;const{left:C,width:V}=y.target.getBoundingClientRect(),T=(y.clientX-C)/V;let B=E-1+Math.ceil(T/o)*o;B=Math.min(i,Math.max(o,Math.round(B/o)*o)),n(B)},b=(y,E)=>{if(t||r)return;const{left:C,width:V}=y.target.getBoundingClientRect(),T=(y.clientX-C)/V;let B=E-1+Math.ceil(T/o)*o;B=Math.min(i,Math.max(o,Math.round(B/o)*o)),v(B)},x=()=>v(null),R=[];for(let y=1;y<=i;y++){let E=(f!==null?f:e)>=y,C=!E&&(f!==null?f:e)>y-1,V=E?l||w.cloneElement(hr,{className:`fill-color-yellow-500 ${at[a]}`}):c||w.cloneElement(xr,{className:`stroke-color-gray-300 ${at[a]}`});if(C){const T=((f!==null?f:e)-(y-1))*100;V=s.jsxs("span",{className:"relative block",children:[s.jsx("span",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${T}%`},children:l||w.cloneElement(hr,{className:`fill-color-yellow-500 ${at[a]}`})}),c||w.cloneElement(xr,{className:`stroke-color-gray-300 ${at[a]}`})]})}R.push(s.jsx("span",{className:`inline-block ${r?"opacity-50 cursor-not-allowed":"cursor-pointer"}`,onClick:T=>m(T,y),onMouseMove:T=>b(T,y),onMouseLeave:x,tabIndex:t||r?-1:0,"aria-label":`Rate ${y}`,role:"radio","aria-checked":e===y,children:V},y))}return s.jsxs("div",{className:`flex items-center gap-1 ${u}`,role:"radiogroup","aria-disabled":r,children:[R,d&&f!==null?s.jsx("span",{className:"ml-2 text-xs text-gray-500",children:p[f]||f}):g?s.jsx("span",{className:"ml-2 text-xs text-gray-500",children:p[e]||e}):null]})},ra=({children:e,width:n="100%",height:t="auto",showIndicators:r=!0,showArrows:o=!0,autoplay:i=!1,interval:a=3e3,infiniteLoop:l=!1,perview:c=1,gap:u=0,onClickItem:d,showThumbs:g=!1,pauseOnHover:p=!1,swipeable:f=!0,thumbWidth:v=60,orientation:m="horizontal",nextIcon:b,prevIcon:x,className:R})=>{const y=e.length,E=Math.min(Math.max(c,.1),y),[C,V]=w.useState(0),[T,B]=w.useState(!1),[A,X]=w.useState(!1),[ie,se]=w.useState(0),ee=w.useRef(null),q=w.useRef(0),K=w.useRef(0),I=E>=y?0:Math.max(0,y-E),ne=P=>Math.max(0,Math.min(P,I)),ue=P=>V(l&&I>0?(P%(I+1)+(I+1))%(I+1):ne(P)),J=()=>{l&&I>0?V(C===0?I:C-1):ue(C-1)},h=()=>{l&&I>0?V(C>=I?0:C+1):ue(C+1)};w.useEffect(()=>{if(!i||p&&T||A||I===0)return;const P=setInterval(()=>{V(M=>{const G=M+1;return G>I?l?0:M:G})},a);return()=>clearInterval(P)},[i,a,T,p,A,I,l]);const S=(P,M)=>{!f||I===0||(X(!0),q.current=m==="horizontal"?P:M,K.current=q.current)},F=(P,M)=>{A&&(K.current=m==="horizontal"?P:M,se(K.current-q.current))},L=()=>{if(!A)return;Math.abs(K.current-q.current)>50&&(K.current<q.current?h():J()),X(!1),se(0)},D=()=>{const P=m==="horizontal"?"X":"Y";let M=0;if(A&&ee.current&&I>0){const Q=m==="horizontal"?ee.current.offsetWidth:ee.current.offsetHeight;M=ie/Q*100*(E/y)}const W=Math.min(C,I)*(100/y)-M,j=C>=I,_=C<=0?0:j?u/(c/2):u/c;return`translate${P}(calc(-${W}% - ${_}px))`},H=()=>E>=y?1:Math.floor(I)+1,z=()=>I===0?0:Math.round(C/I*(H()-1));return s.jsxs("div",{className:`relative flex flex-col items-center select-none ${R}`,style:{width:n,height:t},onMouseEnter:()=>p&&B(!0),onMouseLeave:()=>p&&B(!1),children:[s.jsxs("div",{ref:ee,className:`w-full overflow-hidden relative ${f&&I>0?A?"cursor-grabbing":"cursor-grab":"cursor-default"}`,style:{height:g?`calc(${t} - ${v+20}px)`:t},onMouseDown:P=>{P.preventDefault(),S(P.clientX,P.clientY)},onMouseMove:P=>F(P.clientX,P.clientY),onMouseUp:L,onMouseLeave:L,onTouchStart:P=>S(P.touches[0].clientX,P.touches[0].clientY),onTouchMove:P=>F(P.touches[0].clientX,P.touches[0].clientY),onTouchEnd:L,children:[s.jsx("div",{className:`flex ${m==="horizontal"?"flex-row":"flex-col"} transition-transform duration-300 ease-in-out`,style:{width:m==="horizontal"?`${y*100/E}%`:"100%",height:m==="vertical"?`${y*100/E}%`:"100%",transform:D(),gap:`${u}px`,transitionProperty:A?"none":"transform"},children:e.map((P,M)=>s.jsx("div",{className:"shrink-0 flex items-center justify-center",style:{width:m==="horizontal"?`calc(${100/y}% - ${u/c}px)`:"100%",height:m==="vertical"?`calc(${100/y}% - ${u*(y-1)/y}px)`:"100%"},onClick:()=>!A&&(d==null?void 0:d(M)),children:P},M))}),o&&I>0&&s.jsxs(s.Fragment,{children:[s.jsx("button",{"aria-label":"prev",onClick:J,className:`absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-lg font-bold text-color-gray-800 hover:bg-color-white transition-color cursor-pointer
158
158
  ${m==="horizontal"?"left-2 top-1/2 -translate-y-1/2":"left-1/2 top-2 -translate-x-1/2"}`,children:x||(m==="horizontal"?"‹":"↑")}),s.jsx("button",{"aria-label":"next",onClick:h,className:`absolute z-20 bg-color-white/80 border border-color-gray-300 rounded-full w-10 h-10 flex items-center justify-center text-lg font-bold text-color-gray-800 hover:bg-color-white transition-colo cursor-pointer
159
- ${m==="horizontal"?"right-2 top-1/2 -translate-y-1/2":"left-1/2 bottom-2 -translate-x-1/2"}`,children:b||(m==="horizontal"?"›":"↓")})]}),r&&H()>1&&s.jsx("div",{className:`flex gap-1 mt-3 justify-center absolute bg-color-white/90 py-1 px-[5px] rounded-full ${m==="horizontal"?"bottom-3 left-1/2 -translate-x-1/2":"top-1/2 right-3 -translate-y-1/2 rotate-90"} z-10`,children:Array.from({length:H()}).map((P,M)=>s.jsx("button",{onClick:()=>ue(Math.round(M/(H()-1)*I)),className:`size-[10px] rounded-full transition-color hover:bg-color-gray-600 cursor-pointer ${M===z()?"bg-color-gray-800":"bg-color-gray-400"}`},M))})]}),g&&s.jsx("div",{className:"flex gap-2 mt-3 justify-center flex-wrap",children:e.map((P,M)=>{const G=M===Math.round(C);return s.jsx("div",{onClick:()=>{const W=Math.max(0,Math.min(I,M-Math.floor(E/2)));ue(W)},className:`overflow-hidden rounded-md cursor-pointer transition-all hover:opacity-100 ${G?"border-2 border-color-gray-800 opacity-100 scale-105":"border-2 border-color-gray-300 opacity-70"}`,style:{width:v,height:v},children:P},M)})})]})},oi=({title:e,description:n,actionLabel:t,onAction:r,illustration:o,illustrationWidth:a=120,children:i,color:l="gray"})=>s.jsxs("section",{className:"flex flex-col items-center justify-center text-center p-6 max-w-md",role:"status","aria-live":"polite",children:[o&&s.jsx("div",{className:"flex items-center justify-center",style:{width:a},children:typeof o=="string"?s.jsx("img",{src:o,alt:"",className:"object-contain"}):o}),s.jsx("h2",{className:"text-lg mt-4 font-semibold text-color-gray-800",children:e}),n&&s.jsx("p",{className:"text-sm mt-2 text-color-gray-600",children:n}),t&&r&&s.jsx(Ye,{onClick:r,color:l,className:"mt-4",children:t}),i]}),ai=({initialState:e=!1,onToggle:n,disabled:t=!1,type:r="button",color:o="green",variant:a="ios"})=>{var g,p,f;const[i,l]=w.useState(e),[c,u]=w.useState(!1),d=async()=>{if(!(t||c))if(n){u(!0);try{await n(!i),l(!i)}catch(v){console.error("Toggle failed",v)}finally{u(!1)}}else l(!i)};return a==="android"?s.jsxs("button",{onClick:d,type:r,disabled:t,className:`relative w-10 h-3 flex items-center transition-color duration-300
160
- } ${t?"bg-color-gray-200 opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:[s.jsx("span",{className:`absolute rounded-full inset-0 opacity-50 ${i?`${(g=fe[o])==null?void 0:g.filled}`:"bg-color-gray-400"}`}),s.jsx("div",{className:`flex justify-center items-center absolute shadow-md top-0.5 left-0.5 size-5 rounded-full shadow transition-all duration-300 ${i?`translate-x-5 ${(p=fe[o])==null?void 0:p.filled}`:"translate-x-0 bg-color-white"}`,children:c?s.jsx("svg",{className:"animate-spin text-color-gray-500 size-3",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z"})}):null})]}):s.jsx("button",{onClick:d,type:r,disabled:t,className:`relative w-11 h-6 flex items-center rounded-full transition-color duration-300 ${i?(f=fe[o])==null?void 0:f.filled:"bg-color-gray-300"} ${t?"bg-color-gray-300 opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:s.jsx("div",{className:`absolute top-[4px] left-1 w-4 h-4 bg-color-white rounded-full flex items-center justify-center transition-all duration-300 ${i?"translate-x-[19px]":"-translate-x-0"}`,children:c?s.jsx("svg",{className:"animate-spin text-color-gray-500 size-3",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z"})}):null})})},ii={small:"px-2 py-1 text-sm",medium:"px-4 py-2 text-base",large:"px-6 py-3 text-lg"},li=({value:e,onChange:n,options:t,multiple:r=!1,size:o="medium",color:a="blue",orientation:i="horizontal",className:l="",buttonClass:c="",disabled:u=!1})=>{const d=p=>Array.isArray(e)?e.includes(p):e===p,g=p=>{if(!u)if(r){if(!Array.isArray(e))return;e.includes(p)?n(e.filter(f=>f!==p)):n([...e,p])}else n(p)};return s.jsx("div",{className:`inline-flex ${i==="vertical"?"flex-col":"flex-row"} rounded-md overflow-hidden border border-color-gray-200 bg-color-white ${l}`,role:"group","aria-disabled":u,children:t.map((p,f)=>{var v;return s.jsxs("button",{type:"button",disabled:u||p.disabled,className:`
161
- flex items-center justify-center gap-2 border-0 ${i==="vertical"?"not-last:border-b-1":"not-last:border-r-1"} border-color-gray-200
162
- ${ii[o]}
163
- ${d(p.value)?((v=fe[a])==null?void 0:v.filled)||a:"bg-color-transparent text-color-gray-700"}
159
+ ${m==="horizontal"?"right-2 top-1/2 -translate-y-1/2":"left-1/2 bottom-2 -translate-x-1/2"}`,children:b||(m==="horizontal"?"›":"↓")})]}),r&&H()>1&&s.jsx("div",{className:`flex gap-1 mt-3 justify-center absolute bg-color-white/90 py-1 px-[5px] rounded-full ${m==="horizontal"?"bottom-3 left-1/2 -translate-x-1/2":"top-1/2 right-3 -translate-y-1/2 rotate-90"} z-10`,children:Array.from({length:H()}).map((P,M)=>s.jsx("button",{onClick:()=>ue(Math.round(M/(H()-1)*I)),className:`size-[10px] rounded-full transition-color hover:bg-color-gray-600 cursor-pointer ${M===z()?"bg-color-gray-800":"bg-color-gray-400"}`},M))})]}),g&&s.jsx("div",{className:"flex gap-2 mt-3 justify-center flex-wrap",children:e.map((P,M)=>{const G=M===Math.round(C);return s.jsx("div",{onClick:()=>{const W=Math.max(0,Math.min(I,M-Math.floor(E/2)));ue(W)},className:`overflow-hidden rounded-md cursor-pointer transition-all hover:opacity-100 ${G?"border-2 border-color-gray-800 opacity-100 scale-105":"border-2 border-color-gray-300 opacity-70"}`,style:{width:v,height:v},children:P},M)})})]})},oa=({title:e,description:n,actionLabel:t,onAction:r,illustration:o,illustrationWidth:i=120,children:a,color:l="gray"})=>s.jsxs("section",{className:"flex flex-col items-center justify-center text-center p-6 max-w-md",role:"status","aria-live":"polite",children:[o&&s.jsx("div",{className:"flex items-center justify-center",style:{width:i},children:typeof o=="string"?s.jsx("img",{src:o,alt:"",className:"object-contain"}):o}),s.jsx("h2",{className:"text-lg mt-4 font-semibold text-color-gray-800",children:e}),n&&s.jsx("p",{className:"text-sm mt-2 text-color-gray-600",children:n}),t&&r&&s.jsx(Ye,{onClick:r,color:l,className:"mt-4",children:t}),a]}),ia=({initialState:e=!1,onToggle:n,disabled:t=!1,type:r="button",color:o="green",variant:i="ios"})=>{var g,p,f;const[a,l]=w.useState(e),[c,u]=w.useState(!1),d=async()=>{if(!(t||c))if(n){u(!0);try{await n(!a),l(!a)}catch(v){console.error("Toggle failed",v)}finally{u(!1)}}else l(!a)};return i==="android"?s.jsxs("button",{onClick:d,type:r,disabled:t,className:`relative w-10 h-3 flex items-center transition-color duration-300
160
+ } ${t?"bg-color-gray-200 opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:[s.jsx("span",{className:`absolute rounded-full inset-0 opacity-50 ${a?`${(g=fe[o])==null?void 0:g.filled}`:"bg-color-gray-400"}`}),s.jsx("div",{className:`flex justify-center items-center absolute shadow-md top-0.5 left-0.5 size-5 rounded-full shadow transition-all duration-300 ${a?`translate-x-5 ${(p=fe[o])==null?void 0:p.filled}`:"translate-x-0 bg-color-white"}`,children:c?s.jsx("svg",{className:"animate-spin text-color-gray-500 size-3",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z"})}):null})]}):s.jsx("button",{onClick:d,type:r,disabled:t,className:`relative w-11 h-6 flex items-center rounded-full transition-color duration-300 ${a?(f=fe[o])==null?void 0:f.filled:"bg-color-gray-300"} ${t?"bg-color-gray-300 opacity-50 cursor-not-allowed":"cursor-pointer"}`,children:s.jsx("div",{className:`absolute top-[4px] left-1 w-4 h-4 bg-color-white rounded-full flex items-center justify-center transition-all duration-300 ${a?"translate-x-[19px]":"-translate-x-0"}`,children:c?s.jsx("svg",{className:"animate-spin text-color-gray-500 size-3",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9995 2C12.5518 2 12.9995 2.44772 12.9995 3V6C12.9995 6.55228 12.5518 7 11.9995 7C11.4472 7 10.9995 6.55228 10.9995 6V3C10.9995 2.44772 11.4472 2 11.9995 2ZM11.9995 17C12.5518 17 12.9995 17.4477 12.9995 18V21C12.9995 21.5523 12.5518 22 11.9995 22C11.4472 22 10.9995 21.5523 10.9995 21V18C10.9995 17.4477 11.4472 17 11.9995 17ZM20.6597 7C20.9359 7.47829 20.772 8.08988 20.2937 8.36602L17.6956 9.86602C17.2173 10.1422 16.6057 9.97829 16.3296 9.5C16.0535 9.02171 16.2173 8.41012 16.6956 8.13398L19.2937 6.63397C19.772 6.35783 20.3836 6.52171 20.6597 7ZM7.66935 14.5C7.94549 14.9783 7.78161 15.5899 7.30332 15.866L4.70525 17.366C4.22695 17.6422 3.61536 17.4783 3.33922 17C3.06308 16.5217 3.22695 15.9101 3.70525 15.634L6.30332 14.134C6.78161 13.8578 7.3932 14.0217 7.66935 14.5ZM20.6597 17C20.3836 17.4783 19.772 17.6422 19.2937 17.366L16.6956 15.866C16.2173 15.5899 16.0535 14.9783 16.3296 14.5C16.6057 14.0217 17.2173 13.8578 17.6956 14.134L20.2937 15.634C20.772 15.9101 20.9359 16.5217 20.6597 17ZM7.66935 9.5C7.3932 9.97829 6.78161 10.1422 6.30332 9.86602L3.70525 8.36602C3.22695 8.08988 3.06308 7.47829 3.33922 7C3.61536 6.52171 4.22695 6.35783 4.70525 6.63397L7.30332 8.13398C7.78161 8.41012 7.94549 9.02171 7.66935 9.5Z"})}):null})})},aa={small:"px-2 py-1 text-sm",medium:"px-4 py-2 text-base",large:"px-6 py-3 text-lg"},la=({value:e,onChange:n,options:t,multiple:r=!1,size:o="medium",color:i="blue",orientation:a="horizontal",className:l="",buttonClass:c="",disabled:u=!1})=>{const d=p=>Array.isArray(e)?e.includes(p):e===p,g=p=>{if(!u)if(r){if(!Array.isArray(e))return;e.includes(p)?n(e.filter(f=>f!==p)):n([...e,p])}else n(p)};return s.jsx("div",{className:`inline-flex ${a==="vertical"?"flex-col":"flex-row"} rounded-md overflow-hidden border border-color-gray-200 bg-color-white ${l}`,role:"group","aria-disabled":u,children:t.map((p,f)=>{var v;return s.jsxs("button",{type:"button",disabled:u||p.disabled,className:`
161
+ flex items-center justify-center gap-2 border-0 ${a==="vertical"?"not-last:border-b-1":"not-last:border-r-1"} border-color-gray-200
162
+ ${aa[o]}
163
+ ${d(p.value)?((v=fe[i])==null?void 0:v.filled)||i:"bg-color-transparent text-color-gray-700"}
164
164
  ${u||p.disabled?"opacity-50 cursor-not-allowed":"cursor-pointer"}
165
165
  ${c}
166
- `,"aria-pressed":d(p.value),onClick:()=>!(u||p.disabled)&&g(p.value),children:[p.icon,p.label]},p.value)})})},wr={small:"p-2",medium:"p-4",large:"p-6",none:"p-0"},yr={default:"shadow-xs",small:"shadow-sm",medium:"shadow-md",large:"shadow-lg"},Cr={small:"rounded-md",medium:"rounded-xl",large:"rounded-2xl"},Sr=({title:e,subtitle:n,space:t="medium",shadow:r="small",roundness:o="medium",image:a,actionMenu:i,divider:l=!0,children:c,className:u="",hoverable:d=!1,bordered:g=!1,onClick:p,loaderJsx:f=!1})=>{const v=["relative","bg-white","overflow-hidden",wr[t]||wr.medium,yr[r]||yr.small,Cr[o]||Cr.medium,d?"hover:shadow-xl transition-shadow duration-300 cursor-pointer":"",g?"border border-color-gray-200":"",u].join(" ").trim();return s.jsxs("div",{className:v,onClick:p,children:[a&&s.jsx("img",{src:a,alt:"Card",className:"w-full h-auto mb-4 rounded"}),(e||n)&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between items-start mb-2",children:[s.jsxs("div",{children:[e&&s.jsx("h2",{className:"text-lg font-semibold",children:e}),n&&s.jsx("p",{className:"text-color-gray-500 text-sm",children:n})]}),i&&s.jsx("div",{className:"ml-2",children:i})]}),l&&s.jsx("hr",{className:"h-px my-5 bg-color-gray-200 border-0"})]}),s.jsx("div",{children:c}),f&&s.jsx("div",{className:"absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50",children:f})]})},si=({orientation:e="horizontal",variant:n="fullWidth",children:t,className:r=""})=>{const o=e==="horizontal";if(t){const i=["flex items-center gap-2 text-sm text-color-gray-500 w-full",o?"flex-row":"flex-col"].filter(Boolean).join(" "),l=o?"flex-1 border-t border-color-gray-300":"h-4 border-l border-color-gray-300";return s.jsx("div",{role:"separator",className:`flex ${o?"w-full items-center":"h-full flex-col justify-center"}
166
+ `,"aria-pressed":d(p.value),onClick:()=>!(u||p.disabled)&&g(p.value),children:[p.icon,p.label]},p.value)})})},br={small:"p-2",medium:"p-4",large:"p-6",none:"p-0"},wr={default:"shadow-xs",small:"shadow-sm",medium:"shadow-md",large:"shadow-lg"},yr={small:"rounded-md",medium:"rounded-xl",large:"rounded-2xl"},Cr=({title:e,subtitle:n,space:t="medium",shadow:r="small",roundness:o="medium",image:i,actionMenu:a,divider:l=!0,children:c,className:u="",hoverable:d=!1,bordered:g=!1,onClick:p,loaderJsx:f=!1})=>{const v=["relative","bg-white","overflow-hidden",br[t]||br.medium,wr[r]||wr.small,yr[o]||yr.medium,d?"hover:shadow-xl transition-shadow duration-300 cursor-pointer":"",g?"border border-color-gray-200":"",u].join(" ").trim();return s.jsxs("div",{className:v,onClick:p,children:[i&&s.jsx("img",{src:i,alt:"Card",className:"w-full h-auto mb-4 rounded"}),(e||n)&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex justify-between items-start mb-2",children:[s.jsxs("div",{children:[e&&s.jsx("h2",{className:"text-lg font-semibold",children:e}),n&&s.jsx("p",{className:"text-color-gray-500 text-sm",children:n})]}),a&&s.jsx("div",{className:"ml-2",children:a})]}),l&&s.jsx("hr",{className:"h-px my-5 bg-color-gray-200 border-0"})]}),s.jsx("div",{children:c}),f&&s.jsx("div",{className:"absolute w-full h-full top-0 left-0 flex items-center justify-center bg-color-white bg-opacity-50",children:f})]})},sa=({orientation:e="horizontal",variant:n="fullWidth",children:t,className:r=""})=>{const o=e==="horizontal";if(t){const a=["flex items-center gap-2 text-sm text-color-gray-500 w-full",o?"flex-row":"flex-col"].filter(Boolean).join(" "),l=o?"flex-1 border-t border-color-gray-300":"h-4 border-l border-color-gray-300";return s.jsx("div",{role:"separator",className:`flex ${o?"w-full items-center":"h-full flex-col justify-center"}
167
167
  ${r}
168
- ${n==="inset"?o?"pl-4":"pt-4":""}`,children:s.jsxs("div",{className:i,children:[s.jsx("div",{className:l}),s.jsx("span",{children:t}),s.jsx("div",{className:l})]})})}const a=o?"h-px w-full bg-color-gray-300":"w-px h-full bg-color-gray-300";return s.jsx("div",{role:"separator",className:`flex ${o?"w-full items-center":"h-full flex-col justify-center"}
168
+ ${n==="inset"?o?"pl-4":"pt-4":""}`,children:s.jsxs("div",{className:a,children:[s.jsx("div",{className:l}),s.jsx("span",{children:t}),s.jsx("div",{className:l})]})})}const i=o?"h-px w-full bg-color-gray-300":"w-px h-full bg-color-gray-300";return s.jsx("div",{role:"separator",className:`flex ${o?"w-full items-center":"h-full flex-col justify-center"}
169
169
  ${r}
170
- ${n==="inset"?o?"pl-4":"pt-4":""} ${a}`})},ci=({name:e,options:n,selectedValue:t,onChange:r,direction:o="column",disabled:a=!1,color:i="blue",className:l="",radioClass:c})=>s.jsx("div",{className:`flex ${o==="row"?"flex-row gap-6":"flex-col gap-3"} ${l}`,children:n.map(({label:u,value:d,disabled:g})=>{var f,v;const p=a||g;return s.jsxs("label",{className:`relative flex items-center cursor-pointer select-none transition ${p?"opacity-50 cursor-not-allowed":"hover:opacity-90"}`,children:[s.jsx("input",{type:"radio",name:e,value:d,disabled:p,checked:t===d,onChange:()=>!p&&(r==null?void 0:r(d)),className:"sr-only peer"}),s.jsx("div",{className:`w-5 h-5 rounded-full border-2 border-color-gray-400 peer-checked:border-[7px] transition-all duration-150 ${(f=fe[i])==null?void 0:f.peer} ${c}`}),s.jsx("span",{className:`ml-2 text-sm text-color-gray-800 ${(v=fe[i])==null?void 0:v.peer}`,children:u})]},d)})}),ui=({label:e,value:n,onChange:t,options:r,className:o="",labelClass:a="",disabled:i=!1,size:l="medium",variant:c="outlined",rounded:u="medium",shadow:d=!1})=>{const g={small:"p-2",medium:"p-3",large:"p-4"},p={small:"rounded-md",medium:"rounded-lg",full:"rounded-full"},f={filled:"bg-color-gray-100 border-color-gray-200",outlined:"border-color-gray-300 bg-color-transparent"};return s.jsxs("div",{className:`relative w-full ${o}`,children:[e&&s.jsx("label",{className:`text-sm text-color-gray-500 pointer-events-none block mb-1 ${a}`,children:e}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{disabled:i,value:n,onChange:v=>t(v.target.value),className:`appearance-none focus:ring-1 text-color-gray-800 w-full border outline-none transition-all ${p[u]} ${g[l]} ${f[c]} ${i?"!bg-color-gray-50 opacity-60 cursor-not-allowed":""} ${d?"shadow-md shadow-color-zinc-100":""}`,children:r.map(v=>s.jsx("option",{value:v.value,className:"text-color-gray-900",children:v.label},v.value))}),s.jsx("span",{className:`absolute right-3 text-sm top-1/2 -translate-y-1/2 ${i?"opacity-60":""}`,children:s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})})})]})]})},di=({content:e,children:n,position:t="top"})=>{const[r,o]=w.useState(!1),[a,i]=w.useState({top:0,left:0}),l=w.useRef(null),c=w.useRef(null);return w.useEffect(()=>{if(r&&l.current&&c.current){const u=l.current.getBoundingClientRect(),d=c.current.getBoundingClientRect();let g=0,p=0;switch(t){case"top":g=u.top-d.height-8,p=u.left+u.width/2-d.width/2;break;case"bottom":g=u.bottom+8,p=u.left+u.width/2-d.width/2;break;case"left":g=u.top+u.height/2-d.height/2,p=u.left-d.width-8;break;case"right":g=u.top+u.height/2-d.height/2,p=u.right+8;break}i({top:g,left:p})}},[r,t]),s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:l,className:"inline-block",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n}),r&&Te.createPortal(s.jsx("div",{ref:c,style:{top:a.top,left:a.left},className:"fixed z-50 px-2 py-1 text-sm text-color-white bg-color-gray-800 rounded shadow-md whitespace-nowrap pointer-events-none",children:e}),document.body)]})};function pi(...e){return e.filter(Boolean).join(" ")}const fi={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","4xl":"max-w-4xl","6xl":"max-w-6xl"},jr=w.forwardRef(({open:e,onClose:n,className:t,title:r,children:o,actions:a,showCloseIcon:i=!0,fullscreen:l=!1,fullWidth:c=!1,maxWidth:u},d)=>{const[g,p]=w.useState(e||!1),[f,v]=w.useState(!1),[m,b]=w.useState(!1);w.useEffect(()=>{e!==void 0&&p(e)},[e]),w.useImperativeHandle(d,()=>({open:()=>p(!0),close:()=>{b(!1),setTimeout(()=>p(!1),300)}})),w.useEffect(()=>{let R;return g?(v(!0),R=setTimeout(()=>b(!0),10)):b(!1),()=>clearTimeout(R)},[g]);const x=()=>{g||v(!1)};return w.useEffect(()=>{const R=y=>{y.key==="Escape"&&(n==null||n())};return g&&document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[g,n]),w.useEffect(()=>(g?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[g]),f?Te.createPortal(s.jsxs("div",{className:pi("fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",m?"opacity-100":"opacity-0 pointer-events-none"),children:[s.jsx("div",{className:"fixed inset-0 bg-color-black/50",onClick:()=>{n==null||n(),p(!1)}}),s.jsxs("div",{className:`relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m?"opacity-100 scale-100":"opacity-0 scale-95"} ${l?"w-full h-[calc(100%_-_40px)] m-5":`${c?"w-full":"w-auto"} ${u?fi[u]:""} mx-5`} ${t}`,onTransitionEnd:x,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r&&s.jsx("h2",{className:"text-xl font-semibold",children:r}),i&&s.jsx(we,{color:"gray",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})}),size:"small",roundedFull:!0,onClick:()=>{n==null||n(),p(!1)},variant:"transparent"})]}),s.jsx("div",{className:"grow lg:max-h-[calc(100vh_-_200px)] max-h-[calc(100vh_-_130px)] overflow-y-auto",children:o}),a&&s.jsx("div",{className:"mt-8",children:a})]})]}),document.body):null});function mi({items:e,trigger:n,className:t,dropdownItemClass:r}){const[o,a]=w.useState(!1),[i,l]=w.useState({top:0,left:0}),[c,u]=w.useState(!1),d=w.useRef(null),g=w.useRef(null),p=v=>{v.stopPropagation(),a(m=>!m),u(!1)};w.useLayoutEffect(()=>{if(o&&d.current&&g.current){const v=d.current.getBoundingClientRect(),m=g.current.getBoundingClientRect(),b=window.innerWidth,x=window.innerHeight;let R=v.left+window.scrollX,y=v.bottom+window.scrollY;v.right+m.width>b&&(R=v.right+window.scrollX-m.width),R+m.width>b&&(R=b-m.width-12),y+m.height>x&&(y=v.top+window.scrollY-m.height),l({top:y,left:R}),setTimeout(()=>{u(!0)},150)}},[o]),w.useEffect(()=>{const v=m=>{var b;g.current&&!g.current.contains(m.target)&&!((b=d.current)!=null&&b.contains(m.target))&&a(!1)};return o&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[o]);const f=s.jsx("div",{ref:g,className:`absolute mt-2 z-50 rounded-xl bg-color-white shadow-xl p-2 min-w-[160px] transition-all duration-200 transform ${c?"opacity-100 scale-100":"opacity-0 scale-95"} ${t}`,style:{top:i.top,left:i.left},children:e.map((v,m)=>s.jsxs("button",{disabled:v.disabled,onClick:()=>{var b;(b=v.onClick)==null||b.call(v),a(!1)},className:`flex items-center gap-3 w-full text-left px-3 py-2 bg-color-transparent hover:bg-color-gray-100 transition-all cursor-pointer rounded-md text-md text-color-gray-700 ${v.disabled?"opacity-50 hover:bg-color-transparent !cursor-not-allowed":""} ${r} ${v.itemClass}`,children:[v.icon&&s.jsx("span",{children:v.icon}),s.jsx("span",{children:v.label})]},m))});return s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:d,onClick:p,className:"cursor-pointer",children:n}),o&&Te.createPortal(f,document.body)]})}function gi(...e){return e.filter(Boolean).join(" ")}const kr=({open:e,onClose:n,className:t,title:r,children:o,childrenClass:a,actions:i,showCloseIcon:l=!0,anchor:c="left"})=>{const[u,d]=w.useState(!1),[g,p]=w.useState(!1);w.useEffect(()=>{let b;return e?(d(!0),b=setTimeout(()=>{p(!0)},10)):p(!1),()=>clearTimeout(b)},[e]);const f=()=>{e||d(!1)};if(w.useEffect(()=>{const b=x=>{x.key==="Escape"&&(n==null||n())};return e&&document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[e,n]),w.useEffect(()=>(e?(document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"):(document.body.style.overflow="",document.documentElement.style.overflow=""),()=>{document.body.style.overflow="",document.documentElement.style.overflow=""}),[e]),!u)return null;const v={left:"left-0 top-0 h-full min-w-96 transition-all duration-300",right:"right-0 top-0 h-full min-w-96 transition-all duration-300",top:"top-0 left-0 w-full min-h-40 transition-all duration-300",bottom:"bottom-0 left-0 w-full min-h-40 transition-all duration-300"},m={left:g?"translate-x-0":"-translate-x-full",right:g?"translate-x-0":"translate-x-full",top:g?"translate-y-0":"-translate-y-full",bottom:g?"translate-y-0":"translate-y-full"};return Te.createPortal(s.jsxs("div",{className:gi("fixed inset-0 z-50 transition-opacity duration-300",g?"opacity-100":"opacity-0 pointer-events-none"),children:[s.jsx("div",{className:"fixed inset-0 bg-color-black/50",onClick:n}),s.jsxs("div",{className:`
170
+ ${n==="inset"?o?"pl-4":"pt-4":""} ${i}`})},ca=({name:e,options:n,selectedValue:t,onChange:r,direction:o="column",disabled:i=!1,color:a="blue",className:l="",radioClass:c})=>s.jsx("div",{className:`flex ${o==="row"?"flex-row gap-6":"flex-col gap-3"} ${l}`,children:n.map(({label:u,value:d,disabled:g})=>{var f,v;const p=i||g;return s.jsxs("label",{className:`relative flex items-center cursor-pointer select-none transition ${p?"opacity-50 cursor-not-allowed":"hover:opacity-90"}`,children:[s.jsx("input",{type:"radio",name:e,value:d,disabled:p,checked:t===d,onChange:()=>!p&&(r==null?void 0:r(d)),className:"sr-only peer"}),s.jsx("div",{className:`w-5 h-5 rounded-full border-2 border-color-gray-400 peer-checked:border-[7px] transition-all duration-150 ${(f=fe[a])==null?void 0:f.peer} ${c}`}),s.jsx("span",{className:`ml-2 text-sm text-color-gray-800 ${(v=fe[a])==null?void 0:v.peer}`,children:u})]},d)})}),ua=({label:e,value:n,onChange:t,options:r,className:o="",labelClass:i="",disabled:a=!1,size:l="medium",variant:c="outlined",rounded:u="medium",shadow:d=!1})=>{const g={small:"p-2",medium:"p-3",large:"p-4"},p={small:"rounded-md",medium:"rounded-lg",full:"rounded-full"},f={filled:"bg-color-gray-100 border-color-gray-200",outlined:"border-color-gray-300 bg-color-transparent"};return s.jsxs("div",{className:`relative w-full ${o}`,children:[e&&s.jsx("label",{className:`text-sm text-color-gray-500 pointer-events-none block mb-1 ${i}`,children:e}),s.jsxs("div",{className:"relative",children:[s.jsx("select",{disabled:a,value:n,onChange:v=>t(v.target.value),className:`appearance-none focus:ring-1 text-color-gray-800 w-full border outline-none transition-all ${p[u]} ${g[l]} ${f[c]} ${a?"!bg-color-gray-50 opacity-60 cursor-not-allowed":""} ${d?"shadow-md shadow-color-zinc-100":""}`,children:r.map(v=>s.jsx("option",{value:v.value,className:"text-color-gray-900",children:v.label},v.value))}),s.jsx("span",{className:`absolute right-3 text-sm top-1/2 -translate-y-1/2 ${a?"opacity-60":""}`,children:s.jsx("svg",{className:"size-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"})})})]})]})},da=({content:e,children:n,position:t="top"})=>{const[r,o]=w.useState(!1),[i,a]=w.useState({top:0,left:0}),l=w.useRef(null),c=w.useRef(null);return w.useEffect(()=>{if(r&&l.current&&c.current){const u=l.current.getBoundingClientRect(),d=c.current.getBoundingClientRect();let g=0,p=0;switch(t){case"top":g=u.top-d.height-8,p=u.left+u.width/2-d.width/2;break;case"bottom":g=u.bottom+8,p=u.left+u.width/2-d.width/2;break;case"left":g=u.top+u.height/2-d.height/2,p=u.left-d.width-8;break;case"right":g=u.top+u.height/2-d.height/2,p=u.right+8;break}a({top:g,left:p})}},[r,t]),s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:l,className:"inline-block",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),children:n}),r&&Te.createPortal(s.jsx("div",{ref:c,style:{top:i.top,left:i.left},className:"fixed z-50 px-2 py-1 text-sm text-color-white bg-color-gray-800 rounded shadow-md whitespace-nowrap pointer-events-none",children:e}),document.body)]})};function pa(...e){return e.filter(Boolean).join(" ")}const fa={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","4xl":"max-w-4xl","6xl":"max-w-6xl"},Sr=w.forwardRef(({open:e,onClose:n,className:t,title:r,children:o,actions:i,showCloseIcon:a=!0,fullscreen:l=!1,fullWidth:c=!1,maxWidth:u},d)=>{const[g,p]=w.useState(e||!1),[f,v]=w.useState(!1),[m,b]=w.useState(!1);w.useEffect(()=>{e!==void 0&&p(e)},[e]),w.useImperativeHandle(d,()=>({open:()=>p(!0),close:()=>{b(!1),setTimeout(()=>p(!1),300)}})),w.useEffect(()=>{let R;return g?(v(!0),R=setTimeout(()=>b(!0),10)):b(!1),()=>clearTimeout(R)},[g]);const x=()=>{g||v(!1)};return w.useEffect(()=>{const R=y=>{y.key==="Escape"&&(n==null||n())};return g&&document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[g,n]),w.useEffect(()=>(g?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[g]),f?Te.createPortal(s.jsxs("div",{className:pa("fixed inset-0 z-50 flex items-center justify-center transition-opacity duration-300",m?"opacity-100":"opacity-0 pointer-events-none"),children:[s.jsx("div",{className:"fixed inset-0 bg-color-black/50",onClick:()=>{n==null||n(),p(!1)}}),s.jsxs("div",{className:`relative flex flex-col z-50 bg-color-white rounded-xl shadow-lg transition-all duration-300 transform p-6 ${m?"opacity-100 scale-100":"opacity-0 scale-95"} ${l?"w-full h-[calc(100%_-_40px)] m-5":`${c?"w-full":"w-auto"} ${u?fa[u]:""} mx-5`} ${t}`,onTransitionEnd:x,children:[s.jsxs("div",{className:"flex items-center justify-between mb-4",children:[r&&s.jsx("h2",{className:"text-xl font-semibold",children:r}),a&&s.jsx(we,{color:"gray",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})}),size:"small",roundedFull:!0,onClick:()=>{n==null||n(),p(!1)},variant:"transparent"})]}),s.jsx("div",{className:"grow lg:max-h-[calc(100vh_-_200px)] max-h-[calc(100vh_-_130px)] overflow-y-auto",children:o}),i&&s.jsx("div",{className:"mt-8",children:i})]})]}),document.body):null});function ma({items:e,trigger:n,className:t,dropdownItemClass:r}){const[o,i]=w.useState(!1),[a,l]=w.useState({top:0,left:0}),[c,u]=w.useState(!1),d=w.useRef(null),g=w.useRef(null),p=v=>{v.stopPropagation(),i(m=>!m),u(!1)};w.useLayoutEffect(()=>{if(o&&d.current&&g.current){const v=d.current.getBoundingClientRect(),m=g.current.getBoundingClientRect(),b=window.innerWidth,x=window.innerHeight;let R=v.left+window.scrollX,y=v.bottom+window.scrollY;v.right+m.width>b&&(R=v.right+window.scrollX-m.width),R+m.width>b&&(R=b-m.width-12),y+m.height>x&&(y=v.top+window.scrollY-m.height),l({top:y,left:R}),setTimeout(()=>{u(!0)},150)}},[o]),w.useEffect(()=>{const v=m=>{var b;g.current&&!g.current.contains(m.target)&&!((b=d.current)!=null&&b.contains(m.target))&&i(!1)};return o&&document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[o]);const f=s.jsx("div",{ref:g,className:`absolute mt-2 z-50 rounded-xl bg-color-white shadow-xl p-2 min-w-[160px] transition-all duration-200 transform ${c?"opacity-100 scale-100":"opacity-0 scale-95"} ${t}`,style:{top:a.top,left:a.left},children:e.map((v,m)=>s.jsxs("button",{disabled:v.disabled,onClick:()=>{var b;(b=v.onClick)==null||b.call(v),i(!1)},className:`flex items-center gap-3 w-full text-left px-3 py-2 bg-color-transparent hover:bg-color-gray-100 transition-all cursor-pointer rounded-md text-md text-color-gray-700 ${v.disabled?"opacity-50 hover:bg-color-transparent !cursor-not-allowed":""} ${r} ${v.itemClass}`,children:[v.icon&&s.jsx("span",{children:v.icon}),s.jsx("span",{children:v.label})]},m))});return s.jsxs(s.Fragment,{children:[s.jsx("div",{ref:d,onClick:p,className:"cursor-pointer",children:n}),o&&Te.createPortal(f,document.body)]})}function ga(...e){return e.filter(Boolean).join(" ")}const jr=({open:e,onClose:n,className:t,title:r,children:o,childrenClass:i,actions:a,showCloseIcon:l=!0,anchor:c="left"})=>{const[u,d]=w.useState(!1),[g,p]=w.useState(!1);w.useEffect(()=>{let b;return e?(d(!0),b=setTimeout(()=>{p(!0)},10)):p(!1),()=>clearTimeout(b)},[e]);const f=()=>{e||d(!1)};if(w.useEffect(()=>{const b=x=>{x.key==="Escape"&&(n==null||n())};return e&&document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[e,n]),w.useEffect(()=>(e?(document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden"):(document.body.style.overflow="",document.documentElement.style.overflow=""),()=>{document.body.style.overflow="",document.documentElement.style.overflow=""}),[e]),!u)return null;const v={left:"left-0 top-0 h-full min-w-96 transition-all duration-300",right:"right-0 top-0 h-full min-w-96 transition-all duration-300",top:"top-0 left-0 w-full min-h-40 transition-all duration-300",bottom:"bottom-0 left-0 w-full min-h-40 transition-all duration-300"},m={left:g?"translate-x-0":"-translate-x-full",right:g?"translate-x-0":"translate-x-full",top:g?"translate-y-0":"-translate-y-full",bottom:g?"translate-y-0":"translate-y-full"};return Te.createPortal(s.jsxs("div",{className:ga("fixed inset-0 z-50 transition-opacity duration-300",g?"opacity-100":"opacity-0 pointer-events-none"),children:[s.jsx("div",{className:"fixed inset-0 bg-color-black/50",onClick:n}),s.jsxs("div",{className:`
171
171
  fixed bg-color-white shadow-lg z-50 p-6 flex flex-col
172
172
  ${v[c]}
173
173
  ${m[c]}
174
174
  ${t}
175
- `,onTransitionEnd:f,children:[l&&s.jsx(we,{color:"gray",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})}),size:"small",roundedFull:!0,className:"!absolute right-3 top-3",onClick:n,variant:"transparent"}),r&&s.jsx("h2",{className:"text-xl font-semibold mb-4",children:r}),s.jsx("div",{className:`grow overflow-y-auto ${a}`,children:o}),i&&s.jsx("div",{className:"mt-4",children:i})]})]}),document.body)},vi=({title:e,content:n,expandIcon:t,collapseIcon:r,isOpen:o,defaultExpanded:a=!1,onToggle:i,className:l="",titleClass:c="",contentClass:u=""})=>{const[d,g]=w.useState(a),p=o!==void 0,f=p?o:d,v=()=>{const m=!f;p||g(m),i==null||i(m)};return w.useEffect(()=>{p&&g(o)},[o]),s.jsxs("div",{className:`overflow-hidden ${l}`,children:[s.jsxs("button",{onClick:v,className:`flex justify-between items-center w-full p-4 bg-color-gray-50 hover:bg-color-gray-200 transition ${c}`,children:[s.jsx("div",{className:"text-left text-sm font-medium",children:e}),s.jsx("div",{className:"transition-transform duration-300",children:f?t:r})]}),s.jsx("div",{className:`grid overflow-hidden transition-all duration-300 ease-in-out grid-rows-[0fr] ${f?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:s.jsx("div",{className:"overflow-hidden",children:s.jsx("div",{className:`p-4 text-sm text-color-gray-700 ${u}`,children:n})})})]})},hi={info:"bg-color-blue-50 border-color-blue-300 text-color-blue-800",success:"bg-color-green-50 border-color-green-300 text-color-green-800",danger:"bg-color-red-50 border-color-red-300 text-color-red-800",warning:"bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",dark:"bg-color-gray-100 border-color-gray-300 text-color-gray-800"},xi={info:s.jsx("svg",{className:"text-color-blue-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),success:s.jsx("svg",{className:"text-color-green-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z"})}),danger:s.jsx("svg",{className:"text-color-red-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z"})}),warning:s.jsx("svg",{className:"text-color-yellow-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),dark:s.jsx("svg",{className:"text-color-gray-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})})},bi={info:"bg-color-blue-500",success:"bg-color-green-500",danger:"bg-color-red-500",warning:"bg-color-yellow-500",dark:"bg-color-gray-700"},wi=({message:e,variant:n="info",onClose:t,autoClose:r=!1,className:o="",autoCloseDuration:a=5e3})=>{const[i,l]=w.useState(!0),c=w.useRef(null);return w.useEffect(()=>{let u;return r&&(requestAnimationFrame(()=>{c.current&&(c.current.style.transition=`width ${a}ms linear`,c.current.style.width="0%")}),u=setTimeout(()=>{l(!1),t==null||t()},a)),()=>clearTimeout(u)},[r,a,t]),i?s.jsxs("div",{className:`relative border-t-4 p-4 flex items-start justify-between ${hi[n]} ${o}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[xi[n],s.jsx("span",{dangerouslySetInnerHTML:{__html:e}})]}),s.jsx("button",{onClick:()=>{l(!1),t==null||t()},"aria-label":"Close alert",className:"ml-4 bg-color-transparent cursor-pointer hover:bg-color-white rounded-full p-1 transition-colors",children:s.jsx("svg",{className:`size-5 ${n==="dark"?"text-gray-700":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})})}),r&&s.jsx("div",{className:"absolute -top-1 left-0 h-1 w-full bg-color-transparent overflow-hidden",children:s.jsx("div",{ref:c,className:`${bi[n]} h-1`,style:{width:"100%"}})})]}):null},yi=({children:e,count:n,showDot:t=!1,max:r=99,color:o="red",position:a="top-right"})=>{const i=()=>{var u,d;if(t)return s.jsx("span",{className:`h-2 w-2 rounded-full ${(u=fe[o])==null?void 0:u.filled} block`});if(n===0||n===void 0)return null;const c=n>r?`${r}+`:n;return s.jsx("span",{className:`text-color-white text-xs px-[10px] py-1 rounded-full whitespace-nowrap ${(d=fe[o])==null?void 0:d.filled}`,children:c})},l=()=>{switch(a){case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}};return s.jsxs("div",{className:"relative inline-block",children:[e,s.jsx("span",{className:`absolute ${l()}`,children:i()})]})};/**
175
+ `,onTransitionEnd:f,children:[l&&s.jsx(we,{color:"gray",icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})}),size:"small",roundedFull:!0,className:"!absolute right-3 top-3",onClick:n,variant:"transparent"}),r&&s.jsx("h2",{className:"text-xl font-semibold mb-4",children:r}),s.jsx("div",{className:`grow overflow-y-auto ${i}`,children:o}),a&&s.jsx("div",{className:"mt-4",children:a})]})]}),document.body)},va=({title:e,content:n,expandIcon:t,collapseIcon:r,isOpen:o,defaultExpanded:i=!1,onToggle:a,className:l="",titleClass:c="",contentClass:u=""})=>{const[d,g]=w.useState(i),p=o!==void 0,f=p?o:d,v=()=>{const m=!f;p||g(m),a==null||a(m)};return w.useEffect(()=>{p&&g(o)},[o]),s.jsxs("div",{className:`overflow-hidden ${l}`,children:[s.jsxs("button",{onClick:v,className:`flex justify-between items-center w-full p-4 bg-color-gray-50 hover:bg-color-gray-200 transition ${c}`,children:[s.jsx("div",{className:"text-left text-sm font-medium",children:e}),s.jsx("div",{className:"transition-transform duration-300",children:f?t:r})]}),s.jsx("div",{className:`grid overflow-hidden transition-all duration-300 ease-in-out grid-rows-[0fr] ${f?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:s.jsx("div",{className:"overflow-hidden",children:s.jsx("div",{className:`p-4 text-sm text-color-gray-700 ${u}`,children:n})})})]})},ha={info:"bg-color-blue-50 border-color-blue-300 text-color-blue-800",success:"bg-color-green-50 border-color-green-300 text-color-green-800",danger:"bg-color-red-50 border-color-red-300 text-color-red-800",warning:"bg-color-yellow-50 border-color-yellow-300 text-color-yellow-800",dark:"bg-color-gray-100 border-color-gray-300 text-color-gray-800"},xa={info:s.jsx("svg",{className:"text-color-blue-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})}),success:s.jsx("svg",{className:"text-color-green-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z"})}),danger:s.jsx("svg",{className:"text-color-red-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 10.5858L14.8284 7.75736L16.2426 9.17157L13.4142 12L16.2426 14.8284L14.8284 16.2426L12 13.4142L9.17157 16.2426L7.75736 14.8284L10.5858 12L7.75736 9.17157L9.17157 7.75736L12 10.5858Z"})}),warning:s.jsx("svg",{className:"text-color-yellow-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})}),dark:s.jsx("svg",{className:"text-color-gray-800 shrink-0 size-7",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})})},ba={info:"bg-color-blue-500",success:"bg-color-green-500",danger:"bg-color-red-500",warning:"bg-color-yellow-500",dark:"bg-color-gray-700"},wa=({message:e,variant:n="info",onClose:t,autoClose:r=!1,className:o="",autoCloseDuration:i=5e3})=>{const[a,l]=w.useState(!0),c=w.useRef(null);return w.useEffect(()=>{let u;return r&&(requestAnimationFrame(()=>{c.current&&(c.current.style.transition=`width ${i}ms linear`,c.current.style.width="0%")}),u=setTimeout(()=>{l(!1),t==null||t()},i)),()=>clearTimeout(u)},[r,i,t]),a?s.jsxs("div",{className:`relative border-t-4 p-4 flex items-start justify-between ${ha[n]} ${o}`,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[xa[n],s.jsx("span",{dangerouslySetInnerHTML:{__html:e}})]}),s.jsx("button",{onClick:()=>{l(!1),t==null||t()},"aria-label":"Close alert",className:"ml-4 bg-color-transparent cursor-pointer hover:bg-color-white rounded-full p-1 transition-colors",children:s.jsx("svg",{className:`size-5 ${n==="dark"?"text-gray-700":""}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M11.9997 10.5865L16.9495 5.63672L18.3637 7.05093L13.4139 12.0007L18.3637 16.9504L16.9495 18.3646L11.9997 13.4149L7.04996 18.3646L5.63574 16.9504L10.5855 12.0007L5.63574 7.05093L7.04996 5.63672L11.9997 10.5865Z"})})}),r&&s.jsx("div",{className:"absolute -top-1 left-0 h-1 w-full bg-color-transparent overflow-hidden",children:s.jsx("div",{ref:c,className:`${ba[n]} h-1`,style:{width:"100%"}})})]}):null},ya=({children:e,count:n,showDot:t=!1,max:r=99,color:o="red",position:i="top-right"})=>{const a=()=>{var u,d;if(t)return s.jsx("span",{className:`h-2 w-2 rounded-full ${(u=fe[o])==null?void 0:u.filled} block`});if(n===0||n===void 0)return null;const c=n>r?`${r}+`:n;return s.jsx("span",{className:`text-color-white text-xs px-[10px] py-1 rounded-full whitespace-nowrap ${(d=fe[o])==null?void 0:d.filled}`,children:c})},l=()=>{switch(i){case"top-left":return"top-0 left-0 -translate-x-1/2 -translate-y-1/2";case"bottom-right":return"bottom-0 right-0 translate-x-1/2 translate-y-1/2";case"bottom-left":return"bottom-0 left-0 -translate-x-1/2 translate-y-1/2";case"top-right":default:return"top-0 right-0 translate-x-1/2 -translate-y-1/2"}};return s.jsxs("div",{className:"relative inline-block",children:[e,s.jsx("span",{className:`absolute ${l()}`,children:a()})]})};/**
176
176
  * react-router v7.7.1
177
177
  *
178
178
  * Copyright (c) Remix Software Inc.
@@ -181,17 +181,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
181
181
  * LICENSE.md file in the root directory of this source tree.
182
182
  *
183
183
  * @license MIT
184
- */function ge(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function je(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Zt({pathname:e="/",search:n="",hash:t=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function Kt(e){let n={};if(e){let t=e.indexOf("#");t>=0&&(n.hash=e.substring(t),e=e.substring(0,t));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function $r(e,n,t="/"){return Ci(e,n,t,!1)}function Ci(e,n,t,r){let o=typeof n=="string"?Kt(n):n,a=Pe(o.pathname||"/",t);if(a==null)return null;let i=Rr(e);Si(i);let l=null;for(let c=0;l==null&&c<i.length;++c){let u=Ai(a);l=Li(i[c],u,r)}return l}function Rr(e,n=[],t=[],r=""){let o=(a,i,l)=>{let c={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};c.relativePath.startsWith("/")&&(ge(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length));let u=ke([r,c.relativePath]),d=t.concat(c);a.children&&a.children.length>0&&(ge(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),Rr(a.children,n,d,u)),!(a.path==null&&!a.index)&&n.push({path:u,score:Pi(u,a.index),routesMeta:d})};return e.forEach((a,i)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))o(a,i);else for(let c of Er(a.path))o(a,i,c)}),n}function Er(e){let n=e.split("/");if(n.length===0)return[];let[t,...r]=n,o=t.endsWith("?"),a=t.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=Er(r.join("/")),l=[];return l.push(...i.map(c=>c===""?a:[a,c].join("/"))),o&&l.push(...i),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Si(e){e.sort((n,t)=>n.score!==t.score?t.score-n.score:Mi(n.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}var ji=/^:[\w-]+$/,ki=3,$i=2,Ri=1,Ei=10,_i=-2,_r=e=>e==="*";function Pi(e,n){let t=e.split("/"),r=t.length;return t.some(_r)&&(r+=_i),n&&(r+=$i),t.filter(o=>!_r(o)).reduce((o,a)=>o+(ji.test(a)?ki:a===""?Ri:Ei),r)}function Mi(e,n){return e.length===n.length&&e.slice(0,-1).every((r,o)=>r===n[o])?e[e.length-1]-n[n.length-1]:0}function Li(e,n,t=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=a==="/"?n:n.slice(a.length)||"/",g=lt({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!g&&u&&t&&!r[r.length-1].route.index&&(g=lt({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!g)return null;Object.assign(o,g.params),i.push({params:o,pathname:ke([a,g.pathname]),pathnameBase:zi(ke([a,g.pathnameBase])),route:p}),g.pathnameBase!=="/"&&(a=ke([a,g.pathnameBase]))}return i}function lt(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,r]=Fi(e.path,e.caseSensitive,e.end),o=n.match(t);if(!o)return null;let a=o[0],i=a.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:g},p)=>{if(d==="*"){let v=l[p]||"";i=a.slice(0,a.length-v.length).replace(/(.)\/+$/,"$1")}const f=l[p];return g&&!f?u[d]=void 0:u[d]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:i,pattern:e}}function Fi(e,n=!1,t=!0){je(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function Ai(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return je(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Pe(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let t=n.endsWith("/")?n.length-1:n.length,r=e.charAt(t);return r&&r!=="/"?null:e.slice(t)||"/"}function Ni(e,n="/"){let{pathname:t,search:r="",hash:o=""}=typeof e=="string"?Kt(e):e;return{pathname:t?t.startsWith("/")?t:Di(t,n):n,search:Oi(r),hash:Ii(o)}}function Di(e,n){let t=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?t.length>1&&t.pop():o!=="."&&t.push(o)}),t.length>1?t.join("/"):"/"}function Xt(e,n,t,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ti(e){return e.filter((n,t)=>t===0||n.route.path&&n.route.path.length>0)}function Pr(e){let n=Ti(e);return n.map((t,r)=>r===n.length-1?t.pathname:t.pathnameBase)}function Mr(e,n,t,r=!1){let o;typeof e=="string"?o=Kt(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Xt("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Xt("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Xt("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,l;if(i==null)l=t;else{let g=n.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),g-=1;o.pathname=p.join("/")}l=g>=0?n[g]:"/"}let c=Ni(o,l),u=i&&i!=="/"&&i.endsWith("/"),d=(a||i===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var ke=e=>e.join("/").replace(/\/\/+/g,"/"),zi=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Oi=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ii=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Vi(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Lr=["POST","PUT","PATCH","DELETE"];new Set(Lr);var Hi=["GET",...Lr];new Set(Hi);var Ne=$.createContext(null);Ne.displayName="DataRouter";var st=$.createContext(null);st.displayName="DataRouterState",$.createContext(!1);var Fr=$.createContext({isTransitioning:!1});Fr.displayName="ViewTransition";var Bi=$.createContext(new Map);Bi.displayName="Fetchers";var qi=$.createContext(null);qi.displayName="Await";var $e=$.createContext(null);$e.displayName="Navigation";var Jt=$.createContext(null);Jt.displayName="Location";var Re=$.createContext({outlet:null,matches:[],isDataRoute:!1});Re.displayName="Route";var Qt=$.createContext(null);Qt.displayName="RouteError";function Gi(e,{relative:n}={}){ge(ct(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:r}=$.useContext($e),{hash:o,pathname:a,search:i}=Be(e,{relative:n}),l=a;return t!=="/"&&(l=a==="/"?t:ke([t,a])),r.createHref({pathname:l,search:i,hash:o})}function ct(){return $.useContext(Jt)!=null}function Fe(){return ge(ct(),"useLocation() may be used only in the context of a <Router> component."),$.useContext(Jt).location}var Ar="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nr(e){$.useContext($e).static||$.useLayoutEffect(e)}function Wi(){let{isDataRoute:e}=$.useContext(Re);return e?al():Ui()}function Ui(){ge(ct(),"useNavigate() may be used only in the context of a <Router> component.");let e=$.useContext(Ne),{basename:n,navigator:t}=$.useContext($e),{matches:r}=$.useContext(Re),{pathname:o}=Fe(),a=JSON.stringify(Pr(r)),i=$.useRef(!1);return Nr(()=>{i.current=!0}),$.useCallback((c,u={})=>{if(je(i.current,Ar),!i.current)return;if(typeof c=="number"){t.go(c);return}let d=Mr(c,JSON.parse(a),o,u.relative==="path");e==null&&n!=="/"&&(d.pathname=d.pathname==="/"?n:ke([n,d.pathname])),(u.replace?t.replace:t.push)(d,u.state,u)},[n,t,a,o,e])}$.createContext(null);function Be(e,{relative:n}={}){let{matches:t}=$.useContext(Re),{pathname:r}=Fe(),o=JSON.stringify(Pr(t));return $.useMemo(()=>Mr(e,JSON.parse(o),r,n==="path"),[e,o,r,n])}function Yi(e,n,t,r){ge(ct(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=$.useContext($e),{matches:a}=$.useContext(Re),i=a[a.length-1],l=i?i.params:{},c=i?i.pathname:"/",u=i?i.pathnameBase:"/",d=i&&i.route;{let x=d&&d.path||"";Tr(c,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
184
+ */function ge(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function je(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Zt({pathname:e="/",search:n="",hash:t=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),t&&t!=="#"&&(e+=t.charAt(0)==="#"?t:"#"+t),e}function Kt(e){let n={};if(e){let t=e.indexOf("#");t>=0&&(n.hash=e.substring(t),e=e.substring(0,t));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function kr(e,n,t="/"){return Ca(e,n,t,!1)}function Ca(e,n,t,r){let o=typeof n=="string"?Kt(n):n,i=Pe(o.pathname||"/",t);if(i==null)return null;let a=$r(e);Sa(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let u=Aa(i);l=La(a[c],u,r)}return l}function $r(e,n=[],t=[],r=""){let o=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(ge(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length));let u=ke([r,c.relativePath]),d=t.concat(c);i.children&&i.children.length>0&&(ge(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),$r(i.children,n,d,u)),!(i.path==null&&!i.index)&&n.push({path:u,score:Pa(u,i.index),routesMeta:d})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let c of Rr(i.path))o(i,a,c)}),n}function Rr(e){let n=e.split("/");if(n.length===0)return[];let[t,...r]=n,o=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=Rr(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),o&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function Sa(e){e.sort((n,t)=>n.score!==t.score?t.score-n.score:Ma(n.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}var ja=/^:[\w-]+$/,ka=3,$a=2,Ra=1,Ea=10,_a=-2,Er=e=>e==="*";function Pa(e,n){let t=e.split("/"),r=t.length;return t.some(Er)&&(r+=_a),n&&(r+=$a),t.filter(o=>!Er(o)).reduce((o,i)=>o+(ja.test(i)?ka:i===""?Ra:Ea),r)}function Ma(e,n){return e.length===n.length&&e.slice(0,-1).every((r,o)=>r===n[o])?e[e.length-1]-n[n.length-1]:0}function La(e,n,t=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],u=l===r.length-1,d=i==="/"?n:n.slice(i.length)||"/",g=lt({path:c.relativePath,caseSensitive:c.caseSensitive,end:u},d),p=c.route;if(!g&&u&&t&&!r[r.length-1].route.index&&(g=lt({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},d)),!g)return null;Object.assign(o,g.params),a.push({params:o,pathname:ke([i,g.pathname]),pathnameBase:za(ke([i,g.pathnameBase])),route:p}),g.pathnameBase!=="/"&&(i=ke([i,g.pathnameBase]))}return a}function lt(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[t,r]=Fa(e.path,e.caseSensitive,e.end),o=n.match(t);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:g},p)=>{if(d==="*"){let v=l[p]||"";a=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const f=l[p];return g&&!f?u[d]=void 0:u[d]=(f||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function Fa(e,n=!1,t=!0){je(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function Aa(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return je(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function Pe(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let t=n.endsWith("/")?n.length-1:n.length,r=e.charAt(t);return r&&r!=="/"?null:e.slice(t)||"/"}function Na(e,n="/"){let{pathname:t,search:r="",hash:o=""}=typeof e=="string"?Kt(e):e;return{pathname:t?t.startsWith("/")?t:Da(t,n):n,search:Oa(r),hash:Ia(o)}}function Da(e,n){let t=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?t.length>1&&t.pop():o!=="."&&t.push(o)}),t.length>1?t.join("/"):"/"}function Xt(e,n,t,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Ta(e){return e.filter((n,t)=>t===0||n.route.path&&n.route.path.length>0)}function _r(e){let n=Ta(e);return n.map((t,r)=>r===n.length-1?t.pathname:t.pathnameBase)}function Pr(e,n,t,r=!1){let o;typeof e=="string"?o=Kt(e):(o={...e},ge(!o.pathname||!o.pathname.includes("?"),Xt("?","pathname","search",o)),ge(!o.pathname||!o.pathname.includes("#"),Xt("#","pathname","hash",o)),ge(!o.search||!o.search.includes("#"),Xt("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=t;else{let g=n.length-1;if(!r&&a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),g-=1;o.pathname=p.join("/")}l=g>=0?n[g]:"/"}let c=Na(o,l),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(u||d)&&(c.pathname+="/"),c}var ke=e=>e.join("/").replace(/\/\/+/g,"/"),za=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Oa=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ia=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Va(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Mr=["POST","PUT","PATCH","DELETE"];new Set(Mr);var Ha=["GET",...Mr];new Set(Ha);var Ne=$.createContext(null);Ne.displayName="DataRouter";var st=$.createContext(null);st.displayName="DataRouterState",$.createContext(!1);var Lr=$.createContext({isTransitioning:!1});Lr.displayName="ViewTransition";var Ba=$.createContext(new Map);Ba.displayName="Fetchers";var qa=$.createContext(null);qa.displayName="Await";var $e=$.createContext(null);$e.displayName="Navigation";var Jt=$.createContext(null);Jt.displayName="Location";var Re=$.createContext({outlet:null,matches:[],isDataRoute:!1});Re.displayName="Route";var Qt=$.createContext(null);Qt.displayName="RouteError";function Ga(e,{relative:n}={}){ge(ct(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:r}=$.useContext($e),{hash:o,pathname:i,search:a}=Be(e,{relative:n}),l=i;return t!=="/"&&(l=i==="/"?t:ke([t,i])),r.createHref({pathname:l,search:a,hash:o})}function ct(){return $.useContext(Jt)!=null}function Fe(){return ge(ct(),"useLocation() may be used only in the context of a <Router> component."),$.useContext(Jt).location}var Fr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ar(e){$.useContext($e).static||$.useLayoutEffect(e)}function Wa(){let{isDataRoute:e}=$.useContext(Re);return e?il():Ua()}function Ua(){ge(ct(),"useNavigate() may be used only in the context of a <Router> component.");let e=$.useContext(Ne),{basename:n,navigator:t}=$.useContext($e),{matches:r}=$.useContext(Re),{pathname:o}=Fe(),i=JSON.stringify(_r(r)),a=$.useRef(!1);return Ar(()=>{a.current=!0}),$.useCallback((c,u={})=>{if(je(a.current,Fr),!a.current)return;if(typeof c=="number"){t.go(c);return}let d=Pr(c,JSON.parse(i),o,u.relative==="path");e==null&&n!=="/"&&(d.pathname=d.pathname==="/"?n:ke([n,d.pathname])),(u.replace?t.replace:t.push)(d,u.state,u)},[n,t,i,o,e])}$.createContext(null);function Be(e,{relative:n}={}){let{matches:t}=$.useContext(Re),{pathname:r}=Fe(),o=JSON.stringify(_r(t));return $.useMemo(()=>Pr(e,JSON.parse(o),r,n==="path"),[e,o,r,n])}function Ya(e,n,t,r){ge(ct(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=$.useContext($e),{matches:i}=$.useContext(Re),a=i[i.length-1],l=a?a.params:{},c=a?a.pathname:"/",u=a?a.pathnameBase:"/",d=a&&a.route;{let x=d&&d.path||"";Dr(c,!d||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
185
185
 
186
- Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let g=Fe(),p;p=g;let f=p.pathname||"/",v=f;if(u!=="/"){let x=u.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let m=$r(e,{pathname:v});return je(d||m!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),je(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Qi(m&&m.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:ke([u,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:ke([u,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,t,r)}function Zi(){let e=ol(),n=Vi(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:a},"ErrorBoundary")," or"," ",$.createElement("code",{style:a},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},n),t?$.createElement("pre",{style:o},t):null,i)}var Ki=$.createElement(Zi,null),Xi=class extends $.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?$.createElement(Re.Provider,{value:this.props.routeContext},$.createElement(Qt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ji({routeContext:e,match:n,children:t}){let r=$.useContext(Ne);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),$.createElement(Re.Provider,{value:e},t)}function Qi(e,n=[],t=null,r=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(n.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,a=t==null?void 0:t.errors;if(a!=null){let c=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);ge(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,c+1))}let i=!1,l=-1;if(t)for(let c=0;c<o.length;c++){let u=o[c];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=c),u.route.id){let{loaderData:d,errors:g}=t,p=u.route.loader&&!d.hasOwnProperty(u.route.id)&&(!g||g[u.route.id]===void 0);if(u.route.lazy||p){i=!0,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((c,u,d)=>{let g,p=!1,f=null,v=null;t&&(g=a&&u.route.id?a[u.route.id]:void 0,f=u.route.errorElement||Ki,i&&(l<0&&d===0?(Tr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,v=null):l===d&&(p=!0,v=u.route.hydrateFallbackElement||null)));let m=n.concat(o.slice(0,d+1)),b=()=>{let x;return g?x=f:p?x=v:u.route.Component?x=$.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=c,$.createElement(Ji,{match:u,routeContext:{outlet:c,matches:m,isDataRoute:t!=null},children:x})};return t&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?$.createElement(Xi,{location:t.location,revalidation:t.revalidation,component:f,error:g,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function en(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function el(e){let n=$.useContext(Ne);return ge(n,en(e)),n}function tl(e){let n=$.useContext(st);return ge(n,en(e)),n}function nl(e){let n=$.useContext(Re);return ge(n,en(e)),n}function tn(e){let n=nl(e),t=n.matches[n.matches.length-1];return ge(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function rl(){return tn("useRouteId")}function ol(){var r;let e=$.useContext(Qt),n=tl("useRouteError"),t=tn("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[t]}function al(){let{router:e}=el("useNavigate"),n=tn("useNavigate"),t=$.useRef(!1);return Nr(()=>{t.current=!0}),$.useCallback(async(o,a={})=>{je(t.current,Ar),t.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...a}))},[e,n])}var Dr={};function Tr(e,n,t){!n&&!Dr[e]&&(Dr[e]=!0,je(!1,t))}$.memo(il);function il({routes:e,future:n,state:t}){return Yi(e,void 0,t,n)}var ut="get",dt="application/x-www-form-urlencoded";function pt(e){return e!=null&&typeof e.tagName=="string"}function ll(e){return pt(e)&&e.tagName.toLowerCase()==="button"}function sl(e){return pt(e)&&e.tagName.toLowerCase()==="form"}function cl(e){return pt(e)&&e.tagName.toLowerCase()==="input"}function ul(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dl(e,n){return e.button===0&&(!n||n==="_self")&&!ul(e)}var ft=null;function pl(){if(ft===null)try{new FormData(document.createElement("form"),0),ft=!1}catch{ft=!0}return ft}var fl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nn(e){return e!=null&&!fl.has(e)?(je(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`),null):e}function ml(e,n){let t,r,o,a,i;if(sl(e)){let l=e.getAttribute("action");r=l?Pe(l,n):null,t=e.getAttribute("method")||ut,o=nn(e.getAttribute("enctype"))||dt,a=new FormData(e)}else if(ll(e)||cl(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Pe(c,n):null,t=e.getAttribute("formmethod")||l.getAttribute("method")||ut,o=nn(e.getAttribute("formenctype"))||nn(l.getAttribute("enctype"))||dt,a=new FormData(l,e),!pl()){let{name:u,type:d,value:g}=e;if(d==="image"){let p=u?`${u}.`:"";a.append(`${p}x`,"0"),a.append(`${p}y`,"0")}else u&&a.append(u,g)}}else{if(pt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=ut,r=null,o=dt,i=e}return a&&o==="text/plain"&&(i=a,a=void 0),{action:r,method:t.toLowerCase(),encType:o,formData:a,body:i}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rn(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function gl(e,n,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${t}`:n&&Pe(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.${t}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${t}`,r}async function vl(e,n){if(e.id in n)return n[e.id];try{let t=await import(e.module);return n[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hl(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xl(e,n,t){let r=await Promise.all(e.map(async o=>{let a=n.routes[o.route.id];if(a){let i=await vl(a,t);return i.links?i.links():[]}return[]}));return Cl(r.flat(1).filter(hl).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function zr(e,n,t,r,o,a){let i=(c,u)=>t[u]?c.route.id!==t[u].route.id:!0,l=(c,u)=>{var d;return t[u].pathname!==c.pathname||((d=t[u].route.path)==null?void 0:d.endsWith("*"))&&t[u].params["*"]!==c.params["*"]};return a==="assets"?n.filter((c,u)=>i(c,u)||l(c,u)):a==="data"?n.filter((c,u)=>{var g;let d=r.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(i(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=t[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function bl(e,n,{includeHydrateFallback:t}={}){return wl(e.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let a=[o.module];return o.clientActionModule&&(a=a.concat(o.clientActionModule)),o.clientLoaderModule&&(a=a.concat(o.clientLoaderModule)),t&&o.hydrateFallbackModule&&(a=a.concat(o.hydrateFallbackModule)),o.imports&&(a=a.concat(o.imports)),a}).flat(1))}function wl(e){return[...new Set(e)]}function yl(e){let n={},t=Object.keys(e).sort();for(let r of t)n[r]=e[r];return n}function Cl(e,n){let t=new Set;return new Set(n),e.reduce((r,o)=>{let a=JSON.stringify(yl(o));return t.has(a)||(t.add(a),r.push({key:a,link:o})),r},[])}function Or(){let e=$.useContext(Ne);return rn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Sl(){let e=$.useContext(st);return rn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var on=$.createContext(void 0);on.displayName="FrameworkContext";function Ir(){let e=$.useContext(on);return rn(e,"You must render this element inside a <HydratedRouter> element"),e}function jl(e,n){let t=$.useContext(on),[r,o]=$.useState(!1),[a,i]=$.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:g}=n,p=$.useRef(null);$.useEffect(()=>{if(e==="render"&&i(!0),e==="viewport"){let m=x=>{x.forEach(R=>{i(R.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return p.current&&b.observe(p.current),()=>{b.disconnect()}}},[e]),$.useEffect(()=>{if(r){let m=setTimeout(()=>{i(!0)},100);return()=>{clearTimeout(m)}}},[r]);let f=()=>{o(!0)},v=()=>{o(!1),i(!1)};return t?e!=="intent"?[a,p,{}]:[a,p,{onFocus:qe(l,f),onBlur:qe(c,v),onMouseEnter:qe(u,f),onMouseLeave:qe(d,v),onTouchStart:qe(g,f)}]:[!1,p,{}]}function qe(e,n){return t=>{e&&e(t),t.defaultPrevented||n(t)}}function kl({page:e,...n}){let{router:t}=Or(),r=$.useMemo(()=>$r(t.routes,e,t.basename),[t.routes,e,t.basename]);return r?$.createElement(Rl,{page:e,matches:r,...n}):null}function $l(e){let{manifest:n,routeModules:t}=Ir(),[r,o]=$.useState([]);return $.useEffect(()=>{let a=!1;return xl(e,n,t).then(i=>{a||o(i)}),()=>{a=!0}},[e,n,t]),r}function Rl({page:e,matches:n,...t}){let r=Fe(),{manifest:o,routeModules:a}=Ir(),{basename:i}=Or(),{loaderData:l,matches:c}=Sl(),u=$.useMemo(()=>zr(e,n,c,o,r,"data"),[e,n,c,o,r]),d=$.useMemo(()=>zr(e,n,c,o,r,"assets"),[e,n,c,o,r]),g=$.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,m=!1;if(n.forEach(x=>{var y;let R=o.routes[x.route.id];!R||!R.hasLoader||(!u.some(E=>E.route.id===x.route.id)&&x.route.id in l&&((y=a[x.route.id])!=null&&y.shouldRevalidate)||R.hasClientLoader?m=!0:v.add(x.route.id))}),v.size===0)return[];let b=gl(e,i,"data");return m&&v.size>0&&b.searchParams.set("_routes",n.filter(x=>v.has(x.route.id)).map(x=>x.route.id).join(",")),[b.pathname+b.search]},[i,l,r,o,u,n,e,a]),p=$.useMemo(()=>bl(d,o),[d,o]),f=$l(d);return $.createElement($.Fragment,null,g.map(v=>$.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...t})),p.map(v=>$.createElement("link",{key:v,rel:"modulepreload",href:v,...t})),f.map(({key:v,link:m})=>$.createElement("link",{key:v,...m})))}function El(...e){return n=>{e.forEach(t=>{typeof t=="function"?t(n):t!=null&&(t.current=n)})}}var Vr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Vr&&(window.__reactRouterVersion="7.7.1")}catch{}var Hr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,an=$.forwardRef(function({onClick:n,discover:t="render",prefetch:r="none",relative:o,reloadDocument:a,replace:i,state:l,target:c,to:u,preventScrollReset:d,viewTransition:g,...p},f){let{basename:v}=$.useContext($e),m=typeof u=="string"&&Hr.test(u),b,x=!1;if(typeof u=="string"&&m&&(b=u,Vr))try{let A=new URL(window.location.href),X=u.startsWith("//")?new URL(A.protocol+u):new URL(u),ae=Pe(X.pathname,v);X.origin===A.origin&&ae!=null?u=ae+X.search+X.hash:x=!0}catch{je(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=Gi(u,{relative:o}),[y,E,C]=jl(r,p),V=Ml(u,{replace:i,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:g});function T(A){n&&n(A),A.defaultPrevented||V(A)}let B=$.createElement("a",{...p,...C,href:b||R,onClick:x||a?n:T,ref:El(f,E),target:c,"data-discover":!m&&t==="render"?"true":void 0});return y&&!m?$.createElement($.Fragment,null,B,$.createElement(kl,{page:R})):B});an.displayName="Link";var Br=$.forwardRef(function({"aria-current":n="page",caseSensitive:t=!1,className:r="",end:o=!1,style:a,to:i,viewTransition:l,children:c,...u},d){let g=Be(i,{relative:u.relative}),p=Fe(),f=$.useContext(st),{navigator:v,basename:m}=$.useContext($e),b=f!=null&&Dl(g)&&l===!0,x=v.encodeLocation?v.encodeLocation(g).pathname:g.pathname,R=p.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(R=R.toLowerCase(),y=y?y.toLowerCase():null,x=x.toLowerCase()),y&&m&&(y=Pe(y,m)||y);const E=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let C=R===x||!o&&R.startsWith(x)&&R.charAt(E)==="/",V=y!=null&&(y===x||!o&&y.startsWith(x)&&y.charAt(x.length)==="/"),T={isActive:C,isPending:V,isTransitioning:b},B=C?n:void 0,A;typeof r=="function"?A=r(T):A=[r,C?"active":null,V?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let X=typeof a=="function"?a(T):a;return $.createElement(an,{...u,"aria-current":B,className:A,ref:d,style:X,to:i,viewTransition:l},typeof c=="function"?c(T):c)});Br.displayName="NavLink";var _l=$.forwardRef(({discover:e="render",fetcherKey:n,navigate:t,reloadDocument:r,replace:o,state:a,method:i=ut,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:g,...p},f)=>{let v=Al(),m=Nl(l,{relative:u}),b=i.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&Hr.test(l),R=y=>{if(c&&c(y),y.defaultPrevented)return;y.preventDefault();let E=y.nativeEvent.submitter,C=(E==null?void 0:E.getAttribute("formmethod"))||i;v(E||y.currentTarget,{fetcherKey:n,method:C,navigate:t,replace:o,state:a,relative:u,preventScrollReset:d,viewTransition:g})};return $.createElement("form",{ref:f,method:b,action:m,onSubmit:r?c:R,...p,"data-discover":!x&&e==="render"?"true":void 0})});_l.displayName="Form";function Pl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qr(e){let n=$.useContext(Ne);return ge(n,Pl(e)),n}function Ml(e,{target:n,replace:t,state:r,preventScrollReset:o,relative:a,viewTransition:i}={}){let l=Wi(),c=Fe(),u=Be(e,{relative:a});return $.useCallback(d=>{if(dl(d,n)){d.preventDefault();let g=t!==void 0?t:Zt(c)===Zt(u);l(e,{replace:g,state:r,preventScrollReset:o,relative:a,viewTransition:i})}},[c,l,u,t,r,n,e,o,a,i])}var Ll=0,Fl=()=>`__${String(++Ll)}__`;function Al(){let{router:e}=qr("useSubmit"),{basename:n}=$.useContext($e),t=rl();return $.useCallback(async(r,o={})=>{let{action:a,method:i,encType:l,formData:c,body:u}=ml(r,n);if(o.navigate===!1){let d=o.fetcherKey||Fl();await e.fetch(d,t,o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||a,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||i,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:t,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,t])}function Nl(e,{relative:n}={}){let{basename:t}=$.useContext($e),r=$.useContext(Re);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),a={...Be(e||".",{relative:n})},i=Fe();if(e==null){a.search=i.search;let l=new URLSearchParams(a.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(g=>g).forEach(g=>l.append("index",g));let d=l.toString();a.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(a.pathname=a.pathname==="/"?t:ke([t,a.pathname])),Zt(a)}function Dl(e,{relative:n}={}){let t=$.useContext(Fr);ge(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=qr("useViewTransitionState"),o=Be(e,{relative:n});if(!t.isTransitioning)return!1;let a=Pe(t.currentLocation.pathname,r)||t.currentLocation.pathname,i=Pe(t.nextLocation.pathname,r)||t.nextLocation.pathname;return lt(o.pathname,i)!=null||lt(o.pathname,a)!=null}const Tl=({variant:e="fixed",activeTab:n,navItems:t,onTabChange:r,className:o="",activeClass:a="",buttonClass:i=""})=>{let l="flex justify-around items-center bg-color-white shadow-sm text-color-gray-600 py-2 px-4";return e==="fixed"?l+=" fixed bottom-0 left-0 right-0":e==="floating"?l+=" fixed bottom-4 left-4 right-4 rounded-full":e==="static"&&(l+=" static"),s.jsx("nav",{className:`${l} ${o}`,children:t.map(c=>{const u=c.label===n;return s.jsxs(an,{to:c.path,onClick:()=>r(c.label),className:`flex flex-col items-center text-sm cursor-pointer text-color-gray-500 no-underline ${i}`,children:[s.jsx("span",{className:`text-xl ${u?`text-color-blue-500 ${a}`:""}`,children:c.icon}),s.jsx("span",{className:`text-xs font-medium mt-1 ${u?`text-color-blue-500 ${a}`:""}`,children:c.label})]},c.label)})})},zl=({items:e,separator:n="/",className:t=""})=>s.jsx("nav",{className:`text-sm text-color-gray-600 ${t}`,"aria-label":"Breadcrumb",children:s.jsx("ol",{className:"flex items-center space-x-1",children:e.map((r,o)=>s.jsxs("li",{className:"flex items-center",children:[r.href?s.jsx("a",{href:r.href,className:"text-color-gray-800 hover:underline font-medium",children:r.label}):s.jsx("span",{className:"text-color-gray-500 font-medium",children:r.label}),o<e.length-1&&s.jsx("span",{className:"mx-2 text-color-gray-400",children:n})]},o))})}),Gr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ol=["Su","Mo","Tu","We","Th","Fr","Sa"],Il=({mode:e="single",type:n="inline",showTime:t=!1,onlyTime:r=!1,className:o,onChange:a,placeholder:i="Select date",icon:l=s.jsx("svg",{className:"text-color-gray-500 size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M7 3V1H9V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V9H20V5H17V7H15V5H9V7H7V5H4V19H10V21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7ZM17 12C14.7909 12 13 13.7909 13 16C13 18.2091 14.7909 20 17 20C19.2091 20 21 18.2091 21 16C21 13.7909 19.2091 12 17 12ZM11 16C11 12.6863 13.6863 10 17 10C20.3137 10 23 12.6863 23 16C23 19.3137 20.3137 22 17 22C13.6863 22 11 19.3137 11 16ZM16 13V16.4142L18.2929 18.7071L19.7071 17.2929L18 15.5858V13H16Z"})}),disableBefore:c,disableAfter:u,selectedDate:d})=>{const[g,p]=w.useState(!1),[f,v]=w.useState(null),[m,b]=w.useState(new Date),[x,R]=w.useState(d?new Date(d):null),[y,E]=w.useState(null),[C,V]=w.useState(null),[T,B]=w.useState(null),[A,X]=w.useState({hour:12,minute:0,ampm:"AM"}),ae=w.useRef(null),[se,ee]=w.useState(d?new Date(d):null),[q,K]=w.useState(null),[I,ne]=w.useState(null);w.useEffect(()=>{R(d?new Date(d):null),ee(d?new Date(d):null)},[d]);const ue=j=>{j.stopPropagation(),v(j.currentTarget),p(!0)},J=()=>{p(!1)},h=j=>!!(c&&j.getTime()<c||u&&j.getTime()>u),S=j=>{n==="inline"&&ae.current&&!ae.current.contains(j.target)&&(e==="single"?x||R(null):e==="range"&&(!y||!C)&&(E(null),V(null)),p(!1))};w.useEffect(()=>(g?document.addEventListener("mousedown",S):document.removeEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}),[g]);const F=j=>{!j||h(j)||(e==="single"?R(j):e==="range"&&(!y||y&&C?(E(j),V(null)):j>=y?V(j):E(j)))},L=j=>{if(!j||h(j)){B(null);return}e==="range"&&y&&!C&&B(j)},D=()=>{B(null)},H=()=>{if(p(!1),e==="single"){const j=r?new Date:x,k=j?new Date(j.getFullYear(),j.getMonth(),j.getDate(),A.ampm==="PM"&&A.hour!==12?A.hour+12:A.ampm==="AM"&&A.hour===12?0:A.hour,A.minute):null;ee(k),a==null||a(k?k.getTime():null)}else e==="range"&&(K(y),ne(C),a==null||a({startDate:y?y.getTime():null,endDate:C?C.getTime():null}))},z=()=>{const j=new Date(m.getFullYear(),m.getMonth(),1),k=new Date(m.getFullYear(),m.getMonth()+1,0),_=[],Q=j.getDay();for(let te=0;te<Q;te++)_.push(null);for(let te=1;te<=k.getDate();te++)_.push(new Date(m.getFullYear(),m.getMonth(),te));return _},P=j=>{if(!j)return!1;if(e==="single")return(x==null?void 0:x.toDateString())===j.toDateString();if(e==="range"){if(y&&!C&&T){const k=y<T?y:T,_=y<T?T:y;return j>=k&&j<=_}return y&&C&&j>=y&&j<=C}return!1},M=(j,k)=>{if(!j)return e==="range"?k==="end"?"End Date":"Start Date":r?`${String(A.hour).padStart(2,"0")}:${String(A.minute).padStart(2,"0")} ${A.ampm}`:i;if(r)return`${String(A.hour).padStart(2,"0")}:${String(A.minute).padStart(2,"0")} ${A.ampm}`;const _=j.getDate().toString().padStart(2,"0"),Q=Gr[j.getMonth()],te=j.getFullYear(),ce=t?` ${String(A.hour).padStart(2,"0")}:${String(A.minute).padStart(2,"0")} ${A.ampm}`:"";return`${_} ${Q} ${te}${ce}`},G=s.jsxs("div",{className:"flex items-center justify-between w-full border border-color-gray-300 rounded-md p-2",children:[s.jsx("select",{value:A.hour,onChange:j=>X({...A,hour:parseInt(j.target.value)}),className:"w-16 border-0 text-center bg-color-transparent outline-0",children:Array.from({length:12},(j,k)=>k+1).map(j=>s.jsx("option",{value:j,children:j.toString().padStart(2,"0")},j))}),s.jsx("select",{value:A.minute,onChange:j=>X({...A,minute:parseInt(j.target.value)}),className:"w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",children:Array.from({length:60},(j,k)=>k).map(j=>s.jsx("option",{value:j,children:j.toString().padStart(2,"0")},j))}),s.jsxs("select",{value:A.ampm,onChange:j=>X({...A,ampm:j.target.value}),className:"w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",children:[s.jsx("option",{value:"AM",children:"AM"}),s.jsx("option",{value:"PM",children:"PM"})]})]}),W=s.jsxs("div",{ref:ae,className:`${n==="dialog"?"relative w-full":"absolute z-50 mt-2 w-72 rounded-lg border border-color-gray-200 bg-color-white shadow-xl p-4"}`,style:n==="dialog"?void 0:{position:"absolute",left:f==null?void 0:f.getBoundingClientRect().left,top:f?f.getBoundingClientRect().bottom+window.scrollY:0},children:[!r&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx(we,{variant:"transparent",size:"small",color:"gray",roundedFull:!0,onClick:()=>b(new Date(m.getFullYear(),m.getMonth()-1,1)),icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"})})}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("select",{className:"text-sm outline-none",value:m.getMonth(),onChange:j=>b(new Date(m.getFullYear(),parseInt(j.target.value),1)),children:Gr.map((j,k)=>s.jsx("option",{value:k,children:j},j))}),s.jsx("select",{className:"text-sm outline-none",value:m.getFullYear(),onChange:j=>b(new Date(parseInt(j.target.value),m.getMonth(),1)),children:Array.from({length:150},(j,k)=>new Date().getFullYear()-100+k).map(j=>s.jsx("option",{value:j,children:j},j))})]}),s.jsx(we,{variant:"transparent",size:"small",color:"gray",roundedFull:!0,onClick:()=>b(new Date(m.getFullYear(),m.getMonth()+1,1)),icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})})]}),s.jsxs("div",{className:"grid grid-columns-7 gap-1 text-center text-sm mb-2",children:[Ol.map(j=>s.jsx("div",{className:"font-semibold",children:j},j)),z().map((j,k)=>s.jsx("div",{className:`size-8 flex justify-center items-center text-sm rounded-full transition-all
186
+ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let g=Fe(),p;p=g;let f=p.pathname||"/",v=f;if(u!=="/"){let x=u.replace(/^\//,"").split("/");v="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let m=kr(e,{pathname:v});return je(d||m!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),je(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),Qa(m&&m.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:ke([u,o.encodeLocation?o.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?u:ke([u,o.encodeLocation?o.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,t,r)}function Za(){let e=ol(),n=Va(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),t=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:i},"ErrorBoundary")," or"," ",$.createElement("code",{style:i},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},n),t?$.createElement("pre",{style:o},t):null,a)}var Ka=$.createElement(Za,null),Xa=class extends $.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?$.createElement(Re.Provider,{value:this.props.routeContext},$.createElement(Qt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ja({routeContext:e,match:n,children:t}){let r=$.useContext(Ne);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),$.createElement(Re.Provider,{value:e},t)}function Qa(e,n=[],t=null,r=null){if(e==null){if(!t)return null;if(t.errors)e=t.matches;else if(n.length===0&&!t.initialized&&t.matches.length>0)e=t.matches;else return null}let o=e,i=t==null?void 0:t.errors;if(i!=null){let c=o.findIndex(u=>u.route.id&&(i==null?void 0:i[u.route.id])!==void 0);ge(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,c+1))}let a=!1,l=-1;if(t)for(let c=0;c<o.length;c++){let u=o[c];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=c),u.route.id){let{loaderData:d,errors:g}=t,p=u.route.loader&&!d.hasOwnProperty(u.route.id)&&(!g||g[u.route.id]===void 0);if(u.route.lazy||p){a=!0,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((c,u,d)=>{let g,p=!1,f=null,v=null;t&&(g=i&&u.route.id?i[u.route.id]:void 0,f=u.route.errorElement||Ka,a&&(l<0&&d===0?(Dr("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,v=null):l===d&&(p=!0,v=u.route.hydrateFallbackElement||null)));let m=n.concat(o.slice(0,d+1)),b=()=>{let x;return g?x=f:p?x=v:u.route.Component?x=$.createElement(u.route.Component,null):u.route.element?x=u.route.element:x=c,$.createElement(Ja,{match:u,routeContext:{outlet:c,matches:m,isDataRoute:t!=null},children:x})};return t&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?$.createElement(Xa,{location:t.location,revalidation:t.revalidation,component:f,error:g,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function en(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function el(e){let n=$.useContext(Ne);return ge(n,en(e)),n}function tl(e){let n=$.useContext(st);return ge(n,en(e)),n}function nl(e){let n=$.useContext(Re);return ge(n,en(e)),n}function tn(e){let n=nl(e),t=n.matches[n.matches.length-1];return ge(t.route.id,`${e} can only be used on routes that contain a unique "id"`),t.route.id}function rl(){return tn("useRouteId")}function ol(){var r;let e=$.useContext(Qt),n=tl("useRouteError"),t=tn("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[t]}function il(){let{router:e}=el("useNavigate"),n=tn("useNavigate"),t=$.useRef(!1);return Ar(()=>{t.current=!0}),$.useCallback(async(o,i={})=>{je(t.current,Fr),t.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...i}))},[e,n])}var Nr={};function Dr(e,n,t){!n&&!Nr[e]&&(Nr[e]=!0,je(!1,t))}$.memo(al);function al({routes:e,future:n,state:t}){return Ya(e,void 0,t,n)}var ut="get",dt="application/x-www-form-urlencoded";function pt(e){return e!=null&&typeof e.tagName=="string"}function ll(e){return pt(e)&&e.tagName.toLowerCase()==="button"}function sl(e){return pt(e)&&e.tagName.toLowerCase()==="form"}function cl(e){return pt(e)&&e.tagName.toLowerCase()==="input"}function ul(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dl(e,n){return e.button===0&&(!n||n==="_self")&&!ul(e)}var ft=null;function pl(){if(ft===null)try{new FormData(document.createElement("form"),0),ft=!1}catch{ft=!0}return ft}var fl=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nn(e){return e!=null&&!fl.has(e)?(je(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dt}"`),null):e}function ml(e,n){let t,r,o,i,a;if(sl(e)){let l=e.getAttribute("action");r=l?Pe(l,n):null,t=e.getAttribute("method")||ut,o=nn(e.getAttribute("enctype"))||dt,i=new FormData(e)}else if(ll(e)||cl(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=e.getAttribute("formaction")||l.getAttribute("action");if(r=c?Pe(c,n):null,t=e.getAttribute("formmethod")||l.getAttribute("method")||ut,o=nn(e.getAttribute("formenctype"))||nn(l.getAttribute("enctype"))||dt,i=new FormData(l,e),!pl()){let{name:u,type:d,value:g}=e;if(d==="image"){let p=u?`${u}.`:"";i.append(`${p}x`,"0"),i.append(`${p}y`,"0")}else u&&i.append(u,g)}}else{if(pt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=ut,r=null,o=dt,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:t.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function rn(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function gl(e,n,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${t}`:n&&Pe(r.pathname,n)==="/"?r.pathname=`${n.replace(/\/$/,"")}/_root.${t}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${t}`,r}async function vl(e,n){if(e.id in n)return n[e.id];try{let t=await import(e.module);return n[e.id]=t,t}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hl(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xl(e,n,t){let r=await Promise.all(e.map(async o=>{let i=n.routes[o.route.id];if(i){let a=await vl(i,t);return a.links?a.links():[]}return[]}));return Cl(r.flat(1).filter(hl).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Tr(e,n,t,r,o,i){let a=(c,u)=>t[u]?c.route.id!==t[u].route.id:!0,l=(c,u)=>{var d;return t[u].pathname!==c.pathname||((d=t[u].route.path)==null?void 0:d.endsWith("*"))&&t[u].params["*"]!==c.params["*"]};return i==="assets"?n.filter((c,u)=>a(c,u)||l(c,u)):i==="data"?n.filter((c,u)=>{var g;let d=r.routes[c.route.id];if(!d||!d.hasLoader)return!1;if(a(c,u)||l(c,u))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=t[0])==null?void 0:g.params)||{},nextUrl:new URL(e,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function bl(e,n,{includeHydrateFallback:t}={}){return wl(e.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),t&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function wl(e){return[...new Set(e)]}function yl(e){let n={},t=Object.keys(e).sort();for(let r of t)n[r]=e[r];return n}function Cl(e,n){let t=new Set;return new Set(n),e.reduce((r,o)=>{let i=JSON.stringify(yl(o));return t.has(i)||(t.add(i),r.push({key:i,link:o})),r},[])}function zr(){let e=$.useContext(Ne);return rn(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Sl(){let e=$.useContext(st);return rn(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var on=$.createContext(void 0);on.displayName="FrameworkContext";function Or(){let e=$.useContext(on);return rn(e,"You must render this element inside a <HydratedRouter> element"),e}function jl(e,n){let t=$.useContext(on),[r,o]=$.useState(!1),[i,a]=$.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:d,onTouchStart:g}=n,p=$.useRef(null);$.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=x=>{x.forEach(R=>{a(R.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return p.current&&b.observe(p.current),()=>{b.disconnect()}}},[e]),$.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let f=()=>{o(!0)},v=()=>{o(!1),a(!1)};return t?e!=="intent"?[i,p,{}]:[i,p,{onFocus:qe(l,f),onBlur:qe(c,v),onMouseEnter:qe(u,f),onMouseLeave:qe(d,v),onTouchStart:qe(g,f)}]:[!1,p,{}]}function qe(e,n){return t=>{e&&e(t),t.defaultPrevented||n(t)}}function kl({page:e,...n}){let{router:t}=zr(),r=$.useMemo(()=>kr(t.routes,e,t.basename),[t.routes,e,t.basename]);return r?$.createElement(Rl,{page:e,matches:r,...n}):null}function $l(e){let{manifest:n,routeModules:t}=Or(),[r,o]=$.useState([]);return $.useEffect(()=>{let i=!1;return xl(e,n,t).then(a=>{i||o(a)}),()=>{i=!0}},[e,n,t]),r}function Rl({page:e,matches:n,...t}){let r=Fe(),{manifest:o,routeModules:i}=Or(),{basename:a}=zr(),{loaderData:l,matches:c}=Sl(),u=$.useMemo(()=>Tr(e,n,c,o,r,"data"),[e,n,c,o,r]),d=$.useMemo(()=>Tr(e,n,c,o,r,"assets"),[e,n,c,o,r]),g=$.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,m=!1;if(n.forEach(x=>{var y;let R=o.routes[x.route.id];!R||!R.hasLoader||(!u.some(E=>E.route.id===x.route.id)&&x.route.id in l&&((y=i[x.route.id])!=null&&y.shouldRevalidate)||R.hasClientLoader?m=!0:v.add(x.route.id))}),v.size===0)return[];let b=gl(e,a,"data");return m&&v.size>0&&b.searchParams.set("_routes",n.filter(x=>v.has(x.route.id)).map(x=>x.route.id).join(",")),[b.pathname+b.search]},[a,l,r,o,u,n,e,i]),p=$.useMemo(()=>bl(d,o),[d,o]),f=$l(d);return $.createElement($.Fragment,null,g.map(v=>$.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...t})),p.map(v=>$.createElement("link",{key:v,rel:"modulepreload",href:v,...t})),f.map(({key:v,link:m})=>$.createElement("link",{key:v,...m})))}function El(...e){return n=>{e.forEach(t=>{typeof t=="function"?t(n):t!=null&&(t.current=n)})}}var Ir=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ir&&(window.__reactRouterVersion="7.7.1")}catch{}var Vr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,an=$.forwardRef(function({onClick:n,discover:t="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:l,target:c,to:u,preventScrollReset:d,viewTransition:g,...p},f){let{basename:v}=$.useContext($e),m=typeof u=="string"&&Vr.test(u),b,x=!1;if(typeof u=="string"&&m&&(b=u,Ir))try{let A=new URL(window.location.href),X=u.startsWith("//")?new URL(A.protocol+u):new URL(u),ie=Pe(X.pathname,v);X.origin===A.origin&&ie!=null?u=ie+X.search+X.hash:x=!0}catch{je(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=Ga(u,{relative:o}),[y,E,C]=jl(r,p),V=Ml(u,{replace:a,state:l,target:c,preventScrollReset:d,relative:o,viewTransition:g});function T(A){n&&n(A),A.defaultPrevented||V(A)}let B=$.createElement("a",{...p,...C,href:b||R,onClick:x||i?n:T,ref:El(f,E),target:c,"data-discover":!m&&t==="render"?"true":void 0});return y&&!m?$.createElement($.Fragment,null,B,$.createElement(kl,{page:R})):B});an.displayName="Link";var Hr=$.forwardRef(function({"aria-current":n="page",caseSensitive:t=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:l,children:c,...u},d){let g=Be(a,{relative:u.relative}),p=Fe(),f=$.useContext(st),{navigator:v,basename:m}=$.useContext($e),b=f!=null&&Dl(g)&&l===!0,x=v.encodeLocation?v.encodeLocation(g).pathname:g.pathname,R=p.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(R=R.toLowerCase(),y=y?y.toLowerCase():null,x=x.toLowerCase()),y&&m&&(y=Pe(y,m)||y);const E=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let C=R===x||!o&&R.startsWith(x)&&R.charAt(E)==="/",V=y!=null&&(y===x||!o&&y.startsWith(x)&&y.charAt(x.length)==="/"),T={isActive:C,isPending:V,isTransitioning:b},B=C?n:void 0,A;typeof r=="function"?A=r(T):A=[r,C?"active":null,V?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let X=typeof i=="function"?i(T):i;return $.createElement(an,{...u,"aria-current":B,className:A,ref:d,style:X,to:a,viewTransition:l},typeof c=="function"?c(T):c)});Hr.displayName="NavLink";var _l=$.forwardRef(({discover:e="render",fetcherKey:n,navigate:t,reloadDocument:r,replace:o,state:i,method:a=ut,action:l,onSubmit:c,relative:u,preventScrollReset:d,viewTransition:g,...p},f)=>{let v=Al(),m=Nl(l,{relative:u}),b=a.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&Vr.test(l),R=y=>{if(c&&c(y),y.defaultPrevented)return;y.preventDefault();let E=y.nativeEvent.submitter,C=(E==null?void 0:E.getAttribute("formmethod"))||a;v(E||y.currentTarget,{fetcherKey:n,method:C,navigate:t,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:g})};return $.createElement("form",{ref:f,method:b,action:m,onSubmit:r?c:R,...p,"data-discover":!x&&e==="render"?"true":void 0})});_l.displayName="Form";function Pl(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Br(e){let n=$.useContext(Ne);return ge(n,Pl(e)),n}function Ml(e,{target:n,replace:t,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let l=Wa(),c=Fe(),u=Be(e,{relative:i});return $.useCallback(d=>{if(dl(d,n)){d.preventDefault();let g=t!==void 0?t:Zt(c)===Zt(u);l(e,{replace:g,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[c,l,u,t,r,n,e,o,i,a])}var Ll=0,Fl=()=>`__${String(++Ll)}__`;function Al(){let{router:e}=Br("useSubmit"),{basename:n}=$.useContext($e),t=rl();return $.useCallback(async(r,o={})=>{let{action:i,method:a,encType:l,formData:c,body:u}=ml(r,n);if(o.navigate===!1){let d=o.fetcherKey||Fl();await e.fetch(d,t,o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||a,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:c,body:u,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:t,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,t])}function Nl(e,{relative:n}={}){let{basename:t}=$.useContext($e),r=$.useContext(Re);ge(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...Be(e||".",{relative:n})},a=Fe();if(e==null){i.search=a.search;let l=new URLSearchParams(i.search),c=l.getAll("index");if(c.some(d=>d==="")){l.delete("index"),c.filter(g=>g).forEach(g=>l.append("index",g));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(i.pathname=i.pathname==="/"?t:ke([t,i.pathname])),Zt(i)}function Dl(e,{relative:n}={}){let t=$.useContext(Lr);ge(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Br("useViewTransitionState"),o=Be(e,{relative:n});if(!t.isTransitioning)return!1;let i=Pe(t.currentLocation.pathname,r)||t.currentLocation.pathname,a=Pe(t.nextLocation.pathname,r)||t.nextLocation.pathname;return lt(o.pathname,a)!=null||lt(o.pathname,i)!=null}const Tl=({variant:e="fixed",activeTab:n,navItems:t,onTabChange:r,className:o="",activeClass:i="",buttonClass:a=""})=>{let l="flex justify-around items-center bg-color-white shadow-sm text-color-gray-600 py-2 px-4";return e==="fixed"?l+=" fixed bottom-0 left-0 right-0":e==="floating"?l+=" fixed bottom-4 left-4 right-4 rounded-full":e==="static"&&(l+=" static"),s.jsx("nav",{className:`${l} ${o}`,children:t.map(c=>{const u=c.label===n;return s.jsxs(an,{to:c.path,onClick:()=>r(c.label),className:`flex flex-col items-center text-sm cursor-pointer text-color-gray-500 no-underline ${a}`,children:[s.jsx("span",{className:`text-xl ${u?`text-color-blue-500 ${i}`:""}`,children:c.icon}),s.jsx("span",{className:`text-xs font-medium mt-1 ${u?`text-color-blue-500 ${i}`:""}`,children:c.label})]},c.label)})})},zl=({items:e,separator:n="/",className:t=""})=>s.jsx("nav",{className:`text-sm text-color-gray-600 ${t}`,"aria-label":"Breadcrumb",children:s.jsx("ol",{className:"flex items-center space-x-1",children:e.map((r,o)=>s.jsxs("li",{className:"flex items-center",children:[r.href?s.jsx("a",{href:r.href,className:"text-color-gray-800 hover:underline font-medium",children:r.label}):s.jsx("span",{className:"text-color-gray-500 font-medium",children:r.label}),o<e.length-1&&s.jsx("span",{className:"mx-2 text-color-gray-400",children:n})]},o))})}),qr=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Ol=["Su","Mo","Tu","We","Th","Fr","Sa"],Il=({mode:e="single",type:n="inline",showTime:t=!1,onlyTime:r=!1,className:o,onChange:i,placeholder:a="Select date",icon:l=s.jsx("svg",{className:"text-color-gray-500 size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M7 3V1H9V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V9H20V5H17V7H15V5H9V7H7V5H4V19H10V21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7ZM17 12C14.7909 12 13 13.7909 13 16C13 18.2091 14.7909 20 17 20C19.2091 20 21 18.2091 21 16C21 13.7909 19.2091 12 17 12ZM11 16C11 12.6863 13.6863 10 17 10C20.3137 10 23 12.6863 23 16C23 19.3137 20.3137 22 17 22C13.6863 22 11 19.3137 11 16ZM16 13V16.4142L18.2929 18.7071L19.7071 17.2929L18 15.5858V13H16Z"})}),disableBefore:c,disableAfter:u,selectedDate:d})=>{const[g,p]=w.useState(!1),[f,v]=w.useState(null),[m,b]=w.useState(new Date),[x,R]=w.useState(d?new Date(d):null),[y,E]=w.useState(null),[C,V]=w.useState(null),[T,B]=w.useState(null),[A,X]=w.useState({hour:12,minute:0,ampm:"AM"}),ie=w.useRef(null),[se,ee]=w.useState(d?new Date(d):null),[q,K]=w.useState(null),[I,ne]=w.useState(null);w.useEffect(()=>{R(d?new Date(d):null),ee(d?new Date(d):null)},[d]);const ue=j=>{j.stopPropagation(),v(j.currentTarget),p(!0)},J=()=>{p(!1)},h=j=>!!(c&&j.getTime()<c||u&&j.getTime()>u),S=j=>{n==="inline"&&ie.current&&!ie.current.contains(j.target)&&(e==="single"?x||R(null):e==="range"&&(!y||!C)&&(E(null),V(null)),p(!1))};w.useEffect(()=>(g?document.addEventListener("mousedown",S):document.removeEventListener("mousedown",S),()=>{document.removeEventListener("mousedown",S)}),[g]);const F=j=>{!j||h(j)||(e==="single"?R(j):e==="range"&&(!y||y&&C?(E(j),V(null)):j>=y?V(j):E(j)))},L=j=>{if(!j||h(j)){B(null);return}e==="range"&&y&&!C&&B(j)},D=()=>{B(null)},H=()=>{if(p(!1),e==="single"){const j=r?new Date:x,k=j?new Date(j.getFullYear(),j.getMonth(),j.getDate(),A.ampm==="PM"&&A.hour!==12?A.hour+12:A.ampm==="AM"&&A.hour===12?0:A.hour,A.minute):null;ee(k),i==null||i(k?k.getTime():null)}else e==="range"&&(K(y),ne(C),i==null||i({startDate:y?y.getTime():null,endDate:C?C.getTime():null}))},z=()=>{const j=new Date(m.getFullYear(),m.getMonth(),1),k=new Date(m.getFullYear(),m.getMonth()+1,0),_=[],Q=j.getDay();for(let te=0;te<Q;te++)_.push(null);for(let te=1;te<=k.getDate();te++)_.push(new Date(m.getFullYear(),m.getMonth(),te));return _},P=j=>{if(!j)return!1;if(e==="single")return(x==null?void 0:x.toDateString())===j.toDateString();if(e==="range"){if(y&&!C&&T){const k=y<T?y:T,_=y<T?T:y;return j>=k&&j<=_}return y&&C&&j>=y&&j<=C}return!1},M=(j,k)=>{if(!j)return e==="range"?k==="end"?"End Date":"Start Date":r?`${String(A.hour).padStart(2,"0")}:${String(A.minute).padStart(2,"0")} ${A.ampm}`:a;if(r)return`${String(A.hour).padStart(2,"0")}:${String(A.minute).padStart(2,"0")} ${A.ampm}`;const _=j.getDate().toString().padStart(2,"0"),Q=qr[j.getMonth()],te=j.getFullYear(),ce=t?` ${String(A.hour).padStart(2,"0")}:${String(A.minute).padStart(2,"0")} ${A.ampm}`:"";return`${_} ${Q} ${te}${ce}`},G=s.jsxs("div",{className:"flex items-center justify-between w-full border border-color-gray-300 rounded-md p-2",children:[s.jsx("select",{value:A.hour,onChange:j=>X({...A,hour:parseInt(j.target.value)}),className:"w-16 border-0 text-center bg-color-transparent outline-0",children:Array.from({length:12},(j,k)=>k+1).map(j=>s.jsx("option",{value:j,children:j.toString().padStart(2,"0")},j))}),s.jsx("select",{value:A.minute,onChange:j=>X({...A,minute:parseInt(j.target.value)}),className:"w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",children:Array.from({length:60},(j,k)=>k).map(j=>s.jsx("option",{value:j,children:j.toString().padStart(2,"0")},j))}),s.jsxs("select",{value:A.ampm,onChange:j=>X({...A,ampm:j.target.value}),className:"w-16 border-0 text-center bg-color-transparent outline-0 border-l border-color-gray-300",children:[s.jsx("option",{value:"AM",children:"AM"}),s.jsx("option",{value:"PM",children:"PM"})]})]}),W=s.jsxs("div",{ref:ie,className:`${n==="dialog"?"relative w-full":"absolute z-50 mt-2 w-72 rounded-lg border border-color-gray-200 bg-color-white shadow-xl p-4"}`,style:n==="dialog"?void 0:{position:"absolute",left:f==null?void 0:f.getBoundingClientRect().left,top:f?f.getBoundingClientRect().bottom+window.scrollY:0},children:[!r&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center justify-between mb-3",children:[s.jsx(we,{variant:"transparent",size:"small",color:"gray",roundedFull:!0,onClick:()=>b(new Date(m.getFullYear(),m.getMonth()-1,1)),icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M10.8284 12.0007L15.7782 16.9504L14.364 18.3646L8 12.0007L14.364 5.63672L15.7782 7.05093L10.8284 12.0007Z"})})}),s.jsxs("div",{className:"flex items-center gap-4",children:[s.jsx("select",{className:"text-sm outline-none",value:m.getMonth(),onChange:j=>b(new Date(m.getFullYear(),parseInt(j.target.value),1)),children:qr.map((j,k)=>s.jsx("option",{value:k,children:j},j))}),s.jsx("select",{className:"text-sm outline-none",value:m.getFullYear(),onChange:j=>b(new Date(parseInt(j.target.value),m.getMonth(),1)),children:Array.from({length:150},(j,k)=>new Date().getFullYear()-100+k).map(j=>s.jsx("option",{value:j,children:j},j))})]}),s.jsx(we,{variant:"transparent",size:"small",color:"gray",roundedFull:!0,onClick:()=>b(new Date(m.getFullYear(),m.getMonth()+1,1)),icon:s.jsx("svg",{className:"size-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:s.jsx("path",{d:"M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z"})})})]}),s.jsxs("div",{className:"grid grid-columns-7 gap-1 text-center text-sm mb-2",children:[Ol.map(j=>s.jsx("div",{className:"font-semibold",children:j},j)),z().map((j,k)=>s.jsx("div",{className:`size-8 flex justify-center items-center text-sm rounded-full transition-all
187
187
  ${j?"hover:bg-color-blue-100 cursor-pointer":""}
188
188
  ${j&&P(j)?"bg-color-blue-500 hover:bg-color-blue-500 text-color-white":""}
189
- ${j&&h(j)?"bg-color-gray-100 text-color-gray-400 !cursor-not-allowed hover:bg-color-gray-100":""}`,onClick:()=>j&&F(j),onMouseEnter:()=>j&&L(j),onMouseLeave:D,children:j?j.getDate():""},k))]})]}),(t||r)&&G,s.jsx("div",{className:"mt-4 flex justify-end",children:s.jsx(Ye,{fullWidth:!0,onClick:H,disabled:e==="range"&&!C&&!r,className:`${e==="range"&&!C&&!r?"bg-color-gray-400 cursor-not-allowed":""}`,children:"Confirm"})})]});return s.jsxs("div",{className:"relative",children:[s.jsxs(Ye,{onClick:ue,fullWidth:!0,color:"gray",variant:"outlined",className:`!justify-between gap-2 ${o||""}`,children:[e==="single"?se?M(se):i:y||q||I?s.jsxs(s.Fragment,{children:[M(y||q,"start")," -"," ",M(C||I,"end")]}):i,l]}),n==="inline"?s.jsx(s.Fragment,{children:g&&Te.createPortal(W,document.body)}):s.jsx(jr,{open:g,title:r?"Select Time":i,onClose:J,children:s.jsx("div",{className:"w-72",children:W})})]})},Vl=({tabs:e,activeKey:n,onChange:t,className:r="",tabsClass:o="",tabItemClass:a="",tabContentClass:i="",variant:l="horizontal"})=>{const c=e.find(d=>d.key===n),u=l==="vertical";return s.jsxs("div",{className:`w-full flex ${u?"flex-row":"flex-col"} ${r}`,children:[s.jsx("div",{className:`${u?"flex flex-col min-w-[160px] border-r border-color-gray-200":"flex space-x-6 border-b border-color-gray-200"} ${o}`,children:e.map(d=>{const g=n===d.key;return s.jsxs("button",{onClick:()=>t(d.key),className:`relative flex ${u?"flex-row items-center px-4 py-3":"flex-col items-center py-4"}
189
+ ${j&&h(j)?"bg-color-gray-100 text-color-gray-400 !cursor-not-allowed hover:bg-color-gray-100":""}`,onClick:()=>j&&F(j),onMouseEnter:()=>j&&L(j),onMouseLeave:D,children:j?j.getDate():""},k))]})]}),(t||r)&&G,s.jsx("div",{className:"mt-4 flex justify-end",children:s.jsx(Ye,{fullWidth:!0,onClick:H,disabled:e==="range"&&!C&&!r,className:`${e==="range"&&!C&&!r?"bg-color-gray-400 cursor-not-allowed":""}`,children:"Confirm"})})]});return s.jsxs("div",{className:"relative",children:[s.jsxs(Ye,{onClick:ue,fullWidth:!0,color:"gray",variant:"outlined",className:`!justify-between gap-2 ${o||""}`,children:[e==="single"?se?M(se):a:y||q||I?s.jsxs(s.Fragment,{children:[M(y||q,"start")," -"," ",M(C||I,"end")]}):a,l]}),n==="inline"?s.jsx(s.Fragment,{children:g&&Te.createPortal(W,document.body)}):s.jsx(Sr,{open:g,title:r?"Select Time":a,onClose:J,children:s.jsx("div",{className:"w-72",children:W})})]})},Vl=({tabs:e,activeKey:n,onChange:t,className:r="",tabsClass:o="",tabItemClass:i="",tabContentClass:a="",variant:l="horizontal"})=>{const c=e.find(d=>d.key===n),u=l==="vertical";return s.jsxs("div",{className:`w-full flex ${u?"flex-row":"flex-col"} ${r}`,children:[s.jsx("div",{className:`${u?"flex flex-col min-w-[160px] border-r border-color-gray-200":"flex space-x-6 border-b border-color-gray-200"} ${o}`,children:e.map(d=>{const g=n===d.key;return s.jsxs("button",{onClick:()=>t(d.key),className:`relative flex ${u?"flex-row items-center px-4 py-3":"flex-col items-center py-4"}
190
190
  text-sm font-medium transition-color duration-200 bg-color-transparent
191
191
  ${g?"text-color-blue-500":"text-color-gray-600 hover:text-color-blue-500 cursor-pointer"}
192
- ${a}`,children:[s.jsxs("div",{className:`flex items-center ${u?"space-x-3":"space-x-2"}`,children:[d.icon&&s.jsx("span",{children:d.icon}),s.jsx("span",{children:d.label})]}),g&&(u?s.jsx("div",{className:"absolute right-0 top-3 bottom-3 w-1 bg-color-blue-500 rounded-full"}):s.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-color-blue-500 rounded-full"}))]},d.key)})}),s.jsx("div",{className:`mt-4 ${u?"ml-6 mt-0":""} ${i}`,children:c==null?void 0:c.content})]})},Hl=({stats:e=[],className:n=""})=>s.jsx(Sr,{className:`w-full ${n}`,children:s.jsx("div",{className:"grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center",children:e.map((t,r)=>s.jsxs("div",{className:`flex items-center justify-center gap-4 lg:not-last:border-r md:not-last:border-r md:nth-2:border-r-0 md:not-last:border-b-0 not-last:border-b border-color-gray-200
193
- md:p-2 not-last:pb-4 w-full h-full ${t.className}`,children:[s.jsx("div",{className:`p-2 ${t.accentColor} ${t.accentBackground} flex-shrink-0 flex items-center justify-center p-4 text-md rounded-lg`,children:t.icon}),s.jsxs("div",{className:"flex flex-col justify-center gap-1 w-full ",children:[s.jsx("div",{className:"text-sm",children:t.name}),s.jsx("div",{className:`text-xl ${t.accentColor} font-semibold`,children:t.value})]})]},r))})});function Bl({items:e=[],logoJSX:n,position:t,defaultActive:r,open:o=!0,onClose:a,onItemSelect:i}){const[l,c]=w.useState(r),u=d=>{c(d),d.onClick&&d.onClick(),i&&i(d)};return s.jsx(s.Fragment,{children:s.jsx(kr,{open:o,onClose:a,anchor:t,showCloseIcon:!1,children:s.jsxs("div",{className:"",children:[n&&s.jsx("div",{className:"pb-6",children:n}),s.jsx("nav",{className:"space-y-2 text-sm font-medium text-color-gray-700",children:e.map(d=>d.href?s.jsxs(Br,{to:d.href,className:`flex items-center gap-3 py-3 px-4 cursor-pointer rounded-full w-full no-underline
192
+ ${i}`,children:[s.jsxs("div",{className:`flex items-center ${u?"space-x-3":"space-x-2"}`,children:[d.icon&&s.jsx("span",{children:d.icon}),s.jsx("span",{children:d.label})]}),g&&(u?s.jsx("div",{className:"absolute right-0 top-3 bottom-3 w-1 bg-color-blue-500 rounded-full"}):s.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1 bg-color-blue-500 rounded-full"}))]},d.key)})}),s.jsx("div",{className:`mt-4 ${u?"ml-6 mt-0":""} ${a}`,children:c==null?void 0:c.content})]})},Hl=({stats:e=[],className:n=""})=>s.jsx(Cr,{className:`w-full ${n}`,children:s.jsx("div",{className:"grid grid-columns-1 sm:grid-columns-1 md:grid-columns-2 lg:grid-columns-4 gap-4 justify-items-center",children:e.map((t,r)=>s.jsxs("div",{className:`flex items-center justify-center gap-4 lg:not-last:border-r md:not-last:border-r md:nth-2:border-r-0 md:not-last:border-b-0 not-last:border-b border-color-gray-200
193
+ md:p-2 not-last:pb-4 w-full h-full ${t.className}`,children:[s.jsx("div",{className:`p-2 ${t.accentColor} ${t.accentBackground} flex-shrink-0 flex items-center justify-center p-4 text-md rounded-lg`,children:t.icon}),s.jsxs("div",{className:"flex flex-col justify-center gap-1 w-full ",children:[s.jsx("div",{className:"text-sm",children:t.name}),s.jsx("div",{className:`text-xl ${t.accentColor} font-semibold`,children:t.value})]})]},r))})});function Bl({items:e=[],logoJSX:n,position:t,defaultActive:r,open:o=!0,onClose:i,onItemSelect:a}){const[l,c]=w.useState(r),u=d=>{c(d),d.onClick&&d.onClick(),a&&a(d)};return s.jsx(s.Fragment,{children:s.jsx(jr,{open:o,onClose:i,anchor:t,showCloseIcon:!1,children:s.jsxs("div",{className:"",children:[n&&s.jsx("div",{className:"pb-6",children:n}),s.jsx("nav",{className:"space-y-2 text-sm font-medium text-color-gray-700",children:e.map(d=>d.href?s.jsxs(Hr,{to:d.href,className:`flex items-center gap-3 py-3 px-4 cursor-pointer rounded-full w-full no-underline
194
194
  ${d.label===(l==null?void 0:l.label)?"bg-color-blue-500 text-color-white font-medium ":"hover:bg-color-gray-50 text-color-gray-600"}
195
195
  `,onClick:()=>u(d),children:[s.jsx("span",{className:"text-lg",children:d.icon}),s.jsx("span",{children:d.label})]},d.label):s.jsxs("button",{onClick:()=>u(d),className:`flex items-center gap-3 py-3 px-4 cursor-pointer rounded-full w-full no-underline
196
196
  ${d.label===(l==null?void 0:l.label)?"bg-color-blue-500 text-color-white font-medium ":"hover:bg-color-gray-50 text-color-gray-600 bg-color-transparent"}
197
- `,children:[s.jsx("span",{className:"text-lg",children:d.icon}),s.jsx("span",{children:d.label})]}))})]})})})}O.Accordion=vi,O.ActionMenu=mi,O.Alert=wi,O.Avatar=Ft,O.Backdrop=Ka,O.Badge=yi,O.BottomNavigation=Tl,O.Breadcrumbs=zl,O.Button=Ye,O.COLOR_MAP=fe,O.Card=Sr,O.CardWrapper=Jr,O.Carousel=ri,O.Checkbox=Qr,O.DashboardStatBoxes=Hl,O.DatePicker=Il,O.Dialog=jr,O.Divider=si,O.Drawer=kr,O.Dropdown=eo,O.DropzoneUploader=aa,O.EmptyState=oi,O.IconButton=we,O.List=Ya,O.ListItem=Za,O.Menu=Qn,O.OtpInput=er,O.Pagination=gr,O.PasswordInput=tr,O.Pill=pa,O.ProfileImageShowcase=fa,O.Progress=hr,O.RANGE_COLOR_MAP=Ue,O.RadioGroup=ci,O.Rating=ni,O.Select=ui,O.Sidebar=Bl,O.Skeleton=Xa,O.Slider=ei,O.Snackbar=ti,O.Stepper=ma,O.Table=Ua,O.Tabs=Vl,O.TextArea=Ja,O.TextInput=Lt,O.ToggleButton=li,O.ToggleSwitch=ai,O.Tooltip=di,O.Typography=mr,O.extendColorMap=Kr,O.extendRangeColorMap=Xr,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});
197
+ `,children:[s.jsx("span",{className:"text-lg",children:d.icon}),s.jsx("span",{children:d.label})]}))})]})})})}O.Accordion=va,O.ActionMenu=ma,O.Alert=wa,O.Avatar=Ft,O.Backdrop=Zi,O.Badge=ya,O.BottomNavigation=Tl,O.Breadcrumbs=zl,O.Button=Ye,O.COLOR_MAP=fe,O.Card=Cr,O.CardWrapper=Xr,O.Carousel=ra,O.Checkbox=Jr,O.DashboardStatBoxes=Hl,O.DatePicker=Il,O.Dialog=Sr,O.Divider=sa,O.Drawer=jr,O.Dropdown=Qr,O.DropzoneUploader=oi,O.EmptyState=oa,O.IconButton=we,O.List=Ui,O.ListItem=Yi,O.Menu=Qn,O.OtpInput=er,O.Pagination=gr,O.PasswordInput=tr,O.Pill=di,O.ProfileImageShowcase=pi,O.Progress=ta,O.RANGE_COLOR_MAP=Ue,O.RadioGroup=ca,O.Rating=na,O.Select=ua,O.Sidebar=Bl,O.Skeleton=Ki,O.Slider=Qi,O.Snackbar=ea,O.Stepper=fi,O.Table=Wi,O.Tabs=Vl,O.TextArea=Xi,O.TextInput=Lt,O.ToggleButton=la,O.ToggleSwitch=ia,O.Tooltip=da,O.Typography=mr,O.extendColorMap=Zr,O.extendRangeColorMap=Kr,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"})});