@service_laboratory/auth 1.0.8 → 2.0.0
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.d.ts +15 -1
- package/dist/index.js +7013 -361
- package/dist/index.umd.cjs +171 -4
- package/package.json +2 -2
package/dist/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(ke,le){typeof exports=="object"&&typeof module<"u"?le(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],le):(ke=typeof globalThis<"u"?globalThis:ke||self,le(ke.auth={},ke.react))})(this,(function(ke,le){"use strict";function Dn(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const de=Dn(le);var Qe={exports:{}},Fe={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Bt;function An(){if(Bt)return Fe;Bt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(s,i,u){var m=null;if(u!==void 0&&(m=""+u),i.key!==void 0&&(m=""+i.key),"key"in i){u={};for(var h in i)h!=="key"&&(u[h]=i[h])}else u=i;return i=u.ref,{$$typeof:e,type:s,key:m,ref:i!==void 0?i:null,props:u}}return Fe.Fragment=r,Fe.jsx=t,Fe.jsxs=t,Fe}var Ge={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,9 +14,176 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Yt;function Nn(){return Yt||(Yt=1,process.env.NODE_ENV!=="production"&&(function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===_e?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case b:return"Fragment";case M:return"Profiler";case k:return"StrictMode";case C:return"Suspense";case V:return"SuspenseList";case te:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case v:return"Portal";case L:return(n.displayName||"Context")+".Provider";case Y:return(n._context.displayName||"Context")+".Consumer";case I:var p=n.render;return n=n.displayName,n||(n=p.displayName||p.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return p=n.displayName||null,p!==null?p:e(n.type)||"Memo";case E:p=n._payload,n=n._init;try{return e(n(p))}catch{}}return null}function r(n){return""+n}function t(n){try{r(n);var p=!1}catch{p=!0}if(p){p=console;var _=p.error,S=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return _.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),r(n)}}function s(n){if(n===b)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===E)return"<...>";try{var p=e(n);return p?"<"+p+">":"<...>"}catch{return"<...>"}}function i(){var n=W.A;return n===null?null:n.getOwner()}function u(){return Error("react-stack-top-frame")}function m(n){if(ue.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function h(n,p){function _(){re||(re=!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)",p))}_.isReactWarning=!0,Object.defineProperty(n,"key",{get:_,configurable:!0})}function f(){var n=e(this.type);return ne[n]||(ne[n]=!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.")),n=this.props.ref,n!==void 0?n:null}function l(n,p,_,S,x,N,A,$){return _=N.ref,n={$$typeof:d,type:n,key:p,props:N,_owner:x},(_!==void 0?_:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:f}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function g(n,p,_,S,x,N,A,$){var T=p.children;if(T!==void 0)if(S)if(he(T)){for(S=0;S<T.length;S++)c(T[S]);Object.freeze&&Object.freeze(T)}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(T);if(ue.call(p,"key")){T=e(n);var X=Object.keys(p).filter(function(Oe){return Oe!=="key"});S=0<X.length?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}",Se[T+S]||(X=0<X.length?"{"+X.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,
|
|
22
|
+
<%s key={someKey} {...props} />`,S,T,X,T),Se[T+S]=!0)}if(T=null,_!==void 0&&(t(_),T=""+_),m(p)&&(t(p.key),T=""+p.key),"key"in p){_={};for(var fe in p)fe!=="key"&&(_[fe]=p[fe])}else _=p;return T&&h(_,typeof n=="function"?n.displayName||n.name||"Unknown":n),l(n,T,N,x,i(),_,A,$)}function c(n){typeof n=="object"&&n!==null&&n.$$typeof===d&&n._store&&(n._store.validated=1)}var o=le,d=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),_e=Symbol.for("react.client.reference"),W=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,he=Array.isArray,ae=console.createTask?console.createTask:function(){return null};o={react_stack_bottom_frame:function(n){return n()}};var re,ne={},se=o.react_stack_bottom_frame.bind(o,u)(),D=ae(s(u)),Se={};Ge.Fragment=b,Ge.jsx=function(n,p,_,S,x){var N=1e4>W.recentlyCreatedOwnerStacks++;return g(n,p,_,!1,S,x,N?Error("react-stack-top-frame"):se,N?ae(s(n)):D)},Ge.jsxs=function(n,p,_,S,x){var N=1e4>W.recentlyCreatedOwnerStacks++;return g(n,p,_,!0,S,x,N?Error("react-stack-top-frame"):se,N?ae(s(n)):D)}})()),Ge}var Xt;function Cn(){return Xt||(Xt=1,process.env.NODE_ENV==="production"?Qe.exports=An():Qe.exports=Nn()),Qe.exports}var Z=Cn();function Ln(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ot={exports:{}},We={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react-jsx-runtime.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var Jt;function Pn(){if(Jt)return We;Jt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(s,i,u){var m=null;if(u!==void 0&&(m=""+u),i.key!==void 0&&(m=""+i.key),"key"in i){u={};for(var h in i)h!=="key"&&(u[h]=i[h])}else u=i;return i=u.ref,{$$typeof:e,type:s,key:m,ref:i!==void 0?i:null,props:u}}return We.Fragment=r,We.jsx=t,We.jsxs=t,We}var Ze={},wt={exports:{}},z={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* react.production.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var Qt;function Mn(){if(Qt)return z;Qt=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),c=Symbol.iterator;function o(n){return n===null||typeof n!="object"?null:(n=c&&n[c]||n["@@iterator"],typeof n=="function"?n:null)}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,b={};function k(n,p,_){this.props=n,this.context=p,this.refs=b,this.updater=_||d}k.prototype.isReactComponent={},k.prototype.setState=function(n,p){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,p,"setState")},k.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function M(){}M.prototype=k.prototype;function Y(n,p,_){this.props=n,this.context=p,this.refs=b,this.updater=_||d}var L=Y.prototype=new M;L.constructor=Y,v(L,k.prototype),L.isPureReactComponent=!0;var I=Array.isArray,C={H:null,A:null,T:null,S:null,V:null},V=Object.prototype.hasOwnProperty;function B(n,p,_,S,x,N){return _=N.ref,{$$typeof:e,type:n,key:p,ref:_!==void 0?_:null,props:N}}function E(n,p){return B(n.type,p,void 0,void 0,void 0,n.props)}function te(n){return typeof n=="object"&&n!==null&&n.$$typeof===e}function _e(n){var p={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(_){return p[_]})}var W=/\/+/g;function ue(n,p){return typeof n=="object"&&n!==null&&n.key!=null?_e(""+n.key):p.toString(36)}function he(){}function ae(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(he,he):(n.status="pending",n.then(function(p){n.status==="pending"&&(n.status="fulfilled",n.value=p)},function(p){n.status==="pending"&&(n.status="rejected",n.reason=p)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function re(n,p,_,S,x){var N=typeof n;(N==="undefined"||N==="boolean")&&(n=null);var A=!1;if(n===null)A=!0;else switch(N){case"bigint":case"string":case"number":A=!0;break;case"object":switch(n.$$typeof){case e:case r:A=!0;break;case g:return A=n._init,re(A(n._payload),p,_,S,x)}}if(A)return x=x(n),A=S===""?"."+ue(n,0):S,I(x)?(_="",A!=null&&(_=A.replace(W,"$&/")+"/"),re(x,p,_,"",function(X){return X})):x!=null&&(te(x)&&(x=E(x,_+(x.key==null||n&&n.key===x.key?"":(""+x.key).replace(W,"$&/")+"/")+A)),p.push(x)),1;A=0;var $=S===""?".":S+":";if(I(n))for(var T=0;T<n.length;T++)S=n[T],N=$+ue(S,T),A+=re(S,p,_,N,x);else if(T=o(n),typeof T=="function")for(n=T.call(n),T=0;!(S=n.next()).done;)S=S.value,N=$+ue(S,T++),A+=re(S,p,_,N,x);else if(N==="object"){if(typeof n.then=="function")return re(ae(n),p,_,S,x);throw p=String(n),Error("Objects are not valid as a React child (found: "+(p==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":p)+"). If you meant to render a collection of children, use an array instead.")}return A}function ne(n,p,_){if(n==null)return n;var S=[],x=0;return re(n,S,"","",function(N){return p.call(_,N,x++)}),S}function se(n){if(n._status===-1){var p=n._result;p=p(),p.then(function(_){(n._status===0||n._status===-1)&&(n._status=1,n._result=_)},function(_){(n._status===0||n._status===-1)&&(n._status=2,n._result=_)}),n._status===-1&&(n._status=0,n._result=p)}if(n._status===1)return n._result.default;throw n._result}var D=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var p=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(p))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function Se(){}return z.Children={map:ne,forEach:function(n,p,_){ne(n,function(){p.apply(this,arguments)},_)},count:function(n){var p=0;return ne(n,function(){p++}),p},toArray:function(n){return ne(n,function(p){return p})||[]},only:function(n){if(!te(n))throw Error("React.Children.only expected to receive a single React element child.");return n}},z.Component=k,z.Fragment=t,z.Profiler=i,z.PureComponent=Y,z.StrictMode=s,z.Suspense=f,z.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,z.__COMPILER_RUNTIME={__proto__:null,c:function(n){return C.H.useMemoCache(n)}},z.cache=function(n){return function(){return n.apply(null,arguments)}},z.cloneElement=function(n,p,_){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var S=v({},n.props),x=n.key,N=void 0;if(p!=null)for(A in p.ref!==void 0&&(N=void 0),p.key!==void 0&&(x=""+p.key),p)!V.call(p,A)||A==="key"||A==="__self"||A==="__source"||A==="ref"&&p.ref===void 0||(S[A]=p[A]);var A=arguments.length-2;if(A===1)S.children=_;else if(1<A){for(var $=Array(A),T=0;T<A;T++)$[T]=arguments[T+2];S.children=$}return B(n.type,x,void 0,void 0,N,S)},z.createContext=function(n){return n={$$typeof:m,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:u,_context:n},n},z.createElement=function(n,p,_){var S,x={},N=null;if(p!=null)for(S in p.key!==void 0&&(N=""+p.key),p)V.call(p,S)&&S!=="key"&&S!=="__self"&&S!=="__source"&&(x[S]=p[S]);var A=arguments.length-2;if(A===1)x.children=_;else if(1<A){for(var $=Array(A),T=0;T<A;T++)$[T]=arguments[T+2];x.children=$}if(n&&n.defaultProps)for(S in A=n.defaultProps,A)x[S]===void 0&&(x[S]=A[S]);return B(n,N,void 0,void 0,null,x)},z.createRef=function(){return{current:null}},z.forwardRef=function(n){return{$$typeof:h,render:n}},z.isValidElement=te,z.lazy=function(n){return{$$typeof:g,_payload:{_status:-1,_result:n},_init:se}},z.memo=function(n,p){return{$$typeof:l,type:n,compare:p===void 0?null:p}},z.startTransition=function(n){var p=C.T,_={};C.T=_;try{var S=n(),x=C.S;x!==null&&x(_,S),typeof S=="object"&&S!==null&&typeof S.then=="function"&&S.then(Se,D)}catch(N){D(N)}finally{C.T=p}},z.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},z.use=function(n){return C.H.use(n)},z.useActionState=function(n,p,_){return C.H.useActionState(n,p,_)},z.useCallback=function(n,p){return C.H.useCallback(n,p)},z.useContext=function(n){return C.H.useContext(n)},z.useDebugValue=function(){},z.useDeferredValue=function(n,p){return C.H.useDeferredValue(n,p)},z.useEffect=function(n,p,_){var S=C.H;if(typeof _=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return S.useEffect(n,p)},z.useId=function(){return C.H.useId()},z.useImperativeHandle=function(n,p,_){return C.H.useImperativeHandle(n,p,_)},z.useInsertionEffect=function(n,p){return C.H.useInsertionEffect(n,p)},z.useLayoutEffect=function(n,p){return C.H.useLayoutEffect(n,p)},z.useMemo=function(n,p){return C.H.useMemo(n,p)},z.useOptimistic=function(n,p){return C.H.useOptimistic(n,p)},z.useReducer=function(n,p,_){return C.H.useReducer(n,p,_)},z.useRef=function(n){return C.H.useRef(n)},z.useState=function(n){return C.H.useState(n)},z.useSyncExternalStore=function(n,p,_){return C.H.useSyncExternalStore(n,p,_)},z.useTransition=function(){return C.H.useTransition()},z.version="19.1.1",z}var et={exports:{}};/**
|
|
39
|
+
* @license React
|
|
40
|
+
* react.development.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/et.exports;var Zt;function In(){return Zt||(Zt=1,(function(e,r){process.env.NODE_ENV!=="production"&&(function(){function t(a,y){Object.defineProperty(u.prototype,a,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",y[0],y[1])}})}function s(a){return a===null||typeof a!="object"?null:(a=Oe&&a[Oe]||a["@@iterator"],typeof a=="function"?a:null)}function i(a,y){a=(a=a.constructor)&&(a.displayName||a.name)||"ReactClass";var O=a+"."+y;ve[O]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",y,a),ve[O]=!0)}function u(a,y,O){this.props=a,this.context=y,this.refs=ze,this.updater=O||yt}function m(){}function h(a,y,O){this.props=a,this.context=y,this.refs=ze,this.updater=O||yt}function f(a){return""+a}function l(a){try{f(a);var y=!1}catch{y=!0}if(y){y=console;var O=y.error,w=typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object";return O.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",w),f(a)}}function g(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===He?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case _:return"Profiler";case p:return"StrictMode";case A:return"Suspense";case $:return"SuspenseList";case fe:return"Activity"}if(typeof a=="object")switch(typeof a.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),a.$$typeof){case Se:return"Portal";case x:return(a.displayName||"Context")+".Provider";case S:return(a._context.displayName||"Context")+".Consumer";case N:var y=a.render;return a=a.displayName,a||(a=y.displayName||y.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case T:return y=a.displayName||null,y!==null?y:g(a.type)||"Memo";case X:y=a._payload,a=a._init;try{return g(a(y))}catch{}}return null}function c(a){if(a===n)return"<>";if(typeof a=="object"&&a!==null&&a.$$typeof===X)return"<...>";try{var y=g(a);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function o(){var a=U.A;return a===null?null:a.getOwner()}function d(){return Error("react-stack-top-frame")}function v(a){if(Ce.call(a,"key")){var y=Object.getOwnPropertyDescriptor(a,"key").get;if(y&&y.isReactWarning)return!1}return a.key!==void 0}function b(a,y){function O(){J||(J=!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)",y))}O.isReactWarning=!0,Object.defineProperty(a,"key",{get:O,configurable:!0})}function k(){var a=g(this.type);return Ee[a]||(Ee[a]=!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.")),a=this.props.ref,a!==void 0?a:null}function M(a,y,O,w,P,K,G,Q){return O=K.ref,a={$$typeof:D,type:a,key:y,props:K,_owner:P},(O!==void 0?O:null)!==null?Object.defineProperty(a,"ref",{enumerable:!1,get:k}):Object.defineProperty(a,"ref",{enumerable:!1,value:null}),a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(a,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(a,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.defineProperty(a,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Q}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a}function Y(a,y){return y=M(a.type,y,void 0,void 0,a._owner,a.props,a._debugStack,a._debugTask),a._store&&(y._store.validated=a._store.validated),y}function L(a){return typeof a=="object"&&a!==null&&a.$$typeof===D}function I(a){var y={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(O){return y[O]})}function C(a,y){return typeof a=="object"&&a!==null&&a.key!=null?(l(a.key),I(""+a.key)):y.toString(36)}function V(){}function B(a){switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(V,V):(a.status="pending",a.then(function(y){a.status==="pending"&&(a.status="fulfilled",a.value=y)},function(y){a.status==="pending"&&(a.status="rejected",a.reason=y)})),a.status){case"fulfilled":return a.value;case"rejected":throw a.reason}}throw a}function E(a,y,O,w,P){var K=typeof a;(K==="undefined"||K==="boolean")&&(a=null);var G=!1;if(a===null)G=!0;else switch(K){case"bigint":case"string":case"number":G=!0;break;case"object":switch(a.$$typeof){case D:case Se:G=!0;break;case X:return G=a._init,E(G(a._payload),y,O,w,P)}}if(G){G=a,P=P(G);var Q=w===""?"."+C(G,0):w;return ht(P)?(O="",Q!=null&&(O=Q.replace(xn,"$&/")+"/"),E(P,y,O,"",function(Le){return Le})):P!=null&&(L(P)&&(P.key!=null&&(G&&G.key===P.key||l(P.key)),O=Y(P,O+(P.key==null||G&&G.key===P.key?"":(""+P.key).replace(xn,"$&/")+"/")+Q),w!==""&&G!=null&&L(G)&&G.key==null&&G._store&&!G._store.validated&&(O._store.validated=2),P=O),y.push(P)),1}if(G=0,Q=w===""?".":w+":",ht(a))for(var q=0;q<a.length;q++)w=a[q],K=Q+C(w,q),G+=E(w,y,O,K,P);else if(q=s(a),typeof q=="function")for(q===a.entries&&(kn||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),kn=!0),a=q.call(a),q=0;!(w=a.next()).done;)w=w.value,K=Q+C(w,q++),G+=E(w,y,O,K,P);else if(K==="object"){if(typeof a.then=="function")return E(B(a),y,O,w,P);throw y=String(a),Error("Objects are not valid as a React child (found: "+(y==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":y)+"). If you meant to render a collection of children, use an array instead.")}return G}function te(a,y,O){if(a==null)return a;var w=[],P=0;return E(a,w,"","",function(K){return y.call(O,K,P++)}),w}function _e(a){if(a._status===-1){var y=a._result;y=y(),y.then(function(O){(a._status===0||a._status===-1)&&(a._status=1,a._result=O)},function(O){(a._status===0||a._status===-1)&&(a._status=2,a._result=O)}),a._status===-1&&(a._status=0,a._result=y)}if(a._status===1)return y=a._result,y===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
47
|
+
|
|
48
|
+
Your code should look like:
|
|
49
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
50
|
+
|
|
51
|
+
Did you accidentally put curly braces around the import?`,y),"default"in y||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
52
|
+
|
|
53
|
+
Your code should look like:
|
|
54
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,y),y.default;throw a._result}function W(){var a=U.H;return a===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:
|
|
55
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
56
|
+
2. You might be breaking the Rules of Hooks
|
|
57
|
+
3. You might have more than one copy of React in the same app
|
|
58
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),a}function ue(){}function he(a){if(bt===null)try{var y=("require"+Math.random()).slice(0,7);bt=(e&&e[y]).call(e,"timers").setImmediate}catch{bt=function(O){Rn===!1&&(Rn=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var w=new MessageChannel;w.port1.onmessage=O,w.port2.postMessage(void 0)}}return bt(a)}function ae(a){return 1<a.length&&typeof AggregateError=="function"?new AggregateError(a):a[0]}function re(a,y){y!==_t-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),_t=y}function ne(a,y,O){var w=U.actQueue;if(w!==null)if(w.length!==0)try{se(w),he(function(){return ne(a,y,O)});return}catch(P){U.thrownErrors.push(P)}else U.actQueue=null;0<U.thrownErrors.length?(w=ae(U.thrownErrors),U.thrownErrors.length=0,O(w)):y(a)}function se(a){if(!Kt){Kt=!0;var y=0;try{for(;y<a.length;y++){var O=a[y];do{U.didUsePromise=!1;var w=O(!1);if(w!==null){if(U.didUsePromise){a[y]=O,a.splice(0,y);return}O=w}else break}while(!0)}a.length=0}catch(P){a.splice(0,y+1),U.thrownErrors.push(P)}finally{Kt=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var D=Symbol.for("react.transitional.element"),Se=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),x=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),Oe=Symbol.iterator,ve={},yt={isMounted:function(){return!1},enqueueForceUpdate:function(a){i(a,"forceUpdate")},enqueueReplaceState:function(a){i(a,"replaceState")},enqueueSetState:function(a){i(a,"setState")}},gt=Object.assign,ze={};Object.freeze(ze),u.prototype.isReactComponent={},u.prototype.setState=function(a,y){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,y,"setState")},u.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};var we={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ue;for(Ue in we)we.hasOwnProperty(Ue)&&t(Ue,we[Ue]);m.prototype=u.prototype,we=h.prototype=new m,we.constructor=h,gt(we,u.prototype),we.isPureReactComponent=!0;var ht=Array.isArray,He=Symbol.for("react.client.reference"),U={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Ce=Object.prototype.hasOwnProperty,Xe=console.createTask?console.createTask:function(){return null};we={react_stack_bottom_frame:function(a){return a()}};var J,ie,Ee={},vt=we.react_stack_bottom_frame.bind(we,d)(),ss=Xe(c(d)),kn=!1,xn=/\/+/g,Tn=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Rn=!1,bt=null,_t=0,St=!1,Kt=!1,jn=typeof queueMicrotask=="function"?function(a){queueMicrotask(function(){return queueMicrotask(a)})}:he;we=Object.freeze({__proto__:null,c:function(a){return W().useMemoCache(a)}}),r.Children={map:te,forEach:function(a,y,O){te(a,function(){y.apply(this,arguments)},O)},count:function(a){var y=0;return te(a,function(){y++}),y},toArray:function(a){return te(a,function(y){return y})||[]},only:function(a){if(!L(a))throw Error("React.Children.only expected to receive a single React element child.");return a}},r.Component=u,r.Fragment=n,r.Profiler=_,r.PureComponent=h,r.StrictMode=p,r.Suspense=A,r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,r.__COMPILER_RUNTIME=we,r.act=function(a){var y=U.actQueue,O=_t;_t++;var w=U.actQueue=y!==null?y:[],P=!1;try{var K=a()}catch(q){U.thrownErrors.push(q)}if(0<U.thrownErrors.length)throw re(y,O),a=ae(U.thrownErrors),U.thrownErrors.length=0,a;if(K!==null&&typeof K=="object"&&typeof K.then=="function"){var G=K;return jn(function(){P||St||(St=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(q,Le){P=!0,G.then(function(Je){if(re(y,O),O===0){try{se(w),he(function(){return ne(Je,q,Le)})}catch(ls){U.thrownErrors.push(ls)}if(0<U.thrownErrors.length){var is=ae(U.thrownErrors);U.thrownErrors.length=0,Le(is)}}else q(Je)},function(Je){re(y,O),0<U.thrownErrors.length&&(Je=ae(U.thrownErrors),U.thrownErrors.length=0),Le(Je)})}}}var Q=K;if(re(y,O),O===0&&(se(w),w.length!==0&&jn(function(){P||St||(St=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),U.actQueue=null),0<U.thrownErrors.length)throw a=ae(U.thrownErrors),U.thrownErrors.length=0,a;return{then:function(q,Le){P=!0,O===0?(U.actQueue=w,he(function(){return ne(Q,q,Le)})):q(Q)}}},r.cache=function(a){return function(){return a.apply(null,arguments)}},r.captureOwnerStack=function(){var a=U.getCurrentStack;return a===null?null:a()},r.cloneElement=function(a,y,O){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var w=gt({},a.props),P=a.key,K=a._owner;if(y!=null){var G;e:{if(Ce.call(y,"ref")&&(G=Object.getOwnPropertyDescriptor(y,"ref").get)&&G.isReactWarning){G=!1;break e}G=y.ref!==void 0}G&&(K=o()),v(y)&&(l(y.key),P=""+y.key);for(Q in y)!Ce.call(y,Q)||Q==="key"||Q==="__self"||Q==="__source"||Q==="ref"&&y.ref===void 0||(w[Q]=y[Q])}var Q=arguments.length-2;if(Q===1)w.children=O;else if(1<Q){G=Array(Q);for(var q=0;q<Q;q++)G[q]=arguments[q+2];w.children=G}for(w=M(a.type,P,void 0,void 0,K,w,a._debugStack,a._debugTask),P=2;P<arguments.length;P++)K=arguments[P],L(K)&&K._store&&(K._store.validated=1);return w},r.createContext=function(a){return a={$$typeof:x,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:S,_context:a},a._currentRenderer=null,a._currentRenderer2=null,a},r.createElement=function(a,y,O){for(var w=2;w<arguments.length;w++){var P=arguments[w];L(P)&&P._store&&(P._store.validated=1)}if(w={},P=null,y!=null)for(q in ie||!("__self"in y)||"key"in y||(ie=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),v(y)&&(l(y.key),P=""+y.key),y)Ce.call(y,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(w[q]=y[q]);var K=arguments.length-2;if(K===1)w.children=O;else if(1<K){for(var G=Array(K),Q=0;Q<K;Q++)G[Q]=arguments[Q+2];Object.freeze&&Object.freeze(G),w.children=G}if(a&&a.defaultProps)for(q in K=a.defaultProps,K)w[q]===void 0&&(w[q]=K[q]);P&&b(w,typeof a=="function"?a.displayName||a.name||"Unknown":a);var q=1e4>U.recentlyCreatedOwnerStacks++;return M(a,P,void 0,void 0,o(),w,q?Error("react-stack-top-frame"):vt,q?Xe(c(a)):ss)},r.createRef=function(){var a={current:null};return Object.seal(a),a},r.forwardRef=function(a){a!=null&&a.$$typeof===T?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof a!="function"?console.error("forwardRef requires a render function but was given %s.",a===null?"null":typeof a):a.length!==0&&a.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",a.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),a!=null&&a.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var y={$$typeof:N,render:a},O;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(w){O=w,a.name||a.displayName||(Object.defineProperty(a,"name",{value:w}),a.displayName=w)}}),y},r.isValidElement=L,r.lazy=function(a){return{$$typeof:X,_payload:{_status:-1,_result:a},_init:_e}},r.memo=function(a,y){a==null&&console.error("memo: The first argument must be a component. Instead received: %s",a===null?"null":typeof a),y={$$typeof:T,type:a,compare:y===void 0?null:y};var O;return Object.defineProperty(y,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(w){O=w,a.name||a.displayName||(Object.defineProperty(a,"name",{value:w}),a.displayName=w)}}),y},r.startTransition=function(a){var y=U.T,O={};U.T=O,O._updatedFibers=new Set;try{var w=a(),P=U.S;P!==null&&P(O,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(ue,Tn)}catch(K){Tn(K)}finally{y===null&&O._updatedFibers&&(a=O._updatedFibers.size,O._updatedFibers.clear(),10<a&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),U.T=y}},r.unstable_useCacheRefresh=function(){return W().useCacheRefresh()},r.use=function(a){return W().use(a)},r.useActionState=function(a,y,O){return W().useActionState(a,y,O)},r.useCallback=function(a,y){return W().useCallback(a,y)},r.useContext=function(a){var y=W();return a.$$typeof===S&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),y.useContext(a)},r.useDebugValue=function(a,y){return W().useDebugValue(a,y)},r.useDeferredValue=function(a,y){return W().useDeferredValue(a,y)},r.useEffect=function(a,y,O){a==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var w=W();if(typeof O=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return w.useEffect(a,y)},r.useId=function(){return W().useId()},r.useImperativeHandle=function(a,y,O){return W().useImperativeHandle(a,y,O)},r.useInsertionEffect=function(a,y){return a==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useInsertionEffect(a,y)},r.useLayoutEffect=function(a,y){return a==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),W().useLayoutEffect(a,y)},r.useMemo=function(a,y){return W().useMemo(a,y)},r.useOptimistic=function(a,y){return W().useOptimistic(a,y)},r.useReducer=function(a,y,O){return W().useReducer(a,y,O)},r.useRef=function(a){return W().useRef(a)},r.useState=function(a){return W().useState(a)},r.useSyncExternalStore=function(a,y,O){return W().useSyncExternalStore(a,y,O)},r.useTransition=function(){return W().useTransition()},r.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(et,et.exports)),et.exports}var er;function Pe(){return er||(er=1,process.env.NODE_ENV==="production"?wt.exports=Mn():wt.exports=In()),wt.exports}/**
|
|
59
|
+
* @license React
|
|
60
|
+
* react-jsx-runtime.development.js
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/var tr;function Vn(){return tr||(tr=1,process.env.NODE_ENV!=="production"&&(function(){function e(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===_e?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case b:return"Fragment";case M:return"Profiler";case k:return"StrictMode";case C:return"Suspense";case V:return"SuspenseList";case te:return"Activity"}if(typeof n=="object")switch(typeof n.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case v:return"Portal";case L:return(n.displayName||"Context")+".Provider";case Y:return(n._context.displayName||"Context")+".Consumer";case I:var p=n.render;return n=n.displayName,n||(n=p.displayName||p.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return p=n.displayName||null,p!==null?p:e(n.type)||"Memo";case E:p=n._payload,n=n._init;try{return e(n(p))}catch{}}return null}function r(n){return""+n}function t(n){try{r(n);var p=!1}catch{p=!0}if(p){p=console;var _=p.error,S=typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return _.call(p,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",S),r(n)}}function s(n){if(n===b)return"<>";if(typeof n=="object"&&n!==null&&n.$$typeof===E)return"<...>";try{var p=e(n);return p?"<"+p+">":"<...>"}catch{return"<...>"}}function i(){var n=W.A;return n===null?null:n.getOwner()}function u(){return Error("react-stack-top-frame")}function m(n){if(ue.call(n,"key")){var p=Object.getOwnPropertyDescriptor(n,"key").get;if(p&&p.isReactWarning)return!1}return n.key!==void 0}function h(n,p){function _(){re||(re=!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)",p))}_.isReactWarning=!0,Object.defineProperty(n,"key",{get:_,configurable:!0})}function f(){var n=e(this.type);return ne[n]||(ne[n]=!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.")),n=this.props.ref,n!==void 0?n:null}function l(n,p,_,S,x,N,A,$){return _=N.ref,n={$$typeof:d,type:n,key:p,props:N,_owner:x},(_!==void 0?_:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:f}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function g(n,p,_,S,x,N,A,$){var T=p.children;if(T!==void 0)if(S)if(he(T)){for(S=0;S<T.length;S++)c(T[S]);Object.freeze&&Object.freeze(T)}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(T);if(ue.call(p,"key")){T=e(n);var X=Object.keys(p).filter(function(Oe){return Oe!=="key"});S=0<X.length?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}",Se[T+S]||(X=0<X.length?"{"+X.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
67
|
+
let props = %s;
|
|
68
|
+
<%s {...props} />
|
|
69
|
+
React keys must be passed directly to JSX without using spread:
|
|
70
|
+
let props = %s;
|
|
71
|
+
<%s key={someKey} {...props} />`,S,T,X,T),Se[T+S]=!0)}if(T=null,_!==void 0&&(t(_),T=""+_),m(p)&&(t(p.key),T=""+p.key),"key"in p){_={};for(var fe in p)fe!=="key"&&(_[fe]=p[fe])}else _=p;return T&&h(_,typeof n=="function"?n.displayName||n.name||"Unknown":n),l(n,T,N,x,i(),_,A,$)}function c(n){typeof n=="object"&&n!==null&&n.$$typeof===d&&n._store&&(n._store.validated=1)}var o=Pe(),d=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),_e=Symbol.for("react.client.reference"),W=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,he=Array.isArray,ae=console.createTask?console.createTask:function(){return null};o={react_stack_bottom_frame:function(n){return n()}};var re,ne={},se=o.react_stack_bottom_frame.bind(o,u)(),D=ae(s(u)),Se={};Ze.Fragment=b,Ze.jsx=function(n,p,_,S,x){var N=1e4>W.recentlyCreatedOwnerStacks++;return g(n,p,_,!1,S,x,N?Error("react-stack-top-frame"):se,N?ae(s(n)):D)},Ze.jsxs=function(n,p,_,S,x){var N=1e4>W.recentlyCreatedOwnerStacks++;return g(n,p,_,!0,S,x,N?Error("react-stack-top-frame"):se,N?ae(s(n)):D)}})()),Ze}var rr;function $n(){return rr||(rr=1,process.env.NODE_ENV==="production"?Ot.exports=Pn():Ot.exports=Vn()),Ot.exports}var oe=$n(),H=Pe();const ee=Ln(H);function zn(e,r=[]){let t=[];function s(u,m){const h=H.createContext(m),f=t.length;t=[...t,m];const l=c=>{const{scope:o,children:d,...v}=c,b=o?.[e]?.[f]||h,k=H.useMemo(()=>v,Object.values(v));return oe.jsx(b.Provider,{value:k,children:d})};l.displayName=u+"Provider";function g(c,o){const d=o?.[e]?.[f]||h,v=H.useContext(d);if(v)return v;if(m!==void 0)return m;throw new Error(`\`${c}\` must be used within \`${u}\``)}return[l,g]}const i=()=>{const u=t.map(m=>H.createContext(m));return function(m){const h=m?.[e]||u;return H.useMemo(()=>({[`__scope${e}`]:{...m,[e]:h}}),[m,h])}};return i.scopeName=e,[s,Un(i,...r)]}function Un(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const s=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(i){const u=s.reduce((m,{useScope:h,scopeName:f})=>{const l=h(i)[`__scope${f}`];return{...m,...l}},{});return H.useMemo(()=>({[`__scope${r.scopeName}`]:u}),[u])}};return t.scopeName=r.scopeName,t}function Hn(e){const r=H.useRef(e);return H.useEffect(()=>{r.current=e}),H.useMemo(()=>(...t)=>r.current?.(...t),[])}var Et=globalThis?.document?H.useLayoutEffect:()=>{},tt={exports:{}},pe={};/**
|
|
72
|
+
* @license React
|
|
73
|
+
* react-dom.production.js
|
|
74
|
+
*
|
|
75
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the MIT license found in the
|
|
78
|
+
* LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/var nr;function Fn(){if(nr)return pe;nr=1;var e=Pe();function r(f){var l="https://react.dev/errors/"+f;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)l+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var s={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=Symbol.for("react.portal");function u(f,l,g){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:c==null?null:""+c,children:f,containerInfo:l,implementation:g}}var m=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(f,l){if(f==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return pe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,pe.createPortal=function(f,l){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(r(299));return u(f,l,null,g)},pe.flushSync=function(f){var l=m.T,g=s.p;try{if(m.T=null,s.p=2,f)return f()}finally{m.T=l,s.p=g,s.d.f()}},pe.preconnect=function(f,l){typeof f=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,s.d.C(f,l))},pe.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},pe.preinit=function(f,l){if(typeof f=="string"&&l&&typeof l.as=="string"){var g=l.as,c=h(g,l.crossOrigin),o=typeof l.integrity=="string"?l.integrity:void 0,d=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;g==="style"?s.d.S(f,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:o,fetchPriority:d}):g==="script"&&s.d.X(f,{crossOrigin:c,integrity:o,fetchPriority:d,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},pe.preinitModule=function(f,l){if(typeof f=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var g=h(l.as,l.crossOrigin);s.d.M(f,{crossOrigin:g,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&s.d.M(f)},pe.preload=function(f,l){if(typeof f=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var g=l.as,c=h(g,l.crossOrigin);s.d.L(f,g,{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})}},pe.preloadModule=function(f,l){if(typeof f=="string")if(l){var g=h(l.as,l.crossOrigin);s.d.m(f,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:g,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else s.d.m(f)},pe.requestFormReset=function(f){s.d.r(f)},pe.unstable_batchedUpdates=function(f,l){return f(l)},pe.useFormState=function(f,l,g){return m.H.useFormState(f,l,g)},pe.useFormStatus=function(){return m.H.useHostTransitionStatus()},pe.version="19.1.1",pe}var ge={};/**
|
|
80
|
+
* @license React
|
|
81
|
+
* react-dom.development.js
|
|
82
|
+
*
|
|
83
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the MIT license found in the
|
|
86
|
+
* LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/var or;function Gn(){return or||(or=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function r(c){return""+c}function t(c,o,d){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(v);var b=!1}catch{b=!0}return b&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),r(v)),{$$typeof:l,key:v==null?null:""+v,children:c,containerInfo:o,implementation:d}}function s(c,o){if(c==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}function i(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function u(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 m(){var c=g.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:
|
|
88
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
89
|
+
2. You might be breaking the Rules of Hooks
|
|
90
|
+
3. You might have more than one copy of React in the same app
|
|
91
|
+
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 h=Pe(),f={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"),g=h.__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"),ge.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ge.createPortal=function(c,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error("Target container is not a DOM element.");return t(c,o,null,d)},ge.flushSync=function(c){var o=g.T,d=f.p;try{if(g.T=null,f.p=2,c)return c()}finally{g.T=o,f.p=d,f.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.")}},ge.preconnect=function(c,o){typeof c=="string"&&c?o!=null&&typeof o!="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.",u(o)):o!=null&&typeof o.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.",i(o.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(c)),typeof c=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,f.d.C(c,o))},ge.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.",i(c));else if(1<arguments.length){var o=arguments[1];typeof o=="object"&&o.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`.",u(o)):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`.",u(o))}typeof c=="string"&&f.d.D(c)},ge.preinit=function(c,o){if(typeof c=="string"&&c?o==null||typeof o!="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.",u(o)):o.as!=="style"&&o.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".',u(o.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(c)),typeof c=="string"&&o&&typeof o.as=="string"){var d=o.as,v=s(d,o.crossOrigin),b=typeof o.integrity=="string"?o.integrity:void 0,k=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;d==="style"?f.d.S(c,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:k}):d==="script"&&f.d.X(c,{crossOrigin:v,integrity:b,fetchPriority:k,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},ge.preinitModule=function(c,o){var d="";if(typeof c=="string"&&c||(d+=" The `href` argument encountered was "+i(c)+"."),o!==void 0&&typeof o!="object"?d+=" The `options` argument encountered was "+i(o)+".":o&&"as"in o&&o.as!=="script"&&(d+=" The `as` option encountered was "+u(o.as)+"."),d)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",d);else switch(d=o&&typeof o.as=="string"?o.as:"script",d){case"script":break;default:d=u(d),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)',d,c)}typeof c=="string"&&(typeof o=="object"&&o!==null?(o.as==null||o.as==="script")&&(d=s(o.as,o.crossOrigin),f.d.M(c,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})):o==null&&f.d.M(c))},ge.preload=function(c,o){var d="";if(typeof c=="string"&&c||(d+=" The `href` argument encountered was "+i(c)+"."),o==null||typeof o!="object"?d+=" The `options` argument encountered was "+i(o)+".":typeof o.as=="string"&&o.as||(d+=" The `as` option encountered was "+i(o.as)+"."),d&&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',d),typeof c=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){d=o.as;var v=s(d,o.crossOrigin);f.d.L(c,d,{crossOrigin:v,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},ge.preloadModule=function(c,o){var d="";typeof c=="string"&&c||(d+=" The `href` argument encountered was "+i(c)+"."),o!==void 0&&typeof o!="object"?d+=" The `options` argument encountered was "+i(o)+".":o&&"as"in o&&typeof o.as!="string"&&(d+=" The `as` option encountered was "+i(o.as)+"."),d&&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',d),typeof c=="string"&&(o?(d=s(o.as,o.crossOrigin),f.d.m(c,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0})):f.d.m(c))},ge.requestFormReset=function(c){f.d.r(c)},ge.unstable_batchedUpdates=function(c,o){return c(o)},ge.useFormState=function(c,o,d){return m().useFormState(c,o,d)},ge.useFormStatus=function(){return m().useHostTransitionStatus()},ge.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ge}var ar;function Wn(){if(ar)return tt.exports;ar=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(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(e(),tt.exports=Fn()):tt.exports=Gn(),tt.exports}Wn();function sr(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function qn(...e){return r=>{let t=!1;const s=e.map(i=>{const u=sr(i,r);return!t&&typeof u=="function"&&(t=!0),u});if(t)return()=>{for(let i=0;i<s.length;i++){const u=s[i];typeof u=="function"?u():sr(e[i],null)}}}}function ir(e){const r=Kn(e),t=H.forwardRef((s,i)=>{const{children:u,...m}=s,h=H.Children.toArray(u),f=h.find(Yn);if(f){const l=f.props.children,g=h.map(c=>c===f?H.Children.count(l)>1?H.Children.only(null):H.isValidElement(l)?l.props.children:null:c);return oe.jsx(r,{...m,ref:i,children:H.isValidElement(l)?H.cloneElement(l,void 0,g):null})}return oe.jsx(r,{...m,ref:i,children:u})});return t.displayName=`${e}.Slot`,t}var lr=ir("Slot");function Kn(e){const r=H.forwardRef((t,s)=>{const{children:i,...u}=t;if(H.isValidElement(i)){const m=Jn(i),h=Xn(u,i.props);return i.type!==H.Fragment&&(h.ref=s?qn(s,m):m),H.cloneElement(i,h)}return H.Children.count(i)>1?H.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var Bn=Symbol("radix.slottable");function Yn(e){return H.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Bn}function Xn(e,r){const t={...r};for(const s in r){const i=e[s],u=r[s];/^on[A-Z]/.test(s)?i&&u?t[s]=(...m)=>{const h=u(...m);return i(...m),h}:i&&(t[s]=i):s==="style"?t[s]={...i,...u}:s==="className"&&(t[s]=[i,u].filter(Boolean).join(" "))}return{...e,...t}}function Jn(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning;return t?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=r&&"isReactWarning"in r&&r.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}var Qn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],rt=Qn.reduce((e,r)=>{const t=ir(`Primitive.${r}`),s=H.forwardRef((i,u)=>{const{asChild:m,...h}=i,f=m?t:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),oe.jsx(f,{...h,ref:u})});return s.displayName=`Primitive.${r}`,{...e,[r]:s}},{}),kt={exports:{}},xt={};/**
|
|
92
|
+
* @license React
|
|
93
|
+
* use-sync-external-store-shim.production.js
|
|
94
|
+
*
|
|
95
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the MIT license found in the
|
|
98
|
+
* LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/var cr;function Zn(){if(cr)return xt;cr=1;var e=Pe();function r(c,o){return c===o&&(c!==0||1/c===1/o)||c!==c&&o!==o}var t=typeof Object.is=="function"?Object.is:r,s=e.useState,i=e.useEffect,u=e.useLayoutEffect,m=e.useDebugValue;function h(c,o){var d=o(),v=s({inst:{value:d,getSnapshot:o}}),b=v[0].inst,k=v[1];return u(function(){b.value=d,b.getSnapshot=o,f(b)&&k({inst:b})},[c,d,o]),i(function(){return f(b)&&k({inst:b}),c(function(){f(b)&&k({inst:b})})},[c]),m(d),d}function f(c){var o=c.getSnapshot;c=c.value;try{var d=o();return!t(c,d)}catch{return!0}}function l(c,o){return o()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:h;return xt.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,xt}var ur={};/**
|
|
100
|
+
* @license React
|
|
101
|
+
* use-sync-external-store-shim.development.js
|
|
102
|
+
*
|
|
103
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the MIT license found in the
|
|
106
|
+
* LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/var fr;function eo(){return fr||(fr=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,v){return d===v&&(d!==0||1/d===1/v)||d!==d&&v!==v}function r(d,v){g||i.startTransition===void 0||(g=!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 b=v();if(!c){var k=v();u(b,k)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}k=m({inst:{value:b,getSnapshot:v}});var M=k[0].inst,Y=k[1];return f(function(){M.value=b,M.getSnapshot=v,t(M)&&Y({inst:M})},[d,b,v]),h(function(){return t(M)&&Y({inst:M}),d(function(){t(M)&&Y({inst:M})})},[d]),l(b),b}function t(d){var v=d.getSnapshot;d=d.value;try{var b=v();return!u(d,b)}catch{return!0}}function s(d,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=Pe(),u=typeof Object.is=="function"?Object.is:e,m=i.useState,h=i.useEffect,f=i.useLayoutEffect,l=i.useDebugValue,g=!1,c=!1,o=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:r;ur.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ur}var dr;function to(){return dr||(dr=1,process.env.NODE_ENV==="production"?kt.exports=Zn():kt.exports=eo()),kt.exports}var ro=to();function no(){return ro.useSyncExternalStore(oo,()=>!0,()=>!1)}function oo(){return()=>{}}var Tt="Avatar",[ao,cs]=zn(Tt),[so,pr]=ao(Tt),io=H.forwardRef((e,r)=>{const{__scopeAvatar:t,...s}=e,[i,u]=H.useState("idle");return oe.jsx(so,{scope:t,imageLoadingStatus:i,onImageLoadingStatusChange:u,children:oe.jsx(rt.span,{...s,ref:r})})});io.displayName=Tt;var mr="AvatarImage",lo=H.forwardRef((e,r)=>{const{__scopeAvatar:t,src:s,onLoadingStatusChange:i=()=>{},...u}=e,m=pr(mr,t),h=uo(s,u),f=Hn(l=>{i(l),m.onImageLoadingStatusChange(l)});return Et(()=>{h!=="idle"&&f(h)},[h,f]),h==="loaded"?oe.jsx(rt.img,{...u,ref:r,src:s}):null});lo.displayName=mr;var yr="AvatarFallback",co=H.forwardRef((e,r)=>{const{__scopeAvatar:t,delayMs:s,...i}=e,u=pr(yr,t),[m,h]=H.useState(s===void 0);return H.useEffect(()=>{if(s!==void 0){const f=window.setTimeout(()=>h(!0),s);return()=>window.clearTimeout(f)}},[s]),m&&u.imageLoadingStatus!=="loaded"?oe.jsx(rt.span,{...i,ref:r}):null});co.displayName=yr;function gr(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function uo(e,{referrerPolicy:r,crossOrigin:t}){const s=no(),i=H.useRef(null),u=s?(i.current||(i.current=new window.Image),i.current):null,[m,h]=H.useState(()=>gr(u,e));return Et(()=>{h(gr(u,e))},[u,e]),Et(()=>{const f=c=>()=>{h(c)};if(!u)return;const l=f("loaded"),g=f("error");return u.addEventListener("load",l),u.addEventListener("error",g),r&&(u.referrerPolicy=r),typeof t=="string"&&(u.crossOrigin=t),()=>{u.removeEventListener("load",l),u.removeEventListener("error",g)}},[u,t,r]),m}function hr(e){var r,t,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(r=0;r<i;r++)e[r]&&(t=hr(e[r]))&&(s&&(s+=" "),s+=t)}else for(t in e)e[t]&&(s&&(s+=" "),s+=t);return s}function vr(){for(var e,r,t=0,s="",i=arguments.length;t<i;t++)(e=arguments[t])&&(r=hr(e))&&(s&&(s+=" "),s+=r);return s}const Rt="-",fo=e=>{const r=mo(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:i=>{const u=i.split(Rt);return u[0]===""&&u.length!==1&&u.shift(),br(u,r)||po(i)},getConflictingClassGroupIds:(i,u)=>{const m=t[i]||[];return u&&s[i]?[...m,...s[i]]:m}}},br=(e,r)=>{if(e.length===0)return r.classGroupId;const t=e[0],s=r.nextPart.get(t),i=s?br(e.slice(1),s):void 0;if(i)return i;if(r.validators.length===0)return;const u=e.join(Rt);return r.validators.find(({validator:m})=>m(u))?.classGroupId},_r=/^\[(.+)\]$/,po=e=>{if(_r.test(e)){const r=_r.exec(e)[1],t=r?.substring(0,r.indexOf(":"));if(t)return"arbitrary.."+t}},mo=e=>{const{theme:r,classGroups:t}=e,s={nextPart:new Map,validators:[]};for(const i in t)jt(t[i],s,i,r);return s},jt=(e,r,t,s)=>{e.forEach(i=>{if(typeof i=="string"){const u=i===""?r:Sr(r,i);u.classGroupId=t;return}if(typeof i=="function"){if(yo(i)){jt(i(s),r,t,s);return}r.validators.push({validator:i,classGroupId:t});return}Object.entries(i).forEach(([u,m])=>{jt(m,Sr(r,u),t,s)})})},Sr=(e,r)=>{let t=e;return r.split(Rt).forEach(s=>{t.nextPart.has(s)||t.nextPart.set(s,{nextPart:new Map,validators:[]}),t=t.nextPart.get(s)}),t},yo=e=>e.isThemeGetter,go=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=new Map,s=new Map;const i=(u,m)=>{t.set(u,m),r++,r>e&&(r=0,s=t,t=new Map)};return{get(u){let m=t.get(u);if(m!==void 0)return m;if((m=s.get(u))!==void 0)return i(u,m),m},set(u,m){t.has(u)?t.set(u,m):i(u,m)}}},Dt="!",At=":",ho=At.length,vo=e=>{const{prefix:r,experimentalParseClassName:t}=e;let s=i=>{const u=[];let m=0,h=0,f=0,l;for(let v=0;v<i.length;v++){let b=i[v];if(m===0&&h===0){if(b===At){u.push(i.slice(f,v)),f=v+ho;continue}if(b==="/"){l=v;continue}}b==="["?m++:b==="]"?m--:b==="("?h++:b===")"&&h--}const g=u.length===0?i:i.substring(f),c=bo(g),o=c!==g,d=l&&l>f?l-f:void 0;return{modifiers:u,hasImportantModifier:o,baseClassName:c,maybePostfixModifierPosition:d}};if(r){const i=r+At,u=s;s=m=>m.startsWith(i)?u(m.substring(i.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:m,maybePostfixModifierPosition:void 0}}if(t){const i=s;s=u=>t({className:u,parseClassName:i})}return s},bo=e=>e.endsWith(Dt)?e.substring(0,e.length-1):e.startsWith(Dt)?e.substring(1):e,_o=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(t=>[t,!0]));return t=>{if(t.length<=1)return t;const s=[];let i=[];return t.forEach(u=>{u[0]==="["||r[u]?(s.push(...i.sort(),u),i=[]):i.push(u)}),s.push(...i.sort()),s}},So=e=>({cache:go(e.cacheSize),parseClassName:vo(e),sortModifiers:_o(e),...fo(e)}),Oo=/\s+/,wo=(e,r)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:i,sortModifiers:u}=r,m=[],h=e.trim().split(Oo);let f="";for(let l=h.length-1;l>=0;l-=1){const g=h[l],{isExternal:c,modifiers:o,hasImportantModifier:d,baseClassName:v,maybePostfixModifierPosition:b}=t(g);if(c){f=g+(f.length>0?" "+f:f);continue}let k=!!b,M=s(k?v.substring(0,b):v);if(!M){if(!k){f=g+(f.length>0?" "+f:f);continue}if(M=s(v),!M){f=g+(f.length>0?" "+f:f);continue}k=!1}const Y=u(o).join(":"),L=d?Y+Dt:Y,I=L+M;if(m.includes(I))continue;m.push(I);const C=i(M,k);for(let V=0;V<C.length;++V){const B=C[V];m.push(L+B)}f=g+(f.length>0?" "+f:f)}return f};function Eo(){let e=0,r,t,s="";for(;e<arguments.length;)(r=arguments[e++])&&(t=Or(r))&&(s&&(s+=" "),s+=t);return s}const Or=e=>{if(typeof e=="string")return e;let r,t="";for(let s=0;s<e.length;s++)e[s]&&(r=Or(e[s]))&&(t&&(t+=" "),t+=r);return t};function ko(e,...r){let t,s,i,u=m;function m(f){const l=r.reduce((g,c)=>c(g),e());return t=So(l),s=t.cache.get,i=t.cache.set,u=h,h(f)}function h(f){const l=s(f);if(l)return l;const g=wo(f,t);return i(f,g),g}return function(){return u(Eo.apply(null,arguments))}}const ce=e=>{const r=t=>t[e]||[];return r.isThemeGetter=!0,r},wr=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Er=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xo=/^\d+\/\d+$/,To=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ro=/\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$/,jo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Do=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ao=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Me=e=>xo.test(e),F=e=>!!e&&!Number.isNaN(Number(e)),Re=e=>!!e&&Number.isInteger(Number(e)),Nt=e=>e.endsWith("%")&&F(e.slice(0,-1)),xe=e=>To.test(e),No=()=>!0,Co=e=>Ro.test(e)&&!jo.test(e),kr=()=>!1,Lo=e=>Do.test(e),Po=e=>Ao.test(e),Mo=e=>!R(e)&&!j(e),Io=e=>Ie(e,Dr,kr),R=e=>wr.test(e),je=e=>Ie(e,Ar,Co),Ct=e=>Ie(e,Ho,F),xr=e=>Ie(e,Rr,kr),Vo=e=>Ie(e,jr,Po),nt=e=>Ie(e,Nr,Lo),j=e=>Er.test(e),qe=e=>Ve(e,Ar),$o=e=>Ve(e,Fo),Tr=e=>Ve(e,Rr),zo=e=>Ve(e,Dr),Uo=e=>Ve(e,jr),ot=e=>Ve(e,Nr,!0),Ie=(e,r,t)=>{const s=wr.exec(e);return s?s[1]?r(s[1]):t(s[2]):!1},Ve=(e,r,t=!1)=>{const s=Er.exec(e);return s?s[1]?r(s[1]):t:!1},Rr=e=>e==="position"||e==="percentage",jr=e=>e==="image"||e==="url",Dr=e=>e==="length"||e==="size"||e==="bg-size",Ar=e=>e==="length",Ho=e=>e==="number",Fo=e=>e==="family-name",Nr=e=>e==="shadow",Go=()=>{const e=ce("color"),r=ce("font"),t=ce("text"),s=ce("font-weight"),i=ce("tracking"),u=ce("leading"),m=ce("breakpoint"),h=ce("container"),f=ce("spacing"),l=ce("radius"),g=ce("shadow"),c=ce("inset-shadow"),o=ce("text-shadow"),d=ce("drop-shadow"),v=ce("blur"),b=ce("perspective"),k=ce("aspect"),M=ce("ease"),Y=ce("animate"),L=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...I(),j,R],V=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],E=()=>[j,R,f],te=()=>[Me,"full","auto",...E()],_e=()=>[Re,"none","subgrid",j,R],W=()=>["auto",{span:["full",Re,j,R]},Re,j,R],ue=()=>[Re,"auto",j,R],he=()=>["auto","min","max","fr",j,R],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],ne=()=>["auto",...E()],se=()=>[Me,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],D=()=>[e,j,R],Se=()=>[...I(),Tr,xr,{position:[j,R]}],n=()=>["no-repeat",{repeat:["","x","y","space","round"]}],p=()=>["auto","cover","contain",zo,Io,{size:[j,R]}],_=()=>[Nt,qe,je],S=()=>["","none","full",l,j,R],x=()=>["",F,qe,je],N=()=>["solid","dashed","dotted","double"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],$=()=>[F,Nt,Tr,xr],T=()=>["","none",v,j,R],X=()=>["none",F,j,R],fe=()=>["none",F,j,R],Oe=()=>[F,j,R],ve=()=>[Me,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xe],breakpoint:[xe],color:[No],container:[xe],"drop-shadow":[xe],ease:["in","out","in-out"],font:[Mo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xe],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xe],shadow:[xe],spacing:["px",F],text:[xe],"text-shadow":[xe],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Me,R,j,k]}],container:["container"],columns:[{columns:[F,R,j,h]}],"break-after":[{"break-after":L()}],"break-before":[{"break-before":L()}],"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:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Re,"auto",j,R]}],basis:[{basis:[Me,"full","auto",h,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[F,Me,"auto","initial","none",R]}],grow:[{grow:["",F,j,R]}],shrink:[{shrink:["",F,j,R]}],order:[{order:[Re,"first","last","none",j,R]}],"grid-cols":[{"grid-cols":_e()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":_e()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":ue()}],"row-end":[{"row-end":ue()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":he()}],"auto-rows":[{"auto-rows":he()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:ne()}],mx:[{mx:ne()}],my:[{my:ne()}],ms:[{ms:ne()}],me:[{me:ne()}],mt:[{mt:ne()}],mr:[{mr:ne()}],mb:[{mb:ne()}],ml:[{ml:ne()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:se()}],w:[{w:[h,"screen",...se()]}],"min-w":[{"min-w":[h,"screen","none",...se()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...se()]}],h:[{h:["screen","lh",...se()]}],"min-h":[{"min-h":["screen","lh","none",...se()]}],"max-h":[{"max-h":["screen","lh",...se()]}],"font-size":[{text:["base",t,qe,je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,j,Ct]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Nt,R]}],"font-family":[{font:[$o,R,r]}],"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:[i,j,R]}],"line-clamp":[{"line-clamp":[F,"none",j,Ct]}],leading:[{leading:[u,...E()]}],"list-image":[{"list-image":["none",j,R]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",j,R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:D()}],"text-color":[{text:D()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...N(),"wavy"]}],"text-decoration-thickness":[{decoration:[F,"from-font","auto",j,je]}],"text-decoration-color":[{decoration:D()}],"underline-offset":[{"underline-offset":[F,"auto",j,R]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",j,R]}],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",j,R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:n()}],"bg-size":[{bg:p()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Re,j,R],radial:["",j,R],conic:[Re,j,R]},Uo,Vo]}],"bg-color":[{bg:D()}],"gradient-from-pos":[{from:_()}],"gradient-via-pos":[{via:_()}],"gradient-to-pos":[{to:_()}],"gradient-from":[{from:D()}],"gradient-via":[{via:D()}],"gradient-to":[{to:D()}],rounded:[{rounded:S()}],"rounded-s":[{"rounded-s":S()}],"rounded-e":[{"rounded-e":S()}],"rounded-t":[{"rounded-t":S()}],"rounded-r":[{"rounded-r":S()}],"rounded-b":[{"rounded-b":S()}],"rounded-l":[{"rounded-l":S()}],"rounded-ss":[{"rounded-ss":S()}],"rounded-se":[{"rounded-se":S()}],"rounded-ee":[{"rounded-ee":S()}],"rounded-es":[{"rounded-es":S()}],"rounded-tl":[{"rounded-tl":S()}],"rounded-tr":[{"rounded-tr":S()}],"rounded-br":[{"rounded-br":S()}],"rounded-bl":[{"rounded-bl":S()}],"border-w":[{border:x()}],"border-w-x":[{"border-x":x()}],"border-w-y":[{"border-y":x()}],"border-w-s":[{"border-s":x()}],"border-w-e":[{"border-e":x()}],"border-w-t":[{"border-t":x()}],"border-w-r":[{"border-r":x()}],"border-w-b":[{"border-b":x()}],"border-w-l":[{"border-l":x()}],"divide-x":[{"divide-x":x()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":x()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...N(),"hidden","none"]}],"divide-style":[{divide:[...N(),"hidden","none"]}],"border-color":[{border:D()}],"border-color-x":[{"border-x":D()}],"border-color-y":[{"border-y":D()}],"border-color-s":[{"border-s":D()}],"border-color-e":[{"border-e":D()}],"border-color-t":[{"border-t":D()}],"border-color-r":[{"border-r":D()}],"border-color-b":[{"border-b":D()}],"border-color-l":[{"border-l":D()}],"divide-color":[{divide:D()}],"outline-style":[{outline:[...N(),"none","hidden"]}],"outline-offset":[{"outline-offset":[F,j,R]}],"outline-w":[{outline:["",F,qe,je]}],"outline-color":[{outline:D()}],shadow:[{shadow:["","none",g,ot,nt]}],"shadow-color":[{shadow:D()}],"inset-shadow":[{"inset-shadow":["none",c,ot,nt]}],"inset-shadow-color":[{"inset-shadow":D()}],"ring-w":[{ring:x()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:D()}],"ring-offset-w":[{"ring-offset":[F,je]}],"ring-offset-color":[{"ring-offset":D()}],"inset-ring-w":[{"inset-ring":x()}],"inset-ring-color":[{"inset-ring":D()}],"text-shadow":[{"text-shadow":["none",o,ot,nt]}],"text-shadow-color":[{"text-shadow":D()}],opacity:[{opacity:[F,j,R]}],"mix-blend":[{"mix-blend":[...A(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":A()}],"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":[F]}],"mask-image-linear-from-pos":[{"mask-linear-from":$()}],"mask-image-linear-to-pos":[{"mask-linear-to":$()}],"mask-image-linear-from-color":[{"mask-linear-from":D()}],"mask-image-linear-to-color":[{"mask-linear-to":D()}],"mask-image-t-from-pos":[{"mask-t-from":$()}],"mask-image-t-to-pos":[{"mask-t-to":$()}],"mask-image-t-from-color":[{"mask-t-from":D()}],"mask-image-t-to-color":[{"mask-t-to":D()}],"mask-image-r-from-pos":[{"mask-r-from":$()}],"mask-image-r-to-pos":[{"mask-r-to":$()}],"mask-image-r-from-color":[{"mask-r-from":D()}],"mask-image-r-to-color":[{"mask-r-to":D()}],"mask-image-b-from-pos":[{"mask-b-from":$()}],"mask-image-b-to-pos":[{"mask-b-to":$()}],"mask-image-b-from-color":[{"mask-b-from":D()}],"mask-image-b-to-color":[{"mask-b-to":D()}],"mask-image-l-from-pos":[{"mask-l-from":$()}],"mask-image-l-to-pos":[{"mask-l-to":$()}],"mask-image-l-from-color":[{"mask-l-from":D()}],"mask-image-l-to-color":[{"mask-l-to":D()}],"mask-image-x-from-pos":[{"mask-x-from":$()}],"mask-image-x-to-pos":[{"mask-x-to":$()}],"mask-image-x-from-color":[{"mask-x-from":D()}],"mask-image-x-to-color":[{"mask-x-to":D()}],"mask-image-y-from-pos":[{"mask-y-from":$()}],"mask-image-y-to-pos":[{"mask-y-to":$()}],"mask-image-y-from-color":[{"mask-y-from":D()}],"mask-image-y-to-color":[{"mask-y-to":D()}],"mask-image-radial":[{"mask-radial":[j,R]}],"mask-image-radial-from-pos":[{"mask-radial-from":$()}],"mask-image-radial-to-pos":[{"mask-radial-to":$()}],"mask-image-radial-from-color":[{"mask-radial-from":D()}],"mask-image-radial-to-color":[{"mask-radial-to":D()}],"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":I()}],"mask-image-conic-pos":[{"mask-conic":[F]}],"mask-image-conic-from-pos":[{"mask-conic-from":$()}],"mask-image-conic-to-pos":[{"mask-conic-to":$()}],"mask-image-conic-from-color":[{"mask-conic-from":D()}],"mask-image-conic-to-color":[{"mask-conic-to":D()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:n()}],"mask-size":[{mask:p()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",j,R]}],filter:[{filter:["","none",j,R]}],blur:[{blur:T()}],brightness:[{brightness:[F,j,R]}],contrast:[{contrast:[F,j,R]}],"drop-shadow":[{"drop-shadow":["","none",d,ot,nt]}],"drop-shadow-color":[{"drop-shadow":D()}],grayscale:[{grayscale:["",F,j,R]}],"hue-rotate":[{"hue-rotate":[F,j,R]}],invert:[{invert:["",F,j,R]}],saturate:[{saturate:[F,j,R]}],sepia:[{sepia:["",F,j,R]}],"backdrop-filter":[{"backdrop-filter":["","none",j,R]}],"backdrop-blur":[{"backdrop-blur":T()}],"backdrop-brightness":[{"backdrop-brightness":[F,j,R]}],"backdrop-contrast":[{"backdrop-contrast":[F,j,R]}],"backdrop-grayscale":[{"backdrop-grayscale":["",F,j,R]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[F,j,R]}],"backdrop-invert":[{"backdrop-invert":["",F,j,R]}],"backdrop-opacity":[{"backdrop-opacity":[F,j,R]}],"backdrop-saturate":[{"backdrop-saturate":[F,j,R]}],"backdrop-sepia":[{"backdrop-sepia":["",F,j,R]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",j,R]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[F,"initial",j,R]}],ease:[{ease:["linear","initial",M,j,R]}],delay:[{delay:[F,j,R]}],animate:[{animate:["none",Y,j,R]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,j,R]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:X()}],"rotate-x":[{"rotate-x":X()}],"rotate-y":[{"rotate-y":X()}],"rotate-z":[{"rotate-z":X()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:Oe()}],"skew-x":[{"skew-x":Oe()}],"skew-y":[{"skew-y":Oe()}],transform:[{transform:[j,R,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ve()}],"translate-x":[{"translate-x":ve()}],"translate-y":[{"translate-y":ve()}],"translate-z":[{"translate-z":ve()}],"translate-none":["translate-none"],accent:[{accent:D()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:D()}],"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",j,R]}],"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":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"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",j,R]}],fill:[{fill:["none",...D()]}],"stroke-w":[{stroke:[F,qe,je,Ct]}],stroke:[{stroke:["none",...D()]}],"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"]}},Wo=ko(Go);function Te(...e){return Wo(vr(e))}const Cr=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Lr=vr,qo=((e,r)=>t=>{var s;if(r?.variants==null)return Lr(e,t?.class,t?.className);const{variants:i,defaultVariants:u}=r,m=Object.keys(i).map(l=>{const g=t?.[l],c=u?.[l];if(g===null)return null;const o=Cr(g)||Cr(c);return i[l][o]}),h=t&&Object.entries(t).reduce((l,g)=>{let[c,o]=g;return o===void 0||(l[c]=o),l},{}),f=r==null||(s=r.compoundVariants)===null||s===void 0?void 0:s.reduce((l,g)=>{let{class:c,className:o,...d}=g;return Object.entries(d).every(v=>{let[b,k]=v;return Array.isArray(k)?k.includes({...u,...h}[b]):{...u,...h}[b]===k})?[...l,c,o]:l},[]);return Lr(e,m,f,t?.class,t?.className)})("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 shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs 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 shadow-xs 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"}},defaultVariants:{variant:"default",size:"default"}});function Ko({className:e,variant:r,size:t,asChild:s=!1,...i}){const u=s?lr:"button";return oe.jsx(u,{"data-slot":"button",className:Te(qo({variant:r,size:t,className:e})),...i})}function Bo({className:e,...r}){return oe.jsx("div",{"data-slot":"card",className:Te("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...r})}function Yo({className:e,...r}){return oe.jsx("div",{"data-slot":"card-header",className:Te("@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),...r})}function Xo({className:e,...r}){return oe.jsx("div",{"data-slot":"card-title",className:Te("leading-none font-semibold",e),...r})}function Jo({className:e,...r}){return oe.jsx("div",{"data-slot":"card-description",className:Te("text-muted-foreground text-sm",e),...r})}function Qo({className:e,...r}){return oe.jsx("div",{"data-slot":"card-content",className:Te("px-6",e),...r})}var Zo="Label",Pr=H.forwardRef((e,r)=>oe.jsx(rt.label,{...e,ref:r,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Pr.displayName=Zo;var ea=Pr,ta=e=>e.type==="checkbox",Ke=e=>e instanceof Date,Lt=e=>e==null;const Mr=e=>typeof e=="object";var De=e=>!Lt(e)&&!Array.isArray(e)&&Mr(e)&&!Ke(e),ra=e=>De(e)&&e.target?ta(e.target)?e.target.checked:e.target.value:e,na=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oa=(e,r)=>e.has(na(r)),aa=e=>{const r=e.constructor&&e.constructor.prototype;return De(r)&&r.hasOwnProperty("isPrototypeOf")},sa=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ir(e){let r;const t=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(!(sa&&(e instanceof Blob||s))&&(t||De(e)))if(r=t?[]:Object.create(Object.getPrototypeOf(e)),!t&&!aa(e))r=e;else for(const i in e)e.hasOwnProperty(i)&&(r[i]=Ir(e[i]));else return e;return r}var Vr=e=>/^\w*$/.test(e),Pt=e=>e===void 0,ia=e=>Array.isArray(e)?e.filter(Boolean):[],$r=e=>ia(e.replace(/["|']|\]/g,"").split(/\.|\[/)),be=(e,r,t)=>{if(!r||!De(e))return t;const s=(Vr(r)?[r]:$r(r)).reduce((i,u)=>Lt(i)?i:i[u],e);return Pt(s)||s===e?Pt(e[r])?t:e[r]:s},Mt=e=>typeof e=="boolean",zr=(e,r,t)=>{let s=-1;const i=Vr(r)?[r]:$r(r),u=i.length,m=u-1;for(;++s<u;){const h=i[s];let f=t;if(s!==m){const l=e[h];f=De(l)||Array.isArray(l)?l:isNaN(+i[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;e[h]=f,e=e[h]}};const Ur={BLUR:"blur",CHANGE:"change"},Hr={all:"all"},It=ee.createContext(null);It.displayName="HookFormContext";const at=()=>ee.useContext(It),la=e=>{const{children:r,...t}=e;return ee.createElement(It.Provider,{value:t},r)};var ca=(e,r,t,s=!0)=>{const i={defaultValues:r._defaultValues};for(const u in e)Object.defineProperty(i,u,{get:()=>{const m=u;return r._proxyFormState[m]!==Hr.all&&(r._proxyFormState[m]=!s||Hr.all),t&&(t[m]=!0),e[m]}});return i};const Fr=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function Gr(e){const r=at(),{control:t=r.control,disabled:s,name:i,exact:u}=e||{},[m,h]=ee.useState(t._formState),f=ee.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Fr(()=>t._subscribe({name:i,formState:f.current,exact:u,callback:l=>{!s&&h({...t._formState,...l})}}),[i,s,u]),ee.useEffect(()=>{f.current.isValid&&t._setValid(!0)},[t]),ee.useMemo(()=>ca(m,t,f.current,!1),[m,t])}var ua=e=>typeof e=="string",fa=(e,r,t,s,i)=>ua(e)?be(t,e,i):Array.isArray(e)?e.map(u=>be(t,u)):t,Wr=e=>Lt(e)||!Mr(e);function qr(e,r,t=new WeakSet){if(Wr(e)||Wr(r))return e===r;if(Ke(e)&&Ke(r))return e.getTime()===r.getTime();const s=Object.keys(e),i=Object.keys(r);if(s.length!==i.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const u of s){const m=e[u];if(!i.includes(u))return!1;if(u!=="ref"){const h=r[u];if(Ke(m)&&Ke(h)||De(m)&&De(h)||Array.isArray(m)&&Array.isArray(h)?!qr(m,h,t):m!==h)return!1}}return!0}function da(e){const r=at(),{control:t=r.control,name:s,defaultValue:i,disabled:u,exact:m,compute:h}=e||{},f=ee.useRef(i),l=ee.useRef(h),g=ee.useRef(void 0);l.current=h;const c=ee.useMemo(()=>t._getWatch(s,f.current),[t,s]),[o,d]=ee.useState(l.current?l.current(c):c);return Fr(()=>t._subscribe({name:s,formState:{values:!0},exact:m,callback:v=>{if(!u){const b=fa(s,t._names,v.values||t._formValues,!1,f.current);if(l.current){const k=l.current(b);qr(k,g.current)||(d(k),g.current=k)}else d(b)}}}),[t,u,s,m]),ee.useEffect(()=>t._removeUnmounted()),o}function pa(e){const r=at(),{name:t,disabled:s,control:i=r.control,shouldUnregister:u,defaultValue:m}=e,h=oa(i._names.array,t),f=ee.useMemo(()=>be(i._formValues,t,be(i._defaultValues,t,m)),[i,t,m]),l=da({control:i,name:t,defaultValue:f,exact:!0}),g=Gr({control:i,name:t,exact:!0}),c=ee.useRef(e),o=ee.useRef(void 0),d=ee.useRef(i.register(t,{...e.rules,value:l,...Mt(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const v=ee.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!be(g.errors,t)},isDirty:{enumerable:!0,get:()=>!!be(g.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!be(g.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!be(g.validatingFields,t)},error:{enumerable:!0,get:()=>be(g.errors,t)}}),[g,t]),b=ee.useCallback(L=>d.current.onChange({target:{value:ra(L),name:t},type:Ur.CHANGE}),[t]),k=ee.useCallback(()=>d.current.onBlur({target:{value:be(i._formValues,t),name:t},type:Ur.BLUR}),[t,i._formValues]),M=ee.useCallback(L=>{const I=be(i._fields,t);I&&L&&(I._f.ref={focus:()=>L.focus&&L.focus(),select:()=>L.select&&L.select(),setCustomValidity:C=>L.setCustomValidity(C),reportValidity:()=>L.reportValidity()})},[i._fields,t]),Y=ee.useMemo(()=>({name:t,value:l,...Mt(s)||g.disabled?{disabled:g.disabled||s}:{},onChange:b,onBlur:k,ref:M}),[t,s,g.disabled,b,k,M,l]);return ee.useEffect(()=>{const L=i._options.shouldUnregister||u,I=o.current;I&&I!==t&&!h&&i.unregister(I),i.register(t,{...c.current.rules,...Mt(c.current.disabled)?{disabled:c.current.disabled}:{}});const C=(V,B)=>{const E=be(i._fields,V);E&&E._f&&(E._f.mount=B)};if(C(t,!0),L){const V=Ir(be(i._options.defaultValues,t));zr(i._defaultValues,t,V),Pt(be(i._formValues,t))&&zr(i._formValues,t,V)}return!h&&i.register(t),o.current=t,()=>{(h?L&&!i._state.action:L)?i.unregister(t):C(t,!1)}},[t,i,h,u]),ee.useEffect(()=>{i._setDisabledField({disabled:s,name:t})},[s,t,i]),ee.useMemo(()=>({field:Y,formState:g,fieldState:v}),[Y,g,v])}const ma=e=>e.render(pa(e));function Kr({className:e,...r}){return oe.jsx(ea,{"data-slot":"label",className:Te("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),...r})}const ya=la,Br=H.createContext({}),Yr=({...e})=>oe.jsx(Br.Provider,{value:{name:e.name},children:oe.jsx(ma,{...e})}),ga=()=>{const e=H.useContext(Br),r=H.useContext(Xr),{getFieldState:t}=at(),s=Gr({name:e.name}),i=t(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:u}=r;return{id:u,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...i}},Xr=H.createContext({});function Jr({className:e,...r}){const t=H.useId();return oe.jsx(Xr.Provider,{value:{id:t},children:oe.jsx("div",{"data-slot":"form-item",className:Te("grid gap-2",e),...r})})}function Qr({...e}){const{error:r,formItemId:t,formDescriptionId:s,formMessageId:i}=ga();return oe.jsx(lr,{"data-slot":"form-control",id:t,"aria-describedby":r?`${s} ${i}`:`${s}`,"aria-invalid":!!r,...e})}function Zr({className:e,type:r,...t}){return oe.jsx("input",{type:r,"data-slot":"input",className:Te("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex 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),...t})}const $e=new WeakMap,st=new WeakMap,it={current:[]};let Vt=!1;const lt=new Set,en=new Map;function tn(e){const r=Array.from(e).sort((t,s)=>t instanceof Ae&&t.options.deps.includes(s)?1:s instanceof Ae&&s.options.deps.includes(t)?-1:0);for(const t of r){if(it.current.includes(t))continue;it.current.push(t),t.recompute();const s=st.get(t);if(s)for(const i of s){const u=$e.get(i);u&&tn(u)}}}function ha(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function va(e){e.listeners.forEach(r=>r({prevVal:e.prevState,currentVal:e.state}))}function ba(e){if(lt.add(e),!Vt)try{for(Vt=!0;lt.size>0;){const r=Array.from(lt);lt.clear();for(const t of r){const s=en.get(t)??t.prevState;t.prevState=s,ha(t)}for(const t of r){const s=$e.get(t);s&&(it.current.push(t),tn(s))}for(const t of r){const s=$e.get(t);if(s)for(const i of s)va(i)}}}finally{Vt=!1,it.current=[],en.clear()}}function _a(e){return typeof e=="function"}class $t{constructor(r,t){this.listeners=new Set,this.subscribe=s=>{var i,u;this.listeners.add(s);const m=(u=(i=this.options)==null?void 0:i.onSubscribe)==null?void 0:u.call(i,s,this);return()=>{this.listeners.delete(s),m?.()}},this.prevState=r,this.state=r,this.options=t}setState(r){var t,s,i;this.prevState=this.state,(t=this.options)!=null&&t.updateFn?this.state=this.options.updateFn(this.prevState)(r):_a(r)?this.state=r(this.prevState):this.state=r,(i=(s=this.options)==null?void 0:s.onUpdate)==null||i.call(s),ba(this)}}class Ae{constructor(r){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const t=[],s=[];for(const i of this.options.deps)t.push(i.prevState),s.push(i.state);return this.lastSeenDepValues=s,{prevDepVals:t,currDepVals:s,prevVal:this.prevState??void 0}},this.recompute=()=>{var t,s;this.prevState=this.state;const{prevDepVals:i,currDepVals:u,prevVal:m}=this.getDepVals();this.state=this.options.fn({prevDepVals:i,currDepVals:u,prevVal:m}),(s=(t=this.options).onUpdate)==null||s.call(t)},this.checkIfRecalculationNeededDeeply=()=>{for(const u of this.options.deps)u instanceof Ae&&u.checkIfRecalculationNeededDeeply();let t=!1;const s=this.lastSeenDepValues,{currDepVals:i}=this.getDepVals();for(let u=0;u<i.length;u++)if(i[u]!==s[u]){t=!0;break}t&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const t of this._subscriptions)t()}),this.subscribe=t=>{var s,i;this.listeners.add(t);const u=(i=(s=this.options).onSubscribe)==null?void 0:i.call(s,t,this);return()=>{this.listeners.delete(t),u?.()}},this.options=r,this.state=r.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(r=this.options.deps){for(const t of r)if(t instanceof Ae)t.registerOnGraph(),this.registerOnGraph(t.options.deps);else if(t instanceof $t){let s=$e.get(t);s||(s=new Set,$e.set(t,s)),s.add(this);let i=st.get(this);i||(i=new Set,st.set(this,i)),i.add(t)}}unregisterFromGraph(r=this.options.deps){for(const t of r)if(t instanceof Ae)this.unregisterFromGraph(t.options.deps);else if(t instanceof $t){const s=$e.get(t);s&&s.delete(this);const i=st.get(this);i&&i.delete(t)}}}function Sa(e){return typeof e=="function"}function rn(e,r){return Sa(e)?e(r):e}const Oa=Object.prototype.hasOwnProperty;function nn(e,r){if(e===r)return e;const t=r,s=sn(e)&&sn(t);if(!s&&!(ct(e)&&ct(t)))return t;const i=s?e:on(e);if(!i)return t;const u=s?t:on(t);if(!u)return t;const m=i.length,h=u.length,f=s?new Array(h):{};let l=0;for(let g=0;g<h;g++){const c=s?g:u[g],o=e[c],d=t[c];if(o===d){f[c]=o,(s?g<m:Oa.call(e,c))&&l++;continue}if(o===null||d===null||typeof o!="object"||typeof d!="object"){f[c]=d;continue}const v=nn(o,d);f[c]=v,v===o&&l++}return m===h&&l===m?e:f}function on(e){const r=[],t=Object.getOwnPropertyNames(e);for(const i of t){if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;r.push(i)}const s=Object.getOwnPropertySymbols(e);for(const i of s){if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;r.push(i)}return r}function ct(e){if(!an(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const t=r.prototype;return!(!an(t)||!t.hasOwnProperty("isPrototypeOf"))}function an(e){return Object.prototype.toString.call(e)==="[object Object]"}function sn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ut(e,r,t){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return!1;for(let s=0,i=e.length;s<i;s++)if(!ut(e[s],r[s],t))return!1;return!0}if(ct(e)&&ct(r)){const s=t?.ignoreUndefined??!0;if(t?.partial){for(const m in r)if((!s||r[m]!==void 0)&&!ut(e[m],r[m],t))return!1;return!0}let i=0;if(!s)i=Object.keys(e).length;else for(const m in e)e[m]!==void 0&&i++;let u=0;for(const m in r)if((!s||r[m]!==void 0)&&(u++,u>i||!ut(e[m],r[m],t)))return!1;return i===u}return!1}function ft(e,r){return e?.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function wa(e,r,t){return ft(e,t)===ft(r,t)}const Ea="Error preloading route! ☝️";var ka=process.env.NODE_ENV==="production";function xa(e,r){if(!ka){if(e)return;var t="Warning: "+r;typeof console<"u"&&console.warn(t);try{throw Error(t)}catch{}}}var dt={exports:{}},zt={},pt={exports:{}},Ut={};/**
|
|
108
|
+
* @license React
|
|
109
|
+
* use-sync-external-store-shim.production.js
|
|
110
|
+
*
|
|
111
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the MIT license found in the
|
|
114
|
+
* LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/var ln;function Ta(){if(ln)return Ut;ln=1;var e=le;function r(c,o){return c===o&&(c!==0||1/c===1/o)||c!==c&&o!==o}var t=typeof Object.is=="function"?Object.is:r,s=e.useState,i=e.useEffect,u=e.useLayoutEffect,m=e.useDebugValue;function h(c,o){var d=o(),v=s({inst:{value:d,getSnapshot:o}}),b=v[0].inst,k=v[1];return u(function(){b.value=d,b.getSnapshot=o,f(b)&&k({inst:b})},[c,d,o]),i(function(){return f(b)&&k({inst:b}),c(function(){f(b)&&k({inst:b})})},[c]),m(d),d}function f(c){var o=c.getSnapshot;c=c.value;try{var d=o();return!t(c,d)}catch{return!0}}function l(c,o){return o()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:h;return Ut.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,Ut}var Ht={};/**
|
|
116
|
+
* @license React
|
|
117
|
+
* use-sync-external-store-shim.development.js
|
|
118
|
+
*
|
|
119
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the MIT license found in the
|
|
122
|
+
* LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/var cn;function Ra(){return cn||(cn=1,process.env.NODE_ENV!=="production"&&(function(){function e(d,v){return d===v&&(d!==0||1/d===1/v)||d!==d&&v!==v}function r(d,v){g||i.startTransition===void 0||(g=!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 b=v();if(!c){var k=v();u(b,k)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}k=m({inst:{value:b,getSnapshot:v}});var M=k[0].inst,Y=k[1];return f(function(){M.value=b,M.getSnapshot=v,t(M)&&Y({inst:M})},[d,b,v]),h(function(){return t(M)&&Y({inst:M}),d(function(){t(M)&&Y({inst:M})})},[d]),l(b),b}function t(d){var v=d.getSnapshot;d=d.value;try{var b=v();return!u(d,b)}catch{return!0}}function s(d,v){return v()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var i=le,u=typeof Object.is=="function"?Object.is:e,m=i.useState,h=i.useEffect,f=i.useLayoutEffect,l=i.useDebugValue,g=!1,c=!1,o=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:r;Ht.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:o,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ht}var un;function fn(){return un||(un=1,process.env.NODE_ENV==="production"?pt.exports=Ta():pt.exports=Ra()),pt.exports}/**
|
|
124
|
+
* @license React
|
|
125
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
126
|
+
*
|
|
127
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the MIT license found in the
|
|
130
|
+
* LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/var dn;function ja(){if(dn)return zt;dn=1;var e=le,r=fn();function t(l,g){return l===g&&(l!==0||1/l===1/g)||l!==l&&g!==g}var s=typeof Object.is=="function"?Object.is:t,i=r.useSyncExternalStore,u=e.useRef,m=e.useEffect,h=e.useMemo,f=e.useDebugValue;return zt.useSyncExternalStoreWithSelector=function(l,g,c,o,d){var v=u(null);if(v.current===null){var b={hasValue:!1,value:null};v.current=b}else b=v.current;v=h(function(){function M(V){if(!Y){if(Y=!0,L=V,V=o(V),d!==void 0&&b.hasValue){var B=b.value;if(d(B,V))return I=B}return I=V}if(B=I,s(L,V))return B;var E=o(V);return d!==void 0&&d(B,E)?(L=V,B):(L=V,I=E)}var Y=!1,L,I,C=c===void 0?null:c;return[function(){return M(g())},C===null?void 0:function(){return M(C())}]},[g,c,o,d]);var k=i(l,v[0],v[1]);return m(function(){b.hasValue=!0,b.value=k},[k]),f(k),k},zt}var Ft={};/**
|
|
132
|
+
* @license React
|
|
133
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
134
|
+
*
|
|
135
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the MIT license found in the
|
|
138
|
+
* LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/var pn;function Da(){return pn||(pn=1,process.env.NODE_ENV!=="production"&&(function(){function e(l,g){return l===g&&(l!==0||1/l===1/g)||l!==l&&g!==g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var r=le,t=fn(),s=typeof Object.is=="function"?Object.is:e,i=t.useSyncExternalStore,u=r.useRef,m=r.useEffect,h=r.useMemo,f=r.useDebugValue;Ft.useSyncExternalStoreWithSelector=function(l,g,c,o,d){var v=u(null);if(v.current===null){var b={hasValue:!1,value:null};v.current=b}else b=v.current;v=h(function(){function M(V){if(!Y){if(Y=!0,L=V,V=o(V),d!==void 0&&b.hasValue){var B=b.value;if(d(B,V))return I=B}return I=V}if(B=I,s(L,V))return B;var E=o(V);return d!==void 0&&d(B,E)?(L=V,B):(L=V,I=E)}var Y=!1,L,I,C=c===void 0?null:c;return[function(){return M(g())},C===null?void 0:function(){return M(C())}]},[g,c,o,d]);var k=i(l,v[0],v[1]);return m(function(){b.hasValue=!0,b.value=k},[k]),f(k),k},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ft}var mn;function Aa(){return mn||(mn=1,process.env.NODE_ENV==="production"?dt.exports=ja():dt.exports=Da()),dt.exports}var Na=Aa();function Ca(e,r=t=>t){return Na.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,La)}function La(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[s,i]of e)if(!r.has(s)||!Object.is(i,r.get(s)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const s of e)if(!r.has(s))return!1;return!0}if(e instanceof Date&&r instanceof Date)return e.getTime()===r.getTime();const t=yn(e);if(t.length!==yn(r).length)return!1;for(let s=0;s<t.length;s++)if(!Object.prototype.hasOwnProperty.call(r,t[s])||!Object.is(e[t[s]],r[t[s]]))return!1;return!0}function yn(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const Gt=de.createContext(null);function Pa(){return typeof document>"u"?Gt:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Gt,Gt)}function gn(e){const r=de.useContext(Pa());return xa(!((e?.warn??!0)&&!r),"useRouter must be used inside a <RouterProvider> component!"),r}function hn(e){const r=gn({warn:e?.router===void 0}),t=e?.router||r,s=le.useRef(void 0);return Ca(t.__store,i=>{if(e?.select){if(e.structuralSharing??t.options.defaultStructuralSharing){const u=nn(s.current,e.select(i));return s.current=u,u}return e.select(i)}return i})}var mt={exports:{}},me={};/**
|
|
140
|
+
* @license React
|
|
141
|
+
* react-dom.production.js
|
|
142
|
+
*
|
|
143
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the MIT license found in the
|
|
146
|
+
* LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/var vn;function Ma(){if(vn)return me;vn=1;var e=le;function r(f){var l="https://react.dev/errors/"+f;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)l+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var s={d:{f:t,r:function(){throw Error(r(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},i=Symbol.for("react.portal");function u(f,l,g){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:c==null?null:""+c,children:f,containerInfo:l,implementation:g}}var m=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(f,l){if(f==="font")return"";if(typeof l=="string")return l==="use-credentials"?l:""}return me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,me.createPortal=function(f,l){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(r(299));return u(f,l,null,g)},me.flushSync=function(f){var l=m.T,g=s.p;try{if(m.T=null,s.p=2,f)return f()}finally{m.T=l,s.p=g,s.d.f()}},me.preconnect=function(f,l){typeof f=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,s.d.C(f,l))},me.prefetchDNS=function(f){typeof f=="string"&&s.d.D(f)},me.preinit=function(f,l){if(typeof f=="string"&&l&&typeof l.as=="string"){var g=l.as,c=h(g,l.crossOrigin),o=typeof l.integrity=="string"?l.integrity:void 0,d=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;g==="style"?s.d.S(f,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:c,integrity:o,fetchPriority:d}):g==="script"&&s.d.X(f,{crossOrigin:c,integrity:o,fetchPriority:d,nonce:typeof l.nonce=="string"?l.nonce:void 0})}},me.preinitModule=function(f,l){if(typeof f=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var g=h(l.as,l.crossOrigin);s.d.M(f,{crossOrigin:g,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0})}}else l==null&&s.d.M(f)},me.preload=function(f,l){if(typeof f=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var g=l.as,c=h(g,l.crossOrigin);s.d.L(f,g,{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})}},me.preloadModule=function(f,l){if(typeof f=="string")if(l){var g=h(l.as,l.crossOrigin);s.d.m(f,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:g,integrity:typeof l.integrity=="string"?l.integrity:void 0})}else s.d.m(f)},me.requestFormReset=function(f){s.d.r(f)},me.unstable_batchedUpdates=function(f,l){return f(l)},me.useFormState=function(f,l,g){return m.H.useFormState(f,l,g)},me.useFormStatus=function(){return m.H.useHostTransitionStatus()},me.version="19.1.1",me}var ye={};/**
|
|
148
|
+
* @license React
|
|
149
|
+
* react-dom.development.js
|
|
150
|
+
*
|
|
151
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the MIT license found in the
|
|
154
|
+
* LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/var bn;function Ia(){return bn||(bn=1,process.env.NODE_ENV!=="production"&&(function(){function e(){}function r(c){return""+c}function t(c,o,d){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{r(v);var b=!1}catch{b=!0}return b&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&v[Symbol.toStringTag]||v.constructor.name||"Object"),r(v)),{$$typeof:l,key:v==null?null:""+v,children:c,containerInfo:o,implementation:d}}function s(c,o){if(c==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}function i(c){return c===null?"`null`":c===void 0?"`undefined`":c===""?"an empty string":'something with type "'+typeof c+'"'}function u(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 m(){var c=g.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:
|
|
156
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
157
|
+
2. You might be breaking the Rules of Hooks
|
|
158
|
+
3. You might have more than one copy of React in the same app
|
|
159
|
+
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 h=le,f={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"),g=h.__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"),ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,ye.createPortal=function(c,o){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error("Target container is not a DOM element.");return t(c,o,null,d)},ye.flushSync=function(c){var o=g.T,d=f.p;try{if(g.T=null,f.p=2,c)return c()}finally{g.T=o,f.p=d,f.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.")}},ye.preconnect=function(c,o){typeof c=="string"&&c?o!=null&&typeof o!="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.",u(o)):o!=null&&typeof o.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.",i(o.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(c)),typeof c=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,f.d.C(c,o))},ye.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.",i(c));else if(1<arguments.length){var o=arguments[1];typeof o=="object"&&o.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`.",u(o)):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`.",u(o))}typeof c=="string"&&f.d.D(c)},ye.preinit=function(c,o){if(typeof c=="string"&&c?o==null||typeof o!="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.",u(o)):o.as!=="style"&&o.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".',u(o.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",i(c)),typeof c=="string"&&o&&typeof o.as=="string"){var d=o.as,v=s(d,o.crossOrigin),b=typeof o.integrity=="string"?o.integrity:void 0,k=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;d==="style"?f.d.S(c,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:k}):d==="script"&&f.d.X(c,{crossOrigin:v,integrity:b,fetchPriority:k,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},ye.preinitModule=function(c,o){var d="";if(typeof c=="string"&&c||(d+=" The `href` argument encountered was "+i(c)+"."),o!==void 0&&typeof o!="object"?d+=" The `options` argument encountered was "+i(o)+".":o&&"as"in o&&o.as!=="script"&&(d+=" The `as` option encountered was "+u(o.as)+"."),d)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",d);else switch(d=o&&typeof o.as=="string"?o.as:"script",d){case"script":break;default:d=u(d),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)',d,c)}typeof c=="string"&&(typeof o=="object"&&o!==null?(o.as==null||o.as==="script")&&(d=s(o.as,o.crossOrigin),f.d.M(c,{crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})):o==null&&f.d.M(c))},ye.preload=function(c,o){var d="";if(typeof c=="string"&&c||(d+=" The `href` argument encountered was "+i(c)+"."),o==null||typeof o!="object"?d+=" The `options` argument encountered was "+i(o)+".":typeof o.as=="string"&&o.as||(d+=" The `as` option encountered was "+i(o.as)+"."),d&&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',d),typeof c=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){d=o.as;var v=s(d,o.crossOrigin);f.d.L(c,d,{crossOrigin:v,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},ye.preloadModule=function(c,o){var d="";typeof c=="string"&&c||(d+=" The `href` argument encountered was "+i(c)+"."),o!==void 0&&typeof o!="object"?d+=" The `options` argument encountered was "+i(o)+".":o&&"as"in o&&typeof o.as!="string"&&(d+=" The `as` option encountered was "+i(o.as)+"."),d&&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',d),typeof c=="string"&&(o?(d=s(o.as,o.crossOrigin),f.d.m(c,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:d,integrity:typeof o.integrity=="string"?o.integrity:void 0})):f.d.m(c))},ye.requestFormReset=function(c){f.d.r(c)},ye.unstable_batchedUpdates=function(c,o){return c(o)},ye.useFormState=function(c,o,d){return m().useFormState(c,o,d)},ye.useFormStatus=function(){return m().useHostTransitionStatus()},ye.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),ye}var _n;function Va(){if(_n)return mt.exports;_n=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(r){console.error(r)}}}return process.env.NODE_ENV==="production"?(e(),mt.exports=Ma()):mt.exports=Ia(),mt.exports}var $a=Va();function za(e,r,t={},s={}){de.useEffect(()=>{if(!e.current||s.disabled||typeof IntersectionObserver!="function")return;const i=new IntersectionObserver(([u])=>{r(u)},t);return i.observe(e.current),()=>{i.disconnect()}},[r,t,s.disabled,e])}function Ua(e){const r=de.useRef(null);return de.useImperativeHandle(e,()=>r.current,[]),r}function Ha(e,r){const t=gn(),[s,i]=de.useState(!1),u=de.useRef(!1),m=Ua(r),{activeProps:h,inactiveProps:f,activeOptions:l,to:g,preload:c,preloadDelay:o,hashScrollIntoView:d,replace:v,startTransition:b,resetScroll:k,viewTransition:M,children:Y,target:L,disabled:I,style:C,className:V,onClick:B,onFocus:E,onMouseEnter:te,onMouseLeave:_e,onTouchStart:W,ignoreBlocker:ue,params:he,search:ae,hash:re,state:ne,mask:se,reloadDocument:D,unsafeRelative:Se,from:n,_fromLocation:p,..._}=e,S=hn({select:J=>J.location.search,structuralSharing:!0}),x=e.from,N=de.useMemo(()=>({...e,from:x}),[t,S,x,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),A=de.useMemo(()=>t.buildLocation({...N}),[t,N]),$=de.useMemo(()=>{if(I)return;let J=A.maskedLocation?A.maskedLocation.url:A.url,ie=!1;return t.origin&&(J.startsWith(t.origin)?J=J.replace(t.origin,"")||"/":ie=!0),{href:J,external:ie}},[I,A.maskedLocation,A.url,t.origin]),T=de.useMemo(()=>{if($?.external)return $.href;try{return new URL(g),g}catch{}},[g,$]),X=e.reloadDocument||T?!1:c??t.options.defaultPreload,fe=o??t.options.defaultPreloadDelay??0,Oe=hn({select:J=>{if(T)return!1;if(l?.exact){if(!wa(J.location.pathname,A.pathname,t.basepath))return!1}else{const ie=ft(J.location.pathname,t.basepath),Ee=ft(A.pathname,t.basepath);if(!(ie.startsWith(Ee)&&(ie.length===Ee.length||ie[Ee.length]==="/")))return!1}return(l?.includeSearch??!0)&&!ut(J.location.search,A.search,{partial:!l?.exact,ignoreUndefined:!l?.explicitUndefined})?!1:l?.includeHash?J.location.hash===A.hash:!0}}),ve=de.useCallback(()=>{t.preloadRoute({...N}).catch(J=>{console.warn(J),console.warn(Ea)})},[t,N]),yt=de.useCallback(J=>{J?.isIntersecting&&ve()},[ve]);za(m,yt,Ka,{disabled:!!I||X!=="viewport"}),de.useEffect(()=>{u.current||!I&&X==="render"&&(ve(),u.current=!0)},[I,ve,X]);const gt=J=>{const ie=J.currentTarget.target,Ee=L!==void 0?L:ie;if(!I&&!Ya(J)&&!J.defaultPrevented&&(!Ee||Ee==="_self")&&J.button===0){J.preventDefault(),$a.flushSync(()=>{i(!0)});const vt=t.subscribe("onResolved",()=>{vt(),i(!1)});t.navigate({...N,replace:v,resetScroll:k,hashScrollIntoView:d,startTransition:b,viewTransition:M,ignoreBlocker:ue})}};if(T)return{..._,ref:m,href:T,...Y&&{children:Y},...L&&{target:L},...I&&{disabled:I},...C&&{style:C},...V&&{className:V},...B&&{onClick:B},...E&&{onFocus:E},...te&&{onMouseEnter:te},..._e&&{onMouseLeave:_e},...W&&{onTouchStart:W}};const ze=J=>{I||X&&ve()},we=ze,Ue=J=>{if(!(I||!X))if(!fe)ve();else{const ie=J.target;if(Be.has(ie))return;const Ee=setTimeout(()=>{Be.delete(ie),ve()},fe);Be.set(ie,Ee)}},ht=J=>{if(I||!X||!fe)return;const ie=J.target,Ee=Be.get(ie);Ee&&(clearTimeout(Ee),Be.delete(ie))},He=Oe?rn(h,{})??Fa:Wt,U=Oe?Wt:rn(f,{})??Wt,Ce=[V,He.className,U.className].filter(Boolean).join(" "),Xe=(C||He.style||U.style)&&{...C,...He.style,...U.style};return{..._,...He,...U,href:$?.href,ref:m,onClick:Ye([B,gt]),onFocus:Ye([E,ze]),onMouseEnter:Ye([te,Ue]),onMouseLeave:Ye([_e,ht]),onTouchStart:Ye([W,we]),disabled:!!I,target:L,...Xe&&{style:Xe},...Ce&&{className:Ce},...I&&Ga,...Oe&&Wa,...s&&qa}}const Wt={},Fa={className:"active"},Ga={role:"link","aria-disabled":!0},Wa={"data-status":"active","aria-current":"page"},qa={"data-transitioning":"transitioning"},Be=new WeakMap,Ka={rootMargin:"100px"},Ye=e=>r=>{for(const t of e)if(t){if(r.defaultPrevented)return;t(r)}},Ba=de.forwardRef((e,r)=>{const{_asChild:t,...s}=e,{type:i,ref:u,...m}=Ha(s,r),h=typeof s.children=="function"?s.children({isActive:m["data-status"]==="active"}):s.children;return t===void 0&&delete m.disabled,de.createElement(t||"a",{...m,ref:u},h)});function Ya(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}/**
|
|
160
|
+
* @license lucide-react v0.544.0 - ISC
|
|
161
|
+
*
|
|
162
|
+
* This source code is licensed under the ISC license.
|
|
163
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
164
|
+
*/const Xa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ja=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,t,s)=>s?s.toUpperCase():t.toLowerCase()),Sn=e=>{const r=Ja(e);return r.charAt(0).toUpperCase()+r.slice(1)},On=(...e)=>e.filter((r,t,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===t).join(" ").trim(),Qa=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
|
|
165
|
+
* @license lucide-react v0.544.0 - ISC
|
|
166
|
+
*
|
|
167
|
+
* This source code is licensed under the ISC license.
|
|
168
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
169
|
+
*/var Za={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"};/**
|
|
170
|
+
* @license lucide-react v0.544.0 - ISC
|
|
171
|
+
*
|
|
172
|
+
* This source code is licensed under the ISC license.
|
|
173
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
174
|
+
*/const es=le.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:t=2,absoluteStrokeWidth:s,className:i="",children:u,iconNode:m,...h},f)=>le.createElement("svg",{ref:f,...Za,width:r,height:r,stroke:e,strokeWidth:s?Number(t)*24/Number(r):t,className:On("lucide",i),...!u&&!Qa(h)&&{"aria-hidden":"true"},...h},[...m.map(([l,g])=>le.createElement(l,g)),...Array.isArray(u)?u:[u]]));/**
|
|
175
|
+
* @license lucide-react v0.544.0 - ISC
|
|
176
|
+
*
|
|
177
|
+
* This source code is licensed under the ISC license.
|
|
178
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
179
|
+
*/const wn=(e,r)=>{const t=le.forwardRef(({className:s,...i},u)=>le.createElement(es,{ref:u,iconNode:r,className:On(`lucide-${Xa(Sn(e))}`,`lucide-${e}`,s),...i}));return t.displayName=Sn(e),t};/**
|
|
180
|
+
* @license lucide-react v0.544.0 - ISC
|
|
181
|
+
*
|
|
182
|
+
* This source code is licensed under the ISC license.
|
|
183
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
184
|
+
*/const ts=wn("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"}]]);/**
|
|
185
|
+
* @license lucide-react v0.544.0 - ISC
|
|
186
|
+
*
|
|
187
|
+
* This source code is licensed under the ISC license.
|
|
188
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
189
|
+
*/const rs=wn("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"}]]);function ns(e){const[r,t]=le.useState(!1);return Z.jsx("div",{className:"flex flex-col gap-6",children:Z.jsxs(Bo,{children:[Z.jsxs(Yo,{children:[Z.jsx(Xo,{className:"text-2xl",children:e.loginFormTitle}),Z.jsx(Jo,{children:e.loginFormDescription})]}),Z.jsx(Qo,{children:Z.jsx(ya,{...e.form,children:Z.jsx("form",{onSubmit:e.form.handleSubmit(e.submit),children:Z.jsxs("div",{className:"flex flex-col gap-6",children:[Z.jsxs("div",{className:"grid gap-2",children:[Z.jsx(Kr,{htmlFor:"email",children:e.emailLabel}),Z.jsx(Yr,{control:e.form.control,name:"email",render:({field:s})=>Z.jsx(Jr,{children:Z.jsx(Qr,{children:Z.jsx(Zr,{id:"email",type:"email",placeholder:"m@example.com",required:!0,...s})})})})]}),Z.jsxs("div",{className:"grid gap-2",children:[Z.jsxs("div",{className:"flex items-center",children:[Z.jsx(Kr,{htmlFor:"password",children:e.passwordLabel}),Z.jsx(Ba,{className:"ml-auto inline-block text-sm underline-offset-4 hover:underline",to:"/auth/start-reset-password",children:e.forgotPasswordMessage})]}),Z.jsx(Yr,{control:e.form.control,name:"password",render:({field:s})=>Z.jsx(Jr,{children:Z.jsx(Qr,{className:"relative",children:Z.jsxs("div",{className:"relative",children:[r?Z.jsx(ts,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{t(!1)}}):Z.jsx(rs,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{t(!0)}}),Z.jsx(Zr,{type:r?"text":"password",placeholder:"********",...s,className:"pr-10"})]})})})})]}),Z.jsx(Ko,{type:"submit",className:"w-full",children:e.submitButtonLabel})]})})})})]})})}const qt="Authorization",En=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_active:!1},isAuthenticated:!1,isLoaded:!1}),Ne=new $t(En()),os=new Ae({fn:()=>!!Ne.state.user?.roles.find(e=>e.name==="admin"),deps:[Ne]});class as{accountStore;httpClient;constructor(r){this.httpClient=r,this.accountStore=Ne}initAuthData(){const r=localStorage.getItem("token");r&&(this.httpClient.defaults.headers.common[qt]=r)}async load(){try{const{data:r}=await this.httpClient.get("/api/auth/account/me");Ne.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}catch{Ne.setState(r=>({...r,isLoaded:!0}))}}async login(r){const t=await this.httpClient.post("/api/auth/account/login",r),{user:s,access_token:i}=t.data;return s.is_active&&this._initUserData({user:s,access_token:i}),s}register(r){return this.httpClient.post("/api/auth/account/register",r)}async activate(r){const t=await this.httpClient.post("/api/auth/account/activate",r);this._initUserData(t.data)}logout(){Ne.setState(()=>({...En(),isLoaded:!0})),this._clearAuthData()}startResetPassword(r){return this.httpClient.post("/api/auth/account/start-reset-password",r)}async resetPassword(r){const t=await this.httpClient.post("/api/auth/account/reset-password",r);this._initUserData(t.data)}_initUserData({user:r,access_token:t}){this._setAuthData(t),Ne.setState(()=>({user:r,isAuthenticated:!0,isLoaded:!0}))}_setAuthData(r){localStorage.setItem("token",r),this.httpClient.defaults.headers.common[qt]=r}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[qt]}}ke.Auth=as,ke.LoginForm=ns,ke.isAdmin=os,Object.defineProperty(ke,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@service_laboratory/auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@service_laboratory/ui": "0.0
|
|
23
|
+
"@service_laboratory/ui": "1.0.0",
|
|
24
24
|
"@tanstack/react-router": "^1.132.0",
|
|
25
25
|
"@tanstack/store": "^0.7.4",
|
|
26
26
|
"axios": "^1.11.0",
|