general-basic-form 2.1.4 → 2.1.7

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(ke,B){typeof exports=="object"&&typeof module<"u"?B(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],B):(ke=typeof globalThis<"u"?globalThis:ke||self,B(ke.Index={},ke.react))})(this,(function(ke,B){"use strict";function ps(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const g=ps(B);function ms(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gt={exports:{}},tt={};/**
1
+ (function(ge,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],j):(ge=typeof globalThis<"u"?globalThis:ge||self,j(ge.Index={},ge.react))})(this,(function(ge,j){"use strict";function aa(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const g=aa(j);function ia(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Tt={exports:{}},ct={};/**
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 zr;function gs(){if(zr)return tt;zr=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,s){var i=null;if(s!==void 0&&(i=""+s),o.key!==void 0&&(i=""+o.key),"key"in o){s={};for(var a in o)a!=="key"&&(s[a]=o[a])}else s=o;return o=s.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:s}}return tt.Fragment=t,tt.jsx=r,tt.jsxs=r,tt}var rt={};/**
9
+ */var dr;function ca(){if(dr)return ct;dr=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,o,s){var a=null;if(s!==void 0&&(a=""+s),o.key!==void 0&&(a=""+o.key),"key"in o){s={};for(var i in o)i!=="key"&&(s[i]=o[i])}else s=o;return o=s.ref,{$$typeof:t,type:r,key:a,ref:o!==void 0?o:null,props:s}}return ct.Fragment=e,ct.jsx=n,ct.jsxs=n,ct}var lt={};/**
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 $r;function hs(){return $r||($r=1,process.env.NODE_ENV!=="production"&&(function(){function e(E){if(E==null)return null;if(typeof E=="function")return E.$$typeof===F?null:E.displayName||E.name||null;if(typeof E=="string")return E;switch(E){case h:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case O:return"Suspense";case x:return"SuspenseList";case I:return"Activity"}if(typeof E=="object")switch(typeof E.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),E.$$typeof){case p:return"Portal";case R:return E.displayName||"Context";case S:return(E._context.displayName||"Context")+".Consumer";case k:var M=E.render;return E=E.displayName,E||(E=M.displayName||M.name||"",E=E!==""?"ForwardRef("+E+")":"ForwardRef"),E;case C:return M=E.displayName||null,M!==null?M:e(E.type)||"Memo";case T:M=E._payload,E=E._init;try{return e(E(M))}catch{}}return null}function t(E){return""+E}function r(E){try{t(E);var M=!1}catch{M=!0}if(M){M=console;var j=M.error,$=typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object";return j.call(M,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",$),t(E)}}function n(E){if(E===h)return"<>";if(typeof E=="object"&&E!==null&&E.$$typeof===T)return"<...>";try{var M=e(E);return M?"<"+M+">":"<...>"}catch{return"<...>"}}function o(){var E=V.A;return E===null?null:E.getOwner()}function s(){return Error("react-stack-top-frame")}function i(E){if(H.call(E,"key")){var M=Object.getOwnPropertyDescriptor(E,"key").get;if(M&&M.isReactWarning)return!1}return E.key!==void 0}function a(E,M){function j(){D||(D=!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)",M))}j.isReactWarning=!0,Object.defineProperty(E,"key",{get:j,configurable:!0})}function c(){var E=e(this.type);return z[E]||(z[E]=!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.")),E=this.props.ref,E!==void 0?E:null}function l(E,M,j,$,ie,ue){var _=j.ref;return E={$$typeof:v,type:E,key:M,props:j,_owner:$},(_!==void 0?_:null)!==null?Object.defineProperty(E,"ref",{enumerable:!1,get:c}):Object.defineProperty(E,"ref",{enumerable:!1,value:null}),E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(E,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(E,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ie}),Object.defineProperty(E,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E}function f(E,M,j,$,ie,ue){var _=M.children;if(_!==void 0)if($)if(L(_)){for($=0;$<_.length;$++)d(_[$]);Object.freeze&&Object.freeze(_)}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 d(_);if(H.call(M,"key")){_=e(E);var K=Object.keys(M).filter(function(G){return G!=="key"});$=0<K.length?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}",ee[_+$]||(K=0<K.length?"{"+K.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var fr;function la(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&(function(){function t(R){if(R==null)return null;if(typeof R=="function")return R.$$typeof===M?null:R.displayName||R.name||null;if(typeof R=="string")return R;switch(R){case h:return"Fragment";case y:return"Profiler";case b:return"StrictMode";case _:return"Suspense";case E:return"SuspenseList";case N:return"Activity"}if(typeof R=="object")switch(typeof R.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),R.$$typeof){case p:return"Portal";case C:return R.displayName||"Context";case x:return(R._context.displayName||"Context")+".Consumer";case T:var L=R.render;return R=R.displayName,R||(R=L.displayName||L.name||"",R=R!==""?"ForwardRef("+R+")":"ForwardRef"),R;case S:return L=R.displayName||null,L!==null?L:t(R.type)||"Memo";case k:L=R._payload,R=R._init;try{return t(R(L))}catch{}}return null}function e(R){return""+R}function n(R){try{e(R);var L=!1}catch{L=!0}if(L){L=console;var $=L.error,W=typeof Symbol=="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object";return $.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W),e(R)}}function r(R){if(R===h)return"<>";if(typeof R=="object"&&R!==null&&R.$$typeof===k)return"<...>";try{var L=t(R);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function o(){var R=V.A;return R===null?null:R.getOwner()}function s(){return Error("react-stack-top-frame")}function a(R){if(B.call(R,"key")){var L=Object.getOwnPropertyDescriptor(R,"key").get;if(L&&L.isReactWarning)return!1}return R.key!==void 0}function i(R,L){function $(){D||(D=!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)",L))}$.isReactWarning=!0,Object.defineProperty(R,"key",{get:$,configurable:!0})}function l(){var R=t(this.type);return F[R]||(F[R]=!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.")),R=this.props.ref,R!==void 0?R:null}function c(R,L,$,W,ce,de){var O=$.ref;return R={$$typeof:v,type:R,key:L,props:$,_owner:W},(O!==void 0?O:null)!==null?Object.defineProperty(R,"ref",{enumerable:!1,get:l}):Object.defineProperty(R,"ref",{enumerable:!1,value:null}),R._store={},Object.defineProperty(R._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(R,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(R,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ce}),Object.defineProperty(R,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.freeze&&(Object.freeze(R.props),Object.freeze(R)),R}function f(R,L,$,W,ce,de){var O=L.children;if(O!==void 0)if(W)if(z(O)){for(W=0;W<O.length;W++)u(O[W]);Object.freeze&&Object.freeze(O)}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 u(O);if(B.call(L,"key")){O=t(R);var U=Object.keys(L).filter(function(G){return G!=="key"});W=0<U.length?"{key: someKey, "+U.join(": ..., ")+": ...}":"{key: someKey}",te[O+W]||(U=0<U.length?"{"+U.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} />`,$,_,K,_),ee[_+$]=!0)}if(_=null,j!==void 0&&(r(j),_=""+j),i(M)&&(r(M.key),_=""+M.key),"key"in M){j={};for(var Q in M)Q!=="key"&&(j[Q]=M[Q])}else j=M;return _&&a(j,typeof E=="function"?E.displayName||E.name||"Unknown":E),l(E,_,j,o(),ie,ue)}function d(E){u(E)?E._store&&(E._store.validated=1):typeof E=="object"&&E!==null&&E.$$typeof===T&&(E._payload.status==="fulfilled"?u(E._payload.value)&&E._payload.value._store&&(E._payload.value._store.validated=1):E._store&&(E._store.validated=1))}function u(E){return typeof E=="object"&&E!==null&&E.$$typeof===v}var m=B,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),R=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),F=Symbol.for("react.client.reference"),V=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,L=Array.isArray,U=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(E){return E()}};var D,z={},P=m.react_stack_bottom_frame.bind(m,s)(),q=U(n(s)),ee={};rt.Fragment=h,rt.jsx=function(E,M,j){var $=1e4>V.recentlyCreatedOwnerStacks++;return f(E,M,j,!1,$?Error("react-stack-top-frame"):P,$?U(n(E)):q)},rt.jsxs=function(E,M,j){var $=1e4>V.recentlyCreatedOwnerStacks++;return f(E,M,j,!0,$?Error("react-stack-top-frame"):P,$?U(n(E)):q)}})()),rt}var Vr;function vs(){return Vr||(Vr=1,process.env.NODE_ENV==="production"?gt.exports=gs():gt.exports=hs()),gt.exports}var w=vs(),ht={exports:{}},Gt={};/**
22
+ <%s key={someKey} {...props} />`,W,O,U,O),te[O+W]=!0)}if(O=null,$!==void 0&&(n($),O=""+$),a(L)&&(n(L.key),O=""+L.key),"key"in L){$={};for(var ee in L)ee!=="key"&&($[ee]=L[ee])}else $=L;return O&&i($,typeof R=="function"?R.displayName||R.name||"Unknown":R),c(R,O,$,o(),ce,de)}function u(R){d(R)?R._store&&(R._store.validated=1):typeof R=="object"&&R!==null&&R.$$typeof===k&&(R._payload.status==="fulfilled"?d(R._payload.value)&&R._payload.value._store&&(R._payload.value._store.validated=1):R._store&&(R._store.validated=1))}function d(R){return typeof R=="object"&&R!==null&&R.$$typeof===v}var m=j,v=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),M=Symbol.for("react.client.reference"),V=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=Object.prototype.hasOwnProperty,z=Array.isArray,H=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(R){return R()}};var D,F={},P=m.react_stack_bottom_frame.bind(m,s)(),q=H(r(s)),te={};lt.Fragment=h,lt.jsx=function(R,L,$){var W=1e4>V.recentlyCreatedOwnerStacks++;return f(R,L,$,!1,W?Error("react-stack-top-frame"):P,W?H(r(R)):q)},lt.jsxs=function(R,L,$){var W=1e4>V.recentlyCreatedOwnerStacks++;return f(R,L,$,!0,W?Error("react-stack-top-frame"):P,W?H(r(R)):q)}})()),lt}var pr;function ua(){return pr||(pr=1,process.env.NODE_ENV==="production"?Tt.exports=ca():Tt.exports=la()),Tt.exports}var w=ua(),Pt={exports:{}},pn={};/**
23
23
  * @license React
24
24
  * react-compiler-runtime.production.js
25
25
  *
@@ -27,7 +27,7 @@ React keys must be passed directly to JSX without using spread:
27
27
  *
28
28
  * This source code is licensed under the MIT license found in the
29
29
  * LICENSE file in the root directory of this source tree.
30
- */var Wr;function ys(){if(Wr)return Gt;Wr=1;var e=B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return Gt.c=function(t){return e.H.useMemoCache(t)},Gt}var qt={};/**
30
+ */var mr;function da(){if(mr)return pn;mr=1;var t=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return pn.c=function(e){return t.H.useMemoCache(e)},pn}var mn={};/**
31
31
  * @license React
32
32
  * react-compiler-runtime.development.js
33
33
  *
@@ -35,61 +35,61 @@ React keys must be passed directly to JSX without using spread:
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */var Hr;function bs(){return Hr||(Hr=1,process.env.NODE_ENV!=="production"&&(function(){var e=B.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;qt.c=function(t){var r=e.H;return r===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
38
+ */var gr;function fa(){return gr||(gr=1,process.env.NODE_ENV!=="production"&&(function(){var t=j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;mn.c=function(e){var n=t.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
39
39
  1. You might have mismatching versions of React and the renderer (such as React DOM)
40
40
  2. You might be breaking the Rules of Hooks
41
41
  3. You might have more than one copy of React in the same app
42
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),r.useMemoCache(t)}})()),qt}var Ur;function ws(){return Ur||(Ur=1,process.env.NODE_ENV==="production"?ht.exports=ys():ht.exports=bs()),ht.exports}var re=ws();const xs=e=>{const{item:t,id:r=B.useId(),coms:{Input:n}}=e,{dispatchQueryParams:o,queryParams:s,message:i,formLoading:a}=B.useContext(Rt);return w.jsx(n,{id:r,name:t.prop,value:s[t.prop]||"",disabled:a,onChange:c=>o({data:{...s,[t.prop]:c.target.value}}),"aria-invalid":i?.[t.prop]&&i?.[t.prop].length>0,...t.setting})},Ss=e=>{const{item:t,id:r=B.useId(),coms:{Select:n,SelectTrigger:o,SelectValue:s,SelectContent:i,SelectGroup:a,SelectItem:c}}=e,{setting:l}=t,{dispatchQueryParams:f,queryParams:d,message:u,formLoading:m}=B.useContext(Rt);return w.jsxs(n,{name:t.prop,value:d[t.prop]||"",disabled:m,onChange:v=>f({data:{...d,[t.prop]:v.target.value}}),onValueChange:v=>f({data:{...d,[t.prop]:v}}),"aria-invalid":u?.[t.prop]&&u?.[t.prop].length>0,...t.setting,children:[w.jsx(o,{id:r,children:w.jsx(s,{placeholder:l.placeholder})}),w.jsx(i,{children:w.jsx(a,{children:(t.option||[]).map((v,p)=>w.jsx(c,{value:v.value,children:v.label},v.value))})})]})},Kr=e=>{const t=re.c(8),{coms:r,item:n,id:o,type:s}=e,i=s===void 0?"input":s;if(/^input$/i.test(i)){let a;return t[0]!==r||t[1]!==o||t[2]!==n?(a=w.jsx(xs,{id:o,coms:r,item:n}),t[0]=r,t[1]=o,t[2]=n,t[3]=a):a=t[3],a}if(/^select$/i.test(i)){let a;return t[4]!==r||t[5]!==o||t[6]!==n?(a=w.jsx(Ss,{id:o,coms:r,item:n}),t[4]=r,t[5]=o,t[6]=n,t[7]=a):a=t[7],a}};/**
42
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(e)}})()),mn}var hr;function pa(){return hr||(hr=1,process.env.NODE_ENV==="production"?Pt.exports=da():Pt.exports=fa()),Pt.exports}var J=pa();const ma=t=>{const{item:e,id:n=j.useId(),coms:{Input:r}}=t,{dispatchQueryParams:o,queryParams:s,message:a,formLoading:i}=j.useContext(Lt);return w.jsx(r,{id:n,name:e.prop,value:s[e.prop]||"",disabled:i,onChange:l=>o({data:{...s,[e.prop]:l.target.value}}),"aria-invalid":a?.[e.prop]&&a?.[e.prop].length>0,...e.setting})},ga=t=>{const{item:e,id:n=j.useId(),coms:{Select:r,SelectTrigger:o,SelectValue:s,SelectContent:a,SelectGroup:i,SelectItem:l}}=t,{setting:c}=e,{dispatchQueryParams:f,queryParams:u,message:d,formLoading:m}=j.useContext(Lt);return w.jsxs(r,{name:e.prop,value:u[e.prop]||"",disabled:m,onChange:v=>f({data:{...u,[e.prop]:v.target.value}}),onValueChange:v=>f({data:{...u,[e.prop]:v}}),"aria-invalid":d?.[e.prop]&&d?.[e.prop].length>0,...e.setting,children:[w.jsx(o,{id:n,children:w.jsx(s,{placeholder:c.placeholder})}),w.jsx(a,{children:w.jsx(i,{children:(e.option||[]).map((v,p)=>w.jsx(l,{value:v.value,children:v.label},v.value))})})]})},vr=t=>{const e=J.c(8),{coms:n,item:r,id:o,type:s}=t,a=s===void 0?"input":s;if(/^input$/i.test(a)){let i;return e[0]!==n||e[1]!==o||e[2]!==r?(i=w.jsx(ma,{id:o,coms:n,item:r}),e[0]=n,e[1]=o,e[2]=r,e[3]=i):i=e[3],i}if(/^select$/i.test(a)){let i;return e[4]!==n||e[5]!==o||e[6]!==r?(i=w.jsx(ga,{id:o,coms:n,item:r}),e[4]=n,e[5]=o,e[6]=r,e[7]=i):i=e[7],i}};/**
43
43
  * @license lucide-react v0.547.0 - ISC
44
44
  *
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
- */const Es=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Cs=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Gr=e=>{const t=Cs(e);return t.charAt(0).toUpperCase()+t.slice(1)},qr=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Rs=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
47
+ */const ha=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),va=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,r)=>r?r.toUpperCase():n.toLowerCase()),yr=t=>{const e=va(t);return e.charAt(0).toUpperCase()+e.slice(1)},br=(...t)=>t.filter((e,n,r)=>!!e&&e.trim()!==""&&r.indexOf(e)===n).join(" ").trim(),ya=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
48
48
  * @license lucide-react v0.547.0 - ISC
49
49
  *
50
50
  * This source code is licensed under the ISC license.
51
51
  * See the LICENSE file in the root directory of this source tree.
52
- */var Ps={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
52
+ */var ba={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
53
53
  * @license lucide-react v0.547.0 - ISC
54
54
  *
55
55
  * This source code is licensed under the ISC license.
56
56
  * See the LICENSE file in the root directory of this source tree.
57
- */const ks=B.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:s,iconNode:i,...a},c)=>B.createElement("svg",{ref:c,...Ps,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:qr("lucide",o),...!s&&!Rs(a)&&{"aria-hidden":"true"},...a},[...i.map(([l,f])=>B.createElement(l,f)),...Array.isArray(s)?s:[s]]));/**
57
+ */const wa=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:a,...i},l)=>j.createElement("svg",{ref:l,...ba,width:e,height:e,stroke:t,strokeWidth:r?Number(n)*24/Number(e):n,className:br("lucide",o),...!s&&!ya(i)&&{"aria-hidden":"true"},...i},[...a.map(([c,f])=>j.createElement(c,f)),...Array.isArray(s)?s:[s]]));/**
58
58
  * @license lucide-react v0.547.0 - ISC
59
59
  *
60
60
  * This source code is licensed under the ISC license.
61
61
  * See the LICENSE file in the root directory of this source tree.
62
- */const Ve=(e,t)=>{const r=B.forwardRef(({className:n,...o},s)=>B.createElement(ks,{ref:s,iconNode:t,className:qr(`lucide-${Es(Gr(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Gr(e),r};/**
62
+ */const qe=(t,e)=>{const n=j.forwardRef(({className:r,...o},s)=>j.createElement(wa,{ref:s,iconNode:e,className:br(`lucide-${ha(yr(t))}`,`lucide-${t}`,r),...o}));return n.displayName=yr(t),n};/**
63
63
  * @license lucide-react v0.547.0 - ISC
64
64
  *
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
- */const _s=Ve("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
67
+ */const xa=qe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
68
68
  * @license lucide-react v0.547.0 - ISC
69
69
  *
70
70
  * This source code is licensed under the ISC license.
71
71
  * See the LICENSE file in the root directory of this source tree.
72
- */const Yr=Ve("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
72
+ */const wr=qe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
73
73
  * @license lucide-react v0.547.0 - ISC
74
74
  *
75
75
  * This source code is licensed under the ISC license.
76
76
  * See the LICENSE file in the root directory of this source tree.
77
- */const Os=Ve("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
77
+ */const Sa=qe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
78
78
  * @license lucide-react v0.547.0 - ISC
79
79
  *
80
80
  * This source code is licensed under the ISC license.
81
81
  * See the LICENSE file in the root directory of this source tree.
82
- */const Ts=Ve("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
82
+ */const Ea=qe("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
83
83
  * @license lucide-react v0.547.0 - ISC
84
84
  *
85
85
  * This source code is licensed under the ISC license.
86
86
  * See the LICENSE file in the root directory of this source tree.
87
- */const As=Ve("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
87
+ */const Ca=qe("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
88
88
  * @license lucide-react v0.547.0 - ISC
89
89
  *
90
90
  * This source code is licensed under the ISC license.
91
91
  * See the LICENSE file in the root directory of this source tree.
92
- */const Ns=Ve("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Is=e=>{const{coms:t,item:r={},id:n=B.useId()}=e,{setting:o={},prop:s}=r,{ndim:i=1,columns:a=[]}=o,{Button:c}=t,l=[],f=3;for(let O=0;O<i;O++)l.push({});const{dispatchQueryParams:d,queryParams:u,formLoading:m}=B.useContext(Rt),v=(O,x="")=>{const C=[];for(let T=0;T<l.length;T++){const I={key:"",value:""};I.key=`${s}[${O}][${T}]`,I.value=(typeof x=="object"?x?.[a?.[T]?.prop]:x)||"",C.push(I)}return C},[p,h]=B.useState([[...v(0)]]),y=()=>{h([...p,[...v(p.length)]])},b=O=>{const x=[...p];x.splice(O,1),h(x),R(x)},S=(O,x)=>{let C;typeof x?.target?.value=="string"?C=x?.target?.value:C=x;const{rowIndex:T,columnIndex:I}=O,F=[...p];F[T][I].value=C,h(F),R(F)},R=O=>{let x=[];i===1?x=O.flat().map(C=>C.value):x=O.map(C=>{const T={};return C.forEach((I,F)=>{T[a[F]?.prop]=I.value}),T}),d({data:{...u,[r.prop]:x}})};B.useEffect(()=>{k()},[u?.[r.prop]]);const k=async()=>{const O=u?.[r.prop],x=[];if(O&&Array.isArray(O)&&O.length>0)for(let C=0;C<O.length;C++){const T=O[C];x.push([...v(C,T)])}h(x)};return w.jsxs("div",{id:n,children:[w.jsx("div",{className:`flex gap-${f} mb-${f} justify-end`,children:w.jsxs(c,{onClick:y,disabled:m,children:[w.jsx(As,{}),"添加",r.label]})}),p.map((O,x)=>w.jsxs("div",{className:`flex gap-${f} mb-${f}`,children:[O.map((C,T)=>{let I={...r};const F=r?.setting?.columns?.[T];return F&&(I={...F}),I.type==="form-list"&&(I.type="input"),I.setting={...I.setting,name:C.key,value:C.value,onChange:S.bind(void 0,{rowIndex:x,columnIndex:T}),onValueChange:S.bind(void 0,{rowIndex:x,columnIndex:T})},I.type==="input"&&delete I.setting.onValueChange,w.jsx(Kr,{coms:t,item:I,id:C.key,type:I.type},C.key)}),w.jsx(c,{variant:"outline",size:"icon",className:"rounded-full",disabled:m,onClick:b.bind(void 0,x),children:w.jsx(Ns,{color:"red"})})]},x))]})};function Xr(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Xr(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qr(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Xr(e))&&(n&&(n+=" "),n+=t);return n}const Yt="-",Ds=e=>{const t=Ls(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{const a=i.split(Yt);return a[0]===""&&a.length!==1&&a.shift(),Zr(a,t)||Ms(i)},getConflictingClassGroupIds:(i,a)=>{const c=r[i]||[];return a&&n[i]?[...c,...n[i]]:c}}},Zr=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Zr(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Yt);return t.validators.find(({validator:i})=>i(s))?.classGroupId},Jr=/^\[(.+)\]$/,Ms=e=>{if(Jr.test(e)){const t=Jr.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ls=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)Xt(r[o],n,o,t);return n},Xt=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:en(t,o);s.classGroupId=r;return}if(typeof o=="function"){if(js(o)){Xt(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([s,i])=>{Xt(i,en(t,s),r,n)})})},en=(e,t)=>{let r=e;return t.split(Yt).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},js=e=>e.isThemeGetter,Bs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(s,i)=>{r.set(s,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(s){let i=r.get(s);if(i!==void 0)return i;if((i=n.get(s))!==void 0)return o(s,i),i},set(s,i){r.has(s)?r.set(s,i):o(s,i)}}},Qt="!",Zt=":",Fs=Zt.length,zs=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const s=[];let i=0,a=0,c=0,l;for(let v=0;v<o.length;v++){let p=o[v];if(i===0&&a===0){if(p===Zt){s.push(o.slice(c,v)),c=v+Fs;continue}if(p==="/"){l=v;continue}}p==="["?i++:p==="]"?i--:p==="("?a++:p===")"&&a--}const f=s.length===0?o:o.substring(c),d=$s(f),u=d!==f,m=l&&l>c?l-c:void 0;return{modifiers:s,hasImportantModifier:u,baseClassName:d,maybePostfixModifierPosition:m}};if(t){const o=t+Zt,s=n;n=i=>i.startsWith(o)?s(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=s=>r({className:s,parseClassName:o})}return n},$s=e=>e.endsWith(Qt)?e.substring(0,e.length-1):e.startsWith(Qt)?e.substring(1):e,Vs=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(n=>[n,!0]));return n=>{if(n.length<=1)return n;const o=[];let s=[];return n.forEach(i=>{i[0]==="["||t[i]?(o.push(...s.sort(),i),s=[]):s.push(i)}),o.push(...s.sort()),o}},Ws=e=>({cache:Bs(e.cacheSize),parseClassName:zs(e),sortModifiers:Vs(e),...Ds(e)}),Hs=/\s+/,Us=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:s}=t,i=[],a=e.trim().split(Hs);let c="";for(let l=a.length-1;l>=0;l-=1){const f=a[l],{isExternal:d,modifiers:u,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}=r(f);if(d){c=f+(c.length>0?" "+c:c);continue}let h=!!p,y=n(h?v.substring(0,p):v);if(!y){if(!h){c=f+(c.length>0?" "+c:c);continue}if(y=n(v),!y){c=f+(c.length>0?" "+c:c);continue}h=!1}const b=s(u).join(":"),S=m?b+Qt:b,R=S+y;if(i.includes(R))continue;i.push(R);const k=o(y,h);for(let O=0;O<k.length;++O){const x=k[O];i.push(S+x)}c=f+(c.length>0?" "+c:c)}return c};function Ks(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=tn(t))&&(n&&(n+=" "),n+=r);return n}const tn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=tn(e[n]))&&(r&&(r+=" "),r+=t);return r};function Gs(e,...t){let r,n,o,s=i;function i(c){const l=t.reduce((f,d)=>d(f),e());return r=Ws(l),n=r.cache.get,o=r.cache.set,s=a,a(c)}function a(c){const l=n(c);if(l)return l;const f=Us(c,r);return o(c,f),f}return function(){return s(Ks.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},rn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nn=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qs=/^\d+\/\d+$/,Ys=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Qs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Zs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Js=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,We=e=>qs.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),_e=e=>!!e&&Number.isInteger(Number(e)),Jt=e=>e.endsWith("%")&&W(e.slice(0,-1)),Ee=e=>Ys.test(e),ei=()=>!0,ti=e=>Xs.test(e)&&!Qs.test(e),on=()=>!1,ri=e=>Zs.test(e),ni=e=>Js.test(e),oi=e=>!A(e)&&!N(e),si=e=>He(e,un,on),A=e=>rn.test(e),Me=e=>He(e,dn,ti),er=e=>He(e,ui,W),sn=e=>He(e,ln,on),ii=e=>He(e,cn,ni),vt=e=>He(e,fn,ri),N=e=>nn.test(e),nt=e=>Ue(e,dn),ai=e=>Ue(e,di),an=e=>Ue(e,ln),li=e=>Ue(e,un),ci=e=>Ue(e,cn),yt=e=>Ue(e,fn,!0),He=(e,t,r)=>{const n=rn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Ue=(e,t,r=!1)=>{const n=nn.exec(e);return n?n[1]?t(n[1]):r:!1},ln=e=>e==="position"||e==="percentage",cn=e=>e==="image"||e==="url",un=e=>e==="length"||e==="size"||e==="bg-size",dn=e=>e==="length",ui=e=>e==="number",di=e=>e==="family-name",fn=e=>e==="shadow",fi=Gs(()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),s=te("leading"),i=te("breakpoint"),a=te("container"),c=te("spacing"),l=te("radius"),f=te("shadow"),d=te("inset-shadow"),u=te("text-shadow"),m=te("drop-shadow"),v=te("blur"),p=te("perspective"),h=te("aspect"),y=te("ease"),b=te("animate"),S=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],k=()=>[...R(),N,A],O=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],C=()=>[N,A,c],T=()=>[We,"full","auto",...C()],I=()=>[_e,"none","subgrid",N,A],F=()=>["auto",{span:["full",_e,N,A]},_e,N,A],V=()=>[_e,"auto",N,A],H=()=>["auto","min","max","fr",N,A],L=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...C()],z=()=>[We,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],P=()=>[e,N,A],q=()=>[...R(),an,sn,{position:[N,A]}],ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",li,si,{size:[N,A]}],M=()=>[Jt,nt,Me],j=()=>["","none","full",l,N,A],$=()=>["",W,nt,Me],ie=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[W,Jt,an,sn],K=()=>["","none",v,N,A],Q=()=>["none",W,N,A],G=()=>["none",W,N,A],Y=()=>[W,N,A],X=()=>[We,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ee],breakpoint:[Ee],color:[ei],container:[Ee],"drop-shadow":[Ee],ease:["in","out","in-out"],font:[oi],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ee],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ee],shadow:[Ee],spacing:["px",W],text:[Ee],"text-shadow":[Ee],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",We,A,N,h]}],container:["container"],columns:[{columns:[W,A,N,a]}],"break-after":[{"break-after":S()}],"break-before":[{"break-before":S()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:k()}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{start:T()}],end:[{end:T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:["visible","invisible","collapse"],z:[{z:[_e,"auto",N,A]}],basis:[{basis:[We,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[W,We,"auto","initial","none",A]}],grow:[{grow:["",W,N,A]}],shrink:[{shrink:["",W,N,A]}],order:[{order:[_e,"first","last","none",N,A]}],"grid-cols":[{"grid-cols":I()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":H()}],"auto-rows":[{"auto-rows":H()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...L(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...L()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":L()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[a,"screen",...z()]}],"min-w":[{"min-w":[a,"screen","none",...z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[i]},...z()]}],h:[{h:["screen","lh",...z()]}],"min-h":[{"min-h":["screen","lh","none",...z()]}],"max-h":[{"max-h":["screen","lh",...z()]}],"font-size":[{text:["base",r,nt,Me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,N,er]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Jt,A]}],"font-family":[{font:[ai,A,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,N,A]}],"line-clamp":[{"line-clamp":[W,"none",N,er]}],leading:[{leading:[s,...C()]}],"list-image":[{"list-image":["none",N,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:[W,"from-font","auto",N,Me]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[W,"auto",N,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:ee()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_e,N,A],radial:["",N,A],conic:[_e,N,A]},ci,ii]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ie(),"hidden","none"]}],"divide-style":[{divide:[...ie(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ie(),"none","hidden"]}],"outline-offset":[{"outline-offset":[W,N,A]}],"outline-w":[{outline:["",W,nt,Me]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,yt,vt]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",d,yt,vt]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[W,Me]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",u,yt,vt]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[W,N,A]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[W]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[N,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":R()}],"mask-image-conic-pos":[{"mask-conic":[W]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:ee()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,A]}],filter:[{filter:["","none",N,A]}],blur:[{blur:K()}],brightness:[{brightness:[W,N,A]}],contrast:[{contrast:[W,N,A]}],"drop-shadow":[{"drop-shadow":["","none",m,yt,vt]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",W,N,A]}],"hue-rotate":[{"hue-rotate":[W,N,A]}],invert:[{invert:["",W,N,A]}],saturate:[{saturate:[W,N,A]}],sepia:[{sepia:["",W,N,A]}],"backdrop-filter":[{"backdrop-filter":["","none",N,A]}],"backdrop-blur":[{"backdrop-blur":K()}],"backdrop-brightness":[{"backdrop-brightness":[W,N,A]}],"backdrop-contrast":[{"backdrop-contrast":[W,N,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",W,N,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[W,N,A]}],"backdrop-invert":[{"backdrop-invert":["",W,N,A]}],"backdrop-opacity":[{"backdrop-opacity":[W,N,A]}],"backdrop-saturate":[{"backdrop-saturate":[W,N,A]}],"backdrop-sepia":[{"backdrop-sepia":["",W,N,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[W,"initial",N,A]}],ease:[{ease:["linear","initial",y,N,A]}],delay:[{delay:[W,N,A]}],animate:[{animate:["none",b,N,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,N,A]}],"perspective-origin":[{"perspective-origin":k()}],rotate:[{rotate:Q()}],"rotate-x":[{"rotate-x":Q()}],"rotate-y":[{"rotate-y":Q()}],"rotate-z":[{"rotate-z":Q()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:Y()}],"skew-x":[{"skew-x":Y()}],"skew-y":[{"skew-y":Y()}],transform:[{transform:[N,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:k()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:X()}],"translate-x":[{"translate-x":X()}],"translate-y":[{"translate-y":X()}],"translate-z":[{"translate-z":X()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N,A]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[W,nt,Me,er]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function ae(...e){return fi(Qr(e))}function pi(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("size-4 animate-spin",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx(Ts,{role:"status","aria-label":"Loading",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}const pn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mn=Qr,gn=(e,t)=>r=>{var n;if(t?.variants==null)return mn(e,r?.class,r?.className);const{variants:o,defaultVariants:s}=t,i=Object.keys(o).map(l=>{const f=r?.[l],d=s?.[l];if(f===null)return null;const u=pn(f)||pn(d);return o[l][u]}),a=r&&Object.entries(r).reduce((l,f)=>{let[d,u]=f;return u===void 0||(l[d]=u),l},{}),c=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,f)=>{let{class:d,className:u,...m}=f;return Object.entries(m).every(v=>{let[p,h]=v;return Array.isArray(h)?h.includes({...s,...a}[p]):{...s,...a}[p]===h})?[...l,d,u]:l},[]);return mn(e,i,c,r?.class,r?.className)};var bt={exports:{}},oe={};/**
92
+ */const Ra=qe("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),xr=t=>{const{coms:e,item:n={},id:r=j.useId()}=t,{setting:o={},prop:s}=n,{ndim:a=1,columns:i=[]}=o,{Button:l}=e,c=[],f=3;for(let _=0;_<a;_++)c.push({});const{dispatchQueryParams:u,queryParams:d,formLoading:m}=j.useContext(Lt),v=(_,E="")=>{const S=[];for(let k=0;k<c.length;k++){const N={key:"",value:""};N.key=`${s}[${_}][${k}]`,N.value=(typeof E=="object"?E?.[i?.[k]?.prop]:E)||"",S.push(N)}return S},[p,h]=j.useState([[...v(0)]]),b=()=>{h([...p,[...v(p.length)]])},y=async _=>{const E=[...p];n.removeItemAction&&await n.removeItemAction(d?.[n.prop],_),E.splice(_,1),h(E),C(E)},x=(_,E)=>{let S;typeof E?.target?.value=="string"?S=E?.target?.value:S=E;const{rowIndex:k,columnIndex:N}=_,M=[...p];M[k][N].value=S,h(M),C(M)},C=_=>{let E=[];a===1?E=_.flat().map(S=>S.value):E=_.map(S=>{const k={};return S.forEach((N,M)=>{k[i[M]?.prop]=N.value}),k}),u({data:{...d,[n.prop]:E}})};j.useEffect(()=>{T()},[d?.[n.prop]]);const T=async()=>{const _=d?.[n.prop],E=[];if(_&&Array.isArray(_)&&_.length>0)for(let S=0;S<_.length;S++){const k=_[S];E.push([...v(S,k)])}h(E)};return w.jsxs("div",{id:r,children:[w.jsx("div",{className:`flex gap-${f} mb-${f} justify-end`,children:w.jsxs(l,{onClick:b,disabled:m,children:[w.jsx(Ca,{}),"添加",n.label]})}),p.map((_,E)=>w.jsxs("div",{className:`flex gap-${f} mb-${f}`,children:[_.map((S,k)=>{let N={...n};const M=n?.setting?.columns?.[k];return M&&(N={...M}),N.type==="form-list"&&(N.type="input"),N.setting={...N.setting,name:S.key,value:S.value,onChange:x.bind(void 0,{rowIndex:E,columnIndex:k}),onValueChange:x.bind(void 0,{rowIndex:E,columnIndex:k})},N.type==="input"&&delete N.setting.onValueChange,w.jsx(vr,{coms:e,item:N,id:S.key,type:N.type},S.key)}),w.jsx(l,{variant:"outline",size:"icon",className:"rounded-full",disabled:m,onClick:y.bind(void 0,E),children:w.jsx(Ra,{color:"red"})})]},E))]})};function Sr(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=Sr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Er(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=Sr(t))&&(r&&(r+=" "),r+=e);return r}const gn="-",Ta=t=>{const e=_a(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:a=>{const i=a.split(gn);return i[0]===""&&i.length!==1&&i.shift(),Cr(i,e)||Pa(a)},getConflictingClassGroupIds:(a,i)=>{const l=n[a]||[];return i&&r[a]?[...l,...r[a]]:l}}},Cr=(t,e)=>{if(t.length===0)return e.classGroupId;const n=t[0],r=e.nextPart.get(n),o=r?Cr(t.slice(1),r):void 0;if(o)return o;if(e.validators.length===0)return;const s=t.join(gn);return e.validators.find(({validator:a})=>a(s))?.classGroupId},Rr=/^\[(.+)\]$/,Pa=t=>{if(Rr.test(t)){const e=Rr.exec(t)[1],n=e?.substring(0,e.indexOf(":"));if(n)return"arbitrary.."+n}},_a=t=>{const{theme:e,classGroups:n}=t,r={nextPart:new Map,validators:[]};for(const o in n)hn(n[o],r,o,e);return r},hn=(t,e,n,r)=>{t.forEach(o=>{if(typeof o=="string"){const s=o===""?e:Tr(e,o);s.classGroupId=n;return}if(typeof o=="function"){if(Oa(o)){hn(o(r),e,n,r);return}e.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,a])=>{hn(a,Tr(e,s),n,r)})})},Tr=(t,e)=>{let n=t;return e.split(gn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Oa=t=>t.isThemeGetter,ka=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=new Map,r=new Map;const o=(s,a)=>{n.set(s,a),e++,e>t&&(e=0,r=n,n=new Map)};return{get(s){let a=n.get(s);if(a!==void 0)return a;if((a=r.get(s))!==void 0)return o(s,a),a},set(s,a){n.has(s)?n.set(s,a):o(s,a)}}},vn="!",yn=":",Na=yn.length,Aa=t=>{const{prefix:e,experimentalParseClassName:n}=t;let r=o=>{const s=[];let a=0,i=0,l=0,c;for(let v=0;v<o.length;v++){let p=o[v];if(a===0&&i===0){if(p===yn){s.push(o.slice(l,v)),l=v+Na;continue}if(p==="/"){c=v;continue}}p==="["?a++:p==="]"?a--:p==="("?i++:p===")"&&i--}const f=s.length===0?o:o.substring(l),u=Ia(f),d=u!==f,m=c&&c>l?c-l:void 0;return{modifiers:s,hasImportantModifier:d,baseClassName:u,maybePostfixModifierPosition:m}};if(e){const o=e+yn,s=r;r=a=>a.startsWith(o)?s(a.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:a,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},Ia=t=>t.endsWith(vn)?t.substring(0,t.length-1):t.startsWith(vn)?t.substring(1):t,Da=t=>{const e=Object.fromEntries(t.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let s=[];return r.forEach(a=>{a[0]==="["||e[a]?(o.push(...s.sort(),a),s=[]):s.push(a)}),o.push(...s.sort()),o}},Ma=t=>({cache:ka(t.cacheSize),parseClassName:Aa(t),sortModifiers:Da(t),...Ta(t)}),La=/\s+/,ja=(t,e)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=e,a=[],i=t.trim().split(La);let l="";for(let c=i.length-1;c>=0;c-=1){const f=i[c],{isExternal:u,modifiers:d,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}=n(f);if(u){l=f+(l.length>0?" "+l:l);continue}let h=!!p,b=r(h?v.substring(0,p):v);if(!b){if(!h){l=f+(l.length>0?" "+l:l);continue}if(b=r(v),!b){l=f+(l.length>0?" "+l:l);continue}h=!1}const y=s(d).join(":"),x=m?y+vn:y,C=x+b;if(a.includes(C))continue;a.push(C);const T=o(b,h);for(let _=0;_<T.length;++_){const E=T[_];a.push(x+E)}l=f+(l.length>0?" "+l:l)}return l};function Ba(){let t=0,e,n,r="";for(;t<arguments.length;)(e=arguments[t++])&&(n=Pr(e))&&(r&&(r+=" "),r+=n);return r}const Pr=t=>{if(typeof t=="string")return t;let e,n="";for(let r=0;r<t.length;r++)t[r]&&(e=Pr(t[r]))&&(n&&(n+=" "),n+=e);return n};function Fa(t,...e){let n,r,o,s=a;function a(l){const c=e.reduce((f,u)=>u(f),t());return n=Ma(c),r=n.cache.get,o=n.cache.set,s=i,i(l)}function i(l){const c=r(l);if(c)return c;const f=ja(l,n);return o(l,f),f}return function(){return s(Ba.apply(null,arguments))}}const ne=t=>{const e=n=>n[t]||[];return e.isThemeGetter=!0,e},_r=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Or=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$a=/^\d+\/\d+$/,Va=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,za=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Wa=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ka=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ha=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ye=t=>$a.test(t),K=t=>!!t&&!Number.isNaN(Number(t)),Ne=t=>!!t&&Number.isInteger(Number(t)),bn=t=>t.endsWith("%")&&K(t.slice(0,-1)),Te=t=>Va.test(t),Ua=()=>!0,Ga=t=>za.test(t)&&!Wa.test(t),kr=()=>!1,qa=t=>Ka.test(t),Ya=t=>Ha.test(t),Xa=t=>!A(t)&&!I(t),Qa=t=>Xe(t,Mr,kr),A=t=>_r.test(t),$e=t=>Xe(t,Lr,Ga),wn=t=>Xe(t,ni,K),Nr=t=>Xe(t,Ir,kr),Za=t=>Xe(t,Dr,Ya),_t=t=>Xe(t,jr,qa),I=t=>Or.test(t),ut=t=>Qe(t,Lr),Ja=t=>Qe(t,ri),Ar=t=>Qe(t,Ir),ei=t=>Qe(t,Mr),ti=t=>Qe(t,Dr),Ot=t=>Qe(t,jr,!0),Xe=(t,e,n)=>{const r=_r.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Qe=(t,e,n=!1)=>{const r=Or.exec(t);return r?r[1]?e(r[1]):n:!1},Ir=t=>t==="position"||t==="percentage",Dr=t=>t==="image"||t==="url",Mr=t=>t==="length"||t==="size"||t==="bg-size",Lr=t=>t==="length",ni=t=>t==="number",ri=t=>t==="family-name",jr=t=>t==="shadow",oi=Fa(()=>{const t=ne("color"),e=ne("font"),n=ne("text"),r=ne("font-weight"),o=ne("tracking"),s=ne("leading"),a=ne("breakpoint"),i=ne("container"),l=ne("spacing"),c=ne("radius"),f=ne("shadow"),u=ne("inset-shadow"),d=ne("text-shadow"),m=ne("drop-shadow"),v=ne("blur"),p=ne("perspective"),h=ne("aspect"),b=ne("ease"),y=ne("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...C(),I,A],_=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],S=()=>[I,A,l],k=()=>[Ye,"full","auto",...S()],N=()=>[Ne,"none","subgrid",I,A],M=()=>["auto",{span:["full",Ne,I,A]},Ne,I,A],V=()=>[Ne,"auto",I,A],B=()=>["auto","min","max","fr",I,A],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],H=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...S()],F=()=>[Ye,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],P=()=>[t,I,A],q=()=>[...C(),Ar,Nr,{position:[I,A]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",ei,Qa,{size:[I,A]}],L=()=>[bn,ut,$e],$=()=>["","none","full",c,I,A],W=()=>["",K,ut,$e],ce=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>[K,bn,Ar,Nr],U=()=>["","none",v,I,A],ee=()=>["none",K,I,A],G=()=>["none",K,I,A],Q=()=>[K,I,A],Z=()=>[Ye,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Te],breakpoint:[Te],color:[Ua],container:[Te],"drop-shadow":[Te],ease:["in","out","in-out"],font:[Xa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Te],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Te],shadow:[Te],spacing:["px",K],text:[Te],"text-shadow":[Te],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ye,A,I,h]}],container:["container"],columns:[{columns:[K,A,I,i]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[Ne,"auto",I,A]}],basis:[{basis:[Ye,"full","auto",i,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,Ye,"auto","initial","none",A]}],grow:[{grow:["",K,I,A]}],shrink:[{shrink:["",K,I,A]}],order:[{order:[Ne,"first","last","none",I,A]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":B()}],"auto-rows":[{"auto-rows":B()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...H(),"normal"]}],"justify-self":[{"justify-self":["auto",...H()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...H(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...H(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...H(),"baseline"]}],"place-self":[{"place-self":["auto",...H()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],w:[{w:[i,"screen",...F()]}],"min-w":[{"min-w":[i,"screen","none",...F()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[a]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh",...F()]}],"font-size":[{text:["base",n,ut,$e]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,I,wn]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",bn,A]}],"font-family":[{font:[Ja,A,e]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,I,A]}],"line-clamp":[{"line-clamp":[K,"none",I,wn]}],leading:[{leading:[s,...S()]}],"list-image":[{"list-image":["none",I,A]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",I,A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",I,$e]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[K,"auto",I,A]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",I,A]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",I,A]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ne,I,A],radial:["",I,A],conic:[Ne,I,A]},ti,Za]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:L()}],"gradient-via-pos":[{via:L()}],"gradient-to-pos":[{to:L()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:W()}],"border-w-x":[{"border-x":W()}],"border-w-y":[{"border-y":W()}],"border-w-s":[{"border-s":W()}],"border-w-e":[{"border-e":W()}],"border-w-t":[{"border-t":W()}],"border-w-r":[{"border-r":W()}],"border-w-b":[{"border-b":W()}],"border-w-l":[{"border-l":W()}],"divide-x":[{"divide-x":W()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":W()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,I,A]}],"outline-w":[{outline:["",K,ut,$e]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",f,Ot,_t]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",u,Ot,_t]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[K,$e]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":W()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",d,Ot,_t]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[K,I,A]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[I,A]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",I,A]}],filter:[{filter:["","none",I,A]}],blur:[{blur:U()}],brightness:[{brightness:[K,I,A]}],contrast:[{contrast:[K,I,A]}],"drop-shadow":[{"drop-shadow":["","none",m,Ot,_t]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",K,I,A]}],"hue-rotate":[{"hue-rotate":[K,I,A]}],invert:[{invert:["",K,I,A]}],saturate:[{saturate:[K,I,A]}],sepia:[{sepia:["",K,I,A]}],"backdrop-filter":[{"backdrop-filter":["","none",I,A]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[K,I,A]}],"backdrop-contrast":[{"backdrop-contrast":[K,I,A]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,I,A]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,I,A]}],"backdrop-invert":[{"backdrop-invert":["",K,I,A]}],"backdrop-opacity":[{"backdrop-opacity":[K,I,A]}],"backdrop-saturate":[{"backdrop-saturate":[K,I,A]}],"backdrop-sepia":[{"backdrop-sepia":["",K,I,A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",I,A]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",I,A]}],ease:[{ease:["linear","initial",b,I,A]}],delay:[{delay:[K,I,A]}],animate:[{animate:["none",y,I,A]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[p,I,A]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:Q()}],"skew-x":[{"skew-x":Q()}],"skew-y":[{"skew-y":Q()}],transform:[{transform:[I,A,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",I,A]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",I,A]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[K,ut,$e,wn]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function re(...t){return oi(Er(t))}function si(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("size-4 animate-spin",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(Ea,{role:"status","aria-label":"Loading",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}const Br=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Fr=Er,$r=(t,e)=>n=>{var r;if(e?.variants==null)return Fr(t,n?.class,n?.className);const{variants:o,defaultVariants:s}=e,a=Object.keys(o).map(c=>{const f=n?.[c],u=s?.[c];if(f===null)return null;const d=Br(f)||Br(u);return o[c][d]}),i=n&&Object.entries(n).reduce((c,f)=>{let[u,d]=f;return d===void 0||(c[u]=d),c},{}),l=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((c,f)=>{let{class:u,className:d,...m}=f;return Object.entries(m).every(v=>{let[p,h]=v;return Array.isArray(h)?h.includes({...s,...i}[p]):{...s,...i}[p]===h})?[...c,u,d]:c},[]);return Fr(t,a,l,n?.class,n?.className)};var kt={exports:{}},se={};/**
93
93
  * @license React
94
94
  * react-dom.production.js
95
95
  *
@@ -97,7 +97,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
97
97
  *
98
98
  * This source code is licensed under the MIT license found in the
99
99
  * LICENSE file in the root directory of this source tree.
100
- */var hn;function mi(){if(hn)return oe;hn=1;var e=B;function t(c){var l="https://react.dev/errors/"+c;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)l+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+c+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(c,l,f){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:d==null?null:""+d,children:c,containerInfo:l,implementation:f}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(c,l){if(c==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,oe.createPortal=function(c,l){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return s(c,l,null,f)},oe.flushSync=function(c){var l=i.T,f=n.p;try{if(i.T=null,n.p=2,c)return c()}finally{i.T=l,n.p=f,n.d.f()}},oe.preconnect=function(c,l){typeof c=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,n.d.C(c,l))},oe.prefetchDNS=function(c){typeof c=="string"&&n.d.D(c)},oe.preinit=function(c,l){if(typeof c=="string"&&l&&typeof l.as=="string"){var f=l.as,d=a(f,l.crossOrigin),u=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;f==="style"?n.d.S(c,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:d,integrity:u,fetchPriority:m}):f==="script"&&n.d.X(c,{crossOrigin:d,integrity:u,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},oe.preinitModule=function(c,l){if(typeof c=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var f=a(l.as,l.crossOrigin);n.d.M(c,{crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&n.d.M(c)},oe.preload=function(c,l){if(typeof c=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var f=l.as,d=a(f,l.crossOrigin);n.d.L(c,f,{crossOrigin:d,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},oe.preloadModule=function(c,l){if(typeof c=="string")if(l){var f=a(l.as,l.crossOrigin);n.d.m(c,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:f,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else n.d.m(c)},oe.requestFormReset=function(c){n.d.r(c)},oe.unstable_batchedUpdates=function(c,l){return c(l)},oe.useFormState=function(c,l,f){return i.H.useFormState(c,l,f)},oe.useFormStatus=function(){return i.H.useHostTransitionStatus()},oe.version="19.2.0",oe}var se={};/**
100
+ */var Vr;function ai(){if(Vr)return se;Vr=1;var t=j;function e(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)c+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(l,c,f){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:u==null?null:""+u,children:l,containerInfo:c,implementation:f}}var a=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function i(l,c){if(l==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,se.createPortal=function(l,c){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(e(299));return s(l,c,null,f)},se.flushSync=function(l){var c=a.T,f=r.p;try{if(a.T=null,r.p=2,l)return l()}finally{a.T=c,r.p=f,r.d.f()}},se.preconnect=function(l,c){typeof l=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,r.d.C(l,c))},se.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},se.preinit=function(l,c){if(typeof l=="string"&&c&&typeof c.as=="string"){var f=c.as,u=i(f,c.crossOrigin),d=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;f==="style"?r.d.S(l,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:u,integrity:d,fetchPriority:m}):f==="script"&&r.d.X(l,{crossOrigin:u,integrity:d,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},se.preinitModule=function(l,c){if(typeof l=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var f=i(c.as,c.crossOrigin);r.d.M(l,{crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&r.d.M(l)},se.preload=function(l,c){if(typeof l=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var f=c.as,u=i(f,c.crossOrigin);r.d.L(l,f,{crossOrigin:u,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},se.preloadModule=function(l,c){if(typeof l=="string")if(c){var f=i(c.as,c.crossOrigin);r.d.m(l,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:f,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else r.d.m(l)},se.requestFormReset=function(l){r.d.r(l)},se.unstable_batchedUpdates=function(l,c){return l(c)},se.useFormState=function(l,c,f){return a.H.useFormState(l,c,f)},se.useFormStatus=function(){return a.H.useHostTransitionStatus()},se.version="19.2.0",se}var ae={};/**
101
101
  * @license React
102
102
  * react-dom.development.js
103
103
  *
@@ -105,48 +105,48 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
105
105
  *
106
106
  * This source code is licensed under the MIT license found in the
107
107
  * LICENSE file in the root directory of this source tree.
108
- */var vn;function gi(){return vn||(vn=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(d){return""+d}function r(d,u,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(v);var p=!1}catch{p=!0}return p&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),t(v)),{$$typeof:l,key:v==null?null:""+v,children:d,containerInfo:u,implementation:m}}function n(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}function o(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":'something with type "'+typeof d+'"'}function s(d){return d===null?"`null`":d===void 0?"`undefined`":d===""?"an empty string":typeof d=="string"?JSON.stringify(d):typeof d=="number"?"`"+d+"`":'something with type "'+typeof d+'"'}function i(){var d=f.H;return d===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
108
+ */var zr;function ii(){return zr||(zr=1,process.env.NODE_ENV!=="production"&&(function(){function t(){}function e(u){return""+u}function n(u,d,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(v);var p=!1}catch{p=!0}return p&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),e(v)),{$$typeof:c,key:v==null?null:""+v,children:u,containerInfo:d,implementation:m}}function r(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}function o(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":'something with type "'+typeof u+'"'}function s(u){return u===null?"`null`":u===void 0?"`undefined`":u===""?"an empty string":typeof u=="string"?JSON.stringify(u):typeof u=="number"?"`"+u+"`":'something with type "'+typeof u+'"'}function a(){var u=f.H;return u===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),d}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=B,c={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=Symbol.for("react.portal"),f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,se.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error("Target container is not a DOM element.");return r(d,u,null,m)},se.flushSync=function(d){var u=f.T,m=c.p;try{if(f.T=null,c.p=2,d)return d()}finally{f.T=u,c.p=m,c.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},se.preconnect=function(d,u){typeof d=="string"&&d?u!=null&&typeof u!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(u)):u!=null&&typeof u.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(u.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,c.d.C(d,u))},se.prefetchDNS=function(d){if(typeof d!="string"||!d)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d));else if(1<arguments.length){var u=arguments[1];typeof u=="object"&&u.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(u)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(u))}typeof d=="string"&&c.d.D(d)},se.preinit=function(d,u){if(typeof d=="string"&&d?u==null||typeof u!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(u)):u.as!=="style"&&u.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(u.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(d)),typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,v=n(m,u.crossOrigin),p=typeof u.integrity=="string"?u.integrity:void 0,h=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?c.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:v,integrity:p,fetchPriority:h}):m==="script"&&c.d.X(d,{crossOrigin:v,integrity:p,fetchPriority:h,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},se.preinitModule=function(d,u){var m="";if(typeof d=="string"&&d||(m+=" The `href` argument encountered was "+o(d)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&u.as!=="script"&&(m+=" The `as` option encountered was "+s(u.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=u&&typeof u.as=="string"?u.as:"script",m){case"script":break;default:m=s(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,d)}typeof d=="string"&&(typeof u=="object"&&u!==null?(u.as==null||u.as==="script")&&(m=n(u.as,u.crossOrigin),c.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})):u==null&&c.d.M(d))},se.preload=function(d,u){var m="";if(typeof d=="string"&&d||(m+=" The `href` argument encountered was "+o(d)+"."),u==null||typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":typeof u.as=="string"&&u.as||(m+=" The `as` option encountered was "+o(u.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){m=u.as;var v=n(m,u.crossOrigin);c.d.L(d,m,{crossOrigin:v,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},se.preloadModule=function(d,u){var m="";typeof d=="string"&&d||(m+=" The `href` argument encountered was "+o(d)+"."),u!==void 0&&typeof u!="object"?m+=" The `options` argument encountered was "+o(u)+".":u&&"as"in u&&typeof u.as!="string"&&(m+=" The `as` option encountered was "+o(u.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof d=="string"&&(u?(m=n(u.as,u.crossOrigin),c.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})):c.d.m(d))},se.requestFormReset=function(d){c.d.r(d)},se.unstable_batchedUpdates=function(d,u){return d(u)},se.useFormState=function(d,u,m){return i().useFormState(d,u,m)},se.useFormStatus=function(){return i().useHostTransitionStatus()},se.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),se}var yn;function hi(){if(yn)return bt.exports;yn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),bt.exports=mi()):bt.exports=gi(),bt.exports}var ot=hi();const vi=ms(ot);function bn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function wn(...e){return t=>{let r=!1;const n=e.map(o=>{const s=bn(o,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let o=0;o<n.length;o++){const s=n[o];typeof s=="function"?s():bn(e[o],null)}}}}function ne(...e){return g.useCallback(wn(...e),e)}function st(e){const t=bi(e),r=g.forwardRef((n,o)=>{const{children:s,...i}=n,a=g.Children.toArray(s),c=a.find(xi);if(c){const l=c.props.children,f=a.map(d=>d===c?g.Children.count(l)>1?g.Children.only(null):g.isValidElement(l)?l.props.children:null:d);return w.jsx(t,{...i,ref:o,children:g.isValidElement(l)?g.cloneElement(l,void 0,f):null})}return w.jsx(t,{...i,ref:o,children:s})});return r.displayName=`${e}.Slot`,r}var yi=st("Slot");function bi(e){const t=g.forwardRef((r,n)=>{const{children:o,...s}=r;if(g.isValidElement(o)){const i=Ei(o),a=Si(s,o.props);return o.type!==g.Fragment&&(a.ref=n?wn(n,i):i),g.cloneElement(o,a)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wi=Symbol("radix.slottable");function xi(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wi}function Si(e,t){const r={...t};for(const n in t){const o=e[n],s=t[n];/^on[A-Z]/.test(n)?o&&s?r[n]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(r[n]=o):n==="style"?r[n]={...o,...s}:n==="className"&&(r[n]=[o,s].filter(Boolean).join(" "))}return{...e,...r}}function Ei(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ci=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Z=Ci.reduce((e,t)=>{const r=st(`Primitive.${t}`),n=g.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...a,ref:s})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function Ri(e,t){e&&ot.flushSync(()=>e.dispatchEvent(t))}var Pi="Label",xn=g.forwardRef((e,t)=>w.jsx(Z.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));xn.displayName=Pi;var ki=xn;function _i(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx(ki,{"data-slot":"label",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}function Oi(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx("div",{"data-slot":"field-group",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}const Ti=gn("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Sn(e){const t=re.c(11);let r,n,o;t[0]!==e?({className:r,orientation:o,...n}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o):(r=t[1],n=t[2],o=t[3]);const s=o===void 0?"vertical":o;let i;t[4]!==r||t[5]!==s?(i=ae(Ti({orientation:s}),r),t[4]=r,t[5]=s,t[6]=i):i=t[6];let a;return t[7]!==s||t[8]!==n||t[9]!==i?(a=w.jsx("div",{role:"group","data-slot":"field","data-orientation":s,className:i,...n}),t[7]=s,t[8]=n,t[9]=i,t[10]=a):a=t[10],a}function Ai(e){const t=re.c(8);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",r),t[3]=r,t[4]=o):o=t[4];let s;return t[5]!==n||t[6]!==o?(s=w.jsx(_i,{"data-slot":"field-label",className:o,...n}),t[5]=n,t[6]=o,t[7]=s):s=t[7],s}function Ni(e){const t=re.c(15);let r,n,o,s;t[0]!==e?({className:n,children:r,errors:o,...s}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s):(r=t[1],n=t[2],o=t[3],s=t[4]);let i;e:{if(r){i=r;break e}if(!o?.length){i=null;break e}let f;t[5]!==o?(f=[...new Map(o.map(Di)).values()],t[5]=o,t[6]=f):f=t[6];const d=f;if(d?.length==1){i=d[0]?.message;break e}let u;t[7]!==d?(u=w.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:d.map(Ii)}),t[7]=d,t[8]=u):u=t[8],i=u}const a=i;if(!a)return null;let c;t[9]!==n?(c=ae("text-destructive text-sm font-normal",n),t[9]=n,t[10]=c):c=t[10];let l;return t[11]!==a||t[12]!==s||t[13]!==c?(l=w.jsx("div",{role:"alert","data-slot":"field-error",className:c,...s,children:a}),t[11]=a,t[12]=s,t[13]=c,t[14]=l):l=t[14],l}function Ii(e,t){return e?.message&&w.jsx("li",{children:e.message},t)}function Di(e){return[e?.message,e]}const Mi=(e={})=>{if(Array.isArray(e)&&e.length>0)return JSON.stringify(e);for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];Object.prototype.toString.call(r)==="[object Object]"&&(e[t]=JSON.stringify(r))}return e},Li=(e={})=>{for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)){const r=e[t];try{/[{]+/g.test(r)&&/[}]+/g.test(r)&&(e[t]=JSON.parse(r))}catch{}}return e},ji=(e={decode:!1})=>{const{decode:t}=e,r=/\+/g,n=/([^&=]+)=?([^&]*)/g,o=c=>decodeURIComponent(c.replace(r," ")),s=window.location.search.substring(1),i={},a=()=>{const c=n.exec(s);return c&&(t?i[o(c[1])]=o(c[2]):i[c[1]]=c[2],a()),i};return a(),i},it={paramsToQuery:Mi,queryToData:Li,getURLParameter:ji},Ce=at;function at(e,t){const r=wt();return at=function(n,o){return n=n-157,r[n]},at(e,t)}(function(e,t){const r=at,n=e();for(;;)try{if(-parseInt(r(216))/1+parseInt(r(215))/2+-parseInt(r(183))/3+-parseInt(r(175))/4*(-parseInt(r(193))/5)+-parseInt(r(162))/6+-parseInt(r(165))/7+-parseInt(r(198))/8*(-parseInt(r(205))/9)===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(wt,144666);const le={};function wt(){const e=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return wt=function(){return e},wt()}let Le=null;const En=async(e,t)=>{const r=at;!window[r(161)]&&window[r(212)](r(170));const{DBName:n="",DBVersion:o=1}=e;let s,i=!1;try{const a=window[r(161)].open(n,o);await new Promise((c,l)=>{const f=r;a[f(187)]=async function(d){const u=f,m=d.target[u(203)],{stores:v=[]}=e;await Promise.all(v[u(188)](async p=>{const h=u,{DBStoreName:y="",properties:b={}}=p;try{const S={};S[h(213)]=e[h(192)];const R=d[h(186)][h(203)][h(176)](y,S);if(Object[h(174)](b)[h(197)]===0){console[h(158)](y+h(172));return}for(const k in b)if(b[h(209)][h(194)](b,k)){const O=b[k],x={...O[h(185)]};R[h(185)](k,k,x)}}catch(S){console[h(158)](S)}})),s=m,i=!0},a.onsuccess=async function(d){const u=f;if(s=this[u(203)],i){const{stores:m=[]}=e;await Promise.all(m.map(async v=>{const p=u,{DBStoreName:h=""}=v,y=s[p(189)]([h],p(211)),b=y[p(166)](h),S={};S[e[p(192)]]=t,b.add(S);try{await new Promise((R,k)=>{const O=p;y[O(164)]=function(x){const C=O;console[C(196)](C(173),x),k()},y.oncomplete=function(x){R()},y.onerror=function(x){console.error(O(218),x),k()}})}catch(R){console[p(158)](p(178),R)}}))}c()},a[f(214)]=function(d){l(d)}})}catch(a){console.error(a,r(202))}return s};let xt=!1;le[Ce(157)]=async(e,t)=>{const r=Ce,{mapDB:n,primaryKey:o}=e;return n?o?(xt&&await new Promise(async(s,i)=>{const a=()=>{xt?setTimeout(()=>{a()},200):s()};a()}),!Le&&(xt=!0,Le=await En(n,o),Le?.[r(207)]("close",async()=>{const s=r;console[s(217)](s(195)),Le=await En(n,o)}),xt=!1),t&&t(Le),Le):(console[r(158)](r(169)),!1):(console[r(158)]("必须传入数据库配置信息"),!1)},le[Ce(180)]=async(e,t)=>{const r=Ce,{mapDB:n,tableName:o,primaryKey:s}=e,i={};i[r(182)]=n,i.primaryKey=s;const a=await le[r(157)](i);if(!a)return;const c=a[r(189)]([o]),l=c[r(166)](o),f=l[r(159)](s);return new Promise((d,u)=>{const m=r;f[m(160)]=function(v){const p=m;t&&t(o+p(177)+f[p(203)]),d(f[p(203)])},f[m(214)]=function(v){console[m(196)](o+"事务失败"+v),u()}})},le.updateStore=async(e,t)=>{var r;const n=Ce,{mapDB:o,tableName:s,updateData:i}=e;!i[o?.[n(192)]]&&console.warn("请传入主键"+o[n(192)]);const a={};a[n(182)]=o,a[n(192)]=i[o?.[n(192)]];const c=await le[n(157)](a);if(!c)return;let l=null;try{l=c[n(189)]([s],n(211)).objectStore(s)}catch(m){console[n(196)](n(208),m)}let f=null,d=null;const u=await new Promise((m,v)=>{const p=n,h=l[p(184)](i[o?.primaryKey]);h[p(160)]=y=>{m(y)},h.onerror=y=>{v(y)}});d=(r=u?.[n(219)])==null?void 0:r.result;try{d&&d?.[n(192)]===i[o?.primaryKey]?f=d[n(204)](i):f=l[n(206)](i)}catch(m){console[n(196)](n(181),m,i)}new Promise((m,v)=>{const p=n;!f&&(console[p(196)](s+p(191)),v()),f[p(160)]=function(h){t&&t(s+p(163)),m()},f.onerror=function(h){console.error(s+p(171),h),v()}}),d&&d[n(190)]()},le[Ce(179)]=async(e,t)=>{const r=Ce,{mapDB:n,tableName:o,primaryKey:s}=e,i={};i[r(182)]=n,i[r(192)]=s;const a=await le.getDB(i);if(!a)return;const c=a[r(189)]([o],r(211))[r(166)](o)[r(167)](s);return new Promise((l,f)=>{const d=r;c[d(160)]=function(u){t&&t(o+d(200)),l()},c[d(214)]=function(u){console[d(196)](o+"数据删除失败"+u),f()}})},le[Ce(210)]=async(e,t)=>{const r=Ce,{mapDB:n}=e,o=window[r(161)].deleteDatabase(n[r(199)]);return new Promise((s,i)=>{const a=r;o[a(160)]=c=>{const l=a;t&&t(n[l(199)]+l(168)),s()},o.onerror=c=>{const l=a;console[l(196)](n[l(199)]+l(201)+c),i()}})};function Oe(e,t){const r=St();return Oe=function(n,o){return n=n-479,r[n]},Oe(e,t)}function St(){const e=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return St=function(){return e},St()}const tr=Oe;(function(e,t){const r=Oe,n=e();for(;;)try{if(-parseInt(r(485))/1*(-parseInt(r(486))/2)+-parseInt(r(490))/3+parseInt(r(499))/4+parseInt(r(491))/5*(-parseInt(r(497))/6)+-parseInt(r(488))/7+parseInt(r(492))/8*(parseInt(r(494))/9)+parseInt(r(496))/10*(parseInt(r(481))/11)===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(St,801934);async function Bi(e,t){const r=Oe,{tableName:n,propertiesKey:o,parameter:s,primaryKey:i,mapDB:a}=e;let c=null,l={[a.primaryKey]:i};const f={};f.mapDB=a,f[r(501)]=n,f[r(495)]=i;const d=await le.getDataByKey(f);d&&(l={...d,[a[r(495)]]:i}),l[o]=s;const u={};return u[r(500)]=a,u[r(501)]=n,u.updateData=l,await le.updateStore(u),s&&(c=s),t&&t(c),c}async function Fi(e,t){const r=Oe,{tableName:n,propertiesKey:o,primaryKey:s,mapDB:i}=e;let a=null;const c={};c[r(500)]=i,c.tableName=n,c[r(495)]=s;const l=await le[r(480)](c);return l&&(a=l[o]),t&&t(a),a}async function zi(e,t){const r=Oe,{tableName:n,propertiesKey:o,parameter:s,primaryKey:i,mapDB:a}=e;let c={};const l={};l[r(500)]=a,l[r(501)]=n,l[r(495)]=i;const f=await le.getDataByKey(l);try{if(f){c={...f[o],...s};const d={[a[r(495)]]:i},u=d;u[o]=c;const m={};m.mapDB=a,m[r(501)]=n,m[r(487)]=u,await le[r(479)](m)}else console[r(482)](n+r(483))}catch(d){console.error(d)}return t&&t(c),c}async function $i(e,t){const r=Oe,{tableName:n,primaryKey:o,mapDB:s}=e;let i=null;try{const a={};a[r(500)]=s,a[r(501)]=n,a[r(495)]=o,await le[r(493)](a)}catch(a){console[r(489)](a)}return t&&t(i),i}const lt={};lt[tr(498)]=Bi,lt[tr(484)]=Fi,lt[tr(487)]=zi,lt.clearData=$i;var me=Ct;(function(e,t){for(var r=Ct,n=e();;)try{var o=parseInt(r(471))/1*(-parseInt(r(463))/2)+parseInt(r(478))/3+parseInt(r(459))/4*(-parseInt(r(477))/5)+parseInt(r(473))/6*(-parseInt(r(466))/7)+parseInt(r(458))/8*(parseInt(r(474))/9)+-parseInt(r(460))/10+-parseInt(r(461))/11*(-parseInt(r(472))/12);if(o===t)break;n.push(n.shift())}catch{n.push(n.shift())}})(Et,810026);var Cn={};Cn[me(465)]=!1;var rr={};rr.createIndex=Cn,rr.default={};var Rn={};function Et(){var e=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return Et=function(){return e},Et()}Rn[me(468)]=rr;var nr={};nr[me(476)]=me(462),nr[me(470)]=Rn;var ct={};function Ct(e,t){var r=Et();return Ct=function(n,o){n=n-458;var s=r[n];return s},Ct(e,t)}ct[me(469)]=me(467),ct[me(475)]=me(464),ct[me(479)]=1,ct[me(480)]=[nr];const Vi={formSchema:ct},Wi=lt,{handleData:Hi,getData:Pn}=Wi,{formSchema:or}=Vi,sr=async(e,t)=>(t.parametersType==="url"&&(e={...it.queryToData(it.getURLParameter({decode:!0})),...e}),t.parametersType==="indexDB"&&(e={...await Pn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:t.DBPrimaryKey||"default",mapDB:or}),...e}),e),ir=async(e,t)=>{if(t.parametersType==="url"){const r=it.paramsToQuery({...e});window.location.href=`${window.location.origin}${window.location.pathname}?${new URLSearchParams(r)}`}t.parametersType==="indexDB"&&await Hi({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",parameter:{...e},primaryKey:t.DBPrimaryKey||"default",mapDB:or})},kn=async({queryParameter:e={},vm:t={},queryParams:r={}})=>{e.defaultPageFirst??(e.defaultPageFirst=!0);const n={[t.currentPageKey]:t.defCurrentPage};let o={...n,...r,...t.queryParams};o=await sr(o,t),e.defaultPageFirst&&(o={...o,...n}),await ir(o,t),t.getList({...o})},Ui=async({vm:e={},dispatchQueryParams:t})=>{var r,n;(n=(r=e?.$refs)==null?void 0:r.queryFormRef)==null||n.resetFields();const o=await sr({},e),s={[e.currentPageKey]:e.defCurrentPage,[e.pageSizeKey]:o?.[e.pageSizeKey]||e.defPageSize};if(await ir(s,e),t&&t({data:{...s}}),e.queryParams&&(e.queryParams={...s}),e.afterReset(),e.handleQuery)e.handleQuery();else{if(e.parametersType==="url")return;kn({vm:e})}},Ki=({vm:e={},dispatchQueryParams:t})=>{let r={[e.pageSizeKey]:e.defPageSize};return e.parametersType==="url"&&(r={...r,...it.queryToData(it.getURLParameter({decode:!0}))}),e.parametersType==="indexDB"&&Pn({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:or},n=>{n&&(r={...r,...n},t&&t({data:{...r}}),e.queryParams&&(e.queryParams={...r})),e.queryWhenReady&&e.$nextTick(()=>{e.handleQuery({defaultPageFirst:!1})})}),e.queryWhenReady&&e.parametersType!=="indexDB"&&e.$nextTick(()=>{e.handleQuery({defaultPageFirst:!1})}),r},Gi=({item:e={},vm:t={}})=>{const{type:r,rules:n=[]}=e,o=[...n];return t.noInputBlank&&r==="input"&&o.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),o},qi={makeParamsByType:sr,saveParamsByType:ir,handleQuery:kn,resetQuery:Ui,initQueryParams:Ki,getItemRules:Gi},ut=qi,Yi={queryParams:{},message:{},formLoading:!1,dispatchQueryParams:()=>{},getList:()=>{}},Rt=B.createContext(Yi);B.createContext(null);const Xi=(e,t)=>{const{data:r}=t;return{...r}},_n={formItem:[],coms:{Button:[]},getList:()=>{},formData:{},loading:!1,afterReset:()=>{},noInputBlank:!1,currentPageKey:"page",pageSizeKey:"pageSize",parametersType:"url",defCurrentPage:1,DBPrimaryKey:null,defPageSize:10,queryWhenReady:!1},On=e=>{const r={..._n,...e,handleQuery:x=>{ut.handleQuery({queryParameter:x,vm:{..._n,...e}})}},{formItem:n=[],children:o,coms:s,formData:i={},fieldGroupSetting:a={},loading:c=!1,queryWhenReady:l=!1}=r,{Button:f}=s,[d,u]=B.useState(!1),[m,v]=B.useState(!1),p=x=>{const C={...x};let T={};return n.forEach(I=>{I.prop&&(T[I.prop]=C[I.prop]||"")}),v(!0),T},[h,y]=B.useReducer(Xi,i,p);B.useMemo(()=>{const x=ut.initQueryParams({vm:r,dispatchQueryParams:y});y({data:x})},[m]);const b=async(x,C)=>{let T={};for(const[I,F]of Object.entries(h)){const V=n.find(H=>H.prop===I);if(V&&V.rules){const H=ut.getItemRules({item:V,vm:r});for(const L of H)try{if(L.required&&!F)throw new Error(L.message||`${V.label}不能为空`);if(L.pattern&&!L.pattern.test(F))throw new Error(L.message||`${V.label}格式不正确`);L.validator&&await new Promise((U,D)=>{const z=P=>{if(P){D(P);return}U()};L.validator(L,F,z)})}catch(U){T[I]||(T[I]=[]),T[I].push({message:U.message||"校验失败"})}}}return Object.keys(T).length==0&&ut.handleQuery({queryParameter:{defaultPageFirst:!l},vm:{...r},queryParams:h}),{...T}},S=()=>{ut.resetQuery({vm:{...r,handleQuery:null},dispatchQueryParams:y})},[R,k,O]=B.useActionState(b,null);return B.useEffect(()=>{u(O)},[O]),B.useEffect(()=>{u(c)},[c]),B.useEffect(()=>{y({data:{...h,...i}})},[i]),w.jsx(Rt,{value:{...r,dispatchQueryParams:y,queryParams:h,message:R,formLoading:d},children:w.jsx("form",{action:k,children:w.jsxs(Oi,{...a,children:[n.map((x,C)=>{const T=B.useId();return w.jsxs(Sn,{"data-invalid":R?.[x.prop]&&R?.[x.prop].length>0,...x.fieldSetting,children:[w.jsx(Ai,{htmlFor:T,children:x.label}),w.jsx(Kr,{coms:s,item:x,id:T,type:x.type}),/^form-list$/i.test(x.type)&&w.jsx(Is,{id:T,coms:s,item:x}),w.jsx(Ni,{errors:R?.[x.prop]||[]})]},x.prop)}),o,w.jsxs(Sn,{orientation:"horizontal",children:[w.jsxs(f,{disabled:d,type:"submit",children:[d?w.jsx(pi,{}):[],"提交"]}),w.jsx(f,{disabled:d,variant:"outline",type:"button",onClick:S,children:"重置"})]})]})})})};function Qi(e){const t=re.c(10);let r,n,o;t[0]!==e?({className:r,type:o,...n}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o):(r=t[1],n=t[2],o=t[3]);let s;t[4]!==r?(s=ae("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",r),t[4]=r,t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==s||t[8]!==o?(i=w.jsx("input",{type:o,"data-slot":"input",className:s,...n}),t[6]=n,t[7]=s,t[8]=o,t[9]=i):i=t[9],i}const Zi=gn("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ji(e){const t=re.c(14);let r,n,o,s,i;t[0]!==e?({className:r,variant:i,size:o,asChild:s,...n}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i):(r=t[1],n=t[2],o=t[3],s=t[4],i=t[5]);const c=(s===void 0?!1:s)?yi:"button";let l;t[6]!==r||t[7]!==o||t[8]!==i?(l=ae(Zi({variant:i,size:o,className:r})),t[6]=r,t[7]=o,t[8]=i,t[9]=l):l=t[9];let f;return t[10]!==c||t[11]!==n||t[12]!==l?(f=w.jsx(c,{"data-slot":"button",className:l,...n}),t[10]=c,t[11]=n,t[12]=l,t[13]=f):f=t[13],f}function Tn(e,[t,r]){return Math.min(r,Math.max(t,e))}function J(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}function ar(e,t=[]){let r=[];function n(s,i){const a=g.createContext(i),c=r.length;r=[...r,i];const l=d=>{const{scope:u,children:m,...v}=d,p=u?.[e]?.[c]||a,h=g.useMemo(()=>v,Object.values(v));return w.jsx(p.Provider,{value:h,children:m})};l.displayName=s+"Provider";function f(d,u){const m=u?.[e]?.[c]||a,v=g.useContext(m);if(v)return v;if(i!==void 0)return i;throw new Error(`\`${d}\` must be used within \`${s}\``)}return[l,f]}const o=()=>{const s=r.map(i=>g.createContext(i));return function(a){const c=a?.[e]||s;return g.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[n,ea(o,...t)]}function ea(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=n.reduce((a,{useScope:c,scopeName:l})=>{const d=c(s)[`__scope${l}`];return{...a,...d}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return r.scopeName=t.scopeName,r}function ta(e){const t=e+"CollectionProvider",[r,n]=ar(t),[o,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=p=>{const{scope:h,children:y}=p,b=B.useRef(null),S=B.useRef(new Map).current;return w.jsx(o,{scope:h,itemMap:S,collectionRef:b,children:y})};i.displayName=t;const a=e+"CollectionSlot",c=st(a),l=B.forwardRef((p,h)=>{const{scope:y,children:b}=p,S=s(a,y),R=ne(h,S.collectionRef);return w.jsx(c,{ref:R,children:b})});l.displayName=a;const f=e+"CollectionItemSlot",d="data-radix-collection-item",u=st(f),m=B.forwardRef((p,h)=>{const{scope:y,children:b,...S}=p,R=B.useRef(null),k=ne(h,R),O=s(f,y);return B.useEffect(()=>(O.itemMap.set(R,{ref:R,...S}),()=>void O.itemMap.delete(R))),w.jsx(u,{[d]:"",ref:k,children:b})});m.displayName=f;function v(p){const h=s(e+"CollectionConsumer",p);return B.useCallback(()=>{const b=h.collectionRef.current;if(!b)return[];const S=Array.from(b.querySelectorAll(`[${d}]`));return Array.from(h.itemMap.values()).sort((O,x)=>S.indexOf(O.ref.current)-S.indexOf(x.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},v,n]}var ra=g.createContext(void 0);function na(e){const t=g.useContext(ra);return e||t||"ltr"}function je(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...r)=>t.current?.(...r),[])}function oa(e,t=globalThis?.document){const r=je(e);g.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var sa="DismissableLayer",lr="dismissableLayer.update",ia="dismissableLayer.pointerDownOutside",aa="dismissableLayer.focusOutside",An,Nn=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),In=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=g.useContext(Nn),[f,d]=g.useState(null),u=f?.ownerDocument??globalThis?.document,[,m]=g.useState({}),v=ne(t,x=>d(x)),p=Array.from(l.layers),[h]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(h),b=f?p.indexOf(f):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,R=b>=y,k=ua(x=>{const C=x.target,T=[...l.branches].some(I=>I.contains(C));!R||T||(o?.(x),i?.(x),x.defaultPrevented||a?.())},u),O=da(x=>{const C=x.target;[...l.branches].some(I=>I.contains(C))||(s?.(x),i?.(x),x.defaultPrevented||a?.())},u);return oa(x=>{b===l.layers.size-1&&(n?.(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},u),g.useEffect(()=>{if(f)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(An=u.body.style.pointerEvents,u.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(f)),l.layers.add(f),Dn(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(u.body.style.pointerEvents=An)}},[f,u,r,l]),g.useEffect(()=>()=>{f&&(l.layers.delete(f),l.layersWithOutsidePointerEventsDisabled.delete(f),Dn())},[f,l]),g.useEffect(()=>{const x=()=>m({});return document.addEventListener(lr,x),()=>document.removeEventListener(lr,x)},[]),w.jsx(Z.div,{...c,ref:v,style:{pointerEvents:S?R?"auto":"none":void 0,...e.style},onFocusCapture:J(e.onFocusCapture,O.onFocusCapture),onBlurCapture:J(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:J(e.onPointerDownCapture,k.onPointerDownCapture)})});In.displayName=sa;var la="DismissableLayerBranch",ca=g.forwardRef((e,t)=>{const r=g.useContext(Nn),n=g.useRef(null),o=ne(t,n);return g.useEffect(()=>{const s=n.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),w.jsx(Z.div,{...e,ref:o})});ca.displayName=la;function ua(e,t=globalThis?.document){const r=je(e),n=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let c=function(){Mn(ia,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function da(e,t=globalThis?.document){const r=je(e),n=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!n.current&&Mn(aa,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function Dn(){const e=new CustomEvent(lr);document.dispatchEvent(e)}function Mn(e,t,r,{discrete:n}){const o=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ri(o,s):o.dispatchEvent(s)}var cr=0;function fa(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ln()),document.body.insertAdjacentElement("beforeend",e[1]??Ln()),cr++,()=>{cr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cr--}},[])}function Ln(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ur="focusScope.autoFocusOnMount",dr="focusScope.autoFocusOnUnmount",jn={bubbles:!1,cancelable:!0},pa="FocusScope",Bn=g.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=g.useState(null),l=je(o),f=je(s),d=g.useRef(null),u=ne(t,p=>c(p)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(n){let p=function(S){if(m.paused||!a)return;const R=S.target;a.contains(R)?d.current=R:Te(d.current,{select:!0})},h=function(S){if(m.paused||!a)return;const R=S.relatedTarget;R!==null&&(a.contains(R)||Te(d.current,{select:!0}))},y=function(S){if(document.activeElement===document.body)for(const k of S)k.removedNodes.length>0&&Te(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",h);const b=new MutationObserver(y);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),b.disconnect()}}},[n,a,m.paused]),g.useEffect(()=>{if(a){$n.add(m);const p=document.activeElement;if(!a.contains(p)){const y=new CustomEvent(ur,jn);a.addEventListener(ur,l),a.dispatchEvent(y),y.defaultPrevented||(ma(ba(Fn(a)),{select:!0}),document.activeElement===p&&Te(a))}return()=>{a.removeEventListener(ur,l),setTimeout(()=>{const y=new CustomEvent(dr,jn);a.addEventListener(dr,f),a.dispatchEvent(y),y.defaultPrevented||Te(p??document.body,{select:!0}),a.removeEventListener(dr,f),$n.remove(m)},0)}}},[a,l,f,m]);const v=g.useCallback(p=>{if(!r&&!n||m.paused)return;const h=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(h&&y){const b=p.currentTarget,[S,R]=ga(b);S&&R?!p.shiftKey&&y===R?(p.preventDefault(),r&&Te(S,{select:!0})):p.shiftKey&&y===S&&(p.preventDefault(),r&&Te(R,{select:!0})):y===b&&p.preventDefault()}},[r,n,m.paused]);return w.jsx(Z.div,{tabIndex:-1,...i,ref:u,onKeyDown:v})});Bn.displayName=pa;function ma(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Te(n,{select:t}),document.activeElement!==r)return}function ga(e){const t=Fn(e),r=zn(t,e),n=zn(t.reverse(),e);return[r,n]}function Fn(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zn(e,t){for(const r of e)if(!ha(r,{upTo:t}))return r}function ha(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function va(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&va(e)&&t&&e.select()}}var $n=ya();function ya(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Vn(e,t),e.unshift(t)},remove(t){e=Vn(e,t),e[0]?.resume()}}}function Vn(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ba(e){return e.filter(t=>t.tagName!=="A")}var ce=globalThis?.document?g.useLayoutEffect:()=>{},wa=g[" useId ".trim().toString()]||(()=>{}),xa=0;function fr(e){const[t,r]=g.useState(wa());return ce(()=>{r(n=>n??String(xa++))},[e]),t?`radix-${t}`:""}const Sa=["top","right","bottom","left"],Ae=Math.min,de=Math.max,Pt=Math.round,kt=Math.floor,ye=e=>({x:e,y:e}),Ea={left:"right",right:"left",bottom:"top",top:"bottom"},Ca={start:"end",end:"start"};function pr(e,t,r){return de(e,Ae(t,r))}function Re(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function mr(e){return e==="x"?"y":"x"}function gr(e){return e==="y"?"height":"width"}const Ra=new Set(["top","bottom"]);function be(e){return Ra.has(Pe(e))?"y":"x"}function hr(e){return mr(be(e))}function Pa(e,t,r){r===void 0&&(r=!1);const n=Ke(e),o=hr(e),s=gr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=_t(i)),[i,_t(i)]}function ka(e){const t=_t(e);return[vr(e),t,vr(t)]}function vr(e){return e.replace(/start|end/g,t=>Ca[t])}const Wn=["left","right"],Hn=["right","left"],_a=["top","bottom"],Oa=["bottom","top"];function Ta(e,t,r){switch(e){case"top":case"bottom":return r?t?Hn:Wn:t?Wn:Hn;case"left":case"right":return t?_a:Oa;default:return[]}}function Aa(e,t,r,n){const o=Ke(e);let s=Ta(Pe(e),r==="start",n);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(vr)))),s}function _t(e){return e.replace(/left|right|bottom|top/g,t=>Ea[t])}function Na(e){return{top:0,right:0,bottom:0,left:0,...e}}function Un(e){return typeof e!="number"?Na(e):{top:e,right:e,bottom:e,left:e}}function Ot(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Kn(e,t,r){let{reference:n,floating:o}=e;const s=be(t),i=hr(t),a=gr(i),c=Pe(t),l=s==="y",f=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,u=n[a]/2-o[a]/2;let m;switch(c){case"top":m={x:f,y:n.y-o.height};break;case"bottom":m={x:f,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(Ke(t)){case"start":m[i]-=u*(r&&l?-1:1);break;case"end":m[i]+=u*(r&&l?-1:1);break}return m}const Ia=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:s=[],platform:i}=r,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:d}=Kn(l,n,c),u=n,m={},v=0;for(let p=0;p<a.length;p++){const{name:h,fn:y}=a[p],{x:b,y:S,data:R,reset:k}=await y({x:f,y:d,initialPlacement:n,placement:u,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});f=b??f,d=S??d,m={...m,[h]:{...m[h],...R}},k&&v<=50&&(v++,typeof k=="object"&&(k.placement&&(u=k.placement),k.rects&&(l=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):k.rects),{x:f,y:d}=Kn(l,u,c)),p=-1)}return{x:f,y:d,placement:u,strategy:o,middlewareData:m}};async function dt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:u=!1,padding:m=0}=Re(t,e),v=Un(m),h=a[u?d==="floating"?"reference":"floating":d],y=Ot(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(h)))==null||r?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:f,strategy:c})),b=d==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),R=await(s.isElement==null?void 0:s.isElement(S))?await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1}:{x:1,y:1},k=Ot(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:S,strategy:c}):b);return{top:(y.top-k.top+v.top)/R.y,bottom:(k.bottom-y.bottom+v.bottom)/R.y,left:(y.left-k.left+v.left)/R.x,right:(k.right-y.right+v.right)/R.x}}const Da=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:f=0}=Re(e,t)||{};if(l==null)return{};const d=Un(f),u={x:r,y:n},m=hr(o),v=gr(m),p=await i.getDimensions(l),h=m==="y",y=h?"top":"left",b=h?"bottom":"right",S=h?"clientHeight":"clientWidth",R=s.reference[v]+s.reference[m]-u[m]-s.floating[v],k=u[m]-s.reference[m],O=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let x=O?O[S]:0;(!x||!await(i.isElement==null?void 0:i.isElement(O)))&&(x=a.floating[S]||s.floating[v]);const C=R/2-k/2,T=x/2-p[v]/2-1,I=Ae(d[y],T),F=Ae(d[b],T),V=I,H=x-p[v]-F,L=x/2-p[v]/2+C,U=pr(V,L,H),D=!c.arrow&&Ke(o)!=null&&L!==U&&s.reference[v]/2-(L<V?I:F)-p[v]/2<0,z=D?L<V?L-V:L-H:0;return{[m]:u[m]+z,data:{[m]:U,centerOffset:L-U-z,...D&&{alignmentOffset:z}},reset:D}}}),Ma=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...h}=Re(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const y=Pe(o),b=be(a),S=Pe(a)===a,R=await(c.isRTL==null?void 0:c.isRTL(l.floating)),k=u||(S||!p?[_t(a)]:ka(a)),O=v!=="none";!u&&O&&k.push(...Aa(a,p,v,R));const x=[a,...k],C=await dt(t,h),T=[];let I=((n=s.flip)==null?void 0:n.overflows)||[];if(f&&T.push(C[y]),d){const L=Pa(o,i,R);T.push(C[L[0]],C[L[1]])}if(I=[...I,{placement:o,overflows:T}],!T.every(L=>L<=0)){var F,V;const L=(((F=s.flip)==null?void 0:F.index)||0)+1,U=x[L];if(U&&(!(d==="alignment"?b!==be(U):!1)||I.every(P=>be(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:L,overflows:I},reset:{placement:U}};let D=(V=I.filter(z=>z.overflows[0]<=0).sort((z,P)=>z.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(m){case"bestFit":{var H;const z=(H=I.filter(P=>{if(O){const q=be(P.placement);return q===b||q==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(q=>q>0).reduce((q,ee)=>q+ee,0)]).sort((P,q)=>P[1]-q[1])[0])==null?void 0:H[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function Gn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qn(e){return Sa.some(t=>e[t]>=0)}const La=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Re(e,t);switch(n){case"referenceHidden":{const s=await dt(t,{...o,elementContext:"reference"}),i=Gn(s,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:qn(i)}}}case"escaped":{const s=await dt(t,{...o,altBoundary:!0}),i=Gn(s,r.floating);return{data:{escapedOffsets:i,escaped:qn(i)}}}default:return{}}}}},Yn=new Set(["left","top"]);async function ja(e,t){const{placement:r,platform:n,elements:o}=e,s=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Pe(r),a=Ke(r),c=be(r)==="y",l=Yn.has(i)?-1:1,f=s&&c?-1:1,d=Re(t,e);let{mainAxis:u,crossAxis:m,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof v=="number"&&(m=a==="end"?v*-1:v),c?{x:m*f,y:u*l}:{x:u*l,y:m*f}}const Ba=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await ja(t,e);return i===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Fa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:h=>{let{x:y,y:b}=h;return{x:y,y:b}}},...c}=Re(e,t),l={x:r,y:n},f=await dt(t,c),d=be(Pe(o)),u=mr(d);let m=l[u],v=l[d];if(s){const h=u==="y"?"top":"left",y=u==="y"?"bottom":"right",b=m+f[h],S=m-f[y];m=pr(b,m,S)}if(i){const h=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=v+f[h],S=v-f[y];v=pr(b,v,S)}const p=a.fn({...t,[u]:m,[d]:v});return{...p,data:{x:p.x-r,y:p.y-n,enabled:{[u]:s,[d]:i}}}}}},za=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Re(e,t),f={x:r,y:n},d=be(o),u=mr(d);let m=f[u],v=f[d];const p=Re(a,t),h=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const S=u==="y"?"height":"width",R=s.reference[u]-s.floating[S]+h.mainAxis,k=s.reference[u]+s.reference[S]-h.mainAxis;m<R?m=R:m>k&&(m=k)}if(l){var y,b;const S=u==="y"?"width":"height",R=Yn.has(Pe(o)),k=s.reference[d]-s.floating[S]+(R&&((y=i.offset)==null?void 0:y[d])||0)+(R?0:h.crossAxis),O=s.reference[d]+s.reference[S]+(R?0:((b=i.offset)==null?void 0:b[d])||0)-(R?h.crossAxis:0);v<k?v=k:v>O&&(v=O)}return{[u]:m,[d]:v}}}},$a=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Re(e,t),f=await dt(t,l),d=Pe(o),u=Ke(o),m=be(o)==="y",{width:v,height:p}=s.floating;let h,y;d==="top"||d==="bottom"?(h=d,y=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,h=u==="end"?"top":"bottom");const b=p-f.top-f.bottom,S=v-f.left-f.right,R=Ae(p-f[h],b),k=Ae(v-f[y],S),O=!t.middlewareData.shift;let x=R,C=k;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(C=S),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(x=b),O&&!u){const I=de(f.left,0),F=de(f.right,0),V=de(f.top,0),H=de(f.bottom,0);m?C=v-2*(I!==0||F!==0?I+F:de(f.left,f.right)):x=p-2*(V!==0||H!==0?V+H:de(f.top,f.bottom))}await c({...t,availableWidth:C,availableHeight:x});const T=await i.getDimensions(a.floating);return v!==T.width||p!==T.height?{reset:{rects:!0}}:{}}}};function Tt(){return typeof window<"u"}function Ge(e){return Xn(e)?(e.nodeName||"").toLowerCase():"#document"}function fe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Xn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xn(e){return Tt()?e instanceof Node||e instanceof fe(e).Node:!1}function ge(e){return Tt()?e instanceof Element||e instanceof fe(e).Element:!1}function xe(e){return Tt()?e instanceof HTMLElement||e instanceof fe(e).HTMLElement:!1}function Qn(e){return!Tt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fe(e).ShadowRoot}const Va=new Set(["inline","contents"]);function ft(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=he(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!Va.has(o)}const Wa=new Set(["table","td","th"]);function Ha(e){return Wa.has(Ge(e))}const Ua=[":popover-open",":modal"];function At(e){return Ua.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ka=["transform","translate","scale","rotate","perspective"],Ga=["transform","translate","scale","rotate","perspective","filter"],qa=["paint","layout","strict","content"];function yr(e){const t=br(),r=ge(e)?he(e):e;return Ka.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||Ga.some(n=>(r.willChange||"").includes(n))||qa.some(n=>(r.contain||"").includes(n))}function Ya(e){let t=Ne(e);for(;xe(t)&&!qe(t);){if(yr(t))return t;if(At(t))return null;t=Ne(t)}return null}function br(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xa=new Set(["html","body","#document"]);function qe(e){return Xa.has(Ge(e))}function he(e){return fe(e).getComputedStyle(e)}function Nt(e){return ge(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Qn(e)&&e.host||we(e);return Qn(t)?t.host:t}function Zn(e){const t=Ne(e);return qe(t)?e.ownerDocument?e.ownerDocument.body:e.body:xe(t)&&ft(t)?t:Zn(t)}function pt(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Zn(e),s=o===((n=e.ownerDocument)==null?void 0:n.body),i=fe(o);if(s){const a=wr(i);return t.concat(i,i.visualViewport||[],ft(o)?o:[],a&&r?pt(a):[])}return t.concat(o,pt(o,[],r))}function wr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jn(e){const t=he(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=xe(e),s=o?e.offsetWidth:r,i=o?e.offsetHeight:n,a=Pt(r)!==s||Pt(n)!==i;return a&&(r=s,n=i),{width:r,height:n,$:a}}function xr(e){return ge(e)?e:e.contextElement}function Ye(e){const t=xr(e);if(!xe(t))return ye(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:s}=Jn(t);let i=(s?Pt(r.width):r.width)/n,a=(s?Pt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Qa=ye(0);function eo(e){const t=fe(e);return!br()||!t.visualViewport?Qa:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Za(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fe(e)?!1:t}function Be(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),s=xr(e);let i=ye(1);t&&(n?ge(n)&&(i=Ye(n)):i=Ye(e));const a=Za(s,r,n)?eo(s):ye(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,f=o.width/i.x,d=o.height/i.y;if(s){const u=fe(s),m=n&&ge(n)?fe(n):n;let v=u,p=wr(v);for(;p&&n&&m!==v;){const h=Ye(p),y=p.getBoundingClientRect(),b=he(p),S=y.left+(p.clientLeft+parseFloat(b.paddingLeft))*h.x,R=y.top+(p.clientTop+parseFloat(b.paddingTop))*h.y;c*=h.x,l*=h.y,f*=h.x,d*=h.y,c+=S,l+=R,v=fe(p),p=wr(v)}}return Ot({width:f,height:d,x:c,y:l})}function It(e,t){const r=Nt(e).scrollLeft;return t?t.left+r:Be(we(e)).left+r}function to(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-It(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function Ja(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const s=o==="fixed",i=we(n),a=t?At(t.floating):!1;if(n===i||a&&s)return r;let c={scrollLeft:0,scrollTop:0},l=ye(1);const f=ye(0),d=xe(n);if((d||!d&&!s)&&((Ge(n)!=="body"||ft(i))&&(c=Nt(n)),xe(n))){const m=Be(n);l=Ye(n),f.x=m.x+n.clientLeft,f.y=m.y+n.clientTop}const u=i&&!d&&!s?to(i,c):ye(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+f.x+u.x,y:r.y*l.y-c.scrollTop*l.y+f.y+u.y}}function el(e){return Array.from(e.getClientRects())}function tl(e){const t=we(e),r=Nt(e),n=e.ownerDocument.body,o=de(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=de(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+It(e);const a=-r.scrollTop;return he(n).direction==="rtl"&&(i+=de(t.clientWidth,n.clientWidth)-o),{width:o,height:s,x:i,y:a}}const ro=25;function rl(e,t){const r=fe(e),n=we(e),o=r.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const f=br();(!f||f&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=It(n);if(l<=0){const f=n.ownerDocument,d=f.body,u=getComputedStyle(d),m=f.compatMode==="CSS1Compat"&&parseFloat(u.marginLeft)+parseFloat(u.marginRight)||0,v=Math.abs(n.clientWidth-d.clientWidth-m);v<=ro&&(s-=v)}else l<=ro&&(s+=l);return{width:s,height:i,x:a,y:c}}const nl=new Set(["absolute","fixed"]);function ol(e,t){const r=Be(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,s=xe(e)?Ye(e):ye(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=n*s.y;return{width:i,height:a,x:c,y:l}}function no(e,t,r){let n;if(t==="viewport")n=rl(e,r);else if(t==="document")n=tl(we(e));else if(ge(t))n=ol(t,r);else{const o=eo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ot(n)}function oo(e,t){const r=Ne(e);return r===t||!ge(r)||qe(r)?!1:he(r).position==="fixed"||oo(r,t)}function sl(e,t){const r=t.get(e);if(r)return r;let n=pt(e,[],!1).filter(a=>ge(a)&&Ge(a)!=="body"),o=null;const s=he(e).position==="fixed";let i=s?Ne(e):e;for(;ge(i)&&!qe(i);){const a=he(i),c=yr(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&nl.has(o.position)||ft(i)&&!c&&oo(e,i))?n=n.filter(f=>f!==i):o=a,i=Ne(i)}return t.set(e,n),n}function il(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[...r==="clippingAncestors"?At(t)?[]:sl(t,this._c):[].concat(r),n],a=i[0],c=i.reduce((l,f)=>{const d=no(t,f,o);return l.top=de(d.top,l.top),l.right=Ae(d.right,l.right),l.bottom=Ae(d.bottom,l.bottom),l.left=de(d.left,l.left),l},no(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function al(e){const{width:t,height:r}=Jn(e);return{width:t,height:r}}function ll(e,t,r){const n=xe(t),o=we(t),s=r==="fixed",i=Be(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ye(0);function l(){c.x=It(o)}if(n||!n&&!s)if((Ge(t)!=="body"||ft(o))&&(a=Nt(t)),n){const m=Be(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();s&&!n&&o&&l();const f=o&&!n&&!s?to(o,a):ye(0),d=i.left+a.scrollLeft-c.x-f.x,u=i.top+a.scrollTop-c.y-f.y;return{x:d,y:u,width:i.width,height:i.height}}function Sr(e){return he(e).position==="static"}function so(e,t){if(!xe(e)||he(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return we(e)===r&&(r=r.ownerDocument.body),r}function io(e,t){const r=fe(e);if(At(e))return r;if(!xe(e)){let o=Ne(e);for(;o&&!qe(o);){if(ge(o)&&!Sr(o))return o;o=Ne(o)}return r}let n=so(e,t);for(;n&&Ha(n)&&Sr(n);)n=so(n,t);return n&&qe(n)&&Sr(n)&&!yr(n)?r:n||Ya(e)||r}const cl=async function(e){const t=this.getOffsetParent||io,r=this.getDimensions,n=await r(e.floating);return{reference:ll(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function ul(e){return he(e).direction==="rtl"}const dl={convertOffsetParentRelativeRectToViewportRelativeRect:Ja,getDocumentElement:we,getClippingRect:il,getOffsetParent:io,getElementRects:cl,getClientRects:el,getDimensions:al,getScale:Ye,isElement:ge,isRTL:ul};function ao(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fl(e,t){let r=null,n;const o=we(e);function s(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:f,top:d,width:u,height:m}=l;if(a||t(),!u||!m)return;const v=kt(d),p=kt(o.clientWidth-(f+u)),h=kt(o.clientHeight-(d+m)),y=kt(f),S={rootMargin:-v+"px "+-p+"px "+-h+"px "+-y+"px",threshold:de(0,Ae(1,c))||1};let R=!0;function k(O){const x=O[0].intersectionRatio;if(x!==c){if(!R)return i();x?i(!1,x):n=setTimeout(()=>{i(!1,1e-7)},1e3)}x===1&&!ao(l,e.getBoundingClientRect())&&i(),R=!1}try{r=new IntersectionObserver(k,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(k,S)}r.observe(e)}return i(!0),s}function pl(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=xr(e),f=o||s?[...l?pt(l):[],...pt(t)]:[];f.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),s&&y.addEventListener("resize",r)});const d=l&&a?fl(l,r):null;let u=-1,m=null;i&&(m=new ResizeObserver(y=>{let[b]=y;b&&b.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var S;(S=m)==null||S.observe(t)})),r()}),l&&!c&&m.observe(l),m.observe(t));let v,p=c?Be(e):null;c&&h();function h(){const y=Be(e);p&&!ao(p,y)&&r(),p=y,v=requestAnimationFrame(h)}return r(),()=>{var y;f.forEach(b=>{o&&b.removeEventListener("scroll",r),s&&b.removeEventListener("resize",r)}),d?.(),(y=m)==null||y.disconnect(),m=null,c&&cancelAnimationFrame(v)}}const ml=Ba,gl=Fa,hl=Ma,vl=$a,yl=La,lo=Da,bl=za,wl=(e,t,r)=>{const n=new Map,o={platform:dl,...r},s={...o.platform,_c:n};return Ia(e,t,{...o,platform:s})};var xl=typeof document<"u",Sl=function(){},Dt=xl?B.useLayoutEffect:Sl;function Mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Mt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const s=o[n];if(!(s==="_owner"&&e.$$typeof)&&!Mt(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function co(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uo(e,t){const r=co(e);return Math.round(t*r)/r}function Er(e){const t=g.useRef(e);return Dt(()=>{t.current=e}),t}function El(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[f,d]=g.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[u,m]=g.useState(n);Mt(u,n)||m(n);const[v,p]=g.useState(null),[h,y]=g.useState(null),b=g.useCallback(P=>{P!==O.current&&(O.current=P,p(P))},[]),S=g.useCallback(P=>{P!==x.current&&(x.current=P,y(P))},[]),R=s||v,k=i||h,O=g.useRef(null),x=g.useRef(null),C=g.useRef(f),T=c!=null,I=Er(c),F=Er(o),V=Er(l),H=g.useCallback(()=>{if(!O.current||!x.current)return;const P={placement:t,strategy:r,middleware:u};F.current&&(P.platform=F.current),wl(O.current,x.current,P).then(q=>{const ee={...q,isPositioned:V.current!==!1};L.current&&!Mt(C.current,ee)&&(C.current=ee,ot.flushSync(()=>{d(ee)}))})},[u,t,r,F,V]);Dt(()=>{l===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[l]);const L=g.useRef(!1);Dt(()=>(L.current=!0,()=>{L.current=!1}),[]),Dt(()=>{if(R&&(O.current=R),k&&(x.current=k),R&&k){if(I.current)return I.current(R,k,H);H()}},[R,k,H,I,T]);const U=g.useMemo(()=>({reference:O,floating:x,setReference:b,setFloating:S}),[b,S]),D=g.useMemo(()=>({reference:R,floating:k}),[R,k]),z=g.useMemo(()=>{const P={position:r,left:0,top:0};if(!D.floating)return P;const q=uo(D.floating,f.x),ee=uo(D.floating,f.y);return a?{...P,transform:"translate("+q+"px, "+ee+"px)",...co(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:q,top:ee}},[r,a,D.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:H,refs:U,elements:D,floatingStyles:z}),[f,H,U,D,z])}const Cl=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?lo({element:n.current,padding:o}).fn(r):{}:n?lo({element:n,padding:o}).fn(r):{}}}},Rl=(e,t)=>({...ml(e),options:[e,t]}),Pl=(e,t)=>({...gl(e),options:[e,t]}),kl=(e,t)=>({...bl(e),options:[e,t]}),_l=(e,t)=>({...hl(e),options:[e,t]}),Ol=(e,t)=>({...vl(e),options:[e,t]}),Tl=(e,t)=>({...yl(e),options:[e,t]}),Al=(e,t)=>({...Cl(e),options:[e,t]});var Nl="Arrow",fo=g.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...s}=e;return w.jsx(Z.svg,{...s,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});fo.displayName=Nl;var Il=fo;function Dl(e){const[t,r]=g.useState(void 0);return ce(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;r({width:i,height:a})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Cr="Popper",[po,mo]=ar(Cr),[Ml,go]=po(Cr),ho=e=>{const{__scopePopper:t,children:r}=e,[n,o]=g.useState(null);return w.jsx(Ml,{scope:t,anchor:n,onAnchorChange:o,children:r})};ho.displayName=Cr;var vo="PopperAnchor",yo=g.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,s=go(vo,r),i=g.useRef(null),a=ne(t,i),c=g.useRef(null);return g.useEffect(()=>{const l=c.current;c.current=n?.current||i.current,l!==c.current&&s.onAnchorChange(c.current)}),n?null:w.jsx(Z.div,{...o,ref:a})});yo.displayName=vo;var Rr="PopperContent",[Ll,jl]=po(Rr),bo=g.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:f=0,sticky:d="partial",hideWhenDetached:u=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=e,h=go(Rr,r),[y,b]=g.useState(null),S=ne(t,_=>b(_)),[R,k]=g.useState(null),O=Dl(R),x=O?.width??0,C=O?.height??0,T=n+(s!=="center"?"-"+s:""),I=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},F=Array.isArray(l)?l:[l],V=F.length>0,H={padding:I,boundary:F.filter(Fl),altBoundary:V},{refs:L,floatingStyles:U,placement:D,isPositioned:z,middlewareData:P}=El({strategy:"fixed",placement:T,whileElementsMounted:(..._)=>pl(..._,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[Rl({mainAxis:o+C,alignmentAxis:i}),c&&Pl({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?kl():void 0,...H}),c&&_l({...H}),Ol({...H,apply:({elements:_,rects:K,availableWidth:Q,availableHeight:G})=>{const{width:Y,height:X}=K.reference,pe=_.floating.style;pe.setProperty("--radix-popper-available-width",`${Q}px`),pe.setProperty("--radix-popper-available-height",`${G}px`),pe.setProperty("--radix-popper-anchor-width",`${Y}px`),pe.setProperty("--radix-popper-anchor-height",`${X}px`)}}),R&&Al({element:R,padding:a}),zl({arrowWidth:x,arrowHeight:C}),u&&Tl({strategy:"referenceHidden",...H})]}),[q,ee]=So(D),E=je(v);ce(()=>{z&&E?.()},[z,E]);const M=P.arrow?.x,j=P.arrow?.y,$=P.arrow?.centerOffset!==0,[ie,ue]=g.useState();return ce(()=>{y&&ue(window.getComputedStyle(y).zIndex)},[y]),w.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...U,transform:z?U.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(Ll,{scope:r,placedSide:q,onArrowChange:k,arrowX:M,arrowY:j,shouldHideArrow:$,children:w.jsx(Z.div,{"data-side":q,"data-align":ee,...p,ref:S,style:{...p.style,animation:z?void 0:"none"}})})})});bo.displayName=Rr;var wo="PopperArrow",Bl={top:"bottom",right:"left",bottom:"top",left:"right"},xo=g.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,s=jl(wo,n),i=Bl[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(Il,{...o,ref:r,style:{...o.style,display:"block"}})})});xo.displayName=wo;function Fl(e){return e!==null}var zl=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,f]=So(r),d={start:"0%",center:"50%",end:"100%"}[f],u=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+c/2;let v="",p="";return l==="bottom"?(v=i?d:`${u}px`,p=`${-c}px`):l==="top"?(v=i?d:`${u}px`,p=`${n.floating.height+c}px`):l==="right"?(v=`${-c}px`,p=i?d:`${m}px`):l==="left"&&(v=`${n.floating.width+c}px`,p=i?d:`${m}px`),{data:{x:v,y:p}}}});function So(e){const[t,r="center"]=e.split("-");return[t,r]}var $l=ho,Vl=yo,Wl=bo,Hl=xo,Ul="Portal",Eo=g.forwardRef((e,t)=>{const{container:r,...n}=e,[o,s]=g.useState(!1);ce(()=>s(!0),[]);const i=r||o&&globalThis?.document?.body;return i?vi.createPortal(w.jsx(Z.div,{...n,ref:t}),i):null});Eo.displayName=Ul;var Kl=g[" useInsertionEffect ".trim().toString()]||ce;function Co({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,s,i]=Gl({defaultProp:t,onChange:r}),a=e!==void 0,c=a?e:o;{const f=g.useRef(e!==void 0);g.useEffect(()=>{const d=f.current;d!==a&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=a},[a,n])}const l=g.useCallback(f=>{if(a){const d=ql(f)?f(e):f;d!==e&&i.current?.(d)}else s(f)},[a,e,s,i]);return[c,l]}function Gl({defaultProp:e,onChange:t}){const[r,n]=g.useState(e),o=g.useRef(r),s=g.useRef(t);return Kl(()=>{s.current=t},[t]),g.useEffect(()=>{o.current!==r&&(s.current?.(r),o.current=r)},[r,o]),[r,n,s]}function ql(e){return typeof e=="function"}function Yl(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ro=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Xl="VisuallyHidden",Ql=g.forwardRef((e,t)=>w.jsx(Z.span,{...e,ref:t,style:{...Ro,...e.style}}));Ql.displayName=Xl;var Zl=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Xe=new WeakMap,Lt=new WeakMap,jt={},Pr=0,Po=function(e){return e&&(e.host||Po(e.parentNode))},Jl=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Po(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ec=function(e,t,r,n){var o=Jl(t,Array.isArray(e)?e:[e]);jt[r]||(jt[r]=new WeakMap);var s=jt[r],i=[],a=new Set,c=new Set(o),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};o.forEach(l);var f=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(u){if(a.has(u))f(u);else try{var m=u.getAttribute(n),v=m!==null&&m!=="false",p=(Xe.get(u)||0)+1,h=(s.get(u)||0)+1;Xe.set(u,p),s.set(u,h),i.push(u),p===1&&v&&Lt.set(u,!0),h===1&&u.setAttribute(r,"true"),v||u.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",u,y)}})};return f(t),a.clear(),Pr++,function(){i.forEach(function(d){var u=Xe.get(d)-1,m=s.get(d)-1;Xe.set(d,u),s.set(d,m),u||(Lt.has(d)||d.removeAttribute(n),Lt.delete(d)),m||d.removeAttribute(r)}),Pr--,Pr||(Xe=new WeakMap,Xe=new WeakMap,Lt=new WeakMap,jt={})}},tc=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=Zl(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),ec(n,o,r,"aria-hidden")):function(){return null}},Se=function(){return Se=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Se.apply(this,arguments)};function ko(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function rc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,s;n<o;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Bt="right-scroll-bar-position",Ft="width-before-scroll-bar",nc="with-scroll-bars-hidden",oc="--removed-body-scroll-bar-size";function kr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sc(e,t){var r=B.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var ic=typeof window<"u"?g.useLayoutEffect:g.useEffect,_o=new WeakMap;function ac(e,t){var r=sc(null,function(n){return e.forEach(function(o){return kr(o,n)})});return ic(function(){var n=_o.get(r);if(n){var o=new Set(n),s=new Set(e),i=r.current;o.forEach(function(a){s.has(a)||kr(a,null)}),s.forEach(function(a){o.has(a)||kr(a,i)})}_o.set(r,e)},[e]),r}function lc(e){return e}function cc(e,t){t===void 0&&(t=lc);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var i=t(s,n);return r.push(i),function(){r=r.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(n=!0;r.length;){var i=r;r=[],i.forEach(s)}r={push:function(a){return s(a)},filter:function(){return r}}},assignMedium:function(s){n=!0;var i=[];if(r.length){var a=r;r=[],a.forEach(s),i=r}var c=function(){var f=i;i=[],f.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),r={push:function(f){i.push(f),l()},filter:function(f){return i=i.filter(f),r}}}};return o}function uc(e){e===void 0&&(e={});var t=cc(null);return t.options=Se({async:!0,ssr:!1},e),t}var Oo=function(e){var t=e.sideCar,r=ko(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return g.createElement(n,Se({},r))};Oo.isSideCarExport=!0;function dc(e,t){return e.useMedium(t),Oo}var To=uc(),_r=function(){},zt=g.forwardRef(function(e,t){var r=g.useRef(null),n=g.useState({onScrollCapture:_r,onWheelCapture:_r,onTouchMoveCapture:_r}),o=n[0],s=n[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,f=e.enabled,d=e.shards,u=e.sideCar,m=e.noRelative,v=e.noIsolation,p=e.inert,h=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,S=e.gapMode,R=ko(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=u,O=ac([r,t]),x=Se(Se({},R),o);return g.createElement(g.Fragment,null,f&&g.createElement(k,{sideCar:To,removeScrollBar:l,shards:d,noRelative:m,noIsolation:v,inert:p,setCallbacks:s,allowPinchZoom:!!h,lockRef:r,gapMode:S}),i?g.cloneElement(g.Children.only(a),Se(Se({},x),{ref:O})):g.createElement(b,Se({},x,{className:c,ref:O}),a))});zt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},zt.classNames={fullWidth:Ft,zeroRight:Bt};var fc=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pc(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=fc();return t&&e.setAttribute("nonce",t),e}function mc(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gc(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var hc=function(){var e=0,t=null;return{add:function(r){e==0&&(t=pc())&&(mc(t,r),gc(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vc=function(){var e=hc();return function(t,r){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ao=function(){var e=vc(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},yc={left:0,top:0,right:0,gap:0},Or=function(e){return parseInt(e||"",10)||0},bc=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Or(r),Or(n),Or(o)]},wc=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return yc;var t=bc(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},xc=Ao(),Qe="data-scroll-locked",Sc=function(e,t,r,n){var o=e.left,s=e.top,i=e.right,a=e.gap;return r===void 0&&(r="margin"),`
113
- .`.concat(nc,` {
114
- overflow: hidden `).concat(n,`;
115
- padding-right: `).concat(a,"px ").concat(n,`;
112
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=j,l={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),f=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,ae.createPortal=function(u,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error("Target container is not a DOM element.");return n(u,d,null,m)},ae.flushSync=function(u){var d=f.T,m=l.p;try{if(f.T=null,l.p=2,u)return u()}finally{f.T=d,l.p=m,l.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},ae.preconnect=function(u,d){typeof u=="string"&&u?d!=null&&typeof d!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",s(d)):d!=null&&typeof d.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(d.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,l.d.C(u,d))},ae.prefetchDNS=function(u){if(typeof u!="string"||!u)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u));else if(1<arguments.length){var d=arguments[1];typeof d=="object"&&d.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(d)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",s(d))}typeof u=="string"&&l.d.D(u)},ae.preinit=function(u,d){if(typeof u=="string"&&u?d==null||typeof d!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",s(d)):d.as!=="style"&&d.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',s(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(u)),typeof u=="string"&&d&&typeof d.as=="string"){var m=d.as,v=r(m,d.crossOrigin),p=typeof d.integrity=="string"?d.integrity:void 0,h=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?l.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:v,integrity:p,fetchPriority:h}):m==="script"&&l.d.X(u,{crossOrigin:v,integrity:p,fetchPriority:h,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(u,d){var m="";if(typeof u=="string"&&u||(m+=" The `href` argument encountered was "+o(u)+"."),d!==void 0&&typeof d!="object"?m+=" The `options` argument encountered was "+o(d)+".":d&&"as"in d&&d.as!=="script"&&(m+=" The `as` option encountered was "+s(d.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=d&&typeof d.as=="string"?d.as:"script",m){case"script":break;default:m=s(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,u)}typeof u=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(m=r(d.as,d.crossOrigin),l.d.M(u,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&l.d.M(u))},ae.preload=function(u,d){var m="";if(typeof u=="string"&&u||(m+=" The `href` argument encountered was "+o(u)+"."),d==null||typeof d!="object"?m+=" The `options` argument encountered was "+o(d)+".":typeof d.as=="string"&&d.as||(m+=" The `as` option encountered was "+o(d.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){m=d.as;var v=r(m,d.crossOrigin);l.d.L(u,m,{crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(u,d){var m="";typeof u=="string"&&u||(m+=" The `href` argument encountered was "+o(u)+"."),d!==void 0&&typeof d!="object"?m+=" The `options` argument encountered was "+o(d)+".":d&&"as"in d&&typeof d.as!="string"&&(m+=" The `as` option encountered was "+o(d.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof u=="string"&&(d?(m=r(d.as,d.crossOrigin),l.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})):l.d.m(u))},ae.requestFormReset=function(u){l.d.r(u)},ae.unstable_batchedUpdates=function(u,d){return u(d)},ae.useFormState=function(u,d,m){return a().useFormState(u,d,m)},ae.useFormStatus=function(){return a().useHostTransitionStatus()},ae.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ae}var Wr;function ci(){if(Wr)return kt.exports;Wr=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}return process.env.NODE_ENV==="production"?(t(),kt.exports=ai()):kt.exports=ii(),kt.exports}var dt=ci();const li=ia(dt);function Kr(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Hr(...t){return e=>{let n=!1;const r=t.map(o=>{const s=Kr(o,e);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():Kr(t[o],null)}}}}function oe(...t){return g.useCallback(Hr(...t),t)}function ft(t){const e=di(t),n=g.forwardRef((r,o)=>{const{children:s,...a}=r,i=g.Children.toArray(s),l=i.find(pi);if(l){const c=l.props.children,f=i.map(u=>u===l?g.Children.count(c)>1?g.Children.only(null):g.isValidElement(c)?c.props.children:null:u);return w.jsx(e,{...a,ref:o,children:g.isValidElement(c)?g.cloneElement(c,void 0,f):null})}return w.jsx(e,{...a,ref:o,children:s})});return n.displayName=`${t}.Slot`,n}var ui=ft("Slot");function di(t){const e=g.forwardRef((n,r)=>{const{children:o,...s}=n;if(g.isValidElement(o)){const a=gi(o),i=mi(s,o.props);return o.type!==g.Fragment&&(i.ref=r?Hr(r,a):a),g.cloneElement(o,i)}return g.Children.count(o)>1?g.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var fi=Symbol("radix.slottable");function pi(t){return g.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===fi}function mi(t,e){const n={...e};for(const r in e){const o=t[r],s=e[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...i)=>{const l=s(...i);return o(...i),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...t,...n}}function gi(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var hi=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],X=hi.reduce((t,e)=>{const n=ft(`Primitive.${e}`),r=g.forwardRef((o,s)=>{const{asChild:a,...i}=o,l=a?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(l,{...i,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function vi(t,e){t&&dt.flushSync(()=>t.dispatchEvent(e))}var yi="Label",Ur=g.forwardRef((t,e)=>w.jsx(X.label,{...t,ref:e,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(t.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ur.displayName=yi;var bi=Ur;function wi(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(bi,{"data-slot":"label",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}function xi(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx("div",{"data-slot":"field-group",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}const Si=$r("group/field flex w-full gap-3 data-[invalid=true]:text-destructive",{variants:{orientation:{vertical:["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],horizontal:["flex-row items-center","[&>[data-slot=field-label]]:flex-auto","has-[>[data-slot=field-content]]:items-start has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"],responsive:["flex-col [&>*]:w-full [&>.sr-only]:w-auto @md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto","@md/field-group:[&>[data-slot=field-label]]:flex-auto","@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"]}},defaultVariants:{orientation:"vertical"}});function Gr(t){const e=J.c(11);let n,r,o;e[0]!==t?({className:n,orientation:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o):(n=e[1],r=e[2],o=e[3]);const s=o===void 0?"vertical":o;let a;e[4]!==n||e[5]!==s?(a=re(Si({orientation:s}),n),e[4]=n,e[5]=s,e[6]=a):a=e[6];let i;return e[7]!==s||e[8]!==r||e[9]!==a?(i=w.jsx("div",{role:"group","data-slot":"field","data-orientation":s,className:a,...r}),e[7]=s,e[8]=r,e[9]=a,e[10]=i):i=e[10],i}function Ei(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50","has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4","has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(wi,{"data-slot":"field-label",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}function Ci(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance","last:mt-0 nth-last-2:-mt-1 [[data-variant=legend]+&]:-mt-1.5","[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx("p",{"data-slot":"field-description",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}function Ri(t){const e=J.c(15);let n,r,o,s;e[0]!==t?({className:r,children:n,errors:o,...s}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s):(n=e[1],r=e[2],o=e[3],s=e[4]);let a;e:{if(n){a=n;break e}if(!o?.length){a=null;break e}let f;e[5]!==o?(f=[...new Map(o.map(Pi)).values()],e[5]=o,e[6]=f):f=e[6];const u=f;if(u?.length==1){a=u[0]?.message;break e}let d;e[7]!==u?(d=w.jsx("ul",{className:"ml-4 flex list-disc flex-col gap-1",children:u.map(Ti)}),e[7]=u,e[8]=d):d=e[8],a=d}const i=a;if(!i)return null;let l;e[9]!==r?(l=re("text-destructive text-sm font-normal",r),e[9]=r,e[10]=l):l=e[10];let c;return e[11]!==i||e[12]!==s||e[13]!==l?(c=w.jsx("div",{role:"alert","data-slot":"field-error",className:l,...s,children:i}),e[11]=i,e[12]=s,e[13]=l,e[14]=c):c=e[14],c}function Ti(t,e){return t?.message&&w.jsx("li",{children:t.message},e)}function Pi(t){return[t?.message,t]}const _i=(t={})=>{if(Array.isArray(t)&&t.length>0)return JSON.stringify(t);for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];Object.prototype.toString.call(n)==="[object Object]"&&(t[e]=JSON.stringify(n))}return t},Oi=(t={})=>{for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];try{/[{]+/g.test(n)&&/[}]+/g.test(n)&&(t[e]=JSON.parse(n))}catch{}}return t},ki=(t={decode:!1})=>{const{decode:e}=t,n=/\+/g,r=/([^&=]+)=?([^&]*)/g,o=l=>decodeURIComponent(l.replace(n," ")),s=window.location.search.substring(1),a={},i=()=>{const l=r.exec(s);return l&&(e?a[o(l[1])]=o(l[2]):a[l[1]]=l[2],i()),a};return i(),a},Ze={paramsToQuery:_i,queryToData:Oi,getURLParameter:ki},Pe=pt;function pt(t,e){const n=Nt();return pt=function(r,o){return r=r-157,n[r]},pt(t,e)}(function(t,e){const n=pt,r=t();for(;;)try{if(-parseInt(n(216))/1+parseInt(n(215))/2+-parseInt(n(183))/3+-parseInt(n(175))/4*(-parseInt(n(193))/5)+-parseInt(n(162))/6+-parseInt(n(165))/7+-parseInt(n(198))/8*(-parseInt(n(205))/9)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(Nt,144666);const le={};function Nt(){const t=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return Nt=function(){return t},Nt()}let Ve=null;const qr=async(t,e)=>{const n=pt;!window[n(161)]&&window[n(212)](n(170));const{DBName:r="",DBVersion:o=1}=t;let s,a=!1;try{const i=window[n(161)].open(r,o);await new Promise((l,c)=>{const f=n;i[f(187)]=async function(u){const d=f,m=u.target[d(203)],{stores:v=[]}=t;await Promise.all(v[d(188)](async p=>{const h=d,{DBStoreName:b="",properties:y={}}=p;try{const x={};x[h(213)]=t[h(192)];const C=u[h(186)][h(203)][h(176)](b,x);if(Object[h(174)](y)[h(197)]===0){console[h(158)](b+h(172));return}for(const T in y)if(y[h(209)][h(194)](y,T)){const _=y[T],E={..._[h(185)]};C[h(185)](T,T,E)}}catch(x){console[h(158)](x)}})),s=m,a=!0},i.onsuccess=async function(u){const d=f;if(s=this[d(203)],a){const{stores:m=[]}=t;await Promise.all(m.map(async v=>{const p=d,{DBStoreName:h=""}=v,b=s[p(189)]([h],p(211)),y=b[p(166)](h),x={};x[t[p(192)]]=e,y.add(x);try{await new Promise((C,T)=>{const _=p;b[_(164)]=function(E){const S=_;console[S(196)](S(173),E),T()},b.oncomplete=function(E){C()},b.onerror=function(E){console.error(_(218),E),T()}})}catch(C){console[p(158)](p(178),C)}}))}l()},i[f(214)]=function(u){c(u)}})}catch(i){console.error(i,n(202))}return s};let At=!1;le[Pe(157)]=async(t,e)=>{const n=Pe,{mapDB:r,primaryKey:o}=t;return r?o?(At&&await new Promise(async(s,a)=>{const i=()=>{At?setTimeout(()=>{i()},200):s()};i()}),!Ve&&(At=!0,Ve=await qr(r,o),Ve?.[n(207)]("close",async()=>{const s=n;console[s(217)](s(195)),Ve=await qr(r,o)}),At=!1),e&&e(Ve),Ve):(console[n(158)](n(169)),!1):(console[n(158)]("必须传入数据库配置信息"),!1)},le[Pe(180)]=async(t,e)=>{const n=Pe,{mapDB:r,tableName:o,primaryKey:s}=t,a={};a[n(182)]=r,a.primaryKey=s;const i=await le[n(157)](a);if(!i)return;const l=i[n(189)]([o]),c=l[n(166)](o),f=c[n(159)](s);return new Promise((u,d)=>{const m=n;f[m(160)]=function(v){const p=m;e&&e(o+p(177)+f[p(203)]),u(f[p(203)])},f[m(214)]=function(v){console[m(196)](o+"事务失败"+v),d()}})},le.updateStore=async(t,e)=>{var n;const r=Pe,{mapDB:o,tableName:s,updateData:a}=t;!a[o?.[r(192)]]&&console.warn("请传入主键"+o[r(192)]);const i={};i[r(182)]=o,i[r(192)]=a[o?.[r(192)]];const l=await le[r(157)](i);if(!l)return;let c=null;try{c=l[r(189)]([s],r(211)).objectStore(s)}catch(m){console[r(196)](r(208),m)}let f=null,u=null;const d=await new Promise((m,v)=>{const p=r,h=c[p(184)](a[o?.primaryKey]);h[p(160)]=b=>{m(b)},h.onerror=b=>{v(b)}});u=(n=d?.[r(219)])==null?void 0:n.result;try{u&&u?.[r(192)]===a[o?.primaryKey]?f=u[r(204)](a):f=c[r(206)](a)}catch(m){console[r(196)](r(181),m,a)}new Promise((m,v)=>{const p=r;!f&&(console[p(196)](s+p(191)),v()),f[p(160)]=function(h){e&&e(s+p(163)),m()},f.onerror=function(h){console.error(s+p(171),h),v()}}),u&&u[r(190)]()},le[Pe(179)]=async(t,e)=>{const n=Pe,{mapDB:r,tableName:o,primaryKey:s}=t,a={};a[n(182)]=r,a[n(192)]=s;const i=await le.getDB(a);if(!i)return;const l=i[n(189)]([o],n(211))[n(166)](o)[n(167)](s);return new Promise((c,f)=>{const u=n;l[u(160)]=function(d){e&&e(o+u(200)),c()},l[u(214)]=function(d){console[u(196)](o+"数据删除失败"+d),f()}})},le[Pe(210)]=async(t,e)=>{const n=Pe,{mapDB:r}=t,o=window[n(161)].deleteDatabase(r[n(199)]);return new Promise((s,a)=>{const i=n;o[i(160)]=l=>{const c=i;e&&e(r[c(199)]+c(168)),s()},o.onerror=l=>{const c=i;console[c(196)](r[c(199)]+c(201)+l),a()}})};function Ae(t,e){const n=It();return Ae=function(r,o){return r=r-479,n[r]},Ae(t,e)}function It(){const t=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return It=function(){return t},It()}const xn=Ae;(function(t,e){const n=Ae,r=t();for(;;)try{if(-parseInt(n(485))/1*(-parseInt(n(486))/2)+-parseInt(n(490))/3+parseInt(n(499))/4+parseInt(n(491))/5*(-parseInt(n(497))/6)+-parseInt(n(488))/7+parseInt(n(492))/8*(parseInt(n(494))/9)+parseInt(n(496))/10*(parseInt(n(481))/11)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(It,801934);async function Ni(t,e){const n=Ae,{tableName:r,propertiesKey:o,parameter:s,primaryKey:a,mapDB:i}=t;let l=null,c={[i.primaryKey]:a};const f={};f.mapDB=i,f[n(501)]=r,f[n(495)]=a;const u=await le.getDataByKey(f);u&&(c={...u,[i[n(495)]]:a}),c[o]=s;const d={};return d[n(500)]=i,d[n(501)]=r,d.updateData=c,await le.updateStore(d),s&&(l=s),e&&e(l),l}async function Ai(t,e){const n=Ae,{tableName:r,propertiesKey:o,primaryKey:s,mapDB:a}=t;let i=null;const l={};l[n(500)]=a,l.tableName=r,l[n(495)]=s;const c=await le[n(480)](l);return c&&(i=c[o]),e&&e(i),i}async function Ii(t,e){const n=Ae,{tableName:r,propertiesKey:o,parameter:s,primaryKey:a,mapDB:i}=t;let l={};const c={};c[n(500)]=i,c[n(501)]=r,c[n(495)]=a;const f=await le.getDataByKey(c);try{if(f){l={...f[o],...s};const u={[i[n(495)]]:a},d=u;d[o]=l;const m={};m.mapDB=i,m[n(501)]=r,m[n(487)]=d,await le[n(479)](m)}else console[n(482)](r+n(483))}catch(u){console.error(u)}return e&&e(l),l}async function Di(t,e){const n=Ae,{tableName:r,primaryKey:o,mapDB:s}=t;let a=null;try{const i={};i[n(500)]=s,i[n(501)]=r,i[n(495)]=o,await le[n(493)](i)}catch(i){console[n(489)](i)}return e&&e(a),a}const mt={};mt[xn(498)]=Ni,mt[xn(484)]=Ai,mt[xn(487)]=Ii,mt.clearData=Di;var he=Mt;(function(t,e){for(var n=Mt,r=t();;)try{var o=parseInt(n(471))/1*(-parseInt(n(463))/2)+parseInt(n(478))/3+parseInt(n(459))/4*(-parseInt(n(477))/5)+parseInt(n(473))/6*(-parseInt(n(466))/7)+parseInt(n(458))/8*(parseInt(n(474))/9)+-parseInt(n(460))/10+-parseInt(n(461))/11*(-parseInt(n(472))/12);if(o===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(Dt,810026);var Yr={};Yr[he(465)]=!1;var Sn={};Sn.createIndex=Yr,Sn.default={};var Xr={};function Dt(){var t=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return Dt=function(){return t},Dt()}Xr[he(468)]=Sn;var En={};En[he(476)]=he(462),En[he(470)]=Xr;var gt={};function Mt(t,e){var n=Dt();return Mt=function(r,o){r=r-458;var s=n[r];return s},Mt(t,e)}gt[he(469)]=he(467),gt[he(475)]=he(464),gt[he(479)]=1,gt[he(480)]=[En];const Mi={formSchema:gt},Li=mt,{handleData:ji,getData:Qr}=Li,{formSchema:Cn}=Mi,Rn=async(t,e)=>(e.parametersType==="url"&&(t={...Ze.queryToData(Ze.getURLParameter({decode:!0})),...t}),e.parametersType==="indexDB"&&(t={...await Qr({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:e.DBPrimaryKey||"default",mapDB:Cn}),...t}),t),Tn=async(t,e)=>{if(e.parametersType==="url"){const n=Ze.paramsToQuery({...t});window.location.href=`${window.location.origin}${window.location.pathname}?${new URLSearchParams(n)}`}e.parametersType==="indexDB"&&await ji({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",parameter:{...t},primaryKey:e.DBPrimaryKey||"default",mapDB:Cn})},Zr=async({queryParameter:t={},vm:e={},queryParams:n={}})=>{t.defaultPageFirst??(t.defaultPageFirst=!0);const r={[e.currentPageKey]:e.defCurrentPage};let o={...r,...n,...e.queryParams};o=await Rn(o,e),t.defaultPageFirst&&(o={...o,...r}),await Tn(o,e),e.getList({...o})},Bi=async({vm:t={},dispatchQueryParams:e})=>{var n,r;(r=(n=t?.$refs)==null?void 0:n.queryFormRef)==null||r.resetFields();const o=await Rn({},t),s={[t.currentPageKey]:t.defCurrentPage,[t.pageSizeKey]:o?.[t.pageSizeKey]||t.defPageSize};if(await Tn(s,t),e&&e({data:{...s}}),t.queryParams&&(t.queryParams={...s}),t.afterReset(),t.handleQuery)t.handleQuery();else{if(t.parametersType==="url")return;Zr({vm:t})}},Fi=({vm:t={},dispatchQueryParams:e})=>{let n={[t.pageSizeKey]:t.defPageSize};return t.parametersType==="url"&&(n={...n,...Ze.queryToData(Ze.getURLParameter({decode:!0}))}),t.parametersType==="indexDB"&&Qr({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:t.DBPrimaryKey||"default",mapDB:Cn},r=>{r&&(n={...n,...r},e&&e({data:{...n}}),t.queryParams&&(t.queryParams={...n})),t.queryWhenReady&&t.$nextTick(()=>{t.handleQuery({defaultPageFirst:!1})})}),t.queryWhenReady&&t.parametersType!=="indexDB"&&t.$nextTick(()=>{t.handleQuery({defaultPageFirst:!1})}),n},$i=({item:t={},vm:e={}})=>{const{type:n,rules:r=[]}=t,o=[...r];return e.noInputBlank&&n==="input"&&o.push({pattern:/\S/,message:"请输入(不能仅输入空格)",trigger:"blur"}),o},Vi={makeParamsByType:Rn,saveParamsByType:Tn,handleQuery:Zr,resetQuery:Bi,initQueryParams:Fi,getItemRules:$i},Jr=Ze,ze=Vi,zi={queryParams:{},message:{},formLoading:!1,dispatchQueryParams:()=>{},getList:()=>{}},Lt=j.createContext(zi);j.createContext(null);const Wi=(t,e)=>{const{data:n}=e;return{...n}},eo={formItem:[],coms:{Button:[]},getList:()=>{},formData:{},loading:!1,afterReset:()=>{},noInputBlank:!1,currentPageKey:"page",pageSizeKey:"pageSize",parametersType:"url",defCurrentPage:1,DBPrimaryKey:null,defPageSize:10,queryWhenReady:!1},to=t=>{const n={...eo,...t,handleQuery:S=>{ze.handleQuery({queryParameter:S,vm:{...eo,...t}})}},{formItem:r=[],children:o,coms:s,formData:a={},fieldGroupSetting:i={},loading:l=!1,queryWhenReady:c=!1}=n,{Button:f}=s,[u,d]=j.useState(!1),[m,v]=j.useState(!1),[p,h]=j.useState({}),b=S=>{const k={...S};let N={};return r.forEach(M=>{M.prop&&(N[M.prop]=k[M.prop]||"")}),v(!0),N},[y,x]=j.useReducer(Wi,a,b);j.useMemo(()=>{const S=ze.initQueryParams({vm:n,dispatchQueryParams:x});x({data:S})},[m]);const C=async()=>{let S={};for(const[k,N]of Object.entries(y)){const M=r.find(V=>V.prop===k);if(M&&M.rules){const V=ze.getItemRules({item:M,vm:n});for(const B of V)try{if(B.required&&!N)throw new Error(B.message||`${M.label}不能为空`);if(B.pattern&&!B.pattern.test(N))throw new Error(B.message||`${M.label}格式不正确`);B.validator&&await new Promise((z,H)=>{const D=F=>{if(F){H(F);return}z()};B.validator(B,N,D)})}catch(z){S[k]||(S[k]=[]),S[k].push({message:z.message||"校验失败"})}}}return h({...S}),{...S}},T=async S=>{await C()},_=()=>{ze.resetQuery({vm:{...n,handleQuery:null},dispatchQueryParams:x})},E=async S=>{const k=await C();Object.keys(k).length==0&&(d(!0),await ze.handleQuery({queryParameter:{defaultPageFirst:!c},vm:{...n},queryParams:y}),d(!1))};return j.useEffect(()=>{d(l)},[l]),j.useEffect(()=>{x({data:{...y,...a}})},[a]),w.jsx(Lt,{value:{...n,dispatchQueryParams:x,queryParams:y,message:p,formLoading:u},children:w.jsx("form",{action:T,children:w.jsxs(xi,{...i,children:[r.map((S,k)=>{const N=j.useId();return w.jsxs(Gr,{"data-invalid":p?.[S.prop]&&p?.[S.prop].length>0,...S.fieldSetting,children:[w.jsx(Ei,{htmlFor:N,children:S.label}),w.jsx(vr,{coms:s,item:S,id:N,type:S.type}),/^form-list$/i.test(S.type)&&w.jsx(xr,{id:N,coms:s,item:S}),S.description&&S.description.length>0&&S.description.map((M,V)=>w.jsx(Ci,{children:M},V)),w.jsx(Ri,{errors:p?.[S.prop]||[]})]},S.prop)}),o,w.jsxs(Gr,{orientation:"horizontal",children:[w.jsxs(f,{disabled:u,formAction:E,children:[u?w.jsx(si,{}):[],"提交"]}),w.jsx(f,{disabled:u,variant:"outline",type:"button",onClick:_,children:"重置"})]})]})})})};function Ki(t){const e=J.c(10);let n,r,o;e[0]!==t?({className:n,type:o,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o):(n=e[1],r=e[2],o=e[3]);let s;e[4]!==n?(s=re("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),e[4]=n,e[5]=s):s=e[5];let a;return e[6]!==r||e[7]!==s||e[8]!==o?(a=w.jsx("input",{type:o,"data-slot":"input",className:s,...r}),e[6]=r,e[7]=s,e[8]=o,e[9]=a):a=e[9],a}const Hi=$r("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function Ui(t){const e=J.c(14);let n,r,o,s,a;e[0]!==t?({className:n,variant:a,size:o,asChild:s,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=a):(n=e[1],r=e[2],o=e[3],s=e[4],a=e[5]);const l=(s===void 0?!1:s)?ui:"button";let c;e[6]!==n||e[7]!==o||e[8]!==a?(c=re(Hi({variant:a,size:o,className:n})),e[6]=n,e[7]=o,e[8]=a,e[9]=c):c=e[9];let f;return e[10]!==l||e[11]!==r||e[12]!==c?(f=w.jsx(l,{"data-slot":"button",className:c,...r}),e[10]=l,e[11]=r,e[12]=c,e[13]=f):f=e[13],f}function no(t,[e,n]){return Math.min(n,Math.max(e,t))}function Y(t,e,{checkForDefaultPrevented:n=!0}={}){return function(o){if(t?.(o),n===!1||!o.defaultPrevented)return e?.(o)}}function ht(t,e=[]){let n=[];function r(s,a){const i=g.createContext(a),l=n.length;n=[...n,a];const c=u=>{const{scope:d,children:m,...v}=u,p=d?.[t]?.[l]||i,h=g.useMemo(()=>v,Object.values(v));return w.jsx(p.Provider,{value:h,children:m})};c.displayName=s+"Provider";function f(u,d){const m=d?.[t]?.[l]||i,v=g.useContext(m);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[c,f]}const o=()=>{const s=n.map(a=>g.createContext(a));return function(i){const l=i?.[t]||s;return g.useMemo(()=>({[`__scope${t}`]:{...i,[t]:l}}),[i,l])}};return o.scopeName=t,[r,Gi(o,...e)]}function Gi(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const r=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const a=r.reduce((i,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...i,...u}},{});return g.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return n.scopeName=e.scopeName,n}function ro(t){const e=t+"CollectionProvider",[n,r]=ht(e),[o,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=p=>{const{scope:h,children:b}=p,y=j.useRef(null),x=j.useRef(new Map).current;return w.jsx(o,{scope:h,itemMap:x,collectionRef:y,children:b})};a.displayName=e;const i=t+"CollectionSlot",l=ft(i),c=j.forwardRef((p,h)=>{const{scope:b,children:y}=p,x=s(i,b),C=oe(h,x.collectionRef);return w.jsx(l,{ref:C,children:y})});c.displayName=i;const f=t+"CollectionItemSlot",u="data-radix-collection-item",d=ft(f),m=j.forwardRef((p,h)=>{const{scope:b,children:y,...x}=p,C=j.useRef(null),T=oe(h,C),_=s(f,b);return j.useEffect(()=>(_.itemMap.set(C,{ref:C,...x}),()=>void _.itemMap.delete(C))),w.jsx(d,{[u]:"",ref:T,children:y})});m.displayName=f;function v(p){const h=s(t+"CollectionConsumer",p);return j.useCallback(()=>{const y=h.collectionRef.current;if(!y)return[];const x=Array.from(y.querySelectorAll(`[${u}]`));return Array.from(h.itemMap.values()).sort((_,E)=>x.indexOf(_.ref.current)-x.indexOf(E.ref.current))},[h.collectionRef,h.itemMap])}return[{Provider:a,Slot:c,ItemSlot:m},v,r]}var qi=g.createContext(void 0);function Pn(t){const e=g.useContext(qi);return t||e||"ltr"}function Ie(t){const e=g.useRef(t);return g.useEffect(()=>{e.current=t}),g.useMemo(()=>(...n)=>e.current?.(...n),[])}function Yi(t,e=globalThis?.document){const n=Ie(t);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return e.addEventListener("keydown",r,{capture:!0}),()=>e.removeEventListener("keydown",r,{capture:!0})},[n,e])}var Xi="DismissableLayer",_n="dismissableLayer.update",Qi="dismissableLayer.pointerDownOutside",Zi="dismissableLayer.focusOutside",oo,so=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ao=g.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:i,...l}=t,c=g.useContext(so),[f,u]=g.useState(null),d=f?.ownerDocument??globalThis?.document,[,m]=g.useState({}),v=oe(e,E=>u(E)),p=Array.from(c.layers),[h]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),b=p.indexOf(h),y=f?p.indexOf(f):-1,x=c.layersWithOutsidePointerEventsDisabled.size>0,C=y>=b,T=tc(E=>{const S=E.target,k=[...c.branches].some(N=>N.contains(S));!C||k||(o?.(E),a?.(E),E.defaultPrevented||i?.())},d),_=nc(E=>{const S=E.target;[...c.branches].some(N=>N.contains(S))||(s?.(E),a?.(E),E.defaultPrevented||i?.())},d);return Yi(E=>{y===c.layers.size-1&&(r?.(E),!E.defaultPrevented&&i&&(E.preventDefault(),i()))},d),g.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(oo=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),io(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=oo)}},[f,d,n,c]),g.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),io())},[f,c]),g.useEffect(()=>{const E=()=>m({});return document.addEventListener(_n,E),()=>document.removeEventListener(_n,E)},[]),w.jsx(X.div,{...l,ref:v,style:{pointerEvents:x?C?"auto":"none":void 0,...t.style},onFocusCapture:Y(t.onFocusCapture,_.onFocusCapture),onBlurCapture:Y(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Y(t.onPointerDownCapture,T.onPointerDownCapture)})});ao.displayName=Xi;var Ji="DismissableLayerBranch",ec=g.forwardRef((t,e)=>{const n=g.useContext(so),r=g.useRef(null),o=oe(e,r);return g.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(X.div,{...t,ref:o})});ec.displayName=Ji;function tc(t,e=globalThis?.document){const n=Ie(t),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const s=i=>{if(i.target&&!r.current){let l=function(){co(Qi,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=l,e.addEventListener("click",o.current,{once:!0})):l()}else e.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",s),e.removeEventListener("click",o.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}function nc(t,e=globalThis?.document){const n=Ie(t),r=g.useRef(!1);return g.useEffect(()=>{const o=s=>{s.target&&!r.current&&co(Zi,n,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function io(){const t=new CustomEvent(_n);document.dispatchEvent(t)}function co(t,e,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&o.addEventListener(t,e,{once:!0}),r?vi(o,s):o.dispatchEvent(s)}var On=0;function rc(){g.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??lo()),document.body.insertAdjacentElement("beforeend",t[1]??lo()),On++,()=>{On===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),On--}},[])}function lo(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var kn="focusScope.autoFocusOnMount",Nn="focusScope.autoFocusOnUnmount",uo={bubbles:!1,cancelable:!0},oc="FocusScope",fo=g.forwardRef((t,e)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...a}=t,[i,l]=g.useState(null),c=Ie(o),f=Ie(s),u=g.useRef(null),d=oe(e,p=>l(p)),m=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let p=function(x){if(m.paused||!i)return;const C=x.target;i.contains(C)?u.current=C:De(u.current,{select:!0})},h=function(x){if(m.paused||!i)return;const C=x.relatedTarget;C!==null&&(i.contains(C)||De(u.current,{select:!0}))},b=function(x){if(document.activeElement===document.body)for(const T of x)T.removedNodes.length>0&&De(i)};document.addEventListener("focusin",p),document.addEventListener("focusout",h);const y=new MutationObserver(b);return i&&y.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",h),y.disconnect()}}},[r,i,m.paused]),g.useEffect(()=>{if(i){go.add(m);const p=document.activeElement;if(!i.contains(p)){const b=new CustomEvent(kn,uo);i.addEventListener(kn,c),i.dispatchEvent(b),b.defaultPrevented||(sc(uc(po(i)),{select:!0}),document.activeElement===p&&De(i))}return()=>{i.removeEventListener(kn,c),setTimeout(()=>{const b=new CustomEvent(Nn,uo);i.addEventListener(Nn,f),i.dispatchEvent(b),b.defaultPrevented||De(p??document.body,{select:!0}),i.removeEventListener(Nn,f),go.remove(m)},0)}}},[i,c,f,m]);const v=g.useCallback(p=>{if(!n&&!r||m.paused)return;const h=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,b=document.activeElement;if(h&&b){const y=p.currentTarget,[x,C]=ac(y);x&&C?!p.shiftKey&&b===C?(p.preventDefault(),n&&De(x,{select:!0})):p.shiftKey&&b===x&&(p.preventDefault(),n&&De(C,{select:!0})):b===y&&p.preventDefault()}},[n,r,m.paused]);return w.jsx(X.div,{tabIndex:-1,...a,ref:d,onKeyDown:v})});fo.displayName=oc;function sc(t,{select:e=!1}={}){const n=document.activeElement;for(const r of t)if(De(r,{select:e}),document.activeElement!==n)return}function ac(t){const e=po(t),n=mo(e,t),r=mo(e.reverse(),t);return[n,r]}function po(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function mo(t,e){for(const n of t)if(!ic(n,{upTo:e}))return n}function ic(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function cc(t){return t instanceof HTMLInputElement&&"select"in t}function De(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&cc(t)&&e&&t.select()}}var go=lc();function lc(){let t=[];return{add(e){const n=t[0];e!==n&&n?.pause(),t=ho(t,e),t.unshift(e)},remove(e){t=ho(t,e),t[0]?.resume()}}}function ho(t,e){const n=[...t],r=n.indexOf(e);return r!==-1&&n.splice(r,1),n}function uc(t){return t.filter(e=>e.tagName!=="A")}var ie=globalThis?.document?g.useLayoutEffect:()=>{},dc=g[" useId ".trim().toString()]||(()=>{}),fc=0;function vt(t){const[e,n]=g.useState(dc());return ie(()=>{n(r=>r??String(fc++))},[t]),e?`radix-${e}`:""}const pc=["top","right","bottom","left"],Me=Math.min,fe=Math.max,jt=Math.round,Bt=Math.floor,xe=t=>({x:t,y:t}),mc={left:"right",right:"left",bottom:"top",top:"bottom"},gc={start:"end",end:"start"};function An(t,e,n){return fe(t,Me(e,n))}function _e(t,e){return typeof t=="function"?t(e):t}function Oe(t){return t.split("-")[0]}function Je(t){return t.split("-")[1]}function In(t){return t==="x"?"y":"x"}function Dn(t){return t==="y"?"height":"width"}const hc=new Set(["top","bottom"]);function Se(t){return hc.has(Oe(t))?"y":"x"}function Mn(t){return In(Se(t))}function vc(t,e,n){n===void 0&&(n=!1);const r=Je(t),o=Mn(t),s=Dn(o);let a=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Ft(a)),[a,Ft(a)]}function yc(t){const e=Ft(t);return[Ln(t),e,Ln(e)]}function Ln(t){return t.replace(/start|end/g,e=>gc[e])}const vo=["left","right"],yo=["right","left"],bc=["top","bottom"],wc=["bottom","top"];function xc(t,e,n){switch(t){case"top":case"bottom":return n?e?yo:vo:e?vo:yo;case"left":case"right":return e?bc:wc;default:return[]}}function Sc(t,e,n,r){const o=Je(t);let s=xc(Oe(t),n==="start",r);return o&&(s=s.map(a=>a+"-"+o),e&&(s=s.concat(s.map(Ln)))),s}function Ft(t){return t.replace(/left|right|bottom|top/g,e=>mc[e])}function Ec(t){return{top:0,right:0,bottom:0,left:0,...t}}function bo(t){return typeof t!="number"?Ec(t):{top:t,right:t,bottom:t,left:t}}function $t(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function wo(t,e,n){let{reference:r,floating:o}=t;const s=Se(e),a=Mn(e),i=Dn(a),l=Oe(e),c=s==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,d=r[i]/2-o[i]/2;let m;switch(l){case"top":m={x:f,y:r.y-o.height};break;case"bottom":m={x:f,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}switch(Je(e)){case"start":m[a]-=d*(n&&c?-1:1);break;case"end":m[a]+=d*(n&&c?-1:1);break}return m}const Cc=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,i=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:f,y:u}=wo(c,r,l),d=r,m={},v=0;for(let p=0;p<i.length;p++){const{name:h,fn:b}=i[p],{x:y,y:x,data:C,reset:T}=await b({x:f,y:u,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:c,platform:a,elements:{reference:t,floating:e}});f=y??f,u=x??u,m={...m,[h]:{...m[h],...C}},T&&v<=50&&(v++,typeof T=="object"&&(T.placement&&(d=T.placement),T.rects&&(c=T.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):T.rects),{x:f,y:u}=wo(c,d,l)),p=-1)}return{x:f,y:u,placement:d,strategy:o,middlewareData:m}};async function yt(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:s,rects:a,elements:i,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:d=!1,padding:m=0}=_e(e,t),v=bo(m),h=i[d?u==="floating"?"reference":"floating":u],b=$t(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(h)))==null||n?h:h.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:c,rootBoundary:f,strategy:l})),y=u==="floating"?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),C=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},T=$t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:y,offsetParent:x,strategy:l}):y);return{top:(b.top-T.top+v.top)/C.y,bottom:(T.bottom-b.bottom+v.bottom)/C.y,left:(b.left-T.left+v.left)/C.x,right:(T.right-b.right+v.right)/C.x}}const Rc=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:s,platform:a,elements:i,middlewareData:l}=e,{element:c,padding:f=0}=_e(t,e)||{};if(c==null)return{};const u=bo(f),d={x:n,y:r},m=Mn(o),v=Dn(m),p=await a.getDimensions(c),h=m==="y",b=h?"top":"left",y=h?"bottom":"right",x=h?"clientHeight":"clientWidth",C=s.reference[v]+s.reference[m]-d[m]-s.floating[v],T=d[m]-s.reference[m],_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let E=_?_[x]:0;(!E||!await(a.isElement==null?void 0:a.isElement(_)))&&(E=i.floating[x]||s.floating[v]);const S=C/2-T/2,k=E/2-p[v]/2-1,N=Me(u[b],k),M=Me(u[y],k),V=N,B=E-p[v]-M,z=E/2-p[v]/2+S,H=An(V,z,B),D=!l.arrow&&Je(o)!=null&&z!==H&&s.reference[v]/2-(z<V?N:M)-p[v]/2<0,F=D?z<V?z-V:z-B:0;return{[m]:d[m]+F,data:{[m]:H,centerOffset:z-H-F,...D&&{alignmentOffset:F}},reset:D}}}),Tc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:s,rects:a,initialPlacement:i,platform:l,elements:c}=e,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...h}=_e(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Oe(o),y=Se(i),x=Oe(i)===i,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),T=d||(x||!p?[Ft(i)]:yc(i)),_=v!=="none";!d&&_&&T.push(...Sc(i,p,v,C));const E=[i,...T],S=await yt(e,h),k=[];let N=((r=s.flip)==null?void 0:r.overflows)||[];if(f&&k.push(S[b]),u){const z=vc(o,a,C);k.push(S[z[0]],S[z[1]])}if(N=[...N,{placement:o,overflows:k}],!k.every(z=>z<=0)){var M,V;const z=(((M=s.flip)==null?void 0:M.index)||0)+1,H=E[z];if(H&&(!(u==="alignment"?y!==Se(H):!1)||N.every(P=>Se(P.placement)===y?P.overflows[0]>0:!0)))return{data:{index:z,overflows:N},reset:{placement:H}};let D=(V=N.filter(F=>F.overflows[0]<=0).sort((F,P)=>F.overflows[1]-P.overflows[1])[0])==null?void 0:V.placement;if(!D)switch(m){case"bestFit":{var B;const F=(B=N.filter(P=>{if(_){const q=Se(P.placement);return q===y||q==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(q=>q>0).reduce((q,te)=>q+te,0)]).sort((P,q)=>P[1]-q[1])[0])==null?void 0:B[0];F&&(D=F);break}case"initialPlacement":D=i;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function xo(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function So(t){return pc.some(e=>t[e]>=0)}const Pc=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:r="referenceHidden",...o}=_e(t,e);switch(r){case"referenceHidden":{const s=await yt(e,{...o,elementContext:"reference"}),a=xo(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:So(a)}}}case"escaped":{const s=await yt(e,{...o,altBoundary:!0}),a=xo(s,n.floating);return{data:{escapedOffsets:a,escaped:So(a)}}}default:return{}}}}},Eo=new Set(["left","top"]);async function _c(t,e){const{placement:n,platform:r,elements:o}=t,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),a=Oe(n),i=Je(n),l=Se(n)==="y",c=Eo.has(a)?-1:1,f=s&&l?-1:1,u=_e(e,t);let{mainAxis:d,crossAxis:m,alignmentAxis:v}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof v=="number"&&(m=i==="end"?v*-1:v),l?{x:m*f,y:d*c}:{x:d*c,y:m*f}}const Oc=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:s,placement:a,middlewareData:i}=e,l=await _c(e,t);return a===((n=i.offset)==null?void 0:n.placement)&&(r=i.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:a}}}}},kc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:i={fn:h=>{let{x:b,y}=h;return{x:b,y}}},...l}=_e(t,e),c={x:n,y:r},f=await yt(e,l),u=Se(Oe(o)),d=In(u);let m=c[d],v=c[u];if(s){const h=d==="y"?"top":"left",b=d==="y"?"bottom":"right",y=m+f[h],x=m-f[b];m=An(y,m,x)}if(a){const h=u==="y"?"top":"left",b=u==="y"?"bottom":"right",y=v+f[h],x=v-f[b];v=An(y,v,x)}const p=i.fn({...e,[d]:m,[u]:v});return{...p,data:{x:p.x-n,y:p.y-r,enabled:{[d]:s,[u]:a}}}}}},Nc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:s,middlewareData:a}=e,{offset:i=0,mainAxis:l=!0,crossAxis:c=!0}=_e(t,e),f={x:n,y:r},u=Se(o),d=In(u);let m=f[d],v=f[u];const p=_e(i,e),h=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const x=d==="y"?"height":"width",C=s.reference[d]-s.floating[x]+h.mainAxis,T=s.reference[d]+s.reference[x]-h.mainAxis;m<C?m=C:m>T&&(m=T)}if(c){var b,y;const x=d==="y"?"width":"height",C=Eo.has(Oe(o)),T=s.reference[u]-s.floating[x]+(C&&((b=a.offset)==null?void 0:b[u])||0)+(C?0:h.crossAxis),_=s.reference[u]+s.reference[x]+(C?0:((y=a.offset)==null?void 0:y[u])||0)-(C?h.crossAxis:0);v<T?v=T:v>_&&(v=_)}return{[d]:m,[u]:v}}}},Ac=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:s,platform:a,elements:i}=e,{apply:l=()=>{},...c}=_e(t,e),f=await yt(e,c),u=Oe(o),d=Je(o),m=Se(o)==="y",{width:v,height:p}=s.floating;let h,b;u==="top"||u==="bottom"?(h=u,b=d===(await(a.isRTL==null?void 0:a.isRTL(i.floating))?"start":"end")?"left":"right"):(b=u,h=d==="end"?"top":"bottom");const y=p-f.top-f.bottom,x=v-f.left-f.right,C=Me(p-f[h],y),T=Me(v-f[b],x),_=!e.middlewareData.shift;let E=C,S=T;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(S=x),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(E=y),_&&!d){const N=fe(f.left,0),M=fe(f.right,0),V=fe(f.top,0),B=fe(f.bottom,0);m?S=v-2*(N!==0||M!==0?N+M:fe(f.left,f.right)):E=p-2*(V!==0||B!==0?V+B:fe(f.top,f.bottom))}await l({...e,availableWidth:S,availableHeight:E});const k=await a.getDimensions(i.floating);return v!==k.width||p!==k.height?{reset:{rects:!0}}:{}}}};function Vt(){return typeof window<"u"}function et(t){return Co(t)?(t.nodeName||"").toLowerCase():"#document"}function pe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ee(t){var e;return(e=(Co(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Co(t){return Vt()?t instanceof Node||t instanceof pe(t).Node:!1}function ve(t){return Vt()?t instanceof Element||t instanceof pe(t).Element:!1}function Ce(t){return Vt()?t instanceof HTMLElement||t instanceof pe(t).HTMLElement:!1}function Ro(t){return!Vt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof pe(t).ShadowRoot}const Ic=new Set(["inline","contents"]);function bt(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=ye(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!Ic.has(o)}const Dc=new Set(["table","td","th"]);function Mc(t){return Dc.has(et(t))}const Lc=[":popover-open",":modal"];function zt(t){return Lc.some(e=>{try{return t.matches(e)}catch{return!1}})}const jc=["transform","translate","scale","rotate","perspective"],Bc=["transform","translate","scale","rotate","perspective","filter"],Fc=["paint","layout","strict","content"];function jn(t){const e=Bn(),n=ve(t)?ye(t):t;return jc.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Bc.some(r=>(n.willChange||"").includes(r))||Fc.some(r=>(n.contain||"").includes(r))}function $c(t){let e=Le(t);for(;Ce(e)&&!tt(e);){if(jn(e))return e;if(zt(e))return null;e=Le(e)}return null}function Bn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Vc=new Set(["html","body","#document"]);function tt(t){return Vc.has(et(t))}function ye(t){return pe(t).getComputedStyle(t)}function Wt(t){return ve(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Le(t){if(et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ro(t)&&t.host||Ee(t);return Ro(e)?e.host:e}function To(t){const e=Le(t);return tt(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ce(e)&&bt(e)?e:To(e)}function wt(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=To(t),s=o===((r=t.ownerDocument)==null?void 0:r.body),a=pe(o);if(s){const i=Fn(a);return e.concat(a,a.visualViewport||[],bt(o)?o:[],i&&n?wt(i):[])}return e.concat(o,wt(o,[],n))}function Fn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Po(t){const e=ye(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Ce(t),s=o?t.offsetWidth:n,a=o?t.offsetHeight:r,i=jt(n)!==s||jt(r)!==a;return i&&(n=s,r=a),{width:n,height:r,$:i}}function $n(t){return ve(t)?t:t.contextElement}function nt(t){const e=$n(t);if(!Ce(e))return xe(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:s}=Po(e);let a=(s?jt(n.width):n.width)/r,i=(s?jt(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!i||!Number.isFinite(i))&&(i=1),{x:a,y:i}}const zc=xe(0);function _o(t){const e=pe(t);return!Bn()||!e.visualViewport?zc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wc(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==pe(t)?!1:e}function We(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),s=$n(t);let a=xe(1);e&&(r?ve(r)&&(a=nt(r)):a=nt(t));const i=Wc(s,n,r)?_o(s):xe(0);let l=(o.left+i.x)/a.x,c=(o.top+i.y)/a.y,f=o.width/a.x,u=o.height/a.y;if(s){const d=pe(s),m=r&&ve(r)?pe(r):r;let v=d,p=Fn(v);for(;p&&r&&m!==v;){const h=nt(p),b=p.getBoundingClientRect(),y=ye(p),x=b.left+(p.clientLeft+parseFloat(y.paddingLeft))*h.x,C=b.top+(p.clientTop+parseFloat(y.paddingTop))*h.y;l*=h.x,c*=h.y,f*=h.x,u*=h.y,l+=x,c+=C,v=pe(p),p=Fn(v)}}return $t({width:f,height:u,x:l,y:c})}function Kt(t,e){const n=Wt(t).scrollLeft;return e?e.left+n:We(Ee(t)).left+n}function Oo(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-Kt(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function Kc(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const s=o==="fixed",a=Ee(r),i=e?zt(e.floating):!1;if(r===a||i&&s)return n;let l={scrollLeft:0,scrollTop:0},c=xe(1);const f=xe(0),u=Ce(r);if((u||!u&&!s)&&((et(r)!=="body"||bt(a))&&(l=Wt(r)),Ce(r))){const m=We(r);c=nt(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}const d=a&&!u&&!s?Oo(a,l):xe(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-l.scrollTop*c.y+f.y+d.y}}function Hc(t){return Array.from(t.getClientRects())}function Uc(t){const e=Ee(t),n=Wt(t),r=t.ownerDocument.body,o=fe(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=fe(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kt(t);const i=-n.scrollTop;return ye(r).direction==="rtl"&&(a+=fe(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:a,y:i}}const ko=25;function Gc(t,e){const n=pe(t),r=Ee(t),o=n.visualViewport;let s=r.clientWidth,a=r.clientHeight,i=0,l=0;if(o){s=o.width,a=o.height;const f=Bn();(!f||f&&e==="fixed")&&(i=o.offsetLeft,l=o.offsetTop)}const c=Kt(r);if(c<=0){const f=r.ownerDocument,u=f.body,d=getComputedStyle(u),m=f.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,v=Math.abs(r.clientWidth-u.clientWidth-m);v<=ko&&(s-=v)}else c<=ko&&(s+=c);return{width:s,height:a,x:i,y:l}}const qc=new Set(["absolute","fixed"]);function Yc(t,e){const n=We(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,s=Ce(t)?nt(t):xe(1),a=t.clientWidth*s.x,i=t.clientHeight*s.y,l=o*s.x,c=r*s.y;return{width:a,height:i,x:l,y:c}}function No(t,e,n){let r;if(e==="viewport")r=Gc(t,n);else if(e==="document")r=Uc(Ee(t));else if(ve(e))r=Yc(e,n);else{const o=_o(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return $t(r)}function Ao(t,e){const n=Le(t);return n===e||!ve(n)||tt(n)?!1:ye(n).position==="fixed"||Ao(n,e)}function Xc(t,e){const n=e.get(t);if(n)return n;let r=wt(t,[],!1).filter(i=>ve(i)&&et(i)!=="body"),o=null;const s=ye(t).position==="fixed";let a=s?Le(t):t;for(;ve(a)&&!tt(a);){const i=ye(a),l=jn(a);!l&&i.position==="fixed"&&(o=null),(s?!l&&!o:!l&&i.position==="static"&&!!o&&qc.has(o.position)||bt(a)&&!l&&Ao(t,a))?r=r.filter(f=>f!==a):o=i,a=Le(a)}return e.set(t,r),r}function Qc(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const a=[...n==="clippingAncestors"?zt(e)?[]:Xc(e,this._c):[].concat(n),r],i=a[0],l=a.reduce((c,f)=>{const u=No(e,f,o);return c.top=fe(u.top,c.top),c.right=Me(u.right,c.right),c.bottom=Me(u.bottom,c.bottom),c.left=fe(u.left,c.left),c},No(e,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zc(t){const{width:e,height:n}=Po(t);return{width:e,height:n}}function Jc(t,e,n){const r=Ce(e),o=Ee(e),s=n==="fixed",a=We(t,!0,s,e);let i={scrollLeft:0,scrollTop:0};const l=xe(0);function c(){l.x=Kt(o)}if(r||!r&&!s)if((et(e)!=="body"||bt(o))&&(i=Wt(e)),r){const m=We(e,!0,s,e);l.x=m.x+e.clientLeft,l.y=m.y+e.clientTop}else o&&c();s&&!r&&o&&c();const f=o&&!r&&!s?Oo(o,i):xe(0),u=a.left+i.scrollLeft-l.x-f.x,d=a.top+i.scrollTop-l.y-f.y;return{x:u,y:d,width:a.width,height:a.height}}function Vn(t){return ye(t).position==="static"}function Io(t,e){if(!Ce(t)||ye(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Ee(t)===n&&(n=n.ownerDocument.body),n}function Do(t,e){const n=pe(t);if(zt(t))return n;if(!Ce(t)){let o=Le(t);for(;o&&!tt(o);){if(ve(o)&&!Vn(o))return o;o=Le(o)}return n}let r=Io(t,e);for(;r&&Mc(r)&&Vn(r);)r=Io(r,e);return r&&tt(r)&&Vn(r)&&!jn(r)?n:r||$c(t)||n}const el=async function(t){const e=this.getOffsetParent||Do,n=this.getDimensions,r=await n(t.floating);return{reference:Jc(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tl(t){return ye(t).direction==="rtl"}const nl={convertOffsetParentRelativeRectToViewportRelativeRect:Kc,getDocumentElement:Ee,getClippingRect:Qc,getOffsetParent:Do,getElementRects:el,getClientRects:Hc,getDimensions:Zc,getScale:nt,isElement:ve,isRTL:tl};function Mo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function rl(t,e){let n=null,r;const o=Ee(t);function s(){var i;clearTimeout(r),(i=n)==null||i.disconnect(),n=null}function a(i,l){i===void 0&&(i=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:f,top:u,width:d,height:m}=c;if(i||e(),!d||!m)return;const v=Bt(u),p=Bt(o.clientWidth-(f+d)),h=Bt(o.clientHeight-(u+m)),b=Bt(f),x={rootMargin:-v+"px "+-p+"px "+-h+"px "+-b+"px",threshold:fe(0,Me(1,l))||1};let C=!0;function T(_){const E=_[0].intersectionRatio;if(E!==l){if(!C)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!Mo(c,t.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(T,{...x,root:o.ownerDocument})}catch{n=new IntersectionObserver(T,x)}n.observe(t)}return a(!0),s}function ol(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=$n(t),f=o||s?[...c?wt(c):[],...wt(e)]:[];f.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const u=c&&i?rl(c,n):null;let d=-1,m=null;a&&(m=new ResizeObserver(b=>{let[y]=b;y&&y.target===c&&m&&(m.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(e)})),n()}),c&&!l&&m.observe(c),m.observe(e));let v,p=l?We(t):null;l&&h();function h(){const b=We(t);p&&!Mo(p,b)&&n(),p=b,v=requestAnimationFrame(h)}return n(),()=>{var b;f.forEach(y=>{o&&y.removeEventListener("scroll",n),s&&y.removeEventListener("resize",n)}),u?.(),(b=m)==null||b.disconnect(),m=null,l&&cancelAnimationFrame(v)}}const sl=Oc,al=kc,il=Tc,cl=Ac,ll=Pc,Lo=Rc,ul=Nc,dl=(t,e,n)=>{const r=new Map,o={platform:nl,...n},s={...o.platform,_c:r};return Cc(t,e,{...o,platform:s})};var fl=typeof document<"u",pl=function(){},Ht=fl?j.useLayoutEffect:pl;function Ut(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,r,o;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(r=n;r--!==0;)if(!Ut(t[r],e[r]))return!1;return!0}if(o=Object.keys(t),n=o.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&t.$$typeof)&&!Ut(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function jo(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Bo(t,e){const n=jo(t);return Math.round(e*n)/n}function zn(t){const e=g.useRef(t);return Ht(()=>{e.current=t}),e}function ml(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:a}={},transform:i=!0,whileElementsMounted:l,open:c}=t,[f,u]=g.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[d,m]=g.useState(r);Ut(d,r)||m(r);const[v,p]=g.useState(null),[h,b]=g.useState(null),y=g.useCallback(P=>{P!==_.current&&(_.current=P,p(P))},[]),x=g.useCallback(P=>{P!==E.current&&(E.current=P,b(P))},[]),C=s||v,T=a||h,_=g.useRef(null),E=g.useRef(null),S=g.useRef(f),k=l!=null,N=zn(l),M=zn(o),V=zn(c),B=g.useCallback(()=>{if(!_.current||!E.current)return;const P={placement:e,strategy:n,middleware:d};M.current&&(P.platform=M.current),dl(_.current,E.current,P).then(q=>{const te={...q,isPositioned:V.current!==!1};z.current&&!Ut(S.current,te)&&(S.current=te,dt.flushSync(()=>{u(te)}))})},[d,e,n,M,V]);Ht(()=>{c===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,u(P=>({...P,isPositioned:!1})))},[c]);const z=g.useRef(!1);Ht(()=>(z.current=!0,()=>{z.current=!1}),[]),Ht(()=>{if(C&&(_.current=C),T&&(E.current=T),C&&T){if(N.current)return N.current(C,T,B);B()}},[C,T,B,N,k]);const H=g.useMemo(()=>({reference:_,floating:E,setReference:y,setFloating:x}),[y,x]),D=g.useMemo(()=>({reference:C,floating:T}),[C,T]),F=g.useMemo(()=>{const P={position:n,left:0,top:0};if(!D.floating)return P;const q=Bo(D.floating,f.x),te=Bo(D.floating,f.y);return i?{...P,transform:"translate("+q+"px, "+te+"px)",...jo(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:q,top:te}},[n,i,D.floating,f.x,f.y]);return g.useMemo(()=>({...f,update:B,refs:H,elements:D,floatingStyles:F}),[f,B,H,D,F])}const gl=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:r,padding:o}=typeof t=="function"?t(n):t;return r&&e(r)?r.current!=null?Lo({element:r.current,padding:o}).fn(n):{}:r?Lo({element:r,padding:o}).fn(n):{}}}},hl=(t,e)=>({...sl(t),options:[t,e]}),vl=(t,e)=>({...al(t),options:[t,e]}),yl=(t,e)=>({...ul(t),options:[t,e]}),bl=(t,e)=>({...il(t),options:[t,e]}),wl=(t,e)=>({...cl(t),options:[t,e]}),xl=(t,e)=>({...ll(t),options:[t,e]}),Sl=(t,e)=>({...gl(t),options:[t,e]});var El="Arrow",Fo=g.forwardRef((t,e)=>{const{children:n,width:r=10,height:o=5,...s}=t;return w.jsx(X.svg,{...s,ref:e,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fo.displayName=El;var Cl=Fo;function Rl(t){const[e,n]=g.useState(void 0);return ie(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let a,i;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;a=c.inlineSize,i=c.blockSize}else a=t.offsetWidth,i=t.offsetHeight;n({width:a,height:i})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}else n(void 0)},[t]),e}var Wn="Popper",[$o,Vo]=ht(Wn),[Tl,zo]=$o(Wn),Wo=t=>{const{__scopePopper:e,children:n}=t,[r,o]=g.useState(null);return w.jsx(Tl,{scope:e,anchor:r,onAnchorChange:o,children:n})};Wo.displayName=Wn;var Ko="PopperAnchor",Ho=g.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:r,...o}=t,s=zo(Ko,n),a=g.useRef(null),i=oe(e,a),l=g.useRef(null);return g.useEffect(()=>{const c=l.current;l.current=r?.current||a.current,c!==l.current&&s.onAnchorChange(l.current)}),r?null:w.jsx(X.div,{...o,ref:i})});Ho.displayName=Ko;var Kn="PopperContent",[Pl,_l]=$o(Kn),Uo=g.forwardRef((t,e)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:a=0,arrowPadding:i=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:f=0,sticky:u="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:v,...p}=t,h=zo(Kn,n),[b,y]=g.useState(null),x=oe(e,O=>y(O)),[C,T]=g.useState(null),_=Rl(C),E=_?.width??0,S=_?.height??0,k=r+(s!=="center"?"-"+s:""),N=typeof f=="number"?f:{top:0,right:0,bottom:0,left:0,...f},M=Array.isArray(c)?c:[c],V=M.length>0,B={padding:N,boundary:M.filter(kl),altBoundary:V},{refs:z,floatingStyles:H,placement:D,isPositioned:F,middlewareData:P}=ml({strategy:"fixed",placement:k,whileElementsMounted:(...O)=>ol(...O,{animationFrame:m==="always"}),elements:{reference:h.anchor},middleware:[hl({mainAxis:o+S,alignmentAxis:a}),l&&vl({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?yl():void 0,...B}),l&&bl({...B}),wl({...B,apply:({elements:O,rects:U,availableWidth:ee,availableHeight:G})=>{const{width:Q,height:Z}=U.reference,me=O.floating.style;me.setProperty("--radix-popper-available-width",`${ee}px`),me.setProperty("--radix-popper-available-height",`${G}px`),me.setProperty("--radix-popper-anchor-width",`${Q}px`),me.setProperty("--radix-popper-anchor-height",`${Z}px`)}}),C&&Sl({element:C,padding:i}),Nl({arrowWidth:E,arrowHeight:S}),d&&xl({strategy:"referenceHidden",...B})]}),[q,te]=Yo(D),R=Ie(v);ie(()=>{F&&R?.()},[F,R]);const L=P.arrow?.x,$=P.arrow?.y,W=P.arrow?.centerOffset!==0,[ce,de]=g.useState();return ie(()=>{b&&de(window.getComputedStyle(b).zIndex)},[b]),w.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:F?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:w.jsx(Pl,{scope:n,placedSide:q,onArrowChange:T,arrowX:L,arrowY:$,shouldHideArrow:W,children:w.jsx(X.div,{"data-side":q,"data-align":te,...p,ref:x,style:{...p.style,animation:F?void 0:"none"}})})})});Uo.displayName=Kn;var Go="PopperArrow",Ol={top:"bottom",right:"left",bottom:"top",left:"right"},qo=g.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,s=_l(Go,r),a=Ol[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(Cl,{...o,ref:n,style:{...o.style,display:"block"}})})});qo.displayName=Go;function kl(t){return t!==null}var Nl=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,a=o.arrow?.centerOffset!==0,i=a?0:t.arrowWidth,l=a?0:t.arrowHeight,[c,f]=Yo(n),u={start:"0%",center:"50%",end:"100%"}[f],d=(o.arrow?.x??0)+i/2,m=(o.arrow?.y??0)+l/2;let v="",p="";return c==="bottom"?(v=a?u:`${d}px`,p=`${-l}px`):c==="top"?(v=a?u:`${d}px`,p=`${r.floating.height+l}px`):c==="right"?(v=`${-l}px`,p=a?u:`${m}px`):c==="left"&&(v=`${r.floating.width+l}px`,p=a?u:`${m}px`),{data:{x:v,y:p}}}});function Yo(t){const[e,n="center"]=t.split("-");return[e,n]}var Al=Wo,Il=Ho,Dl=Uo,Ml=qo,Ll="Portal",Xo=g.forwardRef((t,e)=>{const{container:n,...r}=t,[o,s]=g.useState(!1);ie(()=>s(!0),[]);const a=n||o&&globalThis?.document?.body;return a?li.createPortal(w.jsx(X.div,{...r,ref:e}),a):null});Xo.displayName=Ll;var jl=g[" useInsertionEffect ".trim().toString()]||ie;function Gt({prop:t,defaultProp:e,onChange:n=()=>{},caller:r}){const[o,s,a]=Bl({defaultProp:e,onChange:n}),i=t!==void 0,l=i?t:o;{const f=g.useRef(t!==void 0);g.useEffect(()=>{const u=f.current;u!==i&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=i},[i,r])}const c=g.useCallback(f=>{if(i){const u=Fl(f)?f(t):f;u!==t&&a.current?.(u)}else s(f)},[i,t,s,a]);return[l,c]}function Bl({defaultProp:t,onChange:e}){const[n,r]=g.useState(t),o=g.useRef(n),s=g.useRef(e);return jl(()=>{s.current=e},[e]),g.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Fl(t){return typeof t=="function"}function $l(t){const e=g.useRef({value:t,previous:t});return g.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Qo=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Vl="VisuallyHidden",zl=g.forwardRef((t,e)=>w.jsx(X.span,{...t,ref:e,style:{...Qo,...t.style}}));zl.displayName=Vl;var Wl=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},rt=new WeakMap,qt=new WeakMap,Yt={},Hn=0,Zo=function(t){return t&&(t.host||Zo(t.parentNode))},Kl=function(t,e){return e.map(function(n){if(t.contains(n))return n;var r=Zo(n);return r&&t.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},Hl=function(t,e,n,r){var o=Kl(e,Array.isArray(t)?t:[t]);Yt[n]||(Yt[n]=new WeakMap);var s=Yt[n],a=[],i=new Set,l=new Set(o),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};o.forEach(c);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(d){if(i.has(d))f(d);else try{var m=d.getAttribute(r),v=m!==null&&m!=="false",p=(rt.get(d)||0)+1,h=(s.get(d)||0)+1;rt.set(d,p),s.set(d,h),a.push(d),p===1&&v&&qt.set(d,!0),h===1&&d.setAttribute(n,"true"),v||d.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",d,b)}})};return f(e),i.clear(),Hn++,function(){a.forEach(function(u){var d=rt.get(u)-1,m=s.get(u)-1;rt.set(u,d),s.set(u,m),d||(qt.has(u)||u.removeAttribute(r),qt.delete(u)),m||u.removeAttribute(n)}),Hn--,Hn||(rt=new WeakMap,rt=new WeakMap,qt=new WeakMap,Yt={})}},Ul=function(t,e,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),o=Wl(t);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Hl(r,o,n,"aria-hidden")):function(){return null}},Re=function(){return Re=Object.assign||function(e){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},Re.apply(this,arguments)};function Jo(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]]);return n}function Gl(t,e,n){if(n||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var Xt="right-scroll-bar-position",Qt="width-before-scroll-bar",ql="with-scroll-bars-hidden",Yl="--removed-body-scroll-bar-size";function Un(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function Xl(t,e){var n=j.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=e,n.facade}var Ql=typeof window<"u"?g.useLayoutEffect:g.useEffect,es=new WeakMap;function Zl(t,e){var n=Xl(null,function(r){return t.forEach(function(o){return Un(o,r)})});return Ql(function(){var r=es.get(n);if(r){var o=new Set(r),s=new Set(t),a=n.current;o.forEach(function(i){s.has(i)||Un(i,null)}),s.forEach(function(i){o.has(i)||Un(i,a)})}es.set(n,t)},[t]),n}function Jl(t){return t}function eu(t,e){e===void 0&&(e=Jl);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(s){var a=e(s,r);return n.push(a),function(){n=n.filter(function(i){return i!==a})}},assignSyncMedium:function(s){for(r=!0;n.length;){var a=n;n=[],a.forEach(s)}n={push:function(i){return s(i)},filter:function(){return n}}},assignMedium:function(s){r=!0;var a=[];if(n.length){var i=n;n=[],i.forEach(s),a=n}var l=function(){var f=a;a=[],f.forEach(s)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(f){a.push(f),c()},filter:function(f){return a=a.filter(f),n}}}};return o}function tu(t){t===void 0&&(t={});var e=eu(null);return e.options=Re({async:!0,ssr:!1},t),e}var ts=function(t){var e=t.sideCar,n=Jo(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,Re({},n))};ts.isSideCarExport=!0;function nu(t,e){return t.useMedium(e),ts}var ns=tu(),Gn=function(){},Zt=g.forwardRef(function(t,e){var n=g.useRef(null),r=g.useState({onScrollCapture:Gn,onWheelCapture:Gn,onTouchMoveCapture:Gn}),o=r[0],s=r[1],a=t.forwardProps,i=t.children,l=t.className,c=t.removeScrollBar,f=t.enabled,u=t.shards,d=t.sideCar,m=t.noRelative,v=t.noIsolation,p=t.inert,h=t.allowPinchZoom,b=t.as,y=b===void 0?"div":b,x=t.gapMode,C=Jo(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=d,_=Zl([n,e]),E=Re(Re({},C),o);return g.createElement(g.Fragment,null,f&&g.createElement(T,{sideCar:ns,removeScrollBar:c,shards:u,noRelative:m,noIsolation:v,inert:p,setCallbacks:s,allowPinchZoom:!!h,lockRef:n,gapMode:x}),a?g.cloneElement(g.Children.only(i),Re(Re({},E),{ref:_})):g.createElement(y,Re({},E,{className:l,ref:_}),i))});Zt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Zt.classNames={fullWidth:Qt,zeroRight:Xt};var ru=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ou(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=ru();return e&&t.setAttribute("nonce",e),t}function su(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function au(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var iu=function(){var t=0,e=null;return{add:function(n){t==0&&(e=ou())&&(su(e,n),au(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},cu=function(){var t=iu();return function(e,n){g.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},rs=function(){var t=cu(),e=function(n){var r=n.styles,o=n.dynamic;return t(r,o),null};return e},lu={left:0,top:0,right:0,gap:0},qn=function(t){return parseInt(t||"",10)||0},uu=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],r=e[t==="padding"?"paddingTop":"marginTop"],o=e[t==="padding"?"paddingRight":"marginRight"];return[qn(n),qn(r),qn(o)]},du=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return lu;var e=uu(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},fu=rs(),ot="data-scroll-locked",pu=function(t,e,n,r){var o=t.left,s=t.top,a=t.right,i=t.gap;return n===void 0&&(n="margin"),`
113
+ .`.concat(ql,` {
114
+ overflow: hidden `).concat(r,`;
115
+ padding-right: `).concat(i,"px ").concat(r,`;
116
116
  }
117
- body[`).concat(Qe,`] {
118
- overflow: hidden `).concat(n,`;
117
+ body[`).concat(ot,`] {
118
+ overflow: hidden `).concat(r,`;
119
119
  overscroll-behavior: contain;
120
- `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
120
+ `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
121
121
  padding-left: `.concat(o,`px;
122
122
  padding-top: `).concat(s,`px;
123
- padding-right: `).concat(i,`px;
123
+ padding-right: `).concat(a,`px;
124
124
  margin-left:0;
125
125
  margin-top:0;
126
- margin-right: `).concat(a,"px ").concat(n,`;
127
- `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),`
126
+ margin-right: `).concat(i,"px ").concat(r,`;
127
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
128
128
  }
129
129
 
130
- .`).concat(Bt,` {
131
- right: `).concat(a,"px ").concat(n,`;
130
+ .`).concat(Xt,` {
131
+ right: `).concat(i,"px ").concat(r,`;
132
132
  }
133
133
 
134
- .`).concat(Ft,` {
135
- margin-right: `).concat(a,"px ").concat(n,`;
134
+ .`).concat(Qt,` {
135
+ margin-right: `).concat(i,"px ").concat(r,`;
136
136
  }
137
137
 
138
- .`).concat(Bt," .").concat(Bt,` {
139
- right: 0 `).concat(n,`;
138
+ .`).concat(Xt," .").concat(Xt,` {
139
+ right: 0 `).concat(r,`;
140
140
  }
141
141
 
142
- .`).concat(Ft," .").concat(Ft,` {
143
- margin-right: 0 `).concat(n,`;
142
+ .`).concat(Qt," .").concat(Qt,` {
143
+ margin-right: 0 `).concat(r,`;
144
144
  }
145
145
 
146
- body[`).concat(Qe,`] {
147
- `).concat(oc,": ").concat(a,`px;
146
+ body[`).concat(ot,`] {
147
+ `).concat(Yl,": ").concat(i,`px;
148
148
  }
149
- `)},No=function(){var e=parseInt(document.body.getAttribute(Qe)||"0",10);return isFinite(e)?e:0},Ec=function(){g.useEffect(function(){return document.body.setAttribute(Qe,(No()+1).toString()),function(){var e=No()-1;e<=0?document.body.removeAttribute(Qe):document.body.setAttribute(Qe,e.toString())}},[])},Cc=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Ec();var s=g.useMemo(function(){return wc(o)},[o]);return g.createElement(xc,{styles:Sc(s,!t,o,r?"":"!important")})},Tr=!1;if(typeof window<"u")try{var $t=Object.defineProperty({},"passive",{get:function(){return Tr=!0,!0}});window.addEventListener("test",$t,$t),window.removeEventListener("test",$t,$t)}catch{Tr=!1}var Ze=Tr?{passive:!1}:!1,Rc=function(e){return e.tagName==="TEXTAREA"},Io=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Rc(e)&&r[t]==="visible")},Pc=function(e){return Io(e,"overflowY")},kc=function(e){return Io(e,"overflowX")},Do=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Mo(e,n);if(o){var s=Lo(e,n),i=s[1],a=s[2];if(i>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},_c=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Oc=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Mo=function(e,t){return e==="v"?Pc(t):kc(t)},Lo=function(e,t){return e==="v"?_c(t):Oc(t)},Tc=function(e,t){return e==="h"&&t==="rtl"?-1:1},Ac=function(e,t,r,n,o){var s=Tc(e,window.getComputedStyle(t).direction),i=s*n,a=r.target,c=t.contains(a),l=!1,f=i>0,d=0,u=0;do{if(!a)break;var m=Lo(e,a),v=m[0],p=m[1],h=m[2],y=p-h-s*v;(v||y)&&Mo(e,a)&&(d+=y,u+=v);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(f&&Math.abs(d)<1||!f&&Math.abs(u)<1)&&(l=!0),l},Vt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jo=function(e){return[e.deltaX,e.deltaY]},Bo=function(e){return e&&"current"in e?e.current:e},Nc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ic=function(e){return`
150
- .block-interactivity-`.concat(e,` {pointer-events: none;}
151
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
152
- `)},Dc=0,Je=[];function Mc(e){var t=g.useRef([]),r=g.useRef([0,0]),n=g.useRef(),o=g.useState(Dc++)[0],s=g.useState(Ao)[0],i=g.useRef(e);g.useEffect(function(){i.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var p=rc([e.lockRef.current],(e.shards||[]).map(Bo),!0).filter(Boolean);return p.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=g.useCallback(function(p,h){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!i.current.allowPinchZoom;var y=Vt(p),b=r.current,S="deltaX"in p?p.deltaX:b[0]-y[0],R="deltaY"in p?p.deltaY:b[1]-y[1],k,O=p.target,x=Math.abs(S)>Math.abs(R)?"h":"v";if("touches"in p&&x==="h"&&O.type==="range")return!1;var C=Do(x,O);if(!C)return!0;if(C?k=x:(k=x==="v"?"h":"v",C=Do(x,O)),!C)return!1;if(!n.current&&"changedTouches"in p&&(S||R)&&(n.current=k),!k)return!0;var T=n.current||k;return Ac(T,h,p,T==="h"?S:R)},[]),c=g.useCallback(function(p){var h=p;if(!(!Je.length||Je[Je.length-1]!==s)){var y="deltaY"in h?jo(h):Vt(h),b=t.current.filter(function(k){return k.name===h.type&&(k.target===h.target||h.target===k.shadowParent)&&Nc(k.delta,y)})[0];if(b&&b.should){h.cancelable&&h.preventDefault();return}if(!b){var S=(i.current.shards||[]).map(Bo).filter(Boolean).filter(function(k){return k.contains(h.target)}),R=S.length>0?a(h,S[0]):!i.current.noIsolation;R&&h.cancelable&&h.preventDefault()}}},[]),l=g.useCallback(function(p,h,y,b){var S={name:p,delta:h,target:y,should:b,shadowParent:Lc(y)};t.current.push(S),setTimeout(function(){t.current=t.current.filter(function(R){return R!==S})},1)},[]),f=g.useCallback(function(p){r.current=Vt(p),n.current=void 0},[]),d=g.useCallback(function(p){l(p.type,jo(p),p.target,a(p,e.lockRef.current))},[]),u=g.useCallback(function(p){l(p.type,Vt(p),p.target,a(p,e.lockRef.current))},[]);g.useEffect(function(){return Je.push(s),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:u}),document.addEventListener("wheel",c,Ze),document.addEventListener("touchmove",c,Ze),document.addEventListener("touchstart",f,Ze),function(){Je=Je.filter(function(p){return p!==s}),document.removeEventListener("wheel",c,Ze),document.removeEventListener("touchmove",c,Ze),document.removeEventListener("touchstart",f,Ze)}},[]);var m=e.removeScrollBar,v=e.inert;return g.createElement(g.Fragment,null,v?g.createElement(s,{styles:Ic(o)}):null,m?g.createElement(Cc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Lc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const jc=dc(To,Mc);var Fo=g.forwardRef(function(e,t){return g.createElement(zt,Se({},e,{ref:t,sideCar:jc}))});Fo.classNames=zt.classNames;var Bc=[" ","Enter","ArrowUp","ArrowDown"],Fc=[" ","Enter"],Fe="Select",[Wt,Ht,zc]=ta(Fe),[et]=ar(Fe,[zc,mo]),Ut=mo(),[$c,Ie]=et(Fe),[Vc,Wc]=et(Fe),zo=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:s,value:i,defaultValue:a,onValueChange:c,dir:l,name:f,autoComplete:d,disabled:u,required:m,form:v}=e,p=Ut(t),[h,y]=g.useState(null),[b,S]=g.useState(null),[R,k]=g.useState(!1),O=na(l),[x,C]=Co({prop:n,defaultProp:o??!1,onChange:s,caller:Fe}),[T,I]=Co({prop:i,defaultProp:a,onChange:c,caller:Fe}),F=g.useRef(null),V=h?v||!!h.closest("form"):!0,[H,L]=g.useState(new Set),U=Array.from(H).map(D=>D.props.value).join(";");return w.jsx($l,{...p,children:w.jsxs($c,{required:m,scope:t,trigger:h,onTriggerChange:y,valueNode:b,onValueNodeChange:S,valueNodeHasChildren:R,onValueNodeHasChildrenChange:k,contentId:fr(),value:T,onValueChange:I,open:x,onOpenChange:C,dir:O,triggerPointerDownPosRef:F,disabled:u,children:[w.jsx(Wt.Provider,{scope:t,children:w.jsx(Vc,{scope:e.__scopeSelect,onNativeOptionAdd:g.useCallback(D=>{L(z=>new Set(z).add(D))},[]),onNativeOptionRemove:g.useCallback(D=>{L(z=>{const P=new Set(z);return P.delete(D),P})},[]),children:r})}),V?w.jsxs(cs,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:d,value:T,onChange:D=>I(D.target.value),disabled:u,form:v,children:[T===void 0?w.jsx("option",{value:""}):null,Array.from(H)]},U):null]})})};zo.displayName=Fe;var $o="SelectTrigger",Vo=g.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,s=Ut(r),i=Ie($o,r),a=i.disabled||n,c=ne(t,i.onTriggerChange),l=Ht(r),f=g.useRef("touch"),[d,u,m]=ds(p=>{const h=l().filter(S=>!S.disabled),y=h.find(S=>S.value===i.value),b=fs(h,p,y);b!==void 0&&i.onValueChange(b.value)}),v=p=>{a||(i.onOpenChange(!0),m()),p&&(i.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return w.jsx(Vl,{asChild:!0,...s,children:w.jsx(Z.button,{type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":us(i.value)?"":void 0,...o,ref:c,onClick:J(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&v(p)}),onPointerDown:J(o.onPointerDown,p=>{f.current=p.pointerType;const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:J(o.onKeyDown,p=>{const h=d.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(h&&p.key===" ")&&Bc.includes(p.key)&&(v(),p.preventDefault())})})})});Vo.displayName=$o;var Wo="SelectValue",Ho=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:s,placeholder:i="",...a}=e,c=Ie(Wo,r),{onValueNodeHasChildrenChange:l}=c,f=s!==void 0,d=ne(t,c.onValueNodeChange);return ce(()=>{l(f)},[l,f]),w.jsx(Z.span,{...a,ref:d,style:{pointerEvents:"none"},children:us(c.value)?w.jsx(w.Fragment,{children:i}):s})});Ho.displayName=Wo;var Hc="SelectIcon",Uo=g.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return w.jsx(Z.span,{"aria-hidden":!0,...o,ref:t,children:n||"▼"})});Uo.displayName=Hc;var Uc="SelectPortal",Ko=e=>w.jsx(Eo,{asChild:!0,...e});Ko.displayName=Uc;var ze="SelectContent",Go=g.forwardRef((e,t)=>{const r=Ie(ze,e.__scopeSelect),[n,o]=g.useState();if(ce(()=>{o(new DocumentFragment)},[]),!r.open){const s=n;return s?ot.createPortal(w.jsx(qo,{scope:e.__scopeSelect,children:w.jsx(Wt.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),s):null}return w.jsx(Yo,{...e,ref:t})});Go.displayName=ze;var ve=10,[qo,De]=et(ze),Kc="SelectContentImpl",Gc=st("SelectContent.RemoveScroll"),Yo=g.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:i,side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:h,...y}=e,b=Ie(ze,r),[S,R]=g.useState(null),[k,O]=g.useState(null),x=ne(t,_=>R(_)),[C,T]=g.useState(null),[I,F]=g.useState(null),V=Ht(r),[H,L]=g.useState(!1),U=g.useRef(!1);g.useEffect(()=>{if(S)return tc(S)},[S]),fa();const D=g.useCallback(_=>{const[K,...Q]=V().map(X=>X.ref.current),[G]=Q.slice(-1),Y=document.activeElement;for(const X of _)if(X===Y||(X?.scrollIntoView({block:"nearest"}),X===K&&k&&(k.scrollTop=0),X===G&&k&&(k.scrollTop=k.scrollHeight),X?.focus(),document.activeElement!==Y))return},[V,k]),z=g.useCallback(()=>D([C,S]),[D,C,S]);g.useEffect(()=>{H&&z()},[H,z]);const{onOpenChange:P,triggerPointerDownPosRef:q}=b;g.useEffect(()=>{if(S){let _={x:0,y:0};const K=G=>{_={x:Math.abs(Math.round(G.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(G.pageY)-(q.current?.y??0))}},Q=G=>{_.x<=10&&_.y<=10?G.preventDefault():S.contains(G.target)||P(!1),document.removeEventListener("pointermove",K),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",Q,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Q,{capture:!0})}}},[S,P,q]),g.useEffect(()=>{const _=()=>P(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[P]);const[ee,E]=ds(_=>{const K=V().filter(Y=>!Y.disabled),Q=K.find(Y=>Y.ref.current===document.activeElement),G=fs(K,_,Q);G&&setTimeout(()=>G.ref.current.focus())}),M=g.useCallback((_,K,Q)=>{const G=!U.current&&!Q;(b.value!==void 0&&b.value===K||G)&&(T(_),G&&(U.current=!0))},[b.value]),j=g.useCallback(()=>S?.focus(),[S]),$=g.useCallback((_,K,Q)=>{const G=!U.current&&!Q;(b.value!==void 0&&b.value===K||G)&&F(_)},[b.value]),ie=n==="popper"?Ar:Xo,ue=ie===Ar?{side:a,sideOffset:c,align:l,alignOffset:f,arrowPadding:d,collisionBoundary:u,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:h}:{};return w.jsx(qo,{scope:r,content:S,viewport:k,onViewportChange:O,itemRefCallback:M,selectedItem:C,onItemLeave:j,itemTextRefCallback:$,focusSelectedItem:z,selectedItemText:I,position:n,isPositioned:H,searchRef:ee,children:w.jsx(Fo,{as:Gc,allowPinchZoom:!0,children:w.jsx(Bn,{asChild:!0,trapped:b.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:J(o,_=>{b.trigger?.focus({preventScroll:!0}),_.preventDefault()}),children:w.jsx(In,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:i,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(ie,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:_=>_.preventDefault(),...y,...ue,onPlaced:()=>L(!0),ref:x,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:J(y.onKeyDown,_=>{const K=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!K&&_.key.length===1&&E(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let G=V().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);if(["ArrowUp","End"].includes(_.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const Y=_.target,X=G.indexOf(Y);G=G.slice(X+1)}setTimeout(()=>D(G)),_.preventDefault()}})})})})})})});Yo.displayName=Kc;var qc="SelectItemAlignedPosition",Xo=g.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...o}=e,s=Ie(ze,r),i=De(ze,r),[a,c]=g.useState(null),[l,f]=g.useState(null),d=ne(t,x=>f(x)),u=Ht(r),m=g.useRef(!1),v=g.useRef(!0),{viewport:p,selectedItem:h,selectedItemText:y,focusSelectedItem:b}=i,S=g.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&l&&p&&h&&y){const x=s.trigger.getBoundingClientRect(),C=l.getBoundingClientRect(),T=s.valueNode.getBoundingClientRect(),I=y.getBoundingClientRect();if(s.dir!=="rtl"){const Y=I.left-C.left,X=T.left-Y,pe=x.left-X,$e=x.width+pe,jr=Math.max($e,C.width),Br=window.innerWidth-ve,Fr=Tn(X,[ve,Math.max(ve,Br-jr)]);a.style.minWidth=$e+"px",a.style.left=Fr+"px"}else{const Y=C.right-I.right,X=window.innerWidth-T.right-Y,pe=window.innerWidth-x.right-X,$e=x.width+pe,jr=Math.max($e,C.width),Br=window.innerWidth-ve,Fr=Tn(X,[ve,Math.max(ve,Br-jr)]);a.style.minWidth=$e+"px",a.style.right=Fr+"px"}const F=u(),V=window.innerHeight-ve*2,H=p.scrollHeight,L=window.getComputedStyle(l),U=parseInt(L.borderTopWidth,10),D=parseInt(L.paddingTop,10),z=parseInt(L.borderBottomWidth,10),P=parseInt(L.paddingBottom,10),q=U+D+H+P+z,ee=Math.min(h.offsetHeight*5,q),E=window.getComputedStyle(p),M=parseInt(E.paddingTop,10),j=parseInt(E.paddingBottom,10),$=x.top+x.height/2-ve,ie=V-$,ue=h.offsetHeight/2,_=h.offsetTop+ue,K=U+D+_,Q=q-K;if(K<=$){const Y=F.length>0&&h===F[F.length-1].ref.current;a.style.bottom="0px";const X=l.clientHeight-p.offsetTop-p.offsetHeight,pe=Math.max(ie,ue+(Y?j:0)+X+z),$e=K+pe;a.style.height=$e+"px"}else{const Y=F.length>0&&h===F[0].ref.current;a.style.top="0px";const pe=Math.max($,U+p.offsetTop+(Y?M:0)+ue)+Q;a.style.height=pe+"px",p.scrollTop=K-$+p.offsetTop}a.style.margin=`${ve}px 0`,a.style.minHeight=ee+"px",a.style.maxHeight=V+"px",n?.(),requestAnimationFrame(()=>m.current=!0)}},[u,s.trigger,s.valueNode,a,l,p,h,y,s.dir,n]);ce(()=>S(),[S]);const[R,k]=g.useState();ce(()=>{l&&k(window.getComputedStyle(l).zIndex)},[l]);const O=g.useCallback(x=>{x&&v.current===!0&&(S(),b?.(),v.current=!1)},[S,b]);return w.jsx(Xc,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:O,children:w.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:w.jsx(Z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Xo.displayName=qc;var Yc="SelectPopperPosition",Ar=g.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:o=ve,...s}=e,i=Ut(r);return w.jsx(Wl,{...i,...s,ref:t,align:n,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ar.displayName=Yc;var[Xc,Nr]=et(ze,{}),Ir="SelectViewport",Qo=g.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...o}=e,s=De(Ir,r),i=Nr(Ir,r),a=ne(t,s.onViewportChange),c=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),w.jsx(Wt.Slot,{scope:r,children:w.jsx(Z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:J(o.onScroll,l=>{const f=l.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:u}=i;if(u?.current&&d){const m=Math.abs(c.current-f.scrollTop);if(m>0){const v=window.innerHeight-ve*2,p=parseFloat(d.style.minHeight),h=parseFloat(d.style.height),y=Math.max(p,h);if(y<v){const b=y+m,S=Math.min(v,b),R=b-S;d.style.height=S+"px",d.style.bottom==="0px"&&(f.scrollTop=R>0?R:0,d.style.justifyContent="flex-end")}}}c.current=f.scrollTop})})})]})});Qo.displayName=Ir;var Zo="SelectGroup",[Qc,Zc]=et(Zo),Jo=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=fr();return w.jsx(Qc,{scope:r,id:o,children:w.jsx(Z.div,{role:"group","aria-labelledby":o,...n,ref:t})})});Jo.displayName=Zo;var es="SelectLabel",Jc=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Zc(es,r);return w.jsx(Z.div,{id:o.id,...n,ref:t})});Jc.displayName=es;var Kt="SelectItem",[eu,ts]=et(Kt),rs=g.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:s,...i}=e,a=Ie(Kt,r),c=De(Kt,r),l=a.value===n,[f,d]=g.useState(s??""),[u,m]=g.useState(!1),v=ne(t,b=>c.itemRefCallback?.(b,n,o)),p=fr(),h=g.useRef("touch"),y=()=>{o||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(eu,{scope:r,value:n,disabled:o,textId:p,isSelected:l,onItemTextChange:g.useCallback(b=>{d(S=>S||(b?.textContent??"").trim())},[]),children:w.jsx(Wt.ItemSlot,{scope:r,value:n,disabled:o,textValue:f,children:w.jsx(Z.div,{role:"option","aria-labelledby":p,"data-highlighted":u?"":void 0,"aria-selected":l&&u,"data-state":l?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...i,ref:v,onFocus:J(i.onFocus,()=>m(!0)),onBlur:J(i.onBlur,()=>m(!1)),onClick:J(i.onClick,()=>{h.current!=="mouse"&&y()}),onPointerUp:J(i.onPointerUp,()=>{h.current==="mouse"&&y()}),onPointerDown:J(i.onPointerDown,b=>{h.current=b.pointerType}),onPointerMove:J(i.onPointerMove,b=>{h.current=b.pointerType,o?c.onItemLeave?.():h.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:J(i.onPointerLeave,b=>{b.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:J(i.onKeyDown,b=>{c.searchRef?.current!==""&&b.key===" "||(Fc.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});rs.displayName=Kt;var mt="SelectItemText",ns=g.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...s}=e,i=Ie(mt,r),a=De(mt,r),c=ts(mt,r),l=Wc(mt,r),[f,d]=g.useState(null),u=ne(t,y=>d(y),c.onItemTextChange,y=>a.itemTextRefCallback?.(y,c.value,c.disabled)),m=f?.textContent,v=g.useMemo(()=>w.jsx("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:h}=l;return ce(()=>(p(v),()=>h(v)),[p,h,v]),w.jsxs(w.Fragment,{children:[w.jsx(Z.span,{id:c.textId,...s,ref:u}),c.isSelected&&i.valueNode&&!i.valueNodeHasChildren?ot.createPortal(s.children,i.valueNode):null]})});ns.displayName=mt;var os="SelectItemIndicator",ss=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ts(os,r).isSelected?w.jsx(Z.span,{"aria-hidden":!0,...n,ref:t}):null});ss.displayName=os;var Dr="SelectScrollUpButton",is=g.forwardRef((e,t)=>{const r=De(Dr,e.__scopeSelect),n=Nr(Dr,e.__scopeSelect),[o,s]=g.useState(!1),i=ne(t,n.onScrollButtonChange);return ce(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;s(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?w.jsx(ls,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});is.displayName=Dr;var Mr="SelectScrollDownButton",as=g.forwardRef((e,t)=>{const r=De(Mr,e.__scopeSelect),n=Nr(Mr,e.__scopeSelect),[o,s]=g.useState(!1),i=ne(t,n.onScrollButtonChange);return ce(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<l;s(f)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),o?w.jsx(ls,{...e,ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});as.displayName=Mr;var ls=g.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,s=De("SelectScrollButton",r),i=g.useRef(null),a=Ht(r),c=g.useCallback(()=>{i.current!==null&&(window.clearInterval(i.current),i.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),ce(()=>{a().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[a]),w.jsx(Z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:J(o.onPointerDown,()=>{i.current===null&&(i.current=window.setInterval(n,50))}),onPointerMove:J(o.onPointerMove,()=>{s.onItemLeave?.(),i.current===null&&(i.current=window.setInterval(n,50))}),onPointerLeave:J(o.onPointerLeave,()=>{c()})})}),tu="SelectSeparator",ru=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return w.jsx(Z.div,{"aria-hidden":!0,...n,ref:t})});ru.displayName=tu;var Lr="SelectArrow",nu=g.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ut(r),s=Ie(Lr,r),i=De(Lr,r);return s.open&&i.position==="popper"?w.jsx(Hl,{...o,...n,ref:t}):null});nu.displayName=Lr;var ou="SelectBubbleInput",cs=g.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const o=g.useRef(null),s=ne(n,o),i=Yl(t);return g.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&f){const d=new Event("change",{bubbles:!0});f.call(a,t),a.dispatchEvent(d)}},[i,t]),w.jsx(Z.select,{...r,style:{...Ro,...r.style},ref:s,defaultValue:t})});cs.displayName=ou;function us(e){return e===""||e===void 0}function ds(e){const t=je(e),r=g.useRef(""),n=g.useRef(0),o=g.useCallback(i=>{const a=r.current+i;t(a),(function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))})(a)},[t]),s=g.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,s]}function fs(e,t,r){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let i=su(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==r));const c=i.find(l=>l.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function su(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var iu=zo,au=Vo,lu=Ho,cu=Uo,uu=Ko,du=Go,fu=Qo,pu=Jo,mu=rs,gu=ns,hu=ss,vu=is,yu=as;function bu(e){const t=re.c(4);let r;t[0]!==e?({...r}=e,t[0]=e,t[1]=r):r=t[1];let n;return t[2]!==r?(n=w.jsx(iu,{"data-slot":"select",...r}),t[2]=r,t[3]=n):n=t[3],n}function wu(e){const t=re.c(4);let r;t[0]!==e?({...r}=e,t[0]=e,t[1]=r):r=t[1];let n;return t[2]!==r?(n=w.jsx(pu,{"data-slot":"select-group",...r}),t[2]=r,t[3]=n):n=t[3],n}function xu(e){const t=re.c(4);let r;t[0]!==e?({...r}=e,t[0]=e,t[1]=r):r=t[1];let n;return t[2]!==r?(n=w.jsx(lu,{"data-slot":"select-value",...r}),t[2]=r,t[3]=n):n=t[3],n}function Su(e){const t=re.c(13);let r,n,o,s;t[0]!==e?({className:n,size:s,children:r,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s):(r=t[1],n=t[2],o=t[3],s=t[4]);const i=s===void 0?"default":s;let a;t[5]!==n?(a=ae("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),t[5]=n,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=w.jsx(cu,{asChild:!0,children:w.jsx(Yr,{className:"size-4 opacity-50"})}),t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==o||t[10]!==i||t[11]!==a?(l=w.jsxs(au,{"data-slot":"select-trigger","data-size":i,className:a,...o,children:[r,c]}),t[8]=r,t[9]=o,t[10]=i,t[11]=a,t[12]=l):l=t[12],l}function Eu(e){const t=re.c(22);let r,n,o,s,i;t[0]!==e?({className:n,children:r,position:s,align:i,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o,t[4]=s,t[5]=i):(r=t[1],n=t[2],o=t[3],s=t[4],i=t[5]);const a=s===void 0?"popper":s,c=i===void 0?"center":i,l=a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let f;t[6]!==n||t[7]!==l?(f=ae("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",l,n),t[6]=n,t[7]=l,t[8]=f):f=t[8];let d;t[9]===Symbol.for("react.memo_cache_sentinel")?(d=w.jsx(Ru,{}),t[9]=d):d=t[9];const u=a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let m;t[10]!==u?(m=ae("p-1",u),t[10]=u,t[11]=m):m=t[11];let v;t[12]!==r||t[13]!==m?(v=w.jsx(fu,{className:m,children:r}),t[12]=r,t[13]=m,t[14]=v):v=t[14];let p;t[15]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(Pu,{}),t[15]=p):p=t[15];let h;return t[16]!==c||t[17]!==a||t[18]!==o||t[19]!==f||t[20]!==v?(h=w.jsx(uu,{children:w.jsxs(du,{"data-slot":"select-content",className:f,position:a,align:c,...o,children:[d,v,p]})}),t[16]=c,t[17]=a,t[18]=o,t[19]=f,t[20]=v,t[21]=h):h=t[21],h}function Cu(e){const t=re.c(13);let r,n,o;t[0]!==e?({className:n,children:r,...o}=e,t[0]=e,t[1]=r,t[2]=n,t[3]=o):(r=t[1],n=t[2],o=t[3]);let s;t[4]!==n?(s=ae("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),t[4]=n,t[5]=s):s=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i=w.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(hu,{children:w.jsx(_s,{className:"size-4"})})}),t[6]=i):i=t[6];let a;t[7]!==r?(a=w.jsx(gu,{children:r}),t[7]=r,t[8]=a):a=t[8];let c;return t[9]!==o||t[10]!==s||t[11]!==a?(c=w.jsxs(mu,{"data-slot":"select-item",className:s,...o,children:[i,a]}),t[9]=o,t[10]=s,t[11]=a,t[12]=c):c=t[12],c}function Ru(e){const t=re.c(9);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("flex cursor-default items-center justify-center py-1",r),t[3]=r,t[4]=o):o=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=w.jsx(Os,{className:"size-4"}),t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==o?(i=w.jsx(vu,{"data-slot":"select-scroll-up-button",className:o,...n,children:s}),t[6]=n,t[7]=o,t[8]=i):i=t[8],i}function Pu(e){const t=re.c(9);let r,n;t[0]!==e?({className:r,...n}=e,t[0]=e,t[1]=r,t[2]=n):(r=t[1],n=t[2]);let o;t[3]!==r?(o=ae("flex cursor-default items-center justify-center py-1",r),t[3]=r,t[4]=o):o=t[4];let s;t[5]===Symbol.for("react.memo_cache_sentinel")?(s=w.jsx(Yr,{className:"size-4"}),t[5]=s):s=t[5];let i;return t[6]!==n||t[7]!==o?(i=w.jsx(yu,{"data-slot":"select-scroll-down-button",className:o,...n,children:s}),t[6]=n,t[7]=o,t[8]=i):i=t[8],i}const ku=e=>{const t=re.c(3);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={Input:Qi,Button:Ji,Select:bu,SelectContent:Eu,SelectItem:Cu,SelectTrigger:Su,SelectValue:xu,SelectGroup:wu},t[0]=r):r=t[0];let n;return t[1]!==e?(n=w.jsx(On,{...e,coms:r}),t[1]=e,t[2]=n):n=t[2],n},_u=On;ke.RBasicForm=_u,ke.RGeneralBasicForm=ku,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})}));
149
+ `)},os=function(){var t=parseInt(document.body.getAttribute(ot)||"0",10);return isFinite(t)?t:0},mu=function(){g.useEffect(function(){return document.body.setAttribute(ot,(os()+1).toString()),function(){var t=os()-1;t<=0?document.body.removeAttribute(ot):document.body.setAttribute(ot,t.toString())}},[])},gu=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,o=r===void 0?"margin":r;mu();var s=g.useMemo(function(){return du(o)},[o]);return g.createElement(fu,{styles:pu(s,!e,o,n?"":"!important")})},Yn=!1;if(typeof window<"u")try{var Jt=Object.defineProperty({},"passive",{get:function(){return Yn=!0,!0}});window.addEventListener("test",Jt,Jt),window.removeEventListener("test",Jt,Jt)}catch{Yn=!1}var st=Yn?{passive:!1}:!1,hu=function(t){return t.tagName==="TEXTAREA"},ss=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!hu(t)&&n[e]==="visible")},vu=function(t){return ss(t,"overflowY")},yu=function(t){return ss(t,"overflowX")},as=function(t,e){var n=e.ownerDocument,r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=is(t,r);if(o){var s=cs(t,r),a=s[1],i=s[2];if(a>i)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bu=function(t){var e=t.scrollTop,n=t.scrollHeight,r=t.clientHeight;return[e,n,r]},wu=function(t){var e=t.scrollLeft,n=t.scrollWidth,r=t.clientWidth;return[e,n,r]},is=function(t,e){return t==="v"?vu(e):yu(e)},cs=function(t,e){return t==="v"?bu(e):wu(e)},xu=function(t,e){return t==="h"&&e==="rtl"?-1:1},Su=function(t,e,n,r,o){var s=xu(t,window.getComputedStyle(e).direction),a=s*r,i=n.target,l=e.contains(i),c=!1,f=a>0,u=0,d=0;do{if(!i)break;var m=cs(t,i),v=m[0],p=m[1],h=m[2],b=p-h-s*v;(v||b)&&is(t,i)&&(u+=b,d+=v);var y=i.parentNode;i=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&i!==document.body||l&&(e.contains(i)||e===i));return(f&&Math.abs(u)<1||!f&&Math.abs(d)<1)&&(c=!0),c},en=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ls=function(t){return[t.deltaX,t.deltaY]},us=function(t){return t&&"current"in t?t.current:t},Eu=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Cu=function(t){return`
150
+ .block-interactivity-`.concat(t,` {pointer-events: none;}
151
+ .allow-interactivity-`).concat(t,` {pointer-events: all;}
152
+ `)},Ru=0,at=[];function Tu(t){var e=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(Ru++)[0],s=g.useState(rs)[0],a=g.useRef(t);g.useEffect(function(){a.current=t},[t]),g.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var p=Gl([t.lockRef.current],(t.shards||[]).map(us),!0).filter(Boolean);return p.forEach(function(h){return h.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),p.forEach(function(h){return h.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var i=g.useCallback(function(p,h){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!a.current.allowPinchZoom;var b=en(p),y=n.current,x="deltaX"in p?p.deltaX:y[0]-b[0],C="deltaY"in p?p.deltaY:y[1]-b[1],T,_=p.target,E=Math.abs(x)>Math.abs(C)?"h":"v";if("touches"in p&&E==="h"&&_.type==="range")return!1;var S=as(E,_);if(!S)return!0;if(S?T=E:(T=E==="v"?"h":"v",S=as(E,_)),!S)return!1;if(!r.current&&"changedTouches"in p&&(x||C)&&(r.current=T),!T)return!0;var k=r.current||T;return Su(k,h,p,k==="h"?x:C)},[]),l=g.useCallback(function(p){var h=p;if(!(!at.length||at[at.length-1]!==s)){var b="deltaY"in h?ls(h):en(h),y=e.current.filter(function(T){return T.name===h.type&&(T.target===h.target||h.target===T.shadowParent)&&Eu(T.delta,b)})[0];if(y&&y.should){h.cancelable&&h.preventDefault();return}if(!y){var x=(a.current.shards||[]).map(us).filter(Boolean).filter(function(T){return T.contains(h.target)}),C=x.length>0?i(h,x[0]):!a.current.noIsolation;C&&h.cancelable&&h.preventDefault()}}},[]),c=g.useCallback(function(p,h,b,y){var x={name:p,delta:h,target:b,should:y,shadowParent:Pu(b)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(C){return C!==x})},1)},[]),f=g.useCallback(function(p){n.current=en(p),r.current=void 0},[]),u=g.useCallback(function(p){c(p.type,ls(p),p.target,i(p,t.lockRef.current))},[]),d=g.useCallback(function(p){c(p.type,en(p),p.target,i(p,t.lockRef.current))},[]);g.useEffect(function(){return at.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,st),document.addEventListener("touchmove",l,st),document.addEventListener("touchstart",f,st),function(){at=at.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,st),document.removeEventListener("touchmove",l,st),document.removeEventListener("touchstart",f,st)}},[]);var m=t.removeScrollBar,v=t.inert;return g.createElement(g.Fragment,null,v?g.createElement(s,{styles:Cu(o)}):null,m?g.createElement(gu,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Pu(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const _u=nu(ns,Tu);var ds=g.forwardRef(function(t,e){return g.createElement(Zt,Re({},t,{ref:e,sideCar:_u}))});ds.classNames=Zt.classNames;var Ou=[" ","Enter","ArrowUp","ArrowDown"],ku=[" ","Enter"],Ke="Select",[tn,nn,Nu]=ro(Ke),[it]=ht(Ke,[Nu,Vo]),rn=Vo(),[Au,je]=it(Ke),[Iu,Du]=it(Ke),fs=t=>{const{__scopeSelect:e,children:n,open:r,defaultOpen:o,onOpenChange:s,value:a,defaultValue:i,onValueChange:l,dir:c,name:f,autoComplete:u,disabled:d,required:m,form:v}=t,p=rn(e),[h,b]=g.useState(null),[y,x]=g.useState(null),[C,T]=g.useState(!1),_=Pn(c),[E,S]=Gt({prop:r,defaultProp:o??!1,onChange:s,caller:Ke}),[k,N]=Gt({prop:a,defaultProp:i,onChange:l,caller:Ke}),M=g.useRef(null),V=h?v||!!h.closest("form"):!0,[B,z]=g.useState(new Set),H=Array.from(B).map(D=>D.props.value).join(";");return w.jsx(Al,{...p,children:w.jsxs(Au,{required:m,scope:e,trigger:h,onTriggerChange:b,valueNode:y,onValueNodeChange:x,valueNodeHasChildren:C,onValueNodeHasChildrenChange:T,contentId:vt(),value:k,onValueChange:N,open:E,onOpenChange:S,dir:_,triggerPointerDownPosRef:M,disabled:d,children:[w.jsx(tn.Provider,{scope:e,children:w.jsx(Iu,{scope:t.__scopeSelect,onNativeOptionAdd:g.useCallback(D=>{z(F=>new Set(F).add(D))},[]),onNativeOptionRemove:g.useCallback(D=>{z(F=>{const P=new Set(F);return P.delete(D),P})},[]),children:n})}),V?w.jsxs(Ms,{"aria-hidden":!0,required:m,tabIndex:-1,name:f,autoComplete:u,value:k,onChange:D=>N(D.target.value),disabled:d,form:v,children:[k===void 0?w.jsx("option",{value:""}):null,Array.from(B)]},H):null]})})};fs.displayName=Ke;var ps="SelectTrigger",ms=g.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:r=!1,...o}=t,s=rn(n),a=je(ps,n),i=a.disabled||r,l=oe(e,a.onTriggerChange),c=nn(n),f=g.useRef("touch"),[u,d,m]=js(p=>{const h=c().filter(x=>!x.disabled),b=h.find(x=>x.value===a.value),y=Bs(h,p,b);y!==void 0&&a.onValueChange(y.value)}),v=p=>{i||(a.onOpenChange(!0),m()),p&&(a.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return w.jsx(Il,{asChild:!0,...s,children:w.jsx(X.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Ls(a.value)?"":void 0,...o,ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus(),f.current!=="mouse"&&v(p)}),onPointerDown:Y(o.onPointerDown,p=>{f.current=p.pointerType;const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const h=u.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(h&&p.key===" ")&&Ou.includes(p.key)&&(v(),p.preventDefault())})})})});ms.displayName=ps;var gs="SelectValue",hs=g.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:a="",...i}=t,l=je(gs,n),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=oe(e,l.onValueNodeChange);return ie(()=>{c(f)},[c,f]),w.jsx(X.span,{...i,ref:u,style:{pointerEvents:"none"},children:Ls(l.value)?w.jsx(w.Fragment,{children:a}):s})});hs.displayName=gs;var Mu="SelectIcon",vs=g.forwardRef((t,e)=>{const{__scopeSelect:n,children:r,...o}=t;return w.jsx(X.span,{"aria-hidden":!0,...o,ref:e,children:r||"▼"})});vs.displayName=Mu;var Lu="SelectPortal",ys=t=>w.jsx(Xo,{asChild:!0,...t});ys.displayName=Lu;var He="SelectContent",bs=g.forwardRef((t,e)=>{const n=je(He,t.__scopeSelect),[r,o]=g.useState();if(ie(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?dt.createPortal(w.jsx(ws,{scope:t.__scopeSelect,children:w.jsx(tn.Slot,{scope:t.__scopeSelect,children:w.jsx("div",{children:t.children})})}),s):null}return w.jsx(xs,{...t,ref:e})});bs.displayName=He;var be=10,[ws,Be]=it(He),ju="SelectContentImpl",Bu=ft("SelectContent.RemoveScroll"),xs=g.forwardRef((t,e)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:a,side:i,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:h,...b}=t,y=je(He,n),[x,C]=g.useState(null),[T,_]=g.useState(null),E=oe(e,O=>C(O)),[S,k]=g.useState(null),[N,M]=g.useState(null),V=nn(n),[B,z]=g.useState(!1),H=g.useRef(!1);g.useEffect(()=>{if(x)return Ul(x)},[x]),rc();const D=g.useCallback(O=>{const[U,...ee]=V().map(Z=>Z.ref.current),[G]=ee.slice(-1),Q=document.activeElement;for(const Z of O)if(Z===Q||(Z?.scrollIntoView({block:"nearest"}),Z===U&&T&&(T.scrollTop=0),Z===G&&T&&(T.scrollTop=T.scrollHeight),Z?.focus(),document.activeElement!==Q))return},[V,T]),F=g.useCallback(()=>D([S,x]),[D,S,x]);g.useEffect(()=>{B&&F()},[B,F]);const{onOpenChange:P,triggerPointerDownPosRef:q}=y;g.useEffect(()=>{if(x){let O={x:0,y:0};const U=G=>{O={x:Math.abs(Math.round(G.pageX)-(q.current?.x??0)),y:Math.abs(Math.round(G.pageY)-(q.current?.y??0))}},ee=G=>{O.x<=10&&O.y<=10?G.preventDefault():x.contains(G.target)||P(!1),document.removeEventListener("pointermove",U),q.current=null};return q.current!==null&&(document.addEventListener("pointermove",U),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",U),document.removeEventListener("pointerup",ee,{capture:!0})}}},[x,P,q]),g.useEffect(()=>{const O=()=>P(!1);return window.addEventListener("blur",O),window.addEventListener("resize",O),()=>{window.removeEventListener("blur",O),window.removeEventListener("resize",O)}},[P]);const[te,R]=js(O=>{const U=V().filter(Q=>!Q.disabled),ee=U.find(Q=>Q.ref.current===document.activeElement),G=Bs(U,O,ee);G&&setTimeout(()=>G.ref.current.focus())}),L=g.useCallback((O,U,ee)=>{const G=!H.current&&!ee;(y.value!==void 0&&y.value===U||G)&&(k(O),G&&(H.current=!0))},[y.value]),$=g.useCallback(()=>x?.focus(),[x]),W=g.useCallback((O,U,ee)=>{const G=!H.current&&!ee;(y.value!==void 0&&y.value===U||G)&&M(O)},[y.value]),ce=r==="popper"?Xn:Ss,de=ce===Xn?{side:i,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:m,sticky:v,hideWhenDetached:p,avoidCollisions:h}:{};return w.jsx(ws,{scope:n,content:x,viewport:T,onViewportChange:_,itemRefCallback:L,selectedItem:S,onItemLeave:$,itemTextRefCallback:W,focusSelectedItem:F,selectedItemText:N,position:r,isPositioned:B,searchRef:te,children:w.jsx(ds,{as:Bu,allowPinchZoom:!0,children:w.jsx(fo,{asChild:!0,trapped:y.open,onMountAutoFocus:O=>{O.preventDefault()},onUnmountAutoFocus:Y(o,O=>{y.trigger?.focus({preventScroll:!0}),O.preventDefault()}),children:w.jsx(ao,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:O=>O.preventDefault(),onDismiss:()=>y.onOpenChange(!1),children:w.jsx(ce,{role:"listbox",id:y.contentId,"data-state":y.open?"open":"closed",dir:y.dir,onContextMenu:O=>O.preventDefault(),...b,...de,onPlaced:()=>z(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...b.style},onKeyDown:Y(b.onKeyDown,O=>{const U=O.ctrlKey||O.altKey||O.metaKey;if(O.key==="Tab"&&O.preventDefault(),!U&&O.key.length===1&&R(O.key),["ArrowUp","ArrowDown","Home","End"].includes(O.key)){let G=V().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(O.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(O.key)){const Q=O.target,Z=G.indexOf(Q);G=G.slice(Z+1)}setTimeout(()=>D(G)),O.preventDefault()}})})})})})})});xs.displayName=ju;var Fu="SelectItemAlignedPosition",Ss=g.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:r,...o}=t,s=je(He,n),a=Be(He,n),[i,l]=g.useState(null),[c,f]=g.useState(null),u=oe(e,E=>f(E)),d=nn(n),m=g.useRef(!1),v=g.useRef(!0),{viewport:p,selectedItem:h,selectedItemText:b,focusSelectedItem:y}=a,x=g.useCallback(()=>{if(s.trigger&&s.valueNode&&i&&c&&p&&h&&b){const E=s.trigger.getBoundingClientRect(),S=c.getBoundingClientRect(),k=s.valueNode.getBoundingClientRect(),N=b.getBoundingClientRect();if(s.dir!=="rtl"){const Q=N.left-S.left,Z=k.left-Q,me=E.left-Z,Ge=E.width+me,cr=Math.max(Ge,S.width),lr=window.innerWidth-be,ur=no(Z,[be,Math.max(be,lr-cr)]);i.style.minWidth=Ge+"px",i.style.left=ur+"px"}else{const Q=S.right-N.right,Z=window.innerWidth-k.right-Q,me=window.innerWidth-E.right-Z,Ge=E.width+me,cr=Math.max(Ge,S.width),lr=window.innerWidth-be,ur=no(Z,[be,Math.max(be,lr-cr)]);i.style.minWidth=Ge+"px",i.style.right=ur+"px"}const M=d(),V=window.innerHeight-be*2,B=p.scrollHeight,z=window.getComputedStyle(c),H=parseInt(z.borderTopWidth,10),D=parseInt(z.paddingTop,10),F=parseInt(z.borderBottomWidth,10),P=parseInt(z.paddingBottom,10),q=H+D+B+P+F,te=Math.min(h.offsetHeight*5,q),R=window.getComputedStyle(p),L=parseInt(R.paddingTop,10),$=parseInt(R.paddingBottom,10),W=E.top+E.height/2-be,ce=V-W,de=h.offsetHeight/2,O=h.offsetTop+de,U=H+D+O,ee=q-U;if(U<=W){const Q=M.length>0&&h===M[M.length-1].ref.current;i.style.bottom="0px";const Z=c.clientHeight-p.offsetTop-p.offsetHeight,me=Math.max(ce,de+(Q?$:0)+Z+F),Ge=U+me;i.style.height=Ge+"px"}else{const Q=M.length>0&&h===M[0].ref.current;i.style.top="0px";const me=Math.max(W,H+p.offsetTop+(Q?L:0)+de)+ee;i.style.height=me+"px",p.scrollTop=U-W+p.offsetTop}i.style.margin=`${be}px 0`,i.style.minHeight=te+"px",i.style.maxHeight=V+"px",r?.(),requestAnimationFrame(()=>m.current=!0)}},[d,s.trigger,s.valueNode,i,c,p,h,b,s.dir,r]);ie(()=>x(),[x]);const[C,T]=g.useState();ie(()=>{c&&T(window.getComputedStyle(c).zIndex)},[c]);const _=g.useCallback(E=>{E&&v.current===!0&&(x(),y?.(),v.current=!1)},[x,y]);return w.jsx(Vu,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:m,onScrollButtonChange:_,children:w.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C},children:w.jsx(X.div,{...o,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ss.displayName=Fu;var $u="SelectPopperPosition",Xn=g.forwardRef((t,e)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=be,...s}=t,a=rn(n);return w.jsx(Dl,{...a,...s,ref:e,align:r,collisionPadding:o,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xn.displayName=$u;var[Vu,Qn]=it(He,{}),Zn="SelectViewport",Es=g.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:r,...o}=t,s=Be(Zn,n),a=Qn(Zn,n),i=oe(e,s.onViewportChange),l=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(tn.Slot,{scope:n,children:w.jsx(X.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Y(o.onScroll,c=>{const f=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:d}=a;if(d?.current&&u){const m=Math.abs(l.current-f.scrollTop);if(m>0){const v=window.innerHeight-be*2,p=parseFloat(u.style.minHeight),h=parseFloat(u.style.height),b=Math.max(p,h);if(b<v){const y=b+m,x=Math.min(v,y),C=y-x;u.style.height=x+"px",u.style.bottom==="0px"&&(f.scrollTop=C>0?C:0,u.style.justifyContent="flex-end")}}}l.current=f.scrollTop})})})]})});Es.displayName=Zn;var Cs="SelectGroup",[zu,Wu]=it(Cs),Rs=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=vt();return w.jsx(zu,{scope:n,id:o,children:w.jsx(X.div,{role:"group","aria-labelledby":o,...r,ref:e})})});Rs.displayName=Cs;var Ts="SelectLabel",Ku=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=Wu(Ts,n);return w.jsx(X.div,{id:o.id,...r,ref:e})});Ku.displayName=Ts;var on="SelectItem",[Hu,Ps]=it(on),_s=g.forwardRef((t,e)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...a}=t,i=je(on,n),l=Be(on,n),c=i.value===r,[f,u]=g.useState(s??""),[d,m]=g.useState(!1),v=oe(e,y=>l.itemRefCallback?.(y,r,o)),p=vt(),h=g.useRef("touch"),b=()=>{o||(i.onValueChange(r),i.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(Hu,{scope:n,value:r,disabled:o,textId:p,isSelected:c,onItemTextChange:g.useCallback(y=>{u(x=>x||(y?.textContent??"").trim())},[]),children:w.jsx(tn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f,children:w.jsx(X.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...a,ref:v,onFocus:Y(a.onFocus,()=>m(!0)),onBlur:Y(a.onBlur,()=>m(!1)),onClick:Y(a.onClick,()=>{h.current!=="mouse"&&b()}),onPointerUp:Y(a.onPointerUp,()=>{h.current==="mouse"&&b()}),onPointerDown:Y(a.onPointerDown,y=>{h.current=y.pointerType}),onPointerMove:Y(a.onPointerMove,y=>{h.current=y.pointerType,o?l.onItemLeave?.():h.current==="mouse"&&y.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(a.onPointerLeave,y=>{y.currentTarget===document.activeElement&&l.onItemLeave?.()}),onKeyDown:Y(a.onKeyDown,y=>{l.searchRef?.current!==""&&y.key===" "||(ku.includes(y.key)&&b(),y.key===" "&&y.preventDefault())})})})})});_s.displayName=on;var xt="SelectItemText",Os=g.forwardRef((t,e)=>{const{__scopeSelect:n,className:r,style:o,...s}=t,a=je(xt,n),i=Be(xt,n),l=Ps(xt,n),c=Du(xt,n),[f,u]=g.useState(null),d=oe(e,b=>u(b),l.onItemTextChange,b=>i.itemTextRefCallback?.(b,l.value,l.disabled)),m=f?.textContent,v=g.useMemo(()=>w.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:p,onNativeOptionRemove:h}=c;return ie(()=>(p(v),()=>h(v)),[p,h,v]),w.jsxs(w.Fragment,{children:[w.jsx(X.span,{id:l.textId,...s,ref:d}),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?dt.createPortal(s.children,a.valueNode):null]})});Os.displayName=xt;var ks="SelectItemIndicator",Ns=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return Ps(ks,n).isSelected?w.jsx(X.span,{"aria-hidden":!0,...r,ref:e}):null});Ns.displayName=ks;var Jn="SelectScrollUpButton",As=g.forwardRef((t,e)=>{const n=Be(Jn,t.__scopeSelect),r=Qn(Jn,t.__scopeSelect),[o,s]=g.useState(!1),a=oe(e,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=l.scrollTop>0;s(c)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?w.jsx(Ds,{...t,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop-l.offsetHeight)}}):null});As.displayName=Jn;var er="SelectScrollDownButton",Is=g.forwardRef((t,e)=>{const n=Be(er,t.__scopeSelect),r=Qn(er,t.__scopeSelect),[o,s]=g.useState(!1),a=oe(e,r.onScrollButtonChange);return ie(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<c;s(f)};const l=n.viewport;return i(),l.addEventListener("scroll",i),()=>l.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),o?w.jsx(Ds,{...t,ref:a,onAutoScroll:()=>{const{viewport:i,selectedItem:l}=n;i&&l&&(i.scrollTop=i.scrollTop+l.offsetHeight)}}):null});Is.displayName=er;var Ds=g.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=t,s=Be("SelectScrollButton",n),a=g.useRef(null),i=nn(n),l=g.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return g.useEffect(()=>()=>l(),[l]),ie(()=>{i().find(f=>f.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[i]),w.jsx(X.div,{"aria-hidden":!0,...o,ref:e,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{a.current===null&&(a.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{s.onItemLeave?.(),a.current===null&&(a.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})})}),Uu="SelectSeparator",Gu=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t;return w.jsx(X.div,{"aria-hidden":!0,...r,ref:e})});Gu.displayName=Uu;var tr="SelectArrow",qu=g.forwardRef((t,e)=>{const{__scopeSelect:n,...r}=t,o=rn(n),s=je(tr,n),a=Be(tr,n);return s.open&&a.position==="popper"?w.jsx(Ml,{...o,...r,ref:e}):null});qu.displayName=tr;var Yu="SelectBubbleInput",Ms=g.forwardRef(({__scopeSelect:t,value:e,...n},r)=>{const o=g.useRef(null),s=oe(r,o),a=$l(e);return g.useEffect(()=>{const i=o.current;if(!i)return;const l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==e&&f){const u=new Event("change",{bubbles:!0});f.call(i,e),i.dispatchEvent(u)}},[a,e]),w.jsx(X.select,{...n,style:{...Qo,...n.style},ref:s,defaultValue:e})});Ms.displayName=Yu;function Ls(t){return t===""||t===void 0}function js(t){const e=Ie(t),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(a=>{const i=n.current+a;e(i),(function l(c){n.current=c,window.clearTimeout(r.current),c!==""&&(r.current=window.setTimeout(()=>l(""),1e3))})(i)},[e]),s=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function Bs(t,e,n){const o=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=n?t.indexOf(n):-1;let a=Xu(t,Math.max(s,0));o.length===1&&(a=a.filter(c=>c!==n));const l=a.find(c=>c.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Xu(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var Qu=fs,Zu=ms,Ju=hs,ed=vs,td=ys,nd=bs,rd=Es,od=Rs,sd=_s,ad=Os,id=Ns,cd=As,ld=Is;function ud(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=w.jsx(Qu,{"data-slot":"select",...n}),e[2]=n,e[3]=r):r=e[3],r}function dd(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=w.jsx(od,{"data-slot":"select-group",...n}),e[2]=n,e[3]=r):r=e[3],r}function fd(t){const e=J.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=w.jsx(Ju,{"data-slot":"select-value",...n}),e[2]=n,e[3]=r):r=e[3],r}function pd(t){const e=J.c(13);let n,r,o,s;e[0]!==t?({className:r,size:s,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s):(n=e[1],r=e[2],o=e[3],s=e[4]);const a=s===void 0?"default":s;let i;e[5]!==r?(i=re("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",r),e[5]=r,e[6]=i):i=e[6];let l;e[7]===Symbol.for("react.memo_cache_sentinel")?(l=w.jsx(ed,{asChild:!0,children:w.jsx(wr,{className:"size-4 opacity-50"})}),e[7]=l):l=e[7];let c;return e[8]!==n||e[9]!==o||e[10]!==a||e[11]!==i?(c=w.jsxs(Zu,{"data-slot":"select-trigger","data-size":a,className:i,...o,children:[n,l]}),e[8]=n,e[9]=o,e[10]=a,e[11]=i,e[12]=c):c=e[12],c}function md(t){const e=J.c(22);let n,r,o,s,a;e[0]!==t?({className:r,children:n,position:s,align:a,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=s,e[5]=a):(n=e[1],r=e[2],o=e[3],s=e[4],a=e[5]);const i=s===void 0?"popper":s,l=a===void 0?"center":a,c=i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1";let f;e[6]!==r||e[7]!==c?(f=re("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",c,r),e[6]=r,e[7]=c,e[8]=f):f=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=w.jsx(hd,{}),e[9]=u):u=e[9];const d=i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1";let m;e[10]!==d?(m=re("p-1",d),e[10]=d,e[11]=m):m=e[11];let v;e[12]!==n||e[13]!==m?(v=w.jsx(rd,{className:m,children:n}),e[12]=n,e[13]=m,e[14]=v):v=e[14];let p;e[15]===Symbol.for("react.memo_cache_sentinel")?(p=w.jsx(vd,{}),e[15]=p):p=e[15];let h;return e[16]!==l||e[17]!==i||e[18]!==o||e[19]!==f||e[20]!==v?(h=w.jsx(td,{children:w.jsxs(nd,{"data-slot":"select-content",className:f,position:i,align:l,...o,children:[u,v,p]})}),e[16]=l,e[17]=i,e[18]=o,e[19]=f,e[20]=v,e[21]=h):h=e[21],h}function gd(t){const e=J.c(13);let n,r,o;e[0]!==t?({className:r,children:n,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o):(n=e[1],r=e[2],o=e[3]);let s;e[4]!==r?(s=re("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",r),e[4]=r,e[5]=s):s=e[5];let a;e[6]===Symbol.for("react.memo_cache_sentinel")?(a=w.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:w.jsx(id,{children:w.jsx(xa,{className:"size-4"})})}),e[6]=a):a=e[6];let i;e[7]!==n?(i=w.jsx(ad,{children:n}),e[7]=n,e[8]=i):i=e[8];let l;return e[9]!==o||e[10]!==s||e[11]!==i?(l=w.jsxs(sd,{"data-slot":"select-item",className:s,...o,children:[a,i]}),e[9]=o,e[10]=s,e[11]=i,e[12]=l):l=e[12],l}function hd(t){const e=J.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("flex cursor-default items-center justify-center py-1",n),e[3]=n,e[4]=o):o=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=w.jsx(Sa,{className:"size-4"}),e[5]=s):s=e[5];let a;return e[6]!==r||e[7]!==o?(a=w.jsx(cd,{"data-slot":"select-scroll-up-button",className:o,...r,children:s}),e[6]=r,e[7]=o,e[8]=a):a=e[8],a}function vd(t){const e=J.c(9);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("flex cursor-default items-center justify-center py-1",n),e[3]=n,e[4]=o):o=e[4];let s;e[5]===Symbol.for("react.memo_cache_sentinel")?(s=w.jsx(wr,{className:"size-4"}),e[5]=s):s=e[5];let a;return e[6]!==r||e[7]!==o?(a=w.jsx(ld,{"data-slot":"select-scroll-down-button",className:o,...r,children:s}),e[6]=r,e[7]=o,e[8]=a):a=e[8],a}const yd=t=>{const e=J.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={Input:Ki,Button:Ui,Select:ud,SelectContent:md,SelectItem:gd,SelectTrigger:pd,SelectValue:fd,SelectGroup:dd},e[0]=n):n=e[0];let r;return e[1]!==t?(r=w.jsx(to,{...t,coms:n}),e[1]=t,e[2]=r):r=e[2],r},ke=St;function St(t,e){const n=sn();return St=function(r,o){return r=r-157,n[r]},St(t,e)}(function(t,e){const n=St,r=t();for(;;)try{if(-parseInt(n(216))/1+parseInt(n(215))/2+-parseInt(n(183))/3+-parseInt(n(175))/4*(-parseInt(n(193))/5)+-parseInt(n(162))/6+-parseInt(n(165))/7+-parseInt(n(198))/8*(-parseInt(n(205))/9)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(sn,144666);const ue={};function sn(){const t=["currentTarget","onupgradeneeded","map","transaction","continue","数据更新失败没有request","primaryKey","580315XgKHom","call","Database connection closed, reconnecting...","error","length","64bvXXYM","DBName","数据删除成功","数据库删除失败","打开数据库报错,可能是数据库版本不对,或者储存容量不足等原因","result","update","863559tPzmuS","put","addEventListener","store不存在,请更新schema和DBVersion并重启前端服务","hasOwnProperty","deleteDB","readwrite","alert","keyPath","onerror","110026kBsQFS","287147ERepGn","info","主键插入失败","target","getDB","warn","get","onsuccess","indexedDB","617742laLJPd","数据更新成功","onabort","1405131SpeByp","objectStore","delete","数据库已删除","获取Database缺乏用户信息,请先传入对primaryKey的赋值","您的浏览器不支持IndexedDB的稳定版本。离线数据功能将不可用。Your browser doesn't support a stable version of IndexedDB. offline data feature will not be available.","数据更新失败","没有设置默认值","主键插入中止","keys","4TsnuAV","createObjectStore","主键查询结果:","目前所有数据都在用户ID的主键下面,所以没有主键的话做重新载入页面处理","deleteStore","getDataByKey","传入结构化克隆算法不支持的数据类型可能导致报错","mapDB","609543ULkBkv","openCursor","createIndex"];return sn=function(){return t},sn()}let Ue=null;const Fs=async(t,e)=>{const n=St;!window[n(161)]&&window[n(212)](n(170));const{DBName:r="",DBVersion:o=1}=t;let s,a=!1;try{const i=window[n(161)].open(r,o);await new Promise((l,c)=>{const f=n;i[f(187)]=async function(u){const d=f,m=u.target[d(203)],{stores:v=[]}=t;await Promise.all(v[d(188)](async p=>{const h=d,{DBStoreName:b="",properties:y={}}=p;try{const x={};x[h(213)]=t[h(192)];const C=u[h(186)][h(203)][h(176)](b,x);if(Object[h(174)](y)[h(197)]===0){console[h(158)](b+h(172));return}for(const T in y)if(y[h(209)][h(194)](y,T)){const _=y[T],E={..._[h(185)]};C[h(185)](T,T,E)}}catch(x){console[h(158)](x)}})),s=m,a=!0},i.onsuccess=async function(u){const d=f;if(s=this[d(203)],a){const{stores:m=[]}=t;await Promise.all(m.map(async v=>{const p=d,{DBStoreName:h=""}=v,b=s[p(189)]([h],p(211)),y=b[p(166)](h),x={};x[t[p(192)]]=e,y.add(x);try{await new Promise((C,T)=>{const _=p;b[_(164)]=function(E){const S=_;console[S(196)](S(173),E),T()},b.oncomplete=function(E){C()},b.onerror=function(E){console.error(_(218),E),T()}})}catch(C){console[p(158)](p(178),C)}}))}l()},i[f(214)]=function(u){c(u)}})}catch(i){console.error(i,n(202))}return s};let an=!1;ue[ke(157)]=async(t,e)=>{const n=ke,{mapDB:r,primaryKey:o}=t;return r?o?(an&&await new Promise(async(s,a)=>{const i=()=>{an?setTimeout(()=>{i()},200):s()};i()}),!Ue&&(an=!0,Ue=await Fs(r,o),Ue?.[n(207)]("close",async()=>{const s=n;console[s(217)](s(195)),Ue=await Fs(r,o)}),an=!1),e&&e(Ue),Ue):(console[n(158)](n(169)),!1):(console[n(158)]("必须传入数据库配置信息"),!1)},ue[ke(180)]=async(t,e)=>{const n=ke,{mapDB:r,tableName:o,primaryKey:s}=t,a={};a[n(182)]=r,a.primaryKey=s;const i=await ue[n(157)](a);if(!i)return;const l=i[n(189)]([o]),c=l[n(166)](o),f=c[n(159)](s);return new Promise((u,d)=>{const m=n;f[m(160)]=function(v){const p=m;e&&e(o+p(177)+f[p(203)]),u(f[p(203)])},f[m(214)]=function(v){console[m(196)](o+"事务失败"+v),d()}})},ue.updateStore=async(t,e)=>{var n;const r=ke,{mapDB:o,tableName:s,updateData:a}=t;!a[o?.[r(192)]]&&console.warn("请传入主键"+o[r(192)]);const i={};i[r(182)]=o,i[r(192)]=a[o?.[r(192)]];const l=await ue[r(157)](i);if(!l)return;let c=null;try{c=l[r(189)]([s],r(211)).objectStore(s)}catch(m){console[r(196)](r(208),m)}let f=null,u=null;const d=await new Promise((m,v)=>{const p=r,h=c[p(184)](a[o?.primaryKey]);h[p(160)]=b=>{m(b)},h.onerror=b=>{v(b)}});u=(n=d?.[r(219)])==null?void 0:n.result;try{u&&u?.[r(192)]===a[o?.primaryKey]?f=u[r(204)](a):f=c[r(206)](a)}catch(m){console[r(196)](r(181),m,a)}new Promise((m,v)=>{const p=r;!f&&(console[p(196)](s+p(191)),v()),f[p(160)]=function(h){e&&e(s+p(163)),m()},f.onerror=function(h){console.error(s+p(171),h),v()}}),u&&u[r(190)]()},ue[ke(179)]=async(t,e)=>{const n=ke,{mapDB:r,tableName:o,primaryKey:s}=t,a={};a[n(182)]=r,a[n(192)]=s;const i=await ue.getDB(a);if(!i)return;const l=i[n(189)]([o],n(211))[n(166)](o)[n(167)](s);return new Promise((c,f)=>{const u=n;l[u(160)]=function(d){e&&e(o+u(200)),c()},l[u(214)]=function(d){console[u(196)](o+"数据删除失败"+d),f()}})},ue[ke(210)]=async(t,e)=>{const n=ke,{mapDB:r}=t,o=window[n(161)].deleteDatabase(r[n(199)]);return new Promise((s,a)=>{const i=n;o[i(160)]=l=>{const c=i;e&&e(r[c(199)]+c(168)),s()},o.onerror=l=>{const c=i;console[c(196)](r[c(199)]+c(201)+l),a()}})};function Fe(t,e){const n=cn();return Fe=function(r,o){return r=r-479,n[r]},Fe(t,e)}function cn(){const t=["10091907RRJBnT","error","926979tsCzBf","65jghYYS","2344zwfena","deleteStore","14121dQBbMP","primaryKey","231970jMEsEj","197214HCIGpK","handleData","517284tbkZGr","mapDB","tableName","updateStore","getDataByKey","638UAFuAy","warn","为空,请先调用handleData","getData","3xeZFTa","696974ymNsIY","updateData"];return cn=function(){return t},cn()}const nr=Fe;(function(t,e){const n=Fe,r=t();for(;;)try{if(-parseInt(n(485))/1*(-parseInt(n(486))/2)+-parseInt(n(490))/3+parseInt(n(499))/4+parseInt(n(491))/5*(-parseInt(n(497))/6)+-parseInt(n(488))/7+parseInt(n(492))/8*(parseInt(n(494))/9)+parseInt(n(496))/10*(parseInt(n(481))/11)===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(cn,801934);async function bd(t,e){const n=Fe,{tableName:r,propertiesKey:o,parameter:s,primaryKey:a,mapDB:i}=t;let l=null,c={[i.primaryKey]:a};const f={};f.mapDB=i,f[n(501)]=r,f[n(495)]=a;const u=await ue.getDataByKey(f);u&&(c={...u,[i[n(495)]]:a}),c[o]=s;const d={};return d[n(500)]=i,d[n(501)]=r,d.updateData=c,await ue.updateStore(d),s&&(l=s),e&&e(l),l}async function wd(t,e){const n=Fe,{tableName:r,propertiesKey:o,primaryKey:s,mapDB:a}=t;let i=null;const l={};l[n(500)]=a,l.tableName=r,l[n(495)]=s;const c=await ue[n(480)](l);return c&&(i=c[o]),e&&e(i),i}async function xd(t,e){const n=Fe,{tableName:r,propertiesKey:o,parameter:s,primaryKey:a,mapDB:i}=t;let l={};const c={};c[n(500)]=i,c[n(501)]=r,c[n(495)]=a;const f=await ue.getDataByKey(c);try{if(f){l={...f[o],...s};const u={[i[n(495)]]:a},d=u;d[o]=l;const m={};m.mapDB=i,m[n(501)]=r,m[n(487)]=d,await ue[n(479)](m)}else console[n(482)](r+n(483))}catch(u){console.error(u)}return e&&e(l),l}async function Sd(t,e){const n=Fe,{tableName:r,primaryKey:o,mapDB:s}=t;let a=null;try{const i={};i[n(500)]=s,i[n(501)]=r,i[n(495)]=o,await ue[n(493)](i)}catch(i){console[n(489)](i)}return e&&e(a),a}const Et={};Et[nr(498)]=bd,Et[nr(484)]=wd,Et[nr(487)]=xd,Et.clearData=Sd;var we=un;(function(t,e){for(var n=un,r=t();;)try{var o=parseInt(n(471))/1*(-parseInt(n(463))/2)+parseInt(n(478))/3+parseInt(n(459))/4*(-parseInt(n(477))/5)+parseInt(n(473))/6*(-parseInt(n(466))/7)+parseInt(n(458))/8*(parseInt(n(474))/9)+-parseInt(n(460))/10+-parseInt(n(461))/11*(-parseInt(n(472))/12);if(o===e)break;r.push(r.shift())}catch{r.push(r.shift())}})(ln,810026);var $s={};$s[we(465)]=!1;var rr={};rr.createIndex=$s,rr.default={};var Vs={};function ln(){var t=["userId","queryParams","primaryKey","properties","1DxzTwl","6060FhtxUE","30pBpagl","9VVCqox","DBName","DBStoreName","5hVwTMu","1140096llouGa","DBVersion","stores","7072168MalhsQ","5157724OfTvCR","8714150lVOGng","54263OPTbpD","formParams","1566082zgwBVV","mapDB-indexeddb-form-schema","unique","1827unsERq"];return ln=function(){return t},ln()}Vs[we(468)]=rr;var or={};or[we(476)]=we(462),or[we(470)]=Vs;var Ct={};function un(t,e){var n=ln();return un=function(r,o){r=r-458;var s=n[r];return s},un(t,e)}Ct[we(469)]=we(467),Ct[we(475)]=we(464),Ct[we(479)]=1,Ct[we(480)]=[or];const Ed={formSchema:Ct},Cd=Et,{formSchema:Rd}=Ed,{getData:Td}=Cd,Pd={coms:{Tabs:[],TabsContent:[],TabsList:[],TabsTrigger:[]},getList:()=>{},parametersType:"url",DBPrimaryKey:null,tabPanes:[],activeValueKey:"tabsActiveValue"},zs=t=>{const e={...Pd,...t},{coms:n,children:r,tabPanes:o,defActiveValue:s,activeValueKey:a,getList:i,parametersType:l,DBPrimaryKey:c}=e,{Tabs:f,TabsContent:u,TabsList:d,TabsTrigger:m}=n;j.useEffect(()=>{s&&b(s)},[s]),j.useEffect(()=>{b(p())},[]);const v=async y=>{const x=await ze.makeParamsByType({[a]:y},e);await i({...x}),await ze.saveParamsByType(x,e),b(y)},p=()=>{let y="";o[0]?.value&&(y=o[0]?.value);const x=Jr.queryToData(Jr.getURLParameter({decode:!0}))[a];return l==="url"&&x&&(y=x),l==="indexDB"&&Td({tableName:"formParams",propertiesKey:window.location.pathname||"defQueryParams",primaryKey:c||"default",mapDB:Rd},C=>{C?.[a]&&b(C?.[a])}),s&&(y=s),`${y}`},[h,b]=j.useState("");return w.jsxs(f,{value:h,onValueChange:v,children:[w.jsx(d,{children:o.map((y,x)=>w.jsx(m,{value:y.value,children:y.label},y.value))}),o.map((y,x)=>w.jsx(u,{value:y.value,children:y.render()?y.render(y,x):[]},y.value)),r]})};var sr="rovingFocusGroup.onEntryFocus",_d={bubbles:!1,cancelable:!0},Rt="RovingFocusGroup",[ar,Ws,Od]=ro(Rt),[kd,Ks]=ht(Rt,[Od]),[Nd,Ad]=kd(Rt),Hs=g.forwardRef((t,e)=>w.jsx(ar.Provider,{scope:t.__scopeRovingFocusGroup,children:w.jsx(ar.Slot,{scope:t.__scopeRovingFocusGroup,children:w.jsx(Id,{...t,ref:e})})}));Hs.displayName=Rt;var Id=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:a,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:f=!1,...u}=t,d=g.useRef(null),m=oe(e,d),v=Pn(s),[p,h]=Gt({prop:a,defaultProp:i??null,onChange:l,caller:Rt}),[b,y]=g.useState(!1),x=Ie(c),C=Ws(n),T=g.useRef(!1),[_,E]=g.useState(0);return g.useEffect(()=>{const S=d.current;if(S)return S.addEventListener(sr,x),()=>S.removeEventListener(sr,x)},[x]),w.jsx(Nd,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:p,onItemFocus:g.useCallback(S=>h(S),[h]),onItemShiftTab:g.useCallback(()=>y(!0),[]),onFocusableItemAdd:g.useCallback(()=>E(S=>S+1),[]),onFocusableItemRemove:g.useCallback(()=>E(S=>S-1),[]),children:w.jsx(X.div,{tabIndex:b||_===0?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...t.style},onMouseDown:Y(t.onMouseDown,()=>{T.current=!0}),onFocus:Y(t.onFocus,S=>{const k=!T.current;if(S.target===S.currentTarget&&k&&!b){const N=new CustomEvent(sr,_d);if(S.currentTarget.dispatchEvent(N),!N.defaultPrevented){const M=C().filter(D=>D.focusable),V=M.find(D=>D.active),B=M.find(D=>D.id===p),H=[V,B,...M].filter(Boolean).map(D=>D.ref.current);qs(H,f)}}T.current=!1}),onBlur:Y(t.onBlur,()=>y(!1))})})}),Us="RovingFocusGroupItem",Gs=g.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:a,...i}=t,l=vt(),c=s||l,f=Ad(Us,n),u=f.currentTabStopId===c,d=Ws(n),{onFocusableItemAdd:m,onFocusableItemRemove:v,currentTabStopId:p}=f;return g.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),w.jsx(ar.ItemSlot,{scope:n,id:c,focusable:r,active:o,children:w.jsx(X.span,{tabIndex:u?0:-1,"data-orientation":f.orientation,...i,ref:e,onMouseDown:Y(t.onMouseDown,h=>{r?f.onItemFocus(c):h.preventDefault()}),onFocus:Y(t.onFocus,()=>f.onItemFocus(c)),onKeyDown:Y(t.onKeyDown,h=>{if(h.key==="Tab"&&h.shiftKey){f.onItemShiftTab();return}if(h.target!==h.currentTarget)return;const b=Ld(h,f.orientation,f.dir);if(b!==void 0){if(h.metaKey||h.ctrlKey||h.altKey||h.shiftKey)return;h.preventDefault();let x=d().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")x.reverse();else if(b==="prev"||b==="next"){b==="prev"&&x.reverse();const C=x.indexOf(h.currentTarget);x=f.loop?jd(x,C+1):x.slice(C+1)}setTimeout(()=>qs(x))}}),children:typeof a=="function"?a({isCurrentTabStop:u,hasTabStop:p!=null}):a})})});Gs.displayName=Us;var Dd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Md(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Ld(t,e,n){const r=Md(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Dd[r]}function qs(t,e=!1){const n=document.activeElement;for(const r of t)if(r===n||(r.focus({preventScroll:e}),document.activeElement!==n))return}function jd(t,e){return t.map((n,r)=>t[(e+r)%t.length])}var Bd=Hs,Fd=Gs;function $d(t,e){return g.useReducer((n,r)=>e[n][r]??n,t)}var Ys=t=>{const{present:e,children:n}=t,r=Vd(e),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),s=oe(r.ref,zd(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:s}):null};Ys.displayName="Presence";function Vd(t){const[e,n]=g.useState(),r=g.useRef(null),o=g.useRef(t),s=g.useRef("none"),a=t?"mounted":"unmounted",[i,l]=$d(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const c=dn(r.current);s.current=i==="mounted"?c:"none"},[i]),ie(()=>{const c=r.current,f=o.current;if(f!==t){const d=s.current,m=dn(c);t?l("MOUNT"):m==="none"||c?.display==="none"?l("UNMOUNT"):l(f&&d!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,l]),ie(()=>{if(e){let c;const f=e.ownerDocument.defaultView??window,u=m=>{const p=dn(r.current).includes(CSS.escape(m.animationName));if(m.target===e&&p&&(l("ANIMATION_END"),!o.current)){const h=e.style.animationFillMode;e.style.animationFillMode="forwards",c=f.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=h)})}},d=m=>{m.target===e&&(s.current=dn(r.current))};return e.addEventListener("animationstart",d),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{f.clearTimeout(c),e.removeEventListener("animationstart",d),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:g.useCallback(c=>{r.current=c?getComputedStyle(c):null,n(c)},[])}}function dn(t){return t?.animationName||"none"}function zd(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var fn="Tabs",[Wd]=ht(fn,[Ks]),Xs=Ks(),[Kd,ir]=Wd(fn),Qs=g.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:s,orientation:a="horizontal",dir:i,activationMode:l="automatic",...c}=t,f=Pn(i),[u,d]=Gt({prop:r,onChange:o,defaultProp:s??"",caller:fn});return w.jsx(Kd,{scope:n,baseId:vt(),value:u,onValueChange:d,orientation:a,dir:f,activationMode:l,children:w.jsx(X.div,{dir:f,"data-orientation":a,...c,ref:e})})});Qs.displayName=fn;var Zs="TabsList",Js=g.forwardRef((t,e)=>{const{__scopeTabs:n,loop:r=!0,...o}=t,s=ir(Zs,n),a=Xs(n);return w.jsx(Bd,{asChild:!0,...a,orientation:s.orientation,dir:s.dir,loop:r,children:w.jsx(X.div,{role:"tablist","aria-orientation":s.orientation,...o,ref:e})})});Js.displayName=Zs;var ea="TabsTrigger",ta=g.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...s}=t,a=ir(ea,n),i=Xs(n),l=oa(a.baseId,r),c=sa(a.baseId,r),f=r===a.value;return w.jsx(Fd,{asChild:!0,...i,focusable:!o,active:f,children:w.jsx(X.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":c,"data-state":f?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:l,...s,ref:e,onMouseDown:Y(t.onMouseDown,u=>{!o&&u.button===0&&u.ctrlKey===!1?a.onValueChange(r):u.preventDefault()}),onKeyDown:Y(t.onKeyDown,u=>{[" ","Enter"].includes(u.key)&&a.onValueChange(r)}),onFocus:Y(t.onFocus,()=>{const u=a.activationMode!=="manual";!f&&!o&&u&&a.onValueChange(r)})})})});ta.displayName=ea;var na="TabsContent",ra=g.forwardRef((t,e)=>{const{__scopeTabs:n,value:r,forceMount:o,children:s,...a}=t,i=ir(na,n),l=oa(i.baseId,r),c=sa(i.baseId,r),f=r===i.value,u=g.useRef(f);return g.useEffect(()=>{const d=requestAnimationFrame(()=>u.current=!1);return()=>cancelAnimationFrame(d)},[]),w.jsx(Ys,{present:o||f,children:({present:d})=>w.jsx(X.div,{"data-state":f?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!d,id:c,tabIndex:0,...a,ref:e,style:{...t.style,animationDuration:u.current?"0s":void 0},children:d&&s})})});ra.displayName=na;function oa(t,e){return`${t}-trigger-${e}`}function sa(t,e){return`${t}-content-${e}`}var Hd=Qs,Ud=Js,Gd=ta,qd=ra;function Yd(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("flex flex-col gap-2",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(Hd,{"data-slot":"tabs",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}function Xd(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(Ud,{"data-slot":"tabs-list",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}function Qd(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(Gd,{"data-slot":"tabs-trigger",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}function Zd(t){const e=J.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=re("flex-1 outline-none",n),e[3]=n,e[4]=o):o=e[4];let s;return e[5]!==r||e[6]!==o?(s=w.jsx(qd,{"data-slot":"tabs-content",className:o,...r}),e[5]=r,e[6]=o,e[7]=s):s=e[7],s}const Jd=t=>{const e=J.c(3);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={Tabs:Yd,TabsContent:Zd,TabsList:Xd,TabsTrigger:Qd},e[0]=n):n=e[0];let r;return e[1]!==t?(r=w.jsx(zs,{...t,coms:n}),e[1]=t,e[2]=r):r=e[2],r},ef=yd,tf=to,nf=xr,rf=zs,of=Jd;ge.RBaseTabs=of,ge.RBasicForm=tf,ge.RFormList=nf,ge.RGeneralBasicForm=ef,ge.RTabs=rf,Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"})}));