general-basic-form 2.1.6 → 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.
@@ -0,0 +1,152 @@
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
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
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
+ * @license React
11
+ * react-jsx-runtime.development.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
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
+ let props = %s;
19
+ <%s {...props} />
20
+ React keys must be passed directly to JSX without using spread:
21
+ let props = %s;
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
+ * @license React
24
+ * react-compiler-runtime.production.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
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
+ * @license React
32
+ * react-compiler-runtime.development.js
33
+ *
34
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
35
+ *
36
+ * This source code is licensed under the MIT license found in the
37
+ * LICENSE file in the root directory of this source tree.
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
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
40
+ 2. You might be breaking the Rules of Hooks
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.`),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
+ * @license lucide-react v0.547.0 - ISC
44
+ *
45
+ * This source code is licensed under the ISC license.
46
+ * See the LICENSE file in the root directory of this source tree.
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
+ * @license lucide-react v0.547.0 - ISC
49
+ *
50
+ * This source code is licensed under the ISC license.
51
+ * See the LICENSE file in the root directory of this source tree.
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
+ * @license lucide-react v0.547.0 - ISC
54
+ *
55
+ * This source code is licensed under the ISC license.
56
+ * See the LICENSE file in the root directory of this source tree.
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
+ * @license lucide-react v0.547.0 - ISC
59
+ *
60
+ * This source code is licensed under the ISC license.
61
+ * See the LICENSE file in the root directory of this source tree.
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
+ * @license lucide-react v0.547.0 - ISC
64
+ *
65
+ * This source code is licensed under the ISC license.
66
+ * See the LICENSE file in the root directory of this source tree.
67
+ */const xa=qe("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
68
+ * @license lucide-react v0.547.0 - ISC
69
+ *
70
+ * This source code is licensed under the ISC license.
71
+ * See the LICENSE file in the root directory of this source tree.
72
+ */const wr=qe("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
73
+ * @license lucide-react v0.547.0 - ISC
74
+ *
75
+ * This source code is licensed under the ISC license.
76
+ * See the LICENSE file in the root directory of this source tree.
77
+ */const Sa=qe("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
78
+ * @license lucide-react v0.547.0 - ISC
79
+ *
80
+ * This source code is licensed under the ISC license.
81
+ * See the LICENSE file in the root directory of this source tree.
82
+ */const Ea=qe("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
83
+ * @license lucide-react v0.547.0 - ISC
84
+ *
85
+ * This source code is licensed under the ISC license.
86
+ * See the LICENSE file in the root directory of this source tree.
87
+ */const Ca=qe("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
88
+ * @license lucide-react v0.547.0 - ISC
89
+ *
90
+ * This source code is licensed under the ISC license.
91
+ * See the LICENSE file in the root directory of this source tree.
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
+ * @license React
94
+ * react-dom.production.js
95
+ *
96
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
97
+ *
98
+ * This source code is licensed under the MIT license found in the
99
+ * LICENSE file in the root directory of this source tree.
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
+ * @license React
102
+ * react-dom.development.js
103
+ *
104
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
105
+ *
106
+ * This source code is licensed under the MIT license found in the
107
+ * LICENSE file in the root directory of this source tree.
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
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
110
+ 2. You might be breaking the Rules of Hooks
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.`),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
+ }
117
+ body[`).concat(ot,`] {
118
+ overflow: hidden `).concat(r,`;
119
+ overscroll-behavior: contain;
120
+ `).concat([e&&"position: relative ".concat(r,";"),n==="margin"&&`
121
+ padding-left: `.concat(o,`px;
122
+ padding-top: `).concat(s,`px;
123
+ padding-right: `).concat(a,`px;
124
+ margin-left:0;
125
+ margin-top:0;
126
+ margin-right: `).concat(i,"px ").concat(r,`;
127
+ `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(r,";")].filter(Boolean).join(""),`
128
+ }
129
+
130
+ .`).concat(Xt,` {
131
+ right: `).concat(i,"px ").concat(r,`;
132
+ }
133
+
134
+ .`).concat(Qt,` {
135
+ margin-right: `).concat(i,"px ").concat(r,`;
136
+ }
137
+
138
+ .`).concat(Xt," .").concat(Xt,` {
139
+ right: 0 `).concat(r,`;
140
+ }
141
+
142
+ .`).concat(Qt," .").concat(Qt,` {
143
+ margin-right: 0 `).concat(r,`;
144
+ }
145
+
146
+ body[`).concat(ot,`] {
147
+ `).concat(Yl,": ").concat(i,`px;
148
+ }
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"})}));