@service_laboratory/auth 2.0.20 → 2.0.21
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.
- package/dist/index.js +893 -877
- package/dist/index.umd.cjs +10 -10
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
(function(pe,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(pe=typeof globalThis<"u"?globalThis:pe||self,P(pe.autn={},pe.react))})(this,(function(pe,P){"use strict";function
|
|
1
|
+
(function(pe,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],P):(pe=typeof globalThis<"u"?globalThis:pe||self,P(pe.autn={},pe.react))})(this,(function(pe,P){"use strict";function Ki(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const f=Ki(P);var _t={exports:{}},nt={};var Sn;function Yi(){if(Sn)return nt;Sn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return nt.Fragment=t,nt.jsx=r,nt.jsxs=r,nt}var ot={};var Cn;function qi(){return Cn||(Cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===U?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case g:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case I:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case y:return"Portal";case E:return(h.displayName||"Context")+".Provider";case x:return(h._context.displayName||"Context")+".Consumer";case _:var S=h.render;return h=h.displayName,h||(h=S.displayName||S.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case j:return S=h.displayName||null,S!==null?S:e(h.type)||"Memo";case R:S=h._payload,h=h._init;try{return e(h(S))}catch{}}return null}function t(h){return""+h}function r(h){try{t(h);var S=!1}catch{S=!0}if(S){S=console;var M=S.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return M.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),t(h)}}function n(h){if(h===g)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===R)return"<...>";try{var S=e(h);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var h=B.A;return h===null?null:h.getOwner()}function a(){return Error("react-stack-top-frame")}function i(h){if(q.call(h,"key")){var S=Object.getOwnPropertyDescriptor(h,"key").get;if(S&&S.isReactWarning)return!1}return h.key!==void 0}function s(h,S){function M(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}M.isReactWarning=!0,Object.defineProperty(h,"key",{get:M,configurable:!0})}function u(){var h=e(this.type);return G[h]||(G[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function l(h,S,M,L,K,X,oe,V){return M=X.ref,h={$$typeof:m,type:h,key:S,props:X,_owner:K},(M!==void 0?M:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:u}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function p(h,S,M,L,K,X,oe,V){var z=S.children;if(z!==void 0)if(L)if(Z(z)){for(L=0;L<z.length;L++)c(z[L]);Object.freeze&&Object.freeze(z)}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 c(z);if(q.call(S,"key")){z=e(h);var ee=Object.keys(S).filter(function(Ce){return Ce!=="key"});L=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",N[z+L]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
2
|
let props = %s;
|
|
3
3
|
<%s {...props} />
|
|
4
4
|
React keys must be passed directly to JSX without using spread:
|
|
5
5
|
let props = %s;
|
|
6
|
-
<%s key={someKey} {...props} />`,L,z,ee,z),N[z+L]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(S)&&(r(S.key),z=""+S.key),"key"in S){M={};for(var ie in S)ie!=="key"&&(M[ie]=S[ie])}else M=S;return z&&s(M,typeof h=="function"?h.displayName||h.name||"Unknown":h),l(h,z,X,K,o(),M,oe,V)}function c(h){typeof h=="object"&&h!==null&&h.$$typeof===m&&h._store&&(h._store.validated=1)}var d=P,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),B=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(h){return h()}};var Y,G={},H=d.react_stack_bottom_frame.bind(d,a)(),k=W(n(a)),N={};ot.Fragment=g,ot.jsx=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!1,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)},ot.jsxs=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!0,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)}})()),ot}var On;function
|
|
6
|
+
<%s key={someKey} {...props} />`,L,z,ee,z),N[z+L]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(S)&&(r(S.key),z=""+S.key),"key"in S){M={};for(var ie in S)ie!=="key"&&(M[ie]=S[ie])}else M=S;return z&&s(M,typeof h=="function"?h.displayName||h.name||"Unknown":h),l(h,z,X,K,o(),M,oe,V)}function c(h){typeof h=="object"&&h!==null&&h.$$typeof===m&&h._store&&(h._store.validated=1)}var d=P,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),B=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(h){return h()}};var Y,G={},H=d.react_stack_bottom_frame.bind(d,a)(),k=W(n(a)),N={};ot.Fragment=g,ot.jsx=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!1,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)},ot.jsxs=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!0,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)}})()),ot}var On;function Xi(){return On||(On=1,process.env.NODE_ENV==="production"?_t.exports=Yi():_t.exports=qi()),_t.exports}var O=Xi();function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cr={exports:{}},at={},jn;function Ji(){if(jn)return at;jn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,o,a){var i=null;if(a!==void 0&&(i=""+a),o.key!==void 0&&(i=""+o.key),"key"in o){a={};for(var s in o)s!=="key"&&(a[s]=o[s])}else a=o;return o=a.ref,{$$typeof:e,type:n,key:i,ref:o!==void 0?o:null,props:a}}return at.Fragment=t,at.jsx=r,at.jsxs=r,at}var Et={},Tn;function Qi(){return Tn||(Tn=1,process.env.NODE_ENV!=="production"&&(function(){function e(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===U?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case g:return"Fragment";case w:return"Profiler";case v:return"StrictMode";case C:return"Suspense";case T:return"SuspenseList";case I:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case y:return"Portal";case E:return(h.displayName||"Context")+".Provider";case x:return(h._context.displayName||"Context")+".Consumer";case _:var S=h.render;return h=h.displayName,h||(h=S.displayName||S.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case j:return S=h.displayName||null,S!==null?S:e(h.type)||"Memo";case R:S=h._payload,h=h._init;try{return e(h(S))}catch{}}return null}function t(h){return""+h}function r(h){try{t(h);var S=!1}catch{S=!0}if(S){S=console;var M=S.error,L=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return M.call(S,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",L),t(h)}}function n(h){if(h===g)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===R)return"<...>";try{var S=e(h);return S?"<"+S+">":"<...>"}catch{return"<...>"}}function o(){var h=B.A;return h===null?null:h.getOwner()}function a(){return Error("react-stack-top-frame")}function i(h){if(q.call(h,"key")){var S=Object.getOwnPropertyDescriptor(h,"key").get;if(S&&S.isReactWarning)return!1}return h.key!==void 0}function s(h,S){function M(){Y||(Y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",S))}M.isReactWarning=!0,Object.defineProperty(h,"key",{get:M,configurable:!0})}function u(){var h=e(this.type);return G[h]||(G[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function l(h,S,M,L,K,X,oe,V){return M=X.ref,h={$$typeof:m,type:h,key:S,props:X,_owner:K},(M!==void 0?M:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:u}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:oe}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:V}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function p(h,S,M,L,K,X,oe,V){var z=S.children;if(z!==void 0)if(L)if(Z(z)){for(L=0;L<z.length;L++)c(z[L]);Object.freeze&&Object.freeze(z)}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 c(z);if(q.call(S,"key")){z=e(h);var ee=Object.keys(S).filter(function(Ce){return Ce!=="key"});L=0<ee.length?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}",N[z+L]||(ee=0<ee.length?"{"+ee.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
7
7
|
let props = %s;
|
|
8
8
|
<%s {...props} />
|
|
9
9
|
React keys must be passed directly to JSX without using spread:
|
|
10
10
|
let props = %s;
|
|
11
|
-
<%s key={someKey} {...props} />`,L,z,ee,z),N[z+L]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(S)&&(r(S.key),z=""+S.key),"key"in S){M={};for(var ie in S)ie!=="key"&&(M[ie]=S[ie])}else M=S;return z&&s(M,typeof h=="function"?h.displayName||h.name||"Unknown":h),l(h,z,X,K,o(),M,oe,V)}function c(h){typeof h=="object"&&h!==null&&h.$$typeof===m&&h._store&&(h._store.validated=1)}var d=P,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),B=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(h){return h()}};var Y,G={},H=d.react_stack_bottom_frame.bind(d,a)(),k=W(n(a)),N={};Et.Fragment=g,Et.jsx=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!1,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)},Et.jsxs=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!0,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)}})()),Et}var Nn;function Ji(){return Nn||(Nn=1,process.env.NODE_ENV==="production"?cr.exports=Xi():cr.exports=Zi()),cr.exports}var b=Ji();function Dn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Dn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function An(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Dn(e))&&(n&&(n+=" "),n+=t);return n}const Pn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mn=An,Qi=(e,t)=>r=>{var n;if(t?.variants==null)return Mn(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const p=r?.[l],c=a?.[l];if(p===null)return null;const d=Pn(p)||Pn(c);return o[l][d]}),s=r&&Object.entries(r).reduce((l,p)=>{let[c,d]=p;return d===void 0||(l[c]=d),l},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,p)=>{let{class:c,className:d,...m}=p;return Object.entries(m).every(y=>{let[g,v]=y;return Array.isArray(v)?v.includes({...a,...s}[g]):{...a,...s}[g]===v})?[...l,c,d]:l},[]);return Mn(e,i,u,r?.class,r?.className)},ur="-",es=e=>{const t=rs(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(ur);return a[0]===""&&a.length!==1&&a.shift(),Ln(a,t)||ts(o)},getConflictingClassGroupIds:(o,a)=>{const i=r[o]||[];return a&&n[o]?[...i,...n[o]]:i}}},Ln=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Ln(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ur);return t.validators.find(({validator:i})=>i(a))?.classGroupId},In=/^\[(.+)\]$/,ts=e=>{if(In.test(e)){const t=In.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},rs=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)dr(r[o],n,o,t);return n},dr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Fn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(ns(o)){dr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{dr(i,Fn(t,a),r,n)})})},Fn=(e,t)=>{let r=e;return t.split(ur).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},ns=e=>e.isThemeGetter,os=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},fr="!",pr=":",as=pr.length,is=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,u=0,l;for(let y=0;y<o.length;y++){let g=o[y];if(i===0&&s===0){if(g===pr){a.push(o.slice(u,y)),u=y+as;continue}if(g==="/"){l=y;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const p=a.length===0?o:o.substring(u),c=ss(p),d=c!==p,m=l&&l>u?l-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:m}};if(t){const o=t+pr,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},ss=e=>e.endsWith(fr)?e.substring(0,e.length-1):e.startsWith(fr)?e.substring(1):e,ls=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(n.push(...o.sort(),a),o=[]):o.push(a)}),n.push(...o.sort()),n}},cs=e=>({cache:os(e.cacheSize),parseClassName:is(e),sortModifiers:ls(e),...es(e)}),us=/\s+/,ds=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(us);let u="";for(let l=s.length-1;l>=0;l-=1){const p=s[l],{isExternal:c,modifiers:d,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}=r(p);if(c){u=p+(u.length>0?" "+u:u);continue}let v=!!g,w=n(v?y.substring(0,g):y);if(!w){if(!v){u=p+(u.length>0?" "+u:u);continue}if(w=n(y),!w){u=p+(u.length>0?" "+u:u);continue}v=!1}const x=a(d).join(":"),E=m?x+fr:x,_=E+w;if(i.includes(_))continue;i.push(_);const C=o(w,v);for(let T=0;T<C.length;++T){const j=C[T];i.push(E+j)}u=p+(u.length>0?" "+u:u)}return u};function fs(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Vn(t))&&(n&&(n+=" "),n+=r);return n}const Vn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Vn(e[n]))&&(r&&(r+=" "),r+=t);return r};function ps(e,...t){let r,n,o,a=i;function i(u){const l=t.reduce((p,c)=>c(p),e());return r=cs(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const p=ds(u,r);return o(u,p),p}return function(){return a(fs.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},zn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ms=/^\d+\/\d+$/,gs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,hs=/\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$/,ys=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,vs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=e=>ms.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>!!e&&Number.isInteger(Number(e)),mr=e=>e.endsWith("%")&&$(e.slice(0,-1)),_e=e=>gs.test(e),ws=()=>!0,xs=e=>hs.test(e)&&!ys.test(e),Wn=()=>!1,_s=e=>vs.test(e),Es=e=>bs.test(e),ks=e=>!D(e)&&!A(e),Rs=e=>$e(e,Kn,Wn),D=e=>zn.test(e),Ae=e=>$e(e,Yn,xs),gr=e=>$e(e,Ts,$),Un=e=>$e(e,Gn,Wn),Ss=e=>$e(e,Hn,Es),kt=e=>$e(e,qn,_s),A=e=>$n.test(e),it=e=>We(e,Yn),Cs=e=>We(e,Ns),Bn=e=>We(e,Gn),Os=e=>We(e,Kn),js=e=>We(e,Hn),Rt=e=>We(e,qn,!0),$e=(e,t,r)=>{const n=zn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},We=(e,t,r=!1)=>{const n=$n.exec(e);return n?n[1]?t(n[1]):r:!1},Gn=e=>e==="position"||e==="percentage",Hn=e=>e==="image"||e==="url",Kn=e=>e==="length"||e==="size"||e==="bg-size",Yn=e=>e==="length",Ts=e=>e==="number",Ns=e=>e==="family-name",qn=e=>e==="shadow",Ds=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),a=te("leading"),i=te("breakpoint"),s=te("container"),u=te("spacing"),l=te("radius"),p=te("shadow"),c=te("inset-shadow"),d=te("text-shadow"),m=te("drop-shadow"),y=te("blur"),g=te("perspective"),v=te("aspect"),w=te("ease"),x=te("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[..._(),A,D],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],R=()=>[A,D,u],I=()=>[ze,"full","auto",...R()],U=()=>[Oe,"none","subgrid",A,D],B=()=>["auto",{span:["full",Oe,A,D]},Oe,A,D],q=()=>[Oe,"auto",A,D],Z=()=>["auto","min","max","fr",A,D],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...R()],H=()=>[ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],k=()=>[e,A,D],N=()=>[..._(),Bn,Un,{position:[A,D]}],h=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Os,Rs,{size:[A,D]}],M=()=>[mr,it,Ae],L=()=>["","none","full",l,A,D],K=()=>["",$,it,Ae],X=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[$,mr,Bn,Un],z=()=>["","none",y,A,D],ee=()=>["none",$,A,D],ie=()=>["none",$,A,D],Ce=()=>[$,A,D],rt=()=>[ze,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[ws],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[ks],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",$],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ze,D,A,v]}],container:["container"],columns:[{columns:[$,D,A,s]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",A,D]}],basis:[{basis:[ze,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,ze,"auto","initial","none",D]}],grow:[{grow:["",$,A,D]}],shrink:[{shrink:["",$,A,D]}],order:[{order:[Oe,"first","last","none",A,D]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[s,"screen",...H()]}],"min-w":[{"min-w":[s,"screen","none",...H()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,it,Ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,A,gr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mr,D]}],"font-family":[{font:[Cs,D,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,A,D]}],"line-clamp":[{"line-clamp":[$,"none",A,gr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",A,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",A,Ae]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[$,"auto",A,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,D]}],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",A,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:h()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,A,D],radial:["",A,D],conic:[Oe,A,D]},js,Ss]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,A,D]}],"outline-w":[{outline:["",$,it,Ae]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",p,Rt,kt]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",c,Rt,kt]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[$,Ae]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",d,Rt,kt]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[$,A,D]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[A,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:h()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,D]}],filter:[{filter:["","none",A,D]}],blur:[{blur:z()}],brightness:[{brightness:[$,A,D]}],contrast:[{contrast:[$,A,D]}],"drop-shadow":[{"drop-shadow":["","none",m,Rt,kt]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",$,A,D]}],"hue-rotate":[{"hue-rotate":[$,A,D]}],invert:[{invert:["",$,A,D]}],saturate:[{saturate:[$,A,D]}],sepia:[{sepia:["",$,A,D]}],"backdrop-filter":[{"backdrop-filter":["","none",A,D]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[$,A,D]}],"backdrop-contrast":[{"backdrop-contrast":[$,A,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,A,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,A,D]}],"backdrop-invert":[{"backdrop-invert":["",$,A,D]}],"backdrop-opacity":[{"backdrop-opacity":[$,A,D]}],"backdrop-saturate":[{"backdrop-saturate":[$,A,D]}],"backdrop-sepia":[{"backdrop-sepia":["",$,A,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",A,D]}],ease:[{ease:["linear","initial",w,A,D]}],delay:[{delay:[$,A,D]}],animate:[{animate:["none",x,A,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,A,D]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[A,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rt()}],"translate-x":[{"translate-x":rt()}],"translate-y":[{"translate-y":rt()}],"translate-z":[{"translate-z":rt()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",A,D]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",A,D]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[$,it,Ae,gr]}],stroke:[{stroke:["none",...k()]}],"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"]}},As=ps(Ds);function ue(...e){return As(An(e))}function Ps(e,t){const r=f.createContext(t),n=a=>{const{children:i,...s}=a,u=f.useMemo(()=>s,Object.values(s));return b.jsx(r.Provider,{value:u,children:i})};n.displayName=e+"Provider";function o(a){const i=f.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ee(e,t=[]){let r=[];function n(a,i){const s=f.createContext(i),u=r.length;r=[...r,i];const l=c=>{const{scope:d,children:m,...y}=c,g=d?.[e]?.[u]||s,v=f.useMemo(()=>y,Object.values(y));return b.jsx(g.Provider,{value:v,children:m})};l.displayName=a+"Provider";function p(c,d){const m=d?.[e]?.[u]||s,y=f.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,p]}const o=()=>{const a=r.map(i=>f.createContext(i));return function(i){const s=i?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,Ms(o,...t)]}function Ms(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((i,{useScope:s,scopeName:u})=>{const l=s(o)[`__scope${u}`];return{...i,...l}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function ke(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}var de=globalThis?.document?f.useLayoutEffect:()=>{},St={exports:{}},re={},Xn;function Ls(){if(Xn)return re;Xn=1;var e=P;function t(u){var l="https://react.dev/errors/"+u;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+u+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(u,l,p){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:c==null?null:""+c,children:u,containerInfo:l,implementation:p}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(u,l){if(u==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,re.createPortal=function(u,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return a(u,l,null,p)},re.flushSync=function(u){var l=i.T,p=n.p;try{if(i.T=null,n.p=2,u)return u()}finally{i.T=l,n.p=p,n.d.f()}},re.preconnect=function(u,l){typeof u=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,n.d.C(u,l))},re.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},re.preinit=function(u,l){if(typeof u=="string"&&l&&typeof l.as=="string"){var p=l.as,c=s(p,l.crossOrigin),d=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;p==="style"?n.d.S(u,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:d,fetchPriority:m}):p==="script"&&n.d.X(u,{crossOrigin:c,integrity:d,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},re.preinitModule=function(u,l){if(typeof u=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var p=s(l.as,l.crossOrigin);n.d.M(u,{crossOrigin:p,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&n.d.M(u)},re.preload=function(u,l){if(typeof u=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var p=l.as,c=s(p,l.crossOrigin);n.d.L(u,p,{crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},re.preloadModule=function(u,l){if(typeof u=="string")if(l){var p=s(l.as,l.crossOrigin);n.d.m(u,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:p,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else n.d.m(u)},re.requestFormReset=function(u){n.d.r(u)},re.unstable_batchedUpdates=function(u,l){return u(l)},re.useFormState=function(u,l,p){return i.H.useFormState(u,l,p)},re.useFormStatus=function(){return i.H.useHostTransitionStatus()},re.version="19.1.1",re}var ne={},Zn;function Is(){return Zn||(Zn=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(y);var g=!1}catch{g=!0}return g&&(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&&y[Symbol.toStringTag]||y.constructor.name||"Object"),t(y)),{$$typeof:l,key:y==null?null:""+y,children:c,containerInfo:d,implementation:m}}function n(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}function o(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function a(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function i(){var c=p.H;return c===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:
|
|
11
|
+
<%s key={someKey} {...props} />`,L,z,ee,z),N[z+L]=!0)}if(z=null,M!==void 0&&(r(M),z=""+M),i(S)&&(r(S.key),z=""+S.key),"key"in S){M={};for(var ie in S)ie!=="key"&&(M[ie]=S[ie])}else M=S;return z&&s(M,typeof h=="function"?h.displayName||h.name||"Unknown":h),l(h,z,X,K,o(),M,oe,V)}function c(h){typeof h=="object"&&h!==null&&h.$$typeof===m&&h._store&&(h._store.validated=1)}var d=P,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),E=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),B=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=Object.prototype.hasOwnProperty,Z=Array.isArray,W=console.createTask?console.createTask:function(){return null};d={react_stack_bottom_frame:function(h){return h()}};var Y,G={},H=d.react_stack_bottom_frame.bind(d,a)(),k=W(n(a)),N={};Et.Fragment=g,Et.jsx=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!1,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)},Et.jsxs=function(h,S,M,L,K){var X=1e4>B.recentlyCreatedOwnerStacks++;return p(h,S,M,!0,L,K,X?Error("react-stack-top-frame"):H,X?W(n(h)):k)}})()),Et}var Nn;function es(){return Nn||(Nn=1,process.env.NODE_ENV==="production"?cr.exports=Ji():cr.exports=Qi()),cr.exports}var b=es();function Dn(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Dn(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function An(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Dn(e))&&(n&&(n+=" "),n+=t);return n}const Pn=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Mn=An,ts=(e,t)=>r=>{var n;if(t?.variants==null)return Mn(e,r?.class,r?.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(l=>{const p=r?.[l],c=a?.[l];if(p===null)return null;const d=Pn(p)||Pn(c);return o[l][d]}),s=r&&Object.entries(r).reduce((l,p)=>{let[c,d]=p;return d===void 0||(l[c]=d),l},{}),u=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((l,p)=>{let{class:c,className:d,...m}=p;return Object.entries(m).every(y=>{let[g,v]=y;return Array.isArray(v)?v.includes({...a,...s}[g]):{...a,...s}[g]===v})?[...l,c,d]:l},[]);return Mn(e,i,u,r?.class,r?.className)},ur="-",rs=e=>{const t=os(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const a=o.split(ur);return a[0]===""&&a.length!==1&&a.shift(),Ln(a,t)||ns(o)},getConflictingClassGroupIds:(o,a)=>{const i=r[o]||[];return a&&n[o]?[...i,...n[o]]:i}}},Ln=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?Ln(e.slice(1),n):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(ur);return t.validators.find(({validator:i})=>i(a))?.classGroupId},In=/^\[(.+)\]$/,ns=e=>{if(In.test(e)){const t=In.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},os=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const o in r)dr(r[o],n,o,t);return n},dr=(e,t,r,n)=>{e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Fn(t,o);a.classGroupId=r;return}if(typeof o=="function"){if(as(o)){dr(o(n),t,r,n);return}t.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{dr(i,Fn(t,a),r,n)})})},Fn=(e,t)=>{let r=e;return t.split(ur).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},as=e=>e.isThemeGetter,is=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},fr="!",pr=":",ss=pr.length,ls=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let i=0,s=0,u=0,l;for(let y=0;y<o.length;y++){let g=o[y];if(i===0&&s===0){if(g===pr){a.push(o.slice(u,y)),u=y+ss;continue}if(g==="/"){l=y;continue}}g==="["?i++:g==="]"?i--:g==="("?s++:g===")"&&s--}const p=a.length===0?o:o.substring(u),c=cs(p),d=c!==p,m=l&&l>u?l-u:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:c,maybePostfixModifierPosition:m}};if(t){const o=t+pr,a=n;n=i=>i.startsWith(o)?a(i.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:i,maybePostfixModifierPosition:void 0}}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},cs=e=>e.endsWith(fr)?e.substring(0,e.length-1):e.startsWith(fr)?e.substring(1):e,us=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const n=[];let o=[];return r.forEach(a=>{a[0]==="["||t[a]?(n.push(...o.sort(),a),o=[]):o.push(a)}),n.push(...o.sort()),n}},ds=e=>({cache:is(e.cacheSize),parseClassName:ls(e),sortModifiers:us(e),...rs(e)}),fs=/\s+/,ps=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,i=[],s=e.trim().split(fs);let u="";for(let l=s.length-1;l>=0;l-=1){const p=s[l],{isExternal:c,modifiers:d,hasImportantModifier:m,baseClassName:y,maybePostfixModifierPosition:g}=r(p);if(c){u=p+(u.length>0?" "+u:u);continue}let v=!!g,w=n(v?y.substring(0,g):y);if(!w){if(!v){u=p+(u.length>0?" "+u:u);continue}if(w=n(y),!w){u=p+(u.length>0?" "+u:u);continue}v=!1}const x=a(d).join(":"),E=m?x+fr:x,_=E+w;if(i.includes(_))continue;i.push(_);const C=o(w,v);for(let T=0;T<C.length;++T){const j=C[T];i.push(E+j)}u=p+(u.length>0?" "+u:u)}return u};function ms(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=Vn(t))&&(n&&(n+=" "),n+=r);return n}const Vn=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Vn(e[n]))&&(r&&(r+=" "),r+=t);return r};function gs(e,...t){let r,n,o,a=i;function i(u){const l=t.reduce((p,c)=>c(p),e());return r=ds(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const p=ps(u,r);return o(u,p),p}return function(){return a(ms.apply(null,arguments))}}const te=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},zn=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$n=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hs=/^\d+\/\d+$/,ys=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vs=/\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$/,bs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ws=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ze=e=>hs.test(e),$=e=>!!e&&!Number.isNaN(Number(e)),Oe=e=>!!e&&Number.isInteger(Number(e)),mr=e=>e.endsWith("%")&&$(e.slice(0,-1)),_e=e=>ys.test(e),_s=()=>!0,Es=e=>vs.test(e)&&!bs.test(e),Wn=()=>!1,ks=e=>ws.test(e),Rs=e=>xs.test(e),Ss=e=>!D(e)&&!A(e),Cs=e=>$e(e,Kn,Wn),D=e=>zn.test(e),Ae=e=>$e(e,Yn,Es),gr=e=>$e(e,Ds,$),Un=e=>$e(e,Gn,Wn),Os=e=>$e(e,Hn,Rs),kt=e=>$e(e,qn,ks),A=e=>$n.test(e),it=e=>We(e,Yn),js=e=>We(e,As),Bn=e=>We(e,Gn),Ts=e=>We(e,Kn),Ns=e=>We(e,Hn),Rt=e=>We(e,qn,!0),$e=(e,t,r)=>{const n=zn.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},We=(e,t,r=!1)=>{const n=$n.exec(e);return n?n[1]?t(n[1]):r:!1},Gn=e=>e==="position"||e==="percentage",Hn=e=>e==="image"||e==="url",Kn=e=>e==="length"||e==="size"||e==="bg-size",Yn=e=>e==="length",Ds=e=>e==="number",As=e=>e==="family-name",qn=e=>e==="shadow",Ps=()=>{const e=te("color"),t=te("font"),r=te("text"),n=te("font-weight"),o=te("tracking"),a=te("leading"),i=te("breakpoint"),s=te("container"),u=te("spacing"),l=te("radius"),p=te("shadow"),c=te("inset-shadow"),d=te("text-shadow"),m=te("drop-shadow"),y=te("blur"),g=te("perspective"),v=te("aspect"),w=te("ease"),x=te("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[..._(),A,D],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],R=()=>[A,D,u],I=()=>[ze,"full","auto",...R()],U=()=>[Oe,"none","subgrid",A,D],B=()=>["auto",{span:["full",Oe,A,D]},Oe,A,D],q=()=>[Oe,"auto",A,D],Z=()=>["auto","min","max","fr",A,D],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...R()],H=()=>[ze,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],k=()=>[e,A,D],N=()=>[..._(),Bn,Un,{position:[A,D]}],h=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Ts,Cs,{size:[A,D]}],M=()=>[mr,it,Ae],L=()=>["","none","full",l,A,D],K=()=>["",$,it,Ae],X=()=>["solid","dashed","dotted","double"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],V=()=>[$,mr,Bn,Un],z=()=>["","none",y,A,D],ee=()=>["none",$,A,D],ie=()=>["none",$,A,D],Ce=()=>[$,A,D],rt=()=>[ze,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[_e],breakpoint:[_e],color:[_s],container:[_e],"drop-shadow":[_e],ease:["in","out","in-out"],font:[Ss],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[_e],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[_e],shadow:[_e],spacing:["px",$],text:[_e],"text-shadow":[_e],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ze,D,A,v]}],container:["container"],columns:[{columns:[$,D,A,s]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{start:I()}],end:[{end:I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[Oe,"auto",A,D]}],basis:[{basis:[ze,"full","auto",s,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[$,ze,"auto","initial","none",D]}],grow:[{grow:["",$,A,D]}],shrink:[{shrink:["",$,A,D]}],order:[{order:[Oe,"first","last","none",A,D]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:H()}],w:[{w:[s,"screen",...H()]}],"min-w":[{"min-w":[s,"screen","none",...H()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[i]},...H()]}],h:[{h:["screen","lh",...H()]}],"min-h":[{"min-h":["screen","lh","none",...H()]}],"max-h":[{"max-h":["screen","lh",...H()]}],"font-size":[{text:["base",r,it,Ae]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,A,gr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mr,D]}],"font-family":[{font:[js,D,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,A,D]}],"line-clamp":[{"line-clamp":[$,"none",A,gr]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",A,D]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",A,D]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:[$,"from-font","auto",A,Ae]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[$,"auto",A,D]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",A,D]}],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",A,D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:N()}],"bg-repeat":[{bg:h()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Oe,A,D],radial:["",A,D],conic:[Oe,A,D]},Ns,Os]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:K()}],"border-w-x":[{"border-x":K()}],"border-w-y":[{"border-y":K()}],"border-w-s":[{"border-s":K()}],"border-w-e":[{"border-e":K()}],"border-w-t":[{"border-t":K()}],"border-w-r":[{"border-r":K()}],"border-w-b":[{"border-b":K()}],"border-w-l":[{"border-l":K()}],"divide-x":[{"divide-x":K()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":K()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...X(),"hidden","none"]}],"divide-style":[{divide:[...X(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...X(),"none","hidden"]}],"outline-offset":[{"outline-offset":[$,A,D]}],"outline-w":[{outline:["",$,it,Ae]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",p,Rt,kt]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",c,Rt,kt]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[$,Ae]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":K()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",d,Rt,kt]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[$,A,D]}],"mix-blend":[{"mix-blend":[...oe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":oe()}],"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":[$]}],"mask-image-linear-from-pos":[{"mask-linear-from":V()}],"mask-image-linear-to-pos":[{"mask-linear-to":V()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":V()}],"mask-image-t-to-pos":[{"mask-t-to":V()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":V()}],"mask-image-r-to-pos":[{"mask-r-to":V()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":V()}],"mask-image-b-to-pos":[{"mask-b-to":V()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":V()}],"mask-image-l-to-pos":[{"mask-l-to":V()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":V()}],"mask-image-x-to-pos":[{"mask-x-to":V()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":V()}],"mask-image-y-to-pos":[{"mask-y-to":V()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[A,D]}],"mask-image-radial-from-pos":[{"mask-radial-from":V()}],"mask-image-radial-to-pos":[{"mask-radial-to":V()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":_()}],"mask-image-conic-pos":[{"mask-conic":[$]}],"mask-image-conic-from-pos":[{"mask-conic-from":V()}],"mask-image-conic-to-pos":[{"mask-conic-to":V()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:h()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",A,D]}],filter:[{filter:["","none",A,D]}],blur:[{blur:z()}],brightness:[{brightness:[$,A,D]}],contrast:[{contrast:[$,A,D]}],"drop-shadow":[{"drop-shadow":["","none",m,Rt,kt]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",$,A,D]}],"hue-rotate":[{"hue-rotate":[$,A,D]}],invert:[{invert:["",$,A,D]}],saturate:[{saturate:[$,A,D]}],sepia:[{sepia:["",$,A,D]}],"backdrop-filter":[{"backdrop-filter":["","none",A,D]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[$,A,D]}],"backdrop-contrast":[{"backdrop-contrast":[$,A,D]}],"backdrop-grayscale":[{"backdrop-grayscale":["",$,A,D]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[$,A,D]}],"backdrop-invert":[{"backdrop-invert":["",$,A,D]}],"backdrop-opacity":[{"backdrop-opacity":[$,A,D]}],"backdrop-saturate":[{"backdrop-saturate":[$,A,D]}],"backdrop-sepia":[{"backdrop-sepia":["",$,A,D]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",A,D]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[$,"initial",A,D]}],ease:[{ease:["linear","initial",w,A,D]}],delay:[{delay:[$,A,D]}],animate:[{animate:["none",x,A,D]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,A,D]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:ee()}],"rotate-x":[{"rotate-x":ee()}],"rotate-y":[{"rotate-y":ee()}],"rotate-z":[{"rotate-z":ee()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:Ce()}],"skew-x":[{"skew-x":Ce()}],"skew-y":[{"skew-y":Ce()}],transform:[{transform:[A,D,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rt()}],"translate-x":[{"translate-x":rt()}],"translate-y":[{"translate-y":rt()}],"translate-z":[{"translate-z":rt()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}],"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",A,D]}],"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":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",A,D]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[$,it,Ae,gr]}],stroke:[{stroke:["none",...k()]}],"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"]}},Ms=gs(Ps);function se(...e){return Ms(An(e))}function Ls(e,t){const r=f.createContext(t),n=a=>{const{children:i,...s}=a,u=f.useMemo(()=>s,Object.values(s));return b.jsx(r.Provider,{value:u,children:i})};n.displayName=e+"Provider";function o(a){const i=f.useContext(r);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,o]}function Ee(e,t=[]){let r=[];function n(a,i){const s=f.createContext(i),u=r.length;r=[...r,i];const l=c=>{const{scope:d,children:m,...y}=c,g=d?.[e]?.[u]||s,v=f.useMemo(()=>y,Object.values(y));return b.jsx(g.Provider,{value:v,children:m})};l.displayName=a+"Provider";function p(c,d){const m=d?.[e]?.[u]||s,y=f.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,p]}const o=()=>{const a=r.map(i=>f.createContext(i));return function(i){const s=i?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,Is(o,...t)]}function Is(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((i,{useScope:s,scopeName:u})=>{const l=s(o)[`__scope${u}`];return{...i,...l}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function ke(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...r)=>t.current?.(...r),[])}var de=globalThis?.document?f.useLayoutEffect:()=>{},St={exports:{}},re={},Xn;function Fs(){if(Xn)return re;Xn=1;var e=P;function t(u){var l="https://react.dev/errors/"+u;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+u+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function a(u,l,p){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:c==null?null:""+c,children:u,containerInfo:l,implementation:p}}var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(u,l){if(u==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return re.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,re.createPortal=function(u,l){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(t(299));return a(u,l,null,p)},re.flushSync=function(u){var l=i.T,p=n.p;try{if(i.T=null,n.p=2,u)return u()}finally{i.T=l,n.p=p,n.d.f()}},re.preconnect=function(u,l){typeof u=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,n.d.C(u,l))},re.prefetchDNS=function(u){typeof u=="string"&&n.d.D(u)},re.preinit=function(u,l){if(typeof u=="string"&&l&&typeof l.as=="string"){var p=l.as,c=s(p,l.crossOrigin),d=typeof l.integrity=="string"?l.integrity:void 0,m=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;p==="style"?n.d.S(u,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:d,fetchPriority:m}):p==="script"&&n.d.X(u,{crossOrigin:c,integrity:d,fetchPriority:m,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},re.preinitModule=function(u,l){if(typeof u=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var p=s(l.as,l.crossOrigin);n.d.M(u,{crossOrigin:p,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&n.d.M(u)},re.preload=function(u,l){if(typeof u=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var p=l.as,c=s(p,l.crossOrigin);n.d.L(u,p,{crossOrigin:c,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0})}},re.preloadModule=function(u,l){if(typeof u=="string")if(l){var p=s(l.as,l.crossOrigin);n.d.m(u,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:p,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else n.d.m(u)},re.requestFormReset=function(u){n.d.r(u)},re.unstable_batchedUpdates=function(u,l){return u(l)},re.useFormState=function(u,l,p){return i.H.useFormState(u,l,p)},re.useFormStatus=function(){return i.H.useHostTransitionStatus()},re.version="19.1.1",re}var ne={},Zn;function Vs(){return Zn||(Zn=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function t(c){return""+c}function r(c,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(y);var g=!1}catch{g=!0}return g&&(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&&y[Symbol.toStringTag]||y.constructor.name||"Object"),t(y)),{$$typeof:l,key:y==null?null:""+y,children:c,containerInfo:d,implementation:m}}function n(c,d){if(c==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}function o(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function a(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":typeof c=="string"?JSON.stringify(c):typeof c=="number"?"`"+c+"`":'something with type "'+typeof c+'"'}function i(){var c=p.H;return c===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:
|
|
12
12
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
13
13
|
2. You might be breaking the Rules of Hooks
|
|
14
14
|
3. You might have more than one copy of React in the same app
|
|
15
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=P,u={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=Symbol.for("react.portal"),p=s.__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"),ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ne.createPortal=function(c,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 r(c,d,null,m)},ne.flushSync=function(c){var d=p.T,m=u.p;try{if(p.T=null,u.p=2,c)return c()}finally{p.T=d,u.p=m,u.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.")}},ne.preconnect=function(c,d){typeof c=="string"&&c?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.",a(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(c)),typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,u.d.C(c,d))},ne.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c));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`.",a(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`.",a(d))}typeof c=="string"&&u.d.D(c)},ne.preinit=function(c,d){if(typeof c=="string"&&c?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.",a(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".',a(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c)),typeof c=="string"&&d&&typeof d.as=="string"){var m=d.as,y=n(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?u.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:g,fetchPriority:v}):m==="script"&&u.d.X(c,{crossOrigin:y,integrity:g,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ne.preinitModule=function(c,d){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),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 "+a(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):(m=d&&typeof d.as=="string"?d.as:"script",m)==="script"||(m=a(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,c)),typeof c=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(m=n(d.as,d.crossOrigin),u.d.M(c,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&u.d.M(c))},ne.preload=function(c,d){var m="";if(typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),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 c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){m=d.as;var y=n(m,d.crossOrigin);u.d.L(c,m,{crossOrigin:y,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})}},ne.preloadModule=function(c,d){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),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 c=="string"&&(d?(m=n(d.as,d.crossOrigin),u.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})):u.d.m(c))},ne.requestFormReset=function(c){u.d.r(c)},ne.unstable_batchedUpdates=function(c,d){return c(d)},ne.useFormState=function(c,d,m){return i().useFormState(c,d,m)},ne.useFormStatus=function(){return i().useHostTransitionStatus()},ne.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ne}var Jn;function Fs(){if(Jn)return St.exports;Jn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=Ls()):St.exports=Is(),St.exports}var hr=Fs();const Vs=qi(hr);function Qn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function st(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Qn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Qn(e[o],null)}}}}function Q(...e){return f.useCallback(st(...e),e)}function Ue(e){const t=zs(e),r=f.forwardRef((n,o)=>{const{children:a,...i}=n,s=f.Children.toArray(a),u=s.find(Ws);if(u){const l=u.props.children,p=s.map(c=>c===u?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,p):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var eo=Ue("Slot");function zs(e){const t=f.forwardRef((r,n)=>{const{children:o,...a}=r;if(f.isValidElement(o)){const i=Bs(o),s=Us(a,o.props);return o.type!==f.Fragment&&(s.ref=n?st(n,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var to=Symbol("radix.slottable");function $s(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=to,t}function Ws(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===to}function Us(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Bs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Gs=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Gs.reduce((e,t)=>{const r=Ue(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ro(e,t){e&&hr.flushSync(()=>e.dispatchEvent(t))}var yr={exports:{}},vr={},no;function Hs(){if(no)return vr;no=1;var e=P;function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,d){var m=d(),y=n({inst:{value:m,getSnapshot:d}}),g=y[0].inst,v=y[1];return a(function(){g.value=m,g.getSnapshot=d,u(g)&&v({inst:g})},[c,m,d]),o(function(){return u(g)&&v({inst:g}),c(function(){u(g)&&v({inst:g})})},[c]),i(m),m}function u(c){var d=c.getSnapshot;c=c.value;try{var m=d();return!r(c,m)}catch{return!0}}function l(c,d){return d()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return vr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,vr}var oo={},ao;function Ks(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}function t(m,y){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!c){var v=y();a(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}v=i({inst:{value:g,getSnapshot:y}});var w=v[0].inst,x=v[1];return u(function(){w.value=g,w.getSnapshot=y,r(w)&&x({inst:w})},[m,g,y]),s(function(){return r(w)&&x({inst:w}),m(function(){r(w)&&x({inst:w})})},[m]),l(g),g}function r(m){var y=m.getSnapshot;m=m.value;try{var g=y();return!a(m,g)}catch{return!0}}function n(m,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=P,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,u=o.useLayoutEffect,l=o.useDebugValue,p=!1,c=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;oo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),oo}var io;function Ys(){return io||(io=1,process.env.NODE_ENV==="production"?yr.exports=Hs():yr.exports=Ks()),yr.exports}var qs=Ys();function Xs(){return qs.useSyncExternalStore(Zs,()=>!0,()=>!1)}function Zs(){return()=>{}}var br="Avatar",[Js,Kp]=Ee(br),[Qs,so]=Js(br),el=f.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=f.useState("idle");return b.jsx(Qs,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:b.jsx(J.span,{...n,ref:t})})});el.displayName=br;var lo="AvatarImage",tl=f.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=so(lo,r),s=nl(n,a),u=ke(l=>{o(l),i.onImageLoadingStatusChange(l)});return de(()=>{s!=="idle"&&u(s)},[s,u]),s==="loaded"?b.jsx(J.img,{...a,ref:t,src:n}):null});tl.displayName=lo;var co="AvatarFallback",rl=f.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=so(co,r),[i,s]=f.useState(n===void 0);return f.useEffect(()=>{if(n!==void 0){const u=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(u)}},[n]),i&&a.imageLoadingStatus!=="loaded"?b.jsx(J.span,{...o,ref:t}):null});rl.displayName=co;function uo(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function nl(e,{referrerPolicy:t,crossOrigin:r}){const n=Xs(),o=f.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[i,s]=f.useState(()=>uo(a,e));return de(()=>{s(uo(a,e))},[a,e]),de(()=>{const u=c=>()=>{s(c)};if(!a)return;const l=u("loaded"),p=u("error");return a.addEventListener("load",l),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",l),a.removeEventListener("error",p)}},[a,r,t]),i}const ol=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),al=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),fo=e=>{const t=al(e);return t.charAt(0).toUpperCase()+t.slice(1)},po=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),il=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var sl={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"};const ll=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>P.createElement("svg",{ref:u,...sl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:po("lucide",o),...!a&&!il(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,p])=>P.createElement(l,p)),...Array.isArray(a)?a:[a]])),Be=(e,t)=>{const r=P.forwardRef(({className:n,...o},a)=>P.createElement(ll,{ref:a,iconNode:t,className:po(`lucide-${ol(fo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=fo(e),r};Be("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Be("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Be("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Be("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Be("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Be("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const cl=Qi("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 wr({className:e,variant:t="default",size:r="default",asChild:n=!1,...o}){const a=n?eo:"button";return b.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:ue(cl({variant:t,size:r,className:e})),...o})}function xr({className:e,...t}){return b.jsx("div",{"data-slot":"card",className:ue("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function _r({className:e,...t}){return b.jsx("div",{"data-slot":"card-header",className:ue("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Er({className:e,...t}){return b.jsx("div",{"data-slot":"card-title",className:ue("leading-none font-semibold",e),...t})}function kr({className:e,...t}){return b.jsx("div",{"data-slot":"card-description",className:ue("text-muted-foreground text-sm",e),...t})}function Rr({className:e,...t}){return b.jsx("div",{"data-slot":"card-content",className:ue("px-6",e),...t})}function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var ul=f[" useInsertionEffect ".trim().toString()]||de;function mo({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=dl({defaultProp:t,onChange:r}),s=e!==void 0,u=s?e:o;{const p=f.useRef(e!==void 0);f.useEffect(()=>{const c=p.current;c!==s&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${s?"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.`),p.current=s},[s,n])}const l=f.useCallback(p=>{if(s){const c=fl(p)?p(e):p;c!==e&&i.current?.(c)}else a(p)},[s,e,a,i]);return[u,l]}function dl({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),a=f.useRef(t);return ul(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function fl(e){return typeof e=="function"}function pl(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var je=e=>{const{present:t,children:r}=e,n=ml(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=Q(n.ref,gl(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};je.displayName="Presence";function ml(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,u]=pl(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Ct(n.current);a.current=s==="mounted"?l:"none"},[s]),de(()=>{const l=n.current,p=o.current;if(p!==e){const c=a.current,d=Ct(l);e?u("MOUNT"):d==="none"||l?.display==="none"?u("UNMOUNT"):u(p&&c!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),de(()=>{if(t){let l;const p=t.ownerDocument.defaultView??window,c=m=>{const y=Ct(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},d=m=>{m.target===t&&(a.current=Ct(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{p.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ct(e){return e?.animationName||"none"}function gl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var hl=f[" useId ".trim().toString()]||(()=>{}),yl=0;function go(e){const[t,r]=f.useState(hl());return de(()=>{r(n=>n??String(yl++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[vl,em]=Ee(Ot),[bl,Sr]=vl(Ot),wl=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[u,l]=mo({prop:n,defaultProp:o??!1,onChange:i,caller:Ot});return b.jsx(bl,{scope:r,disabled:a,contentId:go(),open:u,onOpenToggle:f.useCallback(()=>l(p=>!p),[l]),children:b.jsx(J.div,{"data-state":Or(u),"data-disabled":a?"":void 0,...s,ref:t})})});wl.displayName=Ot;var ho="CollapsibleTrigger",xl=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Sr(ho,r);return b.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Or(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:F(e.onClick,o.onOpenToggle)})});xl.displayName=ho;var Cr="CollapsibleContent",_l=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Sr(Cr,e.__scopeCollapsible);return b.jsx(je,{present:r||o.open,children:({present:a})=>b.jsx(El,{...n,ref:t,present:a})})});_l.displayName=Cr;var El=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Sr(Cr,r),[s,u]=f.useState(n),l=f.useRef(null),p=Q(t,l),c=f.useRef(0),d=c.current,m=f.useRef(0),y=m.current,g=i.open||s,v=f.useRef(g),w=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),de(()=>{const x=l.current;if(x){w.current=w.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const E=x.getBoundingClientRect();c.current=E.height,m.current=E.width,v.current||(x.style.transitionDuration=w.current.transitionDuration,x.style.animationName=w.current.animationName),u(n)}},[i.open,n]),b.jsx(J.div,{"data-state":Or(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:p,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:g&&o})});function Or(e){return e?"open":"closed"}function yo(e){const t=e+"CollectionProvider",[r,n]=Ee(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:w}=g,x=P.useRef(null),E=P.useRef(new Map).current;return b.jsx(o,{scope:v,itemMap:E,collectionRef:x,children:w})};i.displayName=t;const s=e+"CollectionSlot",u=Ue(s),l=P.forwardRef((g,v)=>{const{scope:w,children:x}=g,E=a(s,w),_=Q(v,E.collectionRef);return b.jsx(u,{ref:_,children:x})});l.displayName=s;const p=e+"CollectionItemSlot",c="data-radix-collection-item",d=Ue(p),m=P.forwardRef((g,v)=>{const{scope:w,children:x,...E}=g,_=P.useRef(null),C=Q(v,_),T=a(p,w);return P.useEffect(()=>(T.itemMap.set(_,{ref:_,...E}),()=>{T.itemMap.delete(_)})),b.jsx(d,{[c]:"",ref:C,children:x})});m.displayName=p;function y(g){const v=a(e+"CollectionConsumer",g);return P.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((E,_)=>x.indexOf(E.ref.current)-x.indexOf(_.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,n]}var kl=f.createContext(void 0);function Rl(e){const t=f.useContext(kl);return e||t||"ltr"}function Sl(e,t=globalThis?.document){const r=ke(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var Cl="DismissableLayer",jr="dismissableLayer.update",Ol="dismissableLayer.pointerDownOutside",jl="dismissableLayer.focusOutside",vo,bo=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,l=f.useContext(bo),[p,c]=f.useState(null),d=p?.ownerDocument??globalThis?.document,[,m]=f.useState({}),y=Q(t,j=>c(j)),g=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),x=p?g.indexOf(p):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,_=x>=w,C=Dl(j=>{const R=j.target,I=[...l.branches].some(U=>U.contains(R));!_||I||(o?.(j),i?.(j),j.defaultPrevented||s?.())},d),T=Al(j=>{const R=j.target;[...l.branches].some(I=>I.contains(R))||(a?.(j),i?.(j),j.defaultPrevented||s?.())},d);return Sl(j=>{x===l.layers.size-1&&(n?.(j),!j.defaultPrevented&&s&&(j.preventDefault(),s()))},d),f.useEffect(()=>{if(p)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(vo=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(p)),l.layers.add(p),wo(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=vo)}},[p,d,r,l]),f.useEffect(()=>()=>{p&&(l.layers.delete(p),l.layersWithOutsidePointerEventsDisabled.delete(p),wo())},[p,l]),f.useEffect(()=>{const j=()=>m({});return document.addEventListener(jr,j),()=>document.removeEventListener(jr,j)},[]),b.jsx(J.div,{...u,ref:y,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,T.onFocusCapture),onBlurCapture:F(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,C.onPointerDownCapture)})});jt.displayName=Cl;var Tl="DismissableLayerBranch",Nl=f.forwardRef((e,t)=>{const r=f.useContext(bo),n=f.useRef(null),o=Q(t,n);return f.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),b.jsx(J.div,{...e,ref:o})});Nl.displayName=Tl;function Dl(e,t=globalThis?.document){const r=ke(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){xo(Ol,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Al(e,t=globalThis?.document){const r=ke(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&xo(jl,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function wo(){const e=new CustomEvent(jr);document.dispatchEvent(e)}function xo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ro(o,a):o.dispatchEvent(a)}var Tr=0;function _o(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Eo()),document.body.insertAdjacentElement("beforeend",e[1]??Eo()),Tr++,()=>{Tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tr--}},[])}function Eo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nr="focusScope.autoFocusOnMount",Dr="focusScope.autoFocusOnUnmount",ko={bubbles:!1,cancelable:!0},Pl="FocusScope",Ar=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=f.useState(null),l=ke(o),p=ke(a),c=f.useRef(null),d=Q(t,g=>u(g)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let g=function(E){if(m.paused||!s)return;const _=E.target;s.contains(_)?c.current=_:Te(c.current,{select:!0})},v=function(E){if(m.paused||!s)return;const _=E.relatedTarget;_!==null&&(s.contains(_)||Te(c.current,{select:!0}))},w=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&Te(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(w);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[n,s,m.paused]),f.useEffect(()=>{if(s){Co.add(m);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(Nr,ko);s.addEventListener(Nr,l),s.dispatchEvent(v),v.defaultPrevented||(Ml(zl(Ro(s)),{select:!0}),document.activeElement===g&&Te(s))}return()=>{s.removeEventListener(Nr,l),setTimeout(()=>{const v=new CustomEvent(Dr,ko);s.addEventListener(Dr,p),s.dispatchEvent(v),v.defaultPrevented||Te(g??document.body,{select:!0}),s.removeEventListener(Dr,p),Co.remove(m)},0)}}},[s,l,p,m]);const y=f.useCallback(g=>{if(!r&&!n||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(v&&w){const x=g.currentTarget,[E,_]=Ll(x);E&&_?!g.shiftKey&&w===_?(g.preventDefault(),r&&Te(E,{select:!0})):g.shiftKey&&w===E&&(g.preventDefault(),r&&Te(_,{select:!0})):w===x&&g.preventDefault()}},[r,n,m.paused]);return b.jsx(J.div,{tabIndex:-1,...i,ref:d,onKeyDown:y})});Ar.displayName=Pl;function Ml(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Te(n,{select:t}),document.activeElement!==r)return}function Ll(e){const t=Ro(e),r=So(t,e),n=So(t.reverse(),e);return[r,n]}function Ro(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function So(e,t){for(const r of e)if(!Il(r,{upTo:t}))return r}function Il(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fl(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Fl(e)&&t&&e.select()}}var Co=Vl();function Vl(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Oo(e,t),e.unshift(t)},remove(t){e=Oo(e,t),e[0]?.resume()}}}function Oo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function zl(e){return e.filter(t=>t.tagName!=="A")}const $l=["top","right","bottom","left"],Ne=Math.min,se=Math.max,Tt=Math.round,Nt=Math.floor,he=e=>({x:e,y:e}),Wl={left:"right",right:"left",bottom:"top",top:"bottom"},Ul={start:"end",end:"start"};function Pr(e,t,r){return se(e,Ne(t,r))}function Re(e,t){return typeof e=="function"?e(t):e}function Se(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function Mr(e){return e==="x"?"y":"x"}function Lr(e){return e==="y"?"height":"width"}const Bl=new Set(["top","bottom"]);function ye(e){return Bl.has(Se(e))?"y":"x"}function Ir(e){return Mr(ye(e))}function Gl(e,t,r){r===void 0&&(r=!1);const n=Ge(e),o=Ir(e),a=Lr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Dt(i)),[i,Dt(i)]}function Hl(e){const t=Dt(e);return[Fr(e),t,Fr(t)]}function Fr(e){return e.replace(/start|end/g,t=>Ul[t])}const jo=["left","right"],To=["right","left"],Kl=["top","bottom"],Yl=["bottom","top"];function ql(e,t,r){switch(e){case"top":case"bottom":return r?t?To:jo:t?jo:To;case"left":case"right":return t?Kl:Yl;default:return[]}}function Xl(e,t,r,n){const o=Ge(e);let a=ql(Se(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Fr)))),a}function Dt(e){return e.replace(/left|right|bottom|top/g,t=>Wl[t])}function Zl(e){return{top:0,right:0,bottom:0,left:0,...e}}function No(e){return typeof e!="number"?Zl(e):{top:e,right:e,bottom:e,left:e}}function At(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Do(e,t,r){let{reference:n,floating:o}=e;const a=ye(t),i=Ir(t),s=Lr(i),u=Se(t),l=a==="y",p=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let m;switch(u){case"top":m={x:p,y:n.y-o.height};break;case"bottom":m={x:p,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:c};break;case"left":m={x:n.x-o.width,y:c};break;default:m={x:n.x,y:n.y}}switch(Ge(t)){case"start":m[i]-=d*(r&&l?-1:1);break;case"end":m[i]+=d*(r&&l?-1:1);break}return m}const Jl=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:c}=Do(l,n,u),d=n,m={},y=0;for(let g=0;g<s.length;g++){const{name:v,fn:w}=s[g],{x,y:E,data:_,reset:C}=await w({x:p,y:c,initialPlacement:n,placement:d,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});p=x??p,c=E??c,m={...m,[v]:{...m[v],..._}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(l=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:c}=Do(l,d,u)),g=-1)}return{x:p,y:c,placement:d,strategy:o,middlewareData:m}};async function lt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:c="floating",altBoundary:d=!1,padding:m=0}=Re(t,e),y=No(m),g=s[d?c==="floating"?"reference":"floating":c],v=At(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(g)))==null||r?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:p,strategy:u})),w=c==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=At(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:u}):w);return{top:(v.top-_.top+y.top)/E.y,bottom:(_.bottom-v.bottom+y.bottom)/E.y,left:(v.left-_.left+y.left)/E.x,right:(_.right-v.right+y.right)/E.x}}const Ql=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:l,padding:p=0}=Re(e,t)||{};if(l==null)return{};const c=No(p),d={x:r,y:n},m=Ir(o),y=Lr(m),g=await i.getDimensions(l),v=m==="y",w=v?"top":"left",x=v?"bottom":"right",E=v?"clientHeight":"clientWidth",_=a.reference[y]+a.reference[m]-d[m]-a.floating[y],C=d[m]-a.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let j=T?T[E]:0;(!j||!await(i.isElement==null?void 0:i.isElement(T)))&&(j=s.floating[E]||a.floating[y]);const R=_/2-C/2,I=j/2-g[y]/2-1,U=Ne(c[w],I),B=Ne(c[x],I),q=U,Z=j-g[y]-B,W=j/2-g[y]/2+R,Y=Pr(q,W,Z),G=!u.arrow&&Ge(o)!=null&&W!==Y&&a.reference[y]/2-(W<q?U:B)-g[y]/2<0,H=G?W<q?W-q:W-Z:0;return{[m]:d[m]+H,data:{[m]:Y,centerOffset:W-Y-H,...G&&{alignmentOffset:H}},reset:G}}}),ec=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:p=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=Re(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Se(o),x=ye(s),E=Se(s)===s,_=await(u.isRTL==null?void 0:u.isRTL(l.floating)),C=d||(E||!g?[Dt(s)]:Hl(s)),T=y!=="none";!d&&T&&C.push(...Xl(s,g,y,_));const j=[s,...C],R=await lt(t,v),I=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&I.push(R[w]),c){const W=Gl(o,i,_);I.push(R[W[0]],R[W[1]])}if(U=[...U,{placement:o,overflows:I}],!I.every(W=>W<=0)){var B,q;const W=(((B=a.flip)==null?void 0:B.index)||0)+1,Y=j[W];if(Y&&(!(c==="alignment"&&x!==ye(Y))||U.every(H=>ye(H.placement)===x?H.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:Y}};let G=(q=U.filter(H=>H.overflows[0]<=0).sort((H,k)=>H.overflows[1]-k.overflows[1])[0])==null?void 0:q.placement;if(!G)switch(m){case"bestFit":{var Z;const H=(Z=U.filter(k=>{if(T){const N=ye(k.placement);return N===x||N==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(N=>N>0).reduce((N,h)=>N+h,0)]).sort((k,N)=>k[1]-N[1])[0])==null?void 0:Z[0];H&&(G=H);break}case"initialPlacement":G=s;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function Ao(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Po(e){return $l.some(t=>e[t]>=0)}const tc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Re(e,t);switch(n){case"referenceHidden":{const a=await lt(t,{...o,elementContext:"reference"}),i=Ao(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Po(i)}}}case"escaped":{const a=await lt(t,{...o,altBoundary:!0}),i=Ao(a,r.floating);return{data:{escapedOffsets:i,escaped:Po(i)}}}default:return{}}}}},Mo=new Set(["left","top"]);async function rc(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Se(r),s=Ge(r),u=ye(r)==="y",l=Mo.has(i)?-1:1,p=a&&u?-1:1,c=Re(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof y=="number"&&(m=s==="end"?y*-1:y),u?{x:m*p,y:d*l}:{x:d*l,y:m*p}}const nc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,u=await rc(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},oc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:w,y:x}=v;return{x:w,y:x}}},...u}=Re(e,t),l={x:r,y:n},p=await lt(t,u),c=ye(Se(o)),d=Mr(c);let m=l[d],y=l[c];if(a){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",x=m+p[v],E=m-p[w];m=Pr(x,m,E)}if(i){const v=c==="y"?"top":"left",w=c==="y"?"bottom":"right",x=y+p[v],E=y-p[w];y=Pr(x,y,E)}const g=s.fn({...t,[d]:m,[c]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[d]:a,[c]:i}}}}}},ac=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Re(e,t),p={x:r,y:n},c=ye(o),d=Mr(c);let m=p[d],y=p[c];const g=Re(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const E=d==="y"?"height":"width",_=a.reference[d]-a.floating[E]+v.mainAxis,C=a.reference[d]+a.reference[E]-v.mainAxis;m<_?m=_:m>C&&(m=C)}if(l){var w,x;const E=d==="y"?"width":"height",_=Mo.has(Se(o)),C=a.reference[c]-a.floating[E]+(_&&((w=i.offset)==null?void 0:w[c])||0)+(_?0:v.crossAxis),T=a.reference[c]+a.reference[E]+(_?0:((x=i.offset)==null?void 0:x[c])||0)-(_?v.crossAxis:0);y<C?y=C:y>T&&(y=T)}return{[d]:m,[c]:y}}}},ic=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:u=()=>{},...l}=Re(e,t),p=await lt(t,l),c=Se(o),d=Ge(o),m=ye(o)==="y",{width:y,height:g}=a.floating;let v,w;c==="top"||c==="bottom"?(v=c,w=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=c,v=d==="end"?"top":"bottom");const x=g-p.top-p.bottom,E=y-p.left-p.right,_=Ne(g-p[v],x),C=Ne(y-p[w],E),T=!t.middlewareData.shift;let j=_,R=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(j=x),T&&!d){const U=se(p.left,0),B=se(p.right,0),q=se(p.top,0),Z=se(p.bottom,0);m?R=y-2*(U!==0||B!==0?U+B:se(p.left,p.right)):j=g-2*(q!==0||Z!==0?q+Z:se(p.top,p.bottom))}await u({...t,availableWidth:R,availableHeight:j});const I=await i.getDimensions(s.floating);return y!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Pt(){return typeof window<"u"}function He(e){return Lo(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Lo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lo(e){return Pt()?e instanceof Node||e instanceof le(e).Node:!1}function me(e){return Pt()?e instanceof Element||e instanceof le(e).Element:!1}function be(e){return Pt()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function Io(e){return!Pt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const sc=new Set(["inline","contents"]);function ct(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!sc.has(o)}const lc=new Set(["table","td","th"]);function cc(e){return lc.has(He(e))}const uc=[":popover-open",":modal"];function Mt(e){return uc.some(t=>{try{return e.matches(t)}catch{return!1}})}const dc=["transform","translate","scale","rotate","perspective"],fc=["transform","translate","scale","rotate","perspective","filter"],pc=["paint","layout","strict","content"];function Vr(e){const t=zr(),r=me(e)?ge(e):e;return dc.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||fc.some(n=>(r.willChange||"").includes(n))||pc.some(n=>(r.contain||"").includes(n))}function mc(e){let t=De(e);for(;be(t)&&!Ke(t);){if(Vr(t))return t;if(Mt(t))return null;t=De(t)}return null}function zr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gc=new Set(["html","body","#document"]);function Ke(e){return gc.has(He(e))}function ge(e){return le(e).getComputedStyle(e)}function Lt(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function De(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Io(e)&&e.host||ve(e);return Io(t)?t.host:t}function Fo(e){const t=De(e);return Ke(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&ct(t)?t:Fo(t)}function ut(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Fo(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=le(o);if(a){const s=$r(i);return t.concat(i,i.visualViewport||[],ct(o)?o:[],s&&r?ut(s):[])}return t.concat(o,ut(o,[],r))}function $r(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vo(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=be(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Tt(r)!==a||Tt(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Wr(e){return me(e)?e:e.contextElement}function Ye(e){const t=Wr(e);if(!be(t))return he(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Vo(t);let i=(a?Tt(r.width):r.width)/n,s=(a?Tt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const hc=he(0);function zo(e){const t=le(e);return!zr()||!t.visualViewport?hc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==le(e)?!1:t}function Pe(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Wr(e);let i=he(1);t&&(n?me(n)&&(i=Ye(n)):i=Ye(e));const s=yc(a,r,n)?zo(a):he(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,p=o.width/i.x,c=o.height/i.y;if(a){const d=le(a),m=n&&me(n)?le(n):n;let y=d,g=$r(y);for(;g&&n&&m!==y;){const v=Ye(g),w=g.getBoundingClientRect(),x=ge(g),E=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,_=w.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;u*=v.x,l*=v.y,p*=v.x,c*=v.y,u+=E,l+=_,y=le(g),g=$r(y)}}return At({width:p,height:c,x:u,y:l})}function It(e,t){const r=Lt(e).scrollLeft;return t?t.left+r:Pe(ve(e)).left+r}function $o(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-It(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function vc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=ve(n),s=t?Mt(t.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=he(1);const p=he(0),c=be(n);if((c||!c&&!a)&&((He(n)!=="body"||ct(i))&&(u=Lt(n)),be(n))){const m=Pe(n);l=Ye(n),p.x=m.x+n.clientLeft,p.y=m.y+n.clientTop}const d=i&&!c&&!a?$o(i,u):he(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+p.x+d.x,y:r.y*l.y-u.scrollTop*l.y+p.y+d.y}}function bc(e){return Array.from(e.getClientRects())}function wc(e){const t=ve(e),r=Lt(e),n=e.ownerDocument.body,o=se(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=se(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+It(e);const s=-r.scrollTop;return ge(n).direction==="rtl"&&(i+=se(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Wo=25;function xc(e,t){const r=le(e),n=ve(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const p=zr();(!p||p&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=It(n);if(l<=0){const p=n.ownerDocument,c=p.body,d=getComputedStyle(c),m=p.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,y=Math.abs(n.clientWidth-c.clientWidth-m);y<=Wo&&(a-=y)}else l<=Wo&&(a+=l);return{width:a,height:i,x:s,y:u}}const _c=new Set(["absolute","fixed"]);function Ec(e,t){const r=Pe(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=be(e)?Ye(e):he(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function Uo(e,t,r){let n;if(t==="viewport")n=xc(e,r);else if(t==="document")n=wc(ve(e));else if(me(t))n=Ec(t,r);else{const o=zo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return At(n)}function Bo(e,t){const r=De(e);return r===t||!me(r)||Ke(r)?!1:ge(r).position==="fixed"||Bo(r,t)}function kc(e,t){const r=t.get(e);if(r)return r;let n=ut(e,[],!1).filter(s=>me(s)&&He(s)!=="body"),o=null;const a=ge(e).position==="fixed";let i=a?De(e):e;for(;me(i)&&!Ke(i);){const s=ge(i),u=Vr(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&o&&_c.has(o.position)||ct(i)&&!u&&Bo(e,i))?n=n.filter(l=>l!==i):o=s,i=De(i)}return t.set(e,n),n}function Rc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Mt(t)?[]:kc(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((u,l)=>{const p=Uo(t,l,o);return u.top=se(p.top,u.top),u.right=Ne(p.right,u.right),u.bottom=Ne(p.bottom,u.bottom),u.left=se(p.left,u.left),u},Uo(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Sc(e){const{width:t,height:r}=Vo(e);return{width:t,height:r}}function Cc(e,t,r){const n=be(t),o=ve(t),a=r==="fixed",i=Pe(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=he(0);function l(){u.x=It(o)}if(n||!n&&!a)if((He(t)!=="body"||ct(o))&&(s=Lt(t)),n){const m=Pe(t,!0,a,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&l();a&&!n&&o&&l();const p=o&&!n&&!a?$o(o,s):he(0),c=i.left+s.scrollLeft-u.x-p.x,d=i.top+s.scrollTop-u.y-p.y;return{x:c,y:d,width:i.width,height:i.height}}function Ur(e){return ge(e).position==="static"}function Go(e,t){if(!be(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ve(e)===r&&(r=r.ownerDocument.body),r}function Ho(e,t){const r=le(e);if(Mt(e))return r;if(!be(e)){let o=De(e);for(;o&&!Ke(o);){if(me(o)&&!Ur(o))return o;o=De(o)}return r}let n=Go(e,t);for(;n&&cc(n)&&Ur(n);)n=Go(n,t);return n&&Ke(n)&&Ur(n)&&!Vr(n)?r:n||mc(e)||r}const Oc=async function(e){const t=this.getOffsetParent||Ho,r=this.getDimensions,n=await r(e.floating);return{reference:Cc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jc(e){return ge(e).direction==="rtl"}const Tc={convertOffsetParentRelativeRectToViewportRelativeRect:vc,getDocumentElement:ve,getClippingRect:Rc,getOffsetParent:Ho,getElementRects:Oc,getClientRects:bc,getDimensions:Sc,getScale:Ye,isElement:me,isRTL:jc};function Ko(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Nc(e,t){let r=null,n;const o=ve(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=e.getBoundingClientRect(),{left:p,top:c,width:d,height:m}=l;if(s||t(),!d||!m)return;const y=Nt(c),g=Nt(o.clientWidth-(p+d)),v=Nt(o.clientHeight-(c+m)),w=Nt(p),x={rootMargin:-y+"px "+-g+"px "+-v+"px "+-w+"px",threshold:se(0,Ne(1,u))||1};let E=!0;function _(C){const T=C[0].intersectionRatio;if(T!==u){if(!E)return i();T?i(!1,T):n=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!Ko(l,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,x)}r.observe(e)}return i(!0),a}function Dc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=Wr(e),p=o||a?[...l?ut(l):[],...ut(t)]:[];p.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),a&&w.addEventListener("resize",r)});const c=l&&s?Nc(l,r):null;let d=-1,m=null;i&&(m=new ResizeObserver(w=>{let[x]=w;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),r()}),l&&!u&&m.observe(l),m.observe(t));let y,g=u?Pe(e):null;u&&v();function v(){const w=Pe(e);g&&!Ko(g,w)&&r(),g=w,y=requestAnimationFrame(v)}return r(),()=>{var w;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),c?.(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(y)}}const Ac=nc,Pc=oc,Mc=ec,Lc=ic,Ic=tc,Yo=Ql,Fc=ac,Vc=(e,t,r)=>{const n=new Map,o={platform:Tc,...r},a={...o.platform,_c:n};return Jl(e,t,{...o,platform:a})};var zc=typeof document<"u",$c=function(){},Ft=zc?P.useLayoutEffect:$c;function Vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Vt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Vt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function qo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xo(e,t){const r=qo(e);return Math.round(t*r)/r}function Br(e){const t=f.useRef(e);return Ft(()=>{t.current=e}),t}function Wc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[p,c]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=f.useState(n);Vt(d,n)||m(n);const[y,g]=f.useState(null),[v,w]=f.useState(null),x=f.useCallback(k=>{k!==T.current&&(T.current=k,g(k))},[]),E=f.useCallback(k=>{k!==j.current&&(j.current=k,w(k))},[]),_=a||y,C=i||v,T=f.useRef(null),j=f.useRef(null),R=f.useRef(p),I=u!=null,U=Br(u),B=Br(o),q=Br(l),Z=f.useCallback(()=>{if(!T.current||!j.current)return;const k={placement:t,strategy:r,middleware:d};B.current&&(k.platform=B.current),Vc(T.current,j.current,k).then(N=>{const h={...N,isPositioned:q.current!==!1};W.current&&!Vt(R.current,h)&&(R.current=h,hr.flushSync(()=>{c(h)}))})},[d,t,r,B,q]);Ft(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,c(k=>({...k,isPositioned:!1})))},[l]);const W=f.useRef(!1);Ft(()=>(W.current=!0,()=>{W.current=!1}),[]),Ft(()=>{if(_&&(T.current=_),C&&(j.current=C),_&&C){if(U.current)return U.current(_,C,Z);Z()}},[_,C,Z,U,I]);const Y=f.useMemo(()=>({reference:T,floating:j,setReference:x,setFloating:E}),[x,E]),G=f.useMemo(()=>({reference:_,floating:C}),[_,C]),H=f.useMemo(()=>{const k={position:r,left:0,top:0};if(!G.floating)return k;const N=Xo(G.floating,p.x),h=Xo(G.floating,p.y);return s?{...k,transform:"translate("+N+"px, "+h+"px)",...qo(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:h}},[r,s,G.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:Z,refs:Y,elements:G,floatingStyles:H}),[p,Z,Y,G,H])}const Uc=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Yo({element:n.current,padding:o}).fn(r):{}:n?Yo({element:n,padding:o}).fn(r):{}}}},Bc=(e,t)=>({...Ac(e),options:[e,t]}),Gc=(e,t)=>({...Pc(e),options:[e,t]}),Hc=(e,t)=>({...Fc(e),options:[e,t]}),Kc=(e,t)=>({...Mc(e),options:[e,t]}),Yc=(e,t)=>({...Lc(e),options:[e,t]}),qc=(e,t)=>({...Ic(e),options:[e,t]}),Xc=(e,t)=>({...Uc(e),options:[e,t]});var Zc="Arrow",Zo=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return b.jsx(J.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zo.displayName=Zc;var Jc=Zo;function Qc(e){const[t,r]=f.useState(void 0);return de(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Jo="Popper",[Qo,zt]=Ee(Jo),[tm,ea]=Qo(Jo),ta="PopperAnchor",ra=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ea(ta,r),i=f.useRef(null),s=Q(t,i),u=f.useRef(null);return f.useEffect(()=>{const l=u.current;u.current=n?.current||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:b.jsx(J.div,{...o,ref:s})});ra.displayName=ta;var Gr="PopperContent",[eu,tu]=Qo(Gr),na=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:p=0,sticky:c="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=ea(Gr,r),[w,x]=f.useState(null),E=Q(t,V=>x(V)),[_,C]=f.useState(null),T=Qc(_),j=T?.width??0,R=T?.height??0,I=n+(a!=="center"?"-"+a:""),U=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},B=Array.isArray(l)?l:[l],q=B.length>0,Z={padding:U,boundary:B.filter(nu),altBoundary:q},{refs:W,floatingStyles:Y,placement:G,isPositioned:H,middlewareData:k}=Wc({strategy:"fixed",placement:I,whileElementsMounted:(...V)=>Dc(...V,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Bc({mainAxis:o+R,alignmentAxis:i}),u&&Gc({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Hc():void 0,...Z}),u&&Kc({...Z}),Yc({...Z,apply:({elements:V,rects:z,availableWidth:ee,availableHeight:ie})=>{const{width:Ce,height:rt}=z.reference,lr=V.floating.style;lr.setProperty("--radix-popper-available-width",`${ee}px`),lr.setProperty("--radix-popper-available-height",`${ie}px`),lr.setProperty("--radix-popper-anchor-width",`${Ce}px`),lr.setProperty("--radix-popper-anchor-height",`${rt}px`)}}),_&&Xc({element:_,padding:s}),ou({arrowWidth:j,arrowHeight:R}),d&&qc({strategy:"referenceHidden",...Z})]}),[N,h]=ia(G),S=ke(y);de(()=>{H&&S?.()},[H,S]);const M=k.arrow?.x,L=k.arrow?.y,K=k.arrow?.centerOffset!==0,[X,oe]=f.useState();return de(()=>{w&&oe(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:H?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(eu,{scope:r,placedSide:N,onArrowChange:C,arrowX:M,arrowY:L,shouldHideArrow:K,children:b.jsx(J.div,{"data-side":N,"data-align":h,...g,ref:E,style:{...g.style,animation:H?void 0:"none"}})})})});na.displayName=Gr;var oa="PopperArrow",ru={top:"bottom",right:"left",bottom:"top",left:"right"},aa=f.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=tu(oa,r),a=ru[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(Jc,{...n,ref:t,style:{...n.style,display:"block"}})})});aa.displayName=oa;function nu(e){return e!==null}var ou=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[u,l]=ia(r),p={start:"0%",center:"50%",end:"100%"}[l],c=(o.arrow?.x??0)+i/2,d=(o.arrow?.y??0)+s/2;let m="",y="";return u==="bottom"?(m=a?p:`${c}px`,y=`${-s}px`):u==="top"?(m=a?p:`${c}px`,y=`${n.floating.height+s}px`):u==="right"?(m=`${-s}px`,y=a?p:`${d}px`):u==="left"&&(m=`${n.floating.width+s}px`,y=a?p:`${d}px`),{data:{x:m,y}}}});function ia(e){const[t,r="center"]=e.split("-");return[t,r]}var sa=ra,la=na,ca=aa,au="Portal",iu=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=f.useState(!1);de(()=>a(!0),[]);const i=r||o&&globalThis?.document?.body;return i?Vs.createPortal(b.jsx(J.div,{...n,ref:t}),i):null});iu.displayName=au;var Hr="rovingFocusGroup.onEntryFocus",su={bubbles:!1,cancelable:!0},dt="RovingFocusGroup",[Kr,ua,lu]=yo(dt),[cu,da]=Ee(dt,[lu]),[uu,du]=cu(dt),fa=f.forwardRef((e,t)=>b.jsx(Kr.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Kr.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(fu,{...e,ref:t})})}));fa.displayName=dt;var fu=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:p=!1,...c}=e,d=f.useRef(null),m=Q(t,d),y=Rl(a),[g,v]=mo({prop:i,defaultProp:s??null,onChange:u,caller:dt}),[w,x]=f.useState(!1),E=ke(l),_=ua(r),C=f.useRef(!1),[T,j]=f.useState(0);return f.useEffect(()=>{const R=d.current;if(R)return R.addEventListener(Hr,E),()=>R.removeEventListener(Hr,E)},[E]),b.jsx(uu,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(R=>v(R),[v]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>j(R=>R+1),[]),onFocusableItemRemove:f.useCallback(()=>j(R=>R-1),[]),children:b.jsx(J.div,{tabIndex:w||T===0?-1:0,"data-orientation":n,...c,ref:m,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{C.current=!0}),onFocus:F(e.onFocus,R=>{const I=!C.current;if(R.target===R.currentTarget&&I&&!w){const U=new CustomEvent(Hr,su);if(R.currentTarget.dispatchEvent(U),!U.defaultPrevented){const B=_().filter(Y=>Y.focusable),q=B.find(Y=>Y.active),Z=B.find(Y=>Y.id===g),W=[q,Z,...B].filter(Boolean).map(Y=>Y.ref.current);ga(W,p)}}C.current=!1}),onBlur:F(e.onBlur,()=>x(!1))})})}),pa="RovingFocusGroupItem",ma=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=e,u=go(),l=a||u,p=du(pa,r),c=p.currentTabStopId===l,d=ua(r),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=p;return f.useEffect(()=>{if(n)return m(),()=>y()},[n,m,y]),b.jsx(Kr.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:b.jsx(J.span,{tabIndex:c?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:F(e.onMouseDown,v=>{n?p.onItemFocus(l):v.preventDefault()}),onFocus:F(e.onFocus,()=>p.onItemFocus(l)),onKeyDown:F(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){p.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=gu(v,p.orientation,p.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=d().filter(E=>E.focusable).map(E=>E.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const E=x.indexOf(v.currentTarget);x=p.loop?hu(x,E+1):x.slice(E+1)}setTimeout(()=>ga(x))}}),children:typeof i=="function"?i({isCurrentTabStop:c,hasTabStop:g!=null}):i})})});ma.displayName=pa;var pu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function mu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gu(e,t,r){const n=mu(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return pu[n]}function ga(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function hu(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var yu=fa,vu=ma,bu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qe=new WeakMap,$t=new WeakMap,Wt={},Yr=0,ha=function(e){return e&&(e.host||ha(e.parentNode))},wu=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ha(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},xu=function(e,t,r,n){var o=wu(t,Array.isArray(e)?e:[e]);Wt[r]||(Wt[r]=new WeakMap);var a=Wt[r],i=[],s=new Set,u=new Set(o),l=function(c){!c||s.has(c)||(s.add(c),l(c.parentNode))};o.forEach(l);var p=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(d){if(s.has(d))p(d);else try{var m=d.getAttribute(n),y=m!==null&&m!=="false",g=(qe.get(d)||0)+1,v=(a.get(d)||0)+1;qe.set(d,g),a.set(d,v),i.push(d),g===1&&y&&$t.set(d,!0),v===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return p(t),s.clear(),Yr++,function(){i.forEach(function(c){var d=qe.get(c)-1,m=a.get(c)-1;qe.set(c,d),a.set(c,m),d||($t.has(c)||c.removeAttribute(n),$t.delete(c)),m||c.removeAttribute(r)}),Yr--,Yr||(qe=new WeakMap,qe=new WeakMap,$t=new WeakMap,Wt={})}},ya=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=bu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),xu(n,o,r,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},we.apply(this,arguments)};function va(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _u(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ut="right-scroll-bar-position",Bt="width-before-scroll-bar",Eu="with-scroll-bars-hidden",ku="--removed-body-scroll-bar-size";function qr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ru(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Su=typeof window<"u"?f.useLayoutEffect:f.useEffect,ba=new WeakMap;function Cu(e,t){var r=Ru(null,function(n){return e.forEach(function(o){return qr(o,n)})});return Su(function(){var n=ba.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||qr(s,null)}),a.forEach(function(s){o.has(s)||qr(s,i)})}ba.set(r,e)},[e]),r}function Ou(e){return e}function ju(e,t){t===void 0&&(t=Ou);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var u=function(){var p=i;i=[],p.forEach(a)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){i.push(p),l()},filter:function(p){return i=i.filter(p),r}}}};return o}function Tu(e){e===void 0&&(e={});var t=ju(null);return t.options=we({async:!0,ssr:!1},e),t}var wa=function(e){var t=e.sideCar,r=va(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,we({},r))};wa.isSideCarExport=!0;function Nu(e,t){return e.useMedium(t),wa}var xa=Tu(),Xr=function(){},Gt=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:Xr,onWheelCapture:Xr,onTouchMoveCapture:Xr}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,c=e.shards,d=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,v=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,E=e.gapMode,_=va(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,T=Cu([r,t]),j=we(we({},_),o);return f.createElement(f.Fragment,null,p&&f.createElement(C,{sideCar:xa,removeScrollBar:l,shards:c,noRelative:m,noIsolation:y,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:E}),i?f.cloneElement(f.Children.only(s),we(we({},j),{ref:T})):f.createElement(x,we({},j,{className:u,ref:T}),s))});Gt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gt.classNames={fullWidth:Bt,zeroRight:Ut};var Du=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Au(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Du();return t&&e.setAttribute("nonce",t),e}function Pu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Mu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Lu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Au())&&(Pu(t,r),Mu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Iu=function(){var e=Lu();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},_a=function(){var e=Iu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Fu={left:0,top:0,right:0,gap:0},Zr=function(e){return parseInt(e||"",10)||0},Vu=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zr(r),Zr(n),Zr(o)]},zu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Fu;var t=Vu(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},$u=_a(),Xe="data-scroll-locked",Wu=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
16
|
-
.`.concat(
|
|
15
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var s=P,u={d:{f:e,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},l=Symbol.for("react.portal"),p=s.__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"),ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,ne.createPortal=function(c,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 r(c,d,null,m)},ne.flushSync=function(c){var d=p.T,m=u.p;try{if(p.T=null,u.p=2,c)return c()}finally{p.T=d,u.p=m,u.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.")}},ne.preconnect=function(c,d){typeof c=="string"&&c?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.",a(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(c)),typeof c=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,u.d.C(c,d))},ne.prefetchDNS=function(c){if(typeof c!="string"||!c)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c));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`.",a(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`.",a(d))}typeof c=="string"&&u.d.D(c)},ne.preinit=function(c,d){if(typeof c=="string"&&c?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.",a(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".',a(d.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(c)),typeof c=="string"&&d&&typeof d.as=="string"){var m=d.as,y=n(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,v=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?u.d.S(c,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:g,fetchPriority:v}):m==="script"&&u.d.X(c,{crossOrigin:y,integrity:g,fetchPriority:v,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ne.preinitModule=function(c,d){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),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 "+a(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):(m=d&&typeof d.as=="string"?d.as:"script",m)==="script"||(m=a(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,c)),typeof c=="string"&&(typeof d=="object"&&d!==null?(d.as==null||d.as==="script")&&(m=n(d.as,d.crossOrigin),u.d.M(c,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})):d==null&&u.d.M(c))},ne.preload=function(c,d){var m="";if(typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),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 c=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){m=d.as;var y=n(m,d.crossOrigin);u.d.L(c,m,{crossOrigin:y,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})}},ne.preloadModule=function(c,d){var m="";typeof c=="string"&&c||(m+=" The `href` argument encountered was "+o(c)+"."),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 c=="string"&&(d?(m=n(d.as,d.crossOrigin),u.d.m(c,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})):u.d.m(c))},ne.requestFormReset=function(c){u.d.r(c)},ne.unstable_batchedUpdates=function(c,d){return c(d)},ne.useFormState=function(c,d,m){return i().useFormState(c,d,m)},ne.useFormStatus=function(){return i().useHostTransitionStatus()},ne.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ne}var Jn;function zs(){if(Jn)return St.exports;Jn=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}return process.env.NODE_ENV==="production"?(e(),St.exports=Fs()):St.exports=Vs(),St.exports}var hr=zs();const $s=Zi(hr);function Qn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function st(...e){return t=>{let r=!1;const n=e.map(o=>{const a=Qn(o,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():Qn(e[o],null)}}}}function Q(...e){return f.useCallback(st(...e),e)}function Ue(e){const t=Ws(e),r=f.forwardRef((n,o)=>{const{children:a,...i}=n,s=f.Children.toArray(a),u=s.find(Bs);if(u){const l=u.props.children,p=s.map(c=>c===u?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,p):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}var eo=Ue("Slot");function Ws(e){const t=f.forwardRef((r,n)=>{const{children:o,...a}=r;if(f.isValidElement(o)){const i=Hs(o),s=Gs(a,o.props);return o.type!==f.Fragment&&(s.ref=n?st(n,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var to=Symbol("radix.slottable");function Us(e){const t=({children:r})=>b.jsx(b.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=to,t}function Bs(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===to}function Gs(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Hs(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Ks=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],J=Ks.reduce((e,t)=>{const r=Ue(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ro(e,t){e&&hr.flushSync(()=>e.dispatchEvent(t))}var yr={exports:{}},vr={},no;function Ys(){if(no)return vr;no=1;var e=P;function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,i=e.useDebugValue;function s(c,d){var m=d(),y=n({inst:{value:m,getSnapshot:d}}),g=y[0].inst,v=y[1];return a(function(){g.value=m,g.getSnapshot=d,u(g)&&v({inst:g})},[c,m,d]),o(function(){return u(g)&&v({inst:g}),c(function(){u(g)&&v({inst:g})})},[c]),i(m),m}function u(c){var d=c.getSnapshot;c=c.value;try{var m=d();return!r(c,m)}catch{return!0}}function l(c,d){return d()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:s;return vr.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,vr}var oo={},ao;function qs(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}function t(m,y){p||o.startTransition===void 0||(p=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var g=y();if(!c){var v=y();a(g,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}v=i({inst:{value:g,getSnapshot:y}});var w=v[0].inst,x=v[1];return u(function(){w.value=g,w.getSnapshot=y,r(w)&&x({inst:w})},[m,g,y]),s(function(){return r(w)&&x({inst:w}),m(function(){r(w)&&x({inst:w})})},[m]),l(g),g}function r(m){var y=m.getSnapshot;m=m.value;try{var g=y();return!a(m,g)}catch{return!0}}function n(m,y){return y()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=P,a=typeof Object.is=="function"?Object.is:e,i=o.useState,s=o.useEffect,u=o.useLayoutEffect,l=o.useDebugValue,p=!1,c=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?n:t;oo.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),oo}var io;function Xs(){return io||(io=1,process.env.NODE_ENV==="production"?yr.exports=Ys():yr.exports=qs()),yr.exports}var Zs=Xs();function Js(){return Zs.useSyncExternalStore(Qs,()=>!0,()=>!1)}function Qs(){return()=>{}}var br="Avatar",[el,Yp]=Ee(br),[tl,so]=el(br),rl=f.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[o,a]=f.useState("idle");return b.jsx(tl,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:b.jsx(J.span,{...n,ref:t})})});rl.displayName=br;var lo="AvatarImage",nl=f.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:o=()=>{},...a}=e,i=so(lo,r),s=al(n,a),u=ke(l=>{o(l),i.onImageLoadingStatusChange(l)});return de(()=>{s!=="idle"&&u(s)},[s,u]),s==="loaded"?b.jsx(J.img,{...a,ref:t,src:n}):null});nl.displayName=lo;var co="AvatarFallback",ol=f.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...o}=e,a=so(co,r),[i,s]=f.useState(n===void 0);return f.useEffect(()=>{if(n!==void 0){const u=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(u)}},[n]),i&&a.imageLoadingStatus!=="loaded"?b.jsx(J.span,{...o,ref:t}):null});ol.displayName=co;function uo(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function al(e,{referrerPolicy:t,crossOrigin:r}){const n=Js(),o=f.useRef(null),a=n?(o.current||(o.current=new window.Image),o.current):null,[i,s]=f.useState(()=>uo(a,e));return de(()=>{s(uo(a,e))},[a,e]),de(()=>{const u=c=>()=>{s(c)};if(!a)return;const l=u("loaded"),p=u("error");return a.addEventListener("load",l),a.addEventListener("error",p),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",l),a.removeEventListener("error",p)}},[a,r,t]),i}const il=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sl=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),fo=e=>{const t=sl(e);return t.charAt(0).toUpperCase()+t.slice(1)},po=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),ll=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var cl={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"};const ul=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>P.createElement("svg",{ref:u,...cl,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:po("lucide",o),...!a&&!ll(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,p])=>P.createElement(l,p)),...Array.isArray(a)?a:[a]])),Be=(e,t)=>{const r=P.forwardRef(({className:n,...o},a)=>P.createElement(ul,{ref:a,iconNode:t,className:po(`lucide-${il(fo(e))}`,`lucide-${e}`,n),...o}));return r.displayName=fo(e),r};Be("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Be("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Be("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),Be("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Be("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Be("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);const dl=ts("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 wr({className:e,variant:t="default",size:r="default",asChild:n=!1,...o}){const a=n?eo:"button";return b.jsx(a,{"data-slot":"button","data-variant":t,"data-size":r,className:se(dl({variant:t,size:r,className:e})),...o})}function xr({className:e,...t}){return b.jsx("div",{"data-slot":"card",className:se("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function _r({className:e,...t}){return b.jsx("div",{"data-slot":"card-header",className:se("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function Er({className:e,...t}){return b.jsx("div",{"data-slot":"card-title",className:se("leading-none font-semibold",e),...t})}function kr({className:e,...t}){return b.jsx("div",{"data-slot":"card-description",className:se("text-muted-foreground text-sm",e),...t})}function Rr({className:e,...t}){return b.jsx("div",{"data-slot":"card-content",className:se("px-6",e),...t})}function F(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),r===!1||!n.defaultPrevented)return t?.(n)}}var fl=f[" useInsertionEffect ".trim().toString()]||de;function mo({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[o,a,i]=pl({defaultProp:t,onChange:r}),s=e!==void 0,u=s?e:o;{const p=f.useRef(e!==void 0);f.useEffect(()=>{const c=p.current;c!==s&&console.warn(`${n} is changing from ${c?"controlled":"uncontrolled"} to ${s?"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.`),p.current=s},[s,n])}const l=f.useCallback(p=>{if(s){const c=ml(p)?p(e):p;c!==e&&i.current?.(c)}else a(p)},[s,e,a,i]);return[u,l]}function pl({defaultProp:e,onChange:t}){const[r,n]=f.useState(e),o=f.useRef(r),a=f.useRef(t);return fl(()=>{a.current=t},[t]),f.useEffect(()=>{o.current!==r&&(a.current?.(r),o.current=r)},[r,o]),[r,n,a]}function ml(e){return typeof e=="function"}function gl(e,t){return f.useReducer((r,n)=>t[r][n]??r,e)}var je=e=>{const{present:t,children:r}=e,n=hl(t),o=typeof r=="function"?r({present:n.isPresent}):f.Children.only(r),a=Q(n.ref,yl(o));return typeof r=="function"||n.isPresent?f.cloneElement(o,{ref:a}):null};je.displayName="Presence";function hl(e){const[t,r]=f.useState(),n=f.useRef(null),o=f.useRef(e),a=f.useRef("none"),i=e?"mounted":"unmounted",[s,u]=gl(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Ct(n.current);a.current=s==="mounted"?l:"none"},[s]),de(()=>{const l=n.current,p=o.current;if(p!==e){const c=a.current,d=Ct(l);e?u("MOUNT"):d==="none"||l?.display==="none"?u("UNMOUNT"):u(p&&c!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),de(()=>{if(t){let l;const p=t.ownerDocument.defaultView??window,c=m=>{const y=Ct(n.current).includes(CSS.escape(m.animationName));if(m.target===t&&y&&(u("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",l=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},d=m=>{m.target===t&&(a.current=Ct(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{p.clearTimeout(l),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:f.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Ct(e){return e?.animationName||"none"}function yl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vl=f[" useId ".trim().toString()]||(()=>{}),bl=0;function go(e){const[t,r]=f.useState(vl());return de(()=>{r(n=>n??String(bl++))},[e]),e||(t?`radix-${t}`:"")}var Ot="Collapsible",[wl,tm]=Ee(Ot),[xl,Sr]=wl(Ot),_l=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:n,defaultOpen:o,disabled:a,onOpenChange:i,...s}=e,[u,l]=mo({prop:n,defaultProp:o??!1,onChange:i,caller:Ot});return b.jsx(xl,{scope:r,disabled:a,contentId:go(),open:u,onOpenToggle:f.useCallback(()=>l(p=>!p),[l]),children:b.jsx(J.div,{"data-state":Or(u),"data-disabled":a?"":void 0,...s,ref:t})})});_l.displayName=Ot;var ho="CollapsibleTrigger",El=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,...n}=e,o=Sr(ho,r);return b.jsx(J.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Or(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...n,ref:t,onClick:F(e.onClick,o.onOpenToggle)})});El.displayName=ho;var Cr="CollapsibleContent",kl=f.forwardRef((e,t)=>{const{forceMount:r,...n}=e,o=Sr(Cr,e.__scopeCollapsible);return b.jsx(je,{present:r||o.open,children:({present:a})=>b.jsx(Rl,{...n,ref:t,present:a})})});kl.displayName=Cr;var Rl=f.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:n,children:o,...a}=e,i=Sr(Cr,r),[s,u]=f.useState(n),l=f.useRef(null),p=Q(t,l),c=f.useRef(0),d=c.current,m=f.useRef(0),y=m.current,g=i.open||s,v=f.useRef(g),w=f.useRef(void 0);return f.useEffect(()=>{const x=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(x)},[]),de(()=>{const x=l.current;if(x){w.current=w.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const E=x.getBoundingClientRect();c.current=E.height,m.current=E.width,v.current||(x.style.transitionDuration=w.current.transitionDuration,x.style.animationName=w.current.animationName),u(n)}},[i.open,n]),b.jsx(J.div,{"data-state":Or(i.open),"data-disabled":i.disabled?"":void 0,id:i.contentId,hidden:!g,...a,ref:p,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...e.style},children:g&&o})});function Or(e){return e?"open":"closed"}function yo(e){const t=e+"CollectionProvider",[r,n]=Ee(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:v,children:w}=g,x=P.useRef(null),E=P.useRef(new Map).current;return b.jsx(o,{scope:v,itemMap:E,collectionRef:x,children:w})};i.displayName=t;const s=e+"CollectionSlot",u=Ue(s),l=P.forwardRef((g,v)=>{const{scope:w,children:x}=g,E=a(s,w),_=Q(v,E.collectionRef);return b.jsx(u,{ref:_,children:x})});l.displayName=s;const p=e+"CollectionItemSlot",c="data-radix-collection-item",d=Ue(p),m=P.forwardRef((g,v)=>{const{scope:w,children:x,...E}=g,_=P.useRef(null),C=Q(v,_),T=a(p,w);return P.useEffect(()=>(T.itemMap.set(_,{ref:_,...E}),()=>{T.itemMap.delete(_)})),b.jsx(d,{[c]:"",ref:C,children:x})});m.displayName=p;function y(g){const v=a(e+"CollectionConsumer",g);return P.useCallback(()=>{const w=v.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${c}]`));return Array.from(v.itemMap.values()).sort((E,_)=>x.indexOf(E.ref.current)-x.indexOf(_.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,n]}var Sl=f.createContext(void 0);function Cl(e){const t=f.useContext(Sl);return e||t||"ltr"}function Ol(e,t=globalThis?.document){const r=ke(e);f.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var jl="DismissableLayer",jr="dismissableLayer.update",Tl="dismissableLayer.pointerDownOutside",Nl="dismissableLayer.focusOutside",vo,bo=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),jt=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=e,l=f.useContext(bo),[p,c]=f.useState(null),d=p?.ownerDocument??globalThis?.document,[,m]=f.useState({}),y=Q(t,j=>c(j)),g=Array.from(l.layers),[v]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),x=p?g.indexOf(p):-1,E=l.layersWithOutsidePointerEventsDisabled.size>0,_=x>=w,C=Pl(j=>{const R=j.target,I=[...l.branches].some(U=>U.contains(R));!_||I||(o?.(j),i?.(j),j.defaultPrevented||s?.())},d),T=Ml(j=>{const R=j.target;[...l.branches].some(I=>I.contains(R))||(a?.(j),i?.(j),j.defaultPrevented||s?.())},d);return Ol(j=>{x===l.layers.size-1&&(n?.(j),!j.defaultPrevented&&s&&(j.preventDefault(),s()))},d),f.useEffect(()=>{if(p)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(vo=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(p)),l.layers.add(p),wo(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=vo)}},[p,d,r,l]),f.useEffect(()=>()=>{p&&(l.layers.delete(p),l.layersWithOutsidePointerEventsDisabled.delete(p),wo())},[p,l]),f.useEffect(()=>{const j=()=>m({});return document.addEventListener(jr,j),()=>document.removeEventListener(jr,j)},[]),b.jsx(J.div,{...u,ref:y,style:{pointerEvents:E?_?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,T.onFocusCapture),onBlurCapture:F(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,C.onPointerDownCapture)})});jt.displayName=jl;var Dl="DismissableLayerBranch",Al=f.forwardRef((e,t)=>{const r=f.useContext(bo),n=f.useRef(null),o=Q(t,n);return f.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),b.jsx(J.div,{...e,ref:o})});Al.displayName=Dl;function Pl(e,t=globalThis?.document){const r=ke(e),n=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){xo(Tl,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Ml(e,t=globalThis?.document){const r=ke(e),n=f.useRef(!1);return f.useEffect(()=>{const o=a=>{a.target&&!n.current&&xo(Nl,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function wo(){const e=new CustomEvent(jr);document.dispatchEvent(e)}function xo(e,t,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ro(o,a):o.dispatchEvent(a)}var Tr=0;function _o(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Eo()),document.body.insertAdjacentElement("beforeend",e[1]??Eo()),Tr++,()=>{Tr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Tr--}},[])}function Eo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Nr="focusScope.autoFocusOnMount",Dr="focusScope.autoFocusOnUnmount",ko={bubbles:!1,cancelable:!0},Ll="FocusScope",Ar=f.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,u]=f.useState(null),l=ke(o),p=ke(a),c=f.useRef(null),d=Q(t,g=>u(g)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(n){let g=function(E){if(m.paused||!s)return;const _=E.target;s.contains(_)?c.current=_:Te(c.current,{select:!0})},v=function(E){if(m.paused||!s)return;const _=E.relatedTarget;_!==null&&(s.contains(_)||Te(c.current,{select:!0}))},w=function(E){if(document.activeElement===document.body)for(const _ of E)_.removedNodes.length>0&&Te(s)};document.addEventListener("focusin",g),document.addEventListener("focusout",v);const x=new MutationObserver(w);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",v),x.disconnect()}}},[n,s,m.paused]),f.useEffect(()=>{if(s){Co.add(m);const g=document.activeElement;if(!s.contains(g)){const v=new CustomEvent(Nr,ko);s.addEventListener(Nr,l),s.dispatchEvent(v),v.defaultPrevented||(Il(Wl(Ro(s)),{select:!0}),document.activeElement===g&&Te(s))}return()=>{s.removeEventListener(Nr,l),setTimeout(()=>{const v=new CustomEvent(Dr,ko);s.addEventListener(Dr,p),s.dispatchEvent(v),v.defaultPrevented||Te(g??document.body,{select:!0}),s.removeEventListener(Dr,p),Co.remove(m)},0)}}},[s,l,p,m]);const y=f.useCallback(g=>{if(!r&&!n||m.paused)return;const v=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,w=document.activeElement;if(v&&w){const x=g.currentTarget,[E,_]=Fl(x);E&&_?!g.shiftKey&&w===_?(g.preventDefault(),r&&Te(E,{select:!0})):g.shiftKey&&w===E&&(g.preventDefault(),r&&Te(_,{select:!0})):w===x&&g.preventDefault()}},[r,n,m.paused]);return b.jsx(J.div,{tabIndex:-1,...i,ref:d,onKeyDown:y})});Ar.displayName=Ll;function Il(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Te(n,{select:t}),document.activeElement!==r)return}function Fl(e){const t=Ro(e),r=So(t,e),n=So(t.reverse(),e);return[r,n]}function Ro(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function So(e,t){for(const r of e)if(!Vl(r,{upTo:t}))return r}function Vl(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function zl(e){return e instanceof HTMLInputElement&&"select"in e}function Te(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&zl(e)&&t&&e.select()}}var Co=$l();function $l(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=Oo(e,t),e.unshift(t)},remove(t){e=Oo(e,t),e[0]?.resume()}}}function Oo(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Wl(e){return e.filter(t=>t.tagName!=="A")}const Ul=["top","right","bottom","left"],Ne=Math.min,le=Math.max,Tt=Math.round,Nt=Math.floor,he=e=>({x:e,y:e}),Bl={left:"right",right:"left",bottom:"top",top:"bottom"},Gl={start:"end",end:"start"};function Pr(e,t,r){return le(e,Ne(t,r))}function Re(e,t){return typeof e=="function"?e(t):e}function Se(e){return e.split("-")[0]}function Ge(e){return e.split("-")[1]}function Mr(e){return e==="x"?"y":"x"}function Lr(e){return e==="y"?"height":"width"}const Hl=new Set(["top","bottom"]);function ye(e){return Hl.has(Se(e))?"y":"x"}function Ir(e){return Mr(ye(e))}function Kl(e,t,r){r===void 0&&(r=!1);const n=Ge(e),o=Ir(e),a=Lr(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Dt(i)),[i,Dt(i)]}function Yl(e){const t=Dt(e);return[Fr(e),t,Fr(t)]}function Fr(e){return e.replace(/start|end/g,t=>Gl[t])}const jo=["left","right"],To=["right","left"],ql=["top","bottom"],Xl=["bottom","top"];function Zl(e,t,r){switch(e){case"top":case"bottom":return r?t?To:jo:t?jo:To;case"left":case"right":return t?ql:Xl;default:return[]}}function Jl(e,t,r,n){const o=Ge(e);let a=Zl(Se(e),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),t&&(a=a.concat(a.map(Fr)))),a}function Dt(e){return e.replace(/left|right|bottom|top/g,t=>Bl[t])}function Ql(e){return{top:0,right:0,bottom:0,left:0,...e}}function No(e){return typeof e!="number"?Ql(e):{top:e,right:e,bottom:e,left:e}}function At(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function Do(e,t,r){let{reference:n,floating:o}=e;const a=ye(t),i=Ir(t),s=Lr(i),u=Se(t),l=a==="y",p=n.x+n.width/2-o.width/2,c=n.y+n.height/2-o.height/2,d=n[s]/2-o[s]/2;let m;switch(u){case"top":m={x:p,y:n.y-o.height};break;case"bottom":m={x:p,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:c};break;case"left":m={x:n.x-o.width,y:c};break;default:m={x:n.x,y:n.y}}switch(Ge(t)){case"start":m[i]-=d*(r&&l?-1:1);break;case"end":m[i]+=d*(r&&l?-1:1);break}return m}const ec=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:c}=Do(l,n,u),d=n,m={},y=0;for(let g=0;g<s.length;g++){const{name:v,fn:w}=s[g],{x,y:E,data:_,reset:C}=await w({x:p,y:c,initialPlacement:n,placement:d,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});p=x??p,c=E??c,m={...m,[v]:{...m[v],..._}},C&&y<=50&&(y++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(l=C.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):C.rects),{x:p,y:c}=Do(l,d,u)),g=-1)}return{x:p,y:c,placement:d,strategy:o,middlewareData:m}};async function lt(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=e,{boundary:l="clippingAncestors",rootBoundary:p="viewport",elementContext:c="floating",altBoundary:d=!1,padding:m=0}=Re(t,e),y=No(m),g=s[d?c==="floating"?"reference":"floating":c],v=At(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(g)))==null||r?g:g.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:p,strategy:u})),w=c==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=At(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:u}):w);return{top:(v.top-_.top+y.top)/E.y,bottom:(_.bottom-v.bottom+y.bottom)/E.y,left:(v.left-_.left+y.left)/E.x,right:(_.right-v.right+y.right)/E.x}}const tc=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=t,{element:l,padding:p=0}=Re(e,t)||{};if(l==null)return{};const c=No(p),d={x:r,y:n},m=Ir(o),y=Lr(m),g=await i.getDimensions(l),v=m==="y",w=v?"top":"left",x=v?"bottom":"right",E=v?"clientHeight":"clientWidth",_=a.reference[y]+a.reference[m]-d[m]-a.floating[y],C=d[m]-a.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let j=T?T[E]:0;(!j||!await(i.isElement==null?void 0:i.isElement(T)))&&(j=s.floating[E]||a.floating[y]);const R=_/2-C/2,I=j/2-g[y]/2-1,U=Ne(c[w],I),B=Ne(c[x],I),q=U,Z=j-g[y]-B,W=j/2-g[y]/2+R,Y=Pr(q,W,Z),G=!u.arrow&&Ge(o)!=null&&W!==Y&&a.reference[y]/2-(W<q?U:B)-g[y]/2<0,H=G?W<q?W-q:W-Z:0;return{[m]:d[m]+H,data:{[m]:Y,centerOffset:W-Y-H,...G&&{alignmentOffset:H}},reset:G}}}),rc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=t,{mainAxis:p=!0,crossAxis:c=!0,fallbackPlacements:d,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...v}=Re(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const w=Se(o),x=ye(s),E=Se(s)===s,_=await(u.isRTL==null?void 0:u.isRTL(l.floating)),C=d||(E||!g?[Dt(s)]:Yl(s)),T=y!=="none";!d&&T&&C.push(...Jl(s,g,y,_));const j=[s,...C],R=await lt(t,v),I=[];let U=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&I.push(R[w]),c){const W=Kl(o,i,_);I.push(R[W[0]],R[W[1]])}if(U=[...U,{placement:o,overflows:I}],!I.every(W=>W<=0)){var B,q;const W=(((B=a.flip)==null?void 0:B.index)||0)+1,Y=j[W];if(Y&&(!(c==="alignment"&&x!==ye(Y))||U.every(H=>ye(H.placement)===x?H.overflows[0]>0:!0)))return{data:{index:W,overflows:U},reset:{placement:Y}};let G=(q=U.filter(H=>H.overflows[0]<=0).sort((H,k)=>H.overflows[1]-k.overflows[1])[0])==null?void 0:q.placement;if(!G)switch(m){case"bestFit":{var Z;const H=(Z=U.filter(k=>{if(T){const N=ye(k.placement);return N===x||N==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(N=>N>0).reduce((N,h)=>N+h,0)]).sort((k,N)=>k[1]-N[1])[0])==null?void 0:Z[0];H&&(G=H);break}case"initialPlacement":G=s;break}if(o!==G)return{reset:{placement:G}}}return{}}}};function Ao(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Po(e){return Ul.some(t=>e[t]>=0)}const nc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:n="referenceHidden",...o}=Re(e,t);switch(n){case"referenceHidden":{const a=await lt(t,{...o,elementContext:"reference"}),i=Ao(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Po(i)}}}case"escaped":{const a=await lt(t,{...o,altBoundary:!0}),i=Ao(a,r.floating);return{data:{escapedOffsets:i,escaped:Po(i)}}}default:return{}}}}},Mo=new Set(["left","top"]);async function oc(e,t){const{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=Se(r),s=Ge(r),u=ye(r)==="y",l=Mo.has(i)?-1:1,p=a&&u?-1:1,c=Re(t,e);let{mainAxis:d,crossAxis:m,alignmentAxis:y}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof y=="number"&&(m=s==="end"?y*-1:y),u?{x:m*p,y:d*l}:{x:d*l,y:m*p}}const ac=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=t,u=await oc(t,e);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},ic=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:v=>{let{x:w,y:x}=v;return{x:w,y:x}}},...u}=Re(e,t),l={x:r,y:n},p=await lt(t,u),c=ye(Se(o)),d=Mr(c);let m=l[d],y=l[c];if(a){const v=d==="y"?"top":"left",w=d==="y"?"bottom":"right",x=m+p[v],E=m-p[w];m=Pr(x,m,E)}if(i){const v=c==="y"?"top":"left",w=c==="y"?"bottom":"right",x=y+p[v],E=y-p[w];y=Pr(x,y,E)}const g=s.fn({...t,[d]:m,[c]:y});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[d]:a,[c]:i}}}}}},sc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Re(e,t),p={x:r,y:n},c=ye(o),d=Mr(c);let m=p[d],y=p[c];const g=Re(s,t),v=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const E=d==="y"?"height":"width",_=a.reference[d]-a.floating[E]+v.mainAxis,C=a.reference[d]+a.reference[E]-v.mainAxis;m<_?m=_:m>C&&(m=C)}if(l){var w,x;const E=d==="y"?"width":"height",_=Mo.has(Se(o)),C=a.reference[c]-a.floating[E]+(_&&((w=i.offset)==null?void 0:w[c])||0)+(_?0:v.crossAxis),T=a.reference[c]+a.reference[E]+(_?0:((x=i.offset)==null?void 0:x[c])||0)-(_?v.crossAxis:0);y<C?y=C:y>T&&(y=T)}return{[d]:m,[c]:y}}}},lc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:u=()=>{},...l}=Re(e,t),p=await lt(t,l),c=Se(o),d=Ge(o),m=ye(o)==="y",{width:y,height:g}=a.floating;let v,w;c==="top"||c==="bottom"?(v=c,w=d===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(w=c,v=d==="end"?"top":"bottom");const x=g-p.top-p.bottom,E=y-p.left-p.right,_=Ne(g-p[v],x),C=Ne(y-p[w],E),T=!t.middlewareData.shift;let j=_,R=C;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(R=E),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(j=x),T&&!d){const U=le(p.left,0),B=le(p.right,0),q=le(p.top,0),Z=le(p.bottom,0);m?R=y-2*(U!==0||B!==0?U+B:le(p.left,p.right)):j=g-2*(q!==0||Z!==0?q+Z:le(p.top,p.bottom))}await u({...t,availableWidth:R,availableHeight:j});const I=await i.getDimensions(s.floating);return y!==I.width||g!==I.height?{reset:{rects:!0}}:{}}}};function Pt(){return typeof window<"u"}function He(e){return Lo(e)?(e.nodeName||"").toLowerCase():"#document"}function ce(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ve(e){var t;return(t=(Lo(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lo(e){return Pt()?e instanceof Node||e instanceof ce(e).Node:!1}function me(e){return Pt()?e instanceof Element||e instanceof ce(e).Element:!1}function be(e){return Pt()?e instanceof HTMLElement||e instanceof ce(e).HTMLElement:!1}function Io(e){return!Pt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ce(e).ShadowRoot}const cc=new Set(["inline","contents"]);function ct(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!cc.has(o)}const uc=new Set(["table","td","th"]);function dc(e){return uc.has(He(e))}const fc=[":popover-open",":modal"];function Mt(e){return fc.some(t=>{try{return e.matches(t)}catch{return!1}})}const pc=["transform","translate","scale","rotate","perspective"],mc=["transform","translate","scale","rotate","perspective","filter"],gc=["paint","layout","strict","content"];function Vr(e){const t=zr(),r=me(e)?ge(e):e;return pc.some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||mc.some(n=>(r.willChange||"").includes(n))||gc.some(n=>(r.contain||"").includes(n))}function hc(e){let t=De(e);for(;be(t)&&!Ke(t);){if(Vr(t))return t;if(Mt(t))return null;t=De(t)}return null}function zr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const yc=new Set(["html","body","#document"]);function Ke(e){return yc.has(He(e))}function ge(e){return ce(e).getComputedStyle(e)}function Lt(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function De(e){if(He(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Io(e)&&e.host||ve(e);return Io(t)?t.host:t}function Fo(e){const t=De(e);return Ke(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&ct(t)?t:Fo(t)}function ut(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const o=Fo(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),i=ce(o);if(a){const s=$r(i);return t.concat(i,i.visualViewport||[],ct(o)?o:[],s&&r?ut(s):[])}return t.concat(o,ut(o,[],r))}function $r(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vo(e){const t=ge(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=be(e),a=o?e.offsetWidth:r,i=o?e.offsetHeight:n,s=Tt(r)!==a||Tt(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function Wr(e){return me(e)?e:e.contextElement}function Ye(e){const t=Wr(e);if(!be(t))return he(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:a}=Vo(t);let i=(a?Tt(r.width):r.width)/n,s=(a?Tt(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const vc=he(0);function zo(e){const t=ce(e);return!zr()||!t.visualViewport?vc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function bc(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==ce(e)?!1:t}function Pe(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const o=e.getBoundingClientRect(),a=Wr(e);let i=he(1);t&&(n?me(n)&&(i=Ye(n)):i=Ye(e));const s=bc(a,r,n)?zo(a):he(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,p=o.width/i.x,c=o.height/i.y;if(a){const d=ce(a),m=n&&me(n)?ce(n):n;let y=d,g=$r(y);for(;g&&n&&m!==y;){const v=Ye(g),w=g.getBoundingClientRect(),x=ge(g),E=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*v.x,_=w.top+(g.clientTop+parseFloat(x.paddingTop))*v.y;u*=v.x,l*=v.y,p*=v.x,c*=v.y,u+=E,l+=_,y=ce(g),g=$r(y)}}return At({width:p,height:c,x:u,y:l})}function It(e,t){const r=Lt(e).scrollLeft;return t?t.left+r:Pe(ve(e)).left+r}function $o(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-It(e,r),o=r.top+t.scrollTop;return{x:n,y:o}}function wc(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const a=o==="fixed",i=ve(n),s=t?Mt(t.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=he(1);const p=he(0),c=be(n);if((c||!c&&!a)&&((He(n)!=="body"||ct(i))&&(u=Lt(n)),be(n))){const m=Pe(n);l=Ye(n),p.x=m.x+n.clientLeft,p.y=m.y+n.clientTop}const d=i&&!c&&!a?$o(i,u):he(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+p.x+d.x,y:r.y*l.y-u.scrollTop*l.y+p.y+d.y}}function xc(e){return Array.from(e.getClientRects())}function _c(e){const t=ve(e),r=Lt(e),n=e.ownerDocument.body,o=le(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=le(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+It(e);const s=-r.scrollTop;return ge(n).direction==="rtl"&&(i+=le(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Wo=25;function Ec(e,t){const r=ce(e),n=ve(e),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const p=zr();(!p||p&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=It(n);if(l<=0){const p=n.ownerDocument,c=p.body,d=getComputedStyle(c),m=p.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,y=Math.abs(n.clientWidth-c.clientWidth-m);y<=Wo&&(a-=y)}else l<=Wo&&(a+=l);return{width:a,height:i,x:s,y:u}}const kc=new Set(["absolute","fixed"]);function Rc(e,t){const r=Pe(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=be(e)?Ye(e):he(1),i=e.clientWidth*a.x,s=e.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function Uo(e,t,r){let n;if(t==="viewport")n=Ec(e,r);else if(t==="document")n=_c(ve(e));else if(me(t))n=Rc(t,r);else{const o=zo(e);n={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return At(n)}function Bo(e,t){const r=De(e);return r===t||!me(r)||Ke(r)?!1:ge(r).position==="fixed"||Bo(r,t)}function Sc(e,t){const r=t.get(e);if(r)return r;let n=ut(e,[],!1).filter(s=>me(s)&&He(s)!=="body"),o=null;const a=ge(e).position==="fixed";let i=a?De(e):e;for(;me(i)&&!Ke(i);){const s=ge(i),u=Vr(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&o&&kc.has(o.position)||ct(i)&&!u&&Bo(e,i))?n=n.filter(l=>l!==i):o=s,i=De(i)}return t.set(e,n),n}function Cc(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Mt(t)?[]:Sc(t,this._c):[].concat(r),n],i=a[0],s=a.reduce((u,l)=>{const p=Uo(t,l,o);return u.top=le(p.top,u.top),u.right=Ne(p.right,u.right),u.bottom=Ne(p.bottom,u.bottom),u.left=le(p.left,u.left),u},Uo(t,i,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Oc(e){const{width:t,height:r}=Vo(e);return{width:t,height:r}}function jc(e,t,r){const n=be(t),o=ve(t),a=r==="fixed",i=Pe(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const u=he(0);function l(){u.x=It(o)}if(n||!n&&!a)if((He(t)!=="body"||ct(o))&&(s=Lt(t)),n){const m=Pe(t,!0,a,t);u.x=m.x+t.clientLeft,u.y=m.y+t.clientTop}else o&&l();a&&!n&&o&&l();const p=o&&!n&&!a?$o(o,s):he(0),c=i.left+s.scrollLeft-u.x-p.x,d=i.top+s.scrollTop-u.y-p.y;return{x:c,y:d,width:i.width,height:i.height}}function Ur(e){return ge(e).position==="static"}function Go(e,t){if(!be(e)||ge(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ve(e)===r&&(r=r.ownerDocument.body),r}function Ho(e,t){const r=ce(e);if(Mt(e))return r;if(!be(e)){let o=De(e);for(;o&&!Ke(o);){if(me(o)&&!Ur(o))return o;o=De(o)}return r}let n=Go(e,t);for(;n&&dc(n)&&Ur(n);)n=Go(n,t);return n&&Ke(n)&&Ur(n)&&!Vr(n)?r:n||hc(e)||r}const Tc=async function(e){const t=this.getOffsetParent||Ho,r=this.getDimensions,n=await r(e.floating);return{reference:jc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Nc(e){return ge(e).direction==="rtl"}const Dc={convertOffsetParentRelativeRectToViewportRelativeRect:wc,getDocumentElement:ve,getClippingRect:Cc,getOffsetParent:Ho,getElementRects:Tc,getClientRects:xc,getDimensions:Oc,getScale:Ye,isElement:me,isRTL:Nc};function Ko(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ac(e,t){let r=null,n;const o=ve(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=e.getBoundingClientRect(),{left:p,top:c,width:d,height:m}=l;if(s||t(),!d||!m)return;const y=Nt(c),g=Nt(o.clientWidth-(p+d)),v=Nt(o.clientHeight-(c+m)),w=Nt(p),x={rootMargin:-y+"px "+-g+"px "+-v+"px "+-w+"px",threshold:le(0,Ne(1,u))||1};let E=!0;function _(C){const T=C[0].intersectionRatio;if(T!==u){if(!E)return i();T?i(!1,T):n=setTimeout(()=>{i(!1,1e-7)},1e3)}T===1&&!Ko(l,e.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(_,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(_,x)}r.observe(e)}return i(!0),a}function Pc(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=Wr(e),p=o||a?[...l?ut(l):[],...ut(t)]:[];p.forEach(w=>{o&&w.addEventListener("scroll",r,{passive:!0}),a&&w.addEventListener("resize",r)});const c=l&&s?Ac(l,r):null;let d=-1,m=null;i&&(m=new ResizeObserver(w=>{let[x]=w;x&&x.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),r()}),l&&!u&&m.observe(l),m.observe(t));let y,g=u?Pe(e):null;u&&v();function v(){const w=Pe(e);g&&!Ko(g,w)&&r(),g=w,y=requestAnimationFrame(v)}return r(),()=>{var w;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),c?.(),(w=m)==null||w.disconnect(),m=null,u&&cancelAnimationFrame(y)}}const Mc=ac,Lc=ic,Ic=rc,Fc=lc,Vc=nc,Yo=tc,zc=sc,$c=(e,t,r)=>{const n=new Map,o={platform:Dc,...r},a={...o.platform,_c:n};return ec(e,t,{...o,platform:a})};var Wc=typeof document<"u",Uc=function(){},Ft=Wc?P.useLayoutEffect:Uc;function Vt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Vt(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!Vt(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function qo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xo(e,t){const r=qo(e);return Math.round(t*r)/r}function Br(e){const t=f.useRef(e);return Ft(()=>{t.current=e}),t}function Bc(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=e,[p,c]=f.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,m]=f.useState(n);Vt(d,n)||m(n);const[y,g]=f.useState(null),[v,w]=f.useState(null),x=f.useCallback(k=>{k!==T.current&&(T.current=k,g(k))},[]),E=f.useCallback(k=>{k!==j.current&&(j.current=k,w(k))},[]),_=a||y,C=i||v,T=f.useRef(null),j=f.useRef(null),R=f.useRef(p),I=u!=null,U=Br(u),B=Br(o),q=Br(l),Z=f.useCallback(()=>{if(!T.current||!j.current)return;const k={placement:t,strategy:r,middleware:d};B.current&&(k.platform=B.current),$c(T.current,j.current,k).then(N=>{const h={...N,isPositioned:q.current!==!1};W.current&&!Vt(R.current,h)&&(R.current=h,hr.flushSync(()=>{c(h)}))})},[d,t,r,B,q]);Ft(()=>{l===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,c(k=>({...k,isPositioned:!1})))},[l]);const W=f.useRef(!1);Ft(()=>(W.current=!0,()=>{W.current=!1}),[]),Ft(()=>{if(_&&(T.current=_),C&&(j.current=C),_&&C){if(U.current)return U.current(_,C,Z);Z()}},[_,C,Z,U,I]);const Y=f.useMemo(()=>({reference:T,floating:j,setReference:x,setFloating:E}),[x,E]),G=f.useMemo(()=>({reference:_,floating:C}),[_,C]),H=f.useMemo(()=>{const k={position:r,left:0,top:0};if(!G.floating)return k;const N=Xo(G.floating,p.x),h=Xo(G.floating,p.y);return s?{...k,transform:"translate("+N+"px, "+h+"px)",...qo(G.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:N,top:h}},[r,s,G.floating,p.x,p.y]);return f.useMemo(()=>({...p,update:Z,refs:Y,elements:G,floatingStyles:H}),[p,Z,Y,G,H])}const Gc=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Yo({element:n.current,padding:o}).fn(r):{}:n?Yo({element:n,padding:o}).fn(r):{}}}},Hc=(e,t)=>({...Mc(e),options:[e,t]}),Kc=(e,t)=>({...Lc(e),options:[e,t]}),Yc=(e,t)=>({...zc(e),options:[e,t]}),qc=(e,t)=>({...Ic(e),options:[e,t]}),Xc=(e,t)=>({...Fc(e),options:[e,t]}),Zc=(e,t)=>({...Vc(e),options:[e,t]}),Jc=(e,t)=>({...Gc(e),options:[e,t]});var Qc="Arrow",Zo=f.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...a}=e;return b.jsx(J.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zo.displayName=Qc;var eu=Zo;function tu(e){const[t,r]=f.useState(void 0);return de(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=e.offsetWidth,s=e.offsetHeight;r({width:i,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var Jo="Popper",[Qo,zt]=Ee(Jo),[rm,ea]=Qo(Jo),ta="PopperAnchor",ra=f.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=ea(ta,r),i=f.useRef(null),s=Q(t,i),u=f.useRef(null);return f.useEffect(()=>{const l=u.current;u.current=n?.current||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:b.jsx(J.div,{...o,ref:s})});ra.displayName=ta;var Gr="PopperContent",[ru,nu]=Qo(Gr),na=f.forwardRef((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:p=0,sticky:c="partial",hideWhenDetached:d=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,v=ea(Gr,r),[w,x]=f.useState(null),E=Q(t,V=>x(V)),[_,C]=f.useState(null),T=tu(_),j=T?.width??0,R=T?.height??0,I=n+(a!=="center"?"-"+a:""),U=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},B=Array.isArray(l)?l:[l],q=B.length>0,Z={padding:U,boundary:B.filter(au),altBoundary:q},{refs:W,floatingStyles:Y,placement:G,isPositioned:H,middlewareData:k}=Bc({strategy:"fixed",placement:I,whileElementsMounted:(...V)=>Pc(...V,{animationFrame:m==="always"}),elements:{reference:v.anchor},middleware:[Hc({mainAxis:o+R,alignmentAxis:i}),u&&Kc({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?Yc():void 0,...Z}),u&&qc({...Z}),Xc({...Z,apply:({elements:V,rects:z,availableWidth:ee,availableHeight:ie})=>{const{width:Ce,height:rt}=z.reference,lr=V.floating.style;lr.setProperty("--radix-popper-available-width",`${ee}px`),lr.setProperty("--radix-popper-available-height",`${ie}px`),lr.setProperty("--radix-popper-anchor-width",`${Ce}px`),lr.setProperty("--radix-popper-anchor-height",`${rt}px`)}}),_&&Jc({element:_,padding:s}),iu({arrowWidth:j,arrowHeight:R}),d&&Zc({strategy:"referenceHidden",...Z})]}),[N,h]=ia(G),S=ke(y);de(()=>{H&&S?.()},[H,S]);const M=k.arrow?.x,L=k.arrow?.y,K=k.arrow?.centerOffset!==0,[X,oe]=f.useState();return de(()=>{w&&oe(window.getComputedStyle(w).zIndex)},[w]),b.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:H?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:X,"--radix-popper-transform-origin":[k.transformOrigin?.x,k.transformOrigin?.y].join(" "),...k.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(ru,{scope:r,placedSide:N,onArrowChange:C,arrowX:M,arrowY:L,shouldHideArrow:K,children:b.jsx(J.div,{"data-side":N,"data-align":h,...g,ref:E,style:{...g.style,animation:H?void 0:"none"}})})})});na.displayName=Gr;var oa="PopperArrow",ou={top:"bottom",right:"left",bottom:"top",left:"right"},aa=f.forwardRef(function(e,t){const{__scopePopper:r,...n}=e,o=nu(oa,r),a=ou[o.placedSide];return b.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:b.jsx(eu,{...n,ref:t,style:{...n.style,display:"block"}})})});aa.displayName=oa;function au(e){return e!==null}var iu=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:n,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[u,l]=ia(r),p={start:"0%",center:"50%",end:"100%"}[l],c=(o.arrow?.x??0)+i/2,d=(o.arrow?.y??0)+s/2;let m="",y="";return u==="bottom"?(m=a?p:`${c}px`,y=`${-s}px`):u==="top"?(m=a?p:`${c}px`,y=`${n.floating.height+s}px`):u==="right"?(m=`${-s}px`,y=a?p:`${d}px`):u==="left"&&(m=`${n.floating.width+s}px`,y=a?p:`${d}px`),{data:{x:m,y}}}});function ia(e){const[t,r="center"]=e.split("-");return[t,r]}var sa=ra,la=na,ca=aa,su="Portal",lu=f.forwardRef((e,t)=>{const{container:r,...n}=e,[o,a]=f.useState(!1);de(()=>a(!0),[]);const i=r||o&&globalThis?.document?.body;return i?$s.createPortal(b.jsx(J.div,{...n,ref:t}),i):null});lu.displayName=su;var Hr="rovingFocusGroup.onEntryFocus",cu={bubbles:!1,cancelable:!0},dt="RovingFocusGroup",[Kr,ua,uu]=yo(dt),[du,da]=Ee(dt,[uu]),[fu,pu]=du(dt),fa=f.forwardRef((e,t)=>b.jsx(Kr.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Kr.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(mu,{...e,ref:t})})}));fa.displayName=dt;var mu=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:p=!1,...c}=e,d=f.useRef(null),m=Q(t,d),y=Cl(a),[g,v]=mo({prop:i,defaultProp:s??null,onChange:u,caller:dt}),[w,x]=f.useState(!1),E=ke(l),_=ua(r),C=f.useRef(!1),[T,j]=f.useState(0);return f.useEffect(()=>{const R=d.current;if(R)return R.addEventListener(Hr,E),()=>R.removeEventListener(Hr,E)},[E]),b.jsx(fu,{scope:r,orientation:n,dir:y,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(R=>v(R),[v]),onItemShiftTab:f.useCallback(()=>x(!0),[]),onFocusableItemAdd:f.useCallback(()=>j(R=>R+1),[]),onFocusableItemRemove:f.useCallback(()=>j(R=>R-1),[]),children:b.jsx(J.div,{tabIndex:w||T===0?-1:0,"data-orientation":n,...c,ref:m,style:{outline:"none",...e.style},onMouseDown:F(e.onMouseDown,()=>{C.current=!0}),onFocus:F(e.onFocus,R=>{const I=!C.current;if(R.target===R.currentTarget&&I&&!w){const U=new CustomEvent(Hr,cu);if(R.currentTarget.dispatchEvent(U),!U.defaultPrevented){const B=_().filter(Y=>Y.focusable),q=B.find(Y=>Y.active),Z=B.find(Y=>Y.id===g),W=[q,Z,...B].filter(Boolean).map(Y=>Y.ref.current);ga(W,p)}}C.current=!1}),onBlur:F(e.onBlur,()=>x(!1))})})}),pa="RovingFocusGroupItem",ma=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=e,u=go(),l=a||u,p=pu(pa,r),c=p.currentTabStopId===l,d=ua(r),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=p;return f.useEffect(()=>{if(n)return m(),()=>y()},[n,m,y]),b.jsx(Kr.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:b.jsx(J.span,{tabIndex:c?0:-1,"data-orientation":p.orientation,...s,ref:t,onMouseDown:F(e.onMouseDown,v=>{n?p.onItemFocus(l):v.preventDefault()}),onFocus:F(e.onFocus,()=>p.onItemFocus(l)),onKeyDown:F(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){p.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const w=yu(v,p.orientation,p.dir);if(w!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let x=d().filter(E=>E.focusable).map(E=>E.ref.current);if(w==="last")x.reverse();else if(w==="prev"||w==="next"){w==="prev"&&x.reverse();const E=x.indexOf(v.currentTarget);x=p.loop?vu(x,E+1):x.slice(E+1)}setTimeout(()=>ga(x))}}),children:typeof i=="function"?i({isCurrentTabStop:c,hasTabStop:g!=null}):i})})});ma.displayName=pa;var gu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function hu(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yu(e,t,r){const n=hu(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return gu[n]}function ga(e,t=!1){const r=document.activeElement;for(const n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function vu(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var bu=fa,wu=ma,xu=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},qe=new WeakMap,$t=new WeakMap,Wt={},Yr=0,ha=function(e){return e&&(e.host||ha(e.parentNode))},_u=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=ha(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Eu=function(e,t,r,n){var o=_u(t,Array.isArray(e)?e:[e]);Wt[r]||(Wt[r]=new WeakMap);var a=Wt[r],i=[],s=new Set,u=new Set(o),l=function(c){!c||s.has(c)||(s.add(c),l(c.parentNode))};o.forEach(l);var p=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(d){if(s.has(d))p(d);else try{var m=d.getAttribute(n),y=m!==null&&m!=="false",g=(qe.get(d)||0)+1,v=(a.get(d)||0)+1;qe.set(d,g),a.set(d,v),i.push(d),g===1&&y&&$t.set(d,!0),v===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(w){console.error("aria-hidden: cannot operate on ",d,w)}})};return p(t),s.clear(),Yr++,function(){i.forEach(function(c){var d=qe.get(c)-1,m=a.get(c)-1;qe.set(c,d),a.set(c,m),d||($t.has(c)||c.removeAttribute(n),$t.delete(c)),m||c.removeAttribute(r)}),Yr--,Yr||(qe=new WeakMap,qe=new WeakMap,$t=new WeakMap,Wt={})}},ya=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=xu(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),Eu(n,o,r,"aria-hidden")):function(){return null}},we=function(){return we=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},we.apply(this,arguments)};function va(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ku(e,t,r){for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Ut="right-scroll-bar-position",Bt="width-before-scroll-bar",Ru="with-scroll-bars-hidden",Su="--removed-body-scroll-bar-size";function qr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Cu(e,t){var r=P.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var Ou=typeof window<"u"?f.useLayoutEffect:f.useEffect,ba=new WeakMap;function ju(e,t){var r=Cu(null,function(n){return e.forEach(function(o){return qr(o,n)})});return Ou(function(){var n=ba.get(r);if(n){var o=new Set(n),a=new Set(e),i=r.current;o.forEach(function(s){a.has(s)||qr(s,null)}),a.forEach(function(s){o.has(s)||qr(s,i)})}ba.set(r,e)},[e]),r}function Tu(e){return e}function Nu(e,t){t===void 0&&(t=Tu);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var i=t(a,n);return r.push(i),function(){r=r.filter(function(s){return s!==i})}},assignSyncMedium:function(a){for(n=!0;r.length;){var i=r;r=[],i.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var i=[];if(r.length){var s=r;r=[],s.forEach(a),i=r}var u=function(){var p=i;i=[],p.forEach(a)},l=function(){return Promise.resolve().then(u)};l(),r={push:function(p){i.push(p),l()},filter:function(p){return i=i.filter(p),r}}}};return o}function Du(e){e===void 0&&(e={});var t=Nu(null);return t.options=we({async:!0,ssr:!1},e),t}var wa=function(e){var t=e.sideCar,r=va(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return f.createElement(n,we({},r))};wa.isSideCarExport=!0;function Au(e,t){return e.useMedium(t),wa}var xa=Du(),Xr=function(){},Gt=f.forwardRef(function(e,t){var r=f.useRef(null),n=f.useState({onScrollCapture:Xr,onWheelCapture:Xr,onTouchMoveCapture:Xr}),o=n[0],a=n[1],i=e.forwardProps,s=e.children,u=e.className,l=e.removeScrollBar,p=e.enabled,c=e.shards,d=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,v=e.allowPinchZoom,w=e.as,x=w===void 0?"div":w,E=e.gapMode,_=va(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,T=ju([r,t]),j=we(we({},_),o);return f.createElement(f.Fragment,null,p&&f.createElement(C,{sideCar:xa,removeScrollBar:l,shards:c,noRelative:m,noIsolation:y,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:E}),i?f.cloneElement(f.Children.only(s),we(we({},j),{ref:T})):f.createElement(x,we({},j,{className:u,ref:T}),s))});Gt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Gt.classNames={fullWidth:Bt,zeroRight:Ut};var Pu=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Mu(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Pu();return t&&e.setAttribute("nonce",t),e}function Lu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Iu(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Fu=function(){var e=0,t=null;return{add:function(r){e==0&&(t=Mu())&&(Lu(t,r),Iu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Vu=function(){var e=Fu();return function(t,r){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},_a=function(){var e=Vu(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},zu={left:0,top:0,right:0,gap:0},Zr=function(e){return parseInt(e||"",10)||0},$u=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zr(r),Zr(n),Zr(o)]},Wu=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return zu;var t=$u(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Uu=_a(),Xe="data-scroll-locked",Bu=function(e,t,r,n){var o=e.left,a=e.top,i=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
16
|
+
.`.concat(Ru,` {
|
|
17
17
|
overflow: hidden `).concat(n,`;
|
|
18
18
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
19
19
|
}
|
|
@@ -47,18 +47,18 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
body[`).concat(Xe,`] {
|
|
50
|
-
`).concat(
|
|
50
|
+
`).concat(Su,": ").concat(s,`px;
|
|
51
51
|
}
|
|
52
|
-
`)},Ea=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},
|
|
52
|
+
`)},Ea=function(){var e=parseInt(document.body.getAttribute(Xe)||"0",10);return isFinite(e)?e:0},Gu=function(){f.useEffect(function(){return document.body.setAttribute(Xe,(Ea()+1).toString()),function(){var e=Ea()-1;e<=0?document.body.removeAttribute(Xe):document.body.setAttribute(Xe,e.toString())}},[])},Hu=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;Gu();var a=f.useMemo(function(){return Wu(o)},[o]);return f.createElement(Uu,{styles:Bu(a,!t,o,r?"":"!important")})},Jr=!1;if(typeof window<"u")try{var Ht=Object.defineProperty({},"passive",{get:function(){return Jr=!0,!0}});window.addEventListener("test",Ht,Ht),window.removeEventListener("test",Ht,Ht)}catch{Jr=!1}var Ze=Jr?{passive:!1}:!1,Ku=function(e){return e.tagName==="TEXTAREA"},ka=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ku(e)&&r[t]==="visible")},Yu=function(e){return ka(e,"overflowY")},qu=function(e){return ka(e,"overflowX")},Ra=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Sa(e,n);if(o){var a=Ca(e,n),i=a[1],s=a[2];if(i>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},Xu=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Zu=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Sa=function(e,t){return e==="v"?Yu(t):qu(t)},Ca=function(e,t){return e==="v"?Xu(t):Zu(t)},Ju=function(e,t){return e==="h"&&t==="rtl"?-1:1},Qu=function(e,t,r,n,o){var a=Ju(e,window.getComputedStyle(t).direction),i=a*n,s=r.target,u=t.contains(s),l=!1,p=i>0,c=0,d=0;do{if(!s)break;var m=Ca(e,s),y=m[0],g=m[1],v=m[2],w=g-v-a*y;(y||w)&&Sa(e,s)&&(c+=w,d+=y);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(p&&Math.abs(c)<1||!p&&Math.abs(d)<1)&&(l=!0),l},Kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Oa=function(e){return[e.deltaX,e.deltaY]},ja=function(e){return e&&"current"in e?e.current:e},ed=function(e,t){return e[0]===t[0]&&e[1]===t[1]},td=function(e){return`
|
|
53
53
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
54
54
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
55
|
-
`)},ed=0,Je=[];function td(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(ed++)[0],a=f.useState(_a)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=_u([e.lockRef.current],(e.shards||[]).map(ja)).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=Kt(g),x=r.current,E="deltaX"in g?g.deltaX:x[0]-w[0],_="deltaY"in g?g.deltaY:x[1]-w[1],C,T=g.target,j=Math.abs(E)>Math.abs(_)?"h":"v";if("touches"in g&&j==="h"&&T.type==="range")return!1;var R=window.getSelection(),I=R&&R.anchorNode,U=I?I===T||I.contains(T):!1;if(U)return!1;var B=Ra(j,T);if(!B)return!0;if(B?C=j:(C=j==="v"?"h":"v",B=Ra(j,T)),!B)return!1;if(!n.current&&"changedTouches"in g&&(E||_)&&(n.current=C),!C)return!0;var q=n.current||C;return Zu(q,v,g,q==="h"?E:_)},[]),u=f.useCallback(function(g){var v=g;if(!(!Je.length||Je[Je.length-1]!==a)){var w="deltaY"in v?Oa(v):Kt(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&Ju(C.delta,w)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var E=(i.current.shards||[]).map(ja).filter(Boolean).filter(function(C){return C.contains(v.target)}),_=E.length>0?s(v,E[0]):!i.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),l=f.useCallback(function(g,v,w,x){var E={name:g,delta:v,target:w,should:x,shadowParent:rd(w)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(_){return _!==E})},1)},[]),p=f.useCallback(function(g){r.current=Kt(g),n.current=void 0},[]),c=f.useCallback(function(g){l(g.type,Oa(g),g.target,s(g,e.lockRef.current))},[]),d=f.useCallback(function(g){l(g.type,Kt(g),g.target,s(g,e.lockRef.current))},[]);f.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",u,Ze),document.addEventListener("touchmove",u,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(g){return g!==a}),document.removeEventListener("wheel",u,Ze),document.removeEventListener("touchmove",u,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var m=e.removeScrollBar,y=e.inert;return f.createElement(f.Fragment,null,y?f.createElement(a,{styles:Qu(o)}):null,m?f.createElement(Bu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function rd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const nd=Nu(xa,td);var Qr=f.forwardRef(function(e,t){return f.createElement(Gt,we({},e,{ref:t,sideCar:nd}))});Qr.classNames=Gt.classNames;var en=["Enter"," "],od=["ArrowDown","PageUp","Home"],Ta=["ArrowUp","PageDown","End"],ad=[...od,...Ta],id={ltr:[...en,"ArrowRight"],rtl:[...en,"ArrowLeft"]},sd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yt="Menu",[ft,ld,cd]=yo(Yt),[Me,Na]=Ee(Yt,[cd,zt,da]),tn=zt(),Da=da(),[rm,Qe]=Me(Yt),[nm,pt]=Me(Yt),ud="MenuAnchor",rn=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=tn(r);return b.jsx(sa,{...o,...n,ref:t})});rn.displayName=ud;var dd="MenuPortal",[om,Aa]=Me(dd,{forceMount:void 0}),fe="MenuContent",[fd,nn]=Me(fe),Pa=f.forwardRef((e,t)=>{const r=Aa(fe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Qe(fe,e.__scopeMenu),i=pt(fe,e.__scopeMenu);return b.jsx(ft.Provider,{scope:e.__scopeMenu,children:b.jsx(je,{present:n||a.open,children:b.jsx(ft.Slot,{scope:e.__scopeMenu,children:i.modal?b.jsx(pd,{...o,ref:t}):b.jsx(md,{...o,ref:t})})})})}),pd=f.forwardRef((e,t)=>{const r=Qe(fe,e.__scopeMenu),n=f.useRef(null),o=Q(t,n);return f.useEffect(()=>{const a=n.current;if(a)return ya(a)},[]),b.jsx(on,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),md=f.forwardRef((e,t)=>{const r=Qe(fe,e.__scopeMenu);return b.jsx(on,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),gd=Ue("MenuContent.ScrollLock"),on=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:c,onInteractOutside:d,onDismiss:m,disableOutsideScroll:y,...g}=e,v=Qe(fe,r),w=pt(fe,r),x=tn(r),E=Da(r),_=ld(r),[C,T]=f.useState(null),j=f.useRef(null),R=Q(t,j,v.onContentChange),I=f.useRef(0),U=f.useRef(""),B=f.useRef(0),q=f.useRef(null),Z=f.useRef("right"),W=f.useRef(0),Y=y?Qr:f.Fragment,G=y?{as:gd,allowPinchZoom:!0}:void 0,H=N=>{const h=U.current+N,S=_().filter(V=>!V.disabled),M=document.activeElement,L=S.find(V=>V.ref.current===M)?.textValue,K=S.map(V=>V.textValue),X=Cd(K,h,L),oe=S.find(V=>V.textValue===X)?.ref.current;(function V(z){U.current=z,window.clearTimeout(I.current),z!==""&&(I.current=window.setTimeout(()=>V(""),1e3))})(h),oe&&setTimeout(()=>oe.focus())};f.useEffect(()=>()=>window.clearTimeout(I.current),[]),_o();const k=f.useCallback(N=>Z.current===q.current?.side&&jd(N,q.current?.area),[]);return b.jsx(fd,{scope:r,searchRef:U,onItemEnter:f.useCallback(N=>{k(N)&&N.preventDefault()},[k]),onItemLeave:f.useCallback(N=>{k(N)||(j.current?.focus(),T(null))},[k]),onTriggerLeave:f.useCallback(N=>{k(N)&&N.preventDefault()},[k]),pointerGraceTimerRef:B,onPointerGraceIntentChange:f.useCallback(N=>{q.current=N},[]),children:b.jsx(Y,{...G,children:b.jsx(Ar,{asChild:!0,trapped:o,onMountAutoFocus:F(a,N=>{N.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:b.jsx(jt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:c,onInteractOutside:d,onDismiss:m,children:b.jsx(yu,{asChild:!0,...E,dir:w.dir,orientation:"vertical",loop:n,currentTabStopId:C,onCurrentTabStopIdChange:T,onEntryFocus:F(u,N=>{w.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(la,{role:"menu","aria-orientation":"vertical","data-state":Za(v.open),"data-radix-menu-content":"",dir:w.dir,...x,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:F(g.onKeyDown,N=>{const h=N.target.closest("[data-radix-menu-content]")===N.currentTarget,S=N.ctrlKey||N.altKey||N.metaKey,M=N.key.length===1;h&&(N.key==="Tab"&&N.preventDefault(),!S&&M&&H(N.key));const L=j.current;if(N.target!==L||!ad.includes(N.key))return;N.preventDefault();const K=_().filter(X=>!X.disabled).map(X=>X.ref.current);Ta.includes(N.key)&&K.reverse(),Rd(K)}),onBlur:F(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(I.current),U.current="")}),onPointerMove:F(e.onPointerMove,gt(N=>{const h=N.target,S=W.current!==N.clientX;if(N.currentTarget.contains(h)&&S){const M=N.clientX>W.current?"right":"left";Z.current=M,W.current=N.clientX}}))})})})})})})});Pa.displayName=fe;var hd="MenuGroup",an=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"group",...n,ref:t})});an.displayName=hd;var yd="MenuLabel",Ma=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{...n,ref:t})});Ma.displayName=yd;var qt="MenuItem",La="menu.itemSelect",Xt=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=f.useRef(null),i=pt(qt,e.__scopeMenu),s=nn(qt,e.__scopeMenu),u=Q(t,a),l=f.useRef(!1),p=()=>{const c=a.current;if(!r&&c){const d=new CustomEvent(La,{bubbles:!0,cancelable:!0});c.addEventListener(La,m=>n?.(m),{once:!0}),ro(c,d),d.defaultPrevented?l.current=!1:i.onClose()}};return b.jsx(Ia,{...o,ref:u,disabled:r,onClick:F(e.onClick,p),onPointerDown:c=>{e.onPointerDown?.(c),l.current=!0},onPointerUp:F(e.onPointerUp,c=>{l.current||c.currentTarget?.click()}),onKeyDown:F(e.onKeyDown,c=>{const d=s.searchRef.current!=="";r||d&&c.key===" "||en.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});Xt.displayName=qt;var Ia=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=nn(qt,r),s=Da(r),u=f.useRef(null),l=Q(t,u),[p,c]=f.useState(!1),[d,m]=f.useState("");return f.useEffect(()=>{const y=u.current;y&&m((y.textContent??"").trim())},[a.children]),b.jsx(ft.ItemSlot,{scope:r,disabled:n,textValue:o??d,children:b.jsx(vu,{asChild:!0,...s,focusable:!n,children:b.jsx(J.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:F(e.onPointerMove,gt(y=>{n?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,gt(y=>i.onItemLeave(y))),onFocus:F(e.onFocus,()=>c(!0)),onBlur:F(e.onBlur,()=>c(!1))})})})}),vd="MenuCheckboxItem",Fa=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return b.jsx(Ua,{scope:e.__scopeMenu,checked:r,children:b.jsx(Xt,{role:"menuitemcheckbox","aria-checked":Zt(r)?"mixed":r,...o,ref:t,"data-state":ln(r),onSelect:F(o.onSelect,()=>n?.(Zt(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Fa.displayName=vd;var Va="MenuRadioGroup",[bd,wd]=Me(Va,{value:void 0,onValueChange:()=>{}}),za=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=ke(n);return b.jsx(bd,{scope:e.__scopeMenu,value:r,onValueChange:a,children:b.jsx(an,{...o,ref:t})})});za.displayName=Va;var $a="MenuRadioItem",Wa=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=wd($a,e.__scopeMenu),a=r===o.value;return b.jsx(Ua,{scope:e.__scopeMenu,checked:a,children:b.jsx(Xt,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":ln(a),onSelect:F(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Wa.displayName=$a;var sn="MenuItemIndicator",[Ua,xd]=Me(sn,{checked:!1}),Ba=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=xd(sn,r);return b.jsx(je,{present:n||Zt(a.checked)||a.checked===!0,children:b.jsx(J.span,{...o,ref:t,"data-state":ln(a.checked)})})});Ba.displayName=sn;var _d="MenuSeparator",Ga=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Ga.displayName=_d;var Ed="MenuArrow",Ha=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=tn(r);return b.jsx(ca,{...o,...n,ref:t})});Ha.displayName=Ed;var kd="MenuSub",[am,Ka]=Me(kd),mt="MenuSubTrigger",Ya=f.forwardRef((e,t)=>{const r=Qe(mt,e.__scopeMenu),n=pt(mt,e.__scopeMenu),o=Ka(mt,e.__scopeMenu),a=nn(mt,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),u(null)}},[s,u]),b.jsx(rn,{asChild:!0,...l,children:b.jsx(Ia,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Za(r.open),...e,ref:st(t,o.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,gt(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:F(e.onPointerLeave,gt(c=>{p();const d=r.content?.getBoundingClientRect();if(d){const m=r.content?.dataset.side,y=m==="right",g=y?-5:5,v=d[y?"left":"right"],w=d[y?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:v,y:d.top},{x:w,y:d.top},{x:w,y:d.bottom},{x:v,y:d.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,c=>{const d=a.searchRef.current!=="";e.disabled||d&&c.key===" "||id[n.dir].includes(c.key)&&(r.onOpenChange(!0),r.content?.focus(),c.preventDefault())})})})});Ya.displayName=mt;var qa="MenuSubContent",Xa=f.forwardRef((e,t)=>{const r=Aa(fe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Qe(fe,e.__scopeMenu),i=pt(fe,e.__scopeMenu),s=Ka(qa,e.__scopeMenu),u=f.useRef(null),l=Q(t,u);return b.jsx(ft.Provider,{scope:e.__scopeMenu,children:b.jsx(je,{present:n||a.open,children:b.jsx(ft.Slot,{scope:e.__scopeMenu,children:b.jsx(on,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{i.isUsingKeyboardRef.current&&u.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:F(e.onFocusOutside,p=>{p.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:F(e.onKeyDown,p=>{const c=p.currentTarget.contains(p.target),d=sd[i.dir].includes(p.key);c&&d&&(a.onOpenChange(!1),s.trigger?.focus(),p.preventDefault())})})})})})});Xa.displayName=qa;function Za(e){return e?"open":"closed"}function Zt(e){return e==="indeterminate"}function ln(e){return Zt(e)?"indeterminate":e?"checked":"unchecked"}function Rd(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Sd(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Cd(e,t,r){const n=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=Sd(e,Math.max(o,0));n.length===1&&(a=a.filter(s=>s!==r));const i=a.find(s=>s.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}function Od(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],u=t[i],l=s.x,p=s.y,c=u.x,d=u.y;p>n!=d>n&&r<(c-l)*(n-p)/(d-p)+l&&(o=!o)}return o}function jd(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Od(r,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Td=rn,Nd=Pa,Dd=an,Ad=Ma,Pd=Xt,Md=Fa,Ld=za,Id=Wa,Fd=Ba,Vd=Ga,zd=Ha,$d=Ya,Wd=Xa,Ja="DropdownMenu",[Ud,im]=Ee(Ja,[Na]),ce=Na(),[sm,Qa]=Ud(Ja),ei="DropdownMenuTrigger",Bd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Qa(ei,r),i=ce(r);return b.jsx(Td,{asChild:!0,...i,children:b.jsx(J.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:st(t,a.triggerRef),onPointerDown:F(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:F(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Bd.displayName=ei;var ti="DropdownMenuContent",Gd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Qa(ti,r),a=ce(r),i=f.useRef(!1);return b.jsx(Nd,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:F(e.onInteractOutside,s=>{const u=s.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,p=u.button===2||l;(!o.modal||p)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Gd.displayName=ti;var Hd="DropdownMenuGroup",Kd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Dd,{...o,...n,ref:t})});Kd.displayName=Hd;var Yd="DropdownMenuLabel",qd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Ad,{...o,...n,ref:t})});qd.displayName=Yd;var Xd="DropdownMenuItem",Zd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Pd,{...o,...n,ref:t})});Zd.displayName=Xd;var Jd="DropdownMenuCheckboxItem",Qd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Md,{...o,...n,ref:t})});Qd.displayName=Jd;var ef="DropdownMenuRadioGroup",tf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Ld,{...o,...n,ref:t})});tf.displayName=ef;var rf="DropdownMenuRadioItem",nf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Id,{...o,...n,ref:t})});nf.displayName=rf;var of="DropdownMenuItemIndicator",af=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Fd,{...o,...n,ref:t})});af.displayName=of;var sf="DropdownMenuSeparator",lf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Vd,{...o,...n,ref:t})});lf.displayName=sf;var cf="DropdownMenuArrow",uf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(zd,{...o,...n,ref:t})});uf.displayName=cf;var df="DropdownMenuSubTrigger",ff=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx($d,{...o,...n,ref:t})});ff.displayName=df;var pf="DropdownMenuSubContent",mf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ce(r);return b.jsx(Wd,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});mf.displayName=pf;var gf="Label",ri=f.forwardRef((e,t)=>b.jsx(J.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ri.displayName=gf;var hf=ri;function ht({className:e,...t}){return b.jsx(hf,{"data-slot":"label",className:ue("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",e),...t})}var yf=Symbol.for("react.lazy"),Jt=f[" use ".trim().toString()];function vf(e){return typeof e=="object"&&e!==null&&"then"in e}function ni(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===yf&&"_payload"in e&&vf(e._payload)}function bf(e){const t=wf(e),r=f.forwardRef((n,o)=>{let{children:a,...i}=n;ni(a)&&typeof Jt=="function"&&(a=Jt(a._payload));const s=f.Children.toArray(a),u=s.find(_f);if(u){const l=u.props.children,p=s.map(c=>c===u?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,p):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function wf(e){const t=f.forwardRef((r,n)=>{let{children:o,...a}=r;if(ni(o)&&typeof Jt=="function"&&(o=Jt(o._payload)),f.isValidElement(o)){const i=kf(o),s=Ef(a,o.props);return o.type!==f.Fragment&&(s.ref=n?st(n,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var xf=Symbol("radix.slottable");function _f(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===xf}function Ef(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function kf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Rf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cn=Rf.reduce((e,t)=>{const r=bf(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Sf="Separator",oi="horizontal",Cf=["horizontal","vertical"],Of=f.forwardRef((e,t)=>{const{decorative:r,orientation:n=oi,...o}=e,a=jf(n)?n:oi,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return b.jsx(cn.div,{"data-orientation":a,...i,...o,ref:t})});Of.displayName=Sf;function jf(e){return Cf.includes(e)}function un({className:e,...t}){return b.jsx("p",{"data-slot":"field-description",className:ue("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",e),...t})}var Tf=e=>e.type==="checkbox",yt=e=>e instanceof Date,dn=e=>e==null;const ai=e=>typeof e=="object";var Le=e=>!dn(e)&&!Array.isArray(e)&&ai(e)&&!yt(e),Nf=e=>Le(e)&&e.target?Tf(e.target)?e.target.checked:e.target.value:e,Df=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Af=(e,t)=>e.has(Df(t)),Pf=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},Mf=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ii(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Mf&&(e instanceof Blob||n))&&(r||Le(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Pf(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=ii(e[o]));else return e;return t}var si=e=>/^\w*$/.test(e),fn=e=>e===void 0,Lf=e=>Array.isArray(e)?e.filter(Boolean):[],li=e=>Lf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,r)=>{if(!t||!Le(e))return r;const n=(si(t)?[t]:li(t)).reduce((o,a)=>dn(o)?o:o[a],e);return fn(n)||n===e?fn(e[t])?r:e[t]:n},pn=e=>typeof e=="boolean",ci=(e,t,r)=>{let n=-1;const o=si(t)?[t]:li(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let u=r;if(n!==i){const l=e[s];u=Le(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=u,e=e[s]}};const ui={BLUR:"blur",CHANGE:"change"},di={all:"all"},mn=P.createContext(null);mn.displayName="HookFormContext";const Qt=()=>P.useContext(mn),If=e=>{const{children:t,...r}=e;return P.createElement(mn.Provider,{value:r},t)};var Ff=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==di.all&&(t._proxyFormState[i]=!n||di.all),r&&(r[i]=!0),e[i]}});return o};const fi=typeof window<"u"?P.useLayoutEffect:P.useEffect;function pi(e){const t=Qt(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=P.useState(r._formState),u=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return fi(()=>r._subscribe({name:o,formState:u.current,exact:a,callback:l=>{!n&&s({...r._formState,...l})}}),[o,n,a]),P.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),P.useMemo(()=>Ff(i,r,u.current,!1),[i,r])}var Vf=e=>typeof e=="string",mi=(e,t,r,n,o)=>Vf(e)?ae(r,e,o):Array.isArray(e)?e.map(a=>ae(r,a)):r,gi=e=>dn(e)||!ai(e);function er(e,t,r=new WeakSet){if(gi(e)||gi(t))return Object.is(e,t);if(yt(e)&&yt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(yt(i)&&yt(s)||Le(i)&&Le(s)||Array.isArray(i)&&Array.isArray(s)?!er(i,s,r):!Object.is(i,s))return!1}}return!0}function zf(e){const t=Qt(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},u=P.useRef(o),l=P.useRef(s),p=P.useRef(void 0),c=P.useRef(r),d=P.useRef(n);l.current=s;const[m,y]=P.useState(()=>{const _=r._getWatch(n,u.current);return l.current?l.current(_):_}),g=P.useCallback(_=>{const C=mi(n,r._names,_||r._formValues,!1,u.current);return l.current?l.current(C):C},[r._formValues,r._names,n]),v=P.useCallback(_=>{if(!a){const C=mi(n,r._names,_||r._formValues,!1,u.current);if(l.current){const T=l.current(C);er(T,p.current)||(y(T),p.current=T)}else y(C)}},[r._formValues,r._names,a,n]);fi(()=>((c.current!==r||!er(d.current,n))&&(c.current=r,d.current=n,v()),r._subscribe({name:n,formState:{values:!0},exact:i,callback:_=>{v(_.values)}})),[r,i,n,v]),P.useEffect(()=>r._removeUnmounted());const w=c.current!==r,x=d.current,E=P.useMemo(()=>{if(a)return null;const _=!w&&!er(x,n);return w||_?g():null},[a,w,n,x,g]);return E!==null?E:m}function $f(e){const t=Qt(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,u=Af(o._names.array,r),l=P.useMemo(()=>ae(o._formValues,r,ae(o._defaultValues,r,i)),[o,r,i]),p=zf({control:o,name:r,defaultValue:l,exact:s}),c=pi({control:o,name:r,exact:s}),d=P.useRef(e),m=P.useRef(void 0),y=P.useRef(o.register(r,{...e.rules,value:p,...pn(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const g=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!ae(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ae(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ae(c.validatingFields,r)},error:{enumerable:!0,get:()=>ae(c.errors,r)}}),[c,r]),v=P.useCallback(_=>y.current.onChange({target:{value:Nf(_),name:r},type:ui.CHANGE}),[r]),w=P.useCallback(()=>y.current.onBlur({target:{value:ae(o._formValues,r),name:r},type:ui.BLUR}),[r,o._formValues]),x=P.useCallback(_=>{const C=ae(o._fields,r);C&&_&&(C._f.ref={focus:()=>_.focus&&_.focus(),select:()=>_.select&&_.select(),setCustomValidity:T=>_.setCustomValidity(T),reportValidity:()=>_.reportValidity()})},[o._fields,r]),E=P.useMemo(()=>({name:r,value:p,...pn(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:v,onBlur:w,ref:x}),[r,n,c.disabled,v,w,x,p]);return P.useEffect(()=>{const _=o._options.shouldUnregister||a,C=m.current;C&&C!==r&&!u&&o.unregister(C),o.register(r,{...d.current.rules,...pn(d.current.disabled)?{disabled:d.current.disabled}:{}});const T=(j,R)=>{const I=ae(o._fields,j);I&&I._f&&(I._f.mount=R)};if(T(r,!0),_){const j=ii(ae(o._options.defaultValues,r,d.current.defaultValue));ci(o._defaultValues,r,j),fn(ae(o._formValues,r))&&ci(o._formValues,r,j)}return!u&&o.register(r),m.current=r,()=>{(u?_&&!o._state.action:_)?o.unregister(r):T(r,!1)}},[r,o,u,a]),P.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),P.useMemo(()=>({field:E,formState:c,fieldState:g}),[E,c,g])}const Wf=e=>e.render($f(e)),gn=If,hi=f.createContext({}),vt=({...e})=>b.jsx(hi.Provider,{value:{name:e.name},children:b.jsx(Wf,{...e})}),Uf=()=>{const e=f.useContext(hi),t=f.useContext(yi),{getFieldState:r}=Qt(),n=pi({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},yi=f.createContext({});function bt({className:e,...t}){const r=f.useId();return b.jsx(yi.Provider,{value:{id:r},children:b.jsx("div",{"data-slot":"form-item",className:ue("grid gap-2",e),...t})})}function wt({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=Uf();return b.jsx(eo,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function xt({className:e,type:t,...r}){return b.jsx("input",{type:t,"data-slot":"input",className:ue("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",e),...r})}function Bf(e,t=[]){let r=[];function n(a,i){const s=f.createContext(i);s.displayName=a+"Context";const u=r.length;r=[...r,i];const l=c=>{const{scope:d,children:m,...y}=c,g=d?.[e]?.[u]||s,v=f.useMemo(()=>y,Object.values(y));return b.jsx(g.Provider,{value:v,children:m})};l.displayName=a+"Provider";function p(c,d){const m=d?.[e]?.[u]||s,y=f.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,p]}const o=()=>{const a=r.map(i=>f.createContext(i));return function(i){const s=i?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,Gf(o,...t)]}function Gf(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((i,{useScope:s,scopeName:u})=>{const l=s(o)[`__scope${u}`];return{...i,...l}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var hn="Progress",yn=100,[Hf,lm]=Bf(hn),[Kf,Yf]=Hf(hn),qf=f.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Zf,...i}=e;(o||o===0)&&!wi(o)&&console.error(Jf(`${o}`,"Progress"));const s=wi(o)?o:yn;n!==null&&!xi(n,s)&&console.error(Qf(`${n}`,"Progress"));const u=xi(n,s)?n:null,l=tr(u)?a(u,s):void 0;return b.jsx(Kf,{scope:r,value:u,max:s,children:b.jsx(cn.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":tr(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":bi(u,s),"data-value":u??void 0,"data-max":s,...i,ref:t})})});qf.displayName=hn;var vi="ProgressIndicator",Xf=f.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=Yf(vi,r);return b.jsx(cn.div,{"data-state":bi(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Xf.displayName=vi;function Zf(e,t){return`${Math.round(e/t*100)}%`}function bi(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function tr(e){return typeof e=="number"}function wi(e){return tr(e)&&!isNaN(e)&&e>0}function xi(e,t){return tr(e)&&!isNaN(e)&&e<=t&&e>=0}function Jf(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yn}\`.`}function Qf(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
55
|
+
`)},rd=0,Je=[];function nd(e){var t=f.useRef([]),r=f.useRef([0,0]),n=f.useRef(),o=f.useState(rd++)[0],a=f.useState(_a)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=ku([e.lockRef.current],(e.shards||[]).map(ja)).filter(Boolean);return g.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=f.useCallback(function(g,v){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var w=Kt(g),x=r.current,E="deltaX"in g?g.deltaX:x[0]-w[0],_="deltaY"in g?g.deltaY:x[1]-w[1],C,T=g.target,j=Math.abs(E)>Math.abs(_)?"h":"v";if("touches"in g&&j==="h"&&T.type==="range")return!1;var R=window.getSelection(),I=R&&R.anchorNode,U=I?I===T||I.contains(T):!1;if(U)return!1;var B=Ra(j,T);if(!B)return!0;if(B?C=j:(C=j==="v"?"h":"v",B=Ra(j,T)),!B)return!1;if(!n.current&&"changedTouches"in g&&(E||_)&&(n.current=C),!C)return!0;var q=n.current||C;return Qu(q,v,g,q==="h"?E:_)},[]),u=f.useCallback(function(g){var v=g;if(!(!Je.length||Je[Je.length-1]!==a)){var w="deltaY"in v?Oa(v):Kt(v),x=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&ed(C.delta,w)})[0];if(x&&x.should){v.cancelable&&v.preventDefault();return}if(!x){var E=(i.current.shards||[]).map(ja).filter(Boolean).filter(function(C){return C.contains(v.target)}),_=E.length>0?s(v,E[0]):!i.current.noIsolation;_&&v.cancelable&&v.preventDefault()}}},[]),l=f.useCallback(function(g,v,w,x){var E={name:g,delta:v,target:w,should:x,shadowParent:od(w)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(_){return _!==E})},1)},[]),p=f.useCallback(function(g){r.current=Kt(g),n.current=void 0},[]),c=f.useCallback(function(g){l(g.type,Oa(g),g.target,s(g,e.lockRef.current))},[]),d=f.useCallback(function(g){l(g.type,Kt(g),g.target,s(g,e.lockRef.current))},[]);f.useEffect(function(){return Je.push(a),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:d}),document.addEventListener("wheel",u,Ze),document.addEventListener("touchmove",u,Ze),document.addEventListener("touchstart",p,Ze),function(){Je=Je.filter(function(g){return g!==a}),document.removeEventListener("wheel",u,Ze),document.removeEventListener("touchmove",u,Ze),document.removeEventListener("touchstart",p,Ze)}},[]);var m=e.removeScrollBar,y=e.inert;return f.createElement(f.Fragment,null,y?f.createElement(a,{styles:td(o)}):null,m?f.createElement(Hu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function od(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ad=Au(xa,nd);var Qr=f.forwardRef(function(e,t){return f.createElement(Gt,we({},e,{ref:t,sideCar:ad}))});Qr.classNames=Gt.classNames;var en=["Enter"," "],id=["ArrowDown","PageUp","Home"],Ta=["ArrowUp","PageDown","End"],sd=[...id,...Ta],ld={ltr:[...en,"ArrowRight"],rtl:[...en,"ArrowLeft"]},cd={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Yt="Menu",[ft,ud,dd]=yo(Yt),[Me,Na]=Ee(Yt,[dd,zt,da]),tn=zt(),Da=da(),[nm,Qe]=Me(Yt),[om,pt]=Me(Yt),fd="MenuAnchor",rn=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=tn(r);return b.jsx(sa,{...o,...n,ref:t})});rn.displayName=fd;var pd="MenuPortal",[am,Aa]=Me(pd,{forceMount:void 0}),fe="MenuContent",[md,nn]=Me(fe),Pa=f.forwardRef((e,t)=>{const r=Aa(fe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Qe(fe,e.__scopeMenu),i=pt(fe,e.__scopeMenu);return b.jsx(ft.Provider,{scope:e.__scopeMenu,children:b.jsx(je,{present:n||a.open,children:b.jsx(ft.Slot,{scope:e.__scopeMenu,children:i.modal?b.jsx(gd,{...o,ref:t}):b.jsx(hd,{...o,ref:t})})})})}),gd=f.forwardRef((e,t)=>{const r=Qe(fe,e.__scopeMenu),n=f.useRef(null),o=Q(t,n);return f.useEffect(()=>{const a=n.current;if(a)return ya(a)},[]),b.jsx(on,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),hd=f.forwardRef((e,t)=>{const r=Qe(fe,e.__scopeMenu);return b.jsx(on,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),yd=Ue("MenuContent.ScrollLock"),on=f.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEntryFocus:u,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:c,onInteractOutside:d,onDismiss:m,disableOutsideScroll:y,...g}=e,v=Qe(fe,r),w=pt(fe,r),x=tn(r),E=Da(r),_=ud(r),[C,T]=f.useState(null),j=f.useRef(null),R=Q(t,j,v.onContentChange),I=f.useRef(0),U=f.useRef(""),B=f.useRef(0),q=f.useRef(null),Z=f.useRef("right"),W=f.useRef(0),Y=y?Qr:f.Fragment,G=y?{as:yd,allowPinchZoom:!0}:void 0,H=N=>{const h=U.current+N,S=_().filter(V=>!V.disabled),M=document.activeElement,L=S.find(V=>V.ref.current===M)?.textValue,K=S.map(V=>V.textValue),X=jd(K,h,L),oe=S.find(V=>V.textValue===X)?.ref.current;(function V(z){U.current=z,window.clearTimeout(I.current),z!==""&&(I.current=window.setTimeout(()=>V(""),1e3))})(h),oe&&setTimeout(()=>oe.focus())};f.useEffect(()=>()=>window.clearTimeout(I.current),[]),_o();const k=f.useCallback(N=>Z.current===q.current?.side&&Nd(N,q.current?.area),[]);return b.jsx(md,{scope:r,searchRef:U,onItemEnter:f.useCallback(N=>{k(N)&&N.preventDefault()},[k]),onItemLeave:f.useCallback(N=>{k(N)||(j.current?.focus(),T(null))},[k]),onTriggerLeave:f.useCallback(N=>{k(N)&&N.preventDefault()},[k]),pointerGraceTimerRef:B,onPointerGraceIntentChange:f.useCallback(N=>{q.current=N},[]),children:b.jsx(Y,{...G,children:b.jsx(Ar,{asChild:!0,trapped:o,onMountAutoFocus:F(a,N=>{N.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:b.jsx(jt,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:p,onFocusOutside:c,onInteractOutside:d,onDismiss:m,children:b.jsx(bu,{asChild:!0,...E,dir:w.dir,orientation:"vertical",loop:n,currentTabStopId:C,onCurrentTabStopIdChange:T,onEntryFocus:F(u,N=>{w.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(la,{role:"menu","aria-orientation":"vertical","data-state":Za(v.open),"data-radix-menu-content":"",dir:w.dir,...x,...g,ref:R,style:{outline:"none",...g.style},onKeyDown:F(g.onKeyDown,N=>{const h=N.target.closest("[data-radix-menu-content]")===N.currentTarget,S=N.ctrlKey||N.altKey||N.metaKey,M=N.key.length===1;h&&(N.key==="Tab"&&N.preventDefault(),!S&&M&&H(N.key));const L=j.current;if(N.target!==L||!sd.includes(N.key))return;N.preventDefault();const K=_().filter(X=>!X.disabled).map(X=>X.ref.current);Ta.includes(N.key)&&K.reverse(),Cd(K)}),onBlur:F(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(I.current),U.current="")}),onPointerMove:F(e.onPointerMove,gt(N=>{const h=N.target,S=W.current!==N.clientX;if(N.currentTarget.contains(h)&&S){const M=N.clientX>W.current?"right":"left";Z.current=M,W.current=N.clientX}}))})})})})})})});Pa.displayName=fe;var vd="MenuGroup",an=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"group",...n,ref:t})});an.displayName=vd;var bd="MenuLabel",Ma=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{...n,ref:t})});Ma.displayName=bd;var qt="MenuItem",La="menu.itemSelect",Xt=f.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...o}=e,a=f.useRef(null),i=pt(qt,e.__scopeMenu),s=nn(qt,e.__scopeMenu),u=Q(t,a),l=f.useRef(!1),p=()=>{const c=a.current;if(!r&&c){const d=new CustomEvent(La,{bubbles:!0,cancelable:!0});c.addEventListener(La,m=>n?.(m),{once:!0}),ro(c,d),d.defaultPrevented?l.current=!1:i.onClose()}};return b.jsx(Ia,{...o,ref:u,disabled:r,onClick:F(e.onClick,p),onPointerDown:c=>{e.onPointerDown?.(c),l.current=!0},onPointerUp:F(e.onPointerUp,c=>{l.current||c.currentTarget?.click()}),onKeyDown:F(e.onKeyDown,c=>{const d=s.searchRef.current!=="";r||d&&c.key===" "||en.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});Xt.displayName=qt;var Ia=f.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,i=nn(qt,r),s=Da(r),u=f.useRef(null),l=Q(t,u),[p,c]=f.useState(!1),[d,m]=f.useState("");return f.useEffect(()=>{const y=u.current;y&&m((y.textContent??"").trim())},[a.children]),b.jsx(ft.ItemSlot,{scope:r,disabled:n,textValue:o??d,children:b.jsx(wu,{asChild:!0,...s,focusable:!n,children:b.jsx(J.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:l,onPointerMove:F(e.onPointerMove,gt(y=>{n?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:F(e.onPointerLeave,gt(y=>i.onItemLeave(y))),onFocus:F(e.onFocus,()=>c(!0)),onBlur:F(e.onBlur,()=>c(!1))})})})}),wd="MenuCheckboxItem",Fa=f.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:n,...o}=e;return b.jsx(Ua,{scope:e.__scopeMenu,checked:r,children:b.jsx(Xt,{role:"menuitemcheckbox","aria-checked":Zt(r)?"mixed":r,...o,ref:t,"data-state":ln(r),onSelect:F(o.onSelect,()=>n?.(Zt(r)?!0:!r),{checkForDefaultPrevented:!1})})})});Fa.displayName=wd;var Va="MenuRadioGroup",[xd,_d]=Me(Va,{value:void 0,onValueChange:()=>{}}),za=f.forwardRef((e,t)=>{const{value:r,onValueChange:n,...o}=e,a=ke(n);return b.jsx(xd,{scope:e.__scopeMenu,value:r,onValueChange:a,children:b.jsx(an,{...o,ref:t})})});za.displayName=Va;var $a="MenuRadioItem",Wa=f.forwardRef((e,t)=>{const{value:r,...n}=e,o=_d($a,e.__scopeMenu),a=r===o.value;return b.jsx(Ua,{scope:e.__scopeMenu,checked:a,children:b.jsx(Xt,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":ln(a),onSelect:F(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});Wa.displayName=$a;var sn="MenuItemIndicator",[Ua,Ed]=Me(sn,{checked:!1}),Ba=f.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:n,...o}=e,a=Ed(sn,r);return b.jsx(je,{present:n||Zt(a.checked)||a.checked===!0,children:b.jsx(J.span,{...o,ref:t,"data-state":ln(a.checked)})})});Ba.displayName=sn;var kd="MenuSeparator",Ga=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return b.jsx(J.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});Ga.displayName=kd;var Rd="MenuArrow",Ha=f.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,o=tn(r);return b.jsx(ca,{...o,...n,ref:t})});Ha.displayName=Rd;var Sd="MenuSub",[im,Ka]=Me(Sd),mt="MenuSubTrigger",Ya=f.forwardRef((e,t)=>{const r=Qe(mt,e.__scopeMenu),n=pt(mt,e.__scopeMenu),o=Ka(mt,e.__scopeMenu),a=nn(mt,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:u}=a,l={__scopeMenu:e.__scopeMenu},p=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>p,[p]),f.useEffect(()=>{const c=s.current;return()=>{window.clearTimeout(c),u(null)}},[s,u]),b.jsx(rn,{asChild:!0,...l,children:b.jsx(Ia,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Za(r.open),...e,ref:st(t,o.onTriggerChange),onClick:c=>{e.onClick?.(c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:F(e.onPointerMove,gt(c=>{a.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!r.open&&!i.current&&(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:F(e.onPointerLeave,gt(c=>{p();const d=r.content?.getBoundingClientRect();if(d){const m=r.content?.dataset.side,y=m==="right",g=y?-5:5,v=d[y?"left":"right"],w=d[y?"right":"left"];a.onPointerGraceIntentChange({area:[{x:c.clientX+g,y:c.clientY},{x:v,y:d.top},{x:w,y:d.top},{x:w,y:d.bottom},{x:v,y:d.bottom}],side:m}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(c),c.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:F(e.onKeyDown,c=>{const d=a.searchRef.current!=="";e.disabled||d&&c.key===" "||ld[n.dir].includes(c.key)&&(r.onOpenChange(!0),r.content?.focus(),c.preventDefault())})})})});Ya.displayName=mt;var qa="MenuSubContent",Xa=f.forwardRef((e,t)=>{const r=Aa(fe,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=Qe(fe,e.__scopeMenu),i=pt(fe,e.__scopeMenu),s=Ka(qa,e.__scopeMenu),u=f.useRef(null),l=Q(t,u);return b.jsx(ft.Provider,{scope:e.__scopeMenu,children:b.jsx(je,{present:n||a.open,children:b.jsx(ft.Slot,{scope:e.__scopeMenu,children:b.jsx(on,{id:s.contentId,"aria-labelledby":s.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{i.isUsingKeyboardRef.current&&u.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:F(e.onFocusOutside,p=>{p.target!==s.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:F(e.onEscapeKeyDown,p=>{i.onClose(),p.preventDefault()}),onKeyDown:F(e.onKeyDown,p=>{const c=p.currentTarget.contains(p.target),d=cd[i.dir].includes(p.key);c&&d&&(a.onOpenChange(!1),s.trigger?.focus(),p.preventDefault())})})})})})});Xa.displayName=qa;function Za(e){return e?"open":"closed"}function Zt(e){return e==="indeterminate"}function ln(e){return Zt(e)?"indeterminate":e?"checked":"unchecked"}function Cd(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Od(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function jd(e,t,r){const n=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=Od(e,Math.max(o,0));n.length===1&&(a=a.filter(s=>s!==r));const i=a.find(s=>s.toLowerCase().startsWith(n.toLowerCase()));return i!==r?i:void 0}function Td(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],u=t[i],l=s.x,p=s.y,c=u.x,d=u.y;p>n!=d>n&&r<(c-l)*(n-p)/(d-p)+l&&(o=!o)}return o}function Nd(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return Td(r,t)}function gt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Dd=rn,Ad=Pa,Pd=an,Md=Ma,Ld=Xt,Id=Fa,Fd=za,Vd=Wa,zd=Ba,$d=Ga,Wd=Ha,Ud=Ya,Bd=Xa,Ja="DropdownMenu",[Gd,sm]=Ee(Ja,[Na]),ue=Na(),[lm,Qa]=Gd(Ja),ei="DropdownMenuTrigger",Hd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=Qa(ei,r),i=ue(r);return b.jsx(Dd,{asChild:!0,...i,children:b.jsx(J.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:st(t,a.triggerRef),onPointerDown:F(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(a.onOpenToggle(),a.open||s.preventDefault())}),onKeyDown:F(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&a.onOpenToggle(),s.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})})});Hd.displayName=ei;var ti="DropdownMenuContent",Kd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=Qa(ti,r),a=ue(r),i=f.useRef(!1);return b.jsx(Ad,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:F(e.onCloseAutoFocus,s=>{i.current||o.triggerRef.current?.focus(),i.current=!1,s.preventDefault()}),onInteractOutside:F(e.onInteractOutside,s=>{const u=s.detail.originalEvent,l=u.button===0&&u.ctrlKey===!0,p=u.button===2||l;(!o.modal||p)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Kd.displayName=ti;var Yd="DropdownMenuGroup",qd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Pd,{...o,...n,ref:t})});qd.displayName=Yd;var Xd="DropdownMenuLabel",Zd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Md,{...o,...n,ref:t})});Zd.displayName=Xd;var Jd="DropdownMenuItem",Qd=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Ld,{...o,...n,ref:t})});Qd.displayName=Jd;var ef="DropdownMenuCheckboxItem",tf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Id,{...o,...n,ref:t})});tf.displayName=ef;var rf="DropdownMenuRadioGroup",nf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Fd,{...o,...n,ref:t})});nf.displayName=rf;var of="DropdownMenuRadioItem",af=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Vd,{...o,...n,ref:t})});af.displayName=of;var sf="DropdownMenuItemIndicator",lf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(zd,{...o,...n,ref:t})});lf.displayName=sf;var cf="DropdownMenuSeparator",uf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx($d,{...o,...n,ref:t})});uf.displayName=cf;var df="DropdownMenuArrow",ff=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Wd,{...o,...n,ref:t})});ff.displayName=df;var pf="DropdownMenuSubTrigger",mf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Ud,{...o,...n,ref:t})});mf.displayName=pf;var gf="DropdownMenuSubContent",hf=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,o=ue(r);return b.jsx(Bd,{...o,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hf.displayName=gf;var yf="Label",ri=f.forwardRef((e,t)=>b.jsx(J.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));ri.displayName=yf;var vf=ri;function ht({className:e,...t}){return b.jsx(vf,{"data-slot":"label",className:se("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",e),...t})}var bf=Symbol.for("react.lazy"),Jt=f[" use ".trim().toString()];function wf(e){return typeof e=="object"&&e!==null&&"then"in e}function ni(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===bf&&"_payload"in e&&wf(e._payload)}function xf(e){const t=_f(e),r=f.forwardRef((n,o)=>{let{children:a,...i}=n;ni(a)&&typeof Jt=="function"&&(a=Jt(a._payload));const s=f.Children.toArray(a),u=s.find(kf);if(u){const l=u.props.children,p=s.map(c=>c===u?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:c);return b.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,p):null})}return b.jsx(t,{...i,ref:o,children:a})});return r.displayName=`${e}.Slot`,r}function _f(e){const t=f.forwardRef((r,n)=>{let{children:o,...a}=r;if(ni(o)&&typeof Jt=="function"&&(o=Jt(o._payload)),f.isValidElement(o)){const i=Sf(o),s=Rf(a,o.props);return o.type!==f.Fragment&&(s.ref=n?st(n,i):i),f.cloneElement(o,s)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ef=Symbol("radix.slottable");function kf(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ef}function Rf(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...i)=>{const s=a(...i);return o(...i),s}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Sf(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Cf=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cn=Cf.reduce((e,t)=>{const r=xf(`Primitive.${t}`),n=f.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Of="Separator",oi="horizontal",jf=["horizontal","vertical"],Tf=f.forwardRef((e,t)=>{const{decorative:r,orientation:n=oi,...o}=e,a=Nf(n)?n:oi,i=r?{role:"none"}:{"aria-orientation":a==="vertical"?a:void 0,role:"separator"};return b.jsx(cn.div,{"data-orientation":a,...i,...o,ref:t})});Tf.displayName=Of;function Nf(e){return jf.includes(e)}function un({className:e,...t}){return b.jsx("p",{"data-slot":"field-description",className:se("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",e),...t})}var Df=e=>e.type==="checkbox",yt=e=>e instanceof Date,dn=e=>e==null;const ai=e=>typeof e=="object";var Le=e=>!dn(e)&&!Array.isArray(e)&&ai(e)&&!yt(e),Af=e=>Le(e)&&e.target?Df(e.target)?e.target.checked:e.target.value:e,Pf=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Mf=(e,t)=>e.has(Pf(t)),Lf=e=>{const t=e.constructor&&e.constructor.prototype;return Le(t)&&t.hasOwnProperty("isPrototypeOf")},If=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ii(e){let t;const r=Array.isArray(e),n=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(If&&(e instanceof Blob||n))&&(r||Le(e)))if(t=r?[]:Object.create(Object.getPrototypeOf(e)),!r&&!Lf(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=ii(e[o]));else return e;return t}var si=e=>/^\w*$/.test(e),fn=e=>e===void 0,Ff=e=>Array.isArray(e)?e.filter(Boolean):[],li=e=>Ff(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ae=(e,t,r)=>{if(!t||!Le(e))return r;const n=(si(t)?[t]:li(t)).reduce((o,a)=>dn(o)?o:o[a],e);return fn(n)||n===e?fn(e[t])?r:e[t]:n},pn=e=>typeof e=="boolean",ci=(e,t,r)=>{let n=-1;const o=si(t)?[t]:li(t),a=o.length,i=a-1;for(;++n<a;){const s=o[n];let u=r;if(n!==i){const l=e[s];u=Le(l)||Array.isArray(l)?l:isNaN(+o[n+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=u,e=e[s]}};const ui={BLUR:"blur",CHANGE:"change"},di={all:"all"},mn=P.createContext(null);mn.displayName="HookFormContext";const Qt=()=>P.useContext(mn),Vf=e=>{const{children:t,...r}=e;return P.createElement(mn.Provider,{value:r},t)};var zf=(e,t,r,n=!0)=>{const o={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(o,a,{get:()=>{const i=a;return t._proxyFormState[i]!==di.all&&(t._proxyFormState[i]=!n||di.all),r&&(r[i]=!0),e[i]}});return o};const fi=typeof window<"u"?P.useLayoutEffect:P.useEffect;function pi(e){const t=Qt(),{control:r=t.control,disabled:n,name:o,exact:a}=e||{},[i,s]=P.useState(r._formState),u=P.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return fi(()=>r._subscribe({name:o,formState:u.current,exact:a,callback:l=>{!n&&s({...r._formState,...l})}}),[o,n,a]),P.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),P.useMemo(()=>zf(i,r,u.current,!1),[i,r])}var $f=e=>typeof e=="string",mi=(e,t,r,n,o)=>$f(e)?ae(r,e,o):Array.isArray(e)?e.map(a=>ae(r,a)):r,gi=e=>dn(e)||!ai(e);function er(e,t,r=new WeakSet){if(gi(e)||gi(t))return Object.is(e,t);if(yt(e)&&yt(t))return e.getTime()===t.getTime();const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const a of n){const i=e[a];if(!o.includes(a))return!1;if(a!=="ref"){const s=t[a];if(yt(i)&&yt(s)||Le(i)&&Le(s)||Array.isArray(i)&&Array.isArray(s)?!er(i,s,r):!Object.is(i,s))return!1}}return!0}function Wf(e){const t=Qt(),{control:r=t.control,name:n,defaultValue:o,disabled:a,exact:i,compute:s}=e||{},u=P.useRef(o),l=P.useRef(s),p=P.useRef(void 0),c=P.useRef(r),d=P.useRef(n);l.current=s;const[m,y]=P.useState(()=>{const _=r._getWatch(n,u.current);return l.current?l.current(_):_}),g=P.useCallback(_=>{const C=mi(n,r._names,_||r._formValues,!1,u.current);return l.current?l.current(C):C},[r._formValues,r._names,n]),v=P.useCallback(_=>{if(!a){const C=mi(n,r._names,_||r._formValues,!1,u.current);if(l.current){const T=l.current(C);er(T,p.current)||(y(T),p.current=T)}else y(C)}},[r._formValues,r._names,a,n]);fi(()=>((c.current!==r||!er(d.current,n))&&(c.current=r,d.current=n,v()),r._subscribe({name:n,formState:{values:!0},exact:i,callback:_=>{v(_.values)}})),[r,i,n,v]),P.useEffect(()=>r._removeUnmounted());const w=c.current!==r,x=d.current,E=P.useMemo(()=>{if(a)return null;const _=!w&&!er(x,n);return w||_?g():null},[a,w,n,x,g]);return E!==null?E:m}function Uf(e){const t=Qt(),{name:r,disabled:n,control:o=t.control,shouldUnregister:a,defaultValue:i,exact:s=!0}=e,u=Mf(o._names.array,r),l=P.useMemo(()=>ae(o._formValues,r,ae(o._defaultValues,r,i)),[o,r,i]),p=Wf({control:o,name:r,defaultValue:l,exact:s}),c=pi({control:o,name:r,exact:s}),d=P.useRef(e),m=P.useRef(void 0),y=P.useRef(o.register(r,{...e.rules,value:p,...pn(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;const g=P.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ae(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!ae(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!ae(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!ae(c.validatingFields,r)},error:{enumerable:!0,get:()=>ae(c.errors,r)}}),[c,r]),v=P.useCallback(_=>y.current.onChange({target:{value:Af(_),name:r},type:ui.CHANGE}),[r]),w=P.useCallback(()=>y.current.onBlur({target:{value:ae(o._formValues,r),name:r},type:ui.BLUR}),[r,o._formValues]),x=P.useCallback(_=>{const C=ae(o._fields,r);C&&_&&(C._f.ref={focus:()=>_.focus&&_.focus(),select:()=>_.select&&_.select(),setCustomValidity:T=>_.setCustomValidity(T),reportValidity:()=>_.reportValidity()})},[o._fields,r]),E=P.useMemo(()=>({name:r,value:p,...pn(n)||c.disabled?{disabled:c.disabled||n}:{},onChange:v,onBlur:w,ref:x}),[r,n,c.disabled,v,w,x,p]);return P.useEffect(()=>{const _=o._options.shouldUnregister||a,C=m.current;C&&C!==r&&!u&&o.unregister(C),o.register(r,{...d.current.rules,...pn(d.current.disabled)?{disabled:d.current.disabled}:{}});const T=(j,R)=>{const I=ae(o._fields,j);I&&I._f&&(I._f.mount=R)};if(T(r,!0),_){const j=ii(ae(o._options.defaultValues,r,d.current.defaultValue));ci(o._defaultValues,r,j),fn(ae(o._formValues,r))&&ci(o._formValues,r,j)}return!u&&o.register(r),m.current=r,()=>{(u?_&&!o._state.action:_)?o.unregister(r):T(r,!1)}},[r,o,u,a]),P.useEffect(()=>{o._setDisabledField({disabled:n,name:r})},[n,r,o]),P.useMemo(()=>({field:E,formState:c,fieldState:g}),[E,c,g])}const Bf=e=>e.render(Uf(e)),gn=Vf,hi=f.createContext({}),vt=({...e})=>b.jsx(hi.Provider,{value:{name:e.name},children:b.jsx(Bf,{...e})}),yi=()=>{const e=f.useContext(hi),t=f.useContext(vi),{getFieldState:r}=Qt(),n=pi({name:e.name}),o=r(e.name,n);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:a}=t;return{id:a,name:e.name,formItemId:`${a}-form-item`,formDescriptionId:`${a}-form-item-description`,formMessageId:`${a}-form-item-message`,...o}},vi=f.createContext({});function bt({className:e,...t}){const r=f.useId();return b.jsx(vi.Provider,{value:{id:r},children:b.jsx("div",{"data-slot":"form-item",className:se("grid gap-2",e),...t})})}function wt({...e}){const{error:t,formItemId:r,formDescriptionId:n,formMessageId:o}=yi();return b.jsx(eo,{"data-slot":"form-control",id:r,"aria-describedby":t?`${n} ${o}`:`${n}`,"aria-invalid":!!t,...e})}function bi({className:e,...t}){const{error:r,formMessageId:n}=yi(),o=r?String(r?.message??""):t.children;return o?b.jsx("p",{"data-slot":"form-message",id:n,className:se("text-destructive text-sm",e),...t,children:o}):null}function xt({className:e,type:t,...r}){return b.jsx("input",{type:t,"data-slot":"input",className:se("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",e),...r})}function Gf(e,t=[]){let r=[];function n(a,i){const s=f.createContext(i);s.displayName=a+"Context";const u=r.length;r=[...r,i];const l=c=>{const{scope:d,children:m,...y}=c,g=d?.[e]?.[u]||s,v=f.useMemo(()=>y,Object.values(y));return b.jsx(g.Provider,{value:v,children:m})};l.displayName=a+"Provider";function p(c,d){const m=d?.[e]?.[u]||s,y=f.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${c}\` must be used within \`${a}\``)}return[l,p]}const o=()=>{const a=r.map(i=>f.createContext(i));return function(i){const s=i?.[e]||a;return f.useMemo(()=>({[`__scope${e}`]:{...i,[e]:s}}),[i,s])}};return o.scopeName=e,[n,Hf(o,...t)]}function Hf(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const a=n.reduce((i,{useScope:s,scopeName:u})=>{const l=s(o)[`__scope${u}`];return{...i,...l}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}var hn="Progress",yn=100,[Kf,cm]=Gf(hn),[Yf,qf]=Kf(hn),Xf=f.forwardRef((e,t)=>{const{__scopeProgress:r,value:n=null,max:o,getValueLabel:a=Jf,...i}=e;(o||o===0)&&!_i(o)&&console.error(Qf(`${o}`,"Progress"));const s=_i(o)?o:yn;n!==null&&!Ei(n,s)&&console.error(ep(`${n}`,"Progress"));const u=Ei(n,s)?n:null,l=tr(u)?a(u,s):void 0;return b.jsx(Yf,{scope:r,value:u,max:s,children:b.jsx(cn.div,{"aria-valuemax":s,"aria-valuemin":0,"aria-valuenow":tr(u)?u:void 0,"aria-valuetext":l,role:"progressbar","data-state":xi(u,s),"data-value":u??void 0,"data-max":s,...i,ref:t})})});Xf.displayName=hn;var wi="ProgressIndicator",Zf=f.forwardRef((e,t)=>{const{__scopeProgress:r,...n}=e,o=qf(wi,r);return b.jsx(cn.div,{"data-state":xi(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...n,ref:t})});Zf.displayName=wi;function Jf(e,t){return`${Math.round(e/t*100)}%`}function xi(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function tr(e){return typeof e=="number"}function _i(e){return tr(e)&&!isNaN(e)&&e>0}function Ei(e,t){return tr(e)&&!isNaN(e)&&e<=t&&e>=0}function Qf(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yn}\`.`}function ep(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
56
56
|
- a positive number
|
|
57
57
|
- less than the value passed to \`max\` (or ${yn} if no \`max\` prop is set)
|
|
58
58
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
59
59
|
|
|
60
|
-
Defaulting to \`null\`.`}var
|
|
60
|
+
Defaulting to \`null\`.`}var ki="Dialog",[Ri,um]=Ee(ki),[dm,xe]=Ri(ki),Si="DialogTrigger",tp=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(Si,r),a=Q(t,o.triggerRef);return b.jsx(J.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":bn(o.open),...n,ref:a,onClick:F(e.onClick,o.onOpenToggle)})});tp.displayName=Si;var rp="DialogPortal",[fm,Ci]=Ri(rp,{forceMount:void 0}),rr="DialogOverlay",np=f.forwardRef((e,t)=>{const r=Ci(rr,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=xe(rr,e.__scopeDialog);return a.modal?b.jsx(je,{present:n||a.open,children:b.jsx(ap,{...o,ref:t})}):null});np.displayName=rr;var op=Ue("DialogOverlay.RemoveScroll"),ap=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(rr,r);return b.jsx(Qr,{as:op,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(J.div,{"data-state":bn(o.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Ie="DialogContent",ip=f.forwardRef((e,t)=>{const r=Ci(Ie,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,a=xe(Ie,e.__scopeDialog);return b.jsx(je,{present:n||a.open,children:a.modal?b.jsx(sp,{...o,ref:t}):b.jsx(lp,{...o,ref:t})})});ip.displayName=Ie;var sp=f.forwardRef((e,t)=>{const r=xe(Ie,e.__scopeDialog),n=f.useRef(null),o=Q(t,r.contentRef,n);return f.useEffect(()=>{const a=n.current;if(a)return ya(a)},[]),b.jsx(Oi,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,a=>{a.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,a=>{const i=a.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0;(i.button===2||s)&&a.preventDefault()}),onFocusOutside:F(e.onFocusOutside,a=>a.preventDefault())})}),lp=f.forwardRef((e,t)=>{const r=xe(Ie,e.__scopeDialog),n=f.useRef(!1),o=f.useRef(!1);return b.jsx(Oi,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{e.onCloseAutoFocus?.(a),a.defaultPrevented||(n.current||r.triggerRef.current?.focus(),a.preventDefault()),n.current=!1,o.current=!1},onInteractOutside:a=>{e.onInteractOutside?.(a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=a.target;r.triggerRef.current?.contains(i)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&o.current&&a.preventDefault()}})}),Oi=f.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=xe(Ie,r),u=f.useRef(null),l=Q(t,u);return _o(),b.jsxs(b.Fragment,{children:[b.jsx(Ar,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a,children:b.jsx(jt,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":bn(s.open),...i,ref:l,onDismiss:()=>s.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(fp,{titleId:s.titleId}),b.jsx(mp,{contentRef:u,descriptionId:s.descriptionId})]})]})}),vn="DialogTitle",cp=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(vn,r);return b.jsx(J.h2,{id:o.titleId,...n,ref:t})});cp.displayName=vn;var ji="DialogDescription",up=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(ji,r);return b.jsx(J.p,{id:o.descriptionId,...n,ref:t})});up.displayName=ji;var Ti="DialogClose",dp=f.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=xe(Ti,r);return b.jsx(J.button,{type:"button",...n,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});dp.displayName=Ti;function bn(e){return e?"open":"closed"}var Ni="DialogTitleWarning",[pm,Di]=Ls(Ni,{contentName:Ie,titleName:vn,docsSlug:"dialog"}),fp=({titleId:e})=>{const t=Di(Ni),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
61
61
|
|
|
62
62
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
63
63
|
|
|
64
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},fp="DialogDescriptionWarning",pp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ti(fp).contentName}}.`;return f.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},mp=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"}),gp="VisuallyHidden",Ni=f.forwardRef((e,t)=>b.jsx(J.span,{...e,ref:t,style:{...mp,...e.style}}));Ni.displayName=gp;var hp=Ni,[nr,pm]=Ee("Tooltip",[zt]),wn=zt(),yp="TooltipProvider",Di="tooltip.open",[mm,Ai]=nr(yp),Pi="Tooltip",[gm,or]=nr(Pi),xn="TooltipTrigger",vp=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=or(xn,r),a=Ai(xn,r),i=wn(r),s=f.useRef(null),u=Q(t,s,o.onTriggerChange),l=f.useRef(!1),p=f.useRef(!1),c=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),b.jsx(sa,{asChild:!0,...i,children:b.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:F(e.onPointerMove,d=>{d.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:F(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:F(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});vp.displayName=xn;var bp="TooltipPortal",[hm,wp]=nr(bp,{forceMount:void 0}),et="TooltipContent",xp=f.forwardRef((e,t)=>{const r=wp(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=or(et,e.__scopeTooltip);return b.jsx(je,{present:n||i.open,children:i.disableHoverableContent?b.jsx(Mi,{side:o,...a,ref:t}):b.jsx(_p,{side:o,...a,ref:t})})}),_p=f.forwardRef((e,t)=>{const r=or(et,e.__scopeTooltip),n=Ai(et,e.__scopeTooltip),o=f.useRef(null),a=Q(t,o),[i,s]=f.useState(null),{trigger:u,onClose:l}=r,p=o.current,{onPointerInTransitChange:c}=n,d=f.useCallback(()=>{s(null),c(!1)},[c]),m=f.useCallback((y,g)=>{const v=y.currentTarget,w={x:y.clientX,y:y.clientY},x=Cp(w,v.getBoundingClientRect()),E=Op(w,x),_=jp(g.getBoundingClientRect()),C=Np([...E,..._]);s(C),c(!0)},[c]);return f.useEffect(()=>()=>d(),[d]),f.useEffect(()=>{if(u&&p){const y=v=>m(v,p),g=v=>m(v,u);return u.addEventListener("pointerleave",y),p.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",y),p.removeEventListener("pointerleave",g)}}},[u,p,m,d]),f.useEffect(()=>{if(i){const y=g=>{const v=g.target,w={x:g.clientX,y:g.clientY},x=u?.contains(v)||p?.contains(v),E=!Tp(w,i);x?d():E&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,p,i,l,d]),b.jsx(Mi,{...e,ref:a})}),[Ep,kp]=nr(Pi,{isInside:!1}),Rp=$s("TooltipContent"),Mi=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,u=or(et,r),l=wn(r),{onClose:p}=u;return f.useEffect(()=>(document.addEventListener(Di,p),()=>document.removeEventListener(Di,p)),[p]),f.useEffect(()=>{if(u.trigger){const c=d=>{d.target?.contains(u.trigger)&&p()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[u.trigger,p]),b.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:c=>c.preventDefault(),onDismiss:p,children:b.jsxs(la,{"data-state":u.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(Rp,{children:n}),b.jsx(Ep,{scope:r,isInside:!0,children:b.jsx(hp,{id:u.contentId,role:"tooltip",children:o||n})})]})})});xp.displayName=et;var Li="TooltipArrow",Sp=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=wn(r);return kp(Li,r).isInside?null:b.jsx(ca,{...o,...n,ref:t})});Sp.displayName=Li;function Cp(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Op(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function jp(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Tp(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],u=t[i],l=s.x,p=s.y,c=u.x,d=u.y;p>n!=d>n&&r<(c-l)*(n-p)/(d-p)+l&&(o=!o)}return o}function Np(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Dp(t)}function Dp(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}f.createContext(null);const Ap=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Pp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Ii=e=>{const t=Pp(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Mp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Lp={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"};const Ip=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>P.createElement("svg",{ref:u,...Lp,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:Fi("lucide",o),...!a&&!Mp(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,p])=>P.createElement(l,p)),...Array.isArray(a)?a:[a]]));const _n=(e,t)=>{const r=P.forwardRef(({className:n,...o},a)=>P.createElement(Ip,{ref:a,iconNode:t,className:Fi(`lucide-${Ap(Ii(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Ii(e),r};const Vi=_n("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const zi=_n("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const $i=_n("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function Fp(e){const[t,r]=P.useState(!1);return O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsx("h1",{children:"test local 004"}),O.jsxs(xr,{className:ue({"opacity-50":e.form.formState.isSubmitting}),children:[O.jsxs(_r,{children:[O.jsx(Er,{className:"text-2xl",children:e.loginFormTitle}),O.jsx(kr,{children:e.loginFormDescription})]}),O.jsx(Rr,{children:O.jsx(gn,{...e.form,children:O.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsxs("div",{className:"grid gap-2",children:[O.jsx(ht,{htmlFor:"email",children:e.emailLabel}),O.jsx(vt,{control:e.form.control,name:"email",render:({field:n})=>O.jsx(bt,{children:O.jsx(wt,{children:O.jsx(xt,{disabled:e.form.formState.isSubmitting,type:"email",placeholder:"m@example.com",required:!0,...n})})})})]}),O.jsxs("div",{className:"grid gap-2",children:[O.jsxs("div",{className:"flex items-center",children:[O.jsx(ht,{htmlFor:"password",children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),O.jsx(vt,{control:e.form.control,name:"password",render:({field:n})=>O.jsx(bt,{children:O.jsx(wt,{className:"relative",children:O.jsxs("div",{className:"relative",children:[t?O.jsx(Vi,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):O.jsx(zi,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),O.jsx(xt,{type:t?"text":"password",placeholder:"********",disabled:e.form.formState.isSubmitting,...n,className:"pr-10"})]})})})})]}),O.jsxs(wr,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&O.jsx($i,{className:"animate-spin"})]}),e.signUpLinkComponent?O.jsx(un,{className:"text-center",children:e.signUpLinkComponent()}):null]})})})})]})]})}function Vp(e){const[t,r]=P.useState(!1);return O.jsx("div",{className:"flex flex-col gap-6",children:O.jsxs(xr,{className:ue({"opacity-50":e.form.formState.isSubmitting}),children:[O.jsxs(_r,{children:[O.jsx(Er,{className:"text-2xl",children:e.signUpFormTitle}),O.jsx(kr,{children:e.signUpFormDescription})]}),O.jsx(Rr,{children:O.jsx(gn,{...e.form,children:O.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsxs("div",{className:"grid gap-2",children:[O.jsx(ht,{children:e.emailLabel}),O.jsx(vt,{control:e.form.control,name:"email",render:({field:n})=>O.jsx(bt,{children:O.jsx(wt,{children:O.jsx(xt,{disabled:e.form.formState.isSubmitting,type:"email",placeholder:"m@example.com",required:!0,...n})})})})]}),O.jsxs("div",{className:"grid gap-2",children:[O.jsxs("div",{className:"flex items-center",children:[O.jsx(ht,{children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),O.jsx(vt,{control:e.form.control,name:"password",render:({field:n})=>O.jsx(bt,{children:O.jsx(wt,{className:"relative",children:O.jsxs("div",{className:"relative",children:[t?O.jsx(Vi,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):O.jsx(zi,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),O.jsx(xt,{disabled:e.form.formState.isSubmitting,type:t?"text":"password",placeholder:"********",...n,className:"pr-10"})]})})})})]}),O.jsxs(wr,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&O.jsx($i,{className:"animate-spin"})]}),e.loginLinkComponent?O.jsx(un,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}function zp(e){return O.jsx("div",{className:"flex flex-col gap-6",children:O.jsxs(xr,{children:[O.jsxs(_r,{children:[O.jsx(Er,{className:"text-2xl",children:e.activateAccountTitle}),O.jsx(kr,{children:e.activateAccountDescription})]}),O.jsx(Rr,{children:O.jsx(gn,{...e.form,children:O.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsxs("div",{className:"grid gap-2",children:[O.jsx(ht,{children:e.codeLabel}),O.jsx(vt,{control:e.form.control,name:"code",render:({field:t})=>O.jsx(bt,{children:O.jsx(wt,{children:O.jsx(xt,{type:"text",placeholder:"00001234",required:!0,...t})})})})]}),O.jsx(wr,{type:"submit",className:"w-full cursor-pointer",children:e.submitButtonLabel}),e.loginLinkComponent?O.jsx(un,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}const tt=new WeakMap,ar=new WeakMap,ir={current:[]};let En=!1;const sr=new Set,Wi=new Map;function Ui(e){const t=Array.from(e).sort((r,n)=>r instanceof Fe&&r.options.deps.includes(n)?1:n instanceof Fe&&n.options.deps.includes(r)?-1:0);for(const r of t){if(ir.current.includes(r))continue;ir.current.push(r),r.recompute();const n=ar.get(r);if(n)for(const o of n){const a=tt.get(o);a&&Ui(a)}}}function $p(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Wp(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Up(e){if(sr.add(e),!En)try{for(En=!0;sr.size>0;){const t=Array.from(sr);sr.clear();for(const r of t){const n=Wi.get(r)??r.prevState;r.prevState=n,$p(r)}for(const r of t){const n=tt.get(r);n&&(ir.current.push(r),Ui(n))}for(const r of t){const n=tt.get(r);if(n)for(const o of n)Wp(o)}}}finally{En=!1,ir.current=[],Wi.clear()}}function Bp(e){return typeof e=="function"}class kn{constructor(t,r){this.listeners=new Set,this.subscribe=n=>{var o,a;this.listeners.add(n);const i=(a=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:a.call(o,n,this);return()=>{this.listeners.delete(n),i?.()}},this.prevState=t,this.state=t,this.options=r}setState(t){var r,n,o;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(t):Bp(t)?this.state=t(this.prevState):this.state=t,(o=(n=this.options)==null?void 0:n.onUpdate)==null||o.call(n),Up(this)}}class Fe{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],n=[];for(const o of this.options.deps)r.push(o.prevState),n.push(o.state);return this.lastSeenDepValues=n,{prevDepVals:r,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,n;this.prevState=this.state;const{prevDepVals:o,currDepVals:a,prevVal:i}=this.getDepVals();this.state=this.options.fn({prevDepVals:o,currDepVals:a,prevVal:i}),(n=(r=this.options).onUpdate)==null||n.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const a of this.options.deps)a instanceof Fe&&a.checkIfRecalculationNeededDeeply();let r=!1;const n=this.lastSeenDepValues,{currDepVals:o}=this.getDepVals();for(let a=0;a<o.length;a++)if(o[a]!==n[a]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var n,o;this.listeners.add(r);const a=(o=(n=this.options).onSubscribe)==null?void 0:o.call(n,r,this);return()=>{this.listeners.delete(r),a?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Fe)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof kn){let n=tt.get(r);n||(n=new Set,tt.set(r,n)),n.add(this);let o=ar.get(this);o||(o=new Set,ar.set(this,o)),o.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Fe)this.unregisterFromGraph(r.options.deps);else if(r instanceof kn){const n=tt.get(r);n&&n.delete(this);const o=ar.get(this);o&&o.delete(r)}}}const Rn="Authorization",Bi=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_email_verified:!1},sessionID:null,isAuthenticated:!1,isLoaded:!1}),Ve=new kn(Bi()),Gp=new Fe({fn:()=>!!Ve.state.user?.roles.find(e=>e.name==="admin"),deps:[Ve]});class Hp{accountStore;httpClient;constructor(t){this.httpClient=t,this.accountStore=Ve}initAuthData(){const t=localStorage.getItem("token");t&&(this.httpClient.defaults.headers.common[Rn]=t)}async load(){try{const{data:t}=await this.httpClient.get("/api/auth/account/me");Ve.setState(()=>({user:t.user,sessionID:t.session_id,isAuthenticated:!0,isLoaded:!0}))}catch{Ve.setState(t=>({...t,isLoaded:!0}))}}async login(t){const r=await this.httpClient.post("/api/auth/account/login",t),{user:n,token:o,session_id:a}=r.data;return this._initUserData({user:n,token:o,sessionID:a}),n}signup(t){return this.httpClient.post("/api/auth/account/signup",t)}async activate(t){const r=await this.httpClient.post("/api/auth/account/activate",t);this._initUserData(r.data)}logout(){Ve.setState(()=>({...Bi(),isLoaded:!0})),this._clearAuthData()}startResetPassword(t){return this.httpClient.post("/api/auth/account/start-reset-password",t)}async resetPassword(t){const r=await this.httpClient.post("/api/auth/account/reset-password",t);this._initUserData(r.data)}_initUserData({user:t,token:r,sessionID:n}){this._setAuthData(r),Ve.setState(()=>({user:t,isAuthenticated:!0,isLoaded:!0,sessionID:n}))}_setAuthData(t){localStorage.setItem("token",t),this.httpClient.defaults.headers.common[Rn]=t}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[Rn]}}pe.ActivateAccountForm=zp,pe.Auth=Hp,pe.LoginForm=Fp,pe.SignUpForm=Vp,pe.isAdmin=Gp,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})}));
|
|
64
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},pp="DialogDescriptionWarning",mp=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Di(pp).contentName}}.`;return f.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");t&&n&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},gp=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"}),hp="VisuallyHidden",Ai=f.forwardRef((e,t)=>b.jsx(J.span,{...e,ref:t,style:{...gp,...e.style}}));Ai.displayName=hp;var yp=Ai,[nr,mm]=Ee("Tooltip",[zt]),wn=zt(),vp="TooltipProvider",Pi="tooltip.open",[gm,Mi]=nr(vp),Li="Tooltip",[hm,or]=nr(Li),xn="TooltipTrigger",bp=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=or(xn,r),a=Mi(xn,r),i=wn(r),s=f.useRef(null),u=Q(t,s,o.onTriggerChange),l=f.useRef(!1),p=f.useRef(!1),c=f.useCallback(()=>l.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),b.jsx(sa,{asChild:!0,...i,children:b.jsx(J.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:F(e.onPointerMove,d=>{d.pointerType!=="touch"&&!p.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),p.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{o.onTriggerLeave(),p.current=!1}),onPointerDown:F(e.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:F(e.onFocus,()=>{l.current||o.onOpen()}),onBlur:F(e.onBlur,o.onClose),onClick:F(e.onClick,o.onClose)})})});bp.displayName=xn;var wp="TooltipPortal",[ym,xp]=nr(wp,{forceMount:void 0}),et="TooltipContent",_p=f.forwardRef((e,t)=>{const r=xp(et,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=e,i=or(et,e.__scopeTooltip);return b.jsx(je,{present:n||i.open,children:i.disableHoverableContent?b.jsx(Ii,{side:o,...a,ref:t}):b.jsx(Ep,{side:o,...a,ref:t})})}),Ep=f.forwardRef((e,t)=>{const r=or(et,e.__scopeTooltip),n=Mi(et,e.__scopeTooltip),o=f.useRef(null),a=Q(t,o),[i,s]=f.useState(null),{trigger:u,onClose:l}=r,p=o.current,{onPointerInTransitChange:c}=n,d=f.useCallback(()=>{s(null),c(!1)},[c]),m=f.useCallback((y,g)=>{const v=y.currentTarget,w={x:y.clientX,y:y.clientY},x=Op(w,v.getBoundingClientRect()),E=jp(w,x),_=Tp(g.getBoundingClientRect()),C=Dp([...E,..._]);s(C),c(!0)},[c]);return f.useEffect(()=>()=>d(),[d]),f.useEffect(()=>{if(u&&p){const y=v=>m(v,p),g=v=>m(v,u);return u.addEventListener("pointerleave",y),p.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",y),p.removeEventListener("pointerleave",g)}}},[u,p,m,d]),f.useEffect(()=>{if(i){const y=g=>{const v=g.target,w={x:g.clientX,y:g.clientY},x=u?.contains(v)||p?.contains(v),E=!Np(w,i);x?d():E&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[u,p,i,l,d]),b.jsx(Ii,{...e,ref:a})}),[kp,Rp]=nr(Li,{isInside:!1}),Sp=Us("TooltipContent"),Ii=f.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=e,u=or(et,r),l=wn(r),{onClose:p}=u;return f.useEffect(()=>(document.addEventListener(Pi,p),()=>document.removeEventListener(Pi,p)),[p]),f.useEffect(()=>{if(u.trigger){const c=d=>{d.target?.contains(u.trigger)&&p()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[u.trigger,p]),b.jsx(jt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:c=>c.preventDefault(),onDismiss:p,children:b.jsxs(la,{"data-state":u.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(Sp,{children:n}),b.jsx(kp,{scope:r,isInside:!0,children:b.jsx(yp,{id:u.contentId,role:"tooltip",children:o||n})})]})})});_p.displayName=et;var Fi="TooltipArrow",Cp=f.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=wn(r);return Rp(Fi,r).isInside?null:b.jsx(ca,{...o,...n,ref:t})});Cp.displayName=Fi;function Op(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function jp(e,t,r=5){const n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return n}function Tp(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Np(e,t){const{x:r,y:n}=e;let o=!1;for(let a=0,i=t.length-1;a<t.length;i=a++){const s=t[a],u=t[i],l=s.x,p=s.y,c=u.x,d=u.y;p>n!=d>n&&r<(c-l)*(n-p)/(d-p)+l&&(o=!o)}return o}function Dp(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Ap(t)}function Ap(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const a=t[t.length-1],i=t[t.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}f.createContext(null);const Pp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Mp=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,n)=>n?n.toUpperCase():r.toLowerCase()),Vi=e=>{const t=Mp(e);return t.charAt(0).toUpperCase()+t.slice(1)},zi=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim(),Lp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Ip={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"};const Fp=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>P.createElement("svg",{ref:u,...Ip,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:zi("lucide",o),...!a&&!Lp(s)&&{"aria-hidden":"true"},...s},[...i.map(([l,p])=>P.createElement(l,p)),...Array.isArray(a)?a:[a]]));const _n=(e,t)=>{const r=P.forwardRef(({className:n,...o},a)=>P.createElement(Fp,{ref:a,iconNode:t,className:zi(`lucide-${Pp(Vi(e))}`,`lucide-${e}`,n),...o}));return r.displayName=Vi(e),r};const $i=_n("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const Wi=_n("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);const Ui=_n("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);function Vp(e){const[t,r]=P.useState(!1);return O.jsx("div",{className:"flex flex-col gap-6",children:O.jsxs(xr,{className:se("transition-opacity",{"opacity-50":e.form.formState.isSubmitting}),children:[O.jsxs(_r,{children:[O.jsx(Er,{className:"text-2xl",children:e.loginFormTitle}),O.jsx(kr,{children:e.loginFormDescription})]}),O.jsx(Rr,{children:O.jsx(gn,{...e.form,children:O.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsxs("div",{className:"grid gap-2",children:[O.jsx(ht,{htmlFor:"email",children:e.emailLabel}),O.jsx(vt,{control:e.form.control,name:"email",render:({field:n})=>O.jsxs(bt,{children:[O.jsx(wt,{children:O.jsx(xt,{disabled:e.form.formState.isSubmitting,type:"email",placeholder:"m@example.com",required:!0,...n})}),O.jsx(bi,{})]})})]}),O.jsxs("div",{className:"grid gap-2",children:[O.jsxs("div",{className:"flex items-center",children:[O.jsx(ht,{htmlFor:"password",children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),O.jsx(vt,{control:e.form.control,name:"password",render:({field:n})=>O.jsxs(bt,{children:[O.jsx(wt,{className:"relative",children:O.jsxs("div",{className:"relative",children:[t?O.jsx($i,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):O.jsx(Wi,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),O.jsx(xt,{placeholder:"********",disabled:e.form.formState.isSubmitting,...n,className:"pr-10","aria-invalid":!!e.form.formState.errors?.password})]})}),O.jsx(bi,{})]})})]}),O.jsxs(wr,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&O.jsx(Ui,{className:"animate-spin"})]}),e.signUpLinkComponent?O.jsx(un,{className:"text-center",children:e.signUpLinkComponent()}):null]})})})})]})})}function zp(e){const[t,r]=P.useState(!1);return O.jsx("div",{className:"flex flex-col gap-6",children:O.jsxs(xr,{className:se({"opacity-50":e.form.formState.isSubmitting}),children:[O.jsxs(_r,{children:[O.jsx(Er,{className:"text-2xl",children:e.signUpFormTitle}),O.jsx(kr,{children:e.signUpFormDescription})]}),O.jsx(Rr,{children:O.jsx(gn,{...e.form,children:O.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsxs("div",{className:"grid gap-2",children:[O.jsx(ht,{children:e.emailLabel}),O.jsx(vt,{control:e.form.control,name:"email",render:({field:n})=>O.jsx(bt,{children:O.jsx(wt,{children:O.jsx(xt,{disabled:e.form.formState.isSubmitting,type:"email",placeholder:"m@example.com",required:!0,...n})})})})]}),O.jsxs("div",{className:"grid gap-2",children:[O.jsxs("div",{className:"flex items-center",children:[O.jsx(ht,{children:e.passwordLabel}),e.resetPasswordLinkComponent?e.resetPasswordLinkComponent():null]}),O.jsx(vt,{control:e.form.control,name:"password",render:({field:n})=>O.jsx(bt,{children:O.jsx(wt,{className:"relative",children:O.jsxs("div",{className:"relative",children:[t?O.jsx($i,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!1)}}):O.jsx(Wi,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{r(!0)}}),O.jsx(xt,{disabled:e.form.formState.isSubmitting,type:t?"text":"password",placeholder:"********",...n,className:"pr-10"})]})})})})]}),O.jsxs(wr,{type:"submit",className:"w-full cursor-pointer",disabled:e.form.formState.isSubmitting,children:[e.submitButtonLabel,e.form.formState.isSubmitting&&O.jsx(Ui,{className:"animate-spin"})]}),e.loginLinkComponent?O.jsx(un,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}function $p(e){return O.jsx("div",{className:"flex flex-col gap-6",children:O.jsxs(xr,{children:[O.jsxs(_r,{children:[O.jsx(Er,{className:"text-2xl",children:e.activateAccountTitle}),O.jsx(kr,{children:e.activateAccountDescription})]}),O.jsx(Rr,{children:O.jsx(gn,{...e.form,children:O.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:O.jsxs("div",{className:"flex flex-col gap-6",children:[O.jsxs("div",{className:"grid gap-2",children:[O.jsx(ht,{children:e.codeLabel}),O.jsx(vt,{control:e.form.control,name:"code",render:({field:t})=>O.jsx(bt,{children:O.jsx(wt,{children:O.jsx(xt,{type:"text",placeholder:"00001234",required:!0,...t})})})})]}),O.jsx(wr,{type:"submit",className:"w-full cursor-pointer",children:e.submitButtonLabel}),e.loginLinkComponent?O.jsx(un,{className:"text-center",children:e.loginLinkComponent()}):null]})})})})]})})}const tt=new WeakMap,ar=new WeakMap,ir={current:[]};let En=!1;const sr=new Set,Bi=new Map;function Gi(e){const t=Array.from(e).sort((r,n)=>r instanceof Fe&&r.options.deps.includes(n)?1:n instanceof Fe&&n.options.deps.includes(r)?-1:0);for(const r of t){if(ir.current.includes(r))continue;ir.current.push(r),r.recompute();const n=ar.get(r);if(n)for(const o of n){const a=tt.get(o);a&&Gi(a)}}}function Wp(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Up(e){e.listeners.forEach(t=>t({prevVal:e.prevState,currentVal:e.state}))}function Bp(e){if(sr.add(e),!En)try{for(En=!0;sr.size>0;){const t=Array.from(sr);sr.clear();for(const r of t){const n=Bi.get(r)??r.prevState;r.prevState=n,Wp(r)}for(const r of t){const n=tt.get(r);n&&(ir.current.push(r),Gi(n))}for(const r of t){const n=tt.get(r);if(n)for(const o of n)Up(o)}}}finally{En=!1,ir.current=[],Bi.clear()}}function Gp(e){return typeof e=="function"}class kn{constructor(t,r){this.listeners=new Set,this.subscribe=n=>{var o,a;this.listeners.add(n);const i=(a=(o=this.options)==null?void 0:o.onSubscribe)==null?void 0:a.call(o,n,this);return()=>{this.listeners.delete(n),i?.()}},this.prevState=t,this.state=t,this.options=r}setState(t){var r,n,o;this.prevState=this.state,(r=this.options)!=null&&r.updateFn?this.state=this.options.updateFn(this.prevState)(t):Gp(t)?this.state=t(this.prevState):this.state=t,(o=(n=this.options)==null?void 0:n.onUpdate)==null||o.call(n),Bp(this)}}class Fe{constructor(t){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const r=[],n=[];for(const o of this.options.deps)r.push(o.prevState),n.push(o.state);return this.lastSeenDepValues=n,{prevDepVals:r,currDepVals:n,prevVal:this.prevState??void 0}},this.recompute=()=>{var r,n;this.prevState=this.state;const{prevDepVals:o,currDepVals:a,prevVal:i}=this.getDepVals();this.state=this.options.fn({prevDepVals:o,currDepVals:a,prevVal:i}),(n=(r=this.options).onUpdate)==null||n.call(r)},this.checkIfRecalculationNeededDeeply=()=>{for(const a of this.options.deps)a instanceof Fe&&a.checkIfRecalculationNeededDeeply();let r=!1;const n=this.lastSeenDepValues,{currDepVals:o}=this.getDepVals();for(let a=0;a<o.length;a++)if(o[a]!==n[a]){r=!0;break}r&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const r of this._subscriptions)r()}),this.subscribe=r=>{var n,o;this.listeners.add(r);const a=(o=(n=this.options).onSubscribe)==null?void 0:o.call(n,r,this);return()=>{this.listeners.delete(r),a?.()}},this.options=t,this.state=t.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(t=this.options.deps){for(const r of t)if(r instanceof Fe)r.registerOnGraph(),this.registerOnGraph(r.options.deps);else if(r instanceof kn){let n=tt.get(r);n||(n=new Set,tt.set(r,n)),n.add(this);let o=ar.get(this);o||(o=new Set,ar.set(this,o)),o.add(r)}}unregisterFromGraph(t=this.options.deps){for(const r of t)if(r instanceof Fe)this.unregisterFromGraph(r.options.deps);else if(r instanceof kn){const n=tt.get(r);n&&n.delete(this);const o=ar.get(this);o&&o.delete(r)}}}const Rn="Authorization",Hi=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_email_verified:!1},sessionID:null,isAuthenticated:!1,isLoaded:!1}),Ve=new kn(Hi()),Hp=new Fe({fn:()=>!!Ve.state.user?.roles.find(e=>e.name==="admin"),deps:[Ve]});class Kp{accountStore;httpClient;constructor(t){this.httpClient=t,this.accountStore=Ve}initAuthData(){const t=localStorage.getItem("token");t&&(this.httpClient.defaults.headers.common[Rn]=t)}async load(){try{const{data:t}=await this.httpClient.get("/api/auth/account/me");Ve.setState(()=>({user:t.user,sessionID:t.session_id,isAuthenticated:!0,isLoaded:!0}))}catch{Ve.setState(t=>({...t,isLoaded:!0}))}}async login(t){const r=await this.httpClient.post("/api/auth/account/login",t),{user:n,token:o,session_id:a}=r.data;return this._initUserData({user:n,token:o,sessionID:a}),n}signup(t){return this.httpClient.post("/api/auth/account/signup",t)}async activate(t){const r=await this.httpClient.post("/api/auth/account/activate",t);this._initUserData(r.data)}logout(){Ve.setState(()=>({...Hi(),isLoaded:!0})),this._clearAuthData()}startResetPassword(t){return this.httpClient.post("/api/auth/account/start-reset-password",t)}async resetPassword(t){const r=await this.httpClient.post("/api/auth/account/reset-password",t);this._initUserData(r.data)}_initUserData({user:t,token:r,sessionID:n}){this._setAuthData(r),Ve.setState(()=>({user:t,isAuthenticated:!0,isLoaded:!0,sessionID:n}))}_setAuthData(t){localStorage.setItem("token",t),this.httpClient.defaults.headers.common[Rn]=t}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[Rn]}}pe.ActivateAccountForm=$p,pe.Auth=Kp,pe.LoginForm=Vp,pe.SignUpForm=zp,pe.isAdmin=Hp,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})}));
|