@service_laboratory/auth 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +771 -801
- package/dist/index.umd.cjs +33 -38
- package/package.json +4 -2
package/dist/index.umd.cjs
CHANGED
|
@@ -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 sr;function
|
|
9
|
+
*/var sr;function $n(){if(sr)return tt;sr=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(i,u,d){var y=null;if(d!==void 0&&(y=""+d),u.key!==void 0&&(y=""+u.key),"key"in u){d={};for(var w in u)w!=="key"&&(d[w]=u[w])}else d=u;return u=d.ref,{$$typeof:t,type:i,key:y,ref:u!==void 0?u:null,props:d}}return tt.Fragment=n,tt.jsx=o,tt.jsxs=o,tt}var rt={},mt={exports:{}},q={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react.production.js
|
|
12
12
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
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 ar;function
|
|
17
|
+
*/var ar;function Vn(){if(ar)return q;ar=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),l=Symbol.iterator;function s(r){return r===null||typeof r!="object"?null:(r=l&&r[l]||r["@@iterator"],typeof r=="function"?r:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function j(r,f,b){this.props=r,this.context=f,this.refs=k,this.updater=b||m}j.prototype.isReactComponent={},j.prototype.setState=function(r,f){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,f,"setState")},j.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function z(){}z.prototype=j.prototype;function X(r,f,b){this.props=r,this.context=f,this.refs=k,this.updater=b||m}var H=X.prototype=new z;H.constructor=X,E(H,j.prototype),H.isPureReactComponent=!0;var Y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function B(r,f,b,v,O,A){return b=A.ref,{$$typeof:t,type:r,key:f,ref:b!==void 0?b:null,props:A}}function C(r,f){return B(r.type,f,void 0,void 0,void 0,r.props)}function ee(r){return typeof r=="object"&&r!==null&&r.$$typeof===t}function ge(r){var f={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(b){return f[b]})}var V=/\/+/g;function ue(r,f){return typeof r=="object"&&r!==null&&r.key!=null?ge(""+r.key):f.toString(36)}function ce(){}function ne(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(ce,ce):(r.status="pending",r.then(function(f){r.status==="pending"&&(r.status="fulfilled",r.value=f)},function(f){r.status==="pending"&&(r.status="rejected",r.reason=f)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function Z(r,f,b,v,O){var A=typeof r;(A==="undefined"||A==="boolean")&&(r=null);var R=!1;if(r===null)R=!0;else switch(A){case"bigint":case"string":case"number":R=!0;break;case"object":switch(r.$$typeof){case t:case n:R=!0;break;case h:return R=r._init,Z(R(r._payload),f,b,v,O)}}if(R)return O=O(r),R=v===""?"."+ue(r,0):v,Y(O)?(b="",R!=null&&(b=R.replace(V,"$&/")+"/"),Z(O,f,b,"",function(J){return J})):O!=null&&(ee(O)&&(O=C(O,b+(O.key==null||r&&r.key===O.key?"":(""+O.key).replace(V,"$&/")+"/")+R)),f.push(O)),1;R=0;var G=v===""?".":v+":";if(Y(r))for(var T=0;T<r.length;T++)v=r[T],A=G+ue(v,T),R+=Z(v,f,b,A,O);else if(T=s(r),typeof T=="function")for(r=T.call(r),T=0;!(v=r.next()).done;)v=v.value,A=G+ue(v,T++),R+=Z(v,f,b,A,O);else if(A==="object"){if(typeof r.then=="function")return Z(ne(r),f,b,v,O);throw f=String(r),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return R}function te(r,f,b){if(r==null)return r;var v=[],O=0;return Z(r,v,"","",function(A){return f.call(b,A,O++)}),v}function ie(r){if(r._status===-1){var f=r._result;f=f(),f.then(function(b){(r._status===0||r._status===-1)&&(r._status=1,r._result=b)},function(b){(r._status===0||r._status===-1)&&(r._status=2,r._result=b)}),r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return r._result.default;throw r._result}var M=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function ye(){}return q.Children={map:te,forEach:function(r,f,b){te(r,function(){f.apply(this,arguments)},b)},count:function(r){var f=0;return te(r,function(){f++}),f},toArray:function(r){return te(r,function(f){return f})||[]},only:function(r){if(!ee(r))throw Error("React.Children.only expected to receive a single React element child.");return r}},q.Component=j,q.Fragment=o,q.Profiler=u,q.PureComponent=X,q.StrictMode=i,q.Suspense=p,q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,q.__COMPILER_RUNTIME={__proto__:null,c:function(r){return x.H.useMemoCache(r)}},q.cache=function(r){return function(){return r.apply(null,arguments)}},q.cloneElement=function(r,f,b){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var v=E({},r.props),O=r.key,A=void 0;if(f!=null)for(R in f.ref!==void 0&&(A=void 0),f.key!==void 0&&(O=""+f.key),f)!F.call(f,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&f.ref===void 0||(v[R]=f[R]);var R=arguments.length-2;if(R===1)v.children=b;else if(1<R){for(var G=Array(R),T=0;T<R;T++)G[T]=arguments[T+2];v.children=G}return B(r.type,O,void 0,void 0,A,v)},q.createContext=function(r){return r={$$typeof:y,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:d,_context:r},r},q.createElement=function(r,f,b){var v,O={},A=null;if(f!=null)for(v in f.key!==void 0&&(A=""+f.key),f)F.call(f,v)&&v!=="key"&&v!=="__self"&&v!=="__source"&&(O[v]=f[v]);var R=arguments.length-2;if(R===1)O.children=b;else if(1<R){for(var G=Array(R),T=0;T<R;T++)G[T]=arguments[T+2];O.children=G}if(r&&r.defaultProps)for(v in R=r.defaultProps,R)O[v]===void 0&&(O[v]=R[v]);return B(r,A,void 0,void 0,null,O)},q.createRef=function(){return{current:null}},q.forwardRef=function(r){return{$$typeof:w,render:r}},q.isValidElement=ee,q.lazy=function(r){return{$$typeof:h,_payload:{_status:-1,_result:r},_init:ie}},q.memo=function(r,f){return{$$typeof:c,type:r,compare:f===void 0?null:f}},q.startTransition=function(r){var f=x.T,b={};x.T=b;try{var v=r(),O=x.S;O!==null&&O(b,v),typeof v=="object"&&v!==null&&typeof v.then=="function"&&v.then(ye,M)}catch(A){M(A)}finally{x.T=f}},q.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},q.use=function(r){return x.H.use(r)},q.useActionState=function(r,f,b){return x.H.useActionState(r,f,b)},q.useCallback=function(r,f){return x.H.useCallback(r,f)},q.useContext=function(r){return x.H.useContext(r)},q.useDebugValue=function(){},q.useDeferredValue=function(r,f){return x.H.useDeferredValue(r,f)},q.useEffect=function(r,f,b){var v=x.H;if(typeof b=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return v.useEffect(r,f)},q.useId=function(){return x.H.useId()},q.useImperativeHandle=function(r,f,b){return x.H.useImperativeHandle(r,f,b)},q.useInsertionEffect=function(r,f){return x.H.useInsertionEffect(r,f)},q.useLayoutEffect=function(r,f){return x.H.useLayoutEffect(r,f)},q.useMemo=function(r,f){return x.H.useMemo(r,f)},q.useOptimistic=function(r,f){return x.H.useOptimistic(r,f)},q.useReducer=function(r,f,b){return x.H.useReducer(r,f,b)},q.useRef=function(r){return x.H.useRef(r)},q.useState=function(r){return x.H.useState(r)},q.useSyncExternalStore=function(r,f,b){return x.H.useSyncExternalStore(r,f,b)},q.useTransition=function(){return x.H.useTransition()},q.version="19.1.1",q}var nt={exports:{}};/**
|
|
18
18
|
* @license React
|
|
19
19
|
* react.development.js
|
|
20
20
|
*
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/nt.exports;var ir;function
|
|
25
|
+
*/nt.exports;var ir;function Hn(){return ir||(ir=1,(function(t,n){process.env.NODE_ENV!=="production"&&(function(){function o(e,a){Object.defineProperty(d.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})}function i(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}function u(e,a){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var g=e+"."+a;he[g]||(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.",a,e),he[g]=!0)}function d(e,a,g){this.props=e,this.context=a,this.refs=Ae,this.updater=g||Ye}function y(){}function w(e,a,g){this.props=e,this.context=a,this.refs=Ae,this.updater=g||Ye}function p(e){return""+e}function c(e){try{p(e);var a=!1}catch{a=!0}if(a){a=console;var g=a.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return g.call(a,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),p(e)}}function h(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case r:return"Fragment";case b:return"Profiler";case f:return"StrictMode";case R:return"Suspense";case G:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ye:return"Portal";case O:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case A:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return a=e.displayName||null,a!==null?a:h(e.type)||"Memo";case J:a=e._payload,e=e._init;try{return h(e(a))}catch{}}return null}function l(e){if(e===r)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===J)return"<...>";try{var a=h(e);return a?"<"+a+">":"<...>"}catch{return"<...>"}}function s(){var e=D.A;return e===null?null:e.getOwner()}function m(){return Error("react-stack-top-frame")}function E(e){if(Re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function k(e,a){function g(){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)",a))}g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function j(){var e=h(this.type);return be[e]||(be[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,a,g,_,S,L,N,U){return g=L.ref,e={$$typeof:M,type:e,key:a,props:L,_owner:S},(g!==void 0?g:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:j}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function X(e,a){return a=z(e.type,a,void 0,void 0,e._owner,e.props,e._debugStack,e._debugTask),e._store&&(a._store.validated=e._store.validated),a}function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===M}function Y(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(g){return a[g]})}function x(e,a){return typeof e=="object"&&e!==null&&e.key!=null?(c(e.key),Y(""+e.key)):a.toString(36)}function F(){}function B(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(F,F):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function C(e,a,g,_,S){var L=typeof e;(L==="undefined"||L==="boolean")&&(e=null);var N=!1;if(e===null)N=!0;else switch(L){case"bigint":case"string":case"number":N=!0;break;case"object":switch(e.$$typeof){case M:case ye:N=!0;break;case J:return N=e._init,C(N(e._payload),a,g,_,S)}}if(N){N=e,S=S(N);var U=_===""?"."+x(N,0):_;return We(S)?(g="",U!=null&&(g=U.replace(lt,"$&/")+"/"),C(S,a,g,"",function(Oe){return Oe})):S!=null&&(H(S)&&(S.key!=null&&(N&&N.key===S.key||c(S.key)),g=X(S,g+(S.key==null||N&&N.key===S.key?"":(""+S.key).replace(lt,"$&/")+"/")+U),_!==""&&N!=null&&H(N)&&N.key==null&&N._store&&!N._store.validated&&(g._store.validated=2),S=g),a.push(S)),1}if(N=0,U=_===""?".":_+":",We(e))for(var P=0;P<e.length;P++)_=e[P],L=U+x(_,P),N+=C(_,a,g,L,S);else if(P=i(e),typeof P=="function")for(P===e.entries&&(ct||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ct=!0),e=P.call(e),P=0;!(_=e.next()).done;)_=_.value,L=U+x(_,P++),N+=C(_,a,g,L,S);else if(L==="object"){if(typeof e.then=="function")return C(B(e),a,g,_,S);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return N}function ee(e,a,g){if(e==null)return e;var _=[],S=0;return C(e,_,"","",function(L){return a.call(g,L,S++)}),_}function ge(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(g){(e._status===0||e._status===-1)&&(e._status=1,e._result=g)},function(g){(e._status===0||e._status===-1)&&(e._status=2,e._result=g)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return a=e._result,a===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
26
26
|
|
|
27
27
|
Your code should look like:
|
|
28
28
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
29
29
|
|
|
30
|
-
Did you accidentally put curly braces around the import?`,
|
|
30
|
+
Did you accidentally put curly braces around the import?`,a),"default"in a||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
31
31
|
|
|
32
32
|
Your code should look like:
|
|
33
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
33
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,a),a.default;throw e._result}function V(){var e=D.H;return e===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:
|
|
34
34
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
35
35
|
2. You might be breaking the Rules of Hooks
|
|
36
36
|
3. You might have more than one copy of React in the same app
|
|
37
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function ue(){}function le(e){if(Ne===null)try{var i=("require"+Math.random()).slice(0,7);Ne=(t&&t[i]).call(t,"timers").setImmediate}catch{Ne=function(_){dt===!1&&(dt=!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 S=new MessageChannel;S.port1.onmessage=_,S.port2.postMessage(void 0)}}return Ne(e)}function ne(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function Z(e,i){i!==De-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. "),De=i}function te(e,i,g){var _=D.actQueue;if(_!==null)if(_.length!==0)try{ie(_),le(function(){return te(e,i,g)});return}catch(S){D.thrownErrors.push(S)}else D.actQueue=null;0<D.thrownErrors.length?(_=ne(D.thrownErrors),D.thrownErrors.length=0,g(_)):i(e)}function ie(e){if(!Be){Be=!0;var i=0;try{for(;i<e.length;i++){var g=e[i];do{D.didUsePromise=!1;var _=g(!1);if(_!==null){if(D.didUsePromise){e[i]=g,e.splice(0,i);return}g=_}else break}while(!0)}e.length=0}catch(S){e.splice(0,i+1),D.thrownErrors.push(S)}finally{Be=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M=Symbol.for("react.transitional.element"),ye=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),O=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ve=Symbol.iterator,he={},Ye={isMounted:function(){return!1},enqueueForceUpdate:function(e){u(e,"forceUpdate")},enqueueReplaceState:function(e){u(e,"replaceState")},enqueueSetState:function(e){u(e,"setState")}},qe=Object.assign,Ae={};Object.freeze(Ae),d.prototype.isReactComponent={},d.prototype.setState=function(e,i){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,i,"setState")},d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var ae={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)."]},xe;for(xe in ae)ae.hasOwnProperty(xe)&&o(xe,ae[xe]);y.prototype=d.prototype,ae=w.prototype=new y,ae.constructor=w,qe(ae,d.prototype),ae.isPureReactComponent=!0;var We=Array.isArray,Ve=Symbol.for("react.client.reference"),D={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Re=Object.prototype.hasOwnProperty,He=console.createTask?console.createTask:function(){return null};ae={react_stack_bottom_frame:function(e){return e()}};var re,fe,be={},et=ae.react_stack_bottom_frame.bind(ae,m)(),rr=He(l(m)),ct=!1,lt=/\/+/g,ft=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dt=!1,Ne=null,De=0,Pe=!1,Be=!1,pt=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:le;ae=Object.freeze({__proto__:null,c:function(e){return V().useMemoCache(e)}}),n.Children={map:ee,forEach:function(e,i,g){ee(e,function(){i.apply(this,arguments)},g)},count:function(e){var i=0;return ee(e,function(){i++}),i},toArray:function(e){return ee(e,function(i){return i})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=d,n.Fragment=r,n.Profiler=b,n.PureComponent=w,n.StrictMode=f,n.Suspense=R,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,n.__COMPILER_RUNTIME=ae,n.act=function(e){var i=D.actQueue,g=De;De++;var _=D.actQueue=i!==null?i:[],S=!1;try{var L=e()}catch(P){D.thrownErrors.push(P)}if(0<D.thrownErrors.length)throw Z(i,g),e=ne(D.thrownErrors),D.thrownErrors.length=0,e;if(L!==null&&typeof L=="object"&&typeof L.then=="function"){var N=L;return pt(function(){S||Pe||(Pe=!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(P,Oe){S=!0,N.then(function(Te){if(Z(i,g),g===0){try{ie(_),le(function(){return te(Te,P,Oe)})}catch(or){D.thrownErrors.push(or)}if(0<D.thrownErrors.length){var nr=ne(D.thrownErrors);D.thrownErrors.length=0,Oe(nr)}}else P(Te)},function(Te){Z(i,g),0<D.thrownErrors.length&&(Te=ne(D.thrownErrors),D.thrownErrors.length=0),Oe(Te)})}}}var U=L;if(Z(i,g),g===0&&(ie(_),_.length!==0&&pt(function(){S||Pe||(Pe=!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(() => ...)"))}),D.actQueue=null),0<D.thrownErrors.length)throw e=ne(D.thrownErrors),D.thrownErrors.length=0,e;return{then:function(P,Oe){S=!0,g===0?(D.actQueue=_,le(function(){return te(U,P,Oe)})):P(U)}}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.captureOwnerStack=function(){var e=D.getCurrentStack;return e===null?null:e()},n.cloneElement=function(e,i,g){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var _=qe({},e.props),S=e.key,L=e._owner;if(i!=null){var N;e:{if(Re.call(i,"ref")&&(N=Object.getOwnPropertyDescriptor(i,"ref").get)&&N.isReactWarning){N=!1;break e}N=i.ref!==void 0}N&&(L=s()),E(i)&&(c(i.key),S=""+i.key);for(U in i)!Re.call(i,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&i.ref===void 0||(_[U]=i[U])}var U=arguments.length-2;if(U===1)_.children=g;else if(1<U){N=Array(U);for(var P=0;P<U;P++)N[P]=arguments[P+2];_.children=N}for(_=z(e.type,S,void 0,void 0,L,_,e._debugStack,e._debugTask),S=2;S<arguments.length;S++)L=arguments[S],H(L)&&L._store&&(L._store.validated=1);return _},n.createContext=function(e){return e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},n.createElement=function(e,i,g){for(var _=2;_<arguments.length;_++){var S=arguments[_];H(S)&&S._store&&(S._store.validated=1)}if(_={},S=null,i!=null)for(P in fe||!("__self"in i)||"key"in i||(fe=!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")),E(i)&&(c(i.key),S=""+i.key),i)Re.call(i,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(_[P]=i[P]);var L=arguments.length-2;if(L===1)_.children=g;else if(1<L){for(var N=Array(L),U=0;U<L;U++)N[U]=arguments[U+2];Object.freeze&&Object.freeze(N),_.children=N}if(e&&e.defaultProps)for(P in L=e.defaultProps,L)_[P]===void 0&&(_[P]=L[P]);S&&k(_,typeof e=="function"?e.displayName||e.name||"Unknown":e);var P=1e4>D.recentlyCreatedOwnerStacks++;return z(e,S,void 0,void 0,s(),_,P?Error("react-stack-top-frame"):et,P?He(l(e)):rr)},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){e!=null&&e.$$typeof===T?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:A,render:e},g;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),i},n.isValidElement=H,n.lazy=function(e){return{$$typeof:J,_payload:{_status:-1,_result:e},_init:ge}},n.memo=function(e,i){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),i={$$typeof:T,type:e,compare:i===void 0?null:i};var g;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),i},n.startTransition=function(e){var i=D.T,g={};D.T=g,g._updatedFibers=new Set;try{var _=e(),S=D.S;S!==null&&S(g,_),typeof _=="object"&&_!==null&&typeof _.then=="function"&&_.then(ue,ft)}catch(L){ft(L)}finally{i===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&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.")),D.T=i}},n.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},n.use=function(e){return V().use(e)},n.useActionState=function(e,i,g){return V().useActionState(e,i,g)},n.useCallback=function(e,i){return V().useCallback(e,i)},n.useContext=function(e){var i=V();return e.$$typeof===v&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),i.useContext(e)},n.useDebugValue=function(e,i){return V().useDebugValue(e,i)},n.useDeferredValue=function(e,i){return V().useDeferredValue(e,i)},n.useEffect=function(e,i,g){e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var _=V();if(typeof g=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return _.useEffect(e,i)},n.useId=function(){return V().useId()},n.useImperativeHandle=function(e,i,g){return V().useImperativeHandle(e,i,g)},n.useInsertionEffect=function(e,i){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(e,i)},n.useLayoutEffect=function(e,i){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(e,i)},n.useMemo=function(e,i){return V().useMemo(e,i)},n.useOptimistic=function(e,i){return V().useOptimistic(e,i)},n.useReducer=function(e,i,g){return V().useReducer(e,i,g)},n.useRef=function(e){return V().useRef(e)},n.useState=function(e){return V().useState(e)},n.useSyncExternalStore=function(e,i,g){return V().useSyncExternalStore(e,i,g)},n.useTransition=function(){return V().useTransition()},n.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(nt,nt.exports)),nt.exports}var ur;function Ie(){return ur||(ur=1,process.env.NODE_ENV==="production"?mt.exports=Hn():mt.exports=Un()),mt.exports}/**
|
|
37
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function ue(){}function ce(e){if(Ne===null)try{var a=("require"+Math.random()).slice(0,7);Ne=(t&&t[a]).call(t,"timers").setImmediate}catch{Ne=function(_){dt===!1&&(dt=!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 S=new MessageChannel;S.port1.onmessage=_,S.port2.postMessage(void 0)}}return Ne(e)}function ne(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function Z(e,a){a!==De-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. "),De=a}function te(e,a,g){var _=D.actQueue;if(_!==null)if(_.length!==0)try{ie(_),ce(function(){return te(e,a,g)});return}catch(S){D.thrownErrors.push(S)}else D.actQueue=null;0<D.thrownErrors.length?(_=ne(D.thrownErrors),D.thrownErrors.length=0,g(_)):a(e)}function ie(e){if(!Be){Be=!0;var a=0;try{for(;a<e.length;a++){var g=e[a];do{D.didUsePromise=!1;var _=g(!1);if(_!==null){if(D.didUsePromise){e[a]=g,e.splice(0,a);return}g=_}else break}while(!0)}e.length=0}catch(S){e.splice(0,a+1),D.thrownErrors.push(S)}finally{Be=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M=Symbol.for("react.transitional.element"),ye=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),O=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ve=Symbol.iterator,he={},Ye={isMounted:function(){return!1},enqueueForceUpdate:function(e){u(e,"forceUpdate")},enqueueReplaceState:function(e){u(e,"replaceState")},enqueueSetState:function(e){u(e,"setState")}},qe=Object.assign,Ae={};Object.freeze(Ae),d.prototype.isReactComponent={},d.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,a,"setState")},d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var se={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)."]},xe;for(xe in se)se.hasOwnProperty(xe)&&o(xe,se[xe]);y.prototype=d.prototype,se=w.prototype=new y,se.constructor=w,qe(se,d.prototype),se.isPureReactComponent=!0;var We=Array.isArray,Ve=Symbol.for("react.client.reference"),D={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Re=Object.prototype.hasOwnProperty,He=console.createTask?console.createTask:function(){return null};se={react_stack_bottom_frame:function(e){return e()}};var re,le,be={},et=se.react_stack_bottom_frame.bind(se,m)(),rr=He(l(m)),ct=!1,lt=/\/+/g,ft=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dt=!1,Ne=null,De=0,Pe=!1,Be=!1,pt=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:ce;se=Object.freeze({__proto__:null,c:function(e){return V().useMemoCache(e)}}),n.Children={map:ee,forEach:function(e,a,g){ee(e,function(){a.apply(this,arguments)},g)},count:function(e){var a=0;return ee(e,function(){a++}),a},toArray:function(e){return ee(e,function(a){return a})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=d,n.Fragment=r,n.Profiler=b,n.PureComponent=w,n.StrictMode=f,n.Suspense=R,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,n.__COMPILER_RUNTIME=se,n.act=function(e){var a=D.actQueue,g=De;De++;var _=D.actQueue=a!==null?a:[],S=!1;try{var L=e()}catch(P){D.thrownErrors.push(P)}if(0<D.thrownErrors.length)throw Z(a,g),e=ne(D.thrownErrors),D.thrownErrors.length=0,e;if(L!==null&&typeof L=="object"&&typeof L.then=="function"){var N=L;return pt(function(){S||Pe||(Pe=!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(P,Oe){S=!0,N.then(function(Te){if(Z(a,g),g===0){try{ie(_),ce(function(){return te(Te,P,Oe)})}catch(or){D.thrownErrors.push(or)}if(0<D.thrownErrors.length){var nr=ne(D.thrownErrors);D.thrownErrors.length=0,Oe(nr)}}else P(Te)},function(Te){Z(a,g),0<D.thrownErrors.length&&(Te=ne(D.thrownErrors),D.thrownErrors.length=0),Oe(Te)})}}}var U=L;if(Z(a,g),g===0&&(ie(_),_.length!==0&&pt(function(){S||Pe||(Pe=!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(() => ...)"))}),D.actQueue=null),0<D.thrownErrors.length)throw e=ne(D.thrownErrors),D.thrownErrors.length=0,e;return{then:function(P,Oe){S=!0,g===0?(D.actQueue=_,ce(function(){return te(U,P,Oe)})):P(U)}}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.captureOwnerStack=function(){var e=D.getCurrentStack;return e===null?null:e()},n.cloneElement=function(e,a,g){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var _=qe({},e.props),S=e.key,L=e._owner;if(a!=null){var N;e:{if(Re.call(a,"ref")&&(N=Object.getOwnPropertyDescriptor(a,"ref").get)&&N.isReactWarning){N=!1;break e}N=a.ref!==void 0}N&&(L=s()),E(a)&&(c(a.key),S=""+a.key);for(U in a)!Re.call(a,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&a.ref===void 0||(_[U]=a[U])}var U=arguments.length-2;if(U===1)_.children=g;else if(1<U){N=Array(U);for(var P=0;P<U;P++)N[P]=arguments[P+2];_.children=N}for(_=z(e.type,S,void 0,void 0,L,_,e._debugStack,e._debugTask),S=2;S<arguments.length;S++)L=arguments[S],H(L)&&L._store&&(L._store.validated=1);return _},n.createContext=function(e){return e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},n.createElement=function(e,a,g){for(var _=2;_<arguments.length;_++){var S=arguments[_];H(S)&&S._store&&(S._store.validated=1)}if(_={},S=null,a!=null)for(P in le||!("__self"in a)||"key"in a||(le=!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")),E(a)&&(c(a.key),S=""+a.key),a)Re.call(a,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(_[P]=a[P]);var L=arguments.length-2;if(L===1)_.children=g;else if(1<L){for(var N=Array(L),U=0;U<L;U++)N[U]=arguments[U+2];Object.freeze&&Object.freeze(N),_.children=N}if(e&&e.defaultProps)for(P in L=e.defaultProps,L)_[P]===void 0&&(_[P]=L[P]);S&&k(_,typeof e=="function"?e.displayName||e.name||"Unknown":e);var P=1e4>D.recentlyCreatedOwnerStacks++;return z(e,S,void 0,void 0,s(),_,P?Error("react-stack-top-frame"):et,P?He(l(e)):rr)},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){e!=null&&e.$$typeof===T?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var a={$$typeof:A,render:e},g;return Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),a},n.isValidElement=H,n.lazy=function(e){return{$$typeof:J,_payload:{_status:-1,_result:e},_init:ge}},n.memo=function(e,a){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),a={$$typeof:T,type:e,compare:a===void 0?null:a};var g;return Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),a},n.startTransition=function(e){var a=D.T,g={};D.T=g,g._updatedFibers=new Set;try{var _=e(),S=D.S;S!==null&&S(g,_),typeof _=="object"&&_!==null&&typeof _.then=="function"&&_.then(ue,ft)}catch(L){ft(L)}finally{a===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&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.")),D.T=a}},n.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},n.use=function(e){return V().use(e)},n.useActionState=function(e,a,g){return V().useActionState(e,a,g)},n.useCallback=function(e,a){return V().useCallback(e,a)},n.useContext=function(e){var a=V();return e.$$typeof===v&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),a.useContext(e)},n.useDebugValue=function(e,a){return V().useDebugValue(e,a)},n.useDeferredValue=function(e,a){return V().useDeferredValue(e,a)},n.useEffect=function(e,a,g){e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var _=V();if(typeof g=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return _.useEffect(e,a)},n.useId=function(){return V().useId()},n.useImperativeHandle=function(e,a,g){return V().useImperativeHandle(e,a,g)},n.useInsertionEffect=function(e,a){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(e,a)},n.useLayoutEffect=function(e,a){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(e,a)},n.useMemo=function(e,a){return V().useMemo(e,a)},n.useOptimistic=function(e,a){return V().useOptimistic(e,a)},n.useReducer=function(e,a,g){return V().useReducer(e,a,g)},n.useRef=function(e){return V().useRef(e)},n.useState=function(e){return V().useState(e)},n.useSyncExternalStore=function(e,a,g){return V().useSyncExternalStore(e,a,g)},n.useTransition=function(){return V().useTransition()},n.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(nt,nt.exports)),nt.exports}var ur;function Ie(){return ur||(ur=1,process.env.NODE_ENV==="production"?mt.exports=Vn():mt.exports=Hn()),mt.exports}/**
|
|
38
38
|
* @license React
|
|
39
39
|
* react-jsx-runtime.development.js
|
|
40
40
|
*
|
|
@@ -42,12 +42,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
42
42
|
*
|
|
43
43
|
* This source code is licensed under the MIT license found in the
|
|
44
44
|
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/var cr;function
|
|
45
|
+
*/var cr;function Un(){return cr||(cr=1,process.env.NODE_ENV!=="production"&&(function(){function t(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ge?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case k:return"Fragment";case z:return"Profiler";case j:return"StrictMode";case x:return"Suspense";case F:return"SuspenseList";case ee:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case E:return"Portal";case H:return(r.displayName||"Context")+".Provider";case X:return(r._context.displayName||"Context")+".Consumer";case Y:var f=r.render;return r=r.displayName,r||(r=f.displayName||f.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case B:return f=r.displayName||null,f!==null?f:t(r.type)||"Memo";case C:f=r._payload,r=r._init;try{return t(r(f))}catch{}}return null}function n(r){return""+r}function o(r){try{n(r);var f=!1}catch{f=!0}if(f){f=console;var b=f.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return b.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),n(r)}}function i(r){if(r===k)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===C)return"<...>";try{var f=t(r);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function u(){var r=V.A;return r===null?null:r.getOwner()}function d(){return Error("react-stack-top-frame")}function y(r){if(ue.call(r,"key")){var f=Object.getOwnPropertyDescriptor(r,"key").get;if(f&&f.isReactWarning)return!1}return r.key!==void 0}function w(r,f){function b(){Z||(Z=!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)",f))}b.isReactWarning=!0,Object.defineProperty(r,"key",{get:b,configurable:!0})}function p(){var r=t(this.type);return te[r]||(te[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function c(r,f,b,v,O,A,R,G){return b=A.ref,r={$$typeof:m,type:r,key:f,props:A,_owner:O},(b!==void 0?b:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:p}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function h(r,f,b,v,O,A,R,G){var T=f.children;if(T!==void 0)if(v)if(ce(T)){for(v=0;v<T.length;v++)l(T[v]);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 l(T);if(ue.call(f,"key")){T=t(r);var J=Object.keys(f).filter(function(ve){return ve!=="key"});v=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",ye[T+v]||(J=0<J.length?"{"+J.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
46
46
|
let props = %s;
|
|
47
47
|
<%s {...props} />
|
|
48
48
|
React keys must be passed directly to JSX without using spread:
|
|
49
49
|
let props = %s;
|
|
50
|
-
<%s key={someKey} {...props} />`,v,T,J,T),ye[T+v]=!0)}if(T=null,b!==void 0&&(o(b),T=""+b),y(f)&&(o(f.key),T=""+f.key),"key"in f){b={};for(var pe in f)pe!=="key"&&(b[pe]=f[pe])}else b=f;return T&&w(b,typeof r=="function"?r.displayName||r.name||"Unknown":r),c(r,T,A,O,u(),b,R,G)}function l(r){typeof r=="object"&&r!==null&&r.$$typeof===m&&r._store&&(r._store.validated=1)}var s=Ie(),m=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),V=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,
|
|
50
|
+
<%s key={someKey} {...props} />`,v,T,J,T),ye[T+v]=!0)}if(T=null,b!==void 0&&(o(b),T=""+b),y(f)&&(o(f.key),T=""+f.key),"key"in f){b={};for(var pe in f)pe!=="key"&&(b[pe]=f[pe])}else b=f;return T&&w(b,typeof r=="function"?r.displayName||r.name||"Unknown":r),c(r,T,A,O,u(),b,R,G)}function l(r){typeof r=="object"&&r!==null&&r.$$typeof===m&&r._store&&(r._store.validated=1)}var s=Ie(),m=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),V=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,ce=Array.isArray,ne=console.createTask?console.createTask:function(){return null};s={react_stack_bottom_frame:function(r){return r()}};var Z,te={},ie=s.react_stack_bottom_frame.bind(s,d)(),M=ne(i(d)),ye={};rt.Fragment=k,rt.jsx=function(r,f,b,v,O){var A=1e4>V.recentlyCreatedOwnerStacks++;return h(r,f,b,!1,v,O,A?Error("react-stack-top-frame"):ie,A?ne(i(r)):M)},rt.jsxs=function(r,f,b,v,O){var A=1e4>V.recentlyCreatedOwnerStacks++;return h(r,f,b,!0,v,O,A?Error("react-stack-top-frame"):ie,A?ne(i(r)):M)}})()),rt}var lr;function zn(){return lr||(lr=1,process.env.NODE_ENV==="production"?Me.exports=$n():Me.exports=Un()),Me.exports}var ae=zn();function Gn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var jt={exports:{}},ot={};/**
|
|
51
51
|
* @license React
|
|
52
52
|
* react-jsx-runtime.production.js
|
|
53
53
|
*
|
|
@@ -55,7 +55,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
55
55
|
*
|
|
56
56
|
* This source code is licensed under the MIT license found in the
|
|
57
57
|
* LICENSE file in the root directory of this source tree.
|
|
58
|
-
*/var fr;function
|
|
58
|
+
*/var fr;function Fn(){if(fr)return ot;fr=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(i,u,d){var y=null;if(d!==void 0&&(y=""+d),u.key!==void 0&&(y=""+u.key),"key"in u){d={};for(var w in u)w!=="key"&&(d[w]=u[w])}else d=u;return u=d.ref,{$$typeof:t,type:i,key:y,ref:u!==void 0?u:null,props:d}}return ot.Fragment=n,ot.jsx=o,ot.jsxs=o,ot}var yt={},Nt={exports:{}},W={};/**
|
|
59
59
|
* @license React
|
|
60
60
|
* react.production.js
|
|
61
61
|
*
|
|
@@ -63,7 +63,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the MIT license found in the
|
|
65
65
|
* LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/var dr;function
|
|
66
|
+
*/var dr;function Yn(){if(dr)return W;dr=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),l=Symbol.iterator;function s(r){return r===null||typeof r!="object"?null:(r=l&&r[l]||r["@@iterator"],typeof r=="function"?r:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function j(r,f,b){this.props=r,this.context=f,this.refs=k,this.updater=b||m}j.prototype.isReactComponent={},j.prototype.setState=function(r,f){if(typeof r!="object"&&typeof r!="function"&&r!=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,r,f,"setState")},j.prototype.forceUpdate=function(r){this.updater.enqueueForceUpdate(this,r,"forceUpdate")};function z(){}z.prototype=j.prototype;function X(r,f,b){this.props=r,this.context=f,this.refs=k,this.updater=b||m}var H=X.prototype=new z;H.constructor=X,E(H,j.prototype),H.isPureReactComponent=!0;var Y=Array.isArray,x={H:null,A:null,T:null,S:null,V:null},F=Object.prototype.hasOwnProperty;function B(r,f,b,v,O,A){return b=A.ref,{$$typeof:t,type:r,key:f,ref:b!==void 0?b:null,props:A}}function C(r,f){return B(r.type,f,void 0,void 0,void 0,r.props)}function ee(r){return typeof r=="object"&&r!==null&&r.$$typeof===t}function ge(r){var f={"=":"=0",":":"=2"};return"$"+r.replace(/[=:]/g,function(b){return f[b]})}var V=/\/+/g;function ue(r,f){return typeof r=="object"&&r!==null&&r.key!=null?ge(""+r.key):f.toString(36)}function ce(){}function ne(r){switch(r.status){case"fulfilled":return r.value;case"rejected":throw r.reason;default:switch(typeof r.status=="string"?r.then(ce,ce):(r.status="pending",r.then(function(f){r.status==="pending"&&(r.status="fulfilled",r.value=f)},function(f){r.status==="pending"&&(r.status="rejected",r.reason=f)})),r.status){case"fulfilled":return r.value;case"rejected":throw r.reason}}throw r}function Z(r,f,b,v,O){var A=typeof r;(A==="undefined"||A==="boolean")&&(r=null);var R=!1;if(r===null)R=!0;else switch(A){case"bigint":case"string":case"number":R=!0;break;case"object":switch(r.$$typeof){case t:case n:R=!0;break;case h:return R=r._init,Z(R(r._payload),f,b,v,O)}}if(R)return O=O(r),R=v===""?"."+ue(r,0):v,Y(O)?(b="",R!=null&&(b=R.replace(V,"$&/")+"/"),Z(O,f,b,"",function(J){return J})):O!=null&&(ee(O)&&(O=C(O,b+(O.key==null||r&&r.key===O.key?"":(""+O.key).replace(V,"$&/")+"/")+R)),f.push(O)),1;R=0;var G=v===""?".":v+":";if(Y(r))for(var T=0;T<r.length;T++)v=r[T],A=G+ue(v,T),R+=Z(v,f,b,A,O);else if(T=s(r),typeof T=="function")for(r=T.call(r),T=0;!(v=r.next()).done;)v=v.value,A=G+ue(v,T++),R+=Z(v,f,b,A,O);else if(A==="object"){if(typeof r.then=="function")return Z(ne(r),f,b,v,O);throw f=String(r),Error("Objects are not valid as a React child (found: "+(f==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":f)+"). If you meant to render a collection of children, use an array instead.")}return R}function te(r,f,b){if(r==null)return r;var v=[],O=0;return Z(r,v,"","",function(A){return f.call(b,A,O++)}),v}function ie(r){if(r._status===-1){var f=r._result;f=f(),f.then(function(b){(r._status===0||r._status===-1)&&(r._status=1,r._result=b)},function(b){(r._status===0||r._status===-1)&&(r._status=2,r._result=b)}),r._status===-1&&(r._status=0,r._result=f)}if(r._status===1)return r._result.default;throw r._result}var M=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function ye(){}return W.Children={map:te,forEach:function(r,f,b){te(r,function(){f.apply(this,arguments)},b)},count:function(r){var f=0;return te(r,function(){f++}),f},toArray:function(r){return te(r,function(f){return f})||[]},only:function(r){if(!ee(r))throw Error("React.Children.only expected to receive a single React element child.");return r}},W.Component=j,W.Fragment=o,W.Profiler=u,W.PureComponent=X,W.StrictMode=i,W.Suspense=p,W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,W.__COMPILER_RUNTIME={__proto__:null,c:function(r){return x.H.useMemoCache(r)}},W.cache=function(r){return function(){return r.apply(null,arguments)}},W.cloneElement=function(r,f,b){if(r==null)throw Error("The argument must be a React element, but you passed "+r+".");var v=E({},r.props),O=r.key,A=void 0;if(f!=null)for(R in f.ref!==void 0&&(A=void 0),f.key!==void 0&&(O=""+f.key),f)!F.call(f,R)||R==="key"||R==="__self"||R==="__source"||R==="ref"&&f.ref===void 0||(v[R]=f[R]);var R=arguments.length-2;if(R===1)v.children=b;else if(1<R){for(var G=Array(R),T=0;T<R;T++)G[T]=arguments[T+2];v.children=G}return B(r.type,O,void 0,void 0,A,v)},W.createContext=function(r){return r={$$typeof:y,_currentValue:r,_currentValue2:r,_threadCount:0,Provider:null,Consumer:null},r.Provider=r,r.Consumer={$$typeof:d,_context:r},r},W.createElement=function(r,f,b){var v,O={},A=null;if(f!=null)for(v in f.key!==void 0&&(A=""+f.key),f)F.call(f,v)&&v!=="key"&&v!=="__self"&&v!=="__source"&&(O[v]=f[v]);var R=arguments.length-2;if(R===1)O.children=b;else if(1<R){for(var G=Array(R),T=0;T<R;T++)G[T]=arguments[T+2];O.children=G}if(r&&r.defaultProps)for(v in R=r.defaultProps,R)O[v]===void 0&&(O[v]=R[v]);return B(r,A,void 0,void 0,null,O)},W.createRef=function(){return{current:null}},W.forwardRef=function(r){return{$$typeof:w,render:r}},W.isValidElement=ee,W.lazy=function(r){return{$$typeof:h,_payload:{_status:-1,_result:r},_init:ie}},W.memo=function(r,f){return{$$typeof:c,type:r,compare:f===void 0?null:f}},W.startTransition=function(r){var f=x.T,b={};x.T=b;try{var v=r(),O=x.S;O!==null&&O(b,v),typeof v=="object"&&v!==null&&typeof v.then=="function"&&v.then(ye,M)}catch(A){M(A)}finally{x.T=f}},W.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},W.use=function(r){return x.H.use(r)},W.useActionState=function(r,f,b){return x.H.useActionState(r,f,b)},W.useCallback=function(r,f){return x.H.useCallback(r,f)},W.useContext=function(r){return x.H.useContext(r)},W.useDebugValue=function(){},W.useDeferredValue=function(r,f){return x.H.useDeferredValue(r,f)},W.useEffect=function(r,f,b){var v=x.H;if(typeof b=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return v.useEffect(r,f)},W.useId=function(){return x.H.useId()},W.useImperativeHandle=function(r,f,b){return x.H.useImperativeHandle(r,f,b)},W.useInsertionEffect=function(r,f){return x.H.useInsertionEffect(r,f)},W.useLayoutEffect=function(r,f){return x.H.useLayoutEffect(r,f)},W.useMemo=function(r,f){return x.H.useMemo(r,f)},W.useOptimistic=function(r,f){return x.H.useOptimistic(r,f)},W.useReducer=function(r,f,b){return x.H.useReducer(r,f,b)},W.useRef=function(r){return x.H.useRef(r)},W.useState=function(r){return x.H.useState(r)},W.useSyncExternalStore=function(r,f,b){return x.H.useSyncExternalStore(r,f,b)},W.useTransition=function(){return x.H.useTransition()},W.version="19.1.1",W}var gt={exports:{}};/**
|
|
67
67
|
* @license React
|
|
68
68
|
* react.development.js
|
|
69
69
|
*
|
|
@@ -71,19 +71,19 @@ React keys must be passed directly to JSX without using spread:
|
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the MIT license found in the
|
|
73
73
|
* LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/gt.exports;var pr;function
|
|
74
|
+
*/gt.exports;var pr;function qn(){return pr||(pr=1,(function(t,n){process.env.NODE_ENV!=="production"&&(function(){function o(e,a){Object.defineProperty(d.prototype,e,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",a[0],a[1])}})}function i(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}function u(e,a){e=(e=e.constructor)&&(e.displayName||e.name)||"ReactClass";var g=e+"."+a;he[g]||(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.",a,e),he[g]=!0)}function d(e,a,g){this.props=e,this.context=a,this.refs=Ae,this.updater=g||Ye}function y(){}function w(e,a,g){this.props=e,this.context=a,this.refs=Ae,this.updater=g||Ye}function p(e){return""+e}function c(e){try{p(e);var a=!1}catch{a=!0}if(a){a=console;var g=a.error,_=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return g.call(a,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",_),p(e)}}function h(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ve?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case r:return"Fragment";case b:return"Profiler";case f:return"StrictMode";case R:return"Suspense";case G:return"SuspenseList";case pe:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case ye:return"Portal";case O:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case A:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return a=e.displayName||null,a!==null?a:h(e.type)||"Memo";case J:a=e._payload,e=e._init;try{return h(e(a))}catch{}}return null}function l(e){if(e===r)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===J)return"<...>";try{var a=h(e);return a?"<"+a+">":"<...>"}catch{return"<...>"}}function s(){var e=D.A;return e===null?null:e.getOwner()}function m(){return Error("react-stack-top-frame")}function E(e){if(Re.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function k(e,a){function g(){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)",a))}g.isReactWarning=!0,Object.defineProperty(e,"key",{get:g,configurable:!0})}function j(){var e=h(this.type);return be[e]||(be[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function z(e,a,g,_,S,L,N,U){return g=L.ref,e={$$typeof:M,type:e,key:a,props:L,_owner:S},(g!==void 0?g:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:j}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:U}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function X(e,a){return a=z(e.type,a,void 0,void 0,e._owner,e.props,e._debugStack,e._debugTask),e._store&&(a._store.validated=e._store.validated),a}function H(e){return typeof e=="object"&&e!==null&&e.$$typeof===M}function Y(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(g){return a[g]})}function x(e,a){return typeof e=="object"&&e!==null&&e.key!=null?(c(e.key),Y(""+e.key)):a.toString(36)}function F(){}function B(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(F,F):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function C(e,a,g,_,S){var L=typeof e;(L==="undefined"||L==="boolean")&&(e=null);var N=!1;if(e===null)N=!0;else switch(L){case"bigint":case"string":case"number":N=!0;break;case"object":switch(e.$$typeof){case M:case ye:N=!0;break;case J:return N=e._init,C(N(e._payload),a,g,_,S)}}if(N){N=e,S=S(N);var U=_===""?"."+x(N,0):_;return We(S)?(g="",U!=null&&(g=U.replace(lt,"$&/")+"/"),C(S,a,g,"",function(Oe){return Oe})):S!=null&&(H(S)&&(S.key!=null&&(N&&N.key===S.key||c(S.key)),g=X(S,g+(S.key==null||N&&N.key===S.key?"":(""+S.key).replace(lt,"$&/")+"/")+U),_!==""&&N!=null&&H(N)&&N.key==null&&N._store&&!N._store.validated&&(g._store.validated=2),S=g),a.push(S)),1}if(N=0,U=_===""?".":_+":",We(e))for(var P=0;P<e.length;P++)_=e[P],L=U+x(_,P),N+=C(_,a,g,L,S);else if(P=i(e),typeof P=="function")for(P===e.entries&&(ct||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ct=!0),e=P.call(e),P=0;!(_=e.next()).done;)_=_.value,L=U+x(_,P++),N+=C(_,a,g,L,S);else if(L==="object"){if(typeof e.then=="function")return C(B(e),a,g,_,S);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return N}function ee(e,a,g){if(e==null)return e;var _=[],S=0;return C(e,_,"","",function(L){return a.call(g,L,S++)}),_}function ge(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(g){(e._status===0||e._status===-1)&&(e._status=1,e._result=g)},function(g){(e._status===0||e._status===-1)&&(e._status=2,e._result=g)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return a=e._result,a===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
75
75
|
|
|
76
76
|
Your code should look like:
|
|
77
77
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
78
78
|
|
|
79
|
-
Did you accidentally put curly braces around the import?`,
|
|
79
|
+
Did you accidentally put curly braces around the import?`,a),"default"in a||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
80
80
|
|
|
81
81
|
Your code should look like:
|
|
82
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
82
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,a),a.default;throw e._result}function V(){var e=D.H;return e===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:
|
|
83
83
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
84
84
|
2. You might be breaking the Rules of Hooks
|
|
85
85
|
3. You might have more than one copy of React in the same app
|
|
86
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function ue(){}function le(e){if(Ne===null)try{var i=("require"+Math.random()).slice(0,7);Ne=(t&&t[i]).call(t,"timers").setImmediate}catch{Ne=function(g){dt===!1&&(dt=!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 _=new MessageChannel;_.port1.onmessage=g,_.port2.postMessage(void 0)}}return Ne(e)}function ne(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function Z(e,i){i!==De-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. "),De=i}function te(e,i,g){var _=D.actQueue;if(_!==null)if(_.length!==0)try{ie(_),le(function(){return te(e,i,g)});return}catch(S){D.thrownErrors.push(S)}else D.actQueue=null;0<D.thrownErrors.length?(_=ne(D.thrownErrors),D.thrownErrors.length=0,g(_)):i(e)}function ie(e){if(!Be){Be=!0;var i=0;try{for(;i<e.length;i++){var g=e[i];do{D.didUsePromise=!1;var _=g(!1);if(_!==null){if(D.didUsePromise){e[i]=g,e.splice(0,i);return}g=_}else break}while(!0)}e.length=0}catch(S){e.splice(0,i+1),D.thrownErrors.push(S)}finally{Be=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M=Symbol.for("react.transitional.element"),ye=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),O=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ve=Symbol.iterator,he={},Ye={isMounted:function(){return!1},enqueueForceUpdate:function(e){u(e,"forceUpdate")},enqueueReplaceState:function(e){u(e,"replaceState")},enqueueSetState:function(e){u(e,"setState")}},qe=Object.assign,Ae={};Object.freeze(Ae),d.prototype.isReactComponent={},d.prototype.setState=function(e,i){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,i,"setState")},d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var ae={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)."]},xe;for(xe in ae)ae.hasOwnProperty(xe)&&o(xe,ae[xe]);y.prototype=d.prototype,ae=w.prototype=new y,ae.constructor=w,qe(ae,d.prototype),ae.isPureReactComponent=!0;var We=Array.isArray,Ve=Symbol.for("react.client.reference"),D={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Re=Object.prototype.hasOwnProperty,He=console.createTask?console.createTask:function(){return null};ae={react_stack_bottom_frame:function(e){return e()}};var re,fe,be={},et=ae.react_stack_bottom_frame.bind(ae,m)(),rr=He(l(m)),ct=!1,lt=/\/+/g,ft=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dt=!1,Ne=null,De=0,Pe=!1,Be=!1,pt=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:le;ae=Object.freeze({__proto__:null,c:function(e){return V().useMemoCache(e)}}),n.Children={map:ee,forEach:function(e,i,g){ee(e,function(){i.apply(this,arguments)},g)},count:function(e){var i=0;return ee(e,function(){i++}),i},toArray:function(e){return ee(e,function(i){return i})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=d,n.Fragment=r,n.Profiler=b,n.PureComponent=w,n.StrictMode=f,n.Suspense=R,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,n.__COMPILER_RUNTIME=ae,n.act=function(e){var i=D.actQueue,g=De;De++;var _=D.actQueue=i!==null?i:[],S=!1;try{var L=e()}catch(P){D.thrownErrors.push(P)}if(0<D.thrownErrors.length)throw Z(i,g),e=ne(D.thrownErrors),D.thrownErrors.length=0,e;if(L!==null&&typeof L=="object"&&typeof L.then=="function"){var N=L;return pt(function(){S||Pe||(Pe=!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(P,Oe){S=!0,N.then(function(Te){if(Z(i,g),g===0){try{ie(_),le(function(){return te(Te,P,Oe)})}catch(or){D.thrownErrors.push(or)}if(0<D.thrownErrors.length){var nr=ne(D.thrownErrors);D.thrownErrors.length=0,Oe(nr)}}else P(Te)},function(Te){Z(i,g),0<D.thrownErrors.length&&(Te=ne(D.thrownErrors),D.thrownErrors.length=0),Oe(Te)})}}}var U=L;if(Z(i,g),g===0&&(ie(_),_.length!==0&&pt(function(){S||Pe||(Pe=!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(() => ...)"))}),D.actQueue=null),0<D.thrownErrors.length)throw e=ne(D.thrownErrors),D.thrownErrors.length=0,e;return{then:function(P,Oe){S=!0,g===0?(D.actQueue=_,le(function(){return te(U,P,Oe)})):P(U)}}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.captureOwnerStack=function(){var e=D.getCurrentStack;return e===null?null:e()},n.cloneElement=function(e,i,g){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var _=qe({},e.props),S=e.key,L=e._owner;if(i!=null){var N;e:{if(Re.call(i,"ref")&&(N=Object.getOwnPropertyDescriptor(i,"ref").get)&&N.isReactWarning){N=!1;break e}N=i.ref!==void 0}N&&(L=s()),E(i)&&(c(i.key),S=""+i.key);for(U in i)!Re.call(i,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&i.ref===void 0||(_[U]=i[U])}var U=arguments.length-2;if(U===1)_.children=g;else if(1<U){N=Array(U);for(var P=0;P<U;P++)N[P]=arguments[P+2];_.children=N}for(_=z(e.type,S,void 0,void 0,L,_,e._debugStack,e._debugTask),S=2;S<arguments.length;S++)L=arguments[S],H(L)&&L._store&&(L._store.validated=1);return _},n.createContext=function(e){return e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},n.createElement=function(e,i,g){for(var _=2;_<arguments.length;_++){var S=arguments[_];H(S)&&S._store&&(S._store.validated=1)}if(_={},S=null,i!=null)for(P in fe||!("__self"in i)||"key"in i||(fe=!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")),E(i)&&(c(i.key),S=""+i.key),i)Re.call(i,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(_[P]=i[P]);var L=arguments.length-2;if(L===1)_.children=g;else if(1<L){for(var N=Array(L),U=0;U<L;U++)N[U]=arguments[U+2];Object.freeze&&Object.freeze(N),_.children=N}if(e&&e.defaultProps)for(P in L=e.defaultProps,L)_[P]===void 0&&(_[P]=L[P]);S&&k(_,typeof e=="function"?e.displayName||e.name||"Unknown":e);var P=1e4>D.recentlyCreatedOwnerStacks++;return z(e,S,void 0,void 0,s(),_,P?Error("react-stack-top-frame"):et,P?He(l(e)):rr)},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){e!=null&&e.$$typeof===T?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var i={$$typeof:A,render:e},g;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),i},n.isValidElement=H,n.lazy=function(e){return{$$typeof:J,_payload:{_status:-1,_result:e},_init:ge}},n.memo=function(e,i){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),i={$$typeof:T,type:e,compare:i===void 0?null:i};var g;return Object.defineProperty(i,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),i},n.startTransition=function(e){var i=D.T,g={};D.T=g,g._updatedFibers=new Set;try{var _=e(),S=D.S;S!==null&&S(g,_),typeof _=="object"&&_!==null&&typeof _.then=="function"&&_.then(ue,ft)}catch(L){ft(L)}finally{i===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&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.")),D.T=i}},n.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},n.use=function(e){return V().use(e)},n.useActionState=function(e,i,g){return V().useActionState(e,i,g)},n.useCallback=function(e,i){return V().useCallback(e,i)},n.useContext=function(e){var i=V();return e.$$typeof===v&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),i.useContext(e)},n.useDebugValue=function(e,i){return V().useDebugValue(e,i)},n.useDeferredValue=function(e,i){return V().useDeferredValue(e,i)},n.useEffect=function(e,i,g){e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var _=V();if(typeof g=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return _.useEffect(e,i)},n.useId=function(){return V().useId()},n.useImperativeHandle=function(e,i,g){return V().useImperativeHandle(e,i,g)},n.useInsertionEffect=function(e,i){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(e,i)},n.useLayoutEffect=function(e,i){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(e,i)},n.useMemo=function(e,i){return V().useMemo(e,i)},n.useOptimistic=function(e,i){return V().useOptimistic(e,i)},n.useReducer=function(e,i,g){return V().useReducer(e,i,g)},n.useRef=function(e){return V().useRef(e)},n.useState=function(e){return V().useState(e)},n.useSyncExternalStore=function(e,i,g){return V().useSyncExternalStore(e,i,g)},n.useTransition=function(){return V().useTransition()},n.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(gt,gt.exports)),gt.exports}var mr;function Ke(){return mr||(mr=1,process.env.NODE_ENV==="production"?Nt.exports=qn():Nt.exports=Wn()),Nt.exports}/**
|
|
86
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function ue(){}function ce(e){if(Ne===null)try{var a=("require"+Math.random()).slice(0,7);Ne=(t&&t[a]).call(t,"timers").setImmediate}catch{Ne=function(g){dt===!1&&(dt=!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 _=new MessageChannel;_.port1.onmessage=g,_.port2.postMessage(void 0)}}return Ne(e)}function ne(e){return 1<e.length&&typeof AggregateError=="function"?new AggregateError(e):e[0]}function Z(e,a){a!==De-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. "),De=a}function te(e,a,g){var _=D.actQueue;if(_!==null)if(_.length!==0)try{ie(_),ce(function(){return te(e,a,g)});return}catch(S){D.thrownErrors.push(S)}else D.actQueue=null;0<D.thrownErrors.length?(_=ne(D.thrownErrors),D.thrownErrors.length=0,g(_)):a(e)}function ie(e){if(!Be){Be=!0;var a=0;try{for(;a<e.length;a++){var g=e[a];do{D.didUsePromise=!1;var _=g(!1);if(_!==null){if(D.didUsePromise){e[a]=g,e.splice(0,a);return}g=_}else break}while(!0)}e.length=0}catch(S){e.splice(0,a+1),D.thrownErrors.push(S)}finally{Be=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var M=Symbol.for("react.transitional.element"),ye=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),O=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),pe=Symbol.for("react.activity"),ve=Symbol.iterator,he={},Ye={isMounted:function(){return!1},enqueueForceUpdate:function(e){u(e,"forceUpdate")},enqueueReplaceState:function(e){u(e,"replaceState")},enqueueSetState:function(e){u(e,"setState")}},qe=Object.assign,Ae={};Object.freeze(Ae),d.prototype.isReactComponent={},d.prototype.setState=function(e,a){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,a,"setState")},d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var se={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)."]},xe;for(xe in se)se.hasOwnProperty(xe)&&o(xe,se[xe]);y.prototype=d.prototype,se=w.prototype=new y,se.constructor=w,qe(se,d.prototype),se.isPureReactComponent=!0;var We=Array.isArray,Ve=Symbol.for("react.client.reference"),D={H:null,A:null,T:null,S:null,V:null,actQueue:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Re=Object.prototype.hasOwnProperty,He=console.createTask?console.createTask:function(){return null};se={react_stack_bottom_frame:function(e){return e()}};var re,le,be={},et=se.react_stack_bottom_frame.bind(se,m)(),rr=He(l(m)),ct=!1,lt=/\/+/g,ft=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},dt=!1,Ne=null,De=0,Pe=!1,Be=!1,pt=typeof queueMicrotask=="function"?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:ce;se=Object.freeze({__proto__:null,c:function(e){return V().useMemoCache(e)}}),n.Children={map:ee,forEach:function(e,a,g){ee(e,function(){a.apply(this,arguments)},g)},count:function(e){var a=0;return ee(e,function(){a++}),a},toArray:function(e){return ee(e,function(a){return a})||[]},only:function(e){if(!H(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},n.Component=d,n.Fragment=r,n.Profiler=b,n.PureComponent=w,n.StrictMode=f,n.Suspense=R,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,n.__COMPILER_RUNTIME=se,n.act=function(e){var a=D.actQueue,g=De;De++;var _=D.actQueue=a!==null?a:[],S=!1;try{var L=e()}catch(P){D.thrownErrors.push(P)}if(0<D.thrownErrors.length)throw Z(a,g),e=ne(D.thrownErrors),D.thrownErrors.length=0,e;if(L!==null&&typeof L=="object"&&typeof L.then=="function"){var N=L;return pt(function(){S||Pe||(Pe=!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(P,Oe){S=!0,N.then(function(Te){if(Z(a,g),g===0){try{ie(_),ce(function(){return te(Te,P,Oe)})}catch(or){D.thrownErrors.push(or)}if(0<D.thrownErrors.length){var nr=ne(D.thrownErrors);D.thrownErrors.length=0,Oe(nr)}}else P(Te)},function(Te){Z(a,g),0<D.thrownErrors.length&&(Te=ne(D.thrownErrors),D.thrownErrors.length=0),Oe(Te)})}}}var U=L;if(Z(a,g),g===0&&(ie(_),_.length!==0&&pt(function(){S||Pe||(Pe=!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(() => ...)"))}),D.actQueue=null),0<D.thrownErrors.length)throw e=ne(D.thrownErrors),D.thrownErrors.length=0,e;return{then:function(P,Oe){S=!0,g===0?(D.actQueue=_,ce(function(){return te(U,P,Oe)})):P(U)}}},n.cache=function(e){return function(){return e.apply(null,arguments)}},n.captureOwnerStack=function(){var e=D.getCurrentStack;return e===null?null:e()},n.cloneElement=function(e,a,g){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var _=qe({},e.props),S=e.key,L=e._owner;if(a!=null){var N;e:{if(Re.call(a,"ref")&&(N=Object.getOwnPropertyDescriptor(a,"ref").get)&&N.isReactWarning){N=!1;break e}N=a.ref!==void 0}N&&(L=s()),E(a)&&(c(a.key),S=""+a.key);for(U in a)!Re.call(a,U)||U==="key"||U==="__self"||U==="__source"||U==="ref"&&a.ref===void 0||(_[U]=a[U])}var U=arguments.length-2;if(U===1)_.children=g;else if(1<U){N=Array(U);for(var P=0;P<U;P++)N[P]=arguments[P+2];_.children=N}for(_=z(e.type,S,void 0,void 0,L,_,e._debugStack,e._debugTask),S=2;S<arguments.length;S++)L=arguments[S],H(L)&&L._store&&(L._store.validated=1);return _},n.createContext=function(e){return e={$$typeof:O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:v,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},n.createElement=function(e,a,g){for(var _=2;_<arguments.length;_++){var S=arguments[_];H(S)&&S._store&&(S._store.validated=1)}if(_={},S=null,a!=null)for(P in le||!("__self"in a)||"key"in a||(le=!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")),E(a)&&(c(a.key),S=""+a.key),a)Re.call(a,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(_[P]=a[P]);var L=arguments.length-2;if(L===1)_.children=g;else if(1<L){for(var N=Array(L),U=0;U<L;U++)N[U]=arguments[U+2];Object.freeze&&Object.freeze(N),_.children=N}if(e&&e.defaultProps)for(P in L=e.defaultProps,L)_[P]===void 0&&(_[P]=L[P]);S&&k(_,typeof e=="function"?e.displayName||e.name||"Unknown":e);var P=1e4>D.recentlyCreatedOwnerStacks++;return z(e,S,void 0,void 0,s(),_,P?Error("react-stack-top-frame"):et,P?He(l(e)):rr)},n.createRef=function(){var e={current:null};return Object.seal(e),e},n.forwardRef=function(e){e!=null&&e.$$typeof===T?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e!="function"?console.error("forwardRef requires a render function but was given %s.",e===null?"null":typeof e):e.length!==0&&e.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",e.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),e!=null&&e.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var a={$$typeof:A,render:e},g;return Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),a},n.isValidElement=H,n.lazy=function(e){return{$$typeof:J,_payload:{_status:-1,_result:e},_init:ge}},n.memo=function(e,a){e==null&&console.error("memo: The first argument must be a component. Instead received: %s",e===null?"null":typeof e),a={$$typeof:T,type:e,compare:a===void 0?null:a};var g;return Object.defineProperty(a,"displayName",{enumerable:!1,configurable:!0,get:function(){return g},set:function(_){g=_,e.name||e.displayName||(Object.defineProperty(e,"name",{value:_}),e.displayName=_)}}),a},n.startTransition=function(e){var a=D.T,g={};D.T=g,g._updatedFibers=new Set;try{var _=e(),S=D.S;S!==null&&S(g,_),typeof _=="object"&&_!==null&&typeof _.then=="function"&&_.then(ue,ft)}catch(L){ft(L)}finally{a===null&&g._updatedFibers&&(e=g._updatedFibers.size,g._updatedFibers.clear(),10<e&&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.")),D.T=a}},n.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},n.use=function(e){return V().use(e)},n.useActionState=function(e,a,g){return V().useActionState(e,a,g)},n.useCallback=function(e,a){return V().useCallback(e,a)},n.useContext=function(e){var a=V();return e.$$typeof===v&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),a.useContext(e)},n.useDebugValue=function(e,a){return V().useDebugValue(e,a)},n.useDeferredValue=function(e,a){return V().useDeferredValue(e,a)},n.useEffect=function(e,a,g){e==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");var _=V();if(typeof g=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return _.useEffect(e,a)},n.useId=function(){return V().useId()},n.useImperativeHandle=function(e,a,g){return V().useImperativeHandle(e,a,g)},n.useInsertionEffect=function(e,a){return e==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(e,a)},n.useLayoutEffect=function(e,a){return e==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(e,a)},n.useMemo=function(e,a){return V().useMemo(e,a)},n.useOptimistic=function(e,a){return V().useOptimistic(e,a)},n.useReducer=function(e,a,g){return V().useReducer(e,a,g)},n.useRef=function(e){return V().useRef(e)},n.useState=function(e){return V().useState(e)},n.useSyncExternalStore=function(e,a,g){return V().useSyncExternalStore(e,a,g)},n.useTransition=function(){return V().useTransition()},n.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(gt,gt.exports)),gt.exports}var mr;function Ke(){return mr||(mr=1,process.env.NODE_ENV==="production"?Nt.exports=Yn():Nt.exports=qn()),Nt.exports}/**
|
|
87
87
|
* @license React
|
|
88
88
|
* react-jsx-runtime.development.js
|
|
89
89
|
*
|
|
@@ -91,12 +91,12 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
91
91
|
*
|
|
92
92
|
* This source code is licensed under the MIT license found in the
|
|
93
93
|
* LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/var yr;function
|
|
94
|
+
*/var yr;function Wn(){return yr||(yr=1,process.env.NODE_ENV!=="production"&&(function(){function t(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ge?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case k:return"Fragment";case z:return"Profiler";case j:return"StrictMode";case x:return"Suspense";case F:return"SuspenseList";case ee:return"Activity"}if(typeof r=="object")switch(typeof r.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),r.$$typeof){case E:return"Portal";case H:return(r.displayName||"Context")+".Provider";case X:return(r._context.displayName||"Context")+".Consumer";case Y:var f=r.render;return r=r.displayName,r||(r=f.displayName||f.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case B:return f=r.displayName||null,f!==null?f:t(r.type)||"Memo";case C:f=r._payload,r=r._init;try{return t(r(f))}catch{}}return null}function n(r){return""+r}function o(r){try{n(r);var f=!1}catch{f=!0}if(f){f=console;var b=f.error,v=typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object";return b.call(f,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",v),n(r)}}function i(r){if(r===k)return"<>";if(typeof r=="object"&&r!==null&&r.$$typeof===C)return"<...>";try{var f=t(r);return f?"<"+f+">":"<...>"}catch{return"<...>"}}function u(){var r=V.A;return r===null?null:r.getOwner()}function d(){return Error("react-stack-top-frame")}function y(r){if(ue.call(r,"key")){var f=Object.getOwnPropertyDescriptor(r,"key").get;if(f&&f.isReactWarning)return!1}return r.key!==void 0}function w(r,f){function b(){Z||(Z=!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)",f))}b.isReactWarning=!0,Object.defineProperty(r,"key",{get:b,configurable:!0})}function p(){var r=t(this.type);return te[r]||(te[r]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),r=this.props.ref,r!==void 0?r:null}function c(r,f,b,v,O,A,R,G){return b=A.ref,r={$$typeof:m,type:r,key:f,props:A,_owner:O},(b!==void 0?b:null)!==null?Object.defineProperty(r,"ref",{enumerable:!1,get:p}):Object.defineProperty(r,"ref",{enumerable:!1,value:null}),r._store={},Object.defineProperty(r._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(r,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(r,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:R}),Object.defineProperty(r,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:G}),Object.freeze&&(Object.freeze(r.props),Object.freeze(r)),r}function h(r,f,b,v,O,A,R,G){var T=f.children;if(T!==void 0)if(v)if(ce(T)){for(v=0;v<T.length;v++)l(T[v]);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 l(T);if(ue.call(f,"key")){T=t(r);var J=Object.keys(f).filter(function(ve){return ve!=="key"});v=0<J.length?"{key: someKey, "+J.join(": ..., ")+": ...}":"{key: someKey}",ye[T+v]||(J=0<J.length?"{"+J.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
95
95
|
let props = %s;
|
|
96
96
|
<%s {...props} />
|
|
97
97
|
React keys must be passed directly to JSX without using spread:
|
|
98
98
|
let props = %s;
|
|
99
|
-
<%s key={someKey} {...props} />`,v,T,J,T),ye[T+v]=!0)}if(T=null,b!==void 0&&(o(b),T=""+b),y(f)&&(o(f.key),T=""+f.key),"key"in f){b={};for(var pe in f)pe!=="key"&&(b[pe]=f[pe])}else b=f;return T&&w(b,typeof r=="function"?r.displayName||r.name||"Unknown":r),c(r,T,A,O,u(),b,R,G)}function l(r){typeof r=="object"&&r!==null&&r.$$typeof===m&&r._store&&(r._store.validated=1)}var s=Ke(),m=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),V=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,
|
|
99
|
+
<%s key={someKey} {...props} />`,v,T,J,T),ye[T+v]=!0)}if(T=null,b!==void 0&&(o(b),T=""+b),y(f)&&(o(f.key),T=""+f.key),"key"in f){b={};for(var pe in f)pe!=="key"&&(b[pe]=f[pe])}else b=f;return T&&w(b,typeof r=="function"?r.displayName||r.name||"Unknown":r),c(r,T,A,O,u(),b,R,G)}function l(r){typeof r=="object"&&r!==null&&r.$$typeof===m&&r._store&&(r._store.validated=1)}var s=Ke(),m=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),H=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),ee=Symbol.for("react.activity"),ge=Symbol.for("react.client.reference"),V=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,ce=Array.isArray,ne=console.createTask?console.createTask:function(){return null};s={react_stack_bottom_frame:function(r){return r()}};var Z,te={},ie=s.react_stack_bottom_frame.bind(s,d)(),M=ne(i(d)),ye={};yt.Fragment=k,yt.jsx=function(r,f,b,v,O){var A=1e4>V.recentlyCreatedOwnerStacks++;return h(r,f,b,!1,v,O,A?Error("react-stack-top-frame"):ie,A?ne(i(r)):M)},yt.jsxs=function(r,f,b,v,O){var A=1e4>V.recentlyCreatedOwnerStacks++;return h(r,f,b,!0,v,O,A?Error("react-stack-top-frame"):ie,A?ne(i(r)):M)}})()),yt}var gr;function Bn(){return gr||(gr=1,process.env.NODE_ENV==="production"?jt.exports=Fn():jt.exports=Wn()),jt.exports}var fe=Bn(),K=Ke();const oe=Gn(K);function Kn(t,n=[]){let o=[];function i(d,y){const w=K.createContext(y),p=o.length;o=[...o,y];const c=l=>{const{scope:s,children:m,...E}=l,k=s?.[t]?.[p]||w,j=K.useMemo(()=>E,Object.values(E));return fe.jsx(k.Provider,{value:j,children:m})};c.displayName=d+"Provider";function h(l,s){const m=s?.[t]?.[p]||w,E=K.useContext(m);if(E)return E;if(y!==void 0)return y;throw new Error(`\`${l}\` must be used within \`${d}\``)}return[c,h]}const u=()=>{const d=o.map(y=>K.createContext(y));return function(y){const w=y?.[t]||d;return K.useMemo(()=>({[`__scope${t}`]:{...y,[t]:w}}),[y,w])}};return u.scopeName=t,[i,Xn(u,...n)]}function Xn(...t){const n=t[0];if(t.length===1)return n;const o=()=>{const i=t.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(u){const d=i.reduce((y,{useScope:w,scopeName:p})=>{const c=w(u)[`__scope${p}`];return{...y,...c}},{});return K.useMemo(()=>({[`__scope${n.scopeName}`]:d}),[d])}};return o.scopeName=n.scopeName,o}function Qn(t){const n=K.useRef(t);return K.useEffect(()=>{n.current=t}),K.useMemo(()=>(...o)=>n.current?.(...o),[])}var Dt=globalThis?.document?K.useLayoutEffect:()=>{},ht={exports:{}},_e={};/**
|
|
100
100
|
* @license React
|
|
101
101
|
* react-dom.production.js
|
|
102
102
|
*
|
|
@@ -104,7 +104,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
104
104
|
*
|
|
105
105
|
* This source code is licensed under the MIT license found in the
|
|
106
106
|
* LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/var hr;function
|
|
107
|
+
*/var hr;function Jn(){if(hr)return _e;hr=1;var t=Ke();function n(p){var c="https://react.dev/errors/"+p;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+p+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(p,c,h){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:l==null?null:""+l,children:p,containerInfo:c,implementation:h}}var y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(p,c){if(p==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return _e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,_e.createPortal=function(p,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(n(299));return d(p,c,null,h)},_e.flushSync=function(p){var c=y.T,h=i.p;try{if(y.T=null,i.p=2,p)return p()}finally{y.T=c,i.p=h,i.d.f()}},_e.preconnect=function(p,c){typeof p=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,i.d.C(p,c))},_e.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},_e.preinit=function(p,c){if(typeof p=="string"&&c&&typeof c.as=="string"){var h=c.as,l=w(h,c.crossOrigin),s=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;h==="style"?i.d.S(p,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:l,integrity:s,fetchPriority:m}):h==="script"&&i.d.X(p,{crossOrigin:l,integrity:s,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},_e.preinitModule=function(p,c){if(typeof p=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var h=w(c.as,c.crossOrigin);i.d.M(p,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&i.d.M(p)},_e.preload=function(p,c){if(typeof p=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var h=c.as,l=w(h,c.crossOrigin);i.d.L(p,h,{crossOrigin:l,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},_e.preloadModule=function(p,c){if(typeof p=="string")if(c){var h=w(c.as,c.crossOrigin);i.d.m(p,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else i.d.m(p)},_e.requestFormReset=function(p){i.d.r(p)},_e.unstable_batchedUpdates=function(p,c){return p(c)},_e.useFormState=function(p,c,h){return y.H.useFormState(p,c,h)},_e.useFormStatus=function(){return y.H.useHostTransitionStatus()},_e.version="19.1.1",_e}var Se={};/**
|
|
108
108
|
* @license React
|
|
109
109
|
* react-dom.development.js
|
|
110
110
|
*
|
|
@@ -112,11 +112,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
112
112
|
*
|
|
113
113
|
* This source code is licensed under the MIT license found in the
|
|
114
114
|
* LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/var vr;function
|
|
115
|
+
*/var vr;function Zn(){return vr||(vr=1,process.env.NODE_ENV!=="production"&&(function(){function t(){}function n(l){return""+l}function o(l,s,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(E);var k=!1}catch{k=!0}return k&&(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&&E[Symbol.toStringTag]||E.constructor.name||"Object"),n(E)),{$$typeof:c,key:E==null?null:""+E,children:l,containerInfo:s,implementation:m}}function i(l,s){if(l==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}function u(l){return l===null?"`null`":l===void 0?"`undefined`":l===""?"an empty string":'something with type "'+typeof l+'"'}function d(l){return l===null?"`null`":l===void 0?"`undefined`":l===""?"an empty string":typeof l=="string"?JSON.stringify(l):typeof l=="number"?"`"+l+"`":'something with type "'+typeof l+'"'}function y(){var l=h.H;return l===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:
|
|
116
116
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
117
117
|
2. You might be breaking the Rules of Hooks
|
|
118
118
|
3. You might have more than one copy of React in the same app
|
|
119
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var w=Ke(),p={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),h=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Se.createPortal=function(l,s){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return o(l,s,null,m)},Se.flushSync=function(l){var s=h.T,m=p.p;try{if(h.T=null,p.p=2,l)return l()}finally{h.T=s,p.p=m,p.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Se.preconnect=function(l,s){typeof l=="string"&&l?s!=null&&typeof s!="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.",d(s)):s!=null&&typeof s.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.",u(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,p.d.C(l,s))},Se.prefetchDNS=function(l){if(typeof l!="string"||!l)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.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`.",d(s)):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`.",d(s))}typeof l=="string"&&p.d.D(l)},Se.preinit=function(l,s){if(typeof l=="string"&&l?s==null||typeof s!="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.",d(s)):s.as!=="style"&&s.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".',d(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&s&&typeof s.as=="string"){var m=s.as,E=a(m,s.crossOrigin),k=typeof s.integrity=="string"?s.integrity:void 0,j=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;m==="style"?p.d.S(l,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:E,integrity:k,fetchPriority:j}):m==="script"&&p.d.X(l,{crossOrigin:E,integrity:k,fetchPriority:j,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},Se.preinitModule=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&s.as!=="script"&&(m+=" The `as` option encountered was "+d(s.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=s&&typeof s.as=="string"?s.as:"script",m){case"script":break;default:m=d(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,l)}typeof l=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(m=a(s.as,s.crossOrigin),p.d.M(l,{crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&p.d.M(l))},Se.preload=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s==null||typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":typeof s.as=="string"&&s.as||(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof l=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){m=s.as;var E=a(m,s.crossOrigin);p.d.L(l,m,{crossOrigin:E,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},Se.preloadModule=function(l,s){var m="";typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&typeof s.as!="string"&&(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof l=="string"&&(s?(m=a(s.as,s.crossOrigin),p.d.m(l,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0})):p.d.m(l))},Se.requestFormReset=function(l){p.d.r(l)},Se.unstable_batchedUpdates=function(l,s){return l(s)},Se.useFormState=function(l,s,m){return y().useFormState(l,s,m)},Se.useFormStatus=function(){return y().useHostTransitionStatus()},Se.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Se}var br;function to(){if(br)return ht.exports;br=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return process.env.NODE_ENV==="production"?(t(),ht.exports=Zn()):ht.exports=eo(),ht.exports}to();function _r(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function ro(...t){return n=>{let o=!1;const a=t.map(u=>{const d=_r(u,n);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<a.length;u++){const d=a[u];typeof d=="function"?d():_r(t[u],null)}}}}function wr(t){const n=no(t),o=K.forwardRef((a,u)=>{const{children:d,...y}=a,w=K.Children.toArray(d),p=w.find(so);if(p){const c=p.props.children,h=w.map(l=>l===p?K.Children.count(c)>1?K.Children.only(null):K.isValidElement(c)?c.props.children:null:l);return de.jsx(n,{...y,ref:u,children:K.isValidElement(c)?K.cloneElement(c,void 0,h):null})}return de.jsx(n,{...y,ref:u,children:d})});return o.displayName=`${t}.Slot`,o}var Er=wr("Slot");function no(t){const n=K.forwardRef((o,a)=>{const{children:u,...d}=o;if(K.isValidElement(u)){const y=io(u),w=ao(d,u.props);return u.type!==K.Fragment&&(w.ref=a?ro(a,y):y),K.cloneElement(u,w)}return K.Children.count(u)>1?K.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var oo=Symbol("radix.slottable");function so(t){return K.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===oo}function ao(t,n){const o={...n};for(const a in n){const u=t[a],d=n[a];/^on[A-Z]/.test(a)?u&&d?o[a]=(...y)=>{const w=d(...y);return u(...y),w}:u&&(o[a]=u):a==="style"?o[a]={...u,...d}:a==="className"&&(o[a]=[u,d].filter(Boolean).join(" "))}return{...t,...o}}function io(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var uo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vt=uo.reduce((t,n)=>{const o=wr(`Primitive.${n}`),a=K.forwardRef((u,d)=>{const{asChild:y,...w}=u,p=y?o:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),de.jsx(p,{...w,ref:d})});return a.displayName=`Primitive.${n}`,{...t,[n]:a}},{}),Pt={exports:{}},Lt={};/**
|
|
119
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var w=Ke(),p={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),h=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),Se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Se.createPortal=function(l,s){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return o(l,s,null,m)},Se.flushSync=function(l){var s=h.T,m=p.p;try{if(h.T=null,p.p=2,l)return l()}finally{h.T=s,p.p=m,p.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},Se.preconnect=function(l,s){typeof l=="string"&&l?s!=null&&typeof s!="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.",d(s)):s!=null&&typeof s.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.",u(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,p.d.C(l,s))},Se.prefetchDNS=function(l){if(typeof l!="string"||!l)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.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`.",d(s)):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`.",d(s))}typeof l=="string"&&p.d.D(l)},Se.preinit=function(l,s){if(typeof l=="string"&&l?s==null||typeof s!="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.",d(s)):s.as!=="style"&&s.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".',d(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&s&&typeof s.as=="string"){var m=s.as,E=i(m,s.crossOrigin),k=typeof s.integrity=="string"?s.integrity:void 0,j=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;m==="style"?p.d.S(l,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:E,integrity:k,fetchPriority:j}):m==="script"&&p.d.X(l,{crossOrigin:E,integrity:k,fetchPriority:j,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},Se.preinitModule=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&s.as!=="script"&&(m+=" The `as` option encountered was "+d(s.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=s&&typeof s.as=="string"?s.as:"script",m){case"script":break;default:m=d(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,l)}typeof l=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(m=i(s.as,s.crossOrigin),p.d.M(l,{crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&p.d.M(l))},Se.preload=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s==null||typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":typeof s.as=="string"&&s.as||(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof l=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){m=s.as;var E=i(m,s.crossOrigin);p.d.L(l,m,{crossOrigin:E,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},Se.preloadModule=function(l,s){var m="";typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&typeof s.as!="string"&&(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof l=="string"&&(s?(m=i(s.as,s.crossOrigin),p.d.m(l,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0})):p.d.m(l))},Se.requestFormReset=function(l){p.d.r(l)},Se.unstable_batchedUpdates=function(l,s){return l(s)},Se.useFormState=function(l,s,m){return y().useFormState(l,s,m)},Se.useFormStatus=function(){return y().useHostTransitionStatus()},Se.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Se}var br;function eo(){if(br)return ht.exports;br=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return process.env.NODE_ENV==="production"?(t(),ht.exports=Jn()):ht.exports=Zn(),ht.exports}eo();function _r(t,n){if(typeof t=="function")return t(n);t!=null&&(t.current=n)}function to(...t){return n=>{let o=!1;const i=t.map(u=>{const d=_r(u,n);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<i.length;u++){const d=i[u];typeof d=="function"?d():_r(t[u],null)}}}}function wr(t){const n=ro(t),o=K.forwardRef((i,u)=>{const{children:d,...y}=i,w=K.Children.toArray(d),p=w.find(oo);if(p){const c=p.props.children,h=w.map(l=>l===p?K.Children.count(c)>1?K.Children.only(null):K.isValidElement(c)?c.props.children:null:l);return fe.jsx(n,{...y,ref:u,children:K.isValidElement(c)?K.cloneElement(c,void 0,h):null})}return fe.jsx(n,{...y,ref:u,children:d})});return o.displayName=`${t}.Slot`,o}var Er=wr("Slot");function ro(t){const n=K.forwardRef((o,i)=>{const{children:u,...d}=o;if(K.isValidElement(u)){const y=ao(u),w=so(d,u.props);return u.type!==K.Fragment&&(w.ref=i?to(i,y):y),K.cloneElement(u,w)}return K.Children.count(u)>1?K.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}var no=Symbol("radix.slottable");function oo(t){return K.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===no}function so(t,n){const o={...n};for(const i in n){const u=t[i],d=n[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...y)=>{const w=d(...y);return u(...y),w}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...t,...o}}function ao(t){let n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning;return o?t.ref:(n=Object.getOwnPropertyDescriptor(t,"ref")?.get,o=n&&"isReactWarning"in n&&n.isReactWarning,o?t.props.ref:t.props.ref||t.ref)}var io=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vt=io.reduce((t,n)=>{const o=wr(`Primitive.${n}`),i=K.forwardRef((u,d)=>{const{asChild:y,...w}=u,p=y?o:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),fe.jsx(p,{...w,ref:d})});return i.displayName=`Primitive.${n}`,{...t,[n]:i}},{}),Pt={exports:{}},Lt={};/**
|
|
120
120
|
* @license React
|
|
121
121
|
* use-sync-external-store-shim.production.js
|
|
122
122
|
*
|
|
@@ -124,7 +124,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
124
124
|
*
|
|
125
125
|
* This source code is licensed under the MIT license found in the
|
|
126
126
|
* LICENSE file in the root directory of this source tree.
|
|
127
|
-
*/var Or;function
|
|
127
|
+
*/var Or;function uo(){if(Or)return Lt;Or=1;var t=Ke();function n(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var o=typeof Object.is=="function"?Object.is:n,i=t.useState,u=t.useEffect,d=t.useLayoutEffect,y=t.useDebugValue;function w(l,s){var m=s(),E=i({inst:{value:m,getSnapshot:s}}),k=E[0].inst,j=E[1];return d(function(){k.value=m,k.getSnapshot=s,p(k)&&j({inst:k})},[l,m,s]),u(function(){return p(k)&&j({inst:k}),l(function(){p(k)&&j({inst:k})})},[l]),y(m),m}function p(l){var s=l.getSnapshot;l=l.value;try{var m=s();return!o(l,m)}catch{return!0}}function c(l,s){return s()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:w;return Lt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,Lt}var Sr={};/**
|
|
128
128
|
* @license React
|
|
129
129
|
* use-sync-external-store-shim.development.js
|
|
130
130
|
*
|
|
@@ -132,7 +132,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
132
132
|
*
|
|
133
133
|
* This source code is licensed under the MIT license found in the
|
|
134
134
|
* LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/var kr;function lo(){return kr||(kr=1,process.env.NODE_ENV!=="production"&&(function(){function t(m,E){return m===E&&(m!==0||1/m===1/E)||m!==m&&E!==E}function n(m,E){h||u.startTransition===void 0||(h=!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 k=E();if(!l){var j=E();d(k,j)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}j=y({inst:{value:k,getSnapshot:E}});var z=j[0].inst,X=j[1];return p(function(){z.value=k,z.getSnapshot=E,o(z)&&X({inst:z})},[m,k,E]),w(function(){return o(z)&&X({inst:z}),m(function(){o(z)&&X({inst:z})})},[m]),c(k),k}function o(m){var E=m.getSnapshot;m=m.value;try{var k=E();return!d(m,k)}catch{return!0}}function a(m,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=Ke(),d=typeof Object.is=="function"?Object.is:t,y=u.useState,w=u.useEffect,p=u.useLayoutEffect,c=u.useDebugValue,h=!1,l=!1,s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a:n;Sr.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:s,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Sr}var Rr;function fo(){return Rr||(Rr=1,process.env.NODE_ENV==="production"?Pt.exports=co():Pt.exports=lo()),Pt.exports}var po=fo();function mo(){return po.useSyncExternalStore(yo,()=>!0,()=>!1)}function yo(){return()=>{}}var Mt="Avatar",[go,ga]=Xn(Mt),[ho,Tr]=go(Mt),vo=K.forwardRef((t,n)=>{const{__scopeAvatar:o,...a}=t,[u,d]=K.useState("idle");return de.jsx(ho,{scope:o,imageLoadingStatus:u,onImageLoadingStatusChange:d,children:de.jsx(vt.span,{...a,ref:n})})});vo.displayName=Mt;var xr="AvatarImage",bo=K.forwardRef((t,n)=>{const{__scopeAvatar:o,src:a,onLoadingStatusChange:u=()=>{},...d}=t,y=Tr(xr,o),w=wo(a,d),p=Jn(c=>{u(c),y.onImageLoadingStatusChange(c)});return Dt(()=>{w!=="idle"&&p(w)},[w,p]),w==="loaded"?de.jsx(vt.img,{...d,ref:n,src:a}):null});bo.displayName=xr;var Ar="AvatarFallback",_o=K.forwardRef((t,n)=>{const{__scopeAvatar:o,delayMs:a,...u}=t,d=Tr(Ar,o),[y,w]=K.useState(a===void 0);return K.useEffect(()=>{if(a!==void 0){const p=window.setTimeout(()=>w(!0),a);return()=>window.clearTimeout(p)}},[a]),y&&d.imageLoadingStatus!=="loaded"?de.jsx(vt.span,{...u,ref:n}):null});_o.displayName=Ar;function Cr(t,n){return t?n?(t.src!==n&&(t.src=n),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function wo(t,{referrerPolicy:n,crossOrigin:o}){const a=mo(),u=K.useRef(null),d=a?(u.current||(u.current=new window.Image),u.current):null,[y,w]=K.useState(()=>Cr(d,t));return Dt(()=>{w(Cr(d,t))},[d,t]),Dt(()=>{const p=l=>()=>{w(l)};if(!d)return;const c=p("loaded"),h=p("error");return d.addEventListener("load",c),d.addEventListener("error",h),n&&(d.referrerPolicy=n),typeof o=="string"&&(d.crossOrigin=o),()=>{d.removeEventListener("load",c),d.removeEventListener("error",h)}},[d,o,n]),y}function jr(t){var n,o,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(n=0;n<u;n++)t[n]&&(o=jr(t[n]))&&(a&&(a+=" "),a+=o)}else for(o in t)t[o]&&(a&&(a+=" "),a+=o);return a}function Nr(){for(var t,n,o=0,a="",u=arguments.length;o<u;o++)(t=arguments[o])&&(n=jr(t))&&(a&&(a+=" "),a+=n);return a}const It="-",Eo=t=>{const n=So(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:u=>{const d=u.split(It);return d[0]===""&&d.length!==1&&d.shift(),Dr(d,n)||Oo(u)},getConflictingClassGroupIds:(u,d)=>{const y=o[u]||[];return d&&a[u]?[...y,...a[u]]:y}}},Dr=(t,n)=>{if(t.length===0)return n.classGroupId;const o=t[0],a=n.nextPart.get(o),u=a?Dr(t.slice(1),a):void 0;if(u)return u;if(n.validators.length===0)return;const d=t.join(It);return n.validators.find(({validator:y})=>y(d))?.classGroupId},Pr=/^\[(.+)\]$/,Oo=t=>{if(Pr.test(t)){const n=Pr.exec(t)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}},So=t=>{const{theme:n,classGroups:o}=t,a={nextPart:new Map,validators:[]};for(const u in o)$t(o[u],a,u,n);return a},$t=(t,n,o,a)=>{t.forEach(u=>{if(typeof u=="string"){const d=u===""?n:Lr(n,u);d.classGroupId=o;return}if(typeof u=="function"){if(ko(u)){$t(u(a),n,o,a);return}n.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([d,y])=>{$t(y,Lr(n,d),o,a)})})},Lr=(t,n)=>{let o=t;return n.split(It).forEach(a=>{o.nextPart.has(a)||o.nextPart.set(a,{nextPart:new Map,validators:[]}),o=o.nextPart.get(a)}),o},ko=t=>t.isThemeGetter,Ro=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,o=new Map,a=new Map;const u=(d,y)=>{o.set(d,y),n++,n>t&&(n=0,a=o,o=new Map)};return{get(d){let y=o.get(d);if(y!==void 0)return y;if((y=a.get(d))!==void 0)return u(d,y),y},set(d,y){o.has(d)?o.set(d,y):u(d,y)}}},Vt="!",Ht=":",To=Ht.length,xo=t=>{const{prefix:n,experimentalParseClassName:o}=t;let a=u=>{const d=[];let y=0,w=0,p=0,c;for(let E=0;E<u.length;E++){let k=u[E];if(y===0&&w===0){if(k===Ht){d.push(u.slice(p,E)),p=E+To;continue}if(k==="/"){c=E;continue}}k==="["?y++:k==="]"?y--:k==="("?w++:k===")"&&w--}const h=d.length===0?u:u.substring(p),l=Ao(h),s=l!==h,m=c&&c>p?c-p:void 0;return{modifiers:d,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:m}};if(n){const u=n+Ht,d=a;a=y=>y.startsWith(u)?d(y.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:y,maybePostfixModifierPosition:void 0}}if(o){const u=a;a=d=>o({className:d,parseClassName:u})}return a},Ao=t=>t.endsWith(Vt)?t.substring(0,t.length-1):t.startsWith(Vt)?t.substring(1):t,Co=t=>{const n=Object.fromEntries(t.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const a=[];let u=[];return o.forEach(d=>{d[0]==="["||n[d]?(a.push(...u.sort(),d),u=[]):u.push(d)}),a.push(...u.sort()),a}},jo=t=>({cache:Ro(t.cacheSize),parseClassName:xo(t),sortModifiers:Co(t),...Eo(t)}),No=/\s+/,Do=(t,n)=>{const{parseClassName:o,getClassGroupId:a,getConflictingClassGroupIds:u,sortModifiers:d}=n,y=[],w=t.trim().split(No);let p="";for(let c=w.length-1;c>=0;c-=1){const h=w[c],{isExternal:l,modifiers:s,hasImportantModifier:m,baseClassName:E,maybePostfixModifierPosition:k}=o(h);if(l){p=h+(p.length>0?" "+p:p);continue}let j=!!k,z=a(j?E.substring(0,k):E);if(!z){if(!j){p=h+(p.length>0?" "+p:p);continue}if(z=a(E),!z){p=h+(p.length>0?" "+p:p);continue}j=!1}const X=d(s).join(":"),H=m?X+Vt:X,Y=H+z;if(y.includes(Y))continue;y.push(Y);const x=u(z,j);for(let F=0;F<x.length;++F){const B=x[F];y.push(H+B)}p=h+(p.length>0?" "+p:p)}return p};function Po(){let t=0,n,o,a="";for(;t<arguments.length;)(n=arguments[t++])&&(o=Mr(n))&&(a&&(a+=" "),a+=o);return a}const Mr=t=>{if(typeof t=="string")return t;let n,o="";for(let a=0;a<t.length;a++)t[a]&&(n=Mr(t[a]))&&(o&&(o+=" "),o+=n);return o};function Lo(t,...n){let o,a,u,d=y;function y(p){const c=n.reduce((h,l)=>l(h),t());return o=jo(c),a=o.cache.get,u=o.cache.set,d=w,w(p)}function w(p){const c=a(p);if(c)return c;const h=Do(p,o);return u(p,h),h}return function(){return d(Po.apply(null,arguments))}}const me=t=>{const n=o=>o[t]||[];return n.isThemeGetter=!0,n},Ir=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$r=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Mo=/^\d+\/\d+$/,Io=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$o=/\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$/,Vo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ho=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Uo=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=t=>Mo.test(t),Q=t=>!!t&&!Number.isNaN(Number(t)),$e=t=>!!t&&Number.isInteger(Number(t)),Ut=t=>t.endsWith("%")&&Q(t.slice(0,-1)),Ce=t=>Io.test(t),zo=()=>!0,Go=t=>$o.test(t)&&!Vo.test(t),Vr=()=>!1,Fo=t=>Ho.test(t),Yo=t=>Uo.test(t),qo=t=>!I(t)&&!$(t),Wo=t=>Qe(t,Fr,Vr),I=t=>Ir.test(t),Ue=t=>Qe(t,Yr,Go),zt=t=>Qe(t,Jo,Q),Hr=t=>Qe(t,zr,Vr),Bo=t=>Qe(t,Gr,Yo),bt=t=>Qe(t,qr,Fo),$=t=>$r.test(t),st=t=>Je(t,Yr),Ko=t=>Je(t,Zo),Ur=t=>Je(t,zr),Xo=t=>Je(t,Fr),Qo=t=>Je(t,Gr),_t=t=>Je(t,qr,!0),Qe=(t,n,o)=>{const a=Ir.exec(t);return a?a[1]?n(a[1]):o(a[2]):!1},Je=(t,n,o=!1)=>{const a=$r.exec(t);return a?a[1]?n(a[1]):o:!1},zr=t=>t==="position"||t==="percentage",Gr=t=>t==="image"||t==="url",Fr=t=>t==="length"||t==="size"||t==="bg-size",Yr=t=>t==="length",Jo=t=>t==="number",Zo=t=>t==="family-name",qr=t=>t==="shadow",es=()=>{const t=me("color"),n=me("font"),o=me("text"),a=me("font-weight"),u=me("tracking"),d=me("leading"),y=me("breakpoint"),w=me("container"),p=me("spacing"),c=me("radius"),h=me("shadow"),l=me("inset-shadow"),s=me("text-shadow"),m=me("drop-shadow"),E=me("blur"),k=me("perspective"),j=me("aspect"),z=me("ease"),X=me("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...Y(),$,I],F=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],C=()=>[$,I,p],ee=()=>[Xe,"full","auto",...C()],ge=()=>[$e,"none","subgrid",$,I],V=()=>["auto",{span:["full",$e,$,I]},$e,$,I],ue=()=>[$e,"auto",$,I],le=()=>["auto","min","max","fr",$,I],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...C()],ie=()=>[Xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],M=()=>[t,$,I],ye=()=>[...Y(),Ur,Hr,{position:[$,I]}],r=()=>["no-repeat",{repeat:["","x","y","space","round"]}],f=()=>["auto","cover","contain",Xo,Wo,{size:[$,I]}],b=()=>[Ut,st,Ue],v=()=>["","none","full",c,$,I],O=()=>["",Q,st,Ue],A=()=>["solid","dashed","dotted","double"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Q,Ut,Ur,Hr],T=()=>["","none",E,$,I],J=()=>["none",Q,$,I],pe=()=>["none",Q,$,I],ve=()=>[Q,$,I],he=()=>[Xe,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[zo],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[qo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",Q],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xe,I,$,j]}],container:["container"],columns:[{columns:[Q,I,$,w]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:x()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",$,I]}],basis:[{basis:[Xe,"full","auto",w,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,Xe,"auto","initial","none",I]}],grow:[{grow:["",Q,$,I]}],shrink:[{shrink:["",Q,$,I]}],order:[{order:[$e,"first","last","none",$,I]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:V()}],"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":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],w:[{w:[w,"screen",...ie()]}],"min-w":[{"min-w":[w,"screen","none",...ie()]}],"max-w":[{"max-w":[w,"screen","none","prose",{screen:[y]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",o,st,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,$,zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ut,I]}],"font-family":[{font:[Ko,I,n]}],"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:[u,$,I]}],"line-clamp":[{"line-clamp":[Q,"none",$,zt]}],leading:[{leading:[d,...C()]}],"list-image":[{"list-image":["none",$,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",$,Ue]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Q,"auto",$,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:r()}],"bg-size":[{bg:f()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,$,I],radial:["",$,I],conic:[$e,$,I]},Qo,Bo]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:b()}],"gradient-via-pos":[{via:b()}],"gradient-to-pos":[{to:b()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:v()}],"rounded-s":[{"rounded-s":v()}],"rounded-e":[{"rounded-e":v()}],"rounded-t":[{"rounded-t":v()}],"rounded-r":[{"rounded-r":v()}],"rounded-b":[{"rounded-b":v()}],"rounded-l":[{"rounded-l":v()}],"rounded-ss":[{"rounded-ss":v()}],"rounded-se":[{"rounded-se":v()}],"rounded-ee":[{"rounded-ee":v()}],"rounded-es":[{"rounded-es":v()}],"rounded-tl":[{"rounded-tl":v()}],"rounded-tr":[{"rounded-tr":v()}],"rounded-br":[{"rounded-br":v()}],"rounded-bl":[{"rounded-bl":v()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,$,I]}],"outline-w":[{outline:["",Q,st,Ue]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",h,_t,bt]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",l,_t,bt]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Q,Ue]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",s,_t,bt]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Q,$,I]}],"mix-blend":[{"mix-blend":[...R(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":R()}],"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":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[$,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":Y()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:r()}],"mask-size":[{mask:f()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,I]}],filter:[{filter:["","none",$,I]}],blur:[{blur:T()}],brightness:[{brightness:[Q,$,I]}],contrast:[{contrast:[Q,$,I]}],"drop-shadow":[{"drop-shadow":["","none",m,_t,bt]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Q,$,I]}],"hue-rotate":[{"hue-rotate":[Q,$,I]}],invert:[{invert:["",Q,$,I]}],saturate:[{saturate:[Q,$,I]}],sepia:[{sepia:["",Q,$,I]}],"backdrop-filter":[{"backdrop-filter":["","none",$,I]}],"backdrop-blur":[{"backdrop-blur":T()}],"backdrop-brightness":[{"backdrop-brightness":[Q,$,I]}],"backdrop-contrast":[{"backdrop-contrast":[Q,$,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,$,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,$,I]}],"backdrop-invert":[{"backdrop-invert":["",Q,$,I]}],"backdrop-opacity":[{"backdrop-opacity":[Q,$,I]}],"backdrop-saturate":[{"backdrop-saturate":[Q,$,I]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,$,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",$,I]}],ease:[{ease:["linear","initial",z,$,I]}],delay:[{delay:[Q,$,I]}],animate:[{animate:["none",X,$,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,$,I]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[$,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,I]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Q,st,Ue,zt]}],stroke:[{stroke:["none",...M()]}],"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"]}},ts=Lo(es);function je(...t){return ts(Nr(t))}const Wr=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Br=Nr,rs=((t,n)=>o=>{var a;if(n?.variants==null)return Br(t,o?.class,o?.className);const{variants:u,defaultVariants:d}=n,y=Object.keys(u).map(c=>{const h=o?.[c],l=d?.[c];if(h===null)return null;const s=Wr(h)||Wr(l);return u[c][s]}),w=o&&Object.entries(o).reduce((c,h)=>{let[l,s]=h;return s===void 0||(c[l]=s),c},{}),p=n==null||(a=n.compoundVariants)===null||a===void 0?void 0:a.reduce((c,h)=>{let{class:l,className:s,...m}=h;return Object.entries(m).every(E=>{let[k,j]=E;return Array.isArray(j)?j.includes({...d,...w}[k]):{...d,...w}[k]===j})?[...c,l,s]:c},[]);return Br(t,y,p,o?.class,o?.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 ns({className:t,variant:n,size:o,asChild:a=!1,...u}){const d=a?Er:"button";return de.jsx(d,{"data-slot":"button",className:je(rs({variant:n,size:o,className:t})),...u})}function os({className:t,...n}){return de.jsx("div",{"data-slot":"card",className:je("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...n})}function ss({className:t,...n}){return de.jsx("div",{"data-slot":"card-header",className:je("@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",t),...n})}function as({className:t,...n}){return de.jsx("div",{"data-slot":"card-title",className:je("leading-none font-semibold",t),...n})}function is({className:t,...n}){return de.jsx("div",{"data-slot":"card-description",className:je("text-muted-foreground text-sm",t),...n})}function us({className:t,...n}){return de.jsx("div",{"data-slot":"card-content",className:je("px-6",t),...n})}var cs="Label",Kr=K.forwardRef((t,n)=>de.jsx(vt.label,{...t,ref:n,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));Kr.displayName=cs;var ls=Kr,fs=t=>t.type==="checkbox",at=t=>t instanceof Date,Gt=t=>t==null;const Xr=t=>typeof t=="object";var ze=t=>!Gt(t)&&!Array.isArray(t)&&Xr(t)&&!at(t),ds=t=>ze(t)&&t.target?fs(t.target)?t.target.checked:t.target.value:t,ps=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,ms=(t,n)=>t.has(ps(n)),ys=t=>{const n=t.constructor&&t.constructor.prototype;return ze(n)&&n.hasOwnProperty("isPrototypeOf")},gs=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qr(t){let n;const o=Array.isArray(t),a=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)n=new Date(t);else if(!(gs&&(t instanceof Blob||a))&&(o||ze(t)))if(n=o?[]:Object.create(Object.getPrototypeOf(t)),!o&&!ys(t))n=t;else for(const u in t)t.hasOwnProperty(u)&&(n[u]=Qr(t[u]));else return t;return n}var Jr=t=>/^\w*$/.test(t),Ft=t=>t===void 0,hs=t=>Array.isArray(t)?t.filter(Boolean):[],Zr=t=>hs(t.replace(/["|']|\]/g,"").split(/\.|\[/)),ke=(t,n,o)=>{if(!n||!ze(t))return o;const a=(Jr(n)?[n]:Zr(n)).reduce((u,d)=>Gt(u)?u:u[d],t);return Ft(a)||a===t?Ft(t[n])?o:t[n]:a},Yt=t=>typeof t=="boolean",en=(t,n,o)=>{let a=-1;const u=Jr(n)?[n]:Zr(n),d=u.length,y=d-1;for(;++a<d;){const w=u[a];let p=o;if(a!==y){const c=t[w];p=ze(c)||Array.isArray(c)?c:isNaN(+u[a+1])?{}:[]}if(w==="__proto__"||w==="constructor"||w==="prototype")return;t[w]=p,t=t[w]}};const tn={BLUR:"blur",CHANGE:"change"},rn={all:"all"},qt=se.createContext(null);qt.displayName="HookFormContext";const wt=()=>se.useContext(qt),vs=t=>{const{children:n,...o}=t;return se.createElement(qt.Provider,{value:o},n)};var bs=(t,n,o,a=!0)=>{const u={defaultValues:n._defaultValues};for(const d in t)Object.defineProperty(u,d,{get:()=>{const y=d;return n._proxyFormState[y]!==rn.all&&(n._proxyFormState[y]=!a||rn.all),o&&(o[y]=!0),t[y]}});return u};const nn=typeof window<"u"?se.useLayoutEffect:se.useEffect;function on(t){const n=wt(),{control:o=n.control,disabled:a,name:u,exact:d}=t||{},[y,w]=se.useState(o._formState),p=se.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return nn(()=>o._subscribe({name:u,formState:p.current,exact:d,callback:c=>{!a&&w({...o._formState,...c})}}),[u,a,d]),se.useEffect(()=>{p.current.isValid&&o._setValid(!0)},[o]),se.useMemo(()=>bs(y,o,p.current,!1),[y,o])}var _s=t=>typeof t=="string",ws=(t,n,o,a,u)=>_s(t)?ke(o,t,u):Array.isArray(t)?t.map(d=>ke(o,d)):o,sn=t=>Gt(t)||!Xr(t);function an(t,n,o=new WeakSet){if(sn(t)||sn(n))return t===n;if(at(t)&&at(n))return t.getTime()===n.getTime();const a=Object.keys(t),u=Object.keys(n);if(a.length!==u.length)return!1;if(o.has(t)||o.has(n))return!0;o.add(t),o.add(n);for(const d of a){const y=t[d];if(!u.includes(d))return!1;if(d!=="ref"){const w=n[d];if(at(y)&&at(w)||ze(y)&&ze(w)||Array.isArray(y)&&Array.isArray(w)?!an(y,w,o):y!==w)return!1}}return!0}function Es(t){const n=wt(),{control:o=n.control,name:a,defaultValue:u,disabled:d,exact:y,compute:w}=t||{},p=se.useRef(u),c=se.useRef(w),h=se.useRef(void 0);c.current=w;const l=se.useMemo(()=>o._getWatch(a,p.current),[o,a]),[s,m]=se.useState(c.current?c.current(l):l);return nn(()=>o._subscribe({name:a,formState:{values:!0},exact:y,callback:E=>{if(!d){const k=ws(a,o._names,E.values||o._formValues,!1,p.current);if(c.current){const j=c.current(k);an(j,h.current)||(m(j),h.current=j)}else m(k)}}}),[o,d,a,y]),se.useEffect(()=>o._removeUnmounted()),s}function Os(t){const n=wt(),{name:o,disabled:a,control:u=n.control,shouldUnregister:d,defaultValue:y}=t,w=ms(u._names.array,o),p=se.useMemo(()=>ke(u._formValues,o,ke(u._defaultValues,o,y)),[u,o,y]),c=Es({control:u,name:o,defaultValue:p,exact:!0}),h=on({control:u,name:o,exact:!0}),l=se.useRef(t),s=se.useRef(void 0),m=se.useRef(u.register(o,{...t.rules,value:c,...Yt(t.disabled)?{disabled:t.disabled}:{}}));l.current=t;const E=se.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(h.errors,o)},isDirty:{enumerable:!0,get:()=>!!ke(h.dirtyFields,o)},isTouched:{enumerable:!0,get:()=>!!ke(h.touchedFields,o)},isValidating:{enumerable:!0,get:()=>!!ke(h.validatingFields,o)},error:{enumerable:!0,get:()=>ke(h.errors,o)}}),[h,o]),k=se.useCallback(H=>m.current.onChange({target:{value:ds(H),name:o},type:tn.CHANGE}),[o]),j=se.useCallback(()=>m.current.onBlur({target:{value:ke(u._formValues,o),name:o},type:tn.BLUR}),[o,u._formValues]),z=se.useCallback(H=>{const Y=ke(u._fields,o);Y&&H&&(Y._f.ref={focus:()=>H.focus&&H.focus(),select:()=>H.select&&H.select(),setCustomValidity:x=>H.setCustomValidity(x),reportValidity:()=>H.reportValidity()})},[u._fields,o]),X=se.useMemo(()=>({name:o,value:c,...Yt(a)||h.disabled?{disabled:h.disabled||a}:{},onChange:k,onBlur:j,ref:z}),[o,a,h.disabled,k,j,z,c]);return se.useEffect(()=>{const H=u._options.shouldUnregister||d,Y=s.current;Y&&Y!==o&&!w&&u.unregister(Y),u.register(o,{...l.current.rules,...Yt(l.current.disabled)?{disabled:l.current.disabled}:{}});const x=(F,B)=>{const C=ke(u._fields,F);C&&C._f&&(C._f.mount=B)};if(x(o,!0),H){const F=Qr(ke(u._options.defaultValues,o));en(u._defaultValues,o,F),Ft(ke(u._formValues,o))&&en(u._formValues,o,F)}return!w&&u.register(o),s.current=o,()=>{(w?H&&!u._state.action:H)?u.unregister(o):x(o,!1)}},[o,u,w,d]),se.useEffect(()=>{u._setDisabledField({disabled:a,name:o})},[a,o,u]),se.useMemo(()=>({field:X,formState:h,fieldState:E}),[X,h,E])}const Ss=t=>t.render(Os(t));function un({className:t,...n}){return de.jsx(ls,{"data-slot":"label",className:je("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",t),...n})}const ks=vs,cn=K.createContext({}),ln=({...t})=>de.jsx(cn.Provider,{value:{name:t.name},children:de.jsx(Ss,{...t})}),Rs=()=>{const t=K.useContext(cn),n=K.useContext(fn),{getFieldState:o}=wt(),a=on({name:t.name}),u=o(t.name,a);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:d}=n;return{id:d,name:t.name,formItemId:`${d}-form-item`,formDescriptionId:`${d}-form-item-description`,formMessageId:`${d}-form-item-message`,...u}},fn=K.createContext({});function dn({className:t,...n}){const o=K.useId();return de.jsx(fn.Provider,{value:{id:o},children:de.jsx("div",{"data-slot":"form-item",className:je("grid gap-2",t),...n})})}function pn({...t}){const{error:n,formItemId:o,formDescriptionId:a,formMessageId:u}=Rs();return de.jsx(Er,{"data-slot":"form-control",id:o,"aria-describedby":n?`${a} ${u}`:`${a}`,"aria-invalid":!!n,...t})}function mn({className:t,type:n,...o}){return de.jsx("input",{type:n,"data-slot":"input",className:je("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",t),...o})}const Ze=new WeakMap,Et=new WeakMap,Ot={current:[]};let Wt=!1;const St=new Set,yn=new Map;function gn(t){const n=Array.from(t).sort((o,a)=>o instanceof Ge&&o.options.deps.includes(a)?1:a instanceof Ge&&a.options.deps.includes(o)?-1:0);for(const o of n){if(Ot.current.includes(o))continue;Ot.current.push(o),o.recompute();const a=Et.get(o);if(a)for(const u of a){const d=Ze.get(u);d&&gn(d)}}}function Ts(t){t.listeners.forEach(n=>n({prevVal:t.prevState,currentVal:t.state}))}function xs(t){t.listeners.forEach(n=>n({prevVal:t.prevState,currentVal:t.state}))}function As(t){if(St.add(t),!Wt)try{for(Wt=!0;St.size>0;){const n=Array.from(St);St.clear();for(const o of n){const a=yn.get(o)??o.prevState;o.prevState=a,Ts(o)}for(const o of n){const a=Ze.get(o);a&&(Ot.current.push(o),gn(a))}for(const o of n){const a=Ze.get(o);if(a)for(const u of a)xs(u)}}}finally{Wt=!1,Ot.current=[],yn.clear()}}function Cs(t){return typeof t=="function"}class Bt{constructor(n,o){this.listeners=new Set,this.subscribe=a=>{var u,d;this.listeners.add(a);const y=(d=(u=this.options)==null?void 0:u.onSubscribe)==null?void 0:d.call(u,a,this);return()=>{this.listeners.delete(a),y?.()}},this.prevState=n,this.state=n,this.options=o}setState(n){var o,a,u;this.prevState=this.state,(o=this.options)!=null&&o.updateFn?this.state=this.options.updateFn(this.prevState)(n):Cs(n)?this.state=n(this.prevState):this.state=n,(u=(a=this.options)==null?void 0:a.onUpdate)==null||u.call(a),As(this)}}class Ge{constructor(n){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const o=[],a=[];for(const u of this.options.deps)o.push(u.prevState),a.push(u.state);return this.lastSeenDepValues=a,{prevDepVals:o,currDepVals:a,prevVal:this.prevState??void 0}},this.recompute=()=>{var o,a;this.prevState=this.state;const{prevDepVals:u,currDepVals:d,prevVal:y}=this.getDepVals();this.state=this.options.fn({prevDepVals:u,currDepVals:d,prevVal:y}),(a=(o=this.options).onUpdate)==null||a.call(o)},this.checkIfRecalculationNeededDeeply=()=>{for(const d of this.options.deps)d instanceof Ge&&d.checkIfRecalculationNeededDeeply();let o=!1;const a=this.lastSeenDepValues,{currDepVals:u}=this.getDepVals();for(let d=0;d<u.length;d++)if(u[d]!==a[d]){o=!0;break}o&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const o of this._subscriptions)o()}),this.subscribe=o=>{var a,u;this.listeners.add(o);const d=(u=(a=this.options).onSubscribe)==null?void 0:u.call(a,o,this);return()=>{this.listeners.delete(o),d?.()}},this.options=n,this.state=n.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(n=this.options.deps){for(const o of n)if(o instanceof Ge)o.registerOnGraph(),this.registerOnGraph(o.options.deps);else if(o instanceof Bt){let a=Ze.get(o);a||(a=new Set,Ze.set(o,a)),a.add(this);let u=Et.get(this);u||(u=new Set,Et.set(this,u)),u.add(o)}}unregisterFromGraph(n=this.options.deps){for(const o of n)if(o instanceof Ge)this.unregisterFromGraph(o.options.deps);else if(o instanceof Bt){const a=Ze.get(o);a&&a.delete(this);const u=Et.get(this);u&&u.delete(o)}}}function js(t){return typeof t=="function"}function hn(t,n){return js(t)?t(n):t}const Ns=Object.prototype.hasOwnProperty;function vn(t,n){if(t===n)return t;const o=n,a=wn(t)&&wn(o);if(!a&&!(kt(t)&&kt(o)))return o;const u=a?t:bn(t);if(!u)return o;const d=a?o:bn(o);if(!d)return o;const y=u.length,w=d.length,p=a?new Array(w):{};let c=0;for(let h=0;h<w;h++){const l=a?h:d[h],s=t[l],m=o[l];if(s===m){p[l]=s,(a?h<y:Ns.call(t,l))&&c++;continue}if(s===null||m===null||typeof s!="object"||typeof m!="object"){p[l]=m;continue}const E=vn(s,m);p[l]=E,E===s&&c++}return y===w&&c===y?t:p}function bn(t){const n=[],o=Object.getOwnPropertyNames(t);for(const u of o){if(!Object.prototype.propertyIsEnumerable.call(t,u))return!1;n.push(u)}const a=Object.getOwnPropertySymbols(t);for(const u of a){if(!Object.prototype.propertyIsEnumerable.call(t,u))return!1;n.push(u)}return n}function kt(t){if(!_n(t))return!1;const n=t.constructor;if(typeof n>"u")return!0;const o=n.prototype;return!(!_n(o)||!o.hasOwnProperty("isPrototypeOf"))}function _n(t){return Object.prototype.toString.call(t)==="[object Object]"}function wn(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Rt(t,n,o){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(let a=0,u=t.length;a<u;a++)if(!Rt(t[a],n[a],o))return!1;return!0}if(kt(t)&&kt(n)){const a=o?.ignoreUndefined??!0;if(o?.partial){for(const y in n)if((!a||n[y]!==void 0)&&!Rt(t[y],n[y],o))return!1;return!0}let u=0;if(!a)u=Object.keys(t).length;else for(const y in t)t[y]!==void 0&&u++;let d=0;for(const y in n)if((!a||n[y]!==void 0)&&(d++,d>u||!Rt(t[y],n[y],o)))return!1;return u===d}return!1}function Tt(t,n){return t?.endsWith("/")&&t!=="/"&&t!==`${n}/`?t.slice(0,-1):t}function Ds(t,n,o){return Tt(t,o)===Tt(n,o)}const Ps="Error preloading route! ☝️";var ce=Ie(),Ls=process.env.NODE_ENV==="production";function Ms(t,n){if(!Ls){if(t)return;var o="Warning: "+n;typeof console<"u"&&console.warn(o);try{throw Error(o)}catch{}}}var xt={exports:{}},Kt={},At={exports:{}},Xt={};/**
|
|
135
|
+
*/var kr;function co(){return kr||(kr=1,process.env.NODE_ENV!=="production"&&(function(){function t(m,E){return m===E&&(m!==0||1/m===1/E)||m!==m&&E!==E}function n(m,E){h||u.startTransition===void 0||(h=!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 k=E();if(!l){var j=E();d(k,j)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}j=y({inst:{value:k,getSnapshot:E}});var z=j[0].inst,X=j[1];return p(function(){z.value=k,z.getSnapshot=E,o(z)&&X({inst:z})},[m,k,E]),w(function(){return o(z)&&X({inst:z}),m(function(){o(z)&&X({inst:z})})},[m]),c(k),k}function o(m){var E=m.getSnapshot;m=m.value;try{var k=E();return!d(m,k)}catch{return!0}}function i(m,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=Ke(),d=typeof Object.is=="function"?Object.is:t,y=u.useState,w=u.useEffect,p=u.useLayoutEffect,c=u.useDebugValue,h=!1,l=!1,s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:n;Sr.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:s,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Sr}var Rr;function lo(){return Rr||(Rr=1,process.env.NODE_ENV==="production"?Pt.exports=uo():Pt.exports=co()),Pt.exports}var fo=lo();function po(){return fo.useSyncExternalStore(mo,()=>!0,()=>!1)}function mo(){return()=>{}}var Mt="Avatar",[yo,ya]=Kn(Mt),[go,Tr]=yo(Mt),ho=K.forwardRef((t,n)=>{const{__scopeAvatar:o,...i}=t,[u,d]=K.useState("idle");return fe.jsx(go,{scope:o,imageLoadingStatus:u,onImageLoadingStatusChange:d,children:fe.jsx(vt.span,{...i,ref:n})})});ho.displayName=Mt;var xr="AvatarImage",vo=K.forwardRef((t,n)=>{const{__scopeAvatar:o,src:i,onLoadingStatusChange:u=()=>{},...d}=t,y=Tr(xr,o),w=_o(i,d),p=Qn(c=>{u(c),y.onImageLoadingStatusChange(c)});return Dt(()=>{w!=="idle"&&p(w)},[w,p]),w==="loaded"?fe.jsx(vt.img,{...d,ref:n,src:i}):null});vo.displayName=xr;var Ar="AvatarFallback",bo=K.forwardRef((t,n)=>{const{__scopeAvatar:o,delayMs:i,...u}=t,d=Tr(Ar,o),[y,w]=K.useState(i===void 0);return K.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>w(!0),i);return()=>window.clearTimeout(p)}},[i]),y&&d.imageLoadingStatus!=="loaded"?fe.jsx(vt.span,{...u,ref:n}):null});bo.displayName=Ar;function Cr(t,n){return t?n?(t.src!==n&&(t.src=n),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function _o(t,{referrerPolicy:n,crossOrigin:o}){const i=po(),u=K.useRef(null),d=i?(u.current||(u.current=new window.Image),u.current):null,[y,w]=K.useState(()=>Cr(d,t));return Dt(()=>{w(Cr(d,t))},[d,t]),Dt(()=>{const p=l=>()=>{w(l)};if(!d)return;const c=p("loaded"),h=p("error");return d.addEventListener("load",c),d.addEventListener("error",h),n&&(d.referrerPolicy=n),typeof o=="string"&&(d.crossOrigin=o),()=>{d.removeEventListener("load",c),d.removeEventListener("error",h)}},[d,o,n]),y}function jr(t){var n,o,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var u=t.length;for(n=0;n<u;n++)t[n]&&(o=jr(t[n]))&&(i&&(i+=" "),i+=o)}else for(o in t)t[o]&&(i&&(i+=" "),i+=o);return i}function Nr(){for(var t,n,o=0,i="",u=arguments.length;o<u;o++)(t=arguments[o])&&(n=jr(t))&&(i&&(i+=" "),i+=n);return i}const It="-",wo=t=>{const n=Oo(t),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=t;return{getClassGroupId:u=>{const d=u.split(It);return d[0]===""&&d.length!==1&&d.shift(),Dr(d,n)||Eo(u)},getConflictingClassGroupIds:(u,d)=>{const y=o[u]||[];return d&&i[u]?[...y,...i[u]]:y}}},Dr=(t,n)=>{if(t.length===0)return n.classGroupId;const o=t[0],i=n.nextPart.get(o),u=i?Dr(t.slice(1),i):void 0;if(u)return u;if(n.validators.length===0)return;const d=t.join(It);return n.validators.find(({validator:y})=>y(d))?.classGroupId},Pr=/^\[(.+)\]$/,Eo=t=>{if(Pr.test(t)){const n=Pr.exec(t)[1],o=n?.substring(0,n.indexOf(":"));if(o)return"arbitrary.."+o}},Oo=t=>{const{theme:n,classGroups:o}=t,i={nextPart:new Map,validators:[]};for(const u in o)$t(o[u],i,u,n);return i},$t=(t,n,o,i)=>{t.forEach(u=>{if(typeof u=="string"){const d=u===""?n:Lr(n,u);d.classGroupId=o;return}if(typeof u=="function"){if(So(u)){$t(u(i),n,o,i);return}n.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([d,y])=>{$t(y,Lr(n,d),o,i)})})},Lr=(t,n)=>{let o=t;return n.split(It).forEach(i=>{o.nextPart.has(i)||o.nextPart.set(i,{nextPart:new Map,validators:[]}),o=o.nextPart.get(i)}),o},So=t=>t.isThemeGetter,ko=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,o=new Map,i=new Map;const u=(d,y)=>{o.set(d,y),n++,n>t&&(n=0,i=o,o=new Map)};return{get(d){let y=o.get(d);if(y!==void 0)return y;if((y=i.get(d))!==void 0)return u(d,y),y},set(d,y){o.has(d)?o.set(d,y):u(d,y)}}},Vt="!",Ht=":",Ro=Ht.length,To=t=>{const{prefix:n,experimentalParseClassName:o}=t;let i=u=>{const d=[];let y=0,w=0,p=0,c;for(let E=0;E<u.length;E++){let k=u[E];if(y===0&&w===0){if(k===Ht){d.push(u.slice(p,E)),p=E+Ro;continue}if(k==="/"){c=E;continue}}k==="["?y++:k==="]"?y--:k==="("?w++:k===")"&&w--}const h=d.length===0?u:u.substring(p),l=xo(h),s=l!==h,m=c&&c>p?c-p:void 0;return{modifiers:d,hasImportantModifier:s,baseClassName:l,maybePostfixModifierPosition:m}};if(n){const u=n+Ht,d=i;i=y=>y.startsWith(u)?d(y.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:y,maybePostfixModifierPosition:void 0}}if(o){const u=i;i=d=>o({className:d,parseClassName:u})}return i},xo=t=>t.endsWith(Vt)?t.substring(0,t.length-1):t.startsWith(Vt)?t.substring(1):t,Ao=t=>{const n=Object.fromEntries(t.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const i=[];let u=[];return o.forEach(d=>{d[0]==="["||n[d]?(i.push(...u.sort(),d),u=[]):u.push(d)}),i.push(...u.sort()),i}},Co=t=>({cache:ko(t.cacheSize),parseClassName:To(t),sortModifiers:Ao(t),...wo(t)}),jo=/\s+/,No=(t,n)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:d}=n,y=[],w=t.trim().split(jo);let p="";for(let c=w.length-1;c>=0;c-=1){const h=w[c],{isExternal:l,modifiers:s,hasImportantModifier:m,baseClassName:E,maybePostfixModifierPosition:k}=o(h);if(l){p=h+(p.length>0?" "+p:p);continue}let j=!!k,z=i(j?E.substring(0,k):E);if(!z){if(!j){p=h+(p.length>0?" "+p:p);continue}if(z=i(E),!z){p=h+(p.length>0?" "+p:p);continue}j=!1}const X=d(s).join(":"),H=m?X+Vt:X,Y=H+z;if(y.includes(Y))continue;y.push(Y);const x=u(z,j);for(let F=0;F<x.length;++F){const B=x[F];y.push(H+B)}p=h+(p.length>0?" "+p:p)}return p};function Do(){let t=0,n,o,i="";for(;t<arguments.length;)(n=arguments[t++])&&(o=Mr(n))&&(i&&(i+=" "),i+=o);return i}const Mr=t=>{if(typeof t=="string")return t;let n,o="";for(let i=0;i<t.length;i++)t[i]&&(n=Mr(t[i]))&&(o&&(o+=" "),o+=n);return o};function Po(t,...n){let o,i,u,d=y;function y(p){const c=n.reduce((h,l)=>l(h),t());return o=Co(c),i=o.cache.get,u=o.cache.set,d=w,w(p)}function w(p){const c=i(p);if(c)return c;const h=No(p,o);return u(p,h),h}return function(){return d(Do.apply(null,arguments))}}const me=t=>{const n=o=>o[t]||[];return n.isThemeGetter=!0,n},Ir=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$r=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Lo=/^\d+\/\d+$/,Mo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Io=/\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$/,$o=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Vo=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ho=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xe=t=>Lo.test(t),Q=t=>!!t&&!Number.isNaN(Number(t)),$e=t=>!!t&&Number.isInteger(Number(t)),Ut=t=>t.endsWith("%")&&Q(t.slice(0,-1)),Ce=t=>Mo.test(t),Uo=()=>!0,zo=t=>Io.test(t)&&!$o.test(t),Vr=()=>!1,Go=t=>Vo.test(t),Fo=t=>Ho.test(t),Yo=t=>!I(t)&&!$(t),qo=t=>Qe(t,Fr,Vr),I=t=>Ir.test(t),Ue=t=>Qe(t,Yr,zo),zt=t=>Qe(t,Qo,Q),Hr=t=>Qe(t,zr,Vr),Wo=t=>Qe(t,Gr,Fo),bt=t=>Qe(t,qr,Go),$=t=>$r.test(t),st=t=>Je(t,Yr),Bo=t=>Je(t,Jo),Ur=t=>Je(t,zr),Ko=t=>Je(t,Fr),Xo=t=>Je(t,Gr),_t=t=>Je(t,qr,!0),Qe=(t,n,o)=>{const i=Ir.exec(t);return i?i[1]?n(i[1]):o(i[2]):!1},Je=(t,n,o=!1)=>{const i=$r.exec(t);return i?i[1]?n(i[1]):o:!1},zr=t=>t==="position"||t==="percentage",Gr=t=>t==="image"||t==="url",Fr=t=>t==="length"||t==="size"||t==="bg-size",Yr=t=>t==="length",Qo=t=>t==="number",Jo=t=>t==="family-name",qr=t=>t==="shadow",Zo=()=>{const t=me("color"),n=me("font"),o=me("text"),i=me("font-weight"),u=me("tracking"),d=me("leading"),y=me("breakpoint"),w=me("container"),p=me("spacing"),c=me("radius"),h=me("shadow"),l=me("inset-shadow"),s=me("text-shadow"),m=me("drop-shadow"),E=me("blur"),k=me("perspective"),j=me("aspect"),z=me("ease"),X=me("animate"),H=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...Y(),$,I],F=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],C=()=>[$,I,p],ee=()=>[Xe,"full","auto",...C()],ge=()=>[$e,"none","subgrid",$,I],V=()=>["auto",{span:["full",$e,$,I]},$e,$,I],ue=()=>[$e,"auto",$,I],ce=()=>["auto","min","max","fr",$,I],ne=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],te=()=>["auto",...C()],ie=()=>[Xe,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],M=()=>[t,$,I],ye=()=>[...Y(),Ur,Hr,{position:[$,I]}],r=()=>["no-repeat",{repeat:["","x","y","space","round"]}],f=()=>["auto","cover","contain",Ko,qo,{size:[$,I]}],b=()=>[Ut,st,Ue],v=()=>["","none","full",c,$,I],O=()=>["",Q,st,Ue],A=()=>["solid","dashed","dotted","double"],R=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[Q,Ut,Ur,Hr],T=()=>["","none",E,$,I],J=()=>["none",Q,$,I],pe=()=>["none",Q,$,I],ve=()=>[Q,$,I],he=()=>[Xe,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ce],breakpoint:[Ce],color:[Uo],container:[Ce],"drop-shadow":[Ce],ease:["in","out","in-out"],font:[Yo],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ce],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ce],shadow:[Ce],spacing:["px",Q],text:[Ce],"text-shadow":[Ce],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xe,I,$,j]}],container:["container"],columns:[{columns:[Q,I,$,w]}],"break-after":[{"break-after":H()}],"break-before":[{"break-before":H()}],"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:x()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ee()}],"inset-x":[{"inset-x":ee()}],"inset-y":[{"inset-y":ee()}],start:[{start:ee()}],end:[{end:ee()}],top:[{top:ee()}],right:[{right:ee()}],bottom:[{bottom:ee()}],left:[{left:ee()}],visibility:["visible","invisible","collapse"],z:[{z:[$e,"auto",$,I]}],basis:[{basis:[Xe,"full","auto",w,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Q,Xe,"auto","initial","none",I]}],grow:[{grow:["",Q,$,I]}],shrink:[{shrink:["",Q,$,I]}],order:[{order:[$e,"first","last","none",$,I]}],"grid-cols":[{"grid-cols":ge()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":ue()}],"col-end":[{"col-end":ue()}],"grid-rows":[{"grid-rows":ge()}],"row-start-end":[{row:V()}],"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":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...ne(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...ne()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":ne()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],w:[{w:[w,"screen",...ie()]}],"min-w":[{"min-w":[w,"screen","none",...ie()]}],"max-w":[{"max-w":[w,"screen","none","prose",{screen:[y]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",o,st,Ue]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,$,zt]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ut,I]}],"font-family":[{font:[Bo,I,n]}],"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:[u,$,I]}],"line-clamp":[{"line-clamp":[Q,"none",$,zt]}],leading:[{leading:[d,...C()]}],"list-image":[{"list-image":["none",$,I]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",$,I]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:M()}],"text-color":[{text:M()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...A(),"wavy"]}],"text-decoration-thickness":[{decoration:[Q,"from-font","auto",$,Ue]}],"text-decoration-color":[{decoration:M()}],"underline-offset":[{"underline-offset":[Q,"auto",$,I]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",$,I]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",$,I]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:r()}],"bg-size":[{bg:f()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},$e,$,I],radial:["",$,I],conic:[$e,$,I]},Xo,Wo]}],"bg-color":[{bg:M()}],"gradient-from-pos":[{from:b()}],"gradient-via-pos":[{via:b()}],"gradient-to-pos":[{to:b()}],"gradient-from":[{from:M()}],"gradient-via":[{via:M()}],"gradient-to":[{to:M()}],rounded:[{rounded:v()}],"rounded-s":[{"rounded-s":v()}],"rounded-e":[{"rounded-e":v()}],"rounded-t":[{"rounded-t":v()}],"rounded-r":[{"rounded-r":v()}],"rounded-b":[{"rounded-b":v()}],"rounded-l":[{"rounded-l":v()}],"rounded-ss":[{"rounded-ss":v()}],"rounded-se":[{"rounded-se":v()}],"rounded-ee":[{"rounded-ee":v()}],"rounded-es":[{"rounded-es":v()}],"rounded-tl":[{"rounded-tl":v()}],"rounded-tr":[{"rounded-tr":v()}],"rounded-br":[{"rounded-br":v()}],"rounded-bl":[{"rounded-bl":v()}],"border-w":[{border:O()}],"border-w-x":[{"border-x":O()}],"border-w-y":[{"border-y":O()}],"border-w-s":[{"border-s":O()}],"border-w-e":[{"border-e":O()}],"border-w-t":[{"border-t":O()}],"border-w-r":[{"border-r":O()}],"border-w-b":[{"border-b":O()}],"border-w-l":[{"border-l":O()}],"divide-x":[{"divide-x":O()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":O()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...A(),"hidden","none"]}],"divide-style":[{divide:[...A(),"hidden","none"]}],"border-color":[{border:M()}],"border-color-x":[{"border-x":M()}],"border-color-y":[{"border-y":M()}],"border-color-s":[{"border-s":M()}],"border-color-e":[{"border-e":M()}],"border-color-t":[{"border-t":M()}],"border-color-r":[{"border-r":M()}],"border-color-b":[{"border-b":M()}],"border-color-l":[{"border-l":M()}],"divide-color":[{divide:M()}],"outline-style":[{outline:[...A(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Q,$,I]}],"outline-w":[{outline:["",Q,st,Ue]}],"outline-color":[{outline:M()}],shadow:[{shadow:["","none",h,_t,bt]}],"shadow-color":[{shadow:M()}],"inset-shadow":[{"inset-shadow":["none",l,_t,bt]}],"inset-shadow-color":[{"inset-shadow":M()}],"ring-w":[{ring:O()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:M()}],"ring-offset-w":[{"ring-offset":[Q,Ue]}],"ring-offset-color":[{"ring-offset":M()}],"inset-ring-w":[{"inset-ring":O()}],"inset-ring-color":[{"inset-ring":M()}],"text-shadow":[{"text-shadow":["none",s,_t,bt]}],"text-shadow-color":[{"text-shadow":M()}],opacity:[{opacity:[Q,$,I]}],"mix-blend":[{"mix-blend":[...R(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":R()}],"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":[Q]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":M()}],"mask-image-linear-to-color":[{"mask-linear-to":M()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":M()}],"mask-image-t-to-color":[{"mask-t-to":M()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":M()}],"mask-image-r-to-color":[{"mask-r-to":M()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":M()}],"mask-image-b-to-color":[{"mask-b-to":M()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":M()}],"mask-image-l-to-color":[{"mask-l-to":M()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":M()}],"mask-image-x-to-color":[{"mask-x-to":M()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":M()}],"mask-image-y-to-color":[{"mask-y-to":M()}],"mask-image-radial":[{"mask-radial":[$,I]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":M()}],"mask-image-radial-to-color":[{"mask-radial-to":M()}],"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":Y()}],"mask-image-conic-pos":[{"mask-conic":[Q]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":M()}],"mask-image-conic-to-color":[{"mask-conic-to":M()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:r()}],"mask-size":[{mask:f()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",$,I]}],filter:[{filter:["","none",$,I]}],blur:[{blur:T()}],brightness:[{brightness:[Q,$,I]}],contrast:[{contrast:[Q,$,I]}],"drop-shadow":[{"drop-shadow":["","none",m,_t,bt]}],"drop-shadow-color":[{"drop-shadow":M()}],grayscale:[{grayscale:["",Q,$,I]}],"hue-rotate":[{"hue-rotate":[Q,$,I]}],invert:[{invert:["",Q,$,I]}],saturate:[{saturate:[Q,$,I]}],sepia:[{sepia:["",Q,$,I]}],"backdrop-filter":[{"backdrop-filter":["","none",$,I]}],"backdrop-blur":[{"backdrop-blur":T()}],"backdrop-brightness":[{"backdrop-brightness":[Q,$,I]}],"backdrop-contrast":[{"backdrop-contrast":[Q,$,I]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Q,$,I]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Q,$,I]}],"backdrop-invert":[{"backdrop-invert":["",Q,$,I]}],"backdrop-opacity":[{"backdrop-opacity":[Q,$,I]}],"backdrop-saturate":[{"backdrop-saturate":[Q,$,I]}],"backdrop-sepia":[{"backdrop-sepia":["",Q,$,I]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",$,I]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Q,"initial",$,I]}],ease:[{ease:["linear","initial",z,$,I]}],delay:[{delay:[Q,$,I]}],animate:[{animate:["none",X,$,I]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,$,I]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:J()}],"rotate-x":[{"rotate-x":J()}],"rotate-y":[{"rotate-y":J()}],"rotate-z":[{"rotate-z":J()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[$,I,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:he()}],"translate-x":[{"translate-x":he()}],"translate-y":[{"translate-y":he()}],"translate-z":[{"translate-z":he()}],"translate-none":["translate-none"],accent:[{accent:M()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:M()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",$,I]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",$,I]}],fill:[{fill:["none",...M()]}],"stroke-w":[{stroke:[Q,st,Ue,zt]}],stroke:[{stroke:["none",...M()]}],"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"]}},es=Po(Zo);function je(...t){return es(Nr(t))}const Wr=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,Br=Nr,ts=((t,n)=>o=>{var i;if(n?.variants==null)return Br(t,o?.class,o?.className);const{variants:u,defaultVariants:d}=n,y=Object.keys(u).map(c=>{const h=o?.[c],l=d?.[c];if(h===null)return null;const s=Wr(h)||Wr(l);return u[c][s]}),w=o&&Object.entries(o).reduce((c,h)=>{let[l,s]=h;return s===void 0||(c[l]=s),c},{}),p=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((c,h)=>{let{class:l,className:s,...m}=h;return Object.entries(m).every(E=>{let[k,j]=E;return Array.isArray(j)?j.includes({...d,...w}[k]):{...d,...w}[k]===j})?[...c,l,s]:c},[]);return Br(t,y,p,o?.class,o?.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 rs({className:t,variant:n,size:o,asChild:i=!1,...u}){const d=i?Er:"button";return fe.jsx(d,{"data-slot":"button",className:je(ts({variant:n,size:o,className:t})),...u})}function ns({className:t,...n}){return fe.jsx("div",{"data-slot":"card",className:je("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...n})}function os({className:t,...n}){return fe.jsx("div",{"data-slot":"card-header",className:je("@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",t),...n})}function ss({className:t,...n}){return fe.jsx("div",{"data-slot":"card-title",className:je("leading-none font-semibold",t),...n})}function as({className:t,...n}){return fe.jsx("div",{"data-slot":"card-description",className:je("text-muted-foreground text-sm",t),...n})}function is({className:t,...n}){return fe.jsx("div",{"data-slot":"card-content",className:je("px-6",t),...n})}var us="Label",Kr=K.forwardRef((t,n)=>fe.jsx(vt.label,{...t,ref:n,onMouseDown:o=>{o.target.closest("button, input, select, textarea")||(t.onMouseDown?.(o),!o.defaultPrevented&&o.detail>1&&o.preventDefault())}}));Kr.displayName=us;var cs=Kr,ls=t=>t.type==="checkbox",at=t=>t instanceof Date,Gt=t=>t==null;const Xr=t=>typeof t=="object";var ze=t=>!Gt(t)&&!Array.isArray(t)&&Xr(t)&&!at(t),fs=t=>ze(t)&&t.target?ls(t.target)?t.target.checked:t.target.value:t,ds=t=>t.substring(0,t.search(/\.\d+(\.|$)/))||t,ps=(t,n)=>t.has(ds(n)),ms=t=>{const n=t.constructor&&t.constructor.prototype;return ze(n)&&n.hasOwnProperty("isPrototypeOf")},ys=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Qr(t){let n;const o=Array.isArray(t),i=typeof FileList<"u"?t instanceof FileList:!1;if(t instanceof Date)n=new Date(t);else if(!(ys&&(t instanceof Blob||i))&&(o||ze(t)))if(n=o?[]:Object.create(Object.getPrototypeOf(t)),!o&&!ms(t))n=t;else for(const u in t)t.hasOwnProperty(u)&&(n[u]=Qr(t[u]));else return t;return n}var Jr=t=>/^\w*$/.test(t),Ft=t=>t===void 0,gs=t=>Array.isArray(t)?t.filter(Boolean):[],Zr=t=>gs(t.replace(/["|']|\]/g,"").split(/\.|\[/)),ke=(t,n,o)=>{if(!n||!ze(t))return o;const i=(Jr(n)?[n]:Zr(n)).reduce((u,d)=>Gt(u)?u:u[d],t);return Ft(i)||i===t?Ft(t[n])?o:t[n]:i},Yt=t=>typeof t=="boolean",en=(t,n,o)=>{let i=-1;const u=Jr(n)?[n]:Zr(n),d=u.length,y=d-1;for(;++i<d;){const w=u[i];let p=o;if(i!==y){const c=t[w];p=ze(c)||Array.isArray(c)?c:isNaN(+u[i+1])?{}:[]}if(w==="__proto__"||w==="constructor"||w==="prototype")return;t[w]=p,t=t[w]}};const tn={BLUR:"blur",CHANGE:"change"},rn={all:"all"},qt=oe.createContext(null);qt.displayName="HookFormContext";const wt=()=>oe.useContext(qt),hs=t=>{const{children:n,...o}=t;return oe.createElement(qt.Provider,{value:o},n)};var vs=(t,n,o,i=!0)=>{const u={defaultValues:n._defaultValues};for(const d in t)Object.defineProperty(u,d,{get:()=>{const y=d;return n._proxyFormState[y]!==rn.all&&(n._proxyFormState[y]=!i||rn.all),o&&(o[y]=!0),t[y]}});return u};const nn=typeof window<"u"?oe.useLayoutEffect:oe.useEffect;function on(t){const n=wt(),{control:o=n.control,disabled:i,name:u,exact:d}=t||{},[y,w]=oe.useState(o._formState),p=oe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return nn(()=>o._subscribe({name:u,formState:p.current,exact:d,callback:c=>{!i&&w({...o._formState,...c})}}),[u,i,d]),oe.useEffect(()=>{p.current.isValid&&o._setValid(!0)},[o]),oe.useMemo(()=>vs(y,o,p.current,!1),[y,o])}var bs=t=>typeof t=="string",_s=(t,n,o,i,u)=>bs(t)?ke(o,t,u):Array.isArray(t)?t.map(d=>ke(o,d)):o,sn=t=>Gt(t)||!Xr(t);function an(t,n,o=new WeakSet){if(sn(t)||sn(n))return t===n;if(at(t)&&at(n))return t.getTime()===n.getTime();const i=Object.keys(t),u=Object.keys(n);if(i.length!==u.length)return!1;if(o.has(t)||o.has(n))return!0;o.add(t),o.add(n);for(const d of i){const y=t[d];if(!u.includes(d))return!1;if(d!=="ref"){const w=n[d];if(at(y)&&at(w)||ze(y)&&ze(w)||Array.isArray(y)&&Array.isArray(w)?!an(y,w,o):y!==w)return!1}}return!0}function ws(t){const n=wt(),{control:o=n.control,name:i,defaultValue:u,disabled:d,exact:y,compute:w}=t||{},p=oe.useRef(u),c=oe.useRef(w),h=oe.useRef(void 0);c.current=w;const l=oe.useMemo(()=>o._getWatch(i,p.current),[o,i]),[s,m]=oe.useState(c.current?c.current(l):l);return nn(()=>o._subscribe({name:i,formState:{values:!0},exact:y,callback:E=>{if(!d){const k=_s(i,o._names,E.values||o._formValues,!1,p.current);if(c.current){const j=c.current(k);an(j,h.current)||(m(j),h.current=j)}else m(k)}}}),[o,d,i,y]),oe.useEffect(()=>o._removeUnmounted()),s}function Es(t){const n=wt(),{name:o,disabled:i,control:u=n.control,shouldUnregister:d,defaultValue:y}=t,w=ps(u._names.array,o),p=oe.useMemo(()=>ke(u._formValues,o,ke(u._defaultValues,o,y)),[u,o,y]),c=ws({control:u,name:o,defaultValue:p,exact:!0}),h=on({control:u,name:o,exact:!0}),l=oe.useRef(t),s=oe.useRef(void 0),m=oe.useRef(u.register(o,{...t.rules,value:c,...Yt(t.disabled)?{disabled:t.disabled}:{}}));l.current=t;const E=oe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ke(h.errors,o)},isDirty:{enumerable:!0,get:()=>!!ke(h.dirtyFields,o)},isTouched:{enumerable:!0,get:()=>!!ke(h.touchedFields,o)},isValidating:{enumerable:!0,get:()=>!!ke(h.validatingFields,o)},error:{enumerable:!0,get:()=>ke(h.errors,o)}}),[h,o]),k=oe.useCallback(H=>m.current.onChange({target:{value:fs(H),name:o},type:tn.CHANGE}),[o]),j=oe.useCallback(()=>m.current.onBlur({target:{value:ke(u._formValues,o),name:o},type:tn.BLUR}),[o,u._formValues]),z=oe.useCallback(H=>{const Y=ke(u._fields,o);Y&&H&&(Y._f.ref={focus:()=>H.focus&&H.focus(),select:()=>H.select&&H.select(),setCustomValidity:x=>H.setCustomValidity(x),reportValidity:()=>H.reportValidity()})},[u._fields,o]),X=oe.useMemo(()=>({name:o,value:c,...Yt(i)||h.disabled?{disabled:h.disabled||i}:{},onChange:k,onBlur:j,ref:z}),[o,i,h.disabled,k,j,z,c]);return oe.useEffect(()=>{const H=u._options.shouldUnregister||d,Y=s.current;Y&&Y!==o&&!w&&u.unregister(Y),u.register(o,{...l.current.rules,...Yt(l.current.disabled)?{disabled:l.current.disabled}:{}});const x=(F,B)=>{const C=ke(u._fields,F);C&&C._f&&(C._f.mount=B)};if(x(o,!0),H){const F=Qr(ke(u._options.defaultValues,o));en(u._defaultValues,o,F),Ft(ke(u._formValues,o))&&en(u._formValues,o,F)}return!w&&u.register(o),s.current=o,()=>{(w?H&&!u._state.action:H)?u.unregister(o):x(o,!1)}},[o,u,w,d]),oe.useEffect(()=>{u._setDisabledField({disabled:i,name:o})},[i,o,u]),oe.useMemo(()=>({field:X,formState:h,fieldState:E}),[X,h,E])}const Os=t=>t.render(Es(t));function un({className:t,...n}){return fe.jsx(cs,{"data-slot":"label",className:je("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",t),...n})}const Ss=hs,cn=K.createContext({}),ln=({...t})=>fe.jsx(cn.Provider,{value:{name:t.name},children:fe.jsx(Os,{...t})}),ks=()=>{const t=K.useContext(cn),n=K.useContext(fn),{getFieldState:o}=wt(),i=on({name:t.name}),u=o(t.name,i);if(!t)throw new Error("useFormField should be used within <FormField>");const{id:d}=n;return{id:d,name:t.name,formItemId:`${d}-form-item`,formDescriptionId:`${d}-form-item-description`,formMessageId:`${d}-form-item-message`,...u}},fn=K.createContext({});function dn({className:t,...n}){const o=K.useId();return fe.jsx(fn.Provider,{value:{id:o},children:fe.jsx("div",{"data-slot":"form-item",className:je("grid gap-2",t),...n})})}function pn({...t}){const{error:n,formItemId:o,formDescriptionId:i,formMessageId:u}=ks();return fe.jsx(Er,{"data-slot":"form-control",id:o,"aria-describedby":n?`${i} ${u}`:`${i}`,"aria-invalid":!!n,...t})}function mn({className:t,type:n,...o}){return fe.jsx("input",{type:n,"data-slot":"input",className:je("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",t),...o})}const Ze=new WeakMap,Et=new WeakMap,Ot={current:[]};let Wt=!1;const St=new Set,yn=new Map;function gn(t){const n=Array.from(t).sort((o,i)=>o instanceof Ge&&o.options.deps.includes(i)?1:i instanceof Ge&&i.options.deps.includes(o)?-1:0);for(const o of n){if(Ot.current.includes(o))continue;Ot.current.push(o),o.recompute();const i=Et.get(o);if(i)for(const u of i){const d=Ze.get(u);d&&gn(d)}}}function Rs(t){t.listeners.forEach(n=>n({prevVal:t.prevState,currentVal:t.state}))}function Ts(t){t.listeners.forEach(n=>n({prevVal:t.prevState,currentVal:t.state}))}function xs(t){if(St.add(t),!Wt)try{for(Wt=!0;St.size>0;){const n=Array.from(St);St.clear();for(const o of n){const i=yn.get(o)??o.prevState;o.prevState=i,Rs(o)}for(const o of n){const i=Ze.get(o);i&&(Ot.current.push(o),gn(i))}for(const o of n){const i=Ze.get(o);if(i)for(const u of i)Ts(u)}}}finally{Wt=!1,Ot.current=[],yn.clear()}}function As(t){return typeof t=="function"}class Bt{constructor(n,o){this.listeners=new Set,this.subscribe=i=>{var u,d;this.listeners.add(i);const y=(d=(u=this.options)==null?void 0:u.onSubscribe)==null?void 0:d.call(u,i,this);return()=>{this.listeners.delete(i),y?.()}},this.prevState=n,this.state=n,this.options=o}setState(n){var o,i,u;this.prevState=this.state,(o=this.options)!=null&&o.updateFn?this.state=this.options.updateFn(this.prevState)(n):As(n)?this.state=n(this.prevState):this.state=n,(u=(i=this.options)==null?void 0:i.onUpdate)==null||u.call(i),xs(this)}}class Ge{constructor(n){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const o=[],i=[];for(const u of this.options.deps)o.push(u.prevState),i.push(u.state);return this.lastSeenDepValues=i,{prevDepVals:o,currDepVals:i,prevVal:this.prevState??void 0}},this.recompute=()=>{var o,i;this.prevState=this.state;const{prevDepVals:u,currDepVals:d,prevVal:y}=this.getDepVals();this.state=this.options.fn({prevDepVals:u,currDepVals:d,prevVal:y}),(i=(o=this.options).onUpdate)==null||i.call(o)},this.checkIfRecalculationNeededDeeply=()=>{for(const d of this.options.deps)d instanceof Ge&&d.checkIfRecalculationNeededDeeply();let o=!1;const i=this.lastSeenDepValues,{currDepVals:u}=this.getDepVals();for(let d=0;d<u.length;d++)if(u[d]!==i[d]){o=!0;break}o&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const o of this._subscriptions)o()}),this.subscribe=o=>{var i,u;this.listeners.add(o);const d=(u=(i=this.options).onSubscribe)==null?void 0:u.call(i,o,this);return()=>{this.listeners.delete(o),d?.()}},this.options=n,this.state=n.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(n=this.options.deps){for(const o of n)if(o instanceof Ge)o.registerOnGraph(),this.registerOnGraph(o.options.deps);else if(o instanceof Bt){let i=Ze.get(o);i||(i=new Set,Ze.set(o,i)),i.add(this);let u=Et.get(this);u||(u=new Set,Et.set(this,u)),u.add(o)}}unregisterFromGraph(n=this.options.deps){for(const o of n)if(o instanceof Ge)this.unregisterFromGraph(o.options.deps);else if(o instanceof Bt){const i=Ze.get(o);i&&i.delete(this);const u=Et.get(this);u&&u.delete(o)}}}function Cs(t){return typeof t=="function"}function hn(t,n){return Cs(t)?t(n):t}const js=Object.prototype.hasOwnProperty;function vn(t,n){if(t===n)return t;const o=n,i=wn(t)&&wn(o);if(!i&&!(kt(t)&&kt(o)))return o;const u=i?t:bn(t);if(!u)return o;const d=i?o:bn(o);if(!d)return o;const y=u.length,w=d.length,p=i?new Array(w):{};let c=0;for(let h=0;h<w;h++){const l=i?h:d[h],s=t[l],m=o[l];if(s===m){p[l]=s,(i?h<y:js.call(t,l))&&c++;continue}if(s===null||m===null||typeof s!="object"||typeof m!="object"){p[l]=m;continue}const E=vn(s,m);p[l]=E,E===s&&c++}return y===w&&c===y?t:p}function bn(t){const n=[],o=Object.getOwnPropertyNames(t);for(const u of o){if(!Object.prototype.propertyIsEnumerable.call(t,u))return!1;n.push(u)}const i=Object.getOwnPropertySymbols(t);for(const u of i){if(!Object.prototype.propertyIsEnumerable.call(t,u))return!1;n.push(u)}return n}function kt(t){if(!_n(t))return!1;const n=t.constructor;if(typeof n>"u")return!0;const o=n.prototype;return!(!_n(o)||!o.hasOwnProperty("isPrototypeOf"))}function _n(t){return Object.prototype.toString.call(t)==="[object Object]"}function wn(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Rt(t,n,o){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;for(let i=0,u=t.length;i<u;i++)if(!Rt(t[i],n[i],o))return!1;return!0}if(kt(t)&&kt(n)){const i=o?.ignoreUndefined??!0;if(o?.partial){for(const y in n)if((!i||n[y]!==void 0)&&!Rt(t[y],n[y],o))return!1;return!0}let u=0;if(!i)u=Object.keys(t).length;else for(const y in t)t[y]!==void 0&&u++;let d=0;for(const y in n)if((!i||n[y]!==void 0)&&(d++,d>u||!Rt(t[y],n[y],o)))return!1;return u===d}return!1}function Tt(t,n){return t?.endsWith("/")&&t!=="/"&&t!==`${n}/`?t.slice(0,-1):t}function Ns(t,n,o){return Tt(t,o)===Tt(n,o)}const Ds="Error preloading route! ☝️";var de=Ie(),Ps=process.env.NODE_ENV==="production";function Ls(t,n){if(!Ps){if(t)return;var o="Warning: "+n;typeof console<"u"&&console.warn(o);try{throw Error(o)}catch{}}}var xt={exports:{}},Kt={},At={exports:{}},Xt={};/**
|
|
136
136
|
* @license React
|
|
137
137
|
* use-sync-external-store-shim.production.js
|
|
138
138
|
*
|
|
@@ -140,7 +140,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
140
140
|
*
|
|
141
141
|
* This source code is licensed under the MIT license found in the
|
|
142
142
|
* LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/var En;function
|
|
143
|
+
*/var En;function Ms(){if(En)return Xt;En=1;var t=Ie();function n(l,s){return l===s&&(l!==0||1/l===1/s)||l!==l&&s!==s}var o=typeof Object.is=="function"?Object.is:n,i=t.useState,u=t.useEffect,d=t.useLayoutEffect,y=t.useDebugValue;function w(l,s){var m=s(),E=i({inst:{value:m,getSnapshot:s}}),k=E[0].inst,j=E[1];return d(function(){k.value=m,k.getSnapshot=s,p(k)&&j({inst:k})},[l,m,s]),u(function(){return p(k)&&j({inst:k}),l(function(){p(k)&&j({inst:k})})},[l]),y(m),m}function p(l){var s=l.getSnapshot;l=l.value;try{var m=s();return!o(l,m)}catch{return!0}}function c(l,s){return s()}var h=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:w;return Xt.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:h,Xt}var Qt={};/**
|
|
144
144
|
* @license React
|
|
145
145
|
* use-sync-external-store-shim.development.js
|
|
146
146
|
*
|
|
@@ -148,7 +148,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
148
148
|
*
|
|
149
149
|
* This source code is licensed under the MIT license found in the
|
|
150
150
|
* LICENSE file in the root directory of this source tree.
|
|
151
|
-
*/var On;function
|
|
151
|
+
*/var On;function Is(){return On||(On=1,process.env.NODE_ENV!=="production"&&(function(){function t(m,E){return m===E&&(m!==0||1/m===1/E)||m!==m&&E!==E}function n(m,E){h||u.startTransition===void 0||(h=!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 k=E();if(!l){var j=E();d(k,j)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),l=!0)}j=y({inst:{value:k,getSnapshot:E}});var z=j[0].inst,X=j[1];return p(function(){z.value=k,z.getSnapshot=E,o(z)&&X({inst:z})},[m,k,E]),w(function(){return o(z)&&X({inst:z}),m(function(){o(z)&&X({inst:z})})},[m]),c(k),k}function o(m){var E=m.getSnapshot;m=m.value;try{var k=E();return!d(m,k)}catch{return!0}}function i(m,E){return E()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=Ie(),d=typeof Object.is=="function"?Object.is:t,y=u.useState,w=u.useEffect,p=u.useLayoutEffect,c=u.useDebugValue,h=!1,l=!1,s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?i:n;Qt.useSyncExternalStore=u.useSyncExternalStore!==void 0?u.useSyncExternalStore:s,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Qt}var Sn;function kn(){return Sn||(Sn=1,process.env.NODE_ENV==="production"?At.exports=Ms():At.exports=Is()),At.exports}/**
|
|
152
152
|
* @license React
|
|
153
153
|
* use-sync-external-store-shim/with-selector.production.js
|
|
154
154
|
*
|
|
@@ -156,7 +156,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
156
156
|
*
|
|
157
157
|
* This source code is licensed under the MIT license found in the
|
|
158
158
|
* LICENSE file in the root directory of this source tree.
|
|
159
|
-
*/var Rn;function
|
|
159
|
+
*/var Rn;function $s(){if(Rn)return Kt;Rn=1;var t=Ie(),n=kn();function o(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var i=typeof Object.is=="function"?Object.is:o,u=n.useSyncExternalStore,d=t.useRef,y=t.useEffect,w=t.useMemo,p=t.useDebugValue;return Kt.useSyncExternalStoreWithSelector=function(c,h,l,s,m){var E=d(null);if(E.current===null){var k={hasValue:!1,value:null};E.current=k}else k=E.current;E=w(function(){function z(F){if(!X){if(X=!0,H=F,F=s(F),m!==void 0&&k.hasValue){var B=k.value;if(m(B,F))return Y=B}return Y=F}if(B=Y,i(H,F))return B;var C=s(F);return m!==void 0&&m(B,C)?(H=F,B):(H=F,Y=C)}var X=!1,H,Y,x=l===void 0?null:l;return[function(){return z(h())},x===null?void 0:function(){return z(x())}]},[h,l,s,m]);var j=u(c,E[0],E[1]);return y(function(){k.hasValue=!0,k.value=j},[j]),p(j),j},Kt}var Jt={};/**
|
|
160
160
|
* @license React
|
|
161
161
|
* use-sync-external-store-shim/with-selector.development.js
|
|
162
162
|
*
|
|
@@ -164,7 +164,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
164
164
|
*
|
|
165
165
|
* This source code is licensed under the MIT license found in the
|
|
166
166
|
* LICENSE file in the root directory of this source tree.
|
|
167
|
-
*/var Tn;function
|
|
167
|
+
*/var Tn;function Vs(){return Tn||(Tn=1,process.env.NODE_ENV!=="production"&&(function(){function t(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Ie(),o=kn(),i=typeof Object.is=="function"?Object.is:t,u=o.useSyncExternalStore,d=n.useRef,y=n.useEffect,w=n.useMemo,p=n.useDebugValue;Jt.useSyncExternalStoreWithSelector=function(c,h,l,s,m){var E=d(null);if(E.current===null){var k={hasValue:!1,value:null};E.current=k}else k=E.current;E=w(function(){function z(F){if(!X){if(X=!0,H=F,F=s(F),m!==void 0&&k.hasValue){var B=k.value;if(m(B,F))return Y=B}return Y=F}if(B=Y,i(H,F))return B;var C=s(F);return m!==void 0&&m(B,C)?(H=F,B):(H=F,Y=C)}var X=!1,H,Y,x=l===void 0?null:l;return[function(){return z(h())},x===null?void 0:function(){return z(x())}]},[h,l,s,m]);var j=u(c,E[0],E[1]);return y(function(){k.hasValue=!0,k.value=j},[j]),p(j),j},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Jt}var xn;function Hs(){return xn||(xn=1,process.env.NODE_ENV==="production"?xt.exports=$s():xt.exports=Vs()),xt.exports}var Us=Hs();function zs(t,n=o=>o){return Us.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,n,Gs)}function Gs(t,n){if(Object.is(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(const[i,u]of t)if(!n.has(i)||!Object.is(u,n.get(i)))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(const i of t)if(!n.has(i))return!1;return!0}if(t instanceof Date&&n instanceof Date)return t.getTime()===n.getTime();const o=An(t);if(o.length!==An(n).length)return!1;for(let i=0;i<o.length;i++)if(!Object.prototype.hasOwnProperty.call(n,o[i])||!Object.is(t[o[i]],n[o[i]]))return!1;return!0}function An(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const Zt=de.createContext(null);function Fs(){return typeof document>"u"?Zt:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Zt,Zt)}function Cn(t){const n=de.useContext(Fs());return Ls(!((t?.warn??!0)&&!n),"useRouter must be used inside a <RouterProvider> component!"),n}function jn(t){const n=Cn({warn:t?.router===void 0}),o=t?.router||n,i=de.useRef(void 0);return zs(o.__store,u=>{if(t?.select){if(t.structuralSharing??o.options.defaultStructuralSharing){const d=vn(i.current,t.select(u));return i.current=d,d}return t.select(u)}return u})}var Ct={exports:{}},we={};/**
|
|
168
168
|
* @license React
|
|
169
169
|
* react-dom.production.js
|
|
170
170
|
*
|
|
@@ -172,7 +172,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
172
172
|
*
|
|
173
173
|
* This source code is licensed under the MIT license found in the
|
|
174
174
|
* LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/var Nn;function
|
|
175
|
+
*/var Nn;function Ys(){if(Nn)return we;Nn=1;var t=Ie();function n(p){var c="https://react.dev/errors/"+p;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)c+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+p+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(n(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(p,c,h){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:l==null?null:""+l,children:p,containerInfo:c,implementation:h}}var y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function w(p,c){if(p==="font")return"";if(typeof c=="string")return c==="use-credentials"?c:""}return we.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,we.createPortal=function(p,c){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)throw Error(n(299));return d(p,c,null,h)},we.flushSync=function(p){var c=y.T,h=i.p;try{if(y.T=null,i.p=2,p)return p()}finally{y.T=c,i.p=h,i.d.f()}},we.preconnect=function(p,c){typeof p=="string"&&(c?(c=c.crossOrigin,c=typeof c=="string"?c==="use-credentials"?c:"":void 0):c=null,i.d.C(p,c))},we.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},we.preinit=function(p,c){if(typeof p=="string"&&c&&typeof c.as=="string"){var h=c.as,l=w(h,c.crossOrigin),s=typeof c.integrity=="string"?c.integrity:void 0,m=typeof c.fetchPriority=="string"?c.fetchPriority:void 0;h==="style"?i.d.S(p,typeof c.precedence=="string"?c.precedence:void 0,{crossOrigin:l,integrity:s,fetchPriority:m}):h==="script"&&i.d.X(p,{crossOrigin:l,integrity:s,fetchPriority:m,nonce:typeof c.nonce=="string"?c.nonce:void 0})}},we.preinitModule=function(p,c){if(typeof p=="string")if(typeof c=="object"&&c!==null){if(c.as==null||c.as==="script"){var h=w(c.as,c.crossOrigin);i.d.M(p,{crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0})}}else c==null&&i.d.M(p)},we.preload=function(p,c){if(typeof p=="string"&&typeof c=="object"&&c!==null&&typeof c.as=="string"){var h=c.as,l=w(h,c.crossOrigin);i.d.L(p,h,{crossOrigin:l,integrity:typeof c.integrity=="string"?c.integrity:void 0,nonce:typeof c.nonce=="string"?c.nonce:void 0,type:typeof c.type=="string"?c.type:void 0,fetchPriority:typeof c.fetchPriority=="string"?c.fetchPriority:void 0,referrerPolicy:typeof c.referrerPolicy=="string"?c.referrerPolicy:void 0,imageSrcSet:typeof c.imageSrcSet=="string"?c.imageSrcSet:void 0,imageSizes:typeof c.imageSizes=="string"?c.imageSizes:void 0,media:typeof c.media=="string"?c.media:void 0})}},we.preloadModule=function(p,c){if(typeof p=="string")if(c){var h=w(c.as,c.crossOrigin);i.d.m(p,{as:typeof c.as=="string"&&c.as!=="script"?c.as:void 0,crossOrigin:h,integrity:typeof c.integrity=="string"?c.integrity:void 0})}else i.d.m(p)},we.requestFormReset=function(p){i.d.r(p)},we.unstable_batchedUpdates=function(p,c){return p(c)},we.useFormState=function(p,c,h){return y.H.useFormState(p,c,h)},we.useFormStatus=function(){return y.H.useHostTransitionStatus()},we.version="19.1.1",we}var Ee={};/**
|
|
176
176
|
* @license React
|
|
177
177
|
* react-dom.development.js
|
|
178
178
|
*
|
|
@@ -180,38 +180,33 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
180
180
|
*
|
|
181
181
|
* This source code is licensed under the MIT license found in the
|
|
182
182
|
* LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/var Dn;function
|
|
183
|
+
*/var Dn;function qs(){return Dn||(Dn=1,process.env.NODE_ENV!=="production"&&(function(){function t(){}function n(l){return""+l}function o(l,s,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(E);var k=!1}catch{k=!0}return k&&(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&&E[Symbol.toStringTag]||E.constructor.name||"Object"),n(E)),{$$typeof:c,key:E==null?null:""+E,children:l,containerInfo:s,implementation:m}}function i(l,s){if(l==="font")return"";if(typeof s=="string")return s==="use-credentials"?s:""}function u(l){return l===null?"`null`":l===void 0?"`undefined`":l===""?"an empty string":'something with type "'+typeof l+'"'}function d(l){return l===null?"`null`":l===void 0?"`undefined`":l===""?"an empty string":typeof l=="string"?JSON.stringify(l):typeof l=="number"?"`"+l+"`":'something with type "'+typeof l+'"'}function y(){var l=h.H;return l===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:
|
|
184
184
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
185
185
|
2. You might be breaking the Rules of Hooks
|
|
186
186
|
3. You might have more than one copy of React in the same app
|
|
187
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var w=Ie(),p={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),h=w.__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"),Ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Ee.createPortal=function(l,s){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return o(l,s,null,m)},Ee.flushSync=function(l){var s=h.T,m=p.p;try{if(h.T=null,p.p=2,l)return l()}finally{h.T=s,p.p=m,p.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.")}},Ee.preconnect=function(l,s){typeof l=="string"&&l?s!=null&&typeof s!="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.",d(s)):s!=null&&typeof s.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.",u(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,p.d.C(l,s))},Ee.prefetchDNS=function(l){if(typeof l!="string"||!l)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.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`.",d(s)):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`.",d(s))}typeof l=="string"&&p.d.D(l)},Ee.preinit=function(l,s){if(typeof l=="string"&&l?s==null||typeof s!="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.",d(s)):s.as!=="style"&&s.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".',d(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&s&&typeof s.as=="string"){var m=s.as,E=a(m,s.crossOrigin),k=typeof s.integrity=="string"?s.integrity:void 0,j=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;m==="style"?p.d.S(l,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:E,integrity:k,fetchPriority:j}):m==="script"&&p.d.X(l,{crossOrigin:E,integrity:k,fetchPriority:j,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},Ee.preinitModule=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&s.as!=="script"&&(m+=" The `as` option encountered was "+d(s.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=s&&typeof s.as=="string"?s.as:"script",m){case"script":break;default:m=d(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,l)}typeof l=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(m=a(s.as,s.crossOrigin),p.d.M(l,{crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&p.d.M(l))},Ee.preload=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s==null||typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":typeof s.as=="string"&&s.as||(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof l=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){m=s.as;var E=a(m,s.crossOrigin);p.d.L(l,m,{crossOrigin:E,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},Ee.preloadModule=function(l,s){var m="";typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&typeof s.as!="string"&&(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof l=="string"&&(s?(m=a(s.as,s.crossOrigin),p.d.m(l,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0})):p.d.m(l))},Ee.requestFormReset=function(l){p.d.r(l)},Ee.unstable_batchedUpdates=function(l,s){return l(s)},Ee.useFormState=function(l,s,m){return y().useFormState(l,s,m)},Ee.useFormStatus=function(){return y().useHostTransitionStatus()},Ee.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ee}var Pn;function Bs(){if(Pn)return Ct.exports;Pn=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return process.env.NODE_ENV==="production"?(t(),Ct.exports=qs()):Ct.exports=Ws(),Ct.exports}var Ks=Bs();function Xs(t,n,o={},a={}){ce.useEffect(()=>{if(!t.current||a.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([d])=>{n(d)},o);return u.observe(t.current),()=>{u.disconnect()}},[n,o,a.disabled,t])}function Qs(t){const n=ce.useRef(null);return ce.useImperativeHandle(t,()=>n.current,[]),n}function Js(t,n){const o=Cn(),[a,u]=ce.useState(!1),d=ce.useRef(!1),y=Qs(n),{activeProps:w,inactiveProps:p,activeOptions:c,to:h,preload:l,preloadDelay:s,hashScrollIntoView:m,replace:E,startTransition:k,resetScroll:j,viewTransition:z,children:X,target:H,disabled:Y,style:x,className:F,onClick:B,onFocus:C,onMouseEnter:ee,onMouseLeave:ge,onTouchStart:V,ignoreBlocker:ue,params:le,search:ne,hash:Z,state:te,mask:ie,reloadDocument:M,unsafeRelative:ye,from:r,_fromLocation:f,...b}=t,v=jn({select:re=>re.location.search,structuralSharing:!0}),O=t.from,A=ce.useMemo(()=>({...t,from:O}),[o,v,O,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),R=ce.useMemo(()=>o.buildLocation({...A}),[o,A]),G=ce.useMemo(()=>{if(Y)return;let re=R.maskedLocation?R.maskedLocation.url:R.url,fe=!1;return o.origin&&(re.startsWith(o.origin)?re=re.replace(o.origin,"")||"/":fe=!0),{href:re,external:fe}},[Y,R.maskedLocation,R.url,o.origin]),T=ce.useMemo(()=>{if(G?.external)return G.href;try{return new URL(h),h}catch{}},[h,G]),J=t.reloadDocument||T?!1:l??o.options.defaultPreload,pe=s??o.options.defaultPreloadDelay??0,ve=jn({select:re=>{if(T)return!1;if(c?.exact){if(!Ds(re.location.pathname,R.pathname,o.basepath))return!1}else{const fe=Tt(re.location.pathname,o.basepath),be=Tt(R.pathname,o.basepath);if(!(fe.startsWith(be)&&(fe.length===be.length||fe[be.length]==="/")))return!1}return(c?.includeSearch??!0)&&!Rt(re.location.search,R.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?re.location.hash===R.hash:!0}}),he=ce.useCallback(()=>{o.preloadRoute({...A}).catch(re=>{console.warn(re),console.warn(Ps)})},[o,A]),Ye=ce.useCallback(re=>{re?.isIntersecting&&he()},[he]);Xs(y,Ye,na,{disabled:!!Y||J!=="viewport"}),ce.useEffect(()=>{d.current||!Y&&J==="render"&&(he(),d.current=!0)},[Y,he,J]);const qe=re=>{const fe=re.currentTarget.target,be=H!==void 0?H:fe;if(!Y&&!sa(re)&&!re.defaultPrevented&&(!be||be==="_self")&&re.button===0){re.preventDefault(),Ks.flushSync(()=>{u(!0)});const et=o.subscribe("onResolved",()=>{et(),u(!1)});o.navigate({...A,replace:E,resetScroll:j,hashScrollIntoView:m,startTransition:k,viewTransition:z,ignoreBlocker:ue})}};if(T)return{...b,ref:y,href:T,...X&&{children:X},...H&&{target:H},...Y&&{disabled:Y},...x&&{style:x},...F&&{className:F},...B&&{onClick:B},...C&&{onFocus:C},...ee&&{onMouseEnter:ee},...ge&&{onMouseLeave:ge},...V&&{onTouchStart:V}};const Ae=re=>{Y||J&&he()},ae=Ae,xe=re=>{if(!(Y||!J))if(!pe)he();else{const fe=re.target;if(it.has(fe))return;const be=setTimeout(()=>{it.delete(fe),he()},pe);it.set(fe,be)}},We=re=>{if(Y||!J||!pe)return;const fe=re.target,be=it.get(fe);be&&(clearTimeout(be),it.delete(fe))},Ve=ve?hn(w,{})??Zs:er,D=ve?er:hn(p,{})??er,Re=[F,Ve.className,D.className].filter(Boolean).join(" "),He=(x||Ve.style||D.style)&&{...x,...Ve.style,...D.style};return{...b,...Ve,...D,href:G?.href,ref:y,onClick:ut([B,qe]),onFocus:ut([C,Ae]),onMouseEnter:ut([ee,xe]),onMouseLeave:ut([ge,We]),onTouchStart:ut([V,ae]),disabled:!!Y,target:H,...He&&{style:He},...Re&&{className:Re},...Y&&ea,...ve&&ta,...a&&ra}}const er={},Zs={className:"active"},ea={role:"link","aria-disabled":!0},ta={"data-status":"active","aria-current":"page"},ra={"data-transitioning":"transitioning"},it=new WeakMap,na={rootMargin:"100px"},ut=t=>n=>{for(const o of t)if(o){if(n.defaultPrevented)return;o(n)}},oa=ce.forwardRef((t,n)=>{const{_asChild:o,...a}=t,{type:u,ref:d,...y}=Js(a,n),w=typeof a.children=="function"?a.children({isActive:y["data-status"]==="active"}):a.children;return o===void 0&&delete y.disabled,ce.createElement(o||"a",{...y,ref:d},w)});function sa(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}/**
|
|
187
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),l}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var w=Ie(),p={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},c=Symbol.for("react.portal"),h=w.__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"),Ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Ee.createPortal=function(l,s){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)throw Error("Target container is not a DOM element.");return o(l,s,null,m)},Ee.flushSync=function(l){var s=h.T,m=p.p;try{if(h.T=null,p.p=2,l)return l()}finally{h.T=s,p.p=m,p.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.")}},Ee.preconnect=function(l,s){typeof l=="string"&&l?s!=null&&typeof s!="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.",d(s)):s!=null&&typeof s.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.",u(s.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&(s?(s=s.crossOrigin,s=typeof s=="string"?s==="use-credentials"?s:"":void 0):s=null,p.d.C(l,s))},Ee.prefetchDNS=function(l){if(typeof l!="string"||!l)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l));else if(1<arguments.length){var s=arguments[1];typeof s=="object"&&s.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`.",d(s)):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`.",d(s))}typeof l=="string"&&p.d.D(l)},Ee.preinit=function(l,s){if(typeof l=="string"&&l?s==null||typeof s!="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.",d(s)):s.as!=="style"&&s.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".',d(s.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",u(l)),typeof l=="string"&&s&&typeof s.as=="string"){var m=s.as,E=i(m,s.crossOrigin),k=typeof s.integrity=="string"?s.integrity:void 0,j=typeof s.fetchPriority=="string"?s.fetchPriority:void 0;m==="style"?p.d.S(l,typeof s.precedence=="string"?s.precedence:void 0,{crossOrigin:E,integrity:k,fetchPriority:j}):m==="script"&&p.d.X(l,{crossOrigin:E,integrity:k,fetchPriority:j,nonce:typeof s.nonce=="string"?s.nonce:void 0})}},Ee.preinitModule=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&s.as!=="script"&&(m+=" The `as` option encountered was "+d(s.as)+"."),m)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",m);else switch(m=s&&typeof s.as=="string"?s.as:"script",m){case"script":break;default:m=d(m),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',m,l)}typeof l=="string"&&(typeof s=="object"&&s!==null?(s.as==null||s.as==="script")&&(m=i(s.as,s.crossOrigin),p.d.M(l,{crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0})):s==null&&p.d.M(l))},Ee.preload=function(l,s){var m="";if(typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s==null||typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":typeof s.as=="string"&&s.as||(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',m),typeof l=="string"&&typeof s=="object"&&s!==null&&typeof s.as=="string"){m=s.as;var E=i(m,s.crossOrigin);p.d.L(l,m,{crossOrigin:E,integrity:typeof s.integrity=="string"?s.integrity:void 0,nonce:typeof s.nonce=="string"?s.nonce:void 0,type:typeof s.type=="string"?s.type:void 0,fetchPriority:typeof s.fetchPriority=="string"?s.fetchPriority:void 0,referrerPolicy:typeof s.referrerPolicy=="string"?s.referrerPolicy:void 0,imageSrcSet:typeof s.imageSrcSet=="string"?s.imageSrcSet:void 0,imageSizes:typeof s.imageSizes=="string"?s.imageSizes:void 0,media:typeof s.media=="string"?s.media:void 0})}},Ee.preloadModule=function(l,s){var m="";typeof l=="string"&&l||(m+=" The `href` argument encountered was "+u(l)+"."),s!==void 0&&typeof s!="object"?m+=" The `options` argument encountered was "+u(s)+".":s&&"as"in s&&typeof s.as!="string"&&(m+=" The `as` option encountered was "+u(s.as)+"."),m&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',m),typeof l=="string"&&(s?(m=i(s.as,s.crossOrigin),p.d.m(l,{as:typeof s.as=="string"&&s.as!=="script"?s.as:void 0,crossOrigin:m,integrity:typeof s.integrity=="string"?s.integrity:void 0})):p.d.m(l))},Ee.requestFormReset=function(l){p.d.r(l)},Ee.unstable_batchedUpdates=function(l,s){return l(s)},Ee.useFormState=function(l,s,m){return y().useFormState(l,s,m)},Ee.useFormStatus=function(){return y().useHostTransitionStatus()},Ee.version="19.1.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Ee}var Pn;function Ws(){if(Pn)return Ct.exports;Pn=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}return process.env.NODE_ENV==="production"?(t(),Ct.exports=Ys()):Ct.exports=qs(),Ct.exports}var Bs=Ws();function Ks(t,n,o={},i={}){de.useEffect(()=>{if(!t.current||i.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([d])=>{n(d)},o);return u.observe(t.current),()=>{u.disconnect()}},[n,o,i.disabled,t])}function Xs(t){const n=de.useRef(null);return de.useImperativeHandle(t,()=>n.current,[]),n}function Qs(t,n){const o=Cn(),[i,u]=de.useState(!1),d=de.useRef(!1),y=Xs(n),{activeProps:w,inactiveProps:p,activeOptions:c,to:h,preload:l,preloadDelay:s,hashScrollIntoView:m,replace:E,startTransition:k,resetScroll:j,viewTransition:z,children:X,target:H,disabled:Y,style:x,className:F,onClick:B,onFocus:C,onMouseEnter:ee,onMouseLeave:ge,onTouchStart:V,ignoreBlocker:ue,params:ce,search:ne,hash:Z,state:te,mask:ie,reloadDocument:M,unsafeRelative:ye,from:r,_fromLocation:f,...b}=t,v=jn({select:re=>re.location.search,structuralSharing:!0}),O=t.from,A=de.useMemo(()=>({...t,from:O}),[o,v,O,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),R=de.useMemo(()=>o.buildLocation({...A}),[o,A]),G=de.useMemo(()=>{if(Y)return;let re=R.maskedLocation?R.maskedLocation.url:R.url,le=!1;return o.origin&&(re.startsWith(o.origin)?re=re.replace(o.origin,"")||"/":le=!0),{href:re,external:le}},[Y,R.maskedLocation,R.url,o.origin]),T=de.useMemo(()=>{if(G?.external)return G.href;try{return new URL(h),h}catch{}},[h,G]),J=t.reloadDocument||T?!1:l??o.options.defaultPreload,pe=s??o.options.defaultPreloadDelay??0,ve=jn({select:re=>{if(T)return!1;if(c?.exact){if(!Ns(re.location.pathname,R.pathname,o.basepath))return!1}else{const le=Tt(re.location.pathname,o.basepath),be=Tt(R.pathname,o.basepath);if(!(le.startsWith(be)&&(le.length===be.length||le[be.length]==="/")))return!1}return(c?.includeSearch??!0)&&!Rt(re.location.search,R.search,{partial:!c?.exact,ignoreUndefined:!c?.explicitUndefined})?!1:c?.includeHash?re.location.hash===R.hash:!0}}),he=de.useCallback(()=>{o.preloadRoute({...A}).catch(re=>{console.warn(re),console.warn(Ds)})},[o,A]),Ye=de.useCallback(re=>{re?.isIntersecting&&he()},[he]);Ks(y,Ye,ra,{disabled:!!Y||J!=="viewport"}),de.useEffect(()=>{d.current||!Y&&J==="render"&&(he(),d.current=!0)},[Y,he,J]);const qe=re=>{const le=re.currentTarget.target,be=H!==void 0?H:le;if(!Y&&!oa(re)&&!re.defaultPrevented&&(!be||be==="_self")&&re.button===0){re.preventDefault(),Bs.flushSync(()=>{u(!0)});const et=o.subscribe("onResolved",()=>{et(),u(!1)});o.navigate({...A,replace:E,resetScroll:j,hashScrollIntoView:m,startTransition:k,viewTransition:z,ignoreBlocker:ue})}};if(T)return{...b,ref:y,href:T,...X&&{children:X},...H&&{target:H},...Y&&{disabled:Y},...x&&{style:x},...F&&{className:F},...B&&{onClick:B},...C&&{onFocus:C},...ee&&{onMouseEnter:ee},...ge&&{onMouseLeave:ge},...V&&{onTouchStart:V}};const Ae=re=>{Y||J&&he()},se=Ae,xe=re=>{if(!(Y||!J))if(!pe)he();else{const le=re.target;if(it.has(le))return;const be=setTimeout(()=>{it.delete(le),he()},pe);it.set(le,be)}},We=re=>{if(Y||!J||!pe)return;const le=re.target,be=it.get(le);be&&(clearTimeout(be),it.delete(le))},Ve=ve?hn(w,{})??Js:er,D=ve?er:hn(p,{})??er,Re=[F,Ve.className,D.className].filter(Boolean).join(" "),He=(x||Ve.style||D.style)&&{...x,...Ve.style,...D.style};return{...b,...Ve,...D,href:G?.href,ref:y,onClick:ut([B,qe]),onFocus:ut([C,Ae]),onMouseEnter:ut([ee,xe]),onMouseLeave:ut([ge,We]),onTouchStart:ut([V,se]),disabled:!!Y,target:H,...He&&{style:He},...Re&&{className:Re},...Y&&Zs,...ve&&ea,...i&&ta}}const er={},Js={className:"active"},Zs={role:"link","aria-disabled":!0},ea={"data-status":"active","aria-current":"page"},ta={"data-transitioning":"transitioning"},it=new WeakMap,ra={rootMargin:"100px"},ut=t=>n=>{for(const o of t)if(o){if(n.defaultPrevented)return;o(n)}},na=de.forwardRef((t,n)=>{const{_asChild:o,...i}=t,{type:u,ref:d,...y}=Qs(i,n),w=typeof i.children=="function"?i.children({isActive:y["data-status"]==="active"}):i.children;return o===void 0&&delete y.disabled,de.createElement(o||"a",{...y,ref:d},w)});function oa(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}/**
|
|
188
188
|
* @license lucide-react v0.544.0 - ISC
|
|
189
189
|
*
|
|
190
190
|
* This source code is licensed under the ISC license.
|
|
191
191
|
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
-
*/const
|
|
192
|
+
*/const sa=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aa=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,o,i)=>i?i.toUpperCase():o.toLowerCase()),Ln=t=>{const n=aa(t);return n.charAt(0).toUpperCase()+n.slice(1)},Mn=(...t)=>t.filter((n,o,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===o).join(" ").trim(),ia=t=>{for(const n in t)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
193
193
|
* @license lucide-react v0.544.0 - ISC
|
|
194
194
|
*
|
|
195
195
|
* This source code is licensed under the ISC license.
|
|
196
196
|
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/var
|
|
197
|
+
*/var ua={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"};/**
|
|
198
198
|
* @license lucide-react v0.544.0 - ISC
|
|
199
199
|
*
|
|
200
200
|
* This source code is licensed under the ISC license.
|
|
201
201
|
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/const
|
|
202
|
+
*/const ca=de.forwardRef(({color:t="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:u="",children:d,iconNode:y,...w},p)=>de.createElement("svg",{ref:p,...ua,width:n,height:n,stroke:t,strokeWidth:i?Number(o)*24/Number(n):o,className:Mn("lucide",u),...!d&&!ia(w)&&{"aria-hidden":"true"},...w},[...y.map(([c,h])=>de.createElement(c,h)),...Array.isArray(d)?d:[d]]));/**
|
|
203
203
|
* @license lucide-react v0.544.0 - ISC
|
|
204
204
|
*
|
|
205
205
|
* This source code is licensed under the ISC license.
|
|
206
206
|
* See the LICENSE file in the root directory of this source tree.
|
|
207
|
-
*/const
|
|
207
|
+
*/const la=(t,n)=>{const o=de.forwardRef(({className:i,...u},d)=>de.createElement(ca,{ref:d,iconNode:n,className:Mn(`lucide-${sa(Ln(t))}`,`lucide-${t}`,i),...u}));return o.displayName=Ln(t),o};/**
|
|
208
208
|
* @license lucide-react v0.544.0 - ISC
|
|
209
209
|
*
|
|
210
210
|
* This source code is licensed under the ISC license.
|
|
211
211
|
* See the LICENSE file in the root directory of this source tree.
|
|
212
|
-
*/const fa=
|
|
213
|
-
* @license lucide-react v0.544.0 - ISC
|
|
214
|
-
*
|
|
215
|
-
* This source code is licensed under the ISC license.
|
|
216
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
217
|
-
*/const da=In("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 pa(t){const[n,o]=ce.useState(!1);return oe.jsx("div",{className:"flex flex-col gap-6",children:oe.jsxs(os,{children:[oe.jsxs(ss,{children:[oe.jsx(as,{className:"text-2xl",children:t.loginFormTitle}),oe.jsx(is,{children:t.loginFormDescription})]}),oe.jsx(us,{children:oe.jsx(ks,{...t.form,children:oe.jsx("form",{onSubmit:t.form.handleSubmit(t.submit),children:oe.jsxs("div",{className:"flex flex-col gap-6",children:[oe.jsxs("div",{className:"grid gap-2",children:[oe.jsx(un,{htmlFor:"email",children:t.emailLabel}),oe.jsx(ln,{control:t.form.control,name:"email",render:({field:a})=>oe.jsx(dn,{children:oe.jsx(pn,{children:oe.jsx(mn,{id:"email",type:"email",placeholder:"m@example.com",required:!0,...a})})})})]}),oe.jsxs("div",{className:"grid gap-2",children:[oe.jsxs("div",{className:"flex items-center",children:[oe.jsx(un,{htmlFor:"password",children:t.passwordLabel}),oe.jsx(oa,{className:"ml-auto inline-block text-sm underline-offset-4 hover:underline",to:"/auth/start-reset-password",children:t.forgotPasswordMessage})]}),oe.jsx(ln,{control:t.form.control,name:"password",render:({field:a})=>oe.jsx(dn,{children:oe.jsx(pn,{className:"relative",children:oe.jsxs("div",{className:"relative",children:[n?oe.jsx(fa,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{o(!1)}}):oe.jsx(da,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{o(!0)}}),oe.jsx(mn,{type:n?"text":"password",placeholder:"********",...a,className:"pr-10"})]})})})})]}),oe.jsx(ns,{type:"submit",className:"w-full",children:t.submitButtonLabel})]})})})})]})})}const tr="Authorization",$n=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_active:!1},isAuthenticated:!1,isLoaded:!1}),Fe=new Bt($n()),ma=new Ge({fn:()=>!!Fe.state.user?.roles.find(t=>t.name==="admin"),deps:[Fe]});class ya{accountStore;httpClient;constructor(n){this.httpClient=n,this.accountStore=Fe}initAuthData(){const n=localStorage.getItem("token");n&&(this.httpClient.defaults.headers.common[tr]=n)}async load(){try{const{data:n}=await this.httpClient.get("/api/auth/account/me");Fe.setState(()=>({user:n,isAuthenticated:!0,isLoaded:!0}))}catch{Fe.setState(n=>({...n,isLoaded:!0}))}}async login(n){const o=await this.httpClient.post("/api/auth/account/login",n),{user:a,access_token:u}=o.data;return a.is_active&&this._initUserData({user:a,access_token:u}),a}register(n){return this.httpClient.post("/api/auth/account/register",n)}async activate(n){const o=await this.httpClient.post("/api/auth/account/activate",n);this._initUserData(o.data)}logout(){Fe.setState(()=>({...$n(),isLoaded:!0})),this._clearAuthData()}startResetPassword(n){return this.httpClient.post("/api/auth/account/start-reset-password",n)}async resetPassword(n){const o=await this.httpClient.post("/api/auth/account/reset-password",n);this._initUserData(o.data)}_initUserData({user:n,access_token:o}){this._setAuthData(o),Fe.setState(()=>({user:n,isAuthenticated:!0,isLoaded:!0}))}_setAuthData(n){localStorage.setItem("token",n),this.httpClient.defaults.headers.common[tr]=n}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[tr]}}Le.Auth=ya,Le.LoginForm=pa,Le.isAdmin=ma,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})}));
|
|
212
|
+
*/const fa=la("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 da(t){const n=o=>{console.log(o)};return ae.jsx("div",{className:"flex flex-col gap-6",children:ae.jsxs(ns,{children:[ae.jsxs(os,{children:[ae.jsx(ss,{className:"text-2xl",children:t.loginFormTitle}),ae.jsx(as,{children:t.loginFormDescription})]}),ae.jsx(is,{children:ae.jsx(Ss,{...t.form,children:ae.jsx("form",{onSubmit:t.form.handleSubmit(t.submit),children:ae.jsxs("div",{className:"flex flex-col gap-6",children:[ae.jsxs("div",{className:"grid gap-2",children:[ae.jsx(un,{htmlFor:"email",children:t.emailLabel}),ae.jsx(ln,{control:t.form.control,name:"email",render:({field:o})=>ae.jsx(dn,{children:ae.jsx(pn,{children:ae.jsx(mn,{id:"email",type:"email",placeholder:"m@example.com",required:!0,...o})})})})]}),ae.jsxs("div",{className:"grid gap-2",children:[ae.jsxs("div",{className:"flex items-center",children:[ae.jsx(un,{htmlFor:"password",children:t.passwordLabel}),ae.jsx(na,{className:"ml-auto inline-block text-sm underline-offset-4 hover:underline",to:"/auth/start-reset-password",children:t.forgotPasswordMessage})]}),ae.jsx(ln,{control:t.form.control,name:"password",render:({field:o})=>ae.jsx(dn,{children:ae.jsx(pn,{className:"relative",children:ae.jsxs("div",{className:"relative",children:[ae.jsx(fa,{className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-500 z-10 cursor-pointer",onClick:()=>{n(!0)}}),ae.jsx(mn,{type:"password",placeholder:"********",...o,className:"pr-10"})]})})})})]}),ae.jsx(rs,{type:"submit",className:"w-full",children:t.submitButtonLabel})]})})})})]})})}const tr="Authorization",In=()=>({user:{id:null,email:null,roles:[],is_enabled:!1,is_active:!1},isAuthenticated:!1,isLoaded:!1}),Fe=new Bt(In()),pa=new Ge({fn:()=>!!Fe.state.user?.roles.find(t=>t.name==="admin"),deps:[Fe]});class ma{accountStore;httpClient;constructor(n){this.httpClient=n,this.accountStore=Fe}initAuthData(){const n=localStorage.getItem("token");n&&(this.httpClient.defaults.headers.common[tr]=n)}async load(){try{const{data:n}=await this.httpClient.get("/api/auth/account/me");Fe.setState(()=>({user:n,isAuthenticated:!0,isLoaded:!0}))}catch{Fe.setState(n=>({...n,isLoaded:!0}))}}async login(n){const o=await this.httpClient.post("/api/auth/account/login",n),{user:i,access_token:u}=o.data;return i.is_active&&this._initUserData({user:i,access_token:u}),i}register(n){return this.httpClient.post("/api/auth/account/register",n)}async activate(n){const o=await this.httpClient.post("/api/auth/account/activate",n);this._initUserData(o.data)}logout(){Fe.setState(()=>({...In(),isLoaded:!0})),this._clearAuthData()}startResetPassword(n){return this.httpClient.post("/api/auth/account/start-reset-password",n)}async resetPassword(n){const o=await this.httpClient.post("/api/auth/account/reset-password",n);this._initUserData(o.data)}_initUserData({user:n,access_token:o}){this._setAuthData(o),Fe.setState(()=>({user:n,isAuthenticated:!0,isLoaded:!0}))}_setAuthData(n){localStorage.setItem("token",n),this.httpClient.defaults.headers.common[tr]=n}_clearAuthData(){localStorage.removeItem("token"),delete this.httpClient.defaults.headers.common[tr]}}Le.Auth=ma,Le.LoginForm=da,Le.isAdmin=pa,Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"})}));
|