@rizom/brain 0.2.0-alpha.85 → 0.2.0-alpha.87
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/brain.js +2028 -989
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +3 -0
- package/dist/plugins.js.map +3 -3
- package/dist/site.js +4 -4
- package/dist/site.js.map +4 -4
- package/dist/ui/app.js +306 -0
- package/dist/ui/app.js.map +102 -0
- package/package.json +1 -1
package/dist/ui/app.js
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
var Ab=Object.create;var{getPrototypeOf:Fb,defineProperty:ZO,getOwnPropertyNames:Vb}=Object;var Eb=Object.prototype.hasOwnProperty;function Mb(w){return this[w]}var Rb,Ib,K6=(w,X,J)=>{var G=w!=null&&typeof w==="object";if(G){var Y=X?Rb??=new WeakMap:Ib??=new WeakMap,W=Y.get(w);if(W)return W}J=w!=null?Ab(Fb(w)):{};let q=X||!w||!w.__esModule?ZO(J,"default",{value:w,enumerable:!0}):J;for(let K of Vb(w))if(!Eb.call(q,K))ZO(q,K,{get:Mb.bind(w,K),enumerable:!0});if(G)Y.set(w,q);return q};var Aw=(w,X)=>()=>(X||w((X={exports:{}}).exports,X),X.exports);var _b=(w)=>w;function Pb(w,X){this[w]=_b.bind(null,X)}var Fz=(w,X)=>{for(var J in X)ZO(w,J,{get:X[J],enumerable:!0,configurable:!0,set:Pb.bind(X,J)})};var RE=Aw((vb)=>{(function(){function w(){if(s=!1,w$){var Q$=vb.unstable_now();Q6=Q$;var R$=!0;try{$:{C=!1,R&&(R=!1,N$(e$),e$=-1),k=!0;var E$=p;try{U:{W(Q$);for(c=J(Z);c!==null&&!(c.expirationTime>Q$&&K());){var G6=c.callback;if(typeof G6==="function"){c.callback=null,p=c.priorityLevel;var W6=G6(c.expirationTime<=Q$);if(Q$=vb.unstable_now(),typeof W6==="function"){c.callback=W6,W(Q$),R$=!0;break U}c===J(Z)&&G(Z),W(Q$)}else G(Z);c=J(Z)}if(c!==null)R$=!0;else{var n=J(P);n!==null&&A(q,n.startTime-Q$),R$=!1}}break $}finally{c=null,p=E$,k=!1}R$=void 0}}finally{R$?a$():w$=!1}}}function X(Q$,R$){var E$=Q$.length;Q$.push(R$);$:for(;0<E$;){var G6=E$-1>>>1,W6=Q$[G6];if(0<Y(W6,R$))Q$[G6]=R$,Q$[E$]=W6,E$=G6;else break $}}function J(Q$){return Q$.length===0?null:Q$[0]}function G(Q$){if(Q$.length===0)return null;var R$=Q$[0],E$=Q$.pop();if(E$!==R$){Q$[0]=E$;$:for(var G6=0,W6=Q$.length,n=W6>>>1;G6<n;){var Z$=2*(G6+1)-1,H6=Q$[Z$],O6=Z$+1,q6=Q$[O6];if(0>Y(H6,E$))O6<W6&&0>Y(q6,H6)?(Q$[G6]=q6,Q$[O6]=E$,G6=O6):(Q$[G6]=H6,Q$[Z$]=E$,G6=Z$);else if(O6<W6&&0>Y(q6,E$))Q$[G6]=q6,Q$[O6]=E$,G6=O6;else break $}}return R$}function Y(Q$,R$){var E$=Q$.sortIndex-R$.sortIndex;return E$!==0?E$:Q$.id-R$.id}function W(Q$){for(var R$=J(P);R$!==null;){if(R$.callback===null)G(P);else if(R$.startTime<=Q$)G(P),R$.sortIndex=R$.expirationTime,X(Z,R$);else break;R$=J(P)}}function q(Q$){if(R=!1,W(Q$),!C)if(J(Z)!==null)C=!0,w$||(w$=!0,a$());else{var R$=J(P);R$!==null&&A(q,R$.startTime-Q$)}}function K(){return s?!0:vb.unstable_now()-Q6<r?!1:!0}function A(Q$,R$){e$=G$(function(){Q$(vb.unstable_now())},R$)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),vb.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var j=performance;vb.unstable_now=function(){return j.now()}}else{var E=Date,M=E.now();vb.unstable_now=function(){return E.now()-M}}var Z=[],P=[],f=1,c=null,p=3,k=!1,C=!1,R=!1,s=!1,G$=typeof setTimeout==="function"?setTimeout:null,N$=typeof clearTimeout==="function"?clearTimeout:null,a=typeof setImmediate<"u"?setImmediate:null,w$=!1,e$=-1,r=5,Q6=-1;if(typeof a==="function")var a$=function(){a(w)};else if(typeof MessageChannel<"u"){var u$=new MessageChannel,l6=u$.port2;u$.port1.onmessage=w,a$=function(){l6.postMessage(null)}}else a$=function(){G$(w,0)};vb.unstable_IdlePriority=5,vb.unstable_ImmediatePriority=1,vb.unstable_LowPriority=4,vb.unstable_NormalPriority=3,vb.unstable_Profiling=null,vb.unstable_UserBlockingPriority=2,vb.unstable_cancelCallback=function(Q$){Q$.callback=null},vb.unstable_forceFrameRate=function(Q$){0>Q$||125<Q$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):r=0<Q$?Math.floor(1000/Q$):5},vb.unstable_getCurrentPriorityLevel=function(){return p},vb.unstable_next=function(Q$){switch(p){case 1:case 2:case 3:var R$=3;break;default:R$=p}var E$=p;p=R$;try{return Q$()}finally{p=E$}},vb.unstable_requestPaint=function(){s=!0},vb.unstable_runWithPriority=function(Q$,R$){switch(Q$){case 1:case 2:case 3:case 4:case 5:break;default:Q$=3}var E$=p;p=Q$;try{return R$()}finally{p=E$}},vb.unstable_scheduleCallback=function(Q$,R$,E$){var G6=vb.unstable_now();switch(typeof E$==="object"&&E$!==null?(E$=E$.delay,E$=typeof E$==="number"&&0<E$?G6+E$:G6):E$=G6,Q$){case 1:var W6=-1;break;case 2:W6=250;break;case 5:W6=1073741823;break;case 4:W6=1e4;break;default:W6=5000}return W6=E$+W6,Q$={id:f++,callback:R$,priorityLevel:Q$,startTime:E$,expirationTime:W6,sortIndex:-1},E$>G6?(Q$.sortIndex=E$,X(P,Q$),J(Z)===null&&Q$===J(P)&&(R?(N$(e$),e$=-1):R=!0,A(q,E$-G6))):(Q$.sortIndex=W6,X(Z,Q$),C||k||(C=!0,w$||(w$=!0,a$()))),Q$},vb.unstable_shouldYield=K,vb.unstable_wrapCallback=function(Q$){var R$=p;return function(){var E$=p;p=R$;try{return Q$.apply(this,arguments)}finally{p=E$}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var S0=Aw((Zb,E7)=>{(function(){function w(V,x){Object.defineProperty(G.prototype,V,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",x[0],x[1])}})}function X(V){if(V===null||typeof V!=="object")return null;return V=Y9&&V[Y9]||V["@@iterator"],typeof V==="function"?V:null}function J(V,x){V=(V=V.constructor)&&(V.displayName||V.name)||"ReactClass";var t=V+"."+x;O$[t]||(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.",x,V),O$[t]=!0)}function G(V,x,t){this.props=V,this.context=x,this.refs=ZU,this.updater=t||iz}function Y(){}function W(V,x,t){this.props=V,this.context=x,this.refs=ZU,this.updater=t||iz}function q(){}function K(V){return""+V}function A(V){try{K(V);var x=!1}catch(B$){x=!0}if(x){x=console;var t=x.error,Y$=typeof Symbol==="function"&&Symbol.toStringTag&&V[Symbol.toStringTag]||V.constructor.name||"Object";return t.call(x,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Y$),K(V)}}function j(V){if(V==null)return null;if(typeof V==="function")return V.$$typeof===K8?null:V.displayName||V.name||null;if(typeof V==="string")return V;switch(V){case W6:return"Fragment";case Z$:return"Profiler";case n:return"StrictMode";case $0:return"Suspense";case y6:return"SuspenseList";case f0:return"Activity"}if(typeof V==="object")switch(typeof V.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),V.$$typeof){case G6:return"Portal";case O6:return V.displayName||"Context";case H6:return(V._context.displayName||"Context")+".Consumer";case q6:var x=V.render;return V=V.displayName,V||(V=x.displayName||x.name||"",V=V!==""?"ForwardRef("+V+")":"ForwardRef"),V;case o4:return x=V.displayName||null,x!==null?x:j(V.type)||"Memo";case D1:x=V._payload,V=V._init;try{return j(V(x))}catch(t){}}return null}function E(V){if(V===W6)return"<>";if(typeof V==="object"&&V!==null&&V.$$typeof===D1)return"<...>";try{var x=j(V);return x?"<"+x+">":"<...>"}catch(t){return"<...>"}}function M(){var V=k$.A;return V===null?null:V.getOwner()}function Z(){return Error("react-stack-top-frame")}function P(V){if(lz.call(V,"key")){var x=Object.getOwnPropertyDescriptor(V,"key").get;if(x&&x.isReactWarning)return!1}return V.key!==void 0}function f(V,x){function t(){J9||(J9=!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)",x))}t.isReactWarning=!0,Object.defineProperty(V,"key",{get:t,configurable:!0})}function c(){var V=j(this.type);return Sw[V]||(Sw[V]=!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.")),V=this.props.ref,V!==void 0?V:null}function p(V,x,t,Y$,B$,S$){var T$=t.ref;return V={$$typeof:E$,type:V,key:x,props:t,_owner:Y$},(T$!==void 0?T$:null)!==null?Object.defineProperty(V,"ref",{enumerable:!1,get:c}):Object.defineProperty(V,"ref",{enumerable:!1,value:null}),V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(V,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(V,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:B$}),Object.defineProperty(V,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S$}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V}function k(V,x){return x=p(V.type,x,V.props,V._owner,V._debugStack,V._debugTask),V._store&&(x._store.validated=V._store.validated),x}function C(V){R(V)?V._store&&(V._store.validated=1):typeof V==="object"&&V!==null&&V.$$typeof===D1&&(V._payload.status==="fulfilled"?R(V._payload.value)&&V._payload.value._store&&(V._payload.value._store.validated=1):V._store&&(V._store.validated=1))}function R(V){return typeof V==="object"&&V!==null&&V.$$typeof===E$}function s(V){var x={"=":"=0",":":"=2"};return"$"+V.replace(/[=:]/g,function(t){return x[t]})}function G$(V,x){return typeof V==="object"&&V!==null&&V.key!=null?(A(V.key),s(""+V.key)):x.toString(36)}function N$(V){switch(V.status){case"fulfilled":return V.value;case"rejected":throw V.reason;default:switch(typeof V.status==="string"?V.then(q,q):(V.status="pending",V.then(function(x){V.status==="pending"&&(V.status="fulfilled",V.value=x)},function(x){V.status==="pending"&&(V.status="rejected",V.reason=x)})),V.status){case"fulfilled":return V.value;case"rejected":throw V.reason}}throw V}function a(V,x,t,Y$,B$){var S$=typeof V;if(S$==="undefined"||S$==="boolean")V=null;var T$=!1;if(V===null)T$=!0;else switch(S$){case"bigint":case"string":case"number":T$=!0;break;case"object":switch(V.$$typeof){case E$:case G6:T$=!0;break;case D1:return T$=V._init,a(T$(V._payload),x,t,Y$,B$)}}if(T$){T$=V,B$=B$(T$);var $6=Y$===""?"."+G$(T$,0):Y$;return L6(B$)?(t="",$6!=null&&(t=$6.replace(dz,"$&/")+"/"),a(B$,x,t,"",function(K4){return K4})):B$!=null&&(R(B$)&&(B$.key!=null&&(T$&&T$.key===B$.key||A(B$.key)),t=k(B$,t+(B$.key==null||T$&&T$.key===B$.key?"":(""+B$.key).replace(dz,"$&/")+"/")+$6),Y$!==""&&T$!=null&&R(T$)&&T$.key==null&&T$._store&&!T$._store.validated&&(t._store.validated=2),B$=t),x.push(B$)),1}if(T$=0,$6=Y$===""?".":Y$+":",L6(V))for(var F$=0;F$<V.length;F$++)Y$=V[F$],S$=$6+G$(Y$,F$),T$+=a(Y$,x,t,S$,B$);else if(F$=X(V),typeof F$==="function")for(F$===V.entries&&(nz||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nz=!0),V=F$.call(V),F$=0;!(Y$=V.next()).done;)Y$=Y$.value,S$=$6+G$(Y$,F$++),T$+=a(Y$,x,t,S$,B$);else if(S$==="object"){if(typeof V.then==="function")return a(N$(V),x,t,Y$,B$);throw x=String(V),Error("Objects are not valid as a React child (found: "+(x==="[object Object]"?"object with keys {"+Object.keys(V).join(", ")+"}":x)+"). If you meant to render a collection of children, use an array instead.")}return T$}function w$(V,x,t){if(V==null)return V;var Y$=[],B$=0;return a(V,Y$,"","",function(S$){return x.call(t,S$,B$++)}),Y$}function e$(V){if(V._status===-1){var x=V._ioInfo;x!=null&&(x.start=x.end=performance.now()),x=V._result;var t=x();if(t.then(function(B$){if(V._status===0||V._status===-1){V._status=1,V._result=B$;var S$=V._ioInfo;S$!=null&&(S$.end=performance.now()),t.status===void 0&&(t.status="fulfilled",t.value=B$)}},function(B$){if(V._status===0||V._status===-1){V._status=2,V._result=B$;var S$=V._ioInfo;S$!=null&&(S$.end=performance.now()),t.status===void 0&&(t.status="rejected",t.reason=B$)}}),x=V._ioInfo,x!=null){x.value=t;var Y$=t.displayName;typeof Y$==="string"&&(x.name=Y$)}V._status===-1&&(V._status=0,V._result=t)}if(V._status===1)return x=V._result,x===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
+
|
|
3
|
+
Your code should look like:
|
|
4
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
5
|
+
|
|
6
|
+
Did you accidentally put curly braces around the import?`,x),"default"in x||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
|
+
|
|
8
|
+
Your code should look like:
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,x),x.default;throw V._result}function r(){var V=k$.H;return V===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:
|
|
10
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
+
2. You might be breaking the Rules of Hooks
|
|
12
|
+
3. You might have more than one copy of React in the same app
|
|
13
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),V}function Q6(){k$.asyncTransitions--}function a$(V){if(bw===null)try{var x=("require"+Math.random()).slice(0,7);bw=(E7&&E7[x]).call(E7,"timers").setImmediate}catch(t){bw=function(Y$){Q9===!1&&(Q9=!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 B$=new MessageChannel;B$.port1.onmessage=Y$,B$.port2.postMessage(void 0)}}return bw(V)}function u$(V){return 1<V.length&&typeof AggregateError==="function"?AggregateError(V):V[0]}function l6(V,x){x!==Cw-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. "),Cw=x}function Q$(V,x,t){var Y$=k$.actQueue;if(Y$!==null)if(Y$.length!==0)try{R$(Y$),a$(function(){return Q$(V,x,t)});return}catch(B$){k$.thrownErrors.push(B$)}else k$.actQueue=null;0<k$.thrownErrors.length?(Y$=u$(k$.thrownErrors),k$.thrownErrors.length=0,t(Y$)):x(V)}function R$(V){if(!xw){xw=!0;var x=0;try{for(;x<V.length;x++){var t=V[x];do{k$.didUsePromise=!1;var Y$=t(!1);if(Y$!==null){if(k$.didUsePromise){V[x]=t,V.splice(0,x);return}t=Y$}else break}while(1)}V.length=0}catch(B$){V.splice(0,x+1),k$.thrownErrors.push(B$)}finally{xw=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var E$=Symbol.for("react.transitional.element"),G6=Symbol.for("react.portal"),W6=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),Z$=Symbol.for("react.profiler"),H6=Symbol.for("react.consumer"),O6=Symbol.for("react.context"),q6=Symbol.for("react.forward_ref"),$0=Symbol.for("react.suspense"),y6=Symbol.for("react.suspense_list"),o4=Symbol.for("react.memo"),D1=Symbol.for("react.lazy"),f0=Symbol.for("react.activity"),Y9=Symbol.iterator,O$={},iz={isMounted:function(){return!1},enqueueForceUpdate:function(V){J(V,"forceUpdate")},enqueueReplaceState:function(V){J(V,"replaceState")},enqueueSetState:function(V){J(V,"setState")}},Zw=Object.assign,ZU={};Object.freeze(ZU),G.prototype.isReactComponent={},G.prototype.setState=function(V,x){if(typeof V!=="object"&&typeof V!=="function"&&V!=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,V,x,"setState")},G.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};var Y4={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)."]};for(TU in Y4)Y4.hasOwnProperty(TU)&&w(TU,Y4[TU]);Y.prototype=G.prototype,Y4=W.prototype=new Y,Y4.constructor=W,Zw(Y4,G.prototype),Y4.isPureReactComponent=!0;var L6=Array.isArray,K8=Symbol.for("react.client.reference"),k$={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},lz=Object.prototype.hasOwnProperty,M6=console.createTask?console.createTask:function(){return null};Y4={react_stack_bottom_frame:function(V){return V()}};var J9,U0,Sw={},Tw=Y4.react_stack_bottom_frame.bind(Y4,Z)(),r5=M6(E(Z)),nz=!1,dz=/\/+/g,SU=typeof reportError==="function"?reportError:function(V){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var x=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof V==="object"&&V!==null&&typeof V.message==="string"?String(V.message):String(V),error:V});if(!window.dispatchEvent(x))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",V);return}console.error(V)},Q9=!1,bw=null,Cw=0,kw=!1,xw=!1,D8=typeof queueMicrotask==="function"?function(V){queueMicrotask(function(){return queueMicrotask(V)})}:a$;Y4=Object.freeze({__proto__:null,c:function(V){return r().useMemoCache(V)}});var TU={map:w$,forEach:function(V,x,t){w$(V,function(){x.apply(this,arguments)},t)},count:function(V){var x=0;return w$(V,function(){x++}),x},toArray:function(V){return w$(V,function(x){return x})||[]},only:function(V){if(!R(V))throw Error("React.Children.only expected to receive a single React element child.");return V}};Zb.Activity=f0,Zb.Children=TU,Zb.Component=G,Zb.Fragment=W6,Zb.Profiler=Z$,Zb.PureComponent=W,Zb.StrictMode=n,Zb.Suspense=$0,Zb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k$,Zb.__COMPILER_RUNTIME=Y4,Zb.act=function(V){var x=k$.actQueue,t=Cw;Cw++;var Y$=k$.actQueue=x!==null?x:[],B$=!1;try{var S$=V()}catch(F$){k$.thrownErrors.push(F$)}if(0<k$.thrownErrors.length)throw l6(x,t),V=u$(k$.thrownErrors),k$.thrownErrors.length=0,V;if(S$!==null&&typeof S$==="object"&&typeof S$.then==="function"){var T$=S$;return D8(function(){B$||kw||(kw=!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(F$,K4){B$=!0,T$.then(function(r4){if(l6(x,t),t===0){try{R$(Y$),a$(function(){return Q$(r4,F$,K4)})}catch(j8){k$.thrownErrors.push(j8)}if(0<k$.thrownErrors.length){var bU=u$(k$.thrownErrors);k$.thrownErrors.length=0,K4(bU)}}else F$(r4)},function(r4){l6(x,t),0<k$.thrownErrors.length?(r4=u$(k$.thrownErrors),k$.thrownErrors.length=0,K4(r4)):K4(r4)})}}}var $6=S$;if(l6(x,t),t===0&&(R$(Y$),Y$.length!==0&&D8(function(){B$||kw||(kw=!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(() => ...)"))}),k$.actQueue=null),0<k$.thrownErrors.length)throw V=u$(k$.thrownErrors),k$.thrownErrors.length=0,V;return{then:function(F$,K4){B$=!0,t===0?(k$.actQueue=Y$,a$(function(){return Q$($6,F$,K4)})):F$($6)}}},Zb.cache=function(V){return function(){return V.apply(null,arguments)}},Zb.cacheSignal=function(){return null},Zb.captureOwnerStack=function(){var V=k$.getCurrentStack;return V===null?null:V()},Zb.cloneElement=function(V,x,t){if(V===null||V===void 0)throw Error("The argument must be a React element, but you passed "+V+".");var Y$=Zw({},V.props),B$=V.key,S$=V._owner;if(x!=null){var T$;$:{if(lz.call(x,"ref")&&(T$=Object.getOwnPropertyDescriptor(x,"ref").get)&&T$.isReactWarning){T$=!1;break $}T$=x.ref!==void 0}T$&&(S$=M()),P(x)&&(A(x.key),B$=""+x.key);for($6 in x)!lz.call(x,$6)||$6==="key"||$6==="__self"||$6==="__source"||$6==="ref"&&x.ref===void 0||(Y$[$6]=x[$6])}var $6=arguments.length-2;if($6===1)Y$.children=t;else if(1<$6){T$=Array($6);for(var F$=0;F$<$6;F$++)T$[F$]=arguments[F$+2];Y$.children=T$}Y$=p(V.type,B$,Y$,S$,V._debugStack,V._debugTask);for(B$=2;B$<arguments.length;B$++)C(arguments[B$]);return Y$},Zb.createContext=function(V){return V={$$typeof:O6,_currentValue:V,_currentValue2:V,_threadCount:0,Provider:null,Consumer:null},V.Provider=V,V.Consumer={$$typeof:H6,_context:V},V._currentRenderer=null,V._currentRenderer2=null,V},Zb.createElement=function(V,x,t){for(var Y$=2;Y$<arguments.length;Y$++)C(arguments[Y$]);Y$={};var B$=null;if(x!=null)for(F$ in U0||!("__self"in x)||"key"in x||(U0=!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")),P(x)&&(A(x.key),B$=""+x.key),x)lz.call(x,F$)&&F$!=="key"&&F$!=="__self"&&F$!=="__source"&&(Y$[F$]=x[F$]);var S$=arguments.length-2;if(S$===1)Y$.children=t;else if(1<S$){for(var T$=Array(S$),$6=0;$6<S$;$6++)T$[$6]=arguments[$6+2];Object.freeze&&Object.freeze(T$),Y$.children=T$}if(V&&V.defaultProps)for(F$ in S$=V.defaultProps,S$)Y$[F$]===void 0&&(Y$[F$]=S$[F$]);B$&&f(Y$,typeof V==="function"?V.displayName||V.name||"Unknown":V);var F$=1e4>k$.recentlyCreatedOwnerStacks++;return p(V,B$,Y$,M(),F$?Error("react-stack-top-frame"):Tw,F$?M6(E(V)):r5)},Zb.createRef=function(){var V={current:null};return Object.seal(V),V},Zb.forwardRef=function(V){V!=null&&V.$$typeof===o4?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof V!=="function"?console.error("forwardRef requires a render function but was given %s.",V===null?"null":typeof V):V.length!==0&&V.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",V.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),V!=null&&V.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var x={$$typeof:q6,render:V},t;return Object.defineProperty(x,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(Y$){t=Y$,V.name||V.displayName||(Object.defineProperty(V,"name",{value:Y$}),V.displayName=Y$)}}),x},Zb.isValidElement=R,Zb.lazy=function(V){V={_status:-1,_result:V};var x={$$typeof:D1,_payload:V,_init:e$},t={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return V._ioInfo=t,x._debugInfo=[{awaited:t}],x},Zb.memo=function(V,x){V==null&&console.error("memo: The first argument must be a component. Instead received: %s",V===null?"null":typeof V),x={$$typeof:o4,type:V,compare:x===void 0?null:x};var t;return Object.defineProperty(x,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(Y$){t=Y$,V.name||V.displayName||(Object.defineProperty(V,"name",{value:Y$}),V.displayName=Y$)}}),x},Zb.startTransition=function(V){var x=k$.T,t={};t._updatedFibers=new Set,k$.T=t;try{var Y$=V(),B$=k$.S;B$!==null&&B$(t,Y$),typeof Y$==="object"&&Y$!==null&&typeof Y$.then==="function"&&(k$.asyncTransitions++,Y$.then(Q6,Q6),Y$.then(q,SU))}catch(S$){SU(S$)}finally{x===null&&t._updatedFibers&&(V=t._updatedFibers.size,t._updatedFibers.clear(),10<V&&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.")),x!==null&&t.types!==null&&(x.types!==null&&x.types!==t.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),x.types=t.types),k$.T=x}},Zb.unstable_useCacheRefresh=function(){return r().useCacheRefresh()},Zb.use=function(V){return r().use(V)},Zb.useActionState=function(V,x,t){return r().useActionState(V,x,t)},Zb.useCallback=function(V,x){return r().useCallback(V,x)},Zb.useContext=function(V){var x=r();return V.$$typeof===H6&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),x.useContext(V)},Zb.useDebugValue=function(V,x){return r().useDebugValue(V,x)},Zb.useDeferredValue=function(V,x){return r().useDeferredValue(V,x)},Zb.useEffect=function(V,x){return V==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),r().useEffect(V,x)},Zb.useEffectEvent=function(V){return r().useEffectEvent(V)},Zb.useId=function(){return r().useId()},Zb.useImperativeHandle=function(V,x,t){return r().useImperativeHandle(V,x,t)},Zb.useInsertionEffect=function(V,x){return V==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),r().useInsertionEffect(V,x)},Zb.useLayoutEffect=function(V,x){return V==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),r().useLayoutEffect(V,x)},Zb.useMemo=function(V,x){return r().useMemo(V,x)},Zb.useOptimistic=function(V,x){return r().useOptimistic(V,x)},Zb.useReducer=function(V,x,t){return r().useReducer(V,x,t)},Zb.useRef=function(V){return r().useRef(V)},Zb.useState=function(V){return r().useState(V)},Zb.useSyncExternalStore=function(V,x,t){return r().useSyncExternalStore(V,x,t)},Zb.useTransition=function(){return r().useTransition()},Zb.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var IE=Aw((Sb)=>{var SO=K6(S0());(function(){function w(){}function X(E){return""+E}function J(E,M,Z){var P=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{X(P);var f=!1}catch(c){f=!0}return f&&(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&&P[Symbol.toStringTag]||P.constructor.name||"Object"),X(P)),{$$typeof:A,key:P==null?null:""+P,children:E,containerInfo:M,implementation:Z}}function G(E,M){if(E==="font")return"";if(typeof M==="string")return M==="use-credentials"?M:""}function Y(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":'something with type "'+typeof E+'"'}function W(E){return E===null?"`null`":E===void 0?"`undefined`":E===""?"an empty string":typeof E==="string"?JSON.stringify(E):typeof E==="number"?"`"+E+"`":'something with type "'+typeof E+'"'}function q(){var E=j.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:
|
|
14
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
15
|
+
2. You might be breaking the Rules of Hooks
|
|
16
|
+
3. You might have more than one copy of React in the same app
|
|
17
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),E}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var K={d:{f:w,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:w,C:w,L:w,m:w,X:w,S:w,M:w},p:0,findDOMNode:null},A=Symbol.for("react.portal"),j=SO.__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"),Sb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,Sb.createPortal=function(E,M){var Z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!M||M.nodeType!==1&&M.nodeType!==9&&M.nodeType!==11)throw Error("Target container is not a DOM element.");return J(E,M,null,Z)},Sb.flushSync=function(E){var M=j.T,Z=K.p;try{if(j.T=null,K.p=2,E)return E()}finally{j.T=M,K.p=Z,K.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.")}},Sb.preconnect=function(E,M){typeof E==="string"&&E?M!=null&&typeof M!=="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.",W(M)):M!=null&&typeof M.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.",Y(M.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Y(E)),typeof E==="string"&&(M?(M=M.crossOrigin,M=typeof M==="string"?M==="use-credentials"?M:"":void 0):M=null,K.d.C(E,M))},Sb.prefetchDNS=function(E){if(typeof E!=="string"||!E)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Y(E));else if(1<arguments.length){var M=arguments[1];typeof M==="object"&&M.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`.",W(M)):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`.",W(M))}typeof E==="string"&&K.d.D(E)},Sb.preinit=function(E,M){if(typeof E==="string"&&E?M==null||typeof M!=="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.",W(M)):M.as!=="style"&&M.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".',W(M.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",Y(E)),typeof E==="string"&&M&&typeof M.as==="string"){var Z=M.as,P=G(Z,M.crossOrigin),f=typeof M.integrity==="string"?M.integrity:void 0,c=typeof M.fetchPriority==="string"?M.fetchPriority:void 0;Z==="style"?K.d.S(E,typeof M.precedence==="string"?M.precedence:void 0,{crossOrigin:P,integrity:f,fetchPriority:c}):Z==="script"&&K.d.X(E,{crossOrigin:P,integrity:f,fetchPriority:c,nonce:typeof M.nonce==="string"?M.nonce:void 0})}},Sb.preinitModule=function(E,M){var Z="";if(typeof E==="string"&&E||(Z+=" The `href` argument encountered was "+Y(E)+"."),M!==void 0&&typeof M!=="object"?Z+=" The `options` argument encountered was "+Y(M)+".":M&&("as"in M)&&M.as!=="script"&&(Z+=" The `as` option encountered was "+W(M.as)+"."),Z)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",Z);else switch(Z=M&&typeof M.as==="string"?M.as:"script",Z){case"script":break;default:Z=W(Z),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)',Z,E)}if(typeof E==="string")if(typeof M==="object"&&M!==null){if(M.as==null||M.as==="script")Z=G(M.as,M.crossOrigin),K.d.M(E,{crossOrigin:Z,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0})}else M==null&&K.d.M(E)},Sb.preload=function(E,M){var Z="";if(typeof E==="string"&&E||(Z+=" The `href` argument encountered was "+Y(E)+"."),M==null||typeof M!=="object"?Z+=" The `options` argument encountered was "+Y(M)+".":typeof M.as==="string"&&M.as||(Z+=" The `as` option encountered was "+Y(M.as)+"."),Z&&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',Z),typeof E==="string"&&typeof M==="object"&&M!==null&&typeof M.as==="string"){Z=M.as;var P=G(Z,M.crossOrigin);K.d.L(E,Z,{crossOrigin:P,integrity:typeof M.integrity==="string"?M.integrity:void 0,nonce:typeof M.nonce==="string"?M.nonce:void 0,type:typeof M.type==="string"?M.type:void 0,fetchPriority:typeof M.fetchPriority==="string"?M.fetchPriority:void 0,referrerPolicy:typeof M.referrerPolicy==="string"?M.referrerPolicy:void 0,imageSrcSet:typeof M.imageSrcSet==="string"?M.imageSrcSet:void 0,imageSizes:typeof M.imageSizes==="string"?M.imageSizes:void 0,media:typeof M.media==="string"?M.media:void 0})}},Sb.preloadModule=function(E,M){var Z="";typeof E==="string"&&E||(Z+=" The `href` argument encountered was "+Y(E)+"."),M!==void 0&&typeof M!=="object"?Z+=" The `options` argument encountered was "+Y(M)+".":M&&("as"in M)&&typeof M.as!=="string"&&(Z+=" The `as` option encountered was "+Y(M.as)+"."),Z&&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',Z),typeof E==="string"&&(M?(Z=G(M.as,M.crossOrigin),K.d.m(E,{as:typeof M.as==="string"&&M.as!=="script"?M.as:void 0,crossOrigin:Z,integrity:typeof M.integrity==="string"?M.integrity:void 0})):K.d.m(E))},Sb.requestFormReset=function(E){K.d.r(E)},Sb.unstable_batchedUpdates=function(E,M){return E(M)},Sb.useFormState=function(E,M,Z){return q().useFormState(E,M,Z)},Sb.useFormStatus=function(){return q().useHostTransitionStatus()},Sb.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var PE=Aw((Ai,_E)=>{var Tb=K6(IE());_E.exports=Tb});var vE=Aw((bb)=>{var U6=K6(RE()),oX=K6(S0()),TO=K6(PE());(function(){function w($,U){for($=$.memoizedState;$!==null&&0<U;)$=$.next,U--;return $}function X($,U,z,Q){if(z>=U.length)return Q;var H=U[z],O=U4($)?$.slice():c$({},$);return O[H]=X($[H],U,z+1,Q),O}function J($,U,z){if(U.length!==z.length)console.warn("copyWithRename() expects paths of the same length");else{for(var Q=0;Q<z.length-1;Q++)if(U[Q]!==z[Q]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return G($,U,z,0)}}function G($,U,z,Q){var H=U[Q],O=U4($)?$.slice():c$({},$);return Q+1===U.length?(O[z[Q]]=O[H],U4(O)?O.splice(H,1):delete O[H]):O[H]=G($[H],U,z,Q+1),O}function Y($,U,z){var Q=U[z],H=U4($)?$.slice():c$({},$);if(z+1===U.length)return U4(H)?H.splice(Q,1):delete H[Q],H;return H[Q]=Y($[Q],U,z+1),H}function W(){return!1}function q(){return null}function K(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function A(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function j(){}function E(){}function M($){var U=[];return $.forEach(function(z){U.push(z)}),U.sort().join(", ")}function Z($,U,z,Q){return new GZ($,U,z,Q)}function P($,U){$.context===sU&&(rW($.current,2,U,$,null,null),YX())}function f($,U){if(M1!==null){var z=U.staleFamilies;U=U.updatedFamilies,l8(),S2($.current,U,z),YX()}}function c($){M1=$}function p($){return!(!$||$.nodeType!==1&&$.nodeType!==9&&$.nodeType!==11)}function k($){var U=$,z=$;if($.alternate)for(;U.return;)U=U.return;else{$=U;do U=$,(U.flags&4098)!==0&&(z=U.return),$=U.return;while($)}return U.tag===3?z:null}function C($){if($.tag===13){var U=$.memoizedState;if(U===null&&($=$.alternate,$!==null&&(U=$.memoizedState)),U!==null)return U.dehydrated}return null}function R($){if($.tag===31){var U=$.memoizedState;if(U===null&&($=$.alternate,$!==null&&(U=$.memoizedState)),U!==null)return U.dehydrated}return null}function s($){if(k($)!==$)throw Error("Unable to find node on an unmounted component.")}function G$($){var U=$.alternate;if(!U){if(U=k($),U===null)throw Error("Unable to find node on an unmounted component.");return U!==$?null:$}for(var z=$,Q=U;;){var H=z.return;if(H===null)break;var O=H.alternate;if(O===null){if(Q=H.return,Q!==null){z=Q;continue}break}if(H.child===O.child){for(O=H.child;O;){if(O===z)return s(H),$;if(O===Q)return s(H),U;O=O.sibling}throw Error("Unable to find node on an unmounted component.")}if(z.return!==Q.return)z=H,Q=O;else{for(var B=!1,L=H.child;L;){if(L===z){B=!0,z=H,Q=O;break}if(L===Q){B=!0,Q=H,z=O;break}L=L.sibling}if(!B){for(L=O.child;L;){if(L===z){B=!0,z=O,Q=H;break}if(L===Q){B=!0,Q=O,z=H;break}L=L.sibling}if(!B)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(z.alternate!==Q)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(z.tag!==3)throw Error("Unable to find node on an unmounted component.");return z.stateNode.current===z?$:U}function N$($){var U=$.tag;if(U===5||U===26||U===27||U===6)return $;for($=$.child;$!==null;){if(U=N$($),U!==null)return U;$=$.sibling}return null}function a($){if($===null||typeof $!=="object")return null;return $=yA&&$[yA]||$["@@iterator"],typeof $==="function"?$:null}function w$($){if($==null)return null;if(typeof $==="function")return $.$$typeof===ZS?null:$.displayName||$.name||null;if(typeof $==="string")return $;switch($){case NX:return"Fragment";case UH:return"Profiler";case KQ:return"StrictMode";case zH:return"Suspense";case XH:return"SuspenseList";case YH:return"Activity"}if(typeof $==="object")switch(typeof $.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),$.$$typeof){case OX:return"Portal";case A0:return $.displayName||"Context";case wH:return($._context.displayName||"Context")+".Consumer";case $Y:var U=$.render;return $=$.displayName,$||($=U.displayName||U.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case DQ:return U=$.displayName||null,U!==null?U:w$($.type)||"Memo";case X1:U=$._payload,$=$._init;try{return w$($(U))}catch(z){}}return null}function e$($){return typeof $.tag==="number"?r($):typeof $.name==="string"?$.name:null}function r($){var U=$.type;switch($.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(U._context.displayName||"Context")+".Consumer";case 10:return U.displayName||"Context";case 18:return"DehydratedFragment";case 11:return $=U.render,$=$.displayName||$.name||"",U.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return U;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return w$(U);case 8:return U===KQ?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof U==="function")return U.displayName||U.name||null;if(typeof U==="string")return U;break;case 29:if(U=$._debugInfo,U!=null){for(var z=U.length-1;0<=z;z--)if(typeof U[z].name==="string")return U[z].name}if($.return!==null)return r($.return)}return null}function Q6($){return{current:$}}function a$($,U){0>o0?console.error("Unexpected pop."):(U!==QH[o0]&&console.error("Unexpected Fiber popped."),$.current=JH[o0],JH[o0]=null,QH[o0]=null,o0--)}function u$($,U,z){o0++,JH[o0]=$.current,QH[o0]=z,$.current=U}function l6($){return $===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),$}function Q$($,U){u$(dU,U,$),u$(UY,$,$),u$(nU,null,$);var z=U.nodeType;switch(z){case 9:case 11:z=z===9?"#document":"#fragment",U=(U=U.documentElement)?(U=U.namespaceURI)?QA(U):GU:GU;break;default:if(z=U.tagName,U=U.namespaceURI)U=QA(U),U=GA(U,z);else switch(z){case"svg":U=dX;break;case"math":U=L7;break;default:U=GU}}z=z.toLowerCase(),z=U2(null,z),z={context:U,ancestorInfo:z},a$(nU,$),u$(nU,z,$)}function R$($){a$(nU,$),a$(UY,$),a$(dU,$)}function E$(){return l6(nU.current)}function G6($){$.memoizedState!==null&&u$(jQ,$,$);var U=l6(nU.current),z=$.type,Q=GA(U.context,z);z=U2(U.ancestorInfo,z),Q={context:Q,ancestorInfo:z},U!==Q&&(u$(UY,$,$),u$(nU,Q,$))}function W6($){UY.current===$&&(a$(nU,$),a$(UY,$)),jQ.current===$&&(a$(jQ,$),dY._currentValue=Az)}function n(){}function Z$(){if(wY===0){fA=console.log,hA=console.info,uA=console.warn,mA=console.error,cA=console.group,iA=console.groupCollapsed,lA=console.groupEnd;var $={configurable:!0,enumerable:!0,value:n,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}wY++}function H6(){if(wY--,wY===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:c$({},$,{value:fA}),info:c$({},$,{value:hA}),warn:c$({},$,{value:uA}),error:c$({},$,{value:mA}),group:c$({},$,{value:cA}),groupCollapsed:c$({},$,{value:iA}),groupEnd:c$({},$,{value:lA})})}0>wY&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function O6($){var U=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,$=$.stack,Error.prepareStackTrace=U,$.startsWith(`Error: react-stack-top-frame
|
|
18
|
+
`)&&($=$.slice(29)),U=$.indexOf(`
|
|
19
|
+
`),U!==-1&&($=$.slice(U+1)),U=$.indexOf("react_stack_bottom_frame"),U!==-1&&(U=$.lastIndexOf(`
|
|
20
|
+
`,U)),U!==-1)$=$.slice(0,U);else return"";return $}function q6($){if(GH===void 0)try{throw Error()}catch(z){var U=z.stack.trim().match(/\n( *(at )?)/);GH=U&&U[1]||"",nA=-1<z.stack.indexOf(`
|
|
21
|
+
at`)?" (<anonymous>)":-1<z.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
+
`+GH+$+nA}function $0($,U){if(!$||WH)return"";var z=HH.get($);if(z!==void 0)return z;WH=!0,z=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var Q=null;Q=u.H,u.H=null,Z$();try{var H={DetermineComponentFrameRoot:function(){try{if(U){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch($$){var y=$$}Reflect.construct($,[],_)}else{try{_.call()}catch($$){y=$$}$.call(_.prototype)}}else{try{throw Error()}catch($$){y=$$}(_=$())&&typeof _.catch==="function"&&_.catch(function(){})}}catch($$){if($$&&y&&typeof $$.stack==="string")return[$$.stack,y.stack]}return[null,null]}};H.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var O=Object.getOwnPropertyDescriptor(H.DetermineComponentFrameRoot,"name");O&&O.configurable&&Object.defineProperty(H.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var B=H.DetermineComponentFrameRoot(),L=B[0],D=B[1];if(L&&D){var F=L.split(`
|
|
23
|
+
`),T=D.split(`
|
|
24
|
+
`);for(B=O=0;O<F.length&&!F[O].includes("DetermineComponentFrameRoot");)O++;for(;B<T.length&&!T[B].includes("DetermineComponentFrameRoot");)B++;if(O===F.length||B===T.length)for(O=F.length-1,B=T.length-1;1<=O&&0<=B&&F[O]!==T[B];)B--;for(;1<=O&&0<=B;O--,B--)if(F[O]!==T[B]){if(O!==1||B!==1)do if(O--,B--,0>B||F[O]!==T[B]){var b=`
|
|
25
|
+
`+F[O].replace(" at new "," at ");return $.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",$.displayName)),typeof $==="function"&&HH.set($,b),b}while(1<=O&&0<=B);break}}}finally{WH=!1,u.H=Q,H6(),Error.prepareStackTrace=z}return F=(F=$?$.displayName||$.name:"")?q6(F):"",typeof $==="function"&&HH.set($,F),F}function y6($,U){switch($.tag){case 26:case 27:case 5:return q6($.type);case 16:return q6("Lazy");case 13:return $.child!==U&&U!==null?q6("Suspense Fallback"):q6("Suspense");case 19:return q6("SuspenseList");case 0:case 15:return $0($.type,!1);case 11:return $0($.type.render,!1);case 1:return $0($.type,!0);case 31:return q6("Activity");default:return""}}function o4($){try{var U="",z=null;do{U+=y6($,z);var Q=$._debugInfo;if(Q)for(var H=Q.length-1;0<=H;H--){var O=Q[H];if(typeof O.name==="string"){var B=U;$:{var{name:L,env:D,debugLocation:F}=O;if(F!=null){var T=O6(F),b=T.lastIndexOf(`
|
|
26
|
+
`),_=b===-1?T:T.slice(b+1);if(_.indexOf(L)!==-1){var y=`
|
|
27
|
+
`+_;break $}}y=q6(L+(D?" ["+D+"]":""))}U=B+y}}z=$,$=$.return}while($);return U}catch($$){return`
|
|
28
|
+
Error generating stack: `+$$.message+`
|
|
29
|
+
`+$$.stack}}function D1($){return($=$?$.displayName||$.name:"")?q6($):""}function f0(){if(Y1===null)return null;var $=Y1._debugOwner;return $!=null?e$($):null}function Y9(){if(Y1===null)return"";var $=Y1;try{var U="";switch($.tag===6&&($=$.return),$.tag){case 26:case 27:case 5:U+=q6($.type);break;case 13:U+=q6("Suspense");break;case 19:U+=q6("SuspenseList");break;case 31:U+=q6("Activity");break;case 30:case 0:case 15:case 1:$._debugOwner||U!==""||(U+=D1($.type));break;case 11:$._debugOwner||U!==""||(U+=D1($.type.render))}for(;$;)if(typeof $.tag==="number"){var z=$;$=z._debugOwner;var Q=z._debugStack;if($&&Q){var H=O6(Q);H!==""&&(U+=`
|
|
30
|
+
`+H)}}else if($.debugStack!=null){var O=$.debugStack;($=$.owner)&&O&&(U+=`
|
|
31
|
+
`+O6(O))}else break;var B=U}catch(L){B=`
|
|
32
|
+
Error generating stack: `+L.message+`
|
|
33
|
+
`+L.stack}return B}function O$($,U,z,Q,H,O,B){var L=Y1;iz($);try{return $!==null&&$._debugTask?$._debugTask.run(U.bind(null,z,Q,H,O,B)):U(z,Q,H,O,B)}finally{iz(L)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function iz($){u.getCurrentStack=$===null?null:Y9,F0=!1,Y1=$}function Zw($){return typeof Symbol==="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"}function ZU($){try{return Y4($),!1}catch(U){return!0}}function Y4($){return""+$}function L6($,U){if(ZU($))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",U,Zw($)),Y4($)}function K8($,U){if(ZU($))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",U,Zw($)),Y4($)}function k$($){if(ZU($))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Zw($)),Y4($)}function lz($){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var U=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(U.isDisabled)return!0;if(!U.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{qX=U.inject($),j4=U}catch(z){console.error("React instrumentation encountered an error: %o.",z)}return U.checkDCE?!0:!1}function M6($){if(typeof gS==="function"&&yS($),j4&&typeof j4.setStrictMode==="function")try{j4.setStrictMode(qX,$)}catch(U){V0||(V0=!0,console.error("React instrumentation encountered an error: %o",U))}}function J9($){return $>>>=0,$===0?32:31-(fS($)/hS|0)|0}function U0($){var U=$&42;if(U!==0)return U;switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return $&261888;case 262144:case 524288:case 1048576:case 2097152:return $&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return $&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),$}}function Sw($,U,z){var Q=$.pendingLanes;if(Q===0)return 0;var H=0,O=$.suspendedLanes,B=$.pingedLanes;$=$.warmLanes;var L=Q&134217727;return L!==0?(Q=L&~O,Q!==0?H=U0(Q):(B&=L,B!==0?H=U0(B):z||(z=L&~$,z!==0&&(H=U0(z))))):(L=Q&~O,L!==0?H=U0(L):B!==0?H=U0(B):z||(z=Q&~$,z!==0&&(H=U0(z)))),H===0?0:U!==0&&U!==H&&(U&O)===0&&(O=H&-H,z=U&-U,O>=z||O===32&&(z&4194048)!==0)?U:H}function Tw($,U){return($.pendingLanes&~($.suspendedLanes&~$.pingedLanes)&U)===0}function r5($,U){switch($){case 1:case 2:case 4:case 8:case 64:return U+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return U+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function nz(){var $=VQ;return VQ<<=1,(VQ&62914560)===0&&(VQ=4194304),$}function dz($){for(var U=[],z=0;31>z;z++)U.push($);return U}function SU($,U){$.pendingLanes|=U,U!==268435456&&($.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0)}function Q9($,U,z,Q,H,O){var B=$.pendingLanes;$.pendingLanes=z,$.suspendedLanes=0,$.pingedLanes=0,$.warmLanes=0,$.expiredLanes&=z,$.entangledLanes&=z,$.errorRecoveryDisabledLanes&=z,$.shellSuspendCounter=0;var{entanglements:L,expirationTimes:D,hiddenUpdates:F}=$;for(z=B&~z;0<z;){var T=31-E4(z),b=1<<T;L[T]=0,D[T]=-1;var _=F[T];if(_!==null)for(F[T]=null,T=0;T<_.length;T++){var y=_[T];y!==null&&(y.lane&=-536870913)}z&=~b}Q!==0&&bw($,Q,0),O!==0&&H===0&&$.tag!==0&&($.suspendedLanes|=O&~(B&~U))}function bw($,U,z){$.pendingLanes|=U,$.suspendedLanes&=~U;var Q=31-E4(U);$.entangledLanes|=U,$.entanglements[Q]=$.entanglements[Q]|1073741824|z&261930}function Cw($,U){var z=$.entangledLanes|=U;for($=$.entanglements;z;){var Q=31-E4(z),H=1<<Q;H&U|$[Q]&U&&($[Q]|=U),z&=~H}}function kw($,U){var z=U&-U;return z=(z&42)!==0?1:xw(z),(z&($.suspendedLanes|U))!==0?0:z}function xw($){switch($){case 2:$=1;break;case 8:$=4;break;case 32:$=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:$=128;break;case 268435456:$=134217728;break;default:$=0}return $}function D8($,U,z){if(E0)for($=$.pendingUpdatersLaneMap;0<z;){var Q=31-E4(z),H=1<<Q;$[Q].add(U),z&=~H}}function TU($,U){if(E0)for(var{pendingUpdatersLaneMap:z,memoizedUpdaters:Q}=$;0<U;){var H=31-E4(U);$=1<<H,H=z[H],0<H.size&&(H.forEach(function(O){var B=O.alternate;B!==null&&Q.has(B)||Q.add(O)}),H.clear()),U&=~$}}function V($){return $&=-$,J1!==0&&J1<$?c1!==0&&c1<$?($&134217727)!==0?M0:EQ:c1:J1}function x(){var $=Y6.p;if($!==0)return $;return $=window.event,$===void 0?M0:SA($.type)}function t($,U){var z=Y6.p;try{return Y6.p=$,U()}finally{Y6.p=z}}function Y$($){delete $[q4],delete $[M4],delete $[LH],delete $[uS],delete $[mS]}function B$($){var U=$[q4];if(U)return U;for(var z=$.parentNode;z;){if(U=z[oU]||z[q4]){if(z=U.alternate,U.child!==null||z!==null&&z.child!==null)for($=KA($);$!==null;){if(z=$[q4])return z;$=KA($)}return U}$=z,z=$.parentNode}return null}function S$($){if($=$[q4]||$[oU]){var U=$.tag;if(U===5||U===6||U===13||U===31||U===26||U===27||U===3)return $}return null}function T$($){var U=$.tag;if(U===5||U===26||U===27||U===6)return $.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function $6($){var U=$[dA];return U||(U=$[dA]={hoistableStyles:new Map,hoistableScripts:new Map}),U}function F$($){$[zY]=!0}function K4($,U){r4($,U),r4($+"Capture",U)}function r4($,U){aw[$]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",$),aw[$]=U;var z=$.toLowerCase();KH[z]=$,$==="onDoubleClick"&&(KH.ondblclick=$);for($=0;$<U.length;$++)pA.add(U[$])}function bU($,U){cS[U.type]||U.onChange||U.onInput||U.readOnly||U.disabled||U.value==null||($==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),U.onChange||U.readOnly||U.disabled||U.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function j8($){if(m1.call(rA,$))return!0;if(m1.call(oA,$))return!1;if(iS.test($))return rA[$]=!0;return oA[$]=!0,console.error("Invalid attribute name: `%s`",$),!1}function uK($,U,z){if(j8(U)){if(!$.hasAttribute(U)){switch(typeof z){case"symbol":case"object":return z;case"function":return z;case"boolean":if(z===!1)return z}return z===void 0?void 0:null}if($=$.getAttribute(U),$===""&&z===!0)return!0;return L6(z,U),$===""+z?z:$}}function G9($,U,z){if(j8(U))if(z===null)$.removeAttribute(U);else{switch(typeof z){case"undefined":case"function":case"symbol":$.removeAttribute(U);return;case"boolean":var Q=U.toLowerCase().slice(0,5);if(Q!=="data-"&&Q!=="aria-"){$.removeAttribute(U);return}}L6(z,U),$.setAttribute(U,""+z)}}function W9($,U,z){if(z===null)$.removeAttribute(U);else{switch(typeof z){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(U);return}L6(z,U),$.setAttribute(U,""+z)}}function h0($,U,z,Q){if(Q===null)$.removeAttribute(z);else{switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":$.removeAttribute(z);return}L6(Q,z),$.setAttributeNS(U,z,""+Q)}}function j1($){switch(typeof $){case"bigint":case"boolean":case"number":case"string":case"undefined":return $;case"object":return k$($),$;default:return""}}function mK($){var U=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(U==="checkbox"||U==="radio")}function hv($,U,z){var Q=Object.getOwnPropertyDescriptor($.constructor.prototype,U);if(!$.hasOwnProperty(U)&&typeof Q<"u"&&typeof Q.get==="function"&&typeof Q.set==="function"){var{get:H,set:O}=Q;return Object.defineProperty($,U,{configurable:!0,get:function(){return H.call(this)},set:function(B){k$(B),z=""+B,O.call(this,B)}}),Object.defineProperty($,U,{enumerable:Q.enumerable}),{getValue:function(){return z},setValue:function(B){k$(B),z=""+B},stopTracking:function(){$._valueTracker=null,delete $[U]}}}}function t5($){if(!$._valueTracker){var U=mK($)?"checked":"value";$._valueTracker=hv($,U,""+$[U])}}function cK($){if(!$)return!1;var U=$._valueTracker;if(!U)return!0;var z=U.getValue(),Q="";return $&&(Q=mK($)?$.checked?"true":"false":$.value),$=Q,$!==z?(U.setValue($),!0):!1}function H9($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch(U){return $.body}}function A1($){return $.replace(lS,function(U){return"\\"+U.charCodeAt(0).toString(16)+" "})}function iK($,U){U.checked===void 0||U.defaultChecked===void 0||aA||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",f0()||"A component",U.type),aA=!0),U.value===void 0||U.defaultValue===void 0||tA||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",f0()||"A component",U.type),tA=!0)}function a5($,U,z,Q,H,O,B,L){if($.name="",B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"?(L6(B,"type"),$.type=B):$.removeAttribute("type"),U!=null)if(B==="number"){if(U===0&&$.value===""||$.value!=U)$.value=""+j1(U)}else $.value!==""+j1(U)&&($.value=""+j1(U));else B!=="submit"&&B!=="reset"||$.removeAttribute("value");U!=null?s5($,B,j1(U)):z!=null?s5($,B,j1(z)):Q!=null&&$.removeAttribute("value"),H==null&&O!=null&&($.defaultChecked=!!O),H!=null&&($.checked=H&&typeof H!=="function"&&typeof H!=="symbol"),L!=null&&typeof L!=="function"&&typeof L!=="symbol"&&typeof L!=="boolean"?(L6(L,"name"),$.name=""+j1(L)):$.removeAttribute("name")}function lK($,U,z,Q,H,O,B,L){if(O!=null&&typeof O!=="function"&&typeof O!=="symbol"&&typeof O!=="boolean"&&(L6(O,"type"),$.type=O),U!=null||z!=null){if(!(O!=="submit"&&O!=="reset"||U!==void 0&&U!==null)){t5($);return}z=z!=null?""+j1(z):"",U=U!=null?""+j1(U):z,L||U===$.value||($.value=U),$.defaultValue=U}Q=Q!=null?Q:H,Q=typeof Q!=="function"&&typeof Q!=="symbol"&&!!Q,$.checked=L?$.checked:!!Q,$.defaultChecked=!!Q,B!=null&&typeof B!=="function"&&typeof B!=="symbol"&&typeof B!=="boolean"&&(L6(B,"name"),$.name=B),t5($)}function s5($,U,z){U==="number"&&H9($.ownerDocument)===$||$.defaultValue===""+z||($.defaultValue=""+z)}function nK($,U){U.value==null&&(typeof U.children==="object"&&U.children!==null?oX.Children.forEach(U.children,function(z){z==null||typeof z==="string"||typeof z==="number"||typeof z==="bigint"||eA||(eA=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):U.dangerouslySetInnerHTML==null||$F||($F=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),U.selected==null||sA||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),sA=!0)}function dK(){var $=f0();return $?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+$+"`.":""}function pz($,U,z,Q){if($=$.options,U){U={};for(var H=0;H<z.length;H++)U["$"+z[H]]=!0;for(z=0;z<$.length;z++)H=U.hasOwnProperty("$"+$[z].value),$[z].selected!==H&&($[z].selected=H),H&&Q&&($[z].defaultSelected=!0)}else{z=""+j1(z),U=null;for(H=0;H<$.length;H++){if($[H].value===z){$[H].selected=!0,Q&&($[H].defaultSelected=!0);return}U!==null||$[H].disabled||(U=$[H])}U!==null&&(U.selected=!0)}}function pK($,U){for($=0;$<wF.length;$++){var z=wF[$];if(U[z]!=null){var Q=U4(U[z]);U.multiple&&!Q?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",z,dK()):!U.multiple&&Q&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",z,dK())}}U.value===void 0||U.defaultValue===void 0||UF||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),UF=!0)}function oK($,U){U.value===void 0||U.defaultValue===void 0||zF||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",f0()||"A component"),zF=!0),U.children!=null&&U.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function rK($,U,z){if(U!=null&&(U=""+j1(U),U!==$.value&&($.value=U),z==null)){$.defaultValue!==U&&($.defaultValue=U);return}$.defaultValue=z!=null?""+j1(z):""}function tK($,U,z,Q){if(U==null){if(Q!=null){if(z!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(U4(Q)){if(1<Q.length)throw Error("<textarea> can only have at most one child.");Q=Q[0]}z=Q}z==null&&(z=""),U=z}z=j1(U),$.defaultValue=z,Q=$.textContent,Q===z&&Q!==""&&Q!==null&&($.value=Q),t5($)}function aK($,U){return $.serverProps===void 0&&$.serverTail.length===0&&$.children.length===1&&3<$.distanceFromLeaf&&$.distanceFromLeaf>15-U?aK($.children[0],U):$}function t4($){return" "+" ".repeat($)}function oz($){return"+ "+" ".repeat($)}function gw($){return"- "+" ".repeat($)}function sK($){switch($.tag){case 26:case 27:case 5:return $.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return $=$.type,$.displayName||$.name||null;case 11:return $=$.type.render,$.displayName||$.name||null;case 1:return $=$.type,$.displayName||$.name||null;default:return null}}function A8($,U){return XF.test($)?($=JSON.stringify($),$.length>U-2?8>U?'{"..."}':"{"+$.slice(0,U-7)+'..."}':"{"+$+"}"):$.length>U?5>U?'{"..."}':$.slice(0,U-3)+"...":$}function O9($,U,z){var Q=120-2*z;if(U===null)return oz(z)+A8($,Q)+`
|
|
36
|
+
`;if(typeof U==="string"){for(var H=0;H<U.length&&H<$.length&&U.charCodeAt(H)===$.charCodeAt(H);H++);return H>Q-8&&10<H&&($="..."+$.slice(H-8),U="..."+U.slice(H-8)),oz(z)+A8($,Q)+`
|
|
37
|
+
`+gw(z)+A8(U,Q)+`
|
|
38
|
+
`}return t4(z)+A8($,Q)+`
|
|
39
|
+
`}function e5($){return Object.prototype.toString.call($).replace(/^\[object (.*)\]$/,function(U,z){return z})}function F8($,U){switch(typeof $){case"string":return $=JSON.stringify($),$.length>U?5>U?'"..."':$.slice(0,U-4)+'..."':$;case"object":if($===null)return"null";if(U4($))return"[...]";if($.$$typeof===j0)return(U=w$($.type))?"<"+U+">":"<...>";var z=e5($);if(z==="Object"){z="",U-=2;for(var Q in $)if($.hasOwnProperty(Q)){var H=JSON.stringify(Q);if(H!=='"'+Q+'"'&&(Q=H),U-=Q.length-2,H=F8($[Q],15>U?U:15),U-=H.length,0>U){z+=z===""?"...":", ...";break}z+=(z===""?"":",")+Q+":"+H}return"{"+z+"}"}return z;case"function":return(U=$.displayName||$.name)?"function "+U:"function";default:return String($)}}function rz($,U){return typeof $!=="string"||XF.test($)?"{"+F8($,U-2)+"}":$.length>U-2?5>U?'"..."':'"'+$.slice(0,U-5)+'..."':'"'+$+'"'}function $G($,U,z){var Q=120-z.length-$.length,H=[],O;for(O in U)if(U.hasOwnProperty(O)&&O!=="children"){var B=rz(U[O],120-z.length-O.length-1);Q-=O.length+B.length+2,H.push(O+"="+B)}return H.length===0?z+"<"+$+`>
|
|
40
|
+
`:0<Q?z+"<"+$+" "+H.join(" ")+`>
|
|
41
|
+
`:z+"<"+$+`
|
|
42
|
+
`+z+" "+H.join(`
|
|
43
|
+
`+z+" ")+`
|
|
44
|
+
`+z+`>
|
|
45
|
+
`}function uv($,U,z){var Q="",H=c$({},U),O;for(O in $)if($.hasOwnProperty(O)){delete H[O];var B=120-2*z-O.length-2,L=F8($[O],B);U.hasOwnProperty(O)?(B=F8(U[O],B),Q+=oz(z)+O+": "+L+`
|
|
46
|
+
`,Q+=gw(z)+O+": "+B+`
|
|
47
|
+
`):Q+=oz(z)+O+": "+L+`
|
|
48
|
+
`}for(var D in H)H.hasOwnProperty(D)&&($=F8(H[D],120-2*z-D.length-2),Q+=gw(z)+D+": "+$+`
|
|
49
|
+
`);return Q}function mv($,U,z,Q){var H="",O=new Map;for(F in z)z.hasOwnProperty(F)&&O.set(F.toLowerCase(),F);if(O.size===1&&O.has("children"))H+=$G($,U,t4(Q));else{for(var B in U)if(U.hasOwnProperty(B)&&B!=="children"){var L=120-2*(Q+1)-B.length-1,D=O.get(B.toLowerCase());if(D!==void 0){O.delete(B.toLowerCase());var F=U[B];D=z[D];var T=rz(F,L);L=rz(D,L),typeof F==="object"&&F!==null&&typeof D==="object"&&D!==null&&e5(F)==="Object"&&e5(D)==="Object"&&(2<Object.keys(F).length||2<Object.keys(D).length||-1<T.indexOf("...")||-1<L.indexOf("..."))?H+=t4(Q+1)+B+`={{
|
|
50
|
+
`+uv(F,D,Q+2)+t4(Q+1)+`}}
|
|
51
|
+
`:(H+=oz(Q+1)+B+"="+T+`
|
|
52
|
+
`,H+=gw(Q+1)+B+"="+L+`
|
|
53
|
+
`)}else H+=t4(Q+1)+B+"="+rz(U[B],L)+`
|
|
54
|
+
`}O.forEach(function(b){if(b!=="children"){var _=120-2*(Q+1)-b.length-1;H+=gw(Q+1)+b+"="+rz(z[b],_)+`
|
|
55
|
+
`}}),H=H===""?t4(Q)+"<"+$+`>
|
|
56
|
+
`:t4(Q)+"<"+$+`
|
|
57
|
+
`+H+t4(Q)+`>
|
|
58
|
+
`}if($=z.children,U=U.children,typeof $==="string"||typeof $==="number"||typeof $==="bigint"){if(O="",typeof U==="string"||typeof U==="number"||typeof U==="bigint")O=""+U;H+=O9(O,""+$,Q+1)}else if(typeof U==="string"||typeof U==="number"||typeof U==="bigint")H=$==null?H+O9(""+U,null,Q+1):H+O9(""+U,void 0,Q+1);return H}function eK($,U){var z=sK($);if(z===null){z="";for($=$.child;$;)z+=eK($,U),$=$.sibling;return z}return t4(U)+"<"+z+`>
|
|
59
|
+
`}function UG($,U){var z=aK($,U);if(z!==$&&($.children.length!==1||$.children[0]!==z))return t4(U)+`...
|
|
60
|
+
`+UG(z,U+1);z="";var Q=$.fiber._debugInfo;if(Q)for(var H=0;H<Q.length;H++){var O=Q[H].name;typeof O==="string"&&(z+=t4(U)+"<"+O+`>
|
|
61
|
+
`,U++)}if(Q="",H=$.fiber.pendingProps,$.fiber.tag===6)Q=O9(H,$.serverProps,U),U++;else if(O=sK($.fiber),O!==null)if($.serverProps===void 0){Q=U;var B=120-2*Q-O.length-2,L="";for(F in H)if(H.hasOwnProperty(F)&&F!=="children"){var D=rz(H[F],15);if(B-=F.length+D.length+2,0>B){L+=" ...";break}L+=" "+F+"="+D}Q=t4(Q)+"<"+O+L+`>
|
|
62
|
+
`,U++}else $.serverProps===null?(Q=$G(O,H,oz(U)),U++):typeof $.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(Q=mv(O,H,$.serverProps,U),U++);var F="";H=$.fiber.child;for(O=0;H&&O<$.children.length;)B=$.children[O],B.fiber===H?(F+=UG(B,U),O++):F+=eK(H,U),H=H.sibling;H&&0<$.children.length&&(F+=t4(U)+`...
|
|
63
|
+
`),H=$.serverTail,$.serverProps===null&&U--;for($=0;$<H.length;$++)O=H[$],F=typeof O==="string"?F+(gw(U)+A8(O,120-2*U)+`
|
|
64
|
+
`):F+$G(O.type,O.props,gw(U));return z+Q+F}function wG($){try{return`
|
|
65
|
+
|
|
66
|
+
`+UG($,0)}catch(U){return""}}function $2($,U,z){for(var Q=U,H=null,O=0;Q;)Q===$&&(O=0),H={fiber:Q,children:H!==null?[H]:[],serverProps:Q===U?z:Q===$?null:void 0,serverTail:[],distanceFromLeaf:O},O++,Q=Q.return;return H!==null?wG(H).replaceAll(/^[+-]/gm,">"):""}function U2($,U){var z=c$({},$||JF),Q={tag:U};if(YF.indexOf(U)!==-1&&(z.aTagInScope=null,z.buttonTagInScope=null,z.nobrTagInScope=null),dS.indexOf(U)!==-1&&(z.pTagInButtonScope=null),nS.indexOf(U)!==-1&&U!=="address"&&U!=="div"&&U!=="p"&&(z.listItemTagAutoclosing=null,z.dlItemTagAutoclosing=null),z.current=Q,U==="form"&&(z.formTag=Q),U==="a"&&(z.aTagInScope=Q),U==="button"&&(z.buttonTagInScope=Q),U==="nobr"&&(z.nobrTagInScope=Q),U==="p"&&(z.pTagInButtonScope=Q),U==="li"&&(z.listItemTagAutoclosing=Q),U==="dd"||U==="dt")z.dlItemTagAutoclosing=Q;return U==="#document"||U==="html"?z.containerTagInScope=null:z.containerTagInScope||(z.containerTagInScope=Q),$!==null||U!=="#document"&&U!=="html"&&U!=="body"?z.implicitRootScope===!0&&(z.implicitRootScope=!1):z.implicitRootScope=!0,z}function w2($,U,z){switch(U){case"select":return $==="hr"||$==="option"||$==="optgroup"||$==="script"||$==="template"||$==="#text";case"optgroup":return $==="option"||$==="#text";case"option":return $==="#text";case"tr":return $==="th"||$==="td"||$==="style"||$==="script"||$==="template";case"tbody":case"thead":case"tfoot":return $==="tr"||$==="style"||$==="script"||$==="template";case"colgroup":return $==="col"||$==="template";case"table":return $==="caption"||$==="colgroup"||$==="tbody"||$==="tfoot"||$==="thead"||$==="style"||$==="script"||$==="template";case"head":return $==="base"||$==="basefont"||$==="bgsound"||$==="link"||$==="meta"||$==="title"||$==="noscript"||$==="noframes"||$==="style"||$==="script"||$==="template";case"html":if(z)break;return $==="head"||$==="body"||$==="frameset";case"frameset":return $==="frame";case"#document":if(!z)return $==="html"}switch($){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return U!=="h1"&&U!=="h2"&&U!=="h3"&&U!=="h4"&&U!=="h5"&&U!=="h6";case"rp":case"rt":return pS.indexOf(U)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return U==null;case"head":return z||U===null;case"html":return z&&U==="#document"||U===null;case"body":return z&&(U==="#document"||U==="html")||U===null}return!0}function cv($,U){switch($){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return U.pTagInButtonScope;case"form":return U.formTag||U.pTagInButtonScope;case"li":return U.listItemTagAutoclosing;case"dd":case"dt":return U.dlItemTagAutoclosing;case"button":return U.buttonTagInScope;case"a":return U.aTagInScope;case"nobr":return U.nobrTagInScope}return null}function z2($,U){for(;$;){switch($.tag){case 5:case 26:case 27:if($.type===U)return $}$=$.return}return null}function zG($,U){U=U||JF;var z=U.current;if(U=(z=w2($,z&&z.tag,U.implicitRootScope)?null:z)?null:cv($,U),U=z||U,!U)return!0;var Q=U.tag;if(U=String(!!z)+"|"+$+"|"+Q,MQ[U])return!1;MQ[U]=!0;var H=(U=Y1)?z2(U.return,Q):null,O=U!==null&&H!==null?$2(H,U,null):"",B="<"+$+">";return z?(z="",Q==="table"&&$==="tr"&&(z+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
67
|
+
This will cause a hydration error.%s`,B,Q,z,O)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,B,Q,O),U&&($=U.return,H===null||$===null||H===$&&$._debugOwner===U._debugOwner||O$(H,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,Q,B)})),!1}function N9($,U,z){if(z||w2("#text",U,!1))return!0;if(z="#text|"+U,MQ[z])return!1;MQ[z]=!0;var Q=(z=Y1)?z2(z,U):null;return z=z!==null&&Q!==null?$2(Q,z,z.tag!==6?{children:null}:null):"",/\S/.test($)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
70
|
+
This will cause a hydration error.%s`,U,z):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
71
|
+
This will cause a hydration error.%s`,U,z),!1}function V8($,U){if(U){var z=$.firstChild;if(z&&z===$.lastChild&&z.nodeType===3){z.nodeValue=U;return}}$.textContent=U}function iv($){return $.replace(tS,function(U,z){return z.toUpperCase()})}function X2($,U,z){var Q=U.indexOf("--")===0;Q||(-1<U.indexOf("-")?LX.hasOwnProperty(U)&&LX[U]||(LX[U]=!0,console.error("Unsupported style property %s. Did you mean %s?",U,iv(U.replace(rS,"ms-")))):oS.test(U)?LX.hasOwnProperty(U)&&LX[U]||(LX[U]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",U,U.charAt(0).toUpperCase()+U.slice(1))):!WF.test(z)||jH.hasOwnProperty(z)&&jH[z]||(jH[z]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,U,z.replace(WF,""))),typeof z==="number"&&(isNaN(z)?HF||(HF=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",U)):isFinite(z)||OF||(OF=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",U)))),z==null||typeof z==="boolean"||z===""?Q?$.setProperty(U,""):U==="float"?$.cssFloat="":$[U]="":Q?$.setProperty(U,z):typeof z!=="number"||z===0||NF.has(U)?U==="float"?$.cssFloat=z:(K8(z,U),$[U]=(""+z).trim()):$[U]=z+"px"}function Y2($,U,z){if(U!=null&&typeof U!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(U&&Object.freeze(U),$=$.style,z!=null){if(U){var Q={};if(z){for(var H in z)if(z.hasOwnProperty(H)&&!U.hasOwnProperty(H))for(var O=DH[H]||[H],B=0;B<O.length;B++)Q[O[B]]=H}for(var L in U)if(U.hasOwnProperty(L)&&(!z||z[L]!==U[L]))for(H=DH[L]||[L],O=0;O<H.length;O++)Q[H[O]]=L;L={};for(var D in U)for(H=DH[D]||[D],O=0;O<H.length;O++)L[H[O]]=D;D={};for(var F in Q)if(H=Q[F],(O=L[F])&&H!==O&&(B=H+","+O,!D[B])){D[B]=!0,B=console;var T=U[H];B.error.call(B,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",T==null||typeof T==="boolean"||T===""?"Removing":"Updating",H,O)}}for(var b in z)!z.hasOwnProperty(b)||U!=null&&U.hasOwnProperty(b)||(b.indexOf("--")===0?$.setProperty(b,""):b==="float"?$.cssFloat="":$[b]="");for(var _ in U)F=U[_],U.hasOwnProperty(_)&&z[_]!==F&&X2($,_,F)}else for(Q in U)U.hasOwnProperty(Q)&&X2($,Q,U[Q])}function E8($){if($.indexOf("-")===-1)return!1;switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function J2($){return aS.get($)||$}function lv($,U){if(m1.call(DX,U)&&DX[U])return!0;if(eS.test(U)){if($="aria-"+U.slice(4).toLowerCase(),$=BF.hasOwnProperty($)?$:null,$==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",U),DX[U]=!0;if(U!==$)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",U,$),DX[U]=!0}if(sS.test(U)){if($=U.toLowerCase(),$=BF.hasOwnProperty($)?$:null,$==null)return DX[U]=!0,!1;U!==$&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",U,$),DX[U]=!0)}return!0}function nv($,U){var z=[],Q;for(Q in U)lv($,Q)||z.push(Q);U=z.map(function(H){return"`"+H+"`"}).join(", "),z.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",U,$):1<z.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",U,$)}function dv($,U,z,Q){if(m1.call(R4,U)&&R4[U])return!0;var H=U.toLowerCase();if(H==="onfocusin"||H==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),R4[U]=!0;if(typeof z==="function"&&($==="form"&&U==="action"||$==="input"&&U==="formAction"||$==="button"&&U==="formAction"))return!0;if(Q!=null){if($=Q.possibleRegistrationNames,Q.registrationNameDependencies.hasOwnProperty(U))return!0;if(Q=$.hasOwnProperty(H)?$[H]:null,Q!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",U,Q),R4[U]=!0;if(LF.test(U))return console.error("Unknown event handler property `%s`. It will be ignored.",U),R4[U]=!0}else if(LF.test(U))return $T.test(U)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",U),R4[U]=!0;if(UT.test(U)||wT.test(U))return!0;if(H==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),R4[U]=!0;if(H==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),R4[U]=!0;if(H==="is"&&z!==null&&z!==void 0&&typeof z!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof z),R4[U]=!0;if(typeof z==="number"&&isNaN(z))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",U),R4[U]=!0;if(IQ.hasOwnProperty(H)){if(H=IQ[H],H!==U)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",U,H),R4[U]=!0}else if(U!==H)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",U,H),R4[U]=!0;switch(U){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof z){case"boolean":switch(U){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(H=U.toLowerCase().slice(0,5),H==="data-"||H==="aria-")return!0;return z?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',z,U,U,z,U):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',z,U,U,z,U,U,U),R4[U]=!0}case"function":case"symbol":return R4[U]=!0,!1;case"string":if(z==="false"||z==="true"){switch(U){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",z,U,z==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',U,z),R4[U]=!0}}return!0}function pv($,U,z){var Q=[],H;for(H in U)dv($,H,U[H],z)||Q.push(H);U=Q.map(function(O){return"`"+O+"`"}).join(", "),Q.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",U,$):1<Q.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",U,$)}function M8($){return zT.test(""+$)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":$}function u0(){}function XG($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}function Q2($){var U=S$($);if(U&&($=U.stateNode)){var z=$[M4]||null;$:switch($=U.stateNode,U.type){case"input":if(a5($,z.value,z.defaultValue,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name),U=z.name,z.type==="radio"&&U!=null){for(z=$;z.parentNode;)z=z.parentNode;L6(U,"name"),z=z.querySelectorAll('input[name="'+A1(""+U)+'"][type="radio"]');for(U=0;U<z.length;U++){var Q=z[U];if(Q!==$&&Q.form===$.form){var H=Q[M4]||null;if(!H)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");a5(Q,H.value,H.defaultValue,H.defaultValue,H.checked,H.defaultChecked,H.type,H.name)}}for(U=0;U<z.length;U++)Q=z[U],Q.form===$.form&&cK(Q)}break $;case"textarea":rK($,z.value,z.defaultValue);break $;case"select":U=z.value,U!=null&&pz($,!!z.multiple,U,!1)}}}function G2($,U,z){if(AH)return $(U,z);AH=!0;try{var Q=$(U);return Q}finally{if(AH=!1,jX!==null||AX!==null){if(YX(),jX&&(U=jX,$=AX,AX=jX=null,Q2(U),$))for(U=0;U<$.length;U++)Q2($[U])}}}function R8($,U){var z=$.stateNode;if(z===null)return null;var Q=z[M4]||null;if(Q===null)return null;z=Q[U];$:switch(U){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Q=!Q.disabled)||($=$.type,Q=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!Q;break $;default:$=!1}if($)return null;if(z&&typeof z!=="function")throw Error("Expected `"+U+"` listener to be a function, instead got a value of `"+typeof z+"` type.");return z}function W2(){if(_Q)return _Q;var $,U=VH,z=U.length,Q,H="value"in rU?rU.value:rU.textContent,O=H.length;for($=0;$<z&&U[$]===H[$];$++);var B=z-$;for(Q=1;Q<=B&&U[z-Q]===H[O-Q];Q++);return _Q=H.slice($,1<Q?1-Q:void 0)}function B9($){var U=$.keyCode;return"charCode"in $?($=$.charCode,$===0&&U===13&&($=13)):$=U,$===10&&($=13),32<=$||$===13?$:0}function q9(){return!0}function H2(){return!1}function g4($){function U(z,Q,H,O,B){this._reactName=z,this._targetInst=H,this.type=Q,this.nativeEvent=O,this.target=B,this.currentTarget=null;for(var L in $)$.hasOwnProperty(L)&&(z=$[L],this[L]=z?z(O):O[L]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?q9:H2,this.isPropagationStopped=H2,this}return c$(U.prototype,{preventDefault:function(){this.defaultPrevented=!0;var z=this.nativeEvent;z&&(z.preventDefault?z.preventDefault():typeof z.returnValue!=="unknown"&&(z.returnValue=!1),this.isDefaultPrevented=q9)},stopPropagation:function(){var z=this.nativeEvent;z&&(z.stopPropagation?z.stopPropagation():typeof z.cancelBubble!=="unknown"&&(z.cancelBubble=!0),this.isPropagationStopped=q9)},persist:function(){},isPersistent:q9}),U}function ov($){var U=this.nativeEvent;return U.getModifierState?U.getModifierState($):($=KT[$])?!!U[$]:!1}function YG(){return ov}function O2($,U){switch($){case"keyup":return vT.indexOf(U.keyCode)!==-1;case"keydown":return U.keyCode!==AF;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N2($){return $=$.detail,typeof $==="object"&&"data"in $?$.data:null}function rv($,U){switch($){case"compositionend":return N2(U);case"keypress":if(U.which!==VF)return null;return MF=!0,EF;case"textInput":return $=U.data,$===EF&&MF?null:$;default:return null}}function tv($,U){if(FX)return $==="compositionend"||!IH&&O2($,U)?($=W2(),_Q=VH=rU=null,FX=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(U.ctrlKey||U.altKey||U.metaKey)||U.ctrlKey&&U.altKey){if(U.char&&1<U.char.length)return U.char;if(U.which)return String.fromCharCode(U.which)}return null;case"compositionend":return FF&&U.locale!=="ko"?null:U.data;default:return null}}function B2($){var U=$&&$.nodeName&&$.nodeName.toLowerCase();return U==="input"?!!ST[$.type]:U==="textarea"?!0:!1}function av($){if(!R0)return!1;$="on"+$;var U=$ in document;return U||(U=document.createElement("div"),U.setAttribute($,"return;"),U=typeof U[$]==="function"),U}function q2($,U,z,Q){jX?AX?AX.push(Q):AX=[Q]:jX=Q,U=JQ(U,"onChange"),0<U.length&&(z=new PQ("onChange","change",null,z,Q),$.push({event:z,listeners:U}))}function sv($){tj($,0)}function L9($){var U=T$($);if(cK(U))return $}function L2($,U){if($==="change")return U}function K2(){WY&&(WY.detachEvent("onpropertychange",D2),HY=WY=null)}function D2($){if($.propertyName==="value"&&L9(HY)){var U=[];q2(U,HY,$,XG($)),G2(sv,U)}}function ev($,U,z){$==="focusin"?(K2(),WY=U,HY=z,WY.attachEvent("onpropertychange",D2)):$==="focusout"&&K2()}function $Z($){if($==="selectionchange"||$==="keyup"||$==="keydown")return L9(HY)}function UZ($,U){if($==="click")return L9(U)}function wZ($,U){if($==="input"||$==="change")return L9(U)}function zZ($,U){return $===U&&($!==0||1/$===1/U)||$!==$&&U!==U}function I8($,U){if(I4($,U))return!0;if(typeof $!=="object"||$===null||typeof U!=="object"||U===null)return!1;var z=Object.keys($),Q=Object.keys(U);if(z.length!==Q.length)return!1;for(Q=0;Q<z.length;Q++){var H=z[Q];if(!m1.call(U,H)||!I4($[H],U[H]))return!1}return!0}function j2($){for(;$&&$.firstChild;)$=$.firstChild;return $}function A2($,U){var z=j2($);$=0;for(var Q;z;){if(z.nodeType===3){if(Q=$+z.textContent.length,$<=U&&Q>=U)return{node:z,offset:U-$};$=Q}$:{for(;z;){if(z.nextSibling){z=z.nextSibling;break $}z=z.parentNode}z=void 0}z=j2(z)}}function F2($,U){return $&&U?$===U?!0:$&&$.nodeType===3?!1:U&&U.nodeType===3?F2($,U.parentNode):("contains"in $)?$.contains(U):$.compareDocumentPosition?!!($.compareDocumentPosition(U)&16):!1:!1}function V2($){$=$!=null&&$.ownerDocument!=null&&$.ownerDocument.defaultView!=null?$.ownerDocument.defaultView:window;for(var U=H9($.document);U instanceof $.HTMLIFrameElement;){try{var z=typeof U.contentWindow.location.href==="string"}catch(Q){z=!1}if(z)$=U.contentWindow;else break;U=H9($.document)}return U}function JG($){var U=$&&$.nodeName&&$.nodeName.toLowerCase();return U&&(U==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||U==="textarea"||$.contentEditable==="true")}function E2($,U,z){var Q=z.window===z?z.document:z.nodeType===9?z:z.ownerDocument;PH||VX==null||VX!==H9(Q)||(Q=VX,("selectionStart"in Q)&&JG(Q)?Q={start:Q.selectionStart,end:Q.selectionEnd}:(Q=(Q.ownerDocument&&Q.ownerDocument.defaultView||window).getSelection(),Q={anchorNode:Q.anchorNode,anchorOffset:Q.anchorOffset,focusNode:Q.focusNode,focusOffset:Q.focusOffset}),OY&&I8(OY,Q)||(OY=Q,Q=JQ(_H,"onSelect"),0<Q.length&&(U=new PQ("onSelect","select",null,U,z),$.push({event:U,listeners:Q}),U.target=VX)))}function yw($,U){var z={};return z[$.toLowerCase()]=U.toLowerCase(),z["Webkit"+$]="webkit"+U,z["Moz"+$]="moz"+U,z}function fw($){if(vH[$])return vH[$];if(!EX[$])return $;var U=EX[$],z;for(z in U)if(U.hasOwnProperty(z)&&z in IF)return vH[$]=U[z];return $}function f1($,U){SF.set($,U),K4(U,[$])}function XZ($){for(var U=ZQ,z=0;z<$.length;z++){var Q=$[z];if(typeof Q==="object"&&Q!==null)if(U4(Q)&&Q.length===2&&typeof Q[0]==="string"){if(U!==ZQ&&U!==CH)return TH;U=CH}else return TH;else{if(typeof Q==="function"||typeof Q==="string"&&50<Q.length||U!==ZQ&&U!==bH)return TH;U=bH}}return U}function QG($,U,z,Q){for(var H in $)m1.call($,H)&&H[0]!=="_"&&w0(H,$[H],U,z,Q)}function w0($,U,z,Q,H){switch(typeof U){case"object":if(U===null){U="null";break}else{if(U.$$typeof===j0){var O=w$(U.type)||"…",B=U.key;U=U.props;var L=Object.keys(U),D=L.length;if(B==null&&D===0){U="<"+O+" />";break}if(3>Q||D===1&&L[0]==="children"&&B==null){U="<"+O+" … />";break}z.push([H+" ".repeat(Q)+$,"<"+O]),B!==null&&w0("key",B,z,Q+1,H),$=!1;for(var F in U)F==="children"?U.children!=null&&(!U4(U.children)||0<U.children.length)&&($=!0):m1.call(U,F)&&F[0]!=="_"&&w0(F,U[F],z,Q+1,H);z.push(["",$?">…</"+O+">":"/>"]);return}if(O=Object.prototype.toString.call(U),O=O.slice(8,O.length-1),O==="Array"){if(F=XZ(U),F===bH||F===ZQ){U=JSON.stringify(U);break}else if(F===CH){z.push([H+" ".repeat(Q)+$,""]);for($=0;$<U.length;$++)O=U[$],w0(O[0],O[1],z,Q+1,H);return}}if(O==="Promise"){if(U.status==="fulfilled"){if(O=z.length,w0($,U.value,z,Q,H),z.length>O){z=z[O],z[1]="Promise<"+(z[1]||"Object")+">";return}}else if(U.status==="rejected"&&(O=z.length,w0($,U.reason,z,Q,H),z.length>O)){z=z[O],z[1]="Rejected Promise<"+z[1]+">";return}z.push([" ".repeat(Q)+$,"Promise"]);return}O==="Object"&&(F=Object.getPrototypeOf(U))&&typeof F.constructor==="function"&&(O=F.constructor.name),z.push([H+" ".repeat(Q)+$,O==="Object"?3>Q?"":"…":O]),3>Q&&QG(U,z,Q+1,H);return}case"function":U=U.name===""?"() => {}":U.name+"() {}";break;case"string":U=U===yT?"…":JSON.stringify(U);break;case"undefined":U="undefined";break;case"boolean":U=U?"true":"false";break;default:U=String(U)}z.push([H+" ".repeat(Q)+$,U])}function M2($,U,z,Q){var H=!0;for(B in $)B in U||(z.push([SQ+" ".repeat(Q)+B,"…"]),H=!1);for(var O in U)if(O in $){var B=$[O],L=U[O];if(B!==L){if(Q===0&&O==="children")H=" ".repeat(Q)+O,z.push([SQ+H,"…"],[TQ+H,"…"]);else{if(!(3<=Q)){if(typeof B==="object"&&typeof L==="object"&&B!==null&&L!==null&&B.$$typeof===L.$$typeof)if(L.$$typeof===j0){if(B.type===L.type&&B.key===L.key){B=w$(L.type)||"…",H=" ".repeat(Q)+O,B="<"+B+" … />",z.push([SQ+H,B],[TQ+H,B]),H=!1;continue}}else{var D=Object.prototype.toString.call(B),F=Object.prototype.toString.call(L);if(D===F&&(F==="[object Object]"||F==="[object Array]")){D=[CF+" ".repeat(Q)+O,F==="[object Array]"?"Array":""],z.push(D),F=z.length,M2(B,L,z,Q+1)?F===z.length&&(D[1]="Referentially unequal but deeply equal objects. Consider memoization."):H=!1;continue}}else if(typeof B==="function"&&typeof L==="function"&&B.name===L.name&&B.length===L.length&&(D=Function.prototype.toString.call(B),F=Function.prototype.toString.call(L),D===F)){B=L.name===""?"() => {}":L.name+"() {}",z.push([CF+" ".repeat(Q)+O,B+" Referentially unequal function closure. Consider memoization."]);continue}}w0(O,B,z,Q,SQ),w0(O,L,z,Q,TQ)}H=!1}}else z.push([TQ+" ".repeat(Q)+O,"…"]),H=!1;return H}function a4($){l$=$&63?"Blocking":$&64?"Gesture":$&4194176?"Transition":$&62914560?"Suspense":$&2080374784?"Idle":"Other"}function z0($,U,z,Q){P6&&(aU.start=U,aU.end=z,r0.color="warning",r0.tooltipText=Q,r0.properties=null,($=$._debugTask)?$.run(performance.measure.bind(performance,Q,aU)):performance.measure(Q,aU))}function K9($,U,z){z0($,U,z,"Reconnect")}function D9($,U,z,Q,H){var O=r($);if(O!==null&&P6){var{alternate:B,actualDuration:L}=$;if(B===null||B.child!==$.child)for(var D=$.child;D!==null;D=D.sibling)L-=D.actualDuration;Q=0.5>L?Q?"tertiary-light":"primary-light":10>L?Q?"tertiary":"primary":100>L?Q?"tertiary-dark":"primary-dark":"error";var F=$.memoizedProps;L=$._debugTask,F!==null&&B!==null&&B.memoizedProps!==F?(D=[fT],F=M2(B.memoizedProps,F,D,0),1<D.length&&(F&&!tU&&(B.lanes&H)===0&&100<$.actualDuration?(tU=!0,D[0]=hT,r0.color="warning",r0.tooltipText=kF):(r0.color=Q,r0.tooltipText=O),r0.properties=D,aU.start=U,aU.end=z,L!=null?L.run(performance.measure.bind(performance,""+O,aU)):performance.measure(""+O,aU))):L!=null?L.run(console.timeStamp.bind(console,O,U,z,V1,void 0,Q)):console.timeStamp(O,U,z,V1,void 0,Q)}}function GG($,U,z,Q){if(P6){var H=r($);if(H!==null){for(var O=null,B=[],L=0;L<Q.length;L++){var D=Q[L];O==null&&D.source!==null&&(O=D.source._debugTask),D=D.value,B.push(["Error",typeof D==="object"&&D!==null&&typeof D.message==="string"?String(D.message):String(D)])}$.key!==null&&w0("key",$.key,B,0,""),$.memoizedProps!==null&&QG($.memoizedProps,B,0,""),O==null&&(O=$._debugTask),$={start:U,end:z,detail:{devtools:{color:"error",track:V1,tooltipText:$.tag===13?"Hydration failed":"Error boundary caught an error",properties:B}}},O?O.run(performance.measure.bind(performance,""+H,$)):performance.measure(""+H,$)}}}function X0($,U,z,Q,H){if(H!==null){if(P6){var O=r($);if(O!==null){Q=[];for(var B=0;B<H.length;B++){var L=H[B].value;Q.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$.key!==null&&w0("key",$.key,Q,0,""),$.memoizedProps!==null&&QG($.memoizedProps,Q,0,""),U={start:U,end:z,detail:{devtools:{color:"error",track:V1,tooltipText:"A lifecycle or effect errored",properties:Q}}},($=$._debugTask)?$.run(performance.measure.bind(performance,""+O,U)):performance.measure(""+O,U)}}}else O=r($),O!==null&&P6&&(H=1>Q?"secondary-light":100>Q?"secondary":500>Q?"secondary-dark":"error",($=$._debugTask)?$.run(console.timeStamp.bind(console,O,U,z,V1,void 0,H)):console.timeStamp(O,U,z,V1,void 0,H))}function YZ($,U,z,Q){if(P6&&!(U<=$)){var H=(z&738197653)===z?"tertiary-dark":"primary-dark";z=(z&536870912)===z?"Prepared":(z&201326741)===z?"Hydrated":"Render",Q?Q.run(console.timeStamp.bind(console,z,$,U,l$,i$,H)):console.timeStamp(z,$,U,l$,i$,H)}}function R2($,U,z,Q){!P6||U<=$||(z=(z&738197653)===z?"tertiary-dark":"primary-dark",Q?Q.run(console.timeStamp.bind(console,"Prewarm",$,U,l$,i$,z)):console.timeStamp("Prewarm",$,U,l$,i$,z))}function I2($,U,z,Q){!P6||U<=$||(z=(z&738197653)===z?"tertiary-dark":"primary-dark",Q?Q.run(console.timeStamp.bind(console,"Suspended",$,U,l$,i$,z)):console.timeStamp("Suspended",$,U,l$,i$,z))}function JZ($,U,z,Q,H,O){if(P6&&!(U<=$)){z=[];for(var B=0;B<Q.length;B++){var L=Q[B].value;z.push(["Recoverable Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$={start:$,end:U,detail:{devtools:{color:"primary-dark",track:l$,trackGroup:i$,tooltipText:H?"Hydration Failed":"Recovered after Error",properties:z}}},O?O.run(performance.measure.bind(performance,"Recovered",$)):performance.measure("Recovered",$)}}function WG($,U,z,Q){!P6||U<=$||(Q?Q.run(console.timeStamp.bind(console,"Errored",$,U,l$,i$,"error")):console.timeStamp("Errored",$,U,l$,i$,"error"))}function QZ($,U,z,Q){!P6||U<=$||(Q?Q.run(console.timeStamp.bind(console,z,$,U,l$,i$,"secondary-light")):console.timeStamp(z,$,U,l$,i$,"secondary-light"))}function _2($,U,z,Q,H){if(P6&&!(U<=$)){for(var O=[],B=0;B<z.length;B++){var L=z[B].value;O.push(["Error",typeof L==="object"&&L!==null&&typeof L.message==="string"?String(L.message):String(L)])}$={start:$,end:U,detail:{devtools:{color:"error",track:l$,trackGroup:i$,tooltipText:Q?"Remaining Effects Errored":"Commit Errored",properties:O}}},H?H.run(performance.measure.bind(performance,"Errored",$)):performance.measure("Errored",$)}}function _8($,U,z){!P6||U<=$||(z?z.run(console.timeStamp.bind(console,"Animating",$,U,l$,i$,"secondary-dark")):console.timeStamp("Animating",$,U,l$,i$,"secondary-dark"))}function j9(){for(var $=MX,U=kH=MX=0;U<$;){var z=E1[U];E1[U++]=null;var Q=E1[U];E1[U++]=null;var H=E1[U];E1[U++]=null;var O=E1[U];if(E1[U++]=null,Q!==null&&H!==null){var B=Q.pending;B===null?H.next=H:(H.next=B.next,B.next=H),Q.pending=H}O!==0&&P2(z,H,O)}}function A9($,U,z,Q){E1[MX++]=$,E1[MX++]=U,E1[MX++]=z,E1[MX++]=Q,kH|=Q,$.lanes|=Q,$=$.alternate,$!==null&&($.lanes|=Q)}function HG($,U,z,Q){return A9($,U,z,Q),F9($)}function D4($,U){return A9($,null,null,U),F9($)}function P2($,U,z){$.lanes|=z;var Q=$.alternate;Q!==null&&(Q.lanes|=z);for(var H=!1,O=$.return;O!==null;)O.childLanes|=z,Q=O.alternate,Q!==null&&(Q.childLanes|=z),O.tag===22&&($=O.stateNode,$===null||$._visibility&NY||(H=!0)),$=O,O=O.return;return $.tag===3?(O=$.stateNode,H&&U!==null&&(H=31-E4(z),$=O.hiddenUpdates,Q=$[H],Q===null?$[H]=[U]:Q.push(U),U.lane=z|536870912),O):null}function F9($){if(hY>$b)throw Bz=hY=0,uY=BO=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Bz>Ub&&(Bz=0,uY=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),$.alternate===null&&($.flags&4098)!==0&&ij($);for(var U=$,z=U.return;z!==null;)U.alternate===null&&(U.flags&4098)!==0&&ij($),U=z,z=U.return;return U.tag===3?U.stateNode:null}function hw($){if(M1===null)return $;var U=M1($);return U===void 0?$:U.current}function OG($){if(M1===null)return $;var U=M1($);return U===void 0?$!==null&&$!==void 0&&typeof $.render==="function"&&(U=hw($.render),$.render!==U)?(U={$$typeof:$Y,render:U},$.displayName!==void 0&&(U.displayName=$.displayName),U):$:U.current}function v2($,U){if(M1===null)return!1;var z=$.elementType;U=U.type;var Q=!1,H=typeof U==="object"&&U!==null?U.$$typeof:null;switch($.tag){case 1:typeof U==="function"&&(Q=!0);break;case 0:typeof U==="function"?Q=!0:H===X1&&(Q=!0);break;case 11:H===$Y?Q=!0:H===X1&&(Q=!0);break;case 14:case 15:H===DQ?Q=!0:H===X1&&(Q=!0);break;default:return!1}return Q&&($=M1(z),$!==void 0&&$===M1(U))?!0:!1}function Z2($){M1!==null&&typeof WeakSet==="function"&&(RX===null&&(RX=new WeakSet),RX.add($))}function S2($,U,z){do{var Q=$,H=Q.alternate,O=Q.child,B=Q.sibling,L=Q.tag;Q=Q.type;var D=null;switch(L){case 0:case 15:case 1:D=Q;break;case 11:D=Q.render}if(M1===null)throw Error("Expected resolveFamily to be set during hot reload.");var F=!1;if(Q=!1,D!==null&&(D=M1(D),D!==void 0&&(z.has(D)?Q=!0:U.has(D)&&(L===1?Q=!0:F=!0))),RX!==null&&(RX.has($)||H!==null&&RX.has(H))&&(Q=!0),Q&&($._debugNeedsRemount=!0),Q||F)H=D4($,2),H!==null&&f6(H,$,2);if(O===null||Q||S2(O,U,z),B===null)break;$=B}while(1)}function GZ($,U,z,Q){this.tag=$,this.key=z,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=U,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Q,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,xF||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function NG($){return $=$.prototype,!(!$||!$.isReactComponent)}function m0($,U){var z=$.alternate;switch(z===null?(z=Z($.tag,U,$.key,$.mode),z.elementType=$.elementType,z.type=$.type,z.stateNode=$.stateNode,z._debugOwner=$._debugOwner,z._debugStack=$._debugStack,z._debugTask=$._debugTask,z._debugHookTypes=$._debugHookTypes,z.alternate=$,$.alternate=z):(z.pendingProps=U,z.type=$.type,z.flags=0,z.subtreeFlags=0,z.deletions=null,z.actualDuration=-0,z.actualStartTime=-1.1),z.flags=$.flags&65011712,z.childLanes=$.childLanes,z.lanes=$.lanes,z.child=$.child,z.memoizedProps=$.memoizedProps,z.memoizedState=$.memoizedState,z.updateQueue=$.updateQueue,U=$.dependencies,z.dependencies=U===null?null:{lanes:U.lanes,firstContext:U.firstContext,_debugThenableState:U._debugThenableState},z.sibling=$.sibling,z.index=$.index,z.ref=$.ref,z.refCleanup=$.refCleanup,z.selfBaseDuration=$.selfBaseDuration,z.treeBaseDuration=$.treeBaseDuration,z._debugInfo=$._debugInfo,z._debugNeedsRemount=$._debugNeedsRemount,z.tag){case 0:case 15:z.type=hw($.type);break;case 1:z.type=hw($.type);break;case 11:z.type=OG($.type)}return z}function T2($,U){$.flags&=65011714;var z=$.alternate;return z===null?($.childLanes=0,$.lanes=U,$.child=null,$.subtreeFlags=0,$.memoizedProps=null,$.memoizedState=null,$.updateQueue=null,$.dependencies=null,$.stateNode=null,$.selfBaseDuration=0,$.treeBaseDuration=0):($.childLanes=z.childLanes,$.lanes=z.lanes,$.child=z.child,$.subtreeFlags=0,$.deletions=null,$.memoizedProps=z.memoizedProps,$.memoizedState=z.memoizedState,$.updateQueue=z.updateQueue,$.type=z.type,U=z.dependencies,$.dependencies=U===null?null:{lanes:U.lanes,firstContext:U.firstContext,_debugThenableState:U._debugThenableState},$.selfBaseDuration=z.selfBaseDuration,$.treeBaseDuration=z.treeBaseDuration),$}function BG($,U,z,Q,H,O){var B=0,L=$;if(typeof $==="function")NG($)&&(B=1),L=hw(L);else if(typeof $==="string")B=E$(),B=DS($,z,B)?26:$==="html"||$==="head"||$==="body"?27:5;else $:switch($){case YH:return U=Z(31,z,U,H),U.elementType=YH,U.lanes=O,U;case NX:return uw(z.children,H,O,U);case KQ:B=8,H|=A4,H|=i1;break;case UH:return $=z,Q=H,typeof $.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof $.id),U=Z(12,$,U,Q|x$),U.elementType=UH,U.lanes=O,U.stateNode={effectDuration:0,passiveEffectDuration:0},U;case zH:return U=Z(13,z,U,H),U.elementType=zH,U.lanes=O,U;case XH:return U=Z(19,z,U,H),U.elementType=XH,U.lanes=O,U;default:if(typeof $==="object"&&$!==null)switch($.$$typeof){case A0:B=10;break $;case wH:B=9;break $;case $Y:B=11,L=OG(L);break $;case DQ:B=14;break $;case X1:B=16,L=null;break $}if(L="",$===void 0||typeof $==="object"&&$!==null&&Object.keys($).length===0)L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";$===null?z="null":U4($)?z="array":$!==void 0&&$.$$typeof===j0?(z="<"+(w$($.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):z=typeof $,(B=Q?e$(Q):null)&&(L+=`
|
|
72
|
+
|
|
73
|
+
Check the render method of \``+B+"`."),B=29,z=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(z+"."+L)),L=null}return U=Z(B,z,U,H),U.elementType=$,U.type=L,U.lanes=O,U._debugOwner=Q,U}function V9($,U,z){return U=BG($.type,$.key,$.props,$._owner,U,z),U._debugOwner=$._owner,U._debugStack=$._debugStack,U._debugTask=$._debugTask,U}function uw($,U,z,Q){return $=Z(7,$,Q,U),$.lanes=z,$}function qG($,U,z){return $=Z(6,$,null,U),$.lanes=z,$}function b2($){var U=Z(18,null,null,I$);return U.stateNode=$,U}function LG($,U,z){return U=Z(4,$.children!==null?$.children:[],$.key,U),U.lanes=z,U.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},U}function s4($,U){if(typeof $==="object"&&$!==null){var z=xH.get($);if(z!==void 0)return z;return U={value:$,source:U,stack:o4(U)},xH.set($,U),U}return{value:$,source:U,stack:o4(U)}}function c0($,U){CU(),IX[_X++]=BY,IX[_X++]=bQ,bQ=$,BY=U}function C2($,U,z){CU(),R1[I1++]=a0,R1[I1++]=s0,R1[I1++]=ew,ew=$;var Q=a0;$=s0;var H=32-E4(Q)-1;Q&=~(1<<H),z+=1;var O=32-E4(U)+H;if(30<O){var B=H-H%5;O=(Q&(1<<B)-1).toString(32),Q>>=B,H-=B,a0=1<<32-E4(U)+H|z<<H|Q,s0=O+$}else a0=1<<O|z<<H|Q,s0=$}function KG($){CU(),$.return!==null&&(c0($,1),C2($,1,0))}function DG($){for(;$===bQ;)bQ=IX[--_X],IX[_X]=null,BY=IX[--_X],IX[_X]=null;for(;$===ew;)ew=R1[--I1],R1[I1]=null,s0=R1[--I1],R1[I1]=null,a0=R1[--I1],R1[I1]=null}function k2(){return CU(),ew!==null?{id:a0,overflow:s0}:null}function x2($,U){CU(),R1[I1++]=a0,R1[I1++]=s0,R1[I1++]=ew,a0=U.id,s0=U.overflow,ew=$}function CU(){d$||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function mw($,U){if($.return===null){if(Q1===null)Q1={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:U};else{if(Q1.fiber!==$)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Q1.distanceFromLeaf>U&&(Q1.distanceFromLeaf=U)}return Q1}var z=mw($.return,U+1).children;if(0<z.length&&z[z.length-1].fiber===$)return z=z[z.length-1],z.distanceFromLeaf>U&&(z.distanceFromLeaf=U),z;return U={fiber:$,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:U},z.push(U),U}function g2(){d$&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function E9($,U){I0||($=mw($,0),$.serverProps=null,U!==null&&(U=qA(U),$.serverTail.push(U)))}function kU($){var U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,z="",Q=Q1;throw Q!==null&&(Q1=null,z=wG(Q)),P8(s4(Error("Hydration failed because the server rendered "+(U?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
74
|
+
|
|
75
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
76
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
77
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
78
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
79
|
+
- Invalid HTML tag nesting.
|
|
80
|
+
|
|
81
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
82
|
+
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+z),$)),gH}function y2($){var{stateNode:U,type:z,memoizedProps:Q}=$;switch(U[q4]=$,U[M4]=Q,yW(z,Q),z){case"dialog":o$("cancel",U),o$("close",U);break;case"iframe":case"object":case"embed":o$("load",U);break;case"video":case"audio":for(z=0;z<mY.length;z++)o$(mY[z],U);break;case"source":o$("error",U);break;case"img":case"image":case"link":o$("error",U),o$("load",U);break;case"details":o$("toggle",U);break;case"input":bU("input",Q),o$("invalid",U),iK(U,Q),lK(U,Q.value,Q.defaultValue,Q.checked,Q.defaultChecked,Q.type,Q.name,!0);break;case"option":nK(U,Q);break;case"select":bU("select",Q),o$("invalid",U),pK(U,Q);break;case"textarea":bU("textarea",Q),o$("invalid",U),oK(U,Q),tK(U,Q.value,Q.defaultValue,Q.children)}z=Q.children,typeof z!=="string"&&typeof z!=="number"&&typeof z!=="bigint"||U.textContent===""+z||Q.suppressHydrationWarning===!0||$A(U.textContent,z)?(Q.popover!=null&&(o$("beforetoggle",U),o$("toggle",U)),Q.onScroll!=null&&o$("scroll",U),Q.onScrollEnd!=null&&o$("scrollend",U),Q.onClick!=null&&(U.onclick=u0),U=!0):U=!1,U||kU($,!0)}function f2($){for(L4=$.return;L4;)switch(L4.tag){case 5:case 31:case 13:_1=!1;return;case 27:case 3:_1=!0;return;default:L4=L4.return}}function tz($){if($!==L4)return!1;if(!d$)return f2($),d$=!0,!1;var U=$.tag,z;if(z=U!==3&&U!==27){if(z=U===5)z=$.type,z=!(z!=="form"&&z!=="button")||cW($.type,$.memoizedProps);z=!z}if(z&&v6){for(z=v6;z;){var Q=mw($,0),H=qA(z);Q.serverTail.push(H),z=H.type==="Suspense"?dW(z):z1(z.nextSibling)}kU($)}if(f2($),U===13){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v6=dW($)}else if(U===31){if($=$.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");v6=dW($)}else U===27?(U=v6,lU($.type)?($=IO,IO=null,v6=$):v6=U):v6=L4?z1($.stateNode.nextSibling):null;return!0}function cw(){v6=L4=null,I0=d$=!1}function jG(){var $=eU;return $!==null&&(Z4===null?Z4=$:Z4.push.apply(Z4,$),eU=null),$}function P8($){eU===null?eU=[$]:eU.push($)}function AG(){var $=Q1;if($!==null){Q1=null;for(var U=wG($);0<$.children.length;)$=$.children[0];O$($.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
84
|
+
|
|
85
|
+
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
86
|
+
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
87
|
+
- Date formatting in a user's locale which doesn't match the server.
|
|
88
|
+
- External changing data without sending a snapshot of it along with the HTML.
|
|
89
|
+
- Invalid HTML tag nesting.
|
|
90
|
+
|
|
91
|
+
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
92
|
+
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",U)})}}function M9(){PX=CQ=null,vX=!1}function xU($,U,z){u$(yH,U._currentValue,$),U._currentValue=z,u$(fH,U._currentRenderer,$),U._currentRenderer!==void 0&&U._currentRenderer!==null&&U._currentRenderer!==yF&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),U._currentRenderer=yF}function i0($,U){$._currentValue=yH.current;var z=fH.current;a$(fH,U),$._currentRenderer=z,a$(yH,U)}function FG($,U,z){for(;$!==null;){var Q=$.alternate;if(($.childLanes&U)!==U?($.childLanes|=U,Q!==null&&(Q.childLanes|=U)):Q!==null&&(Q.childLanes&U)!==U&&(Q.childLanes|=U),$===z)break;$=$.return}$!==z&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function VG($,U,z,Q){var H=$.child;H!==null&&(H.return=$);for(;H!==null;){var O=H.dependencies;if(O!==null){var B=H.child;O=O.firstContext;$:for(;O!==null;){var L=O;O=H;for(var D=0;D<U.length;D++)if(L.context===U[D]){O.lanes|=z,L=O.alternate,L!==null&&(L.lanes|=z),FG(O.return,z,$),Q||(B=null);break $}O=L.next}}else if(H.tag===18){if(B=H.return,B===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");B.lanes|=z,O=B.alternate,O!==null&&(O.lanes|=z),FG(B,z,$),B=null}else B=H.child;if(B!==null)B.return=H;else for(B=H;B!==null;){if(B===$){B=null;break}if(H=B.sibling,H!==null){H.return=B.return,B=H;break}B=B.return}H=B}}function az($,U,z,Q){$=null;for(var H=U,O=!1;H!==null;){if(!O){if((H.flags&524288)!==0)O=!0;else if((H.flags&262144)!==0)break}if(H.tag===10){var B=H.alternate;if(B===null)throw Error("Should have a current fiber. This is a bug in React.");if(B=B.memoizedProps,B!==null){var L=H.type;I4(H.pendingProps.value,B.value)||($!==null?$.push(L):$=[L])}}else if(H===jQ.current){if(B=H.alternate,B===null)throw Error("Should have a current fiber. This is a bug in React.");B.memoizedState.memoizedState!==H.memoizedState.memoizedState&&($!==null?$.push(dY):$=[dY])}H=H.return}$!==null&&VG(U,$,z,Q),U.flags|=262144}function R9($){for($=$.firstContext;$!==null;){if(!I4($.context._currentValue,$.memoizedValue))return!0;$=$.next}return!1}function iw($){CQ=$,PX=null,$=$.dependencies,$!==null&&($.firstContext=null)}function T6($){return vX&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),h2(CQ,$)}function I9($,U){return CQ===null&&iw($),h2($,U)}function h2($,U){var z=U._currentValue;if(U={context:U,memoizedValue:z,next:null},PX===null){if($===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");PX=U,$.dependencies={lanes:0,firstContext:U,_debugThenableState:null},$.flags|=524288}else PX=PX.next=U;return z}function EG(){return{controller:new cT,data:new Map,refCount:0}}function lw($){$.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),$.refCount++}function v8($){$.refCount--,0>$.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),$.refCount===0&&iT(lT,function(){$.controller.abort()})}function Y0($,U,z){if(($&127)!==0)0>_0&&(_0=o6(),LY=kQ(U),hH=U,z!=null&&(uH=r(z)),(s$&(z4|H1))!==H4&&(h6=!0,ww=qY),$=r8(),U=o8(),$!==ZX||U!==KY?ZX=-1.1:U!==null&&(ww=qY),Uz=$,KY=U);else if(($&4194048)!==0&&0>P1&&(P1=o6(),DY=kQ(U),fF=U,z!=null&&(hF=r(z)),0>UU)){if($=r8(),U=o8(),$!==Xw||U!==wz)Xw=-1.1;zw=$,wz=U}}function WZ($){if(0>_0){_0=o6(),LY=$._debugTask!=null?$._debugTask:null,(s$&(z4|H1))!==H4&&(ww=qY);var U=r8(),z=o8();U!==ZX||z!==KY?ZX=-1.1:z!==null&&(ww=qY),Uz=U,KY=z}if(0>P1&&(P1=o6(),DY=$._debugTask!=null?$._debugTask:null,0>UU)){if($=r8(),U=o8(),$!==Xw||U!==wz)Xw=-1.1;zw=$,wz=U}}function l0(){var $=$z;return $z=0,$}function _9($){var U=$z;return $z=$,U}function Z8($){var U=$z;return $z+=$,U}function P9(){M$=V$=-1.1}function e4(){var $=V$;return V$=-1.1,$}function $1($){0<=$&&(V$=$)}function J0(){var $=x6;return x6=-0,$}function Q0($){0<=$&&(x6=$)}function G0(){var $=b6;return b6=null,$}function W0(){var $=h6;return h6=!1,$}function MG($){_4=o6(),0>$.actualStartTime&&($.actualStartTime=_4)}function RG($){if(0<=_4){var U=o6()-_4;$.actualDuration+=U,$.selfBaseDuration=U,_4=-1}}function u2($){if(0<=_4){var U=o6()-_4;$.actualDuration+=U,_4=-1}}function H0(){if(0<=_4){var $=o6(),U=$-_4;_4=-1,$z+=U,x6+=U,M$=$}}function m2($){b6===null&&(b6=[]),b6.push($),$U===null&&($U=[]),$U.push($)}function O0(){_4=o6(),0>V$&&(V$=_4)}function S8($){for(var U=$.child;U;)$.actualDuration+=U.actualDuration,U=U.sibling}function HZ($,U){if(AY===null){var z=AY=[];cH=0,zz=CW(),SX={status:"pending",value:void 0,then:function(Q){z.push(Q)}}}return cH++,U.then(c2,c2),U}function c2(){if(--cH===0&&(-1<P1||(UU=-1.1),AY!==null)){SX!==null&&(SX.status="fulfilled");var $=AY;AY=null,zz=0,SX=null;for(var U=0;U<$.length;U++)(0,$[U])()}}function OZ($,U){var z=[],Q={status:"pending",value:null,reason:null,then:function(H){z.push(H)}};return $.then(function(){Q.status="fulfilled",Q.value=U;for(var H=0;H<z.length;H++)(0,z[H])(U)},function(H){Q.status="rejected",Q.reason=H;for(H=0;H<z.length;H++)(0,z[H])(void 0)}),Q}function IG(){var $=Xz.current;return $!==null?$:E6.pooledCache}function v9($,U){U===null?u$(Xz,Xz.current,$):u$(Xz,U.pool,$)}function i2(){var $=IG();return $===null?null:{parent:p6._currentValue,pool:$}}function l2(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function n2($){return $=$.status,$==="fulfilled"||$==="rejected"}function d2($,U,z){u.actQueue!==null&&(u.didUsePromise=!0);var Q=$.thenables;if(z=Q[z],z===void 0?Q.push(U):z!==U&&($.didWarnAboutUncachedPromise||($.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),U.then(u0,u0),U=z),U._debugInfo===void 0){$=performance.now(),Q=U.displayName;var H={name:typeof Q==="string"?Q:"Promise",start:$,end:$,value:U};U._debugInfo=[{awaited:H}],U.status!=="fulfilled"&&U.status!=="rejected"&&($=function(){H.end=performance.now()},U.then($,$))}switch(U.status){case"fulfilled":return U.value;case"rejected":throw $=U.reason,o2($),$;default:if(typeof U.status==="string")U.then(u0,u0);else{if($=E6,$!==null&&100<$.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");$=U,$.status="pending",$.then(function(O){if(U.status==="pending"){var B=U;B.status="fulfilled",B.value=O}},function(O){if(U.status==="pending"){var B=U;B.status="rejected",B.reason=O}})}switch(U.status){case"fulfilled":return U.value;case"rejected":throw $=U.reason,o2($),$}throw Jz=U,_Y=!0,TX}}function gU($){try{return oT($)}catch(U){if(U!==null&&typeof U==="object"&&typeof U.then==="function")throw Jz=U,_Y=!0,TX;throw U}}function p2(){if(Jz===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var $=Jz;return Jz=null,_Y=!1,$}function o2($){if($===TX||$===cQ)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function O4($){var U=g$;return $!=null&&(g$=U===null?$:U.concat($)),U}function _G(){var $=g$;if($!=null){for(var U=$.length-1;0<=U;U--)if($[U].name!=null){var z=$[U].debugTask;if(z!=null)return z}}return null}function Z9($,U,z){for(var Q=Object.keys($.props),H=0;H<Q.length;H++){var O=Q[H];if(O!=="children"&&O!=="key"){U===null&&(U=V9($,z.mode,0),U._debugInfo=g$,U.return=z),O$(U,function(B){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",B)},O);break}}}function S9($){var U=PY;return PY+=1,bX===null&&(bX=l2()),d2(bX,$,U)}function T8($,U){U=U.props.ref,$.ref=U!==void 0?U:null}function r2($,U){if(U.$$typeof===PS)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
94
|
+
- Multiple copies of the "react" package is used.
|
|
95
|
+
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
96
|
+
- A compiler tries to "inline" JSX instead of using the runtime.`);throw $=Object.prototype.toString.call(U),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.")}function T9($,U){var z=_G();z!==null?z.run(r2.bind(null,$,U)):r2($,U)}function t2($,U){var z=r($)||"Component";YV[z]||(YV[z]=!0,U=U.displayName||U.name||"Component",$.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
97
|
+
root.render(%s)`,U,U,U):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
98
|
+
<%s>{%s}</%s>`,U,U,z,U,z))}function b9($,U){var z=_G();z!==null?z.run(t2.bind(null,$,U)):t2($,U)}function a2($,U){var z=r($)||"Component";JV[z]||(JV[z]=!0,U=String(U),$.tag===3?console.error(`Symbols are not valid as a React child.
|
|
99
|
+
root.render(%s)`,U):console.error(`Symbols are not valid as a React child.
|
|
100
|
+
<%s>%s</%s>`,z,U,z))}function C9($,U){var z=_G();z!==null?z.run(a2.bind(null,$,U)):a2($,U)}function s2($){function U(I,v){if($){var S=I.deletions;S===null?(I.deletions=[v],I.flags|=16):S.push(v)}}function z(I,v){if(!$)return null;for(;v!==null;)U(I,v),v=v.sibling;return null}function Q(I){for(var v=new Map;I!==null;)I.key!==null?v.set(I.key,I):v.set(I.index,I),I=I.sibling;return v}function H(I,v){return I=m0(I,v),I.index=0,I.sibling=null,I}function O(I,v,S){if(I.index=S,!$)return I.flags|=1048576,v;if(S=I.alternate,S!==null)return S=S.index,S<v?(I.flags|=67108866,v):S;return I.flags|=67108866,v}function B(I){return $&&I.alternate===null&&(I.flags|=67108866),I}function L(I,v,S,i){if(v===null||v.tag!==6)return v=qG(S,I.mode,i),v.return=I,v._debugOwner=I,v._debugTask=I._debugTask,v._debugInfo=g$,v;return v=H(v,S),v.return=I,v._debugInfo=g$,v}function D(I,v,S,i){var J$=S.type;if(J$===NX)return v=T(I,v,S.props.children,i,S.key),Z9(S,v,I),v;if(v!==null&&(v.elementType===J$||v2(v,S)||typeof J$==="object"&&J$!==null&&J$.$$typeof===X1&&gU(J$)===v.type))return v=H(v,S.props),T8(v,S),v.return=I,v._debugOwner=S._owner,v._debugInfo=g$,v;return v=V9(S,I.mode,i),T8(v,S),v.return=I,v._debugInfo=g$,v}function F(I,v,S,i){if(v===null||v.tag!==4||v.stateNode.containerInfo!==S.containerInfo||v.stateNode.implementation!==S.implementation)return v=LG(S,I.mode,i),v.return=I,v._debugInfo=g$,v;return v=H(v,S.children||[]),v.return=I,v._debugInfo=g$,v}function T(I,v,S,i,J$){if(v===null||v.tag!==7)return v=uw(S,I.mode,i,J$),v.return=I,v._debugOwner=I,v._debugTask=I._debugTask,v._debugInfo=g$,v;return v=H(v,S),v.return=I,v._debugInfo=g$,v}function b(I,v,S){if(typeof v==="string"&&v!==""||typeof v==="number"||typeof v==="bigint")return v=qG(""+v,I.mode,S),v.return=I,v._debugOwner=I,v._debugTask=I._debugTask,v._debugInfo=g$,v;if(typeof v==="object"&&v!==null){switch(v.$$typeof){case j0:return S=V9(v,I.mode,S),T8(S,v),S.return=I,I=O4(v._debugInfo),S._debugInfo=g$,g$=I,S;case OX:return v=LG(v,I.mode,S),v.return=I,v._debugInfo=g$,v;case X1:var i=O4(v._debugInfo);return v=gU(v),I=b(I,v,S),g$=i,I}if(U4(v)||a(v))return S=uw(v,I.mode,S,null),S.return=I,S._debugOwner=I,S._debugTask=I._debugTask,I=O4(v._debugInfo),S._debugInfo=g$,g$=I,S;if(typeof v.then==="function")return i=O4(v._debugInfo),I=b(I,S9(v),S),g$=i,I;if(v.$$typeof===A0)return b(I,I9(I,v),S);T9(I,v)}return typeof v==="function"&&b9(I,v),typeof v==="symbol"&&C9(I,v),null}function _(I,v,S,i){var J$=v!==null?v.key:null;if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return J$!==null?null:L(I,v,""+S,i);if(typeof S==="object"&&S!==null){switch(S.$$typeof){case j0:return S.key===J$?(J$=O4(S._debugInfo),I=D(I,v,S,i),g$=J$,I):null;case OX:return S.key===J$?F(I,v,S,i):null;case X1:return J$=O4(S._debugInfo),S=gU(S),I=_(I,v,S,i),g$=J$,I}if(U4(S)||a(S)){if(J$!==null)return null;return J$=O4(S._debugInfo),I=T(I,v,S,i,null),g$=J$,I}if(typeof S.then==="function")return J$=O4(S._debugInfo),I=_(I,v,S9(S),i),g$=J$,I;if(S.$$typeof===A0)return _(I,v,I9(I,S),i);T9(I,S)}return typeof S==="function"&&b9(I,S),typeof S==="symbol"&&C9(I,S),null}function y(I,v,S,i,J$){if(typeof i==="string"&&i!==""||typeof i==="number"||typeof i==="bigint")return I=I.get(S)||null,L(v,I,""+i,J$);if(typeof i==="object"&&i!==null){switch(i.$$typeof){case j0:return S=I.get(i.key===null?S:i.key)||null,I=O4(i._debugInfo),v=D(v,S,i,J$),g$=I,v;case OX:return I=I.get(i.key===null?S:i.key)||null,F(v,I,i,J$);case X1:var v$=O4(i._debugInfo);return i=gU(i),v=y(I,v,S,i,J$),g$=v$,v}if(U4(i)||a(i))return S=I.get(S)||null,I=O4(i._debugInfo),v=T(v,S,i,J$,null),g$=I,v;if(typeof i.then==="function")return v$=O4(i._debugInfo),v=y(I,v,S,S9(i),J$),g$=v$,v;if(i.$$typeof===A0)return y(I,v,S,I9(v,i),J$);T9(v,i)}return typeof i==="function"&&b9(v,i),typeof i==="symbol"&&C9(v,i),null}function $$(I,v,S,i){if(typeof S!=="object"||S===null)return i;switch(S.$$typeof){case j0:case OX:E(I,v,S);var J$=S.key;if(typeof J$!=="string")break;if(i===null){i=new Set,i.add(J$);break}if(!i.has(J$)){i.add(J$);break}O$(v,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",J$)});break;case X1:S=gU(S),$$(I,v,S,i)}return i}function H$(I,v,S,i){for(var J$=null,v$=null,j$=null,q$=v,C$=v=0,Z6=null;q$!==null&&C$<S.length;C$++){q$.index>C$?(Z6=q$,q$=null):Z6=q$.sibling;var d6=_(I,q$,S[C$],i);if(d6===null){q$===null&&(q$=Z6);break}J$=$$(I,d6,S[C$],J$),$&&q$&&d6.alternate===null&&U(I,q$),v=O(d6,v,C$),j$===null?v$=d6:j$.sibling=d6,j$=d6,q$=Z6}if(C$===S.length)return z(I,q$),d$&&c0(I,C$),v$;if(q$===null){for(;C$<S.length;C$++)q$=b(I,S[C$],i),q$!==null&&(J$=$$(I,q$,S[C$],J$),v=O(q$,v,C$),j$===null?v$=q$:j$.sibling=q$,j$=q$);return d$&&c0(I,C$),v$}for(q$=Q(q$);C$<S.length;C$++)Z6=y(q$,I,C$,S[C$],i),Z6!==null&&(J$=$$(I,Z6,S[C$],J$),$&&Z6.alternate!==null&&q$.delete(Z6.key===null?C$:Z6.key),v=O(Z6,v,C$),j$===null?v$=Z6:j$.sibling=Z6,j$=Z6);return $&&q$.forEach(function(HU){return U(I,HU)}),d$&&c0(I,C$),v$}function I6(I,v,S,i){if(S==null)throw Error("An iterable object provided no iterator.");for(var J$=null,v$=null,j$=v,q$=v=0,C$=null,Z6=null,d6=S.next();j$!==null&&!d6.done;q$++,d6=S.next()){j$.index>q$?(C$=j$,j$=null):C$=j$.sibling;var HU=_(I,j$,d6.value,i);if(HU===null){j$===null&&(j$=C$);break}Z6=$$(I,HU,d6.value,Z6),$&&j$&&HU.alternate===null&&U(I,j$),v=O(HU,v,q$),v$===null?J$=HU:v$.sibling=HU,v$=HU,j$=C$}if(d6.done)return z(I,j$),d$&&c0(I,q$),J$;if(j$===null){for(;!d6.done;q$++,d6=S.next())j$=b(I,d6.value,i),j$!==null&&(Z6=$$(I,j$,d6.value,Z6),v=O(j$,v,q$),v$===null?J$=j$:v$.sibling=j$,v$=j$);return d$&&c0(I,q$),J$}for(j$=Q(j$);!d6.done;q$++,d6=S.next())C$=y(j$,I,q$,d6.value,i),C$!==null&&(Z6=$$(I,C$,d6.value,Z6),$&&C$.alternate!==null&&j$.delete(C$.key===null?q$:C$.key),v=O(C$,v,q$),v$===null?J$=C$:v$.sibling=C$,v$=C$);return $&&j$.forEach(function(jb){return U(I,jb)}),d$&&c0(I,q$),J$}function r$(I,v,S,i){if(typeof S==="object"&&S!==null&&S.type===NX&&S.key===null&&(Z9(S,null,I),S=S.props.children),typeof S==="object"&&S!==null){switch(S.$$typeof){case j0:var J$=O4(S._debugInfo);$:{for(var v$=S.key;v!==null;){if(v.key===v$){if(v$=S.type,v$===NX){if(v.tag===7){z(I,v.sibling),i=H(v,S.props.children),i.return=I,i._debugOwner=S._owner,i._debugInfo=g$,Z9(S,i,I),I=i;break $}}else if(v.elementType===v$||v2(v,S)||typeof v$==="object"&&v$!==null&&v$.$$typeof===X1&&gU(v$)===v.type){z(I,v.sibling),i=H(v,S.props),T8(i,S),i.return=I,i._debugOwner=S._owner,i._debugInfo=g$,I=i;break $}z(I,v);break}else U(I,v);v=v.sibling}S.type===NX?(i=uw(S.props.children,I.mode,i,S.key),i.return=I,i._debugOwner=I,i._debugTask=I._debugTask,i._debugInfo=g$,Z9(S,i,I),I=i):(i=V9(S,I.mode,i),T8(i,S),i.return=I,i._debugInfo=g$,I=i)}return I=B(I),g$=J$,I;case OX:$:{J$=S;for(S=J$.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===J$.containerInfo&&v.stateNode.implementation===J$.implementation){z(I,v.sibling),i=H(v,J$.children||[]),i.return=I,I=i;break $}else{z(I,v);break}else U(I,v);v=v.sibling}i=LG(J$,I.mode,i),i.return=I,I=i}return B(I);case X1:return J$=O4(S._debugInfo),S=gU(S),I=r$(I,v,S,i),g$=J$,I}if(U4(S))return J$=O4(S._debugInfo),I=H$(I,v,S,i),g$=J$,I;if(a(S)){if(J$=O4(S._debugInfo),v$=a(S),typeof v$!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var j$=v$.call(S);if(j$===S){if(I.tag!==0||Object.prototype.toString.call(I.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(j$)!=="[object Generator]")zV||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),zV=!0}else S.entries!==v$||dH||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),dH=!0);return I=I6(I,v,j$,i),g$=J$,I}if(typeof S.then==="function")return J$=O4(S._debugInfo),I=r$(I,v,S9(S),i),g$=J$,I;if(S.$$typeof===A0)return r$(I,v,I9(I,S),i);T9(I,S)}if(typeof S==="string"&&S!==""||typeof S==="number"||typeof S==="bigint")return J$=""+S,v!==null&&v.tag===6?(z(I,v.sibling),i=H(v,J$),i.return=I,I=i):(z(I,v),i=qG(J$,I.mode,i),i.return=I,i._debugOwner=I,i._debugTask=I._debugTask,i._debugInfo=g$,I=i),B(I);return typeof S==="function"&&b9(I,S),typeof S==="symbol"&&C9(I,S),z(I,v)}return function(I,v,S,i){var J$=g$;g$=null;try{PY=0;var v$=r$(I,v,S,i);return bX=null,v$}catch(Z6){if(Z6===TX||Z6===cQ)throw Z6;var j$=Z(29,Z6,null,I.mode);j$.lanes=i,j$.return=I;var q$=j$._debugInfo=g$;if(j$._debugOwner=I._debugOwner,j$._debugTask=I._debugTask,q$!=null){for(var C$=q$.length-1;0<=C$;C$--)if(typeof q$[C$].stack==="string"){j$._debugOwner=q$[C$],j$._debugTask=q$[C$].debugTask;break}}return j$}finally{g$=J$}}}function e2($,U){var z=U4($);return $=!z&&typeof a($)==="function",z||$?(z=z?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",z,U,z),!1):!0}function PG($){$.updateQueue={baseState:$.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vG($,U){$=$.updateQueue,U.updateQueue===$&&(U.updateQueue={baseState:$.baseState,firstBaseUpdate:$.firstBaseUpdate,lastBaseUpdate:$.lastBaseUpdate,shared:$.shared,callbacks:null})}function yU($){return{lane:$,tag:GV,payload:null,callback:null,next:null}}function fU($,U,z){var Q=$.updateQueue;if(Q===null)return null;if(Q=Q.shared,oH===Q&&!OV){var H=r($);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
101
|
+
|
|
102
|
+
Please update the following component: %s`,H),OV=!0}if((s$&z4)!==H4)return H=Q.pending,H===null?U.next=U:(U.next=H.next,H.next=U),Q.pending=U,U=F9($),P2($,null,z),U;return A9($,Q,U,z),F9($)}function b8($,U,z){if(U=U.updateQueue,U!==null&&(U=U.shared,(z&4194048)!==0)){var Q=U.lanes;Q&=$.pendingLanes,z|=Q,U.lanes=z,Cw($,z)}}function k9($,U){var{updateQueue:z,alternate:Q}=$;if(Q!==null&&(Q=Q.updateQueue,z===Q)){var H=null,O=null;if(z=z.firstBaseUpdate,z!==null){do{var B={lane:z.lane,tag:z.tag,payload:z.payload,callback:null,next:null};O===null?H=O=B:O=O.next=B,z=z.next}while(z!==null);O===null?H=O=U:O=O.next=U}else H=O=U;z={baseState:Q.baseState,firstBaseUpdate:H,lastBaseUpdate:O,shared:Q.shared,callbacks:Q.callbacks},$.updateQueue=z;return}$=z.lastBaseUpdate,$===null?z.firstBaseUpdate=U:$.next=U,z.lastBaseUpdate=U}function C8(){if(rH){var $=SX;if($!==null)throw $}}function k8($,U,z,Q){rH=!1;var H=$.updateQueue;Yw=!1,oH=H.shared;var{firstBaseUpdate:O,lastBaseUpdate:B}=H,L=H.shared.pending;if(L!==null){H.shared.pending=null;var D=L,F=D.next;D.next=null,B===null?O=F:B.next=F,B=D;var T=$.alternate;T!==null&&(T=T.updateQueue,L=T.lastBaseUpdate,L!==B&&(L===null?T.firstBaseUpdate=F:L.next=F,T.lastBaseUpdate=D))}if(O!==null){var b=H.baseState;B=0,T=F=D=null,L=O;do{var _=L.lane&-536870913,y=_!==L.lane;if(y?(y$&_)===_:(Q&_)===_){_!==0&&_===zz&&(rH=!0),T!==null&&(T=T.next={lane:0,tag:L.tag,payload:L.payload,callback:null,next:null});$:{_=$;var $$=L,H$=U,I6=z;switch($$.tag){case WV:if($$=$$.payload,typeof $$==="function"){vX=!0;var r$=$$.call(I6,b,H$);if(_.mode&A4){M6(!0);try{$$.call(I6,b,H$)}finally{M6(!1)}}vX=!1,b=r$;break $}b=$$;break $;case pH:_.flags=_.flags&-65537|128;case GV:if(r$=$$.payload,typeof r$==="function"){if(vX=!0,$$=r$.call(I6,b,H$),_.mode&A4){M6(!0);try{r$.call(I6,b,H$)}finally{M6(!1)}}vX=!1}else $$=r$;if($$===null||$$===void 0)break $;b=c$({},b,$$);break $;case HV:Yw=!0}}_=L.callback,_!==null&&($.flags|=64,y&&($.flags|=8192),y=H.callbacks,y===null?H.callbacks=[_]:y.push(_))}else y={lane:_,tag:L.tag,payload:L.payload,callback:L.callback,next:null},T===null?(F=T=y,D=b):T=T.next=y,B|=_;if(L=L.next,L===null)if(L=H.shared.pending,L===null)break;else y=L,L=y.next,y.next=null,H.lastBaseUpdate=y,H.shared.pending=null}while(1);T===null&&(D=b),H.baseState=D,H.firstBaseUpdate=F,H.lastBaseUpdate=T,O===null&&(H.shared.lanes=0),Gw|=B,$.lanes=B,$.memoizedState=b}oH=null}function $D($,U){if(typeof $!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+$);$.call(U)}function NZ($,U){var z=$.shared.hiddenCallbacks;if(z!==null)for($.shared.hiddenCallbacks=null,$=0;$<z.length;$++)$D(z[$],U)}function UD($,U){var z=$.callbacks;if(z!==null)for($.callbacks=null,$=0;$<z.length;$++)$D(z[$],U)}function wD($,U){var z=Z0;u$(lQ,z,$),u$(CX,U,$),Z0=z|U.baseLanes}function ZG($){u$(lQ,Z0,$),u$(CX,CX.current,$)}function SG($){Z0=lQ.current,a$(CX,$),a$(lQ,$)}function hU($){var U=$.alternate;u$(n6,n6.current&kX,$),u$(G1,$,$),v1===null&&(U===null||CX.current!==null?v1=$:U.memoizedState!==null&&(v1=$))}function TG($){u$(n6,n6.current,$),u$(G1,$,$),v1===null&&(v1=$)}function zD($){$.tag===22?(u$(n6,n6.current,$),u$(G1,$,$),v1===null&&(v1=$)):uU($)}function uU($){u$(n6,n6.current,$),u$(G1,G1.current,$)}function U1($){a$(G1,$),v1===$&&(v1=null),a$(n6,$)}function x9($){for(var U=$;U!==null;){if(U.tag===13){var z=U.memoizedState;if(z!==null&&(z=z.dehydrated,z===null||lW(z)||nW(z)))return U}else if(U.tag===19&&(U.memoizedProps.revealOrder==="forwards"||U.memoizedProps.revealOrder==="backwards"||U.memoizedProps.revealOrder==="unstable_legacy-backwards"||U.memoizedProps.revealOrder==="together")){if((U.flags&128)!==0)return U}else if(U.child!==null){U.child.return=U,U=U.child;continue}if(U===$)break;for(;U.sibling===null;){if(U.return===null||U.return===$)return null;U=U.return}U.sibling.return=U.return,U=U.sibling}return null}function m$(){var $=h;S1===null?S1=[$]:S1.push($)}function d(){var $=h;if(S1!==null&&(YU++,S1[YU]!==$)){var U=r(P$);if(!NV.has(U)&&(NV.add(U),S1!==null)){for(var z="",Q=0;Q<=YU;Q++){var H=S1[Q],O=Q===YU?$:H;for(H=Q+1+". "+H;30>H.length;)H+=" ";H+=O+`
|
|
103
|
+
`,z+=H}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
104
|
+
|
|
105
|
+
Previous render Next render
|
|
106
|
+
------------------------------------------------------
|
|
107
|
+
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
108
|
+
`,U,z)}}}function sz($){$===void 0||$===null||U4($)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",h,typeof $)}function g9(){var $=r(P$);qV.has($)||(qV.add($),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",$))}function m6(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
109
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
110
|
+
2. You might be breaking the Rules of Hooks
|
|
111
|
+
3. You might have more than one copy of React in the same app
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function bG($,U){if(SY)return!1;if(U===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",h),!1;$.length!==U.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
113
|
+
|
|
114
|
+
Previous: %s
|
|
115
|
+
Incoming: %s`,h,"["+U.join(", ")+"]","["+$.join(", ")+"]");for(var z=0;z<U.length&&z<$.length;z++)if(!I4($[z],U[z]))return!1;return!0}function CG($,U,z,Q,H,O){if(zU=O,P$=U,S1=$!==null?$._debugHookTypes:null,YU=-1,SY=$!==null&&$.type!==U.type,Object.prototype.toString.call(z)==="[object AsyncFunction]"||Object.prototype.toString.call(z)==="[object AsyncGeneratorFunction]")O=r(P$),tH.has(O)||(tH.add(O),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",O===null?"An unknown Component":"<"+O+">"));U.memoizedState=null,U.updateQueue=null,U.lanes=0,u.H=$!==null&&$.memoizedState!==null?sH:S1!==null?LV:aH,Gz=O=(U.mode&A4)!==I$;var B=iH(z,Q,H);if(Gz=!1,gX&&(B=kG(U,z,Q,H)),O){M6(!0);try{B=kG(U,z,Q,H)}finally{M6(!1)}}return XD($,U),B}function XD($,U){U._debugHookTypes=S1,U.dependencies===null?XU!==null&&(U.dependencies={lanes:0,firstContext:null,_debugThenableState:XU}):U.dependencies._debugThenableState=XU,u.H=TY;var z=V6!==null&&V6.next!==null;if(zU=0,S1=h=r6=V6=P$=null,YU=-1,$!==null&&($.flags&65011712)!==(U.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),dQ=!1,ZY=0,XU=null,z)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");$===null||t6||($=$.dependencies,$!==null&&R9($)&&(t6=!0)),_Y?(_Y=!1,$=!0):$=!1,$&&(U=r(U)||"Unknown",BV.has(U)||tH.has(U)||(BV.add(U),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function kG($,U,z,Q){P$=$;var H=0;do{if(gX&&(XU=null),ZY=0,gX=!1,H>=tT)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(H+=1,SY=!1,r6=V6=null,$.updateQueue!=null){var O=$.updateQueue;O.lastEffect=null,O.events=null,O.stores=null,O.memoCache!=null&&(O.memoCache.index=0)}YU=-1,u.H=KV,O=iH(U,z,Q)}while(gX);return O}function BZ(){var $=u.H,U=$.useState()[0];return U=typeof U.then==="function"?x8(U):U,$=$.useState()[0],(V6!==null?V6.memoizedState:null)!==$&&(P$.flags|=1024),U}function xG(){var $=pQ!==0;return pQ=0,$}function gG($,U,z){U.updateQueue=$.updateQueue,U.flags=(U.mode&i1)!==I$?U.flags&-402655237:U.flags&-2053,$.lanes&=~z}function yG($){if(dQ){for($=$.memoizedState;$!==null;){var U=$.queue;U!==null&&(U.pending=null),$=$.next}dQ=!1}zU=0,S1=r6=V6=P$=null,YU=-1,h=null,gX=!1,ZY=pQ=0,XU=null}function V4(){var $={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return r6===null?P$.memoizedState=r6=$:r6=r6.next=$,r6}function N6(){if(V6===null){var $=P$.alternate;$=$!==null?$.memoizedState:null}else $=V6.next;var U=r6===null?P$.memoizedState:r6.next;if(U!==null)r6=U,V6=$;else{if($===null){if(P$.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}V6=$,$={memoizedState:V6.memoizedState,baseState:V6.baseState,baseQueue:V6.baseQueue,queue:V6.queue,next:null},r6===null?P$.memoizedState=r6=$:r6=r6.next=$}return r6}function y9(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function x8($){var U=ZY;return ZY+=1,XU===null&&(XU=l2()),$=d2(XU,$,U),U=P$,(r6===null?U.memoizedState:r6.next)===null&&(U=U.alternate,u.H=U!==null&&U.memoizedState!==null?sH:aH),$}function mU($){if($!==null&&typeof $==="object"){if(typeof $.then==="function")return x8($);if($.$$typeof===A0)return T6($)}throw Error("An unsupported type was passed to use(): "+String($))}function nw($){var U=null,z=P$.updateQueue;if(z!==null&&(U=z.memoCache),U==null){var Q=P$.alternate;Q!==null&&(Q=Q.updateQueue,Q!==null&&(Q=Q.memoCache,Q!=null&&(U={data:Q.data.map(function(H){return H.slice()}),index:0})))}if(U==null&&(U={data:[],index:0}),z===null&&(z=y9(),P$.updateQueue=z),z.memoCache=U,z=U.data[U.index],z===void 0||SY)for(z=U.data[U.index]=Array($),Q=0;Q<$;Q++)z[Q]=vS;else z.length!==$&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",z.length,$);return U.index++,z}function h1($,U){return typeof U==="function"?U($):U}function fG($,U,z){var Q=V4();if(z!==void 0){var H=z(U);if(Gz){M6(!0);try{z(U)}finally{M6(!1)}}}else H=U;return Q.memoizedState=Q.baseState=H,$={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:H},Q.queue=$,$=$.dispatch=jZ.bind(null,P$,$),[Q.memoizedState,$]}function ez($){var U=N6();return hG(U,V6,$)}function hG($,U,z){var Q=$.queue;if(Q===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");Q.lastRenderedReducer=z;var H=$.baseQueue,O=Q.pending;if(O!==null){if(H!==null){var B=H.next;H.next=O.next,O.next=B}U.baseQueue!==H&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),U.baseQueue=H=O,Q.pending=null}if(O=$.baseState,H===null)$.memoizedState=O;else{U=H.next;var L=B=null,D=null,F=U,T=!1;do{var b=F.lane&-536870913;if(b!==F.lane?(y$&b)===b:(zU&b)===b){var _=F.revertLane;if(_===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),b===zz&&(T=!0);else if((zU&_)===_){F=F.next,_===zz&&(T=!0);continue}else b={lane:0,revertLane:F.revertLane,gesture:null,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},D===null?(L=D=b,B=O):D=D.next=b,P$.lanes|=_,Gw|=_;b=F.action,Gz&&z(O,b),O=F.hasEagerState?F.eagerState:z(O,b)}else _={lane:b,revertLane:F.revertLane,gesture:F.gesture,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},D===null?(L=D=_,B=O):D=D.next=_,P$.lanes|=b,Gw|=b;F=F.next}while(F!==null&&F!==U);if(D===null?B=O:D.next=L,!I4(O,$.memoizedState)&&(t6=!0,T&&(z=SX,z!==null)))throw z;$.memoizedState=O,$.baseState=B,$.baseQueue=D,Q.lastRenderedState=O}return H===null&&(Q.lanes=0),[$.memoizedState,Q.dispatch]}function g8($){var U=N6(),z=U.queue;if(z===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");z.lastRenderedReducer=$;var{dispatch:Q,pending:H}=z,O=U.memoizedState;if(H!==null){z.pending=null;var B=H=H.next;do O=$(O,B.action),B=B.next;while(B!==H);I4(O,U.memoizedState)||(t6=!0),U.memoizedState=O,U.baseQueue===null&&(U.baseState=O),z.lastRenderedState=O}return[O,Q]}function uG($,U,z){var Q=P$,H=V4();if(d$){if(z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var O=z();xX||O===z()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),xX=!0)}else{if(O=U(),xX||(z=U(),I4(O,z)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),xX=!0)),E6===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(y$&127)!==0||YD(Q,U,O)}return H.memoizedState=O,z={value:O,getSnapshot:U},H.queue=z,m9(QD.bind(null,Q,z,$),[$]),Q.flags|=2048,UX(Z1|v4,{destroy:void 0},JD.bind(null,Q,z,O,U),null),O}function f9($,U,z){var Q=P$,H=N6(),O=d$;if(O){if(z===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");z=z()}else if(z=U(),!xX){var B=U();I4(z,B)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),xX=!0)}if(B=!I4((V6||H).memoizedState,z))H.memoizedState=z,t6=!0;H=H.queue;var L=QD.bind(null,Q,H,$);if(y4(2048,v4,L,[$]),H.getSnapshot!==U||B||r6!==null&&r6.memoizedState.tag&Z1){if(Q.flags|=2048,UX(Z1|v4,{destroy:void 0},JD.bind(null,Q,H,z,U),null),E6===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O||(zU&127)!==0||YD(Q,U,z)}return z}function YD($,U,z){$.flags|=16384,$={getSnapshot:U,value:z},U=P$.updateQueue,U===null?(U=y9(),P$.updateQueue=U,U.stores=[$]):(z=U.stores,z===null?U.stores=[$]:z.push($))}function JD($,U,z,Q){U.value=z,U.getSnapshot=Q,GD(U)&&WD($)}function QD($,U,z){return z(function(){GD(U)&&(Y0(2,"updateSyncExternalStore()",$),WD($))})}function GD($){var U=$.getSnapshot;$=$.value;try{var z=U();return!I4($,z)}catch(Q){return!0}}function WD($){var U=D4($,2);U!==null&&f6(U,$,2)}function mG($){var U=V4();if(typeof $==="function"){var z=$;if($=z(),Gz){M6(!0);try{z()}finally{M6(!1)}}}return U.memoizedState=U.baseState=$,U.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:$},U}function cG($){$=mG($);var U=$.queue,z=vD.bind(null,P$,U);return U.dispatch=z,[$.memoizedState,z]}function iG($){var U=V4();U.memoizedState=U.baseState=$;var z={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return U.queue=z,U=zW.bind(null,P$,!0,z),z.dispatch=U,[$,U]}function HD($,U){var z=N6();return OD(z,V6,$,U)}function OD($,U,z,Q){return $.baseState=z,hG($,V6,typeof Q==="function"?Q:h1)}function ND($,U){var z=N6();if(V6!==null)return OD(z,V6,$,U);return z.baseState=$,[$,z.queue.dispatch]}function qZ($,U,z,Q,H){if(p9($))throw Error("Cannot update form state while rendering.");if($=U.action,$!==null){var O={payload:H,action:$,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(B){O.listeners.push(B)}};u.T!==null?z(!0):O.isTransition=!1,Q(O),z=U.pending,z===null?(O.next=U.pending=O,BD(U,O)):(O.next=z.next,U.pending=z.next=O)}}function BD($,U){var{action:z,payload:Q}=U,H=$.state;if(U.isTransition){var O=u.T,B={};B._updatedFibers=new Set,u.T=B;try{var L=z(H,Q),D=u.S;D!==null&&D(B,L),qD($,U,L)}catch(F){lG($,U,F)}finally{O!==null&&B.types!==null&&(O.types!==null&&O.types!==B.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=B.types),u.T=O,O===null&&B._updatedFibers&&($=B._updatedFibers.size,B._updatedFibers.clear(),10<$&&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."))}}else try{B=z(H,Q),qD($,U,B)}catch(F){lG($,U,F)}}function qD($,U,z){z!==null&&typeof z==="object"&&typeof z.then==="function"?(u.asyncTransitions++,z.then(d9,d9),z.then(function(Q){LD($,U,Q)},function(Q){return lG($,U,Q)}),U.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):LD($,U,z)}function LD($,U,z){U.status="fulfilled",U.value=z,KD(U),$.state=z,U=$.pending,U!==null&&(z=U.next,z===U?$.pending=null:(z=z.next,U.next=z,BD($,z)))}function lG($,U,z){var Q=$.pending;if($.pending=null,Q!==null){Q=Q.next;do U.status="rejected",U.reason=z,KD(U),U=U.next;while(U!==Q)}$.action=null}function KD($){$=$.listeners;for(var U=0;U<$.length;U++)(0,$[U])()}function DD($,U){return U}function $X($,U){if(d$){var z=E6.formState;if(z!==null){$:{var Q=P$;if(d$){if(v6){U:{var H=v6;for(var O=_1;H.nodeType!==8;){if(!O){H=null;break U}if(H=z1(H.nextSibling),H===null){H=null;break U}}O=H.data,H=O===VO||O===UE?H:null}if(H){v6=z1(H.nextSibling),Q=H.data===VO;break $}}kU(Q)}Q=!1}Q&&(U=z[0])}}return z=V4(),z.memoizedState=z.baseState=U,Q={pending:null,lanes:0,dispatch:null,lastRenderedReducer:DD,lastRenderedState:U},z.queue=Q,z=vD.bind(null,P$,Q),Q.dispatch=z,Q=mG(!1),O=zW.bind(null,P$,!1,Q.queue),Q=V4(),H={state:U,dispatch:null,action:$,pending:null},Q.queue=H,z=qZ.bind(null,P$,H,O,z),H.dispatch=z,Q.memoizedState=$,[U,z,!1]}function h9($){var U=N6();return jD(U,V6,$)}function jD($,U,z){if(U=hG($,U,DD)[0],$=ez(h1)[0],typeof U==="object"&&U!==null&&typeof U.then==="function")try{var Q=x8(U)}catch(B){if(B===TX)throw cQ;throw B}else Q=U;U=N6();var H=U.queue,O=H.dispatch;return z!==U.memoizedState&&(P$.flags|=2048,UX(Z1|v4,{destroy:void 0},LZ.bind(null,H,z),null)),[Q,O,$]}function LZ($,U){$.action=U}function u9($){var U=N6(),z=V6;if(z!==null)return jD(U,z,$);N6(),U=U.memoizedState,z=N6();var Q=z.queue.dispatch;return z.memoizedState=$,[U,Q,!1]}function UX($,U,z,Q){return $={tag:$,create:z,deps:Q,inst:U,next:null},U=P$.updateQueue,U===null&&(U=y9(),P$.updateQueue=U),z=U.lastEffect,z===null?U.lastEffect=$.next=$:(Q=z.next,z.next=$,$.next=Q,U.lastEffect=$),$}function nG($){var U=V4();return $={current:$},U.memoizedState=$}function dw($,U,z,Q){var H=V4();P$.flags|=$,H.memoizedState=UX(Z1|U,{destroy:void 0},z,Q===void 0?null:Q)}function y4($,U,z,Q){var H=N6();Q=Q===void 0?null:Q;var O=H.memoizedState.inst;V6!==null&&Q!==null&&bG(Q,V6.memoizedState.deps)?H.memoizedState=UX(U,O,z,Q):(P$.flags|=$,H.memoizedState=UX(Z1|U,O,z,Q))}function m9($,U){(P$.mode&i1)!==I$?dw(276826112,v4,$,U):dw(8390656,v4,$,U)}function KZ($){P$.flags|=4;var U=P$.updateQueue;if(U===null)U=y9(),P$.updateQueue=U,U.events=[$];else{var z=U.events;z===null?U.events=[$]:z.push($)}}function dG($){var U=V4(),z={impl:$};return U.memoizedState=z,function(){if((s$&z4)!==H4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return z.impl.apply(void 0,arguments)}}function c9($){var U=N6().memoizedState;return KZ({ref:U,nextImpl:$}),function(){if((s$&z4)!==H4)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return U.impl.apply(void 0,arguments)}}function pG($,U){var z=4194308;return(P$.mode&i1)!==I$&&(z|=134217728),dw(z,W1,$,U)}function AD($,U){if(typeof U==="function"){$=$();var z=U($);return function(){typeof z==="function"?z():U(null)}}if(U!==null&&U!==void 0)return U.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(U).join(", ")+"}"),$=$(),U.current=$,function(){U.current=null}}function oG($,U,z){typeof U!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",U!==null?typeof U:"null"),z=z!==null&&z!==void 0?z.concat([$]):null;var Q=4194308;(P$.mode&i1)!==I$&&(Q|=134217728),dw(Q,W1,AD.bind(null,U,$),z)}function i9($,U,z){typeof U!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",U!==null?typeof U:"null"),z=z!==null&&z!==void 0?z.concat([$]):null,y4(4,W1,AD.bind(null,U,$),z)}function rG($,U){return V4().memoizedState=[$,U===void 0?null:U],$}function l9($,U){var z=N6();U=U===void 0?null:U;var Q=z.memoizedState;if(U!==null&&bG(U,Q[1]))return Q[0];return z.memoizedState=[$,U],$}function tG($,U){var z=V4();U=U===void 0?null:U;var Q=$();if(Gz){M6(!0);try{$()}finally{M6(!1)}}return z.memoizedState=[Q,U],Q}function n9($,U){var z=N6();U=U===void 0?null:U;var Q=z.memoizedState;if(U!==null&&bG(U,Q[1]))return Q[0];if(Q=$(),Gz){M6(!0);try{$()}finally{M6(!1)}}return z.memoizedState=[Q,U],Q}function aG($,U){var z=V4();return sG(z,$,U)}function FD($,U){var z=N6();return ED(z,V6.memoizedState,$,U)}function VD($,U){var z=N6();return V6===null?sG(z,$,U):ED(z,V6.memoizedState,$,U)}function sG($,U,z){if(z===void 0||(zU&1073741824)!==0&&(y$&261930)===0)return $.memoizedState=U;return $.memoizedState=z,$=Mj(),P$.lanes|=$,Gw|=$,z}function ED($,U,z,Q){if(I4(z,U))return z;if(CX.current!==null)return $=sG($,z,Q),I4($,U)||(t6=!0),$;if((zU&42)===0||(zU&1073741824)!==0&&(y$&261930)===0)return t6=!0,$.memoizedState=z;return $=Mj(),P$.lanes|=$,Gw|=$,U}function d9(){u.asyncTransitions--}function MD($,U,z,Q,H){var O=Y6.p;Y6.p=O!==0&&O<c1?O:c1;var B=u.T,L={};L._updatedFibers=new Set,u.T=L,zW($,!1,U,z);try{var D=H(),F=u.S;if(F!==null&&F(L,D),D!==null&&typeof D==="object"&&typeof D.then==="function"){u.asyncTransitions++,D.then(d9,d9);var T=OZ(D,Q);y8($,U,T,w1($))}else y8($,U,Q,w1($))}catch(b){y8($,U,{then:function(){},status:"rejected",reason:b},w1($))}finally{Y6.p=O,B!==null&&L.types!==null&&(B.types!==null&&B.types!==L.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),B.types=L.types),u.T=B,B===null&&L._updatedFibers&&($=L._updatedFibers.size,L._updatedFibers.clear(),10<$&&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."))}}function eG($,U,z,Q){if($.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var H=RD($).queue;WZ($),MD($,H,U,Az,z===null?j:function(){return ID($),z(Q)})}function RD($){var U=$.memoizedState;if(U!==null)return U;U={memoizedState:Az,baseState:Az,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:Az},next:null};var z={};return U.next={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:h1,lastRenderedState:z},next:null},$.memoizedState=U,$=$.alternate,$!==null&&($.memoizedState=U),U}function ID($){u.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var U=RD($);U.next===null&&(U=$.alternate.memoizedState),y8($,U.next.queue,{},w1($))}function $W(){var $=mG(!1);return $=MD.bind(null,P$,$.queue,!0,!1),V4().memoizedState=$,[!1,$]}function _D(){var $=ez(h1)[0],U=N6().memoizedState;return[typeof $==="boolean"?$:x8($),U]}function PD(){var $=g8(h1)[0],U=N6().memoizedState;return[typeof $==="boolean"?$:x8($),U]}function pw(){return T6(dY)}function UW(){var $=V4(),U=E6.identifierPrefix;if(d$){var z=s0,Q=a0;z=(Q&~(1<<32-E4(Q)-1)).toString(32)+z,U="_"+U+"R_"+z,z=pQ++,0<z&&(U+="H"+z.toString(32)),U+="_"}else z=rT++,U="_"+U+"r_"+z.toString(32)+"_";return $.memoizedState=U}function wW(){return V4().memoizedState=DZ.bind(null,P$)}function DZ($,U){for(var z=$.return;z!==null;){switch(z.tag){case 24:case 3:var Q=w1(z),H=yU(Q),O=fU(z,H,Q);O!==null&&(Y0(Q,"refresh()",$),f6(O,z,Q),b8(O,z,Q)),$=EG(),U!==null&&U!==void 0&&O!==null&&console.error("The seed argument is not enabled outside experimental channels."),H.payload={cache:$};return}z=z.return}}function jZ($,U,z){var Q=arguments;typeof Q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Q=w1($);var H={lane:Q,revertLane:0,gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null};p9($)?ZD(U,H):(H=HG($,U,H,Q),H!==null&&(Y0(Q,"dispatch()",$),f6(H,$,Q),SD(H,U,Q)))}function vD($,U,z){var Q=arguments;typeof Q[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),Q=w1($),y8($,U,z,Q)&&Y0(Q,"setState()",$)}function y8($,U,z,Q){var H={lane:Q,revertLane:0,gesture:null,action:z,hasEagerState:!1,eagerState:null,next:null};if(p9($))ZD(U,H);else{var O=$.alternate;if($.lanes===0&&(O===null||O.lanes===0)&&(O=U.lastRenderedReducer,O!==null)){var B=u.H;u.H=n1;try{var L=U.lastRenderedState,D=O(L,z);if(H.hasEagerState=!0,H.eagerState=D,I4(D,L))return A9($,U,H,0),E6===null&&j9(),!1}catch(F){}finally{u.H=B}}if(z=HG($,U,H,Q),z!==null)return f6(z,$,Q),SD(z,U,Q),!0}return!1}function zW($,U,z,Q){if(u.T===null&&zz===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),Q={lane:2,revertLane:CW(),gesture:null,action:Q,hasEagerState:!1,eagerState:null,next:null},p9($)){if(U)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else U=HG($,z,Q,2),U!==null&&(Y0(2,"setOptimistic()",$),f6(U,$,2))}function p9($){var U=$.alternate;return $===P$||U!==null&&U===P$}function ZD($,U){gX=dQ=!0;var z=$.pending;z===null?U.next=U:(U.next=z.next,z.next=U),$.pending=U}function SD($,U,z){if((z&4194048)!==0){var Q=U.lanes;Q&=$.pendingLanes,z|=Q,U.lanes=z,Cw($,z)}}function XW($){if($!==null&&typeof $!=="function"){var U=String($);PV.has(U)||(PV.add(U),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",$))}}function YW($,U,z,Q){var H=$.memoizedState,O=z(Q,H);if($.mode&A4){M6(!0);try{O=z(Q,H)}finally{M6(!1)}}O===void 0&&(U=w$(U)||"Component",MV.has(U)||(MV.add(U),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",U))),H=O===null||O===void 0?H:c$({},H,O),$.memoizedState=H,$.lanes===0&&($.updateQueue.baseState=H)}function TD($,U,z,Q,H,O,B){var L=$.stateNode;if(typeof L.shouldComponentUpdate==="function"){if(z=L.shouldComponentUpdate(Q,O,B),$.mode&A4){M6(!0);try{z=L.shouldComponentUpdate(Q,O,B)}finally{M6(!1)}}return z===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",w$(U)||"Component"),z}return U.prototype&&U.prototype.isPureReactComponent?!I8(z,Q)||!I8(H,O):!0}function bD($,U,z,Q){var H=U.state;typeof U.componentWillReceiveProps==="function"&&U.componentWillReceiveProps(z,Q),typeof U.UNSAFE_componentWillReceiveProps==="function"&&U.UNSAFE_componentWillReceiveProps(z,Q),U.state!==H&&($=r($)||"Component",jV.has($)||(jV.add($),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",$)),eH.enqueueReplaceState(U,U.state,null))}function ow($,U){var z=U;if("ref"in U){z={};for(var Q in U)Q!=="ref"&&(z[Q]=U[Q])}if($=$.defaultProps){z===U&&(z=c$({},z));for(var H in $)z[H]===void 0&&(z[H]=$[H])}return z}function CD($){SH($),console.warn(`%s
|
|
116
|
+
|
|
117
|
+
%s
|
|
118
|
+
`,yX?"An error occurred in the <"+yX+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function kD($){var U=yX?"The above error occurred in the <"+yX+"> component.":"The above error occurred in one of your React components.",z="React will try to recreate this component tree from scratch using the error boundary you provided, "+(($O||"Anonymous")+".");if(typeof $==="object"&&$!==null&&typeof $.environmentName==="string"){var Q=$.environmentName;$=[`%o
|
|
120
|
+
|
|
121
|
+
%s
|
|
122
|
+
|
|
123
|
+
%s
|
|
124
|
+
`,$,U,z].slice(0),typeof $[0]==="string"?$.splice(0,1,WE+" "+$[0],HE,j7+Q+j7,OE):$.splice(0,0,WE,HE,j7+Q+j7,OE),$.unshift(console),Q=Kb.apply(console.error,$),Q()}else console.error(`%o
|
|
125
|
+
|
|
126
|
+
%s
|
|
127
|
+
|
|
128
|
+
%s
|
|
129
|
+
`,$,U,z)}function xD($){SH($)}function o9($,U){try{yX=U.source?r(U.source):null,$O=null;var z=U.value;if(u.actQueue!==null)u.thrownErrors.push(z);else{var Q=$.onUncaughtError;Q(z,{componentStack:U.stack})}}catch(H){setTimeout(function(){throw H})}}function gD($,U,z){try{yX=z.source?r(z.source):null,$O=r(U);var Q=$.onCaughtError;Q(z.value,{componentStack:z.stack,errorBoundary:U.tag===1?U.stateNode:null})}catch(H){setTimeout(function(){throw H})}}function JW($,U,z){return z=yU(z),z.tag=pH,z.payload={element:null},z.callback=function(){O$(U.source,o9,$,U)},z}function QW($){return $=yU($),$.tag=pH,$}function GW($,U,z,Q){var H=z.type.getDerivedStateFromError;if(typeof H==="function"){var O=Q.value;$.payload=function(){return H(O)},$.callback=function(){Z2(z),O$(Q.source,gD,U,z,Q)}}var B=z.stateNode;B!==null&&typeof B.componentDidCatch==="function"&&($.callback=function(){Z2(z),O$(Q.source,gD,U,z,Q),typeof H!=="function"&&(Hw===null?Hw=new Set([this]):Hw.add(this)),nT(this,Q),typeof H==="function"||(z.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",r(z)||"Unknown")})}function AZ($,U,z,Q,H){if(z.flags|=32768,E0&&n8($,H),Q!==null&&typeof Q==="object"&&typeof Q.then==="function"){if(U=z.alternate,U!==null&&az(U,z,H,!0),d$&&(I0=!0),z=G1.current,z!==null){switch(z.tag){case 31:case 13:return v1===null?zQ():z.alternate===null&&g6===QU&&(g6=tQ),z.flags&=-257,z.flags|=65536,z.lanes=H,Q===iQ?z.flags|=16384:(U=z.updateQueue,U===null?z.updateQueue=new Set([Q]):U.add(Q),ZW($,Q,H)),!1;case 22:return z.flags|=65536,Q===iQ?z.flags|=16384:(U=z.updateQueue,U===null?(U={transitions:null,markerInstances:null,retryQueue:new Set([Q])},z.updateQueue=U):(z=U.retryQueue,z===null?U.retryQueue=new Set([Q]):z.add(Q)),ZW($,Q,H)),!1}throw Error("Unexpected Suspense handler tag ("+z.tag+"). This is a bug in React.")}return ZW($,Q,H),zQ(),!1}if(d$)return I0=!0,U=G1.current,U!==null?((U.flags&65536)===0&&(U.flags|=256),U.flags|=65536,U.lanes=H,Q!==gH&&P8(s4(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:Q}),z))):(Q!==gH&&P8(s4(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:Q}),z)),$=$.current.alternate,$.flags|=65536,H&=-H,$.lanes|=H,Q=s4(Q,z),H=JW($.stateNode,Q,H),k9($,H),g6!==Jw&&(g6=Wz)),!1;var O=s4(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:Q}),z);if(yY===null?yY=[O]:yY.push(O),g6!==Jw&&(g6=Wz),U===null)return!0;Q=s4(Q,z),z=U;do{switch(z.tag){case 3:return z.flags|=65536,$=H&-H,z.lanes|=$,$=JW(z.stateNode,Q,$),k9(z,$),!1;case 1:if(U=z.type,O=z.stateNode,(z.flags&128)===0&&(typeof U.getDerivedStateFromError==="function"||O!==null&&typeof O.componentDidCatch==="function"&&(Hw===null||!Hw.has(O))))return z.flags|=65536,H&=-H,z.lanes|=H,H=QW(H),GW(H,$,z,Q),k9(z,H),!1}z=z.return}while(z!==null);return!1}function N4($,U,z,Q){U.child=$===null?QV(U,null,z,Q):Qz(U,$.child,z,Q)}function yD($,U,z,Q,H){z=z.render;var O=U.ref;if("ref"in Q){var B={};for(var L in Q)L!=="ref"&&(B[L]=Q[L])}else B=Q;if(iw(U),Q=CG($,U,z,B,O,H),L=xG(),$!==null&&!t6)return gG($,U,H),n0($,U,H);return d$&&L&&KG(U),U.flags|=1,N4($,U,Q,H),U.child}function fD($,U,z,Q,H){if($===null){var O=z.type;if(typeof O==="function"&&!NG(O)&&O.defaultProps===void 0&&z.compare===null)return z=hw(O),U.tag=15,U.type=z,HW(U,O),hD($,U,z,Q,H);return $=BG(z.type,null,Q,U,U.mode,H),$.ref=U.ref,$.return=U,U.child=$}if(O=$.child,!KW($,H)){var B=O.memoizedProps;if(z=z.compare,z=z!==null?z:I8,z(B,Q)&&$.ref===U.ref)return n0($,U,H)}return U.flags|=1,$=m0(O,Q),$.ref=U.ref,$.return=U,U.child=$}function hD($,U,z,Q,H){if($!==null){var O=$.memoizedProps;if(I8(O,Q)&&$.ref===U.ref&&U.type===$.type)if(t6=!1,U.pendingProps=Q=O,KW($,H))($.flags&131072)!==0&&(t6=!0);else return U.lanes=$.lanes,n0($,U,H)}return WW($,U,z,Q,H)}function uD($,U,z,Q){var H=Q.children,O=$!==null?$.memoizedState:null;if($===null&&U.stateNode===null&&(U.stateNode={_visibility:NY,_pendingMarkers:null,_retryCache:null,_transitions:null}),Q.mode==="hidden"){if((U.flags&128)!==0){if(O=O!==null?O.baseLanes|z:z,$!==null){Q=U.child=$.child;for(H=0;Q!==null;)H=H|Q.lanes|Q.childLanes,Q=Q.sibling;Q=H&~O}else Q=0,U.child=null;return mD($,U,O,z,Q)}if((z&536870912)!==0)U.memoizedState={baseLanes:0,cachePool:null},$!==null&&v9(U,O!==null?O.cachePool:null),O!==null?wD(U,O):ZG(U),zD(U);else return Q=U.lanes=536870912,mD($,U,O!==null?O.baseLanes|z:z,z,Q)}else O!==null?(v9(U,O.cachePool),wD(U,O),uU(U),U.memoizedState=null):($!==null&&v9(U,null),ZG(U),uU(U));return N4($,U,H,z),U.child}function f8($,U){return $!==null&&$.tag===22||U.stateNode!==null||(U.stateNode={_visibility:NY,_pendingMarkers:null,_retryCache:null,_transitions:null}),U.sibling}function mD($,U,z,Q,H){var O=IG();return O=O===null?null:{parent:p6._currentValue,pool:O},U.memoizedState={baseLanes:z,cachePool:O},$!==null&&v9(U,null),ZG(U),zD(U),$!==null&&az($,U,Q,!0),U.childLanes=H,null}function r9($,U){var z=U.hidden;return z!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
130
|
+
- <Activity %s>
|
|
131
|
+
+ <Activity %s>`,z===!0?"hidden":z===!1?"hidden={false}":"hidden={...}",z?'mode="hidden"':'mode="visible"'),U=a9({mode:U.mode,children:U.children},$.mode),U.ref=$.ref,$.child=U,U.return=$,U}function cD($,U,z){return Qz(U,$.child,null,z),$=r9(U,U.pendingProps),$.flags|=2,U1(U),U.memoizedState=null,$}function FZ($,U,z){var Q=U.pendingProps,H=(U.flags&128)!==0;if(U.flags&=-129,$===null){if(d$){if(Q.mode==="hidden")return $=r9(U,Q),U.lanes=536870912,f8(null,$);if(TG(U),($=v6)?(z=BA($,_1),z=z!==null&&z.data===Lz?z:null,z!==null&&(Q={dehydrated:z,treeContext:k2(),retryLane:536870912,hydrationErrors:null},U.memoizedState=Q,Q=b2(z),Q.return=U,U.child=Q,L4=U,v6=null)):z=null,z===null)throw E9(U,$),kU(U);return U.lanes=536870912,null}return r9(U,Q)}var O=$.memoizedState;if(O!==null){var B=O.dehydrated;if(TG(U),H)if(U.flags&256)U.flags&=-257,U=cD($,U,z);else if(U.memoizedState!==null)U.child=$.child,U.flags|=128,U=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(g2(),(z&536870912)!==0&&wQ(U),t6||az($,U,z,!1),H=(z&$.childLanes)!==0,t6||H){if(Q=E6,Q!==null&&(B=kw(Q,z),B!==0&&B!==O.retryLane))throw O.retryLane=B,D4($,B),f6(Q,$,B),UO;zQ(),U=cD($,U,z)}else $=O.treeContext,v6=z1(B.nextSibling),L4=U,d$=!0,eU=null,I0=!1,Q1=null,_1=!1,$!==null&&x2(U,$),U=r9(U,Q),U.flags|=4096;return U}return O=$.child,Q={mode:Q.mode,children:Q.children},(z&536870912)!==0&&(z&$.lanes)!==0&&wQ(U),$=m0(O,Q),$.ref=U.ref,U.child=$,$.return=U,$}function t9($,U){var z=U.ref;if(z===null)$!==null&&$.ref!==null&&(U.flags|=4194816);else{if(typeof z!=="function"&&typeof z!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if($===null||$.ref!==z)U.flags|=4194816}}function WW($,U,z,Q,H){if(z.prototype&&typeof z.prototype.render==="function"){var O=w$(z)||"Unknown";vV[O]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",O,O),vV[O]=!0)}if(U.mode&A4&&l1.recordLegacyContextWarning(U,null),$===null&&(HW(U,U.type),z.contextTypes&&(O=w$(z)||"Unknown",SV[O]||(SV[O]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",O)))),iw(U),z=CG($,U,z,Q,void 0,H),Q=xG(),$!==null&&!t6)return gG($,U,H),n0($,U,H);return d$&&Q&&KG(U),U.flags|=1,N4($,U,z,H),U.child}function iD($,U,z,Q,H,O){if(iw(U),YU=-1,SY=$!==null&&$.type!==U.type,U.updateQueue=null,z=kG(U,Q,z,H),XD($,U),Q=xG(),$!==null&&!t6)return gG($,U,O),n0($,U,O);return d$&&Q&&KG(U),U.flags|=1,N4($,U,z,O),U.child}function lD($,U,z,Q,H){switch(q(U)){case!1:var O=U.stateNode,B=new U.type(U.memoizedProps,O.context).state;O.updater.enqueueSetState(O,B,null);break;case!0:U.flags|=128,U.flags|=65536,O=Error("Simulated error coming from DevTools");var L=H&-H;if(U.lanes|=L,B=E6,B===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");L=QW(L),GW(L,B,U,s4(O,U)),k9(U,L)}if(iw(U),U.stateNode===null){if(B=sU,O=z.contextType,"contextType"in z&&O!==null&&(O===void 0||O.$$typeof!==A0)&&!_V.has(z)&&(_V.add(z),L=O===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof O!=="object"?" However, it is set to a "+typeof O+".":O.$$typeof===wH?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(O).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",w$(z)||"Component",L)),typeof O==="object"&&O!==null&&(B=T6(O)),O=new z(Q,B),U.mode&A4){M6(!0);try{O=new z(Q,B)}finally{M6(!1)}}if(B=U.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=eH,U.stateNode=O,O._reactInternals=U,O._reactInternalInstance=DV,typeof z.getDerivedStateFromProps==="function"&&B===null&&(B=w$(z)||"Component",AV.has(B)||(AV.add(B),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",B,O.state===null?"null":"undefined",B))),typeof z.getDerivedStateFromProps==="function"||typeof O.getSnapshotBeforeUpdate==="function"){var D=L=B=null;if(typeof O.componentWillMount==="function"&&O.componentWillMount.__suppressDeprecationWarning!==!0?B="componentWillMount":typeof O.UNSAFE_componentWillMount==="function"&&(B="UNSAFE_componentWillMount"),typeof O.componentWillReceiveProps==="function"&&O.componentWillReceiveProps.__suppressDeprecationWarning!==!0?L="componentWillReceiveProps":typeof O.UNSAFE_componentWillReceiveProps==="function"&&(L="UNSAFE_componentWillReceiveProps"),typeof O.componentWillUpdate==="function"&&O.componentWillUpdate.__suppressDeprecationWarning!==!0?D="componentWillUpdate":typeof O.UNSAFE_componentWillUpdate==="function"&&(D="UNSAFE_componentWillUpdate"),B!==null||L!==null||D!==null){O=w$(z)||"Component";var F=typeof z.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";VV.has(O)||(VV.add(O),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
132
|
+
|
|
133
|
+
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
134
|
+
|
|
135
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,O,F,B!==null?`
|
|
137
|
+
`+B:"",L!==null?`
|
|
138
|
+
`+L:"",D!==null?`
|
|
139
|
+
`+D:""))}}O=U.stateNode,B=w$(z)||"Component",O.render||(z.prototype&&typeof z.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",B):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",B)),!O.getInitialState||O.getInitialState.isReactClassApproved||O.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",B),O.getDefaultProps&&!O.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",B),O.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",B),z.childContextTypes&&!IV.has(z)&&(IV.add(z),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",B)),z.contextTypes&&!RV.has(z)&&(RV.add(z),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",B)),typeof O.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",B),z.prototype&&z.prototype.isPureReactComponent&&typeof O.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",w$(z)||"A pure component"),typeof O.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",B),typeof O.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",B),typeof O.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",B),typeof O.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",B),L=O.props!==Q,O.props!==void 0&&L&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",B),O.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",B,B),typeof O.getSnapshotBeforeUpdate!=="function"||typeof O.componentDidUpdate==="function"||FV.has(z)||(FV.add(z),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",w$(z))),typeof O.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof O.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",B),typeof z.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",B),(L=O.state)&&(typeof L!=="object"||U4(L))&&console.error("%s.state: must be set to an object or null",B),typeof O.getChildContext==="function"&&typeof z.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",B),O=U.stateNode,O.props=Q,O.state=U.memoizedState,O.refs={},PG(U),B=z.contextType,O.context=typeof B==="object"&&B!==null?T6(B):sU,O.state===Q&&(B=w$(z)||"Component",EV.has(B)||(EV.add(B),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",B))),U.mode&A4&&l1.recordLegacyContextWarning(U,O),l1.recordUnsafeLifecycleWarnings(U,O),O.state=U.memoizedState,B=z.getDerivedStateFromProps,typeof B==="function"&&(YW(U,z,B,Q),O.state=U.memoizedState),typeof z.getDerivedStateFromProps==="function"||typeof O.getSnapshotBeforeUpdate==="function"||typeof O.UNSAFE_componentWillMount!=="function"&&typeof O.componentWillMount!=="function"||(B=O.state,typeof O.componentWillMount==="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount==="function"&&O.UNSAFE_componentWillMount(),B!==O.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r(U)||"Component"),eH.enqueueReplaceState(O,O.state,null)),k8(U,Q,O,H),C8(),O.state=U.memoizedState),typeof O.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&i1)!==I$&&(U.flags|=134217728),O=!0}else if($===null){O=U.stateNode;var T=U.memoizedProps;L=ow(z,T),O.props=L;var b=O.context;D=z.contextType,B=sU,typeof D==="object"&&D!==null&&(B=T6(D)),F=z.getDerivedStateFromProps,D=typeof F==="function"||typeof O.getSnapshotBeforeUpdate==="function",T=U.pendingProps!==T,D||typeof O.UNSAFE_componentWillReceiveProps!=="function"&&typeof O.componentWillReceiveProps!=="function"||(T||b!==B)&&bD(U,O,Q,B),Yw=!1;var _=U.memoizedState;O.state=_,k8(U,Q,O,H),C8(),b=U.memoizedState,T||_!==b||Yw?(typeof F==="function"&&(YW(U,z,F,Q),b=U.memoizedState),(L=Yw||TD(U,z,L,Q,_,b,B))?(D||typeof O.UNSAFE_componentWillMount!=="function"&&typeof O.componentWillMount!=="function"||(typeof O.componentWillMount==="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount==="function"&&O.UNSAFE_componentWillMount()),typeof O.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&i1)!==I$&&(U.flags|=134217728)):(typeof O.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&i1)!==I$&&(U.flags|=134217728),U.memoizedProps=Q,U.memoizedState=b),O.props=Q,O.state=b,O.context=B,O=L):(typeof O.componentDidMount==="function"&&(U.flags|=4194308),(U.mode&i1)!==I$&&(U.flags|=134217728),O=!1)}else{O=U.stateNode,vG($,U),B=U.memoizedProps,D=ow(z,B),O.props=D,F=U.pendingProps,_=O.context,b=z.contextType,L=sU,typeof b==="object"&&b!==null&&(L=T6(b)),T=z.getDerivedStateFromProps,(b=typeof T==="function"||typeof O.getSnapshotBeforeUpdate==="function")||typeof O.UNSAFE_componentWillReceiveProps!=="function"&&typeof O.componentWillReceiveProps!=="function"||(B!==F||_!==L)&&bD(U,O,Q,L),Yw=!1,_=U.memoizedState,O.state=_,k8(U,Q,O,H),C8();var y=U.memoizedState;B!==F||_!==y||Yw||$!==null&&$.dependencies!==null&&R9($.dependencies)?(typeof T==="function"&&(YW(U,z,T,Q),y=U.memoizedState),(D=Yw||TD(U,z,D,Q,_,y,L)||$!==null&&$.dependencies!==null&&R9($.dependencies))?(b||typeof O.UNSAFE_componentWillUpdate!=="function"&&typeof O.componentWillUpdate!=="function"||(typeof O.componentWillUpdate==="function"&&O.componentWillUpdate(Q,y,L),typeof O.UNSAFE_componentWillUpdate==="function"&&O.UNSAFE_componentWillUpdate(Q,y,L)),typeof O.componentDidUpdate==="function"&&(U.flags|=4),typeof O.getSnapshotBeforeUpdate==="function"&&(U.flags|=1024)):(typeof O.componentDidUpdate!=="function"||B===$.memoizedProps&&_===$.memoizedState||(U.flags|=4),typeof O.getSnapshotBeforeUpdate!=="function"||B===$.memoizedProps&&_===$.memoizedState||(U.flags|=1024),U.memoizedProps=Q,U.memoizedState=y),O.props=Q,O.state=y,O.context=L,O=D):(typeof O.componentDidUpdate!=="function"||B===$.memoizedProps&&_===$.memoizedState||(U.flags|=4),typeof O.getSnapshotBeforeUpdate!=="function"||B===$.memoizedProps&&_===$.memoizedState||(U.flags|=1024),O=!1)}if(L=O,t9($,U),B=(U.flags&128)!==0,L||B){if(L=U.stateNode,iz(U),B&&typeof z.getDerivedStateFromError!=="function")z=null,_4=-1;else if(z=pF(L),U.mode&A4){M6(!0);try{pF(L)}finally{M6(!1)}}U.flags|=1,$!==null&&B?(U.child=Qz(U,$.child,null,H),U.child=Qz(U,null,z,H)):N4($,U,z,H),U.memoizedState=L.state,$=U.child}else $=n0($,U,H);return H=U.stateNode,O&&H.props!==Q&&(fX||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",r(U)||"a component"),fX=!0),$}function nD($,U,z,Q){return cw(),U.flags|=256,N4($,U,z,Q),U.child}function HW($,U){U&&U.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
140
|
+
%s.childContextTypes = ...`,U.displayName||U.name||"Component"),typeof U.getDerivedStateFromProps==="function"&&($=w$(U)||"Unknown",TV[$]||(console.error("%s: Function components do not support getDerivedStateFromProps.",$),TV[$]=!0)),typeof U.contextType==="object"&&U.contextType!==null&&(U=w$(U)||"Unknown",ZV[U]||(console.error("%s: Function components do not support contextType.",U),ZV[U]=!0))}function OW($){return{baseLanes:$,cachePool:i2()}}function NW($,U,z){return $=$!==null?$.childLanes&~z:0,U&&($|=c4),$}function dD($,U,z){var Q,H=U.pendingProps;W(U)&&(U.flags|=128);var O=!1,B=(U.flags&128)!==0;if((Q=B)||(Q=$!==null&&$.memoizedState===null?!1:(n6.current&vY)!==0),Q&&(O=!0,U.flags&=-129),Q=(U.flags&32)!==0,U.flags&=-33,$===null){if(d$){if(O?hU(U):uU(U),($=v6)?(z=BA($,_1),z=z!==null&&z.data!==Lz?z:null,z!==null&&(Q={dehydrated:z,treeContext:k2(),retryLane:536870912,hydrationErrors:null},U.memoizedState=Q,Q=b2(z),Q.return=U,U.child=Q,L4=U,v6=null)):z=null,z===null)throw E9(U,$),kU(U);return nW(z)?U.lanes=32:U.lanes=536870912,null}var L=H.children;if(H=H.fallback,O){uU(U);var D=U.mode;return L=a9({mode:"hidden",children:L},D),H=uw(H,D,z,null),L.return=U,H.return=U,L.sibling=H,U.child=L,H=U.child,H.memoizedState=OW(z),H.childLanes=NW($,Q,z),U.memoizedState=wO,f8(null,H)}return hU(U),BW(U,L)}var F=$.memoizedState;if(F!==null){var T=F.dehydrated;if(T!==null){if(B)U.flags&256?(hU(U),U.flags&=-257,U=qW($,U,z)):U.memoizedState!==null?(uU(U),U.child=$.child,U.flags|=128,U=null):(uU(U),L=H.fallback,D=U.mode,H=a9({mode:"visible",children:H.children},D),L=uw(L,D,z,null),L.flags|=2,H.return=U,L.return=U,H.sibling=L,U.child=H,Qz(U,$.child,null,z),H=U.child,H.memoizedState=OW(z),H.childLanes=NW($,Q,z),U.memoizedState=wO,U=f8(null,H));else if(hU(U),g2(),(z&536870912)!==0&&wQ(U),nW(T)){if(Q=T.nextSibling&&T.nextSibling.dataset,Q){L=Q.dgst;var b=Q.msg;D=Q.stck;var _=Q.cstck}O=b,Q=L,H=D,T=_,L=O,D=T,L=L?Error(L):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),L.stack=H||"",L.digest=Q,Q=D===void 0?null:D,H={value:L,source:null,stack:Q},typeof Q==="string"&&xH.set(L,H),P8(H),U=qW($,U,z)}else if(t6||az($,U,z,!1),Q=(z&$.childLanes)!==0,t6||Q){if(Q=E6,Q!==null&&(H=kw(Q,z),H!==0&&H!==F.retryLane))throw F.retryLane=H,D4($,H),f6(Q,$,H),UO;lW(T)||zQ(),U=qW($,U,z)}else lW(T)?(U.flags|=192,U.child=$.child,U=null):($=F.treeContext,v6=z1(T.nextSibling),L4=U,d$=!0,eU=null,I0=!1,Q1=null,_1=!1,$!==null&&x2(U,$),U=BW(U,H.children),U.flags|=4096);return U}}if(O)return uU(U),L=H.fallback,D=U.mode,_=$.child,T=_.sibling,H=m0(_,{mode:"hidden",children:H.children}),H.subtreeFlags=_.subtreeFlags&65011712,T!==null?L=m0(T,L):(L=uw(L,D,z,null),L.flags|=2),L.return=U,H.return=U,H.sibling=L,U.child=H,f8(null,H),H=U.child,L=$.child.memoizedState,L===null?L=OW(z):(D=L.cachePool,D!==null?(_=p6._currentValue,D=D.parent!==_?{parent:_,pool:_}:D):D=i2(),L={baseLanes:L.baseLanes|z,cachePool:D}),H.memoizedState=L,H.childLanes=NW($,Q,z),U.memoizedState=wO,f8($.child,H);return F!==null&&(z&62914560)===z&&(z&$.lanes)!==0&&wQ(U),hU(U),z=$.child,$=z.sibling,z=m0(z,{mode:"visible",children:H.children}),z.return=U,z.sibling=null,$!==null&&(Q=U.deletions,Q===null?(U.deletions=[$],U.flags|=16):Q.push($)),U.child=z,U.memoizedState=null,z}function BW($,U){return U=a9({mode:"visible",children:U},$.mode),U.return=$,$.child=U}function a9($,U){return $=Z(22,$,null,U),$.lanes=0,$}function qW($,U,z){return Qz(U,$.child,null,z),$=BW(U,U.pendingProps.children),$.flags|=2,U.memoizedState=null,$}function pD($,U,z){$.lanes|=U;var Q=$.alternate;Q!==null&&(Q.lanes|=U),FG($.return,U,z)}function LW($,U,z,Q,H,O){var B=$.memoizedState;B===null?$.memoizedState={isBackwards:U,rendering:null,renderingStartTime:0,last:Q,tail:z,tailMode:H,treeForkCount:O}:(B.isBackwards=U,B.rendering=null,B.renderingStartTime=0,B.last=Q,B.tail=z,B.tailMode=H,B.treeForkCount=O)}function oD($,U,z){var Q=U.pendingProps,H=Q.revealOrder,O=Q.tail,B=Q.children,L=n6.current;if((Q=(L&vY)!==0)?(L=L&kX|vY,U.flags|=128):L&=kX,u$(n6,L,U),L=H==null?"null":H,H!=="forwards"&&H!=="unstable_legacy-backwards"&&H!=="together"&&H!=="independent"&&!bV[L])if(bV[L]=!0,H==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(H==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof H==="string")switch(H.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',H,H.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',H,H.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',H)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',H);if(L=O==null?"null":O,!rQ[L])if(O==null){if(H==="forwards"||H==="backwards"||H==="unstable_legacy-backwards")rQ[L]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else O!=="visible"&&O!=="collapsed"&&O!=="hidden"?(rQ[L]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',O)):H!=="forwards"&&H!=="backwards"&&H!=="unstable_legacy-backwards"&&(rQ[L]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',O));$:if((H==="forwards"||H==="backwards"||H==="unstable_legacy-backwards")&&B!==void 0&&B!==null&&B!==!1)if(U4(B)){for(L=0;L<B.length;L++)if(!e2(B[L],L))break $}else if(L=a(B),typeof L==="function"){if(L=L.call(B))for(var D=L.next(),F=0;!D.done;D=L.next()){if(!e2(D.value,F))break $;F++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',H);if(N4($,U,B,z),d$?(CU(),B=BY):B=0,!Q&&$!==null&&($.flags&128)!==0)$:for($=U.child;$!==null;){if($.tag===13)$.memoizedState!==null&&pD($,z,U);else if($.tag===19)pD($,z,U);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===U)break $;for(;$.sibling===null;){if($.return===null||$.return===U)break $;$=$.return}$.sibling.return=$.return,$=$.sibling}switch(H){case"forwards":z=U.child;for(H=null;z!==null;)$=z.alternate,$!==null&&x9($)===null&&(H=z),z=z.sibling;z=H,z===null?(H=U.child,U.child=null):(H=z.sibling,z.sibling=null),LW(U,!1,H,z,O,B);break;case"backwards":case"unstable_legacy-backwards":z=null,H=U.child;for(U.child=null;H!==null;){if($=H.alternate,$!==null&&x9($)===null){U.child=H;break}$=H.sibling,H.sibling=z,z=H,H=$}LW(U,!0,z,null,O,B);break;case"together":LW(U,!1,null,null,void 0,B);break;default:U.memoizedState=null}return U.child}function n0($,U,z){if($!==null&&(U.dependencies=$.dependencies),_4=-1,Gw|=U.lanes,(z&U.childLanes)===0)if($!==null){if(az($,U,z,!1),(z&U.childLanes)===0)return null}else return null;if($!==null&&U.child!==$.child)throw Error("Resuming work not yet implemented.");if(U.child!==null){$=U.child,z=m0($,$.pendingProps),U.child=z;for(z.return=U;$.sibling!==null;)$=$.sibling,z=z.sibling=m0($,$.pendingProps),z.return=U;z.sibling=null}return U.child}function KW($,U){if(($.lanes&U)!==0)return!0;return $=$.dependencies,$!==null&&R9($)?!0:!1}function VZ($,U,z){switch(U.tag){case 3:Q$(U,U.stateNode.containerInfo),xU(U,p6,$.memoizedState.cache),cw();break;case 27:case 5:G6(U);break;case 4:Q$(U,U.stateNode.containerInfo);break;case 10:xU(U,U.type,U.memoizedProps.value);break;case 12:(z&U.childLanes)!==0&&(U.flags|=4),U.flags|=2048;var Q=U.stateNode;Q.effectDuration=-0,Q.passiveEffectDuration=-0;break;case 31:if(U.memoizedState!==null)return U.flags|=128,TG(U),null;break;case 13:if(Q=U.memoizedState,Q!==null){if(Q.dehydrated!==null)return hU(U),U.flags|=128,null;if((z&U.child.childLanes)!==0)return dD($,U,z);return hU(U),$=n0($,U,z),$!==null?$.sibling:null}hU(U);break;case 19:var H=($.flags&128)!==0;if(Q=(z&U.childLanes)!==0,Q||(az($,U,z,!1),Q=(z&U.childLanes)!==0),H){if(Q)return oD($,U,z);U.flags|=128}if(H=U.memoizedState,H!==null&&(H.rendering=null,H.tail=null,H.lastEffect=null),u$(n6,n6.current,U),Q)break;else return null;case 22:return U.lanes=0,uD($,U,z,U.pendingProps);case 24:xU(U,p6,$.memoizedState.cache)}return n0($,U,z)}function DW($,U,z){if(U._debugNeedsRemount&&$!==null){z=BG(U.type,U.key,U.pendingProps,U._debugOwner||null,U.mode,U.lanes),z._debugStack=U._debugStack,z._debugTask=U._debugTask;var Q=U.return;if(Q===null)throw Error("Cannot swap the root fiber.");if($.alternate=null,U.alternate=null,z.index=U.index,z.sibling=U.sibling,z.return=U.return,z.ref=U.ref,z._debugInfo=U._debugInfo,U===Q.child)Q.child=z;else{var H=Q.child;if(H===null)throw Error("Expected parent to have a child.");for(;H.sibling!==U;)if(H=H.sibling,H===null)throw Error("Expected to find the previous sibling.");H.sibling=z}return U=Q.deletions,U===null?(Q.deletions=[$],Q.flags|=16):U.push($),z.flags|=2,z}if($!==null)if($.memoizedProps!==U.pendingProps||U.type!==$.type)t6=!0;else{if(!KW($,z)&&(U.flags&128)===0)return t6=!1,VZ($,U,z);t6=($.flags&131072)!==0?!0:!1}else{if(t6=!1,Q=d$)CU(),Q=(U.flags&1048576)!==0;Q&&(Q=U.index,CU(),C2(U,BY,Q))}switch(U.lanes=0,U.tag){case 16:$:if(Q=U.pendingProps,$=gU(U.elementType),U.type=$,typeof $==="function")NG($)?(Q=ow($,Q),U.tag=1,U.type=$=hw($),U=lD(null,U,$,Q,z)):(U.tag=0,HW(U,$),U.type=$=hw($),U=WW(null,U,$,Q,z));else{if($!==void 0&&$!==null){if(H=$.$$typeof,H===$Y){U.tag=11,U.type=$=OG($),U=yD(null,U,$,Q,z);break $}else if(H===DQ){U.tag=14,U=fD(null,U,$,Q,z);break $}}throw U="",$!==null&&typeof $==="object"&&$.$$typeof===X1&&(U=" Did you wrap a component in React.lazy() more than once?"),z=w$($)||$,Error("Element type is invalid. Received a promise that resolves to: "+z+". Lazy element type must resolve to a class or function."+U)}return U;case 0:return WW($,U,U.type,U.pendingProps,z);case 1:return Q=U.type,H=ow(Q,U.pendingProps),lD($,U,Q,H,z);case 3:$:{if(Q$(U,U.stateNode.containerInfo),$===null)throw Error("Should have a current fiber. This is a bug in React.");Q=U.pendingProps;var O=U.memoizedState;H=O.element,vG($,U),k8(U,Q,null,z);var B=U.memoizedState;if(Q=B.cache,xU(U,p6,Q),Q!==O.cache&&VG(U,[p6],z,!0),C8(),Q=B.element,O.isDehydrated)if(O={element:Q,isDehydrated:!1,cache:B.cache},U.updateQueue.baseState=O,U.memoizedState=O,U.flags&256){U=nD($,U,Q,z);break $}else if(Q!==H){H=s4(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),U),P8(H),U=nD($,U,Q,z);break $}else{switch($=U.stateNode.containerInfo,$.nodeType){case 9:$=$.body;break;default:$=$.nodeName==="HTML"?$.ownerDocument.body:$}v6=z1($.firstChild),L4=U,d$=!0,eU=null,I0=!1,Q1=null,_1=!0,z=QV(U,null,Q,z);for(U.child=z;z;)z.flags=z.flags&-3|4096,z=z.sibling}else{if(cw(),Q===H){U=n0($,U,z);break $}N4($,U,Q,z)}U=U.child}return U;case 26:return t9($,U),$===null?(z=AA(U.type,null,U.pendingProps,null))?U.memoizedState=z:d$||(z=U.type,$=U.pendingProps,Q=l6(dU.current),Q=QQ(Q).createElement(z),Q[q4]=U,Q[M4]=$,B4(Q,z,$),F$(Q),U.stateNode=Q):U.memoizedState=AA(U.type,$.memoizedProps,U.pendingProps,$.memoizedState),null;case 27:return G6(U),$===null&&d$&&(Q=l6(dU.current),H=E$(),Q=U.stateNode=DA(U.type,U.pendingProps,Q,H,!1),I0||(H=YA(Q,U.type,U.pendingProps,H),H!==null&&(mw(U,0).serverProps=H)),L4=U,_1=!0,H=v6,lU(U.type)?(IO=H,v6=z1(Q.firstChild)):v6=H),N4($,U,U.pendingProps.children,z),t9($,U),$===null&&(U.flags|=4194304),U.child;case 5:return $===null&&d$&&(O=E$(),Q=zG(U.type,O.ancestorInfo),H=v6,(B=!H)||(B=WS(H,U.type,U.pendingProps,_1),B!==null?(U.stateNode=B,I0||(O=YA(B,U.type,U.pendingProps,O),O!==null&&(mw(U,0).serverProps=O)),L4=U,v6=z1(B.firstChild),_1=!1,O=!0):O=!1,B=!O),B&&(Q&&E9(U,H),kU(U))),G6(U),H=U.type,O=U.pendingProps,B=$!==null?$.memoizedProps:null,Q=O.children,cW(H,O)?Q=null:B!==null&&cW(H,B)&&(U.flags|=32),U.memoizedState!==null&&(H=CG($,U,BZ,null,null,z),dY._currentValue=H),t9($,U),N4($,U,Q,z),U.child;case 6:return $===null&&d$&&(z=U.pendingProps,$=E$(),Q=$.ancestorInfo.current,z=Q!=null?N9(z,Q.tag,$.ancestorInfo.implicitRootScope):!0,$=v6,(Q=!$)||(Q=HS($,U.pendingProps,_1),Q!==null?(U.stateNode=Q,L4=U,v6=null,Q=!0):Q=!1,Q=!Q),Q&&(z&&E9(U,$),kU(U))),null;case 13:return dD($,U,z);case 4:return Q$(U,U.stateNode.containerInfo),Q=U.pendingProps,$===null?U.child=Qz(U,null,Q,z):N4($,U,Q,z),U.child;case 11:return yD($,U,U.type,U.pendingProps,z);case 7:return N4($,U,U.pendingProps,z),U.child;case 8:return N4($,U,U.pendingProps.children,z),U.child;case 12:return U.flags|=4,U.flags|=2048,Q=U.stateNode,Q.effectDuration=-0,Q.passiveEffectDuration=-0,N4($,U,U.pendingProps.children,z),U.child;case 10:return Q=U.type,H=U.pendingProps,O=H.value,"value"in H||CV||(CV=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),xU(U,Q,O),N4($,U,H.children,z),U.child;case 9:return H=U.type._context,Q=U.pendingProps.children,typeof Q!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),iw(U),H=T6(H),Q=iH(Q,H,void 0),U.flags|=1,N4($,U,Q,z),U.child;case 14:return fD($,U,U.type,U.pendingProps,z);case 15:return hD($,U,U.type,U.pendingProps,z);case 19:return oD($,U,z);case 31:return FZ($,U,z);case 22:return uD($,U,z,U.pendingProps);case 24:return iw(U),Q=T6(p6),$===null?(H=IG(),H===null&&(H=E6,O=EG(),H.pooledCache=O,lw(O),O!==null&&(H.pooledCacheLanes|=z),H=O),U.memoizedState={parent:Q,cache:H},PG(U),xU(U,p6,H)):(($.lanes&z)!==0&&(vG($,U),k8(U,null,null,z),C8()),H=$.memoizedState,O=U.memoizedState,H.parent!==Q?(H={parent:Q,cache:Q},U.memoizedState=H,U.lanes===0&&(U.memoizedState=U.updateQueue.baseState=H),xU(U,p6,Q)):(Q=O.cache,xU(U,p6,Q),Q!==H.cache&&VG(U,[p6],z,!0))),N4($,U,U.pendingProps.children,z),U.child;case 29:throw U.pendingProps}throw Error("Unknown unit of work tag ("+U.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function d0($){$.flags|=4}function jW($,U,z,Q,H){if(U=($.mode&mT)!==I$)U=!1;if(U){if($.flags|=16777216,(H&335544128)===H)if($.stateNode.complete)$.flags|=8192;else if(Pj())$.flags|=8192;else throw Jz=iQ,nH}else $.flags&=-16777217}function rD($,U){if(U.type!=="stylesheet"||(U.state.loading&T1)!==jz)$.flags&=-16777217;else if($.flags|=16777216,!RA(U))if(Pj())$.flags|=8192;else throw Jz=iQ,nH}function s9($,U){U!==null&&($.flags|=4),$.flags&16384&&(U=$.tag!==22?nz():536870912,$.lanes|=U,Nz|=U)}function h8($,U){if(!d$)switch($.tailMode){case"hidden":U=$.tail;for(var z=null;U!==null;)U.alternate!==null&&(z=U),U=U.sibling;z===null?$.tail=null:z.sibling=null;break;case"collapsed":z=$.tail;for(var Q=null;z!==null;)z.alternate!==null&&(Q=z),z=z.sibling;Q===null?U||$.tail===null?$.tail=null:$.tail.sibling=null:Q.sibling=null}}function R6($){var U=$.alternate!==null&&$.alternate.child===$.child,z=0,Q=0;if(U)if(($.mode&x$)!==I$){for(var{selfBaseDuration:H,child:O}=$;O!==null;)z|=O.lanes|O.childLanes,Q|=O.subtreeFlags&65011712,Q|=O.flags&65011712,H+=O.treeBaseDuration,O=O.sibling;$.treeBaseDuration=H}else for(H=$.child;H!==null;)z|=H.lanes|H.childLanes,Q|=H.subtreeFlags&65011712,Q|=H.flags&65011712,H.return=$,H=H.sibling;else if(($.mode&x$)!==I$){H=$.actualDuration,O=$.selfBaseDuration;for(var B=$.child;B!==null;)z|=B.lanes|B.childLanes,Q|=B.subtreeFlags,Q|=B.flags,H+=B.actualDuration,O+=B.treeBaseDuration,B=B.sibling;$.actualDuration=H,$.treeBaseDuration=O}else for(H=$.child;H!==null;)z|=H.lanes|H.childLanes,Q|=H.subtreeFlags,Q|=H.flags,H.return=$,H=H.sibling;return $.subtreeFlags|=Q,$.childLanes=z,U}function EZ($,U,z){var Q=U.pendingProps;switch(DG(U),U.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return R6(U),null;case 1:return R6(U),null;case 3:if(z=U.stateNode,Q=null,$!==null&&(Q=$.memoizedState.cache),U.memoizedState.cache!==Q&&(U.flags|=2048),i0(p6,U),R$(U),z.pendingContext&&(z.context=z.pendingContext,z.pendingContext=null),$===null||$.child===null)tz(U)?(AG(),d0(U)):$===null||$.memoizedState.isDehydrated&&(U.flags&256)===0||(U.flags|=1024,jG());return R6(U),null;case 26:var{type:H,memoizedState:O}=U;return $===null?(d0(U),O!==null?(R6(U),rD(U,O)):(R6(U),jW(U,H,null,Q,z))):O?O!==$.memoizedState?(d0(U),R6(U),rD(U,O)):(R6(U),U.flags&=-16777217):($=$.memoizedProps,$!==Q&&d0(U),R6(U),jW(U,H,$,Q,z)),null;case 27:if(W6(U),z=l6(dU.current),H=U.type,$!==null&&U.stateNode!=null)$.memoizedProps!==Q&&d0(U);else{if(!Q){if(U.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return R6(U),null}$=E$(),tz(U)?y2(U,$):($=DA(H,Q,z,$,!0),U.stateNode=$,d0(U))}return R6(U),null;case 5:if(W6(U),H=U.type,$!==null&&U.stateNode!=null)$.memoizedProps!==Q&&d0(U);else{if(!Q){if(U.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return R6(U),null}var B=E$();if(tz(U))y2(U,B);else{switch(O=l6(dU.current),zG(H,B.ancestorInfo),B=B.context,O=QQ(O),B){case dX:O=O.createElementNS(KX,H);break;case L7:O=O.createElementNS(RQ,H);break;default:switch(H){case"svg":O=O.createElementNS(KX,H);break;case"math":O=O.createElementNS(RQ,H);break;case"script":O=O.createElement("div"),O.innerHTML="<script></script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof Q.is==="string"?O.createElement("select",{is:Q.is}):O.createElement("select"),Q.multiple?O.multiple=!0:Q.size&&(O.size=Q.size);break;default:O=typeof Q.is==="string"?O.createElement(H,{is:Q.is}):O.createElement(H),H.indexOf("-")===-1&&(H!==H.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",H),Object.prototype.toString.call(O)!=="[object HTMLUnknownElement]"||m1.call(zE,H)||(zE[H]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",H)))}}O[q4]=U,O[M4]=Q;$:for(B=U.child;B!==null;){if(B.tag===5||B.tag===6)O.appendChild(B.stateNode);else if(B.tag!==4&&B.tag!==27&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===U)break $;for(;B.sibling===null;){if(B.return===null||B.return===U)break $;B=B.return}B.sibling.return=B.return,B=B.sibling}U.stateNode=O;$:switch(B4(O,H,Q),H){case"button":case"input":case"select":case"textarea":Q=!!Q.autoFocus;break $;case"img":Q=!0;break $;default:Q=!1}Q&&d0(U)}}return R6(U),jW(U,U.type,$===null?null:$.memoizedProps,U.pendingProps,z),null;case 6:if($&&U.stateNode!=null)$.memoizedProps!==Q&&d0(U);else{if(typeof Q!=="string"&&U.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if($=l6(dU.current),z=E$(),tz(U)){if($=U.stateNode,z=U.memoizedProps,H=!I0,Q=null,O=L4,O!==null)switch(O.tag){case 3:H&&(H=LA($,z,Q),H!==null&&(mw(U,0).serverProps=H));break;case 27:case 5:Q=O.memoizedProps,H&&(H=LA($,z,Q),H!==null&&(mw(U,0).serverProps=H))}$[q4]=U,$=$.nodeValue===z||Q!==null&&Q.suppressHydrationWarning===!0||$A($.nodeValue,z)?!0:!1,$||kU(U,!0)}else H=z.ancestorInfo.current,H!=null&&N9(Q,H.tag,z.ancestorInfo.implicitRootScope),$=QQ($).createTextNode(Q),$[q4]=U,U.stateNode=$}return R6(U),null;case 31:if(z=U.memoizedState,$===null||$.memoizedState!==null){if(Q=tz(U),z!==null){if($===null){if(!Q)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if($=U.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");$[q4]=U,R6(U),(U.mode&x$)!==I$&&z!==null&&($=U.child,$!==null&&(U.treeBaseDuration-=$.treeBaseDuration))}else AG(),cw(),(U.flags&128)===0&&(z=U.memoizedState=null),U.flags|=4,R6(U),(U.mode&x$)!==I$&&z!==null&&($=U.child,$!==null&&(U.treeBaseDuration-=$.treeBaseDuration));$=!1}else z=jG(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=z),$=!0;if(!$){if(U.flags&256)return U1(U),U;return U1(U),null}if((U.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return R6(U),null;case 13:if(Q=U.memoizedState,$===null||$.memoizedState!==null&&$.memoizedState.dehydrated!==null){if(H=Q,O=tz(U),H!==null&&H.dehydrated!==null){if($===null){if(!O)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(O=U.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");O[q4]=U,R6(U),(U.mode&x$)!==I$&&H!==null&&(H=U.child,H!==null&&(U.treeBaseDuration-=H.treeBaseDuration))}else AG(),cw(),(U.flags&128)===0&&(H=U.memoizedState=null),U.flags|=4,R6(U),(U.mode&x$)!==I$&&H!==null&&(H=U.child,H!==null&&(U.treeBaseDuration-=H.treeBaseDuration));H=!1}else H=jG(),$!==null&&$.memoizedState!==null&&($.memoizedState.hydrationErrors=H),H=!0;if(!H){if(U.flags&256)return U1(U),U;return U1(U),null}}if(U1(U),(U.flags&128)!==0)return U.lanes=z,(U.mode&x$)!==I$&&S8(U),U;return z=Q!==null,$=$!==null&&$.memoizedState!==null,z&&(Q=U.child,H=null,Q.alternate!==null&&Q.alternate.memoizedState!==null&&Q.alternate.memoizedState.cachePool!==null&&(H=Q.alternate.memoizedState.cachePool.pool),O=null,Q.memoizedState!==null&&Q.memoizedState.cachePool!==null&&(O=Q.memoizedState.cachePool.pool),O!==H&&(Q.flags|=2048)),z!==$&&z&&(U.child.flags|=8192),s9(U,U.updateQueue),R6(U),(U.mode&x$)!==I$&&z&&($=U.child,$!==null&&(U.treeBaseDuration-=$.treeBaseDuration)),null;case 4:return R$(U),$===null&&xW(U.stateNode.containerInfo),R6(U),null;case 10:return i0(U.type,U),R6(U),null;case 19:if(a$(n6,U),Q=U.memoizedState,Q===null)return R6(U),null;if(H=(U.flags&128)!==0,O=Q.rendering,O===null)if(H)h8(Q,!1);else{if(g6!==QU||$!==null&&($.flags&128)!==0)for($=U.child;$!==null;){if(O=x9($),O!==null){U.flags|=128,h8(Q,!1),$=O.updateQueue,U.updateQueue=$,s9(U,$),U.subtreeFlags=0,$=z;for(z=U.child;z!==null;)T2(z,$),z=z.sibling;return u$(n6,n6.current&kX|vY,U),d$&&c0(U,Q.treeForkCount),U.child}$=$.sibling}Q.tail!==null&&Q4()>w7&&(U.flags|=128,H=!0,h8(Q,!1),U.lanes=4194304)}else{if(!H)if($=x9(O),$!==null){if(U.flags|=128,H=!0,$=$.updateQueue,U.updateQueue=$,s9(U,$),h8(Q,!0),Q.tail===null&&Q.tailMode==="hidden"&&!O.alternate&&!d$)return R6(U),null}else 2*Q4()-Q.renderingStartTime>w7&&z!==536870912&&(U.flags|=128,H=!0,h8(Q,!1),U.lanes=4194304);Q.isBackwards?(O.sibling=U.child,U.child=O):($=Q.last,$!==null?$.sibling=O:U.child=O,Q.last=O)}if(Q.tail!==null)return $=Q.tail,Q.rendering=$,Q.tail=$.sibling,Q.renderingStartTime=Q4(),$.sibling=null,z=n6.current,z=H?z&kX|vY:z&kX,u$(n6,z,U),d$&&c0(U,Q.treeForkCount),$;return R6(U),null;case 22:case 23:return U1(U),SG(U),Q=U.memoizedState!==null,$!==null?$.memoizedState!==null!==Q&&(U.flags|=8192):Q&&(U.flags|=8192),Q?(z&536870912)!==0&&(U.flags&128)===0&&(R6(U),U.subtreeFlags&6&&(U.flags|=8192)):R6(U),z=U.updateQueue,z!==null&&s9(U,z.retryQueue),z=null,$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(z=$.memoizedState.cachePool.pool),Q=null,U.memoizedState!==null&&U.memoizedState.cachePool!==null&&(Q=U.memoizedState.cachePool.pool),Q!==z&&(U.flags|=2048),$!==null&&a$(Xz,U),null;case 24:return z=null,$!==null&&(z=$.memoizedState.cache),U.memoizedState.cache!==z&&(U.flags|=2048),i0(p6,U),R6(U),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+U.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function MZ($,U){switch(DG(U),U.tag){case 1:return $=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&x$)!==I$&&S8(U),U):null;case 3:return i0(p6,U),R$(U),$=U.flags,($&65536)!==0&&($&128)===0?(U.flags=$&-65537|128,U):null;case 26:case 27:case 5:return W6(U),null;case 31:if(U.memoizedState!==null){if(U1(U),U.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cw()}return $=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&x$)!==I$&&S8(U),U):null;case 13:if(U1(U),$=U.memoizedState,$!==null&&$.dehydrated!==null){if(U.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cw()}return $=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&x$)!==I$&&S8(U),U):null;case 19:return a$(n6,U),null;case 4:return R$(U),null;case 10:return i0(U.type,U),null;case 22:case 23:return U1(U),SG(U),$!==null&&a$(Xz,U),$=U.flags,$&65536?(U.flags=$&-65537|128,(U.mode&x$)!==I$&&S8(U),U):null;case 24:return i0(p6,U),null;case 25:return null;default:return null}}function tD($,U){switch(DG(U),U.tag){case 3:i0(p6,U),R$(U);break;case 26:case 27:case 5:W6(U);break;case 4:R$(U);break;case 31:U.memoizedState!==null&&U1(U);break;case 13:U1(U);break;case 19:a$(n6,U);break;case 10:i0(U.type,U);break;case 22:case 23:U1(U),SG(U),$!==null&&a$(Xz,U);break;case 24:i0(p6,U)}}function N0($){return($.mode&x$)!==I$}function aD($,U){N0($)?(O0(),u8(U,$),H0()):u8(U,$)}function AW($,U,z){N0($)?(O0(),wX(z,$,U),H0()):wX(z,$,U)}function u8($,U){try{var z=U.updateQueue,Q=z!==null?z.lastEffect:null;if(Q!==null){var H=Q.next;z=H;do{if((z.tag&$)===$&&(Q=void 0,($&P4)!==nQ&&(iX=!0),Q=O$(U,dT,z),($&P4)!==nQ&&(iX=!1),Q!==void 0&&typeof Q!=="function")){var O=void 0;O=(z.tag&W1)!==0?"useLayoutEffect":(z.tag&P4)!==0?"useInsertionEffect":"useEffect";var B=void 0;B=Q===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof Q.then==="function"?`
|
|
141
|
+
|
|
142
|
+
It looks like you wrote `+O+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
|
+
|
|
144
|
+
`+O+`(() => {
|
|
145
|
+
async function fetchData() {
|
|
146
|
+
// You can await here
|
|
147
|
+
const response = await MyAPI.getData(someId);
|
|
148
|
+
// ...
|
|
149
|
+
}
|
|
150
|
+
fetchData();
|
|
151
|
+
}, [someId]); // Or [] if effect doesn't need props or state
|
|
152
|
+
|
|
153
|
+
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+Q,O$(U,function(L,D){console.error("%s must not return anything besides a function, which is used for clean-up.%s",L,D)},O,B)}z=z.next}while(z!==H)}}catch(L){X6(U,U.return,L)}}function wX($,U,z){try{var Q=U.updateQueue,H=Q!==null?Q.lastEffect:null;if(H!==null){var O=H.next;Q=O;do{if((Q.tag&$)===$){var B=Q.inst,L=B.destroy;L!==void 0&&(B.destroy=void 0,($&P4)!==nQ&&(iX=!0),H=U,O$(H,pT,H,z,L),($&P4)!==nQ&&(iX=!1))}Q=Q.next}while(Q!==O)}}catch(D){X6(U,U.return,D)}}function sD($,U){N0($)?(O0(),u8(U,$),H0()):u8(U,$)}function FW($,U,z){N0($)?(O0(),wX(z,$,U),H0()):wX(z,$,U)}function eD($){var U=$.updateQueue;if(U!==null){var z=$.stateNode;$.type.defaultProps||"ref"in $.memoizedProps||fX||(z.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",r($)||"instance"),z.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",r($)||"instance"));try{O$($,UD,U,z)}catch(Q){X6($,$.return,Q)}}}function RZ($,U,z){return $.getSnapshotBeforeUpdate(U,z)}function IZ($,U){var{memoizedProps:z,memoizedState:Q}=U;U=$.stateNode,$.type.defaultProps||"ref"in $.memoizedProps||fX||(U.props!==$.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",r($)||"instance"),U.state!==$.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",r($)||"instance"));try{var H=ow($.type,z),O=O$($,RZ,U,H,Q);z=kV,O!==void 0||z.has($.type)||(z.add($.type),O$($,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",r($))})),U.__reactInternalSnapshotBeforeUpdate=O}catch(B){X6($,$.return,B)}}function $j($,U,z){z.props=ow($.type,$.memoizedProps),z.state=$.memoizedState,N0($)?(O0(),O$($,eF,$,U,z),H0()):O$($,eF,$,U,z)}function _Z($){var U=$.ref;if(U!==null){switch($.tag){case 26:case 27:case 5:var z=$.stateNode;break;case 30:z=$.stateNode;break;default:z=$.stateNode}if(typeof U==="function")if(N0($))try{O0(),$.refCleanup=U(z)}finally{H0()}else $.refCleanup=U(z);else typeof U==="string"?console.error("String refs are no longer supported."):U.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",r($)),U.current=z}}function m8($,U){try{O$($,_Z,$)}catch(z){X6($,U,z)}}function B0($,U){var{ref:z,refCleanup:Q}=$;if(z!==null)if(typeof Q==="function")try{if(N0($))try{O0(),O$($,Q)}finally{H0($)}else O$($,Q)}catch(H){X6($,U,H)}finally{$.refCleanup=null,$=$.alternate,$!=null&&($.refCleanup=null)}else if(typeof z==="function")try{if(N0($))try{O0(),O$($,z,null)}finally{H0($)}else O$($,z,null)}catch(H){X6($,U,H)}else z.current=null}function Uj($,U,z,Q){var H=$.memoizedProps,O=H.id,B=H.onCommit;H=H.onRender,U=U===null?"mount":"update",hQ&&(U="nested-update"),typeof H==="function"&&H(O,U,$.actualDuration,$.treeBaseDuration,$.actualStartTime,z),typeof B==="function"&&B(O,U,Q,z)}function PZ($,U,z,Q){var H=$.memoizedProps;$=H.id,H=H.onPostCommit,U=U===null?"mount":"update",hQ&&(U="nested-update"),typeof H==="function"&&H($,U,Q,z)}function wj($){var{type:U,memoizedProps:z,stateNode:Q}=$;try{O$($,aZ,Q,U,z,$)}catch(H){X6($,$.return,H)}}function VW($,U,z){try{O$($,eZ,$.stateNode,$.type,z,U,$)}catch(Q){X6($,$.return,Q)}}function zj($){return $.tag===5||$.tag===3||$.tag===26||$.tag===27&&lU($.type)||$.tag===4}function EW($){$:for(;;){for(;$.sibling===null;){if($.return===null||zj($.return))return null;$=$.return}$.sibling.return=$.return;for($=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.tag===27&&lU($.type))continue $;if($.flags&2)continue $;if($.child===null||$.tag===4)continue $;else $.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function MW($,U,z){var Q=$.tag;if(Q===5||Q===6)$=$.stateNode,U?(HA(z),(z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z).insertBefore($,U)):(HA(z),U=z.nodeType===9?z.body:z.nodeName==="HTML"?z.ownerDocument.body:z,U.appendChild($),z=z._reactRootContainer,z!==null&&z!==void 0||U.onclick!==null||(U.onclick=u0));else if(Q!==4&&(Q===27&&lU($.type)&&(z=$.stateNode,U=null),$=$.child,$!==null))for(MW($,U,z),$=$.sibling;$!==null;)MW($,U,z),$=$.sibling}function e9($,U,z){var Q=$.tag;if(Q===5||Q===6)$=$.stateNode,U?z.insertBefore($,U):z.appendChild($);else if(Q!==4&&(Q===27&&lU($.type)&&(z=$.stateNode),$=$.child,$!==null))for(e9($,U,z),$=$.sibling;$!==null;)e9($,U,z),$=$.sibling}function vZ($){for(var U,z=$.return;z!==null;){if(zj(z)){U=z;break}z=z.return}if(U==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(U.tag){case 27:U=U.stateNode,z=EW($),e9($,z,U);break;case 5:z=U.stateNode,U.flags&32&&(WA(z),U.flags&=-33),U=EW($),e9($,U,z);break;case 3:case 4:U=U.stateNode.containerInfo,z=EW($),MW($,z,U);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Xj($){var{stateNode:U,memoizedProps:z}=$;try{O$($,LS,$.type,z,U,$)}catch(Q){X6($,$.return,Q)}}function Yj($,U){return U.tag===31?(U=U.memoizedState,$.memoizedState!==null&&U===null):U.tag===13?($=$.memoizedState,U=U.memoizedState,$!==null&&$.dehydrated!==null&&(U===null||U.dehydrated===null)):U.tag===3?$.memoizedState.isDehydrated&&(U.flags&256)===0:!1}function ZZ($,U){if($=$.containerInfo,EO=A7,$=V2($),JG($)){if("selectionStart"in $)var z={start:$.selectionStart,end:$.selectionEnd};else $:{z=(z=$.ownerDocument)&&z.defaultView||window;var Q=z.getSelection&&z.getSelection();if(Q&&Q.rangeCount!==0){z=Q.anchorNode;var{anchorOffset:H,focusNode:O}=Q;Q=Q.focusOffset;try{z.nodeType,O.nodeType}catch($$){z=null;break $}var B=0,L=-1,D=-1,F=0,T=0,b=$,_=null;U:for(;;){for(var y;;){if(b!==z||H!==0&&b.nodeType!==3||(L=B+H),b!==O||Q!==0&&b.nodeType!==3||(D=B+Q),b.nodeType===3&&(B+=b.nodeValue.length),(y=b.firstChild)===null)break;_=b,b=y}for(;;){if(b===$)break U;if(_===z&&++F===H&&(L=B),_===O&&++T===Q&&(D=B),(y=b.nextSibling)!==null)break;b=_,_=b.parentNode}b=y}z=L===-1||D===-1?null:{start:L,end:D}}else z=null}z=z||{start:0,end:0}}else z=null;MO={focusedElem:$,selectionRange:z},A7=!1;for(W4=U;W4!==null;)if(U=W4,$=U.child,(U.subtreeFlags&1028)!==0&&$!==null)$.return=U,W4=$;else for(;W4!==null;){switch($=U=W4,z=$.alternate,H=$.flags,$.tag){case 0:if((H&4)!==0&&($=$.updateQueue,$=$!==null?$.events:null,$!==null))for(z=0;z<$.length;z++)H=$[z],H.ref.impl=H.nextImpl;break;case 11:case 15:break;case 1:(H&1024)!==0&&z!==null&&IZ($,z);break;case 3:if((H&1024)!==0){if($=$.stateNode.containerInfo,z=$.nodeType,z===9)iW($);else if(z===1)switch($.nodeName){case"HEAD":case"HTML":case"BODY":iW($);break;default:$.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((H&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if($=U.sibling,$!==null){$.return=U.return,W4=$;break}W4=U.return}}function Jj($,U,z){var Q=e4(),H=J0(),O=G0(),B=W0(),L=z.flags;switch(z.tag){case 0:case 11:case 15:q0($,z),L&4&&aD(z,W1|Z1);break;case 1:if(q0($,z),L&4)if($=z.stateNode,U===null)z.type.defaultProps||"ref"in z.memoizedProps||fX||($.props!==z.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",r(z)||"instance"),$.state!==z.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",r(z)||"instance")),N0(z)?(O0(),O$(z,lH,z,$),H0()):O$(z,lH,z,$);else{var D=ow(z.type,U.memoizedProps);U=U.memoizedState,z.type.defaultProps||"ref"in z.memoizedProps||fX||($.props!==z.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",r(z)||"instance"),$.state!==z.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",r(z)||"instance")),N0(z)?(O0(),O$(z,tF,z,$,D,U,$.__reactInternalSnapshotBeforeUpdate),H0()):O$(z,tF,z,$,D,U,$.__reactInternalSnapshotBeforeUpdate)}L&64&&eD(z),L&512&&m8(z,z.return);break;case 3:if(U=l0(),q0($,z),L&64&&(L=z.updateQueue,L!==null)){if(D=null,z.child!==null)switch(z.child.tag){case 27:case 5:D=z.child.stateNode;break;case 1:D=z.child.stateNode}try{O$(z,UD,L,D)}catch(T){X6(z,z.return,T)}}$.effectDuration+=_9(U);break;case 27:U===null&&L&4&&Xj(z);case 26:case 5:if(q0($,z),U===null){if(L&4)wj(z);else if(L&64){$=z.type,U=z.memoizedProps,D=z.stateNode;try{O$(z,sZ,D,$,U,z)}catch(T){X6(z,z.return,T)}}}L&512&&m8(z,z.return);break;case 12:if(L&4){L=l0(),q0($,z),$=z.stateNode,$.effectDuration+=Z8(L);try{O$(z,Uj,z,U,$w,$.effectDuration)}catch(T){X6(z,z.return,T)}}else q0($,z);break;case 31:q0($,z),L&4&&Wj($,z);break;case 13:q0($,z),L&4&&Hj($,z),L&64&&($=z.memoizedState,$!==null&&($=$.dehydrated,$!==null&&(L=fZ.bind(null,z),OS($,L))));break;case 22:if(L=z.memoizedState!==null||JU,!L){U=U!==null&&U.memoizedState!==null||a6,D=JU;var F=a6;JU=L,(a6=U)&&!F?(L0($,z,(z.subtreeFlags&8772)!==0),(z.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&K9(z,V$,M$)):q0($,z),JU=D,a6=F}break;case 30:break;default:q0($,z)}(z.mode&x$)!==I$&&0<=V$&&0<=M$&&((h6||0.05<x6)&&X0(z,V$,M$,x6,b6),z.alternate===null&&z.return!==null&&z.return.alternate!==null&&0.05<M$-V$&&(Yj(z.return.alternate,z.return)||z0(z,V$,M$,"Mount"))),$1(Q),Q0(H),b6=O,h6=B}function Qj($){var U=$.alternate;U!==null&&($.alternate=null,Qj(U)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(U=$.stateNode,U!==null&&Y$(U)),$.stateNode=null,$._debugOwner=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function p0($,U,z){for(z=z.child;z!==null;)Gj($,U,z),z=z.sibling}function Gj($,U,z){if(j4&&typeof j4.onCommitFiberUnmount==="function")try{j4.onCommitFiberUnmount(qX,z)}catch(F){V0||(V0=!0,console.error("React instrumentation encountered an error: %o",F))}var Q=e4(),H=J0(),O=G0(),B=W0();switch(z.tag){case 26:a6||B0(z,U),p0($,U,z),z.memoizedState?z.memoizedState.count--:z.stateNode&&($=z.stateNode,$.parentNode.removeChild($));break;case 27:a6||B0(z,U);var L=s6,D=u4;lU(z.type)&&(s6=z.stateNode,u4=!1),p0($,U,z),O$(z,t8,z.stateNode),s6=L,u4=D;break;case 5:a6||B0(z,U);case 6:if(L=s6,D=u4,s6=null,p0($,U,z),s6=L,u4=D,s6!==null)if(u4)try{O$(z,wS,s6,z.stateNode)}catch(F){X6(z,U,F)}else try{O$(z,US,s6,z.stateNode)}catch(F){X6(z,U,F)}break;case 18:s6!==null&&(u4?($=s6,OA($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$,z.stateNode),HX($)):OA(s6,z.stateNode));break;case 4:L=s6,D=u4,s6=z.stateNode.containerInfo,u4=!0,p0($,U,z),s6=L,u4=D;break;case 0:case 11:case 14:case 15:wX(P4,z,U),a6||AW(z,U,W1),p0($,U,z);break;case 1:a6||(B0(z,U),L=z.stateNode,typeof L.componentWillUnmount==="function"&&$j(z,U,L)),p0($,U,z);break;case 21:p0($,U,z);break;case 22:a6=(L=a6)||z.memoizedState!==null,p0($,U,z),a6=L;break;default:p0($,U,z)}(z.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0(z,V$,M$,x6,b6),$1(Q),Q0(H),b6=O,h6=B}function Wj($,U){if(U.memoizedState===null&&($=U.alternate,$!==null&&($=$.memoizedState,$!==null))){$=$.dehydrated;try{O$(U,BS,$)}catch(z){X6(U,U.return,z)}}}function Hj($,U){if(U.memoizedState===null&&($=U.alternate,$!==null&&($=$.memoizedState,$!==null&&($=$.dehydrated,$!==null))))try{O$(U,qS,$)}catch(z){X6(U,U.return,z)}}function SZ($){switch($.tag){case 31:case 13:case 19:var U=$.stateNode;return U===null&&(U=$.stateNode=new xV),U;case 22:return $=$.stateNode,U=$._retryCache,U===null&&(U=$._retryCache=new xV),U;default:throw Error("Unexpected Suspense handler tag ("+$.tag+"). This is a bug in React.")}}function $Q($,U){var z=SZ($);U.forEach(function(Q){if(!z.has(Q)){if(z.add(Q),E0)if(hX!==null&&uX!==null)n8(uX,hX);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var H=hZ.bind(null,$,Q);Q.then(H,H)}})}function f4($,U){var z=U.deletions;if(z!==null)for(var Q=0;Q<z.length;Q++){var H=$,O=U,B=z[Q],L=e4(),D=O;$:for(;D!==null;){switch(D.tag){case 27:if(lU(D.type)){s6=D.stateNode,u4=!1;break $}break;case 5:s6=D.stateNode,u4=!1;break $;case 3:case 4:s6=D.stateNode.containerInfo,u4=!0;break $}D=D.return}if(s6===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Gj(H,O,B),s6=null,u4=!1,(B.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&z0(B,V$,M$,"Unmount"),$1(L),H=B,O=H.alternate,O!==null&&(O.return=null),H.return=null}if(U.subtreeFlags&13886)for(U=U.child;U!==null;)Oj(U,$),U=U.sibling}function Oj($,U){var z=e4(),Q=J0(),H=G0(),O=W0(),B=$.alternate,L=$.flags;switch($.tag){case 0:case 11:case 14:case 15:f4(U,$),h4($),L&4&&(wX(P4|Z1,$,$.return),u8(P4|Z1,$),AW($,$.return,W1|Z1));break;case 1:if(f4(U,$),h4($),L&512&&(a6||B===null||B0(B,B.return)),L&64&&JU&&(L=$.updateQueue,L!==null&&(B=L.callbacks,B!==null))){var D=L.shared.hiddenCallbacks;L.shared.hiddenCallbacks=D===null?B:D.concat(B)}break;case 26:if(D=d1,f4(U,$),h4($),L&512&&(a6||B===null||B0(B,B.return)),L&4){var F=B!==null?B.memoizedState:null;if(L=$.memoizedState,B===null)if(L===null)if($.stateNode===null){$:{L=$.type,B=$.memoizedProps,D=D.ownerDocument||D;U:switch(L){case"title":if(F=D.getElementsByTagName("title")[0],!F||F[zY]||F[q4]||F.namespaceURI===KX||F.hasAttribute("itemprop"))F=D.createElement(L),D.head.insertBefore(F,D.querySelector("head > title"));B4(F,L,B),F[q4]=$,F$(F),L=F;break $;case"link":var T=EA("link","href",D).get(L+(B.href||""));if(T){for(var b=0;b<T.length;b++)if(F=T[b],F.getAttribute("href")===(B.href==null||B.href===""?null:B.href)&&F.getAttribute("rel")===(B.rel==null?null:B.rel)&&F.getAttribute("title")===(B.title==null?null:B.title)&&F.getAttribute("crossorigin")===(B.crossOrigin==null?null:B.crossOrigin)){T.splice(b,1);break U}}F=D.createElement(L),B4(F,L,B),D.head.appendChild(F);break;case"meta":if(T=EA("meta","content",D).get(L+(B.content||""))){for(b=0;b<T.length;b++)if(F=T[b],L6(B.content,"content"),F.getAttribute("content")===(B.content==null?null:""+B.content)&&F.getAttribute("name")===(B.name==null?null:B.name)&&F.getAttribute("property")===(B.property==null?null:B.property)&&F.getAttribute("http-equiv")===(B.httpEquiv==null?null:B.httpEquiv)&&F.getAttribute("charset")===(B.charSet==null?null:B.charSet)){T.splice(b,1);break U}}F=D.createElement(L),B4(F,L,B),D.head.appendChild(F);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+L+'". This is a bug in React.')}F[q4]=$,F$(F),L=F}$.stateNode=L}else MA(D,$.type,$.stateNode);else $.stateNode=VA(D,L,$.memoizedProps);else F!==L?(F===null?B.stateNode!==null&&(B=B.stateNode,B.parentNode.removeChild(B)):F.count--,L===null?MA(D,$.type,$.stateNode):VA(D,L,$.memoizedProps)):L===null&&$.stateNode!==null&&VW($,$.memoizedProps,B.memoizedProps)}break;case 27:f4(U,$),h4($),L&512&&(a6||B===null||B0(B,B.return)),B!==null&&L&4&&VW($,$.memoizedProps,B.memoizedProps);break;case 5:if(f4(U,$),h4($),L&512&&(a6||B===null||B0(B,B.return)),$.flags&32){D=$.stateNode;try{O$($,WA,D)}catch(H$){X6($,$.return,H$)}}L&4&&$.stateNode!=null&&(D=$.memoizedProps,VW($,D,B!==null?B.memoizedProps:D)),L&1024&&(zO=!0,$.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(f4(U,$),h4($),L&4){if($.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");L=$.memoizedProps,B=B!==null?B.memoizedProps:L,D=$.stateNode;try{O$($,$S,D,B,L)}catch(H$){X6($,$.return,H$)}}break;case 3:if(D=l0(),K7=null,F=d1,d1=GQ(U.containerInfo),f4(U,$),d1=F,h4($),L&4&&B!==null&&B.memoizedState.isDehydrated)try{O$($,NS,U.containerInfo)}catch(H$){X6($,$.return,H$)}zO&&(zO=!1,Nj($)),U.effectDuration+=_9(D);break;case 4:L=d1,d1=GQ($.stateNode.containerInfo),f4(U,$),h4($),d1=L;break;case 12:L=l0(),f4(U,$),h4($),$.stateNode.effectDuration+=Z8(L);break;case 31:f4(U,$),h4($),L&4&&(L=$.updateQueue,L!==null&&($.updateQueue=null,$Q($,L)));break;case 13:f4(U,$),h4($),$.child.flags&8192&&$.memoizedState!==null!==(B!==null&&B.memoizedState!==null)&&(U7=Q4()),L&4&&(L=$.updateQueue,L!==null&&($.updateQueue=null,$Q($,L)));break;case 22:D=$.memoizedState!==null;var _=B!==null&&B.memoizedState!==null,y=JU,$$=a6;if(JU=y||D,a6=$$||_,f4(U,$),a6=$$,JU=y,_&&!D&&!y&&!$$&&($.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&K9($,V$,M$),h4($),L&8192)$:for(U=$.stateNode,U._visibility=D?U._visibility&~NY:U._visibility|NY,!D||B===null||_||JU||a6||(rw($),($.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&z0($,V$,M$,"Disconnect")),B=null,U=$;;){if(U.tag===5||U.tag===26){if(B===null){_=B=U;try{F=_.stateNode,D?O$(_,XS,F):O$(_,QS,_.stateNode,_.memoizedProps)}catch(H$){X6(_,_.return,H$)}}}else if(U.tag===6){if(B===null){_=U;try{T=_.stateNode,D?O$(_,YS,T):O$(_,GS,T,_.memoizedProps)}catch(H$){X6(_,_.return,H$)}}}else if(U.tag===18){if(B===null){_=U;try{b=_.stateNode,D?O$(_,zS,b):O$(_,JS,_.stateNode)}catch(H$){X6(_,_.return,H$)}}}else if((U.tag!==22&&U.tag!==23||U.memoizedState===null||U===$)&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===$)break $;for(;U.sibling===null;){if(U.return===null||U.return===$)break $;B===U&&(B=null),U=U.return}B===U&&(B=null),U.sibling.return=U.return,U=U.sibling}L&4&&(L=$.updateQueue,L!==null&&(B=L.retryQueue,B!==null&&(L.retryQueue=null,$Q($,B))));break;case 19:f4(U,$),h4($),L&4&&(L=$.updateQueue,L!==null&&($.updateQueue=null,$Q($,L)));break;case 30:break;case 21:break;default:f4(U,$),h4($)}($.mode&x$)!==I$&&0<=V$&&0<=M$&&((h6||0.05<x6)&&X0($,V$,M$,x6,b6),$.alternate===null&&$.return!==null&&$.return.alternate!==null&&0.05<M$-V$&&(Yj($.return.alternate,$.return)||z0($,V$,M$,"Mount"))),$1(z),Q0(Q),b6=H,h6=O}function h4($){var U=$.flags;if(U&2){try{O$($,vZ,$)}catch(z){X6($,$.return,z)}$.flags&=-3}U&4096&&($.flags&=-4097)}function Nj($){if($.subtreeFlags&1024)for($=$.child;$!==null;){var U=$;Nj(U),U.tag===5&&U.flags&1024&&U.stateNode.reset(),$=$.sibling}}function q0($,U){if(U.subtreeFlags&8772)for(U=U.child;U!==null;)Jj($,U.alternate,U),U=U.sibling}function Bj($){var U=e4(),z=J0(),Q=G0(),H=W0();switch($.tag){case 0:case 11:case 14:case 15:AW($,$.return,W1),rw($);break;case 1:B0($,$.return);var O=$.stateNode;typeof O.componentWillUnmount==="function"&&$j($,$.return,O),rw($);break;case 27:O$($,t8,$.stateNode);case 26:case 5:B0($,$.return),rw($);break;case 22:$.memoizedState===null&&rw($);break;case 30:rw($);break;default:rw($)}($.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0($,V$,M$,x6,b6),$1(U),Q0(z),b6=Q,h6=H}function rw($){for($=$.child;$!==null;)Bj($),$=$.sibling}function qj($,U,z,Q){var H=e4(),O=J0(),B=G0(),L=W0(),D=z.flags;switch(z.tag){case 0:case 11:case 15:L0($,z,Q),aD(z,W1);break;case 1:if(L0($,z,Q),U=z.stateNode,typeof U.componentDidMount==="function"&&O$(z,lH,z,U),U=z.updateQueue,U!==null){$=z.stateNode;try{O$(z,NZ,U,$)}catch(F){X6(z,z.return,F)}}Q&&D&64&&eD(z),m8(z,z.return);break;case 27:Xj(z);case 26:case 5:L0($,z,Q),Q&&U===null&&D&4&&wj(z),m8(z,z.return);break;case 12:if(Q&&D&4){D=l0(),L0($,z,Q),Q=z.stateNode,Q.effectDuration+=Z8(D);try{O$(z,Uj,z,U,$w,Q.effectDuration)}catch(F){X6(z,z.return,F)}}else L0($,z,Q);break;case 31:L0($,z,Q),Q&&D&4&&Wj($,z);break;case 13:L0($,z,Q),Q&&D&4&&Hj($,z);break;case 22:z.memoizedState===null&&L0($,z,Q),m8(z,z.return);break;case 30:break;default:L0($,z,Q)}(z.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0(z,V$,M$,x6,b6),$1(H),Q0(O),b6=B,h6=L}function L0($,U,z){z=z&&(U.subtreeFlags&8772)!==0;for(U=U.child;U!==null;)qj($,U.alternate,U,z),U=U.sibling}function RW($,U){var z=null;$!==null&&$.memoizedState!==null&&$.memoizedState.cachePool!==null&&(z=$.memoizedState.cachePool.pool),$=null,U.memoizedState!==null&&U.memoizedState.cachePool!==null&&($=U.memoizedState.cachePool.pool),$!==z&&($!=null&&lw($),z!=null&&v8(z))}function IW($,U){$=null,U.alternate!==null&&($=U.alternate.memoizedState.cache),U=U.memoizedState.cache,U!==$&&(lw(U),$!=null&&v8($))}function u1($,U,z,Q,H){if(U.subtreeFlags&10256||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child))for(U=U.child;U!==null;){var O=U.sibling;Lj($,U,z,Q,O!==null?O.actualStartTime:H),U=O}}function Lj($,U,z,Q,H){var O=e4(),B=J0(),L=G0(),D=W0(),F=tU,T=U.flags;switch(U.tag){case 0:case 11:case 15:(U.mode&x$)!==I$&&0<U.actualStartTime&&(U.flags&1)!==0&&D9(U,U.actualStartTime,H,w4,z),u1($,U,z,Q,H),T&2048&&sD(U,v4|Z1);break;case 1:(U.mode&x$)!==I$&&0<U.actualStartTime&&((U.flags&128)!==0?GG(U,U.actualStartTime,H,[]):(U.flags&1)!==0&&D9(U,U.actualStartTime,H,w4,z)),u1($,U,z,Q,H);break;case 3:var b=l0(),_=w4;w4=U.alternate!==null&&U.alternate.memoizedState.isDehydrated&&(U.flags&256)===0,u1($,U,z,Q,H),w4=_,T&2048&&(z=null,U.alternate!==null&&(z=U.alternate.memoizedState.cache),Q=U.memoizedState.cache,Q!==z&&(lw(Q),z!=null&&v8(z))),$.passiveEffectDuration+=_9(b);break;case 12:if(T&2048){T=l0(),u1($,U,z,Q,H),$=U.stateNode,$.passiveEffectDuration+=Z8(T);try{O$(U,PZ,U,U.alternate,$w,$.passiveEffectDuration)}catch(y){X6(U,U.return,y)}}else u1($,U,z,Q,H);break;case 31:T=w4,b=U.alternate!==null?U.alternate.memoizedState:null,_=U.memoizedState,b!==null&&_===null?(_=U.deletions,_!==null&&0<_.length&&_[0].tag===18?(w4=!1,b=b.hydrationErrors,b!==null&&GG(U,U.actualStartTime,H,b)):w4=!0):w4=!1,u1($,U,z,Q,H),w4=T;break;case 13:T=w4,b=U.alternate!==null?U.alternate.memoizedState:null,_=U.memoizedState,b===null||b.dehydrated===null||_!==null&&_.dehydrated!==null?w4=!1:(_=U.deletions,_!==null&&0<_.length&&_[0].tag===18?(w4=!1,b=b.hydrationErrors,b!==null&&GG(U,U.actualStartTime,H,b)):w4=!0),u1($,U,z,Q,H),w4=T;break;case 23:break;case 22:_=U.stateNode,b=U.alternate,U.memoizedState!==null?_._visibility&t0?u1($,U,z,Q,H):c8($,U,z,Q,H):_._visibility&t0?u1($,U,z,Q,H):(_._visibility|=t0,zX($,U,z,Q,(U.subtreeFlags&10256)!==0||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child),H),(U.mode&x$)===I$||w4||($=U.actualStartTime,0<=$&&0.05<H-$&&K9(U,$,H),0<=V$&&0<=M$&&0.05<M$-V$&&K9(U,V$,M$))),T&2048&&RW(b,U);break;case 24:u1($,U,z,Q,H),T&2048&&IW(U.alternate,U);break;default:u1($,U,z,Q,H)}if((U.mode&x$)!==I$){if($=!w4&&U.alternate===null&&U.return!==null&&U.return.alternate!==null)z=U.actualStartTime,0<=z&&0.05<H-z&&z0(U,z,H,"Mount");0<=V$&&0<=M$&&((h6||0.05<x6)&&X0(U,V$,M$,x6,b6),$&&0.05<M$-V$&&z0(U,V$,M$,"Mount"))}$1(O),Q0(B),b6=L,h6=D,tU=F}function zX($,U,z,Q,H,O){H=H&&((U.subtreeFlags&10256)!==0||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child));for(U=U.child;U!==null;){var B=U.sibling;Kj($,U,z,Q,H,B!==null?B.actualStartTime:O),U=B}}function Kj($,U,z,Q,H,O){var B=e4(),L=J0(),D=G0(),F=W0(),T=tU;H&&(U.mode&x$)!==I$&&0<U.actualStartTime&&(U.flags&1)!==0&&D9(U,U.actualStartTime,O,w4,z);var b=U.flags;switch(U.tag){case 0:case 11:case 15:zX($,U,z,Q,H,O),sD(U,v4);break;case 23:break;case 22:var _=U.stateNode;U.memoizedState!==null?_._visibility&t0?zX($,U,z,Q,H,O):c8($,U,z,Q,O):(_._visibility|=t0,zX($,U,z,Q,H,O)),H&&b&2048&&RW(U.alternate,U);break;case 24:zX($,U,z,Q,H,O),H&&b&2048&&IW(U.alternate,U);break;default:zX($,U,z,Q,H,O)}(U.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0(U,V$,M$,x6,b6),$1(B),Q0(L),b6=D,h6=F,tU=T}function c8($,U,z,Q,H){if(U.subtreeFlags&10256||U.actualDuration!==0&&(U.alternate===null||U.alternate.child!==U.child))for(var O=U.child;O!==null;){U=O.sibling;var B=$,L=z,D=Q,F=U!==null?U.actualStartTime:H,T=tU;(O.mode&x$)!==I$&&0<O.actualStartTime&&(O.flags&1)!==0&&D9(O,O.actualStartTime,F,w4,L);var b=O.flags;switch(O.tag){case 22:c8(B,O,L,D,F),b&2048&&RW(O.alternate,O);break;case 24:c8(B,O,L,D,F),b&2048&&IW(O.alternate,O);break;default:c8(B,O,L,D,F)}tU=T,O=U}}function XX($,U,z){if($.subtreeFlags&bY)for($=$.child;$!==null;)Dj($,U,z),$=$.sibling}function Dj($,U,z){switch($.tag){case 26:XX($,U,z),$.flags&bY&&$.memoizedState!==null&&jS(z,d1,$.memoizedState,$.memoizedProps);break;case 5:XX($,U,z);break;case 3:case 4:var Q=d1;d1=GQ($.stateNode.containerInfo),XX($,U,z),d1=Q;break;case 22:$.memoizedState===null&&(Q=$.alternate,Q!==null&&Q.memoizedState!==null?(Q=bY,bY=16777216,XX($,U,z),bY=Q):XX($,U,z));break;default:XX($,U,z)}}function jj($){var U=$.alternate;if(U!==null&&($=U.child,$!==null)){U.child=null;do U=$.sibling,$.sibling=null,$=U;while($!==null)}}function i8($){var U=$.deletions;if(($.flags&16)!==0){if(U!==null)for(var z=0;z<U.length;z++){var Q=U[z],H=e4();W4=Q,Vj(Q,$),(Q.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&z0(Q,V$,M$,"Unmount"),$1(H)}jj($)}if($.subtreeFlags&10256)for($=$.child;$!==null;)Aj($),$=$.sibling}function Aj($){var U=e4(),z=J0(),Q=G0(),H=W0();switch($.tag){case 0:case 11:case 15:i8($),$.flags&2048&&FW($,$.return,v4|Z1);break;case 3:var O=l0();i8($),$.stateNode.passiveEffectDuration+=_9(O);break;case 12:O=l0(),i8($),$.stateNode.passiveEffectDuration+=Z8(O);break;case 22:O=$.stateNode,$.memoizedState!==null&&O._visibility&t0&&($.return===null||$.return.tag!==13)?(O._visibility&=~t0,UQ($),($.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&z0($,V$,M$,"Disconnect")):i8($);break;default:i8($)}($.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0($,V$,M$,x6,b6),$1(U),Q0(z),h6=H,b6=Q}function UQ($){var U=$.deletions;if(($.flags&16)!==0){if(U!==null)for(var z=0;z<U.length;z++){var Q=U[z],H=e4();W4=Q,Vj(Q,$),(Q.mode&x$)!==I$&&0<=V$&&0<=M$&&0.05<M$-V$&&z0(Q,V$,M$,"Unmount"),$1(H)}jj($)}for($=$.child;$!==null;)Fj($),$=$.sibling}function Fj($){var U=e4(),z=J0(),Q=G0(),H=W0();switch($.tag){case 0:case 11:case 15:FW($,$.return,v4),UQ($);break;case 22:var O=$.stateNode;O._visibility&t0&&(O._visibility&=~t0,UQ($));break;default:UQ($)}($.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0($,V$,M$,x6,b6),$1(U),Q0(z),h6=H,b6=Q}function Vj($,U){for(;W4!==null;){var z=W4,Q=z,H=U,O=e4(),B=J0(),L=G0(),D=W0();switch(Q.tag){case 0:case 11:case 15:FW(Q,H,v4);break;case 23:case 22:Q.memoizedState!==null&&Q.memoizedState.cachePool!==null&&(H=Q.memoizedState.cachePool.pool,H!=null&&lw(H));break;case 24:v8(Q.memoizedState.cache)}if((Q.mode&x$)!==I$&&0<=V$&&0<=M$&&(h6||0.05<x6)&&X0(Q,V$,M$,x6,b6),$1(O),Q0(B),h6=D,b6=L,Q=z.child,Q!==null)Q.return=z,W4=Q;else $:for(z=$;W4!==null;){if(Q=W4,O=Q.sibling,B=Q.return,Qj(Q),Q===z){W4=null;break $}if(O!==null){O.return=B,W4=O;break $}W4=B}}}function TZ(){sT.forEach(function($){return $()})}function Ej(){var $=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return $||u.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),$}function w1($){if((s$&z4)!==H4&&y$!==0)return y$&-y$;var U=u.T;return U!==null?(U._updatedFibers||(U._updatedFibers=new Set),U._updatedFibers.add($),CW()):x()}function Mj(){if(c4===0)if((y$&536870912)===0||d$){var $=FQ;FQ<<=1,(FQ&3932160)===0&&(FQ=262144),c4=$}else c4=536870912;return $=G1.current,$!==null&&($.flags|=32),c4}function f6($,U,z){if(iX&&console.error("useInsertionEffect must not schedule updates."),qO&&(Y7=!0),$===E6&&(B6===Hz||B6===Oz)||$.cancelPendingCommit!==null)JX($,0),cU($,y$,c4,!1);if(SU($,z),(s$&z4)!==H4&&$===E6){if(F0)switch(U.tag){case 0:case 11:case 15:$=h$&&r(h$)||"Unknown",tV.has($)||(tV.add($),U=r(U)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",U,$,$));break;case 1:rV||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),rV=!0)}}else E0&&D8($,U,z),mZ(U),$===E6&&((s$&z4)===H4&&(Ww|=z),g6===Jw&&cU($,y$,c4,!1)),K0($)}function Rj($,U,z){if((s$&(z4|H1))!==H4)throw Error("Should not already be working.");if(y$!==0&&h$!==null){var Q=h$,H=Q4();switch(cF){case xY:case Hz:var O=jY;P6&&((Q=Q._debugTask)?Q.run(console.timeStamp.bind(console,"Suspended",O,H,V1,void 0,"primary-light")):console.timeStamp("Suspended",O,H,V1,void 0,"primary-light"));break;case Oz:O=jY,P6&&((Q=Q._debugTask)?Q.run(console.timeStamp.bind(console,"Action",O,H,V1,void 0,"primary-light")):console.timeStamp("Action",O,H,V1,void 0,"primary-light"));break;default:P6&&(Q=H-jY,3>Q||console.timeStamp("Blocked",jY,H,V1,void 0,5>Q?"primary-light":10>Q?"primary":100>Q?"primary-dark":"error"))}}O=(z=!z&&(U&127)===0&&(U&$.expiredLanes)===0||Tw($,U))?CZ($,U):PW($,U,!0);var B=z;do{if(O===QU){mX&&!z&&cU($,U,0,!1),U=B6,jY=o6(),cF=U;break}else{if(Q=Q4(),H=$.current.alternate,B&&!bZ(H)){a4(U),H=G4,O=Q,!P6||O<=H||(c6?c6.run(console.timeStamp.bind(console,"Teared Render",H,O,l$,i$,"error")):console.timeStamp("Teared Render",H,O,l$,i$,"error")),tw(U,Q),O=PW($,U,!1),B=!1;continue}if(O===Wz){if(B=U,$.errorRecoveryDisabledLanes&B)var L=0;else L=$.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){a4(U),WG(G4,Q,U,c6),tw(U,Q),U=L;$:{Q=$,O=B,B=yY;var D=Q.current.memoizedState.isDehydrated;if(D&&(JX(Q,L).flags|=256),L=PW(Q,L,!1),L!==Wz){if(JO&&!D){Q.errorRecoveryDisabledLanes|=O,Ww|=O,O=Jw;break $}Q=Z4,Z4=B,Q!==null&&(Z4===null?Z4=Q:Z4.push.apply(Z4,Q))}O=L}if(B=!1,O!==Wz)continue;else Q=Q4()}}if(O===kY){a4(U),WG(G4,Q,U,c6),tw(U,Q),JX($,0),cU($,U,0,!0);break}$:{switch(z=$,O){case QU:case kY:throw Error("Root did not complete. This is a bug in React.");case Jw:if((U&4194048)!==U)break;case aQ:a4(U),R2(G4,Q,U,c6),tw(U,Q),H=U,(H&127)!==0?gQ=Q:(H&4194048)!==0&&(yQ=Q),cU(z,U,c4,!Qw);break $;case Wz:Z4=null;break;case tQ:case gV:break;default:throw Error("Unknown root exit status.")}if(u.actQueue!==null)vW(z,H,U,Z4,fY,$7,c4,Ww,Nz,O,null,null,G4,Q);else{if((U&62914560)===U&&(B=U7+hV-Q4(),10<B)){if(cU(z,U,c4,!Qw),Sw(z,0,!0)!==0)break $;p1=U,z.timeoutHandle=XE(Ij.bind(null,z,H,Z4,fY,$7,U,c4,Ww,Nz,Qw,O,"Throttled",G4,Q),B);break $}Ij(z,H,Z4,fY,$7,U,c4,Ww,Nz,Qw,O,null,G4,Q)}}}break}while(1);K0($)}function Ij($,U,z,Q,H,O,B,L,D,F,T,b,_,y){$.timeoutHandle=Dz;var $$=U.subtreeFlags,H$=null;if($$&8192||($$&16785408)===16785408){if(H$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:u0},Dj(U,O,H$),$$=(O&62914560)===O?U7-Q4():(O&4194048)===O?fV-Q4():0,$$=AS(H$,$$),$$!==null){p1=O,$.cancelPendingCommit=$$(vW.bind(null,$,U,O,z,Q,H,B,L,D,T,H$,H$.waitingForViewTransition?"Waiting for the previous Animation":0<H$.count?0<H$.imgCount?"Suspended on CSS and Images":"Suspended on CSS":H$.imgCount===1?"Suspended on an Image":0<H$.imgCount?"Suspended on Images":null,_,y)),cU($,O,B,!F);return}}vW($,U,O,z,Q,H,B,L,D,T,H$,b,_,y)}function bZ($){for(var U=$;;){var z=U.tag;if((z===0||z===11||z===15)&&U.flags&16384&&(z=U.updateQueue,z!==null&&(z=z.stores,z!==null)))for(var Q=0;Q<z.length;Q++){var H=z[Q],O=H.getSnapshot;H=H.value;try{if(!I4(O(),H))return!1}catch(B){return!1}}if(z=U.child,U.subtreeFlags&16384&&z!==null)z.return=U,U=z;else{if(U===$)break;for(;U.sibling===null;){if(U.return===null||U.return===$)return!0;U=U.return}U.sibling.return=U.return,U=U.sibling}}return!0}function cU($,U,z,Q){U&=~QO,U&=~Ww,$.suspendedLanes|=U,$.pingedLanes&=~U,Q&&($.warmLanes|=U),Q=$.expirationTimes;for(var H=U;0<H;){var O=31-E4(H),B=1<<O;Q[O]=-1,H&=~B}z!==0&&bw($,z,U)}function YX(){return(s$&(z4|H1))===H4?(d8(0,!1),!1):!0}function _W(){if(h$!==null){if(B6===m4)var $=h$.return;else $=h$,M9(),yG($),bX=null,PY=0,$=h$;for(;$!==null;)tD($.alternate,$),$=$.return;h$=null}}function tw($,U){($&127)!==0&&(Uw=U),($&4194048)!==0&&(P0=U),($&62914560)!==0&&(uF=U),($&2080374784)!==0&&(mF=U)}function JX($,U){P6&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",i$,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",i$,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",i$,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",i$,"primary-light"));var z=G4;if(G4=o6(),y$!==0&&0<z){if(a4(y$),g6===tQ||g6===Jw)R2(z,G4,U,c6);else{var Q=G4,H=c6;if(P6&&!(Q<=z)){var O=(U&738197653)===U?"tertiary-dark":"primary-dark",B=(U&536870912)===U?"Prewarm":(U&201326741)===U?"Interrupted Hydration":"Interrupted Render";H?H.run(console.timeStamp.bind(console,B,z,Q,l$,i$,O)):console.timeStamp(B,z,Q,l$,i$,O)}}tw(y$,G4)}if(z=c6,c6=null,(U&127)!==0){c6=LY,H=0<=_0&&_0<Uw?Uw:_0,Q=0<=Uz&&Uz<Uw?Uw:Uz,O=0<=Q?Q:0<=H?H:G4,0<=gQ?(a4(2),I2(gQ,O,U,z)):(fQ&127)!==0&&(a4(2),_8(Uw,O,wU)),z=H;var L=Q,D=KY,F=0<ZX,T=ww===qY,b=ww===xQ;if(H=G4,Q=LY,O=hH,B=uH,P6){if(l$="Blocking",0<z?z>H&&(z=H):z=H,0<L?L>z&&(L=z):L=z,D!==null&&z>L){var _=F?"secondary-light":"warning";Q?Q.run(console.timeStamp.bind(console,F?"Consecutive":"Event: "+D,L,z,l$,i$,_)):console.timeStamp(F?"Consecutive":"Event: "+D,L,z,l$,i$,_)}H>z&&(L=T?"error":(U&738197653)===U?"tertiary-light":"primary-light",T=b?"Promise Resolved":T?"Cascading Update":5<H-z?"Update Blocked":"Update",b=[],B!=null&&b.push(["Component name",B]),O!=null&&b.push(["Method name",O]),z={start:z,end:H,detail:{devtools:{properties:b,track:l$,trackGroup:i$,color:L}}},Q?Q.run(performance.measure.bind(performance,T,z)):performance.measure(T,z))}_0=-1.1,ww=0,uH=hH=null,gQ=-1.1,ZX=Uz,Uz=-1.1,Uw=o6()}if((U&4194048)!==0&&(c6=DY,H=0<=UU&&UU<P0?P0:UU,z=0<=P1&&P1<P0?P0:P1,Q=0<=zw&&zw<P0?P0:zw,O=0<=Q?Q:0<=z?z:G4,0<=yQ?(a4(256),I2(yQ,O,U,c6)):(fQ&4194048)!==0&&(a4(256),_8(P0,O,wU)),b=Q,L=wz,D=0<Xw,F=mH===xQ,O=G4,Q=DY,B=fF,T=hF,P6&&(l$="Transition",0<z?z>O&&(z=O):z=O,0<H?H>z&&(H=z):H=z,0<b?b>H&&(b=H):b=H,H>b&&L!==null&&(_=D?"secondary-light":"warning",Q?Q.run(console.timeStamp.bind(console,D?"Consecutive":"Event: "+L,b,H,l$,i$,_)):console.timeStamp(D?"Consecutive":"Event: "+L,b,H,l$,i$,_)),z>H&&(Q?Q.run(console.timeStamp.bind(console,"Action",H,z,l$,i$,"primary-dark")):console.timeStamp("Action",H,z,l$,i$,"primary-dark")),O>z&&(H=F?"Promise Resolved":5<O-z?"Update Blocked":"Update",b=[],T!=null&&b.push(["Component name",T]),B!=null&&b.push(["Method name",B]),z={start:z,end:O,detail:{devtools:{properties:b,track:l$,trackGroup:i$,color:"primary-light"}}},Q?Q.run(performance.measure.bind(performance,H,z)):performance.measure(H,z))),P1=UU=-1.1,mH=0,yQ=-1.1,Xw=zw,zw=-1.1,P0=o6()),(U&62914560)!==0&&(fQ&62914560)!==0&&(a4(4194304),_8(uF,G4,wU)),(U&2080374784)!==0&&(fQ&2080374784)!==0&&(a4(268435456),_8(mF,G4,wU)),z=$.timeoutHandle,z!==Dz&&($.timeoutHandle=Dz,Ob(z)),z=$.cancelPendingCommit,z!==null&&($.cancelPendingCommit=null,z()),p1=0,_W(),E6=$,h$=z=m0($.current,null),y$=U,B6=m4,O1=null,Qw=!1,mX=Tw($,U),JO=!1,g6=QU,Nz=c4=QO=Ww=Gw=0,Z4=yY=null,$7=!1,(U&8)!==0&&(U|=U&32),Q=$.entangledLanes,Q!==0)for($=$.entanglements,Q&=U;0<Q;)H=31-E4(Q),O=1<<H,U|=$[H],Q&=~O;return Z0=U,j9(),$=bF(),1000<$-TF&&(u.recentlyCreatedOwnerStacks=0,TF=$),l1.discardPendingWarnings(),z}function _j($,U){P$=null,u.H=TY,u.getCurrentStack=null,F0=!1,Y1=null,U===TX||U===cQ?(U=p2(),B6=xY):U===nH?(U=p2(),B6=yV):B6=U===UO?YO:U!==null&&typeof U==="object"&&typeof U.then==="function"?gY:sQ,O1=U;var z=h$;z===null?(g6=kY,o9($,s4(U,$.current))):z.mode&x$&&RG(z)}function Pj(){var $=G1.current;return $===null?!0:(y$&4194048)===y$?v1===null?!0:!1:(y$&62914560)===y$||(y$&536870912)!==0?$===v1:!1}function vj(){var $=u.H;return u.H=TY,$===null?TY:$}function Zj(){var $=u.A;return u.A=aT,$}function wQ($){c6===null&&(c6=$._debugTask==null?null:$._debugTask)}function zQ(){g6=Jw,Qw||(y$&4194048)!==y$&&G1.current!==null||(mX=!0),(Gw&134217727)===0&&(Ww&134217727)===0||E6===null||cU(E6,y$,c4,!1)}function PW($,U,z){var Q=s$;s$|=z4;var H=vj(),O=Zj();if(E6!==$||y$!==U){if(E0){var B=$.memoizedUpdaters;0<B.size&&(n8($,y$),B.clear()),TU($,U)}fY=null,JX($,U)}U=!1,B=g6;$:do try{if(B6!==m4&&h$!==null){var L=h$,D=O1;switch(B6){case YO:_W(),B=aQ;break $;case xY:case Hz:case Oz:case gY:G1.current===null&&(U=!0);var F=B6;if(B6=m4,O1=null,QX($,L,D,F),z&&mX){B=QU;break $}break;default:F=B6,B6=m4,O1=null,QX($,L,D,F)}}Sj(),B=g6;break}catch(T){_j($,T)}while(1);return U&&$.shellSuspendCounter++,M9(),s$=Q,u.H=H,u.A=O,h$===null&&(E6=null,y$=0,j9()),B}function Sj(){for(;h$!==null;)Tj(h$)}function CZ($,U){var z=s$;s$|=z4;var Q=vj(),H=Zj();if(E6!==$||y$!==U){if(E0){var O=$.memoizedUpdaters;0<O.size&&(n8($,y$),O.clear()),TU($,U)}fY=null,w7=Q4()+uV,JX($,U)}else mX=Tw($,U);$:do try{if(B6!==m4&&h$!==null)U:switch(U=h$,O=O1,B6){case sQ:B6=m4,O1=null,QX($,U,O,sQ);break;case Hz:case Oz:if(n2(O)){B6=m4,O1=null,bj(U);break}U=function(){B6!==Hz&&B6!==Oz||E6!==$||(B6=eQ),K0($)},O.then(U,U);break $;case xY:B6=eQ;break $;case yV:B6=XO;break $;case eQ:n2(O)?(B6=m4,O1=null,bj(U)):(B6=m4,O1=null,QX($,U,O,eQ));break;case XO:var B=null;switch(h$.tag){case 26:B=h$.memoizedState;case 5:case 27:var L=h$;if(B?RA(B):L.stateNode.complete){B6=m4,O1=null;var D=L.sibling;if(D!==null)h$=D;else{var F=L.return;F!==null?(h$=F,XQ(F)):h$=null}break U}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}B6=m4,O1=null,QX($,U,O,XO);break;case gY:B6=m4,O1=null,QX($,U,O,gY);break;case YO:_W(),g6=aQ;break $;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}u.actQueue!==null?Sj():kZ();break}catch(T){_j($,T)}while(1);if(M9(),u.H=Q,u.A=H,s$=z,h$!==null)return QU;return E6=null,y$=0,j9(),g6}function kZ(){for(;h$!==null&&!bS();)Tj(h$)}function Tj($){var U=$.alternate;($.mode&x$)!==I$?(MG($),U=O$($,DW,U,$,Z0),RG($)):U=O$($,DW,U,$,Z0),$.memoizedProps=$.pendingProps,U===null?XQ($):h$=U}function bj($){var U=O$($,xZ,$);$.memoizedProps=$.pendingProps,U===null?XQ($):h$=U}function xZ($){var U=$.alternate,z=($.mode&x$)!==I$;switch(z&&MG($),$.tag){case 15:case 0:U=iD(U,$,$.pendingProps,$.type,void 0,y$);break;case 11:U=iD(U,$,$.pendingProps,$.type.render,$.ref,y$);break;case 5:yG($);default:tD(U,$),$=h$=T2($,Z0),U=DW(U,$,Z0)}return z&&RG($),U}function QX($,U,z,Q){M9(),yG(U),bX=null,PY=0;var H=U.return;try{if(AZ($,H,U,z,y$)){g6=kY,o9($,s4(z,$.current)),h$=null;return}}catch(O){if(H!==null)throw h$=H,O;g6=kY,o9($,s4(z,$.current)),h$=null;return}if(U.flags&32768){if(d$||Q===sQ)$=!0;else if(mX||(y$&536870912)!==0)$=!1;else if(Qw=$=!0,Q===Hz||Q===Oz||Q===xY||Q===gY)Q=G1.current,Q!==null&&Q.tag===13&&(Q.flags|=16384);Cj(U,$)}else XQ(U)}function XQ($){var U=$;do{if((U.flags&32768)!==0){Cj(U,Qw);return}var z=U.alternate;if($=U.return,MG(U),z=O$(U,EZ,z,U,Z0),(U.mode&x$)!==I$&&u2(U),z!==null){h$=z;return}if(U=U.sibling,U!==null){h$=U;return}h$=U=$}while(U!==null);g6===QU&&(g6=gV)}function Cj($,U){do{var z=MZ($.alternate,$);if(z!==null){z.flags&=32767,h$=z;return}if(($.mode&x$)!==I$){u2($),z=$.actualDuration;for(var Q=$.child;Q!==null;)z+=Q.actualDuration,Q=Q.sibling;$.actualDuration=z}if(z=$.return,z!==null&&(z.flags|=32768,z.subtreeFlags=0,z.deletions=null),!U&&($=$.sibling,$!==null)){h$=$;return}h$=$=z}while($!==null);g6=aQ,h$=null}function vW($,U,z,Q,H,O,B,L,D,F,T,b,_,y){$.cancelPendingCommit=null;do l8();while(e6!==Ow);if(l1.flushLegacyContextWarning(),l1.flushPendingUnsafeLifecycleWarnings(),(s$&(z4|H1))!==H4)throw Error("Should not already be working.");if(a4(z),F===Wz?WG(_,y,z,c6):Q!==null?JZ(_,y,z,Q,U!==null&&U.alternate!==null&&U.alternate.memoizedState.isDehydrated&&(U.flags&256)!==0,c6):YZ(_,y,z,c6),U!==null){if(z===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),U===$.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(O=U.lanes|U.childLanes,O|=kH,Q9($,z,O,B,L,D),$===E6&&(h$=E6=null,y$=0),cX=U,Nw=$,p1=z,HO=O,NO=H,dV=Q,OO=y,pV=b,o1=z7,oV=null,U.actualDuration!==0||(U.subtreeFlags&10256)!==0||(U.flags&10256)!==0?($.callbackNode=null,$.callbackPriority=0,uZ(BX,function(){return lY=window.event,o1===z7&&(o1=WO),fj(),null})):($.callbackNode=null,$.callbackPriority=0),$U=null,$w=o6(),b!==null&&QZ(y,$w,b,c6),Q=(U.flags&13878)!==0,(U.subtreeFlags&13878)!==0||Q){Q=u.T,u.T=null,H=Y6.p,Y6.p=J1,B=s$,s$|=H1;try{ZZ($,U,z)}finally{s$=B,Y6.p=H,u.T=Q}}e6=cV,kj(),xj(),gj()}}function kj(){if(e6===cV){e6=Ow;var $=Nw,U=cX,z=p1,Q=(U.flags&13878)!==0;if((U.subtreeFlags&13878)!==0||Q){Q=u.T,u.T=null;var H=Y6.p;Y6.p=J1;var O=s$;s$|=H1;try{hX=z,uX=$,P9(),Oj(U,$),uX=hX=null,z=MO;var B=V2($.containerInfo),L=z.focusedElem,D=z.selectionRange;if(B!==L&&L&&L.ownerDocument&&F2(L.ownerDocument.documentElement,L)){if(D!==null&&JG(L)){var{start:F,end:T}=D;if(T===void 0&&(T=F),"selectionStart"in L)L.selectionStart=F,L.selectionEnd=Math.min(T,L.value.length);else{var b=L.ownerDocument||document,_=b&&b.defaultView||window;if(_.getSelection){var y=_.getSelection(),$$=L.textContent.length,H$=Math.min(D.start,$$),I6=D.end===void 0?H$:Math.min(D.end,$$);!y.extend&&H$>I6&&(B=I6,I6=H$,H$=B);var r$=A2(L,H$),I=A2(L,I6);if(r$&&I&&(y.rangeCount!==1||y.anchorNode!==r$.node||y.anchorOffset!==r$.offset||y.focusNode!==I.node||y.focusOffset!==I.offset)){var v=b.createRange();v.setStart(r$.node,r$.offset),y.removeAllRanges(),H$>I6?(y.addRange(v),y.extend(I.node,I.offset)):(v.setEnd(I.node,I.offset),y.addRange(v))}}}}b=[];for(y=L;y=y.parentNode;)y.nodeType===1&&b.push({element:y,left:y.scrollLeft,top:y.scrollTop});typeof L.focus==="function"&&L.focus();for(L=0;L<b.length;L++){var S=b[L];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}A7=!!EO,MO=EO=null}finally{s$=O,Y6.p=H,u.T=Q}}$.current=U,e6=iV}}function xj(){if(e6===iV){e6=Ow;var $=oV;if($!==null){$w=o6();var U=e0,z=$w;!P6||z<=U||(wU?wU.run(console.timeStamp.bind(console,$,U,z,l$,i$,"secondary-light")):console.timeStamp($,U,z,l$,i$,"secondary-light"))}$=Nw,U=cX,z=p1;var Q=(U.flags&8772)!==0;if((U.subtreeFlags&8772)!==0||Q){Q=u.T,u.T=null;var H=Y6.p;Y6.p=J1;var O=s$;s$|=H1;try{hX=z,uX=$,P9(),Jj($,U.alternate,U),uX=hX=null}finally{s$=O,Y6.p=H,u.T=Q}}$=OO,U=pV,e0=o6(),$=U===null?$:$w,U=e0,z=o1===GO,Q=c6,$U!==null?_2($,U,$U,!1,Q):!P6||U<=$||(Q?Q.run(console.timeStamp.bind(console,z?"Commit Interrupted View Transition":"Commit",$,U,l$,i$,z?"error":"secondary-dark")):console.timeStamp(z?"Commit Interrupted View Transition":"Commit",$,U,l$,i$,z?"error":"secondary-dark")),e6=lV}}function gj(){if(e6===nV||e6===lV){if(e6===nV){var $=e0;e0=o6();var U=e0,z=o1===GO;!P6||U<=$||(wU?wU.run(console.timeStamp.bind(console,z?"Interrupted View Transition":"Starting Animation",$,U,l$,i$,z?"error":"secondary-light")):console.timeStamp(z?"Interrupted View Transition":"Starting Animation",$,U,l$,i$,z?" error":"secondary-light")),o1!==GO&&(o1=mV)}e6=Ow,CS(),$=Nw;var Q=cX;U=p1,z=dV;var H=Q.actualDuration!==0||(Q.subtreeFlags&10256)!==0||(Q.flags&10256)!==0;H?e6=X7:(e6=Ow,cX=Nw=null,yj($,$.pendingLanes),Bz=0,uY=null);var O=$.pendingLanes;if(O===0&&(Hw=null),H||cj($),O=V(U),Q=Q.stateNode,j4&&typeof j4.onCommitFiberRoot==="function")try{var B=(Q.current.flags&128)===128;switch(O){case J1:var L=NH;break;case c1:L=BH;break;case M0:L=BX;break;case EQ:L=qH;break;default:L=BX}j4.onCommitFiberRoot(qX,Q,L,B)}catch(b){V0||(V0=!0,console.error("React instrumentation encountered an error: %o",b))}if(E0&&$.memoizedUpdaters.clear(),TZ(),z!==null){B=u.T,L=Y6.p,Y6.p=J1,u.T=null;try{var D=$.onRecoverableError;for(Q=0;Q<z.length;Q++){var F=z[Q],T=gZ(F.stack);O$(F.source,D,F.value,T)}}finally{u.T=B,Y6.p=L}}(p1&3)!==0&&l8(),K0($),O=$.pendingLanes,(U&261930)!==0&&(O&42)!==0?(uQ=!0,$===BO?hY++:(hY=0,BO=$)):hY=0,H||tw(U,e0),d8(0,!1)}}function gZ($){return $={componentStack:$},Object.defineProperty($,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),$}function yj($,U){($.pooledCacheLanes&=U)===0&&(U=$.pooledCache,U!=null&&($.pooledCache=null,v8(U)))}function l8(){return kj(),xj(),gj(),fj()}function fj(){if(e6!==X7)return!1;var $=Nw,U=HO;HO=0;var z=V(p1),Q=M0===0||M0>z?M0:z;z=u.T;var H=Y6.p;try{Y6.p=Q,u.T=null;var O=NO;NO=null,Q=Nw;var B=p1;if(e6=Ow,cX=Nw=null,p1=0,(s$&(z4|H1))!==H4)throw Error("Cannot flush passive effects while already rendering.");a4(B),qO=!0,Y7=!1;var L=0;if($U=null,L=Q4(),o1===mV)_8(e0,L,wU);else{var D=e0,F=L,T=o1===WO;!P6||F<=D||(c6?c6.run(console.timeStamp.bind(console,T?"Waiting for Paint":"Waiting",D,F,l$,i$,"secondary-light")):console.timeStamp(T?"Waiting for Paint":"Waiting",D,F,l$,i$,"secondary-light"))}D=s$,s$|=H1;var b=Q.current;P9(),Aj(b);var _=Q.current;b=OO,P9(),Lj(Q,_,B,O,b),cj(Q),s$=D;var y=Q4();if(_=L,b=c6,$U!==null?_2(_,y,$U,!0,b):!P6||y<=_||(b?b.run(console.timeStamp.bind(console,"Remaining Effects",_,y,l$,i$,"secondary-dark")):console.timeStamp("Remaining Effects",_,y,l$,i$,"secondary-dark")),tw(B,y),d8(0,!1),Y7?Q===uY?Bz++:(Bz=0,uY=Q):Bz=0,Y7=qO=!1,j4&&typeof j4.onPostCommitFiberRoot==="function")try{j4.onPostCommitFiberRoot(qX,Q)}catch(H$){V0||(V0=!0,console.error("React instrumentation encountered an error: %o",H$))}var $$=Q.current.stateNode;return $$.effectDuration=0,$$.passiveEffectDuration=0,!0}finally{Y6.p=H,u.T=z,yj($,U)}}function hj($,U,z){U=s4(z,U),m2(U),U=JW($.stateNode,U,2),$=fU($,U,2),$!==null&&(SU($,2),K0($))}function X6($,U,z){if(iX=!1,$.tag===3)hj($,$,z);else{for(;U!==null;){if(U.tag===3){hj(U,$,z);return}if(U.tag===1){var Q=U.stateNode;if(typeof U.type.getDerivedStateFromError==="function"||typeof Q.componentDidCatch==="function"&&(Hw===null||!Hw.has(Q))){$=s4(z,$),m2($),z=QW(2),Q=fU(U,z,2),Q!==null&&(GW(z,Q,U,$),SU(Q,2),K0(Q));return}}U=U.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
154
|
+
|
|
155
|
+
Error message:
|
|
156
|
+
|
|
157
|
+
%s`,z)}}function ZW($,U,z){var Q=$.pingCache;if(Q===null){Q=$.pingCache=new eT;var H=new Set;Q.set(U,H)}else H=Q.get(U),H===void 0&&(H=new Set,Q.set(U,H));H.has(z)||(JO=!0,H.add(z),Q=yZ.bind(null,$,U,z),E0&&n8($,z),U.then(Q,Q))}function yZ($,U,z){var Q=$.pingCache;Q!==null&&Q.delete(U),$.pingedLanes|=$.suspendedLanes&z,$.warmLanes&=~z,(z&127)!==0?0>_0&&(Uw=_0=o6(),LY=kQ("Promise Resolved"),ww=xQ):(z&4194048)!==0&&0>P1&&(P0=P1=o6(),DY=kQ("Promise Resolved"),mH=xQ),Ej()&&u.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
158
|
+
|
|
159
|
+
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
160
|
+
|
|
161
|
+
act(() => {
|
|
162
|
+
/* finish loading suspended data */
|
|
163
|
+
});
|
|
164
|
+
/* assert on the output */
|
|
165
|
+
|
|
166
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),E6===$&&(y$&z)===z&&(g6===Jw||g6===tQ&&(y$&62914560)===y$&&Q4()-U7<hV?(s$&z4)===H4&&JX($,0):QO|=z,Nz===y$&&(Nz=0)),K0($)}function uj($,U){U===0&&(U=nz()),$=D4($,U),$!==null&&(SU($,U),K0($))}function fZ($){var U=$.memoizedState,z=0;U!==null&&(z=U.retryLane),uj($,z)}function hZ($,U){var z=0;switch($.tag){case 31:case 13:var{stateNode:Q,memoizedState:H}=$;H!==null&&(z=H.retryLane);break;case 19:Q=$.stateNode;break;case 22:Q=$.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}Q!==null&&Q.delete(U),uj($,z)}function SW($,U,z){if((U.subtreeFlags&67117056)!==0)for(U=U.child;U!==null;){var Q=$,H=U,O=H.type===KQ;O=z||O,H.tag!==22?H.flags&67108864?O&&O$(H,mj,Q,H):SW(Q,H,O):H.memoizedState===null&&(O&&H.flags&8192?O$(H,mj,Q,H):H.subtreeFlags&67108864&&O$(H,SW,Q,H,O)),U=U.sibling}}function mj($,U){M6(!0);try{Bj(U),Fj(U),qj($,U.alternate,U,!1),Kj($,U,0,null,!1,0)}finally{M6(!1)}}function cj($){var U=!0;$.current.mode&(A4|i1)||(U=!1),SW($,$.current,U)}function ij($){if((s$&z4)===H4){var U=$.tag;if(U===3||U===1||U===0||U===11||U===14||U===15){if(U=r($)||"ReactComponent",J7!==null){if(J7.has(U))return;J7.add(U)}else J7=new Set([U]);O$($,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function n8($,U){E0&&$.memoizedUpdaters.forEach(function(z){D8($,z,U)})}function uZ($,U){var z=u.actQueue;return z!==null?(z.push(U),wb):OH($,U)}function mZ($){Ej()&&u.actQueue===null&&O$($,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
167
|
+
|
|
168
|
+
When testing, code that causes React state updates should be wrapped into act(...):
|
|
169
|
+
|
|
170
|
+
act(() => {
|
|
171
|
+
/* fire events that update state */
|
|
172
|
+
});
|
|
173
|
+
/* assert on the output */
|
|
174
|
+
|
|
175
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,r($))})}function K0($){$!==lX&&$.next===null&&(lX===null?Q7=lX=$:lX=lX.next=$),G7=!0,u.actQueue!==null?KO||(KO=!0,pj()):LO||(LO=!0,pj())}function d8($,U){if(!DO&&G7){DO=!0;do{var z=!1;for(var Q=Q7;Q!==null;){if(!U)if($!==0){var H=Q.pendingLanes;if(H===0)var O=0;else{var{suspendedLanes:B,pingedLanes:L}=Q;O=(1<<31-E4(42|$)+1)-1,O&=H&~(B&~L),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(z=!0,dj(Q,O))}else O=y$,O=Sw(Q,Q===E6?O:0,Q.cancelPendingCommit!==null||Q.timeoutHandle!==Dz),(O&3)===0||Tw(Q,O)||(z=!0,dj(Q,O));Q=Q.next}}while(z);DO=!1}}function cZ(){lY=window.event,TW()}function TW(){G7=KO=LO=!1;var $=0;Bw!==0&&rZ()&&($=Bw);for(var U=Q4(),z=null,Q=Q7;Q!==null;){var H=Q.next,O=lj(Q,U);if(O===0)Q.next=null,z===null?Q7=H:z.next=H,H===null&&(lX=z);else if(z=Q,$!==0||(O&3)!==0)G7=!0;Q=H}e6!==Ow&&e6!==X7||d8($,!1),Bw!==0&&(Bw=0)}function lj($,U){for(var{suspendedLanes:z,pingedLanes:Q,expirationTimes:H}=$,O=$.pendingLanes&-62914561;0<O;){var B=31-E4(O),L=1<<B,D=H[B];if(D===-1){if((L&z)===0||(L&Q)!==0)H[B]=r5(L,U)}else D<=U&&($.expiredLanes|=L);O&=~L}if(U=E6,z=y$,z=Sw($,$===U?z:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Dz),Q=$.callbackNode,z===0||$===U&&(B6===Hz||B6===Oz)||$.cancelPendingCommit!==null)return Q!==null&&bW(Q),$.callbackNode=null,$.callbackPriority=0;if((z&3)===0||Tw($,z)){if(U=z&-z,U!==$.callbackPriority||u.actQueue!==null&&Q!==jO)bW(Q);else return U;switch(V(z)){case J1:case c1:z=BH;break;case M0:z=BX;break;case EQ:z=qH;break;default:z=BX}return Q=nj.bind(null,$),u.actQueue!==null?(u.actQueue.push(Q),z=jO):z=OH(z,Q),$.callbackPriority=U,$.callbackNode=z,U}return Q!==null&&bW(Q),$.callbackPriority=2,$.callbackNode=null,2}function nj($,U){if(uQ=hQ=!1,lY=window.event,e6!==Ow&&e6!==X7)return $.callbackNode=null,$.callbackPriority=0,null;var z=$.callbackNode;if(o1===z7&&(o1=WO),l8()&&$.callbackNode!==z)return null;var Q=y$;if(Q=Sw($,$===E6?Q:0,$.cancelPendingCommit!==null||$.timeoutHandle!==Dz),Q===0)return null;return Rj($,Q,U),lj($,Q4()),$.callbackNode!=null&&$.callbackNode===z?nj.bind(null,$):null}function dj($,U){if(l8())return null;hQ=uQ,uQ=!1,Rj($,U,!0)}function bW($){$!==jO&&$!==null&&TS($)}function pj(){u.actQueue!==null&&u.actQueue.push(function(){return TW(),null}),Nb(function(){(s$&(z4|H1))!==H4?OH(NH,cZ):TW()})}function CW(){if(Bw===0){var $=zz;$===0&&($=AQ,AQ<<=1,(AQ&261888)===0&&(AQ=256)),Bw=$}return Bw}function oj($){if($==null||typeof $==="symbol"||typeof $==="boolean")return null;if(typeof $==="function")return $;return L6($,"action"),M8(""+$)}function rj($,U){var z=U.ownerDocument.createElement("input");return z.name=U.name,z.value=U.value,$.id&&z.setAttribute("form",$.id),U.parentNode.insertBefore(z,U),$=new FormData($),z.parentNode.removeChild(z),$}function iZ($,U,z,Q,H){if(U==="submit"&&z&&z.stateNode===H){var O=oj((H[M4]||null).action),B=Q.submitter;B&&(U=(U=B[M4]||null)?oj(U.formAction):B.getAttribute("formAction"),U!==null&&(O=U,B=null));var L=new PQ("action","action",null,Q,H);$.push({event:L,listeners:[{instance:null,listener:function(){if(Q.defaultPrevented){if(Bw!==0){var D=B?rj(H,B):new FormData(H),F={pending:!0,data:D,method:H.method,action:O};Object.freeze(F),eG(z,F,null,D)}}else typeof O==="function"&&(L.preventDefault(),D=B?rj(H,B):new FormData(H),F={pending:!0,data:D,method:H.method,action:O},Object.freeze(F),eG(z,F,O,D))},currentTarget:H}]})}}function YQ($,U,z){$.currentTarget=z;try{U($)}catch(Q){SH(Q)}$.currentTarget=null}function tj($,U){U=(U&4)!==0;for(var z=0;z<$.length;z++){var Q=$[z];$:{var H=void 0,O=Q.event;if(Q=Q.listeners,U)for(var B=Q.length-1;0<=B;B--){var L=Q[B],D=L.instance,F=L.currentTarget;if(L=L.listener,D!==H&&O.isPropagationStopped())break $;D!==null?O$(D,YQ,O,L,F):YQ(O,L,F),H=D}else for(B=0;B<Q.length;B++){if(L=Q[B],D=L.instance,F=L.currentTarget,L=L.listener,D!==H&&O.isPropagationStopped())break $;D!==null?O$(D,YQ,O,L,F):YQ(O,L,F),H=D}}}}function o$($,U){AO.has($)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',$);var z=U[LH];z===void 0&&(z=U[LH]=new Set);var Q=$+"__bubble";z.has(Q)||(aj(U,$,2,!1),z.add(Q))}function kW($,U,z){AO.has($)&&!U&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',$);var Q=0;U&&(Q|=4),aj(z,$,Q,U)}function xW($){if(!$[W7]){$[W7]=!0,pA.forEach(function(z){z!=="selectionchange"&&(AO.has(z)||kW(z,!1,$),kW(z,!0,$))});var U=$.nodeType===9?$:$.ownerDocument;U===null||U[W7]||(U[W7]=!0,kW("selectionchange",!1,U))}}function aj($,U,z,Q){switch(SA(U)){case J1:var H=MS;break;case c1:H=RS;break;default:H=aW}z=H.bind(null,U,z,$),H=void 0,!FH||U!=="touchstart"&&U!=="touchmove"&&U!=="wheel"||(H=!0),Q?H!==void 0?$.addEventListener(U,z,{capture:!0,passive:H}):$.addEventListener(U,z,!0):H!==void 0?$.addEventListener(U,z,{passive:H}):$.addEventListener(U,z,!1)}function gW($,U,z,Q,H){var O=Q;if((U&1)===0&&(U&2)===0&&Q!==null)$:for(;;){if(Q===null)return;var B=Q.tag;if(B===3||B===4){var L=Q.stateNode.containerInfo;if(L===H)break;if(B===4)for(B=Q.return;B!==null;){var D=B.tag;if((D===3||D===4)&&B.stateNode.containerInfo===H)return;B=B.return}for(;L!==null;){if(B=B$(L),B===null)return;if(D=B.tag,D===5||D===6||D===26||D===27){Q=O=B;continue $}L=L.parentNode}}Q=Q.return}G2(function(){var F=O,T=XG(z),b=[];$:{var _=SF.get($);if(_!==void 0){var y=PQ,$$=$;switch($){case"keypress":if(B9(z)===0)break $;case"keydown":case"keyup":y=jT;break;case"focusin":$$="focus",y=RH;break;case"focusout":$$="blur",y=RH;break;case"beforeblur":case"afterblur":y=RH;break;case"click":if(z.button===2)break $;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=KF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=JT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=VT;break;case _F:case PF:case vF:y=WT;break;case ZF:y=MT;break;case"scroll":case"scrollend":y=XT;break;case"wheel":y=IT;break;case"copy":case"cut":case"paste":y=OT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=jF;break;case"toggle":case"beforetoggle":y=PT}var H$=(U&4)!==0,I6=!H$&&($==="scroll"||$==="scrollend"),r$=H$?_!==null?_+"Capture":null:_;H$=[];for(var I=F,v;I!==null;){var S=I;if(v=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||v===null||r$===null||(S=R8(I,r$),S!=null&&H$.push(p8(I,S,v))),I6)break;I=I.return}0<H$.length&&(_=new y(_,$$,null,z,T),b.push({event:_,listeners:H$}))}}if((U&7)===0){$:{if(_=$==="mouseover"||$==="pointerover",y=$==="mouseout"||$==="pointerout",_&&z!==XY&&($$=z.relatedTarget||z.fromElement)&&(B$($$)||$$[oU]))break $;if(y||_){if(_=T.window===T?T:(_=T.ownerDocument)?_.defaultView||_.parentWindow:window,y){if($$=z.relatedTarget||z.toElement,y=F,$$=$$?B$($$):null,$$!==null&&(I6=k($$),H$=$$.tag,$$!==I6||H$!==5&&H$!==27&&H$!==6))$$=null}else y=null,$$=F;if(y!==$$){if(H$=KF,S="onMouseLeave",r$="onMouseEnter",I="mouse",$==="pointerout"||$==="pointerover")H$=jF,S="onPointerLeave",r$="onPointerEnter",I="pointer";if(I6=y==null?_:T$(y),v=$$==null?_:T$($$),_=new H$(S,I+"leave",y,z,T),_.target=I6,_.relatedTarget=v,S=null,B$(T)===F&&(H$=new H$(r$,I+"enter",$$,z,T),H$.target=v,H$.relatedTarget=I6,S=H$),I6=S,y&&$$)U:{H$=lZ,r$=y,I=$$,v=0;for(S=r$;S;S=H$(S))v++;S=0;for(var i=I;i;i=H$(i))S++;for(;0<v-S;)r$=H$(r$),v--;for(;0<S-v;)I=H$(I),S--;for(;v--;){if(r$===I||I!==null&&r$===I.alternate){H$=r$;break U}r$=H$(r$),I=H$(I)}H$=null}else H$=null;y!==null&&sj(b,_,y,H$,!1),$$!==null&&I6!==null&&sj(b,I6,$$,H$,!0)}}}$:{if(_=F?T$(F):window,y=_.nodeName&&_.nodeName.toLowerCase(),y==="select"||y==="input"&&_.type==="file")var J$=L2;else if(B2(_))if(RF)J$=wZ;else{J$=$Z;var v$=ev}else y=_.nodeName,!y||y.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?F&&E8(F.elementType)&&(J$=L2):J$=UZ;if(J$&&(J$=J$($,F))){q2(b,J$,z,T);break $}v$&&v$($,_,F),$==="focusout"&&F&&_.type==="number"&&F.memoizedProps.value!=null&&s5(_,"number",_.value)}switch(v$=F?T$(F):window,$){case"focusin":if(B2(v$)||v$.contentEditable==="true")VX=v$,_H=F,OY=null;break;case"focusout":OY=_H=VX=null;break;case"mousedown":PH=!0;break;case"contextmenu":case"mouseup":case"dragend":PH=!1,E2(b,z,T);break;case"selectionchange":if(TT)break;case"keydown":case"keyup":E2(b,z,T)}var j$;if(IH)$:{switch($){case"compositionstart":var q$="onCompositionStart";break $;case"compositionend":q$="onCompositionEnd";break $;case"compositionupdate":q$="onCompositionUpdate";break $}q$=void 0}else FX?O2($,z)&&(q$="onCompositionEnd"):$==="keydown"&&z.keyCode===AF&&(q$="onCompositionStart");if(q$&&(FF&&z.locale!=="ko"&&(FX||q$!=="onCompositionStart"?q$==="onCompositionEnd"&&FX&&(j$=W2()):(rU=T,VH=("value"in rU)?rU.value:rU.textContent,FX=!0)),v$=JQ(F,q$),0<v$.length&&(q$=new DF(q$,$,null,z,T),b.push({event:q$,listeners:v$}),j$?q$.data=j$:(j$=N2(z),j$!==null&&(q$.data=j$)))),j$=ZT?rv($,z):tv($,z))q$=JQ(F,"onBeforeInput"),0<q$.length&&(v$=new BT("onBeforeInput","beforeinput",null,z,T),b.push({event:v$,listeners:q$}),v$.data=j$);iZ(b,$,F,z,T)}tj(b,U)})}function p8($,U,z){return{instance:$,listener:U,currentTarget:z}}function JQ($,U){for(var z=U+"Capture",Q=[];$!==null;){var H=$,O=H.stateNode;if(H=H.tag,H!==5&&H!==26&&H!==27||O===null||(H=R8($,z),H!=null&&Q.unshift(p8($,H,O)),H=R8($,U),H!=null&&Q.push(p8($,H,O))),$.tag===3)return Q;$=$.return}return[]}function lZ($){if($===null)return null;do $=$.return;while($&&$.tag!==5&&$.tag!==27);return $?$:null}function sj($,U,z,Q,H){for(var O=U._reactName,B=[];z!==null&&z!==Q;){var L=z,D=L.alternate,F=L.stateNode;if(L=L.tag,D!==null&&D===Q)break;L!==5&&L!==26&&L!==27||F===null||(D=F,H?(F=R8(z,O),F!=null&&B.unshift(p8(z,F,D))):H||(F=R8(z,O),F!=null&&B.push(p8(z,F,D)))),z=z.return}B.length!==0&&$.push({event:U,listeners:B})}function yW($,U){nv($,U),$!=="input"&&$!=="textarea"&&$!=="select"||U==null||U.value!==null||qF||(qF=!0,$==="select"&&U.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",$):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",$));var z={registrationNameDependencies:aw,possibleRegistrationNames:KH};E8($)||typeof U.is==="string"||pv($,U,z),U.contentEditable&&!U.suppressContentEditableWarning&&U.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function J4($,U,z,Q){U!==z&&(z=iU(z),iU(U)!==z&&(Q[$]=U))}function nZ($,U,z){U.forEach(function(Q){z[UA(Q)]=Q==="style"?hW($):$.getAttribute(Q)})}function D0($,U){U===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",$,$,$):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",$,typeof U)}function ej($,U){return $=$.namespaceURI===RQ||$.namespaceURI===KX?$.ownerDocument.createElementNS($.namespaceURI,$.tagName):$.ownerDocument.createElement($.tagName),$.innerHTML=U,$.innerHTML}function iU($){return ZU($)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Zw($)),Y4($)),(typeof $==="string"?$:""+$).replace(zb,`
|
|
176
|
+
`).replace(Xb,"")}function $A($,U){return U=iU(U),iU($)===U?!0:!1}function F6($,U,z,Q,H,O){switch(z){case"children":if(typeof Q==="string")N9(Q,U,!1),U==="body"||U==="textarea"&&Q===""||V8($,Q);else if(typeof Q==="number"||typeof Q==="bigint")N9(""+Q,U,!1),U!=="body"&&V8($,""+Q);break;case"className":W9($,"class",Q);break;case"tabIndex":W9($,"tabindex",Q);break;case"dir":case"role":case"viewBox":case"width":case"height":W9($,z,Q);break;case"style":Y2($,Q,O);break;case"data":if(U!=="object"){W9($,"data",Q);break}case"src":case"href":if(Q===""&&(U!=="a"||z!=="href")){z==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',z,z):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',z,z),$.removeAttribute(z);break}if(Q==null||typeof Q==="function"||typeof Q==="symbol"||typeof Q==="boolean"){$.removeAttribute(z);break}L6(Q,z),Q=M8(""+Q),$.setAttribute(z,Q);break;case"action":case"formAction":if(Q!=null&&(U==="form"?z==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof Q==="function"&&(H.encType==null&&H.method==null||N7||(N7=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),H.target==null||O7||(O7=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):U==="input"||U==="button"?z==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):U!=="input"||H.type==="submit"||H.type==="image"||H7?U!=="button"||H.type==null||H.type==="submit"||H7?typeof Q==="function"&&(H.name==null||eV||(eV=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),H.formEncType==null&&H.formMethod==null||N7||(N7=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),H.formTarget==null||O7||(O7=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(H7=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(H7=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):z==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof Q==="function"){$.setAttribute(z,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof O==="function"&&(z==="formAction"?(U!=="input"&&F6($,U,"name",H.name,H,null),F6($,U,"formEncType",H.formEncType,H,null),F6($,U,"formMethod",H.formMethod,H,null),F6($,U,"formTarget",H.formTarget,H,null)):(F6($,U,"encType",H.encType,H,null),F6($,U,"method",H.method,H,null),F6($,U,"target",H.target,H,null)));if(Q==null||typeof Q==="symbol"||typeof Q==="boolean"){$.removeAttribute(z);break}L6(Q,z),Q=M8(""+Q),$.setAttribute(z,Q);break;case"onClick":Q!=null&&(typeof Q!=="function"&&D0(z,Q),$.onclick=u0);break;case"onScroll":Q!=null&&(typeof Q!=="function"&&D0(z,Q),o$("scroll",$));break;case"onScrollEnd":Q!=null&&(typeof Q!=="function"&&D0(z,Q),o$("scrollend",$));break;case"dangerouslySetInnerHTML":if(Q!=null){if(typeof Q!=="object"||!("__html"in Q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(z=Q.__html,z!=null){if(H.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=z}}break;case"multiple":$.multiple=Q&&typeof Q!=="function"&&typeof Q!=="symbol";break;case"muted":$.muted=Q&&typeof Q!=="function"&&typeof Q!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(Q==null||typeof Q==="function"||typeof Q==="boolean"||typeof Q==="symbol"){$.removeAttribute("xlink:href");break}L6(Q,z),z=M8(""+Q),$.setAttributeNS(qz,"xlink:href",z);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"?(L6(Q,z),$.setAttribute(z,""+Q)):$.removeAttribute(z);break;case"inert":Q!==""||B7[z]||(B7[z]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",z));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":Q&&typeof Q!=="function"&&typeof Q!=="symbol"?$.setAttribute(z,""):$.removeAttribute(z);break;case"capture":case"download":Q===!0?$.setAttribute(z,""):Q!==!1&&Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"?(L6(Q,z),$.setAttribute(z,Q)):$.removeAttribute(z);break;case"cols":case"rows":case"size":case"span":Q!=null&&typeof Q!=="function"&&typeof Q!=="symbol"&&!isNaN(Q)&&1<=Q?(L6(Q,z),$.setAttribute(z,Q)):$.removeAttribute(z);break;case"rowSpan":case"start":Q==null||typeof Q==="function"||typeof Q==="symbol"||isNaN(Q)?$.removeAttribute(z):(L6(Q,z),$.setAttribute(z,Q));break;case"popover":o$("beforetoggle",$),o$("toggle",$),G9($,"popover",Q);break;case"xlinkActuate":h0($,qz,"xlink:actuate",Q);break;case"xlinkArcrole":h0($,qz,"xlink:arcrole",Q);break;case"xlinkRole":h0($,qz,"xlink:role",Q);break;case"xlinkShow":h0($,qz,"xlink:show",Q);break;case"xlinkTitle":h0($,qz,"xlink:title",Q);break;case"xlinkType":h0($,qz,"xlink:type",Q);break;case"xmlBase":h0($,FO,"xml:base",Q);break;case"xmlLang":h0($,FO,"xml:lang",Q);break;case"xmlSpace":h0($,FO,"xml:space",Q);break;case"is":O!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),G9($,"is",Q);break;case"innerText":case"textContent":break;case"popoverTarget":$E||Q==null||typeof Q!=="object"||($E=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",Q));default:!(2<z.length)||z[0]!=="o"&&z[0]!=="O"||z[1]!=="n"&&z[1]!=="N"?(z=J2(z),G9($,z,Q)):aw.hasOwnProperty(z)&&Q!=null&&typeof Q!=="function"&&D0(z,Q)}}function fW($,U,z,Q,H,O){switch(z){case"style":Y2($,Q,O);break;case"dangerouslySetInnerHTML":if(Q!=null){if(typeof Q!=="object"||!("__html"in Q))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(z=Q.__html,z!=null){if(H.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");$.innerHTML=z}}break;case"children":typeof Q==="string"?V8($,Q):(typeof Q==="number"||typeof Q==="bigint")&&V8($,""+Q);break;case"onScroll":Q!=null&&(typeof Q!=="function"&&D0(z,Q),o$("scroll",$));break;case"onScrollEnd":Q!=null&&(typeof Q!=="function"&&D0(z,Q),o$("scrollend",$));break;case"onClick":Q!=null&&(typeof Q!=="function"&&D0(z,Q),$.onclick=u0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(aw.hasOwnProperty(z))Q!=null&&typeof Q!=="function"&&D0(z,Q);else $:{if(z[0]==="o"&&z[1]==="n"&&(H=z.endsWith("Capture"),U=z.slice(2,H?z.length-7:void 0),O=$[M4]||null,O=O!=null?O[z]:null,typeof O==="function"&&$.removeEventListener(U,O,H),typeof Q==="function")){typeof O!=="function"&&O!==null&&(z in $?$[z]=null:$.hasAttribute(z)&&$.removeAttribute(z)),$.addEventListener(U,Q,H);break $}z in $?$[z]=Q:Q===!0?$.setAttribute(z,""):G9($,z,Q)}}}function B4($,U,z){switch(yW(U,z),U){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":o$("error",$),o$("load",$);var Q=!1,H=!1,O;for(O in z)if(z.hasOwnProperty(O)){var B=z[O];if(B!=null)switch(O){case"src":Q=!0;break;case"srcSet":H=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F6($,U,O,B,z,null)}}H&&F6($,U,"srcSet",z.srcSet,z,null),Q&&F6($,U,"src",z.src,z,null);return;case"input":bU("input",z),o$("invalid",$);var L=O=B=H=null,D=null,F=null;for(Q in z)if(z.hasOwnProperty(Q)){var T=z[Q];if(T!=null)switch(Q){case"name":H=T;break;case"type":B=T;break;case"checked":D=T;break;case"defaultChecked":F=T;break;case"value":O=T;break;case"defaultValue":L=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F6($,U,Q,T,z,null)}}iK($,z),lK($,O,L,D,F,B,H,!1);return;case"select":bU("select",z),o$("invalid",$),Q=B=O=null;for(H in z)if(z.hasOwnProperty(H)&&(L=z[H],L!=null))switch(H){case"value":O=L;break;case"defaultValue":B=L;break;case"multiple":Q=L;default:F6($,U,H,L,z,null)}pK($,z),U=O,z=B,$.multiple=!!Q,U!=null?pz($,!!Q,U,!1):z!=null&&pz($,!!Q,z,!0);return;case"textarea":bU("textarea",z),o$("invalid",$),O=H=Q=null;for(B in z)if(z.hasOwnProperty(B)&&(L=z[B],L!=null))switch(B){case"value":Q=L;break;case"defaultValue":H=L;break;case"children":O=L;break;case"dangerouslySetInnerHTML":if(L!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:F6($,U,B,L,z,null)}oK($,z),tK($,Q,H,O);return;case"option":nK($,z);for(D in z)if(z.hasOwnProperty(D)&&(Q=z[D],Q!=null))switch(D){case"selected":$.selected=Q&&typeof Q!=="function"&&typeof Q!=="symbol";break;default:F6($,U,D,Q,z,null)}return;case"dialog":o$("beforetoggle",$),o$("toggle",$),o$("cancel",$),o$("close",$);break;case"iframe":case"object":o$("load",$);break;case"video":case"audio":for(Q=0;Q<mY.length;Q++)o$(mY[Q],$);break;case"image":o$("error",$),o$("load",$);break;case"details":o$("toggle",$);break;case"embed":case"source":case"link":o$("error",$),o$("load",$);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in z)if(z.hasOwnProperty(F)&&(Q=z[F],Q!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:F6($,U,F,Q,z,null)}return;default:if(E8(U)){for(T in z)z.hasOwnProperty(T)&&(Q=z[T],Q!==void 0&&fW($,U,T,Q,z,void 0));return}}for(L in z)z.hasOwnProperty(L)&&(Q=z[L],Q!=null&&F6($,U,L,Q,z,null))}function dZ($,U,z,Q){switch(yW(U,Q),U){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var H=null,O=null,B=null,L=null,D=null,F=null,T=null;for(y in z){var b=z[y];if(z.hasOwnProperty(y)&&b!=null)switch(y){case"checked":break;case"value":break;case"defaultValue":D=b;default:Q.hasOwnProperty(y)||F6($,U,y,null,Q,b)}}for(var _ in Q){var y=Q[_];if(b=z[_],Q.hasOwnProperty(_)&&(y!=null||b!=null))switch(_){case"type":O=y;break;case"name":H=y;break;case"checked":F=y;break;case"defaultChecked":T=y;break;case"value":B=y;break;case"defaultValue":L=y;break;case"children":case"dangerouslySetInnerHTML":if(y!=null)throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:y!==b&&F6($,U,_,y,Q,b)}}U=z.type==="checkbox"||z.type==="radio"?z.checked!=null:z.value!=null,Q=Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null,U||!Q||sV||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),sV=!0),!U||Q||aV||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),aV=!0),a5($,B,L,D,F,T,O,H);return;case"select":y=B=L=_=null;for(O in z)if(D=z[O],z.hasOwnProperty(O)&&D!=null)switch(O){case"value":break;case"multiple":y=D;default:Q.hasOwnProperty(O)||F6($,U,O,null,Q,D)}for(H in Q)if(O=Q[H],D=z[H],Q.hasOwnProperty(H)&&(O!=null||D!=null))switch(H){case"value":_=O;break;case"defaultValue":L=O;break;case"multiple":B=O;default:O!==D&&F6($,U,H,O,Q,D)}Q=L,U=B,z=y,_!=null?pz($,!!U,_,!1):!!z!==!!U&&(Q!=null?pz($,!!U,Q,!0):pz($,!!U,U?[]:"",!1));return;case"textarea":y=_=null;for(L in z)if(H=z[L],z.hasOwnProperty(L)&&H!=null&&!Q.hasOwnProperty(L))switch(L){case"value":break;case"children":break;default:F6($,U,L,null,Q,H)}for(B in Q)if(H=Q[B],O=z[B],Q.hasOwnProperty(B)&&(H!=null||O!=null))switch(B){case"value":_=H;break;case"defaultValue":y=H;break;case"children":break;case"dangerouslySetInnerHTML":if(H!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:H!==O&&F6($,U,B,H,Q,O)}rK($,_,y);return;case"option":for(var $$ in z)if(_=z[$$],z.hasOwnProperty($$)&&_!=null&&!Q.hasOwnProperty($$))switch($$){case"selected":$.selected=!1;break;default:F6($,U,$$,null,Q,_)}for(D in Q)if(_=Q[D],y=z[D],Q.hasOwnProperty(D)&&_!==y&&(_!=null||y!=null))switch(D){case"selected":$.selected=_&&typeof _!=="function"&&typeof _!=="symbol";break;default:F6($,U,D,_,Q,y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var H$ in z)_=z[H$],z.hasOwnProperty(H$)&&_!=null&&!Q.hasOwnProperty(H$)&&F6($,U,H$,null,Q,_);for(F in Q)if(_=Q[F],y=z[F],Q.hasOwnProperty(F)&&_!==y&&(_!=null||y!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(U+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:F6($,U,F,_,Q,y)}return;default:if(E8(U)){for(var I6 in z)_=z[I6],z.hasOwnProperty(I6)&&_!==void 0&&!Q.hasOwnProperty(I6)&&fW($,U,I6,void 0,Q,_);for(T in Q)_=Q[T],y=z[T],!Q.hasOwnProperty(T)||_===y||_===void 0&&y===void 0||fW($,U,T,_,Q,y);return}}for(var r$ in z)_=z[r$],z.hasOwnProperty(r$)&&_!=null&&!Q.hasOwnProperty(r$)&&F6($,U,r$,null,Q,_);for(b in Q)_=Q[b],y=z[b],!Q.hasOwnProperty(b)||_===y||_==null&&y==null||F6($,U,b,_,Q,y)}function UA($){switch($){case"class":return"className";case"for":return"htmlFor";default:return $}}function hW($){var U={};$=$.style;for(var z=0;z<$.length;z++){var Q=$[z];U[Q]=$.getPropertyValue(Q)}return U}function wA($,U,z){if(U!=null&&typeof U!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var Q,H=Q="",O;for(O in U)if(U.hasOwnProperty(O)){var B=U[O];B!=null&&typeof B!=="boolean"&&B!==""&&(O.indexOf("--")===0?(K8(B,O),Q+=H+O+":"+(""+B).trim()):typeof B!=="number"||B===0||NF.has(O)?(K8(B,O),Q+=H+O.replace(QF,"-$1").toLowerCase().replace(GF,"-ms-")+":"+(""+B).trim()):Q+=H+O.replace(QF,"-$1").toLowerCase().replace(GF,"-ms-")+":"+B+"px",H=";")}Q=Q||null,U=$.getAttribute("style"),U!==Q&&(Q=iU(Q),iU(U)!==Q&&(z.style=hW($)))}}function F1($,U,z,Q,H,O){if(H.delete(z),$=$.getAttribute(z),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":return}else if(Q!=null)switch(typeof Q){case"function":case"symbol":case"boolean":break;default:if(L6(Q,U),$===""+Q)return}J4(U,$,Q,O)}function zA($,U,z,Q,H,O){if(H.delete(z),$=$.getAttribute(z),$===null){switch(typeof Q){case"function":case"symbol":return}if(!Q)return}else switch(typeof Q){case"function":case"symbol":break;default:if(Q)return}J4(U,$,Q,O)}function uW($,U,z,Q,H,O){if(H.delete(z),$=$.getAttribute(z),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":return}else if(Q!=null)switch(typeof Q){case"function":case"symbol":break;default:if(L6(Q,z),$===""+Q)return}J4(U,$,Q,O)}function XA($,U,z,Q,H,O){if(H.delete(z),$=$.getAttribute(z),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(Q))return}else if(Q!=null)switch(typeof Q){case"function":case"symbol":case"boolean":break;default:if(!isNaN(Q)&&(L6(Q,U),$===""+Q))return}J4(U,$,Q,O)}function mW($,U,z,Q,H,O){if(H.delete(z),$=$.getAttribute(z),$===null)switch(typeof Q){case"undefined":case"function":case"symbol":case"boolean":return}else if(Q!=null)switch(typeof Q){case"function":case"symbol":case"boolean":break;default:if(L6(Q,U),z=M8(""+Q),$===z)return}J4(U,$,Q,O)}function YA($,U,z,Q){for(var H={},O=new Set,B=$.attributes,L=0;L<B.length;L++)switch(B[L].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:O.add(B[L].name)}if(E8(U)){for(var D in z)if(z.hasOwnProperty(D)){var F=z[D];if(F!=null){if(aw.hasOwnProperty(D))typeof F!=="function"&&D0(D,F);else if(z.suppressHydrationWarning!==!0)switch(D){case"children":typeof F!=="string"&&typeof F!=="number"||J4("children",$.textContent,F,H);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":B=$.innerHTML,F=F?F.__html:void 0,F!=null&&(F=ej($,F),J4(D,B,F,H));continue;case"style":O.delete(D),wA($,F,H);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":O.delete(D.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",D);continue;case"className":O.delete("class"),B=uK($,"class",F),J4("className",B,F,H);continue;default:Q.context===GU&&U!=="svg"&&U!=="math"?O.delete(D.toLowerCase()):O.delete(D),B=uK($,D,F),J4(D,B,F,H)}}}}else for(F in z)if(z.hasOwnProperty(F)&&(D=z[F],D!=null)){if(aw.hasOwnProperty(F))typeof D!=="function"&&D0(F,D);else if(z.suppressHydrationWarning!==!0)switch(F){case"children":typeof D!=="string"&&typeof D!=="number"||J4("children",$.textContent,D,H);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":B=$.innerHTML,D=D?D.__html:void 0,D!=null&&(D=ej($,D),B!==D&&(H[F]={__html:B}));continue;case"className":F1($,F,"class",D,O,H);continue;case"tabIndex":F1($,F,"tabindex",D,O,H);continue;case"style":O.delete(F),wA($,D,H);continue;case"multiple":O.delete(F),J4(F,$.multiple,D,H);continue;case"muted":O.delete(F),J4(F,$.muted,D,H);continue;case"autoFocus":O.delete("autofocus"),J4(F,$.autofocus,D,H);continue;case"data":if(U!=="object"){O.delete(F),B=$.getAttribute("data"),J4(F,B,D,H);continue}case"src":case"href":if(!(D!==""||U==="a"&&F==="href"||U==="object"&&F==="data")){F==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',F,F):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',F,F);continue}mW($,F,F,D,O,H);continue;case"action":case"formAction":if(B=$.getAttribute(F),typeof D==="function"){O.delete(F.toLowerCase()),F==="formAction"?(O.delete("name"),O.delete("formenctype"),O.delete("formmethod"),O.delete("formtarget")):(O.delete("enctype"),O.delete("method"),O.delete("target"));continue}else if(B===Yb){O.delete(F.toLowerCase()),J4(F,"function",D,H);continue}mW($,F,F.toLowerCase(),D,O,H);continue;case"xlinkHref":mW($,F,"xlink:href",D,O,H);continue;case"contentEditable":uW($,F,"contenteditable",D,O,H);continue;case"spellCheck":uW($,F,"spellcheck",D,O,H);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":uW($,F,F,D,O,H);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":zA($,F,F.toLowerCase(),D,O,H);continue;case"capture":case"download":$:{L=$;var T=B=F,b=H;if(O.delete(T),L=L.getAttribute(T),L===null)switch(typeof D){case"undefined":case"function":case"symbol":break $;default:if(D===!1)break $}else if(D!=null)switch(typeof D){case"function":case"symbol":break;case"boolean":if(D===!0&&L==="")break $;break;default:if(L6(D,B),L===""+D)break $}J4(B,L,D,b)}continue;case"cols":case"rows":case"size":case"span":$:{if(L=$,T=B=F,b=H,O.delete(T),L=L.getAttribute(T),L===null)switch(typeof D){case"undefined":case"function":case"symbol":case"boolean":break $;default:if(isNaN(D)||1>D)break $}else if(D!=null)switch(typeof D){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(D)||1>D)&&(L6(D,B),L===""+D))break $}J4(B,L,D,b)}continue;case"rowSpan":XA($,F,"rowspan",D,O,H);continue;case"start":XA($,F,F,D,O,H);continue;case"xHeight":F1($,F,"x-height",D,O,H);continue;case"xlinkActuate":F1($,F,"xlink:actuate",D,O,H);continue;case"xlinkArcrole":F1($,F,"xlink:arcrole",D,O,H);continue;case"xlinkRole":F1($,F,"xlink:role",D,O,H);continue;case"xlinkShow":F1($,F,"xlink:show",D,O,H);continue;case"xlinkTitle":F1($,F,"xlink:title",D,O,H);continue;case"xlinkType":F1($,F,"xlink:type",D,O,H);continue;case"xmlBase":F1($,F,"xml:base",D,O,H);continue;case"xmlLang":F1($,F,"xml:lang",D,O,H);continue;case"xmlSpace":F1($,F,"xml:space",D,O,H);continue;case"inert":D!==""||B7[F]||(B7[F]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",F)),zA($,F,F,D,O,H);continue;default:if(!(2<F.length)||F[0]!=="o"&&F[0]!=="O"||F[1]!=="n"&&F[1]!=="N"){L=J2(F),B=!1,Q.context===GU&&U!=="svg"&&U!=="math"?O.delete(L.toLowerCase()):(T=F.toLowerCase(),T=IQ.hasOwnProperty(T)?IQ[T]||null:null,T!==null&&T!==F&&(B=!0,O.delete(T)),O.delete(L));$:if(T=$,b=L,L=D,j8(b))if(T.hasAttribute(b))T=T.getAttribute(b),L6(L,b),L=T===""+L?L:T;else{switch(typeof L){case"function":case"symbol":break $;case"boolean":if(T=b.toLowerCase().slice(0,5),T!=="data-"&&T!=="aria-")break $}L=L===void 0?void 0:null}else L=void 0;B||J4(F,L,D,H)}}}return 0<O.size&&z.suppressHydrationWarning!==!0&&nZ($,O,H),Object.keys(H).length===0?null:H}function pZ($,U){switch($.length){case 0:return"";case 1:return $[0];case 2:return $[0]+" "+U+" "+$[1];default:return $.slice(0,-1).join(", ")+", "+U+" "+$[$.length-1]}}function JA($){switch($){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oZ(){if(typeof performance.getEntriesByType==="function"){for(var $=0,U=0,z=performance.getEntriesByType("resource"),Q=0;Q<z.length;Q++){var H=z[Q],O=H.transferSize,B=H.initiatorType,L=H.duration;if(O&&L&&JA(B)){B=0,L=H.responseEnd;for(Q+=1;Q<z.length;Q++){var D=z[Q],F=D.startTime;if(F>L)break;var{transferSize:T,initiatorType:b}=D;T&&JA(b)&&(D=D.responseEnd,B+=T*(D<L?1:(L-F)/(D-F)))}if(--Q,U+=8*(O+B)/(H.duration/1000),$++,10<$)break}}if(0<$)return U/$/1e6}return navigator.connection&&($=navigator.connection.downlink,typeof $==="number")?$:5}function QQ($){return $.nodeType===9?$:$.ownerDocument}function QA($){switch($){case KX:return dX;case RQ:return L7;default:return GU}}function GA($,U){if($===GU)switch(U){case"svg":return dX;case"math":return L7;default:return GU}return $===dX&&U==="foreignObject"?GU:$}function cW($,U){return $==="textarea"||$==="noscript"||typeof U.children==="string"||typeof U.children==="number"||typeof U.children==="bigint"||typeof U.dangerouslySetInnerHTML==="object"&&U.dangerouslySetInnerHTML!==null&&U.dangerouslySetInnerHTML.__html!=null}function rZ(){var $=window.event;if($&&$.type==="popstate"){if($===RO)return!1;return RO=$,!0}return RO=null,!1}function o8(){var $=window.event;return $&&$!==lY?$.type:null}function r8(){var $=window.event;return $&&$!==lY?$.timeStamp:-1.1}function tZ($){setTimeout(function(){throw $})}function aZ($,U,z){switch(U){case"button":case"input":case"select":case"textarea":z.autoFocus&&$.focus();break;case"img":z.src?$.src=z.src:z.srcSet&&($.srcset=z.srcSet)}}function sZ(){}function eZ($,U,z,Q){dZ($,U,z,Q),$[M4]=Q}function WA($){V8($,"")}function $S($,U,z){$.nodeValue=z}function HA($){if(!$.__reactWarnedAboutChildrenConflict){var U=$[M4]||null;if(U!==null){var z=S$($);z!==null&&(typeof U.children==="string"||typeof U.children==="number"?($.__reactWarnedAboutChildrenConflict=!0,O$(z,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):U.dangerouslySetInnerHTML!=null&&($.__reactWarnedAboutChildrenConflict=!0,O$(z,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function lU($){return $==="head"}function US($,U){$.removeChild(U)}function wS($,U){($.nodeType===9?$.body:$.nodeName==="HTML"?$.ownerDocument.body:$).removeChild(U)}function OA($,U){var z=U,Q=0;do{var H=z.nextSibling;if($.removeChild(z),H&&H.nodeType===8)if(z=H.data,z===iY||z===q7){if(Q===0){$.removeChild(H),HX(U);return}Q--}else if(z===cY||z===qw||z===Kz||z===nX||z===Lz)Q++;else if(z===Qb)t8($.ownerDocument.documentElement);else if(z===Wb){z=$.ownerDocument.head,t8(z);for(var O=z.firstChild;O;){var{nextSibling:B,nodeName:L}=O;O[zY]||L==="SCRIPT"||L==="STYLE"||L==="LINK"&&O.rel.toLowerCase()==="stylesheet"||z.removeChild(O),O=B}}else z===Gb&&t8($.ownerDocument.body);z=H}while(z);HX(U)}function NA($,U){var z=$;$=0;do{var Q=z.nextSibling;if(z.nodeType===1?U?(z._stashedDisplay=z.style.display,z.style.display="none"):(z.style.display=z._stashedDisplay||"",z.getAttribute("style")===""&&z.removeAttribute("style")):z.nodeType===3&&(U?(z._stashedText=z.nodeValue,z.nodeValue=""):z.nodeValue=z._stashedText||""),Q&&Q.nodeType===8)if(z=Q.data,z===iY)if($===0)break;else $--;else z!==cY&&z!==qw&&z!==Kz&&z!==nX||$++;z=Q}while(z)}function zS($){NA($,!0)}function XS($){$=$.style,typeof $.setProperty==="function"?$.setProperty("display","none","important"):$.display="none"}function YS($){$.nodeValue=""}function JS($){NA($,!1)}function QS($,U){U=U[Hb],U=U!==void 0&&U!==null&&U.hasOwnProperty("display")?U.display:null,$.style.display=U==null||typeof U==="boolean"?"":(""+U).trim()}function GS($,U){$.nodeValue=U}function iW($){var U=$.firstChild;U&&U.nodeType===10&&(U=U.nextSibling);for(;U;){var z=U;switch(U=U.nextSibling,z.nodeName){case"HTML":case"HEAD":case"BODY":iW(z),Y$(z);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(z.rel.toLowerCase()==="stylesheet")continue}$.removeChild(z)}}function WS($,U,z,Q){for(;$.nodeType===1;){var H=z;if($.nodeName.toLowerCase()!==U.toLowerCase()){if(!Q&&($.nodeName!=="INPUT"||$.type!=="hidden"))break}else if(!Q)if(U==="input"&&$.type==="hidden"){L6(H.name,"name");var O=H.name==null?null:""+H.name;if(H.type==="hidden"&&$.getAttribute("name")===O)return $}else return $;else if(!$[zY])switch(U){case"meta":if(!$.hasAttribute("itemprop"))break;return $;case"link":if(O=$.getAttribute("rel"),O==="stylesheet"&&$.hasAttribute("data-precedence"))break;else if(O!==H.rel||$.getAttribute("href")!==(H.href==null||H.href===""?null:H.href)||$.getAttribute("crossorigin")!==(H.crossOrigin==null?null:H.crossOrigin)||$.getAttribute("title")!==(H.title==null?null:H.title))break;return $;case"style":if($.hasAttribute("data-precedence"))break;return $;case"script":if(O=$.getAttribute("src"),(O!==(H.src==null?null:H.src)||$.getAttribute("type")!==(H.type==null?null:H.type)||$.getAttribute("crossorigin")!==(H.crossOrigin==null?null:H.crossOrigin))&&O&&$.hasAttribute("async")&&!$.hasAttribute("itemprop"))break;return $;default:return $}if($=z1($.nextSibling),$===null)break}return null}function HS($,U,z){if(U==="")return null;for(;$.nodeType!==3;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!z)return null;if($=z1($.nextSibling),$===null)return null}return $}function BA($,U){for(;$.nodeType!==8;){if(($.nodeType!==1||$.nodeName!=="INPUT"||$.type!=="hidden")&&!U)return null;if($=z1($.nextSibling),$===null)return null}return $}function lW($){return $.data===qw||$.data===Kz}function nW($){return $.data===nX||$.data===qw&&$.ownerDocument.readyState!==wE}function OS($,U){var z=$.ownerDocument;if($.data===Kz)$._reactRetry=U;else if($.data!==qw||z.readyState!==wE)U();else{var Q=function(){U(),z.removeEventListener("DOMContentLoaded",Q)};z.addEventListener("DOMContentLoaded",Q),$._reactRetry=Q}}function z1($){for(;$!=null;$=$.nextSibling){var U=$.nodeType;if(U===1||U===3)break;if(U===8){if(U=$.data,U===cY||U===nX||U===qw||U===Kz||U===Lz||U===VO||U===UE)break;if(U===iY||U===q7)return null}}return $}function qA($){if($.nodeType===1){for(var U=$.nodeName.toLowerCase(),z={},Q=$.attributes,H=0;H<Q.length;H++){var O=Q[H];z[UA(O.name)]=O.name.toLowerCase()==="style"?hW($):O.value}return{type:U,props:z}}return $.nodeType===8?$.data===Lz?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:$.nodeValue}function LA($,U,z){return z===null||z[Jb]!==!0?($.nodeValue===U?$=null:(U=iU(U),$=iU($.nodeValue)===U?null:$.nodeValue),$):null}function dW($){$=$.nextSibling;for(var U=0;$;){if($.nodeType===8){var z=$.data;if(z===iY||z===q7){if(U===0)return z1($.nextSibling);U--}else z!==cY&&z!==nX&&z!==qw&&z!==Kz&&z!==Lz||U++}$=$.nextSibling}return null}function KA($){$=$.previousSibling;for(var U=0;$;){if($.nodeType===8){var z=$.data;if(z===cY||z===nX||z===qw||z===Kz||z===Lz){if(U===0)return $;U--}else z!==iY&&z!==q7||U++}$=$.previousSibling}return null}function NS($){HX($)}function BS($){HX($)}function qS($){HX($)}function DA($,U,z,Q,H){switch(H&&zG($,Q.ancestorInfo),U=QQ(z),$){case"html":if($=U.documentElement,!$)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"head":if($=U.head,!$)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return $;case"body":if($=U.body,!$)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return $;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function LS($,U,z,Q){if(!z[oU]&&S$(z)){var H=z.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",H,H,H)}switch($){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(H=z.attributes;H.length;)z.removeAttributeNode(H[0]);B4(z,$,U),z[q4]=Q,z[M4]=U}function t8($){for(var U=$.attributes;U.length;)$.removeAttributeNode(U[0]);Y$($)}function GQ($){return typeof $.getRootNode==="function"?$.getRootNode():$.nodeType===9?$:$.ownerDocument}function jA($,U,z){var Q=pX;if(Q&&typeof U==="string"&&U){var H=A1(U);H='link[rel="'+$+'"][href="'+H+'"]',typeof z==="string"&&(H+='[crossorigin="'+z+'"]'),GE.has(H)||(GE.add(H),$={rel:$,crossOrigin:z,href:U},Q.querySelector(H)===null&&(U=Q.createElement("link"),B4(U,"link",$),F$(U),Q.head.appendChild(U)))}}function AA($,U,z,Q){var H=(H=dU.current)?GQ(H):null;if(!H)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch($){case"meta":case"title":return null;case"style":return typeof z.precedence==="string"&&typeof z.href==="string"?(z=GX(z.href),U=$6(H).hoistableStyles,Q=U.get(z),Q||(Q={type:"style",instance:null,count:0,state:null},U.set(z,Q)),Q):{type:"void",instance:null,count:0,state:null};case"link":if(z.rel==="stylesheet"&&typeof z.href==="string"&&typeof z.precedence==="string"){$=GX(z.href);var O=$6(H).hoistableStyles,B=O.get($);if(!B&&(H=H.ownerDocument||H,B={type:"stylesheet",instance:null,count:0,state:{loading:jz,preload:null}},O.set($,B),(O=H.querySelector(a8($)))&&!O._p&&(B.instance=O,B.state.loading=nY|T1),!b1.has($))){var L={rel:"preload",as:"style",href:z.href,crossOrigin:z.crossOrigin,integrity:z.integrity,media:z.media,hrefLang:z.hrefLang,referrerPolicy:z.referrerPolicy};b1.set($,L),O||KS(H,$,L,B.state)}if(U&&Q===null)throw z=`
|
|
177
|
+
|
|
178
|
+
- `+WQ(U)+`
|
|
179
|
+
+ `+WQ(z),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+z);return B}if(U&&Q!==null)throw z=`
|
|
180
|
+
|
|
181
|
+
- `+WQ(U)+`
|
|
182
|
+
+ `+WQ(z),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+z);return null;case"script":return U=z.async,z=z.src,typeof z==="string"&&U&&typeof U!=="function"&&typeof U!=="symbol"?(z=WX(z),U=$6(H).hoistableScripts,Q=U.get(z),Q||(Q={type:"script",instance:null,count:0,state:null},U.set(z,Q)),Q):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+$+'". this is a bug in React.')}}function WQ($){var U=0,z="<link";return typeof $.rel==="string"?(U++,z+=' rel="'+$.rel+'"'):m1.call($,"rel")&&(U++,z+=' rel="'+($.rel===null?"null":"invalid type "+typeof $.rel)+'"'),typeof $.href==="string"?(U++,z+=' href="'+$.href+'"'):m1.call($,"href")&&(U++,z+=' href="'+($.href===null?"null":"invalid type "+typeof $.href)+'"'),typeof $.precedence==="string"?(U++,z+=' precedence="'+$.precedence+'"'):m1.call($,"precedence")&&(U++,z+=" precedence={"+($.precedence===null?"null":"invalid type "+typeof $.precedence)+"}"),Object.getOwnPropertyNames($).length>U&&(z+=" ..."),z+" />"}function GX($){return'href="'+A1($)+'"'}function a8($){return'link[rel="stylesheet"]['+$+"]"}function FA($){return c$({},$,{"data-precedence":$.precedence,precedence:null})}function KS($,U,z,Q){$.querySelector('link[rel="preload"][as="style"]['+U+"]")?Q.loading=nY:(U=$.createElement("link"),Q.preload=U,U.addEventListener("load",function(){return Q.loading|=nY}),U.addEventListener("error",function(){return Q.loading|=JE}),B4(U,"link",z),F$(U),$.head.appendChild(U))}function WX($){return'[src="'+A1($)+'"]'}function s8($){return"script[async]"+$}function VA($,U,z){if(U.count++,U.instance===null)switch(U.type){case"style":var Q=$.querySelector('style[data-href~="'+A1(z.href)+'"]');if(Q)return U.instance=Q,F$(Q),Q;var H=c$({},z,{"data-href":z.href,"data-precedence":z.precedence,href:null,precedence:null});return Q=($.ownerDocument||$).createElement("style"),F$(Q),B4(Q,"style",H),HQ(Q,z.precedence,$),U.instance=Q;case"stylesheet":H=GX(z.href);var O=$.querySelector(a8(H));if(O)return U.state.loading|=T1,U.instance=O,F$(O),O;Q=FA(z),(H=b1.get(H))&&pW(Q,H),O=($.ownerDocument||$).createElement("link"),F$(O);var B=O;return B._p=new Promise(function(L,D){B.onload=L,B.onerror=D}),B4(O,"link",Q),U.state.loading|=T1,HQ(O,z.precedence,$),U.instance=O;case"script":if(O=WX(z.src),H=$.querySelector(s8(O)))return U.instance=H,F$(H),H;if(Q=z,H=b1.get(O))Q=c$({},z),oW(Q,H);return $=$.ownerDocument||$,H=$.createElement("script"),F$(H),B4(H,"link",Q),$.head.appendChild(H),U.instance=H;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+U.type+'". this is a bug in React.')}else U.type==="stylesheet"&&(U.state.loading&T1)===jz&&(Q=U.instance,U.state.loading|=T1,HQ(Q,z.precedence,$));return U.instance}function HQ($,U,z){for(var Q=z.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),H=Q.length?Q[Q.length-1]:null,O=H,B=0;B<Q.length;B++){var L=Q[B];if(L.dataset.precedence===U)O=L;else if(O!==H)break}O?O.parentNode.insertBefore($,O.nextSibling):(U=z.nodeType===9?z.head:z,U.insertBefore($,U.firstChild))}function pW($,U){$.crossOrigin==null&&($.crossOrigin=U.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=U.referrerPolicy),$.title==null&&($.title=U.title)}function oW($,U){$.crossOrigin==null&&($.crossOrigin=U.crossOrigin),$.referrerPolicy==null&&($.referrerPolicy=U.referrerPolicy),$.integrity==null&&($.integrity=U.integrity)}function EA($,U,z){if(K7===null){var Q=new Map,H=K7=new Map;H.set(z,Q)}else H=K7,Q=H.get(z),Q||(Q=new Map,H.set(z,Q));if(Q.has($))return Q;Q.set($,null),z=z.getElementsByTagName($);for(H=0;H<z.length;H++){var O=z[H];if(!(O[zY]||O[q4]||$==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!==KX){var B=O.getAttribute(U)||"";B=$+B;var L=Q.get(B);L?L.push(O):Q.set(B,[O])}}return Q}function MA($,U,z){$=$.ownerDocument||$,$.head.insertBefore(z,U==="title"?$.querySelector("head > title"):null)}function DS($,U,z){var Q=!z.ancestorInfo.containerTagInScope;if(z.context===dX||U.itemProp!=null)return!Q||U.itemProp==null||$!=="meta"&&$!=="title"&&$!=="style"&&$!=="link"&&$!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",$,$),!1;switch($){case"meta":case"title":return!0;case"style":if(typeof U.precedence!=="string"||typeof U.href!=="string"||U.href===""){Q&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof U.rel!=="string"||typeof U.href!=="string"||U.href===""||U.onLoad||U.onError){if(U.rel==="stylesheet"&&typeof U.precedence==="string"){$=U.href;var{onError:H,disabled:O}=U;z=[],U.onLoad&&z.push("`onLoad`"),H&&z.push("`onError`"),O!=null&&z.push("`disabled`"),H=pZ(z,"and"),H+=z.length===1?" prop":" props",O=z.length===1?"an "+H:"the "+H,z.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',$,O,H)}Q&&(typeof U.rel!=="string"||typeof U.href!=="string"||U.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(U.onError||U.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(U.rel){case"stylesheet":return $=U.precedence,U=U.disabled,typeof $!=="string"&&Q&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof $==="string"&&U==null;default:return!0}case"script":if($=U.async&&typeof U.async!=="function"&&typeof U.async!=="symbol",!$||U.onLoad||U.onError||!U.src||typeof U.src!=="string"){Q&&($?U.onLoad||U.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":Q&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",$)}return!1}function RA($){return $.type==="stylesheet"&&($.state.loading&QE)===jz?!1:!0}function jS($,U,z,Q){if(z.type==="stylesheet"&&(typeof Q.media!=="string"||matchMedia(Q.media).matches!==!1)&&(z.state.loading&T1)===jz){if(z.instance===null){var H=GX(Q.href),O=U.querySelector(a8(H));if(O){U=O._p,U!==null&&typeof U==="object"&&typeof U.then==="function"&&($.count++,$=OQ.bind($),U.then($,$)),z.state.loading|=T1,z.instance=O,F$(O);return}O=U.ownerDocument||U,Q=FA(Q),(H=b1.get(H))&&pW(Q,H),O=O.createElement("link"),F$(O);var B=O;B._p=new Promise(function(L,D){B.onload=L,B.onerror=D}),B4(O,"link",Q),z.instance=O}$.stylesheets===null&&($.stylesheets=new Map),$.stylesheets.set(z,U),(U=z.state.preload)&&(z.state.loading&QE)===jz&&($.count++,z=OQ.bind($),U.addEventListener("load",z),U.addEventListener("error",z))}}function AS($,U){return $.stylesheets&&$.count===0&&NQ($,$.stylesheets),0<$.count||0<$.imgCount?function(z){var Q=setTimeout(function(){if($.stylesheets&&NQ($,$.stylesheets),$.unsuspend){var O=$.unsuspend;$.unsuspend=null,O()}},Bb+U);0<$.imgBytes&&_O===0&&(_O=125*oZ()*Lb);var H=setTimeout(function(){if($.waitingForImages=!1,$.count===0&&($.stylesheets&&NQ($,$.stylesheets),$.unsuspend)){var O=$.unsuspend;$.unsuspend=null,O()}},($.imgBytes>_O?50:qb)+U);return $.unsuspend=z,function(){$.unsuspend=null,clearTimeout(Q),clearTimeout(H)}}:null}function OQ(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)NQ(this,this.stylesheets);else if(this.unsuspend){var $=this.unsuspend;this.unsuspend=null,$()}}}function NQ($,U){$.stylesheets=null,$.unsuspend!==null&&($.count++,D7=new Map,U.forEach(FS,$),D7=null,OQ.call($))}function FS($,U){if(!(U.state.loading&T1)){var z=D7.get($);if(z)var Q=z.get(PO);else{z=new Map,D7.set($,z);for(var H=$.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<H.length;O++){var B=H[O];if(B.nodeName==="LINK"||B.getAttribute("media")!=="not all")z.set(B.dataset.precedence,B),Q=B}Q&&z.set(PO,Q)}H=U.instance,B=H.getAttribute("data-precedence"),O=z.get(B)||Q,O===Q&&z.set(PO,H),z.set(B,H),this.count++,Q=OQ.bind(this),H.addEventListener("load",Q),H.addEventListener("error",Q),O?O.parentNode.insertBefore(H,O.nextSibling):($=$.nodeType===9?$.head:$,$.insertBefore(H,$.firstChild)),U.state.loading|=T1}}function VS($,U,z,Q,H,O,B,L,D){this.tag=1,this.containerInfo=$,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Dz,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=dz(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dz(0),this.hiddenUpdates=dz(null),this.identifierPrefix=Q,this.onUncaughtError=H,this.onCaughtError=O,this.onRecoverableError=B,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,$=this.pendingUpdatersLaneMap=[];for(U=0;31>U;U++)$.push(new Set);this._debugRootType=z?"hydrateRoot()":"createRoot()"}function IA($,U,z,Q,H,O,B,L,D,F,T,b){return $=new VS($,U,z,B,D,F,T,b,L),U=uT,O===!0&&(U|=A4|i1),U|=x$,O=Z(3,null,null,U),$.current=O,O.stateNode=$,U=EG(),lw(U),$.pooledCache=U,lw(U),O.memoizedState={element:Q,isDehydrated:z,cache:U},PG(O),$}function _A($){if(!$)return sU;return $=sU,$}function rW($,U,z,Q,H,O){if(j4&&typeof j4.onScheduleFiberRoot==="function")try{j4.onScheduleFiberRoot(qX,Q,z)}catch(B){V0||(V0=!0,console.error("React instrumentation encountered an error: %o",B))}H=_A(H),Q.context===null?Q.context=H:Q.pendingContext=H,F0&&Y1!==null&&!NE&&(NE=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
183
|
+
|
|
184
|
+
Check the render method of %s.`,r(Y1)||"Unknown")),Q=yU(U),Q.payload={element:z},O=O===void 0?null:O,O!==null&&(typeof O!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",O),Q.callback=O),z=fU($,Q,U),z!==null&&(Y0(U,"root.render()",null),f6(z,$,U),b8(z,$,U))}function PA($,U){if($=$.memoizedState,$!==null&&$.dehydrated!==null){var z=$.retryLane;$.retryLane=z!==0&&z<U?z:U}}function tW($,U){PA($,U),($=$.alternate)&&PA($,U)}function vA($){if($.tag===13||$.tag===31){var U=D4($,67108864);U!==null&&f6(U,$,67108864),tW($,67108864)}}function ZA($){if($.tag===13||$.tag===31){var U=w1($);U=xw(U);var z=D4($,U);z!==null&&f6(z,$,U),tW($,U)}}function ES(){return Y1}function MS($,U,z,Q){var H=u.T;u.T=null;var O=Y6.p;try{Y6.p=J1,aW($,U,z,Q)}finally{Y6.p=O,u.T=H}}function RS($,U,z,Q){var H=u.T;u.T=null;var O=Y6.p;try{Y6.p=c1,aW($,U,z,Q)}finally{Y6.p=O,u.T=H}}function aW($,U,z,Q){if(A7){var H=sW(Q);if(H===null)gW($,U,Q,F7,z),TA($,Q);else if(IS(H,$,U,z,Q))Q.stopPropagation();else if(TA($,Q),U&4&&-1<Db.indexOf($)){for(;H!==null;){var O=S$(H);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var B=U0(O.pendingLanes);if(B!==0){var L=O;L.pendingLanes|=2;for(L.entangledLanes|=2;B;){var D=1<<31-E4(B);L.entanglements[1]|=D,B&=~D}K0(O),(s$&(z4|H1))===H4&&(w7=Q4()+uV,d8(0,!1))}}break;case 31:case 13:L=D4(O,2),L!==null&&f6(L,O,2),YX(),tW(O,2)}if(O=sW(Q),O===null&&gW($,U,Q,F7,z),O===H)break;H=O}H!==null&&Q.stopPropagation()}else gW($,U,Q,null,z)}}function sW($){return $=XG($),eW($)}function eW($){if(F7=null,$=B$($),$!==null){var U=k($);if(U===null)$=null;else{var z=U.tag;if(z===13){if($=C(U),$!==null)return $;$=null}else if(z===31){if($=R(U),$!==null)return $;$=null}else if(z===3){if(U.stateNode.current.memoizedState.isDehydrated)return U.tag===3?U.stateNode.containerInfo:null;$=null}else U!==$&&($=null)}}return F7=$,null}function SA($){switch($){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return J1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return c1;case"message":switch(kS()){case NH:return J1;case BH:return c1;case BX:case xS:return M0;case qH:return EQ;default:return M0}default:return M0}}function TA($,U){switch($){case"focusin":case"focusout":Lw=null;break;case"dragenter":case"dragleave":Kw=null;break;case"mouseover":case"mouseout":Dw=null;break;case"pointerover":case"pointerout":pY.delete(U.pointerId);break;case"gotpointercapture":case"lostpointercapture":oY.delete(U.pointerId)}}function e8($,U,z,Q,H,O){if($===null||$.nativeEvent!==O)return $={blockedOn:U,domEventName:z,eventSystemFlags:Q,nativeEvent:O,targetContainers:[H]},U!==null&&(U=S$(U),U!==null&&vA(U)),$;return $.eventSystemFlags|=Q,U=$.targetContainers,H!==null&&U.indexOf(H)===-1&&U.push(H),$}function IS($,U,z,Q,H){switch(U){case"focusin":return Lw=e8(Lw,$,U,z,Q,H),!0;case"dragenter":return Kw=e8(Kw,$,U,z,Q,H),!0;case"mouseover":return Dw=e8(Dw,$,U,z,Q,H),!0;case"pointerover":var O=H.pointerId;return pY.set(O,e8(pY.get(O)||null,$,U,z,Q,H)),!0;case"gotpointercapture":return O=H.pointerId,oY.set(O,e8(oY.get(O)||null,$,U,z,Q,H)),!0}return!1}function bA($){var U=B$($.target);if(U!==null){var z=k(U);if(z!==null){if(U=z.tag,U===13){if(U=C(z),U!==null){$.blockedOn=U,t($.priority,function(){ZA(z)});return}}else if(U===31){if(U=R(z),U!==null){$.blockedOn=U,t($.priority,function(){ZA(z)});return}}else if(U===3&&z.stateNode.current.memoizedState.isDehydrated){$.blockedOn=z.tag===3?z.stateNode.containerInfo:null;return}}}$.blockedOn=null}function BQ($){if($.blockedOn!==null)return!1;for(var U=$.targetContainers;0<U.length;){var z=sW($.nativeEvent);if(z===null){z=$.nativeEvent;var Q=new z.constructor(z.type,z),H=Q;XY!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),XY=H,z.target.dispatchEvent(Q),XY===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),XY=null}else return U=S$(z),U!==null&&vA(U),$.blockedOn=z,!1;U.shift()}return!0}function CA($,U,z){BQ($)&&z.delete(U)}function _S(){vO=!1,Lw!==null&&BQ(Lw)&&(Lw=null),Kw!==null&&BQ(Kw)&&(Kw=null),Dw!==null&&BQ(Dw)&&(Dw=null),pY.forEach(CA),oY.forEach(CA)}function qQ($,U){$.blockedOn===U&&($.blockedOn=null,vO||(vO=!0,U6.unstable_scheduleCallback(U6.unstable_NormalPriority,_S)))}function kA($){V7!==$&&(V7=$,U6.unstable_scheduleCallback(U6.unstable_NormalPriority,function(){V7===$&&(V7=null);for(var U=0;U<$.length;U+=3){var z=$[U],Q=$[U+1],H=$[U+2];if(typeof Q!=="function")if(eW(Q||z)===null)continue;else break;var O=S$(z);O!==null&&($.splice(U,3),U-=3,z={pending:!0,data:H,method:z.method,action:Q},Object.freeze(z),eG(O,z,Q,H))}}))}function HX($){function U(D){return qQ(D,$)}Lw!==null&&qQ(Lw,$),Kw!==null&&qQ(Kw,$),Dw!==null&&qQ(Dw,$),pY.forEach(U),oY.forEach(U);for(var z=0;z<jw.length;z++){var Q=jw[z];Q.blockedOn===$&&(Q.blockedOn=null)}for(;0<jw.length&&(z=jw[0],z.blockedOn===null);)bA(z),z.blockedOn===null&&jw.shift();if(z=($.ownerDocument||$).$$reactFormReplay,z!=null)for(Q=0;Q<z.length;Q+=3){var H=z[Q],O=z[Q+1],B=H[M4]||null;if(typeof O==="function")B||kA(z);else if(B){var L=null;if(O&&O.hasAttribute("formAction")){if(H=O,B=O[M4]||null)L=B.formAction;else if(eW(H)!==null)continue}else L=B.action;typeof L==="function"?z[Q+1]=L:(z.splice(Q,3),Q-=3),kA(z)}}}function xA(){function $(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function(B){return H=B})},focusReset:"manual",scroll:"manual"})}function U(){H!==null&&(H(),H=null),Q||setTimeout(z,20)}function z(){if(!Q&&!navigation.transition){var O=navigation.currentEntry;O&&O.url!=null&&navigation.navigate(O.url,{state:O.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var Q=!1,H=null;return navigation.addEventListener("navigate",$),navigation.addEventListener("navigatesuccess",U),navigation.addEventListener("navigateerror",U),setTimeout(z,100),function(){Q=!0,navigation.removeEventListener("navigate",$),navigation.removeEventListener("navigatesuccess",U),navigation.removeEventListener("navigateerror",U),H!==null&&(H(),H=null)}}}function $H($){this._internalRoot=$}function LQ($){this._internalRoot=$}function gA($){$[oU]&&($._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c$=Object.assign,PS=Symbol.for("react.element"),j0=Symbol.for("react.transitional.element"),OX=Symbol.for("react.portal"),NX=Symbol.for("react.fragment"),KQ=Symbol.for("react.strict_mode"),UH=Symbol.for("react.profiler"),wH=Symbol.for("react.consumer"),A0=Symbol.for("react.context"),$Y=Symbol.for("react.forward_ref"),zH=Symbol.for("react.suspense"),XH=Symbol.for("react.suspense_list"),DQ=Symbol.for("react.memo"),X1=Symbol.for("react.lazy"),YH=Symbol.for("react.activity"),vS=Symbol.for("react.memo_cache_sentinel"),yA=Symbol.iterator,ZS=Symbol.for("react.client.reference"),U4=Array.isArray,u=oX.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y6=TO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,SS=Object.freeze({pending:!1,data:null,method:null,action:null}),JH=[],QH=[],o0=-1,nU=Q6(null),UY=Q6(null),dU=Q6(null),jQ=Q6(null),wY=0,fA,hA,uA,mA,cA,iA,lA;n.__reactDisabledLog=!0;var GH,nA,WH=!1,HH=new(typeof WeakMap==="function"?WeakMap:Map),Y1=null,F0=!1,m1=Object.prototype.hasOwnProperty,OH=U6.unstable_scheduleCallback,TS=U6.unstable_cancelCallback,bS=U6.unstable_shouldYield,CS=U6.unstable_requestPaint,Q4=U6.unstable_now,kS=U6.unstable_getCurrentPriorityLevel,NH=U6.unstable_ImmediatePriority,BH=U6.unstable_UserBlockingPriority,BX=U6.unstable_NormalPriority,xS=U6.unstable_LowPriority,qH=U6.unstable_IdlePriority,gS=U6.log,yS=U6.unstable_setDisableYieldValue,qX=null,j4=null,V0=!1,E0=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",E4=Math.clz32?Math.clz32:J9,fS=Math.log,hS=Math.LN2,AQ=256,FQ=262144,VQ=4194304,J1=2,c1=8,M0=32,EQ=268435456,pU=Math.random().toString(36).slice(2),q4="__reactFiber$"+pU,M4="__reactProps$"+pU,oU="__reactContainer$"+pU,LH="__reactEvents$"+pU,uS="__reactListeners$"+pU,mS="__reactHandles$"+pU,dA="__reactResources$"+pU,zY="__reactMarker$"+pU,pA=new Set,aw={},KH={},cS={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},iS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),oA={},rA={},lS=/[\n"\\]/g,tA=!1,aA=!1,sA=!1,eA=!1,$F=!1,UF=!1,wF=["value","defaultValue"],zF=!1,XF=/["'&<>\n\t]|^\s|\s$/,nS="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),YF="applet caption html table td th marquee object template foreignObject desc title".split(" "),dS=YF.concat(["button"]),pS="dd dt li option optgroup p rp rt".split(" "),JF={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},MQ={},DH={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},QF=/([A-Z])/g,GF=/^ms-/,oS=/^(?:webkit|moz|o)[A-Z]/,rS=/^-ms-/,tS=/-(.)/g,WF=/;\s*$/,LX={},jH={},HF=!1,OF=!1,NF=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),RQ="http://www.w3.org/1998/Math/MathML",KX="http://www.w3.org/2000/svg",aS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),IQ={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},BF={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},DX={},sS=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),eS=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),qF=!1,R4={},LF=/^on./,$T=/^on[^A-Z]/,UT=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wT=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zT=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,XY=null,jX=null,AX=null,AH=!1,R0=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),FH=!1;if(R0)try{var YY={};Object.defineProperty(YY,"passive",{get:function(){FH=!0}}),window.addEventListener("test",YY,YY),window.removeEventListener("test",YY,YY)}catch($){FH=!1}var rU=null,VH=null,_Q=null,sw={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function($){return $.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},PQ=g4(sw),JY=c$({},sw,{view:0,detail:0}),XT=g4(JY),EH,MH,QY,vQ=c$({},JY,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:YG,button:0,buttons:0,relatedTarget:function($){return $.relatedTarget===void 0?$.fromElement===$.srcElement?$.toElement:$.fromElement:$.relatedTarget},movementX:function($){if("movementX"in $)return $.movementX;return $!==QY&&(QY&&$.type==="mousemove"?(EH=$.screenX-QY.screenX,MH=$.screenY-QY.screenY):MH=EH=0,QY=$),EH},movementY:function($){return"movementY"in $?$.movementY:MH}}),KF=g4(vQ),YT=c$({},vQ,{dataTransfer:0}),JT=g4(YT),QT=c$({},JY,{relatedTarget:0}),RH=g4(QT),GT=c$({},sw,{animationName:0,elapsedTime:0,pseudoElement:0}),WT=g4(GT),HT=c$({},sw,{clipboardData:function($){return"clipboardData"in $?$.clipboardData:window.clipboardData}}),OT=g4(HT),NT=c$({},sw,{data:0}),DF=g4(NT),BT=DF,qT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},KT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},DT=c$({},JY,{key:function($){if($.key){var U=qT[$.key]||$.key;if(U!=="Unidentified")return U}return $.type==="keypress"?($=B9($),$===13?"Enter":String.fromCharCode($)):$.type==="keydown"||$.type==="keyup"?LT[$.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:YG,charCode:function($){return $.type==="keypress"?B9($):0},keyCode:function($){return $.type==="keydown"||$.type==="keyup"?$.keyCode:0},which:function($){return $.type==="keypress"?B9($):$.type==="keydown"||$.type==="keyup"?$.keyCode:0}}),jT=g4(DT),AT=c$({},vQ,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jF=g4(AT),FT=c$({},JY,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:YG}),VT=g4(FT),ET=c$({},sw,{propertyName:0,elapsedTime:0,pseudoElement:0}),MT=g4(ET),RT=c$({},vQ,{deltaX:function($){return"deltaX"in $?$.deltaX:("wheelDeltaX"in $)?-$.wheelDeltaX:0},deltaY:function($){return"deltaY"in $?$.deltaY:("wheelDeltaY"in $)?-$.wheelDeltaY:("wheelDelta"in $)?-$.wheelDelta:0},deltaZ:0,deltaMode:0}),IT=g4(RT),_T=c$({},sw,{newState:0,oldState:0}),PT=g4(_T),vT=[9,13,27,32],AF=229,IH=R0&&"CompositionEvent"in window,GY=null;R0&&"documentMode"in document&&(GY=document.documentMode);var ZT=R0&&"TextEvent"in window&&!GY,FF=R0&&(!IH||GY&&8<GY&&11>=GY),VF=32,EF=String.fromCharCode(VF),MF=!1,FX=!1,ST={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},WY=null,HY=null,RF=!1;R0&&(RF=av("input")&&(!document.documentMode||9<document.documentMode));var I4=typeof Object.is==="function"?Object.is:zZ,TT=R0&&"documentMode"in document&&11>=document.documentMode,VX=null,_H=null,OY=null,PH=!1,EX={animationend:yw("Animation","AnimationEnd"),animationiteration:yw("Animation","AnimationIteration"),animationstart:yw("Animation","AnimationStart"),transitionrun:yw("Transition","TransitionRun"),transitionstart:yw("Transition","TransitionStart"),transitioncancel:yw("Transition","TransitionCancel"),transitionend:yw("Transition","TransitionEnd")},vH={},IF={};R0&&(IF=document.createElement("div").style,("AnimationEvent"in window)||(delete EX.animationend.animation,delete EX.animationiteration.animation,delete EX.animationstart.animation),("TransitionEvent"in window)||delete EX.transitionend.transition);var _F=fw("animationend"),PF=fw("animationiteration"),vF=fw("animationstart"),bT=fw("transitionrun"),CT=fw("transitionstart"),kT=fw("transitioncancel"),ZF=fw("transitionend"),SF=new Map,ZH="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ZH.push("scrollEnd");var TF=0;if(typeof performance==="object"&&typeof performance.now==="function")var xT=performance,bF=function(){return xT.now()};else{var gT=Date;bF=function(){return gT.now()}}var SH=typeof reportError==="function"?reportError:function($){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $==="object"&&$!==null&&typeof $.message==="string"?String($.message):String($),error:$});if(!window.dispatchEvent(U))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",$);return}console.error($)},yT="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",ZQ=0,TH=1,bH=2,CH=3,SQ="– ",TQ="+ ",CF=" ",P6=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",V1="Components ⚛",i$="Scheduler ⚛",l$="Blocking",tU=!1,r0={color:"primary",properties:null,tooltipText:"",track:V1},aU={start:-0,end:-0,detail:{devtools:r0}},fT=["Changed Props",""],kF="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",hT=["Changed Props",kF],NY=1,t0=2,E1=[],MX=0,kH=0,sU={};Object.freeze(sU);var M1=null,RX=null,I$=0,uT=1,x$=2,A4=8,i1=16,mT=32,xF=!1;try{var gF=Object.preventExtensions({})}catch($){xF=!0}var xH=new WeakMap,IX=[],_X=0,bQ=null,BY=0,R1=[],I1=0,ew=null,a0=1,s0="",L4=null,v6=null,d$=!1,I0=!1,Q1=null,eU=null,_1=!1,gH=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),yH=Q6(null),fH=Q6(null),yF={},CQ=null,PX=null,vX=!1,cT=typeof AbortController<"u"?AbortController:function(){var $=[],U=this.signal={aborted:!1,addEventListener:function(z,Q){$.push(Q)}};this.abort=function(){U.aborted=!0,$.forEach(function(z){return z()})}},iT=U6.unstable_scheduleCallback,lT=U6.unstable_NormalPriority,p6={$$typeof:A0,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},o6=U6.unstable_now,kQ=console.createTask?console.createTask:function(){return null},qY=1,xQ=2,G4=-0,$w=-0,e0=-0,$U=null,_4=-1.1,$z=-0,x6=-0,V$=-1.1,M$=-1.1,b6=null,h6=!1,Uw=-0,_0=-1.1,LY=null,ww=0,hH=null,uH=null,Uz=-1.1,KY=null,ZX=-1.1,gQ=-1.1,P0=-0,UU=-1.1,P1=-1.1,mH=0,DY=null,fF=null,hF=null,zw=-1.1,wz=null,Xw=-1.1,yQ=-1.1,uF=-0,mF=-0,fQ=0,wU=null,cF=0,jY=-1.1,hQ=!1,uQ=!1,AY=null,cH=0,zz=0,SX=null,iF=u.S;u.S=function($,U){if(fV=Q4(),typeof U==="object"&&U!==null&&typeof U.then==="function"){if(0>UU&&0>P1){UU=o6();var z=r8(),Q=o8();if(z!==Xw||Q!==wz)Xw=-1.1;zw=z,wz=Q}HZ($,U)}iF!==null&&iF($,U)};var Xz=Q6(null),l1={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},FY=[],VY=[],EY=[],MY=[],RY=[],IY=[],Yz=new Set;l1.recordUnsafeLifecycleWarnings=function($,U){Yz.has($.type)||(typeof U.componentWillMount==="function"&&U.componentWillMount.__suppressDeprecationWarning!==!0&&FY.push($),$.mode&A4&&typeof U.UNSAFE_componentWillMount==="function"&&VY.push($),typeof U.componentWillReceiveProps==="function"&&U.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&EY.push($),$.mode&A4&&typeof U.UNSAFE_componentWillReceiveProps==="function"&&MY.push($),typeof U.componentWillUpdate==="function"&&U.componentWillUpdate.__suppressDeprecationWarning!==!0&&RY.push($),$.mode&A4&&typeof U.UNSAFE_componentWillUpdate==="function"&&IY.push($))},l1.flushPendingUnsafeLifecycleWarnings=function(){var $=new Set;0<FY.length&&(FY.forEach(function(L){$.add(r(L)||"Component"),Yz.add(L.type)}),FY=[]);var U=new Set;0<VY.length&&(VY.forEach(function(L){U.add(r(L)||"Component"),Yz.add(L.type)}),VY=[]);var z=new Set;0<EY.length&&(EY.forEach(function(L){z.add(r(L)||"Component"),Yz.add(L.type)}),EY=[]);var Q=new Set;0<MY.length&&(MY.forEach(function(L){Q.add(r(L)||"Component"),Yz.add(L.type)}),MY=[]);var H=new Set;0<RY.length&&(RY.forEach(function(L){H.add(r(L)||"Component"),Yz.add(L.type)}),RY=[]);var O=new Set;if(0<IY.length&&(IY.forEach(function(L){O.add(r(L)||"Component"),Yz.add(L.type)}),IY=[]),0<U.size){var B=M(U);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
185
|
+
|
|
186
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
187
|
+
|
|
188
|
+
Please update the following components: %s`,B)}0<Q.size&&(B=M(Q),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
|
+
|
|
190
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
|
+
|
|
193
|
+
Please update the following components: %s`,B)),0<O.size&&(B=M(O),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
|
+
|
|
195
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
|
+
|
|
197
|
+
Please update the following components: %s`,B)),0<$.size&&(B=M($),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
|
+
|
|
199
|
+
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
|
+
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
201
|
+
|
|
202
|
+
Please update the following components: %s`,B)),0<z.size&&(B=M(z),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
|
+
|
|
204
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
|
+
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
|
+
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
207
|
+
|
|
208
|
+
Please update the following components: %s`,B)),0<H.size&&(B=M(H),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
|
+
|
|
210
|
+
* Move data fetching code or side effects to componentDidUpdate.
|
|
211
|
+
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
212
|
+
|
|
213
|
+
Please update the following components: %s`,B))};var mQ=new Map,lF=new Set;l1.recordLegacyContextWarning=function($,U){var z=null;for(var Q=$;Q!==null;)Q.mode&A4&&(z=Q),Q=Q.return;z===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!lF.has($.type)&&(Q=mQ.get(z),$.type.contextTypes!=null||$.type.childContextTypes!=null||U!==null&&typeof U.getChildContext==="function")&&(Q===void 0&&(Q=[],mQ.set(z,Q)),Q.push($))},l1.flushLegacyContextWarning=function(){mQ.forEach(function($){if($.length!==0){var U=$[0],z=new Set;$.forEach(function(H){z.add(r(H)||"Component"),lF.add(H.type)});var Q=M(z);O$(U,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
214
|
+
|
|
215
|
+
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
216
|
+
|
|
217
|
+
Please update the following components: %s
|
|
218
|
+
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,Q)})}})},l1.discardPendingWarnings=function(){FY=[],VY=[],EY=[],MY=[],RY=[],IY=[],mQ=new Map};var nF={react_stack_bottom_frame:function($,U,z){var Q=F0;F0=!0;try{return $(U,z)}finally{F0=Q}}},iH=nF.react_stack_bottom_frame.bind(nF),dF={react_stack_bottom_frame:function($){var U=F0;F0=!0;try{return $.render()}finally{F0=U}}},pF=dF.react_stack_bottom_frame.bind(dF),oF={react_stack_bottom_frame:function($,U){try{U.componentDidMount()}catch(z){X6($,$.return,z)}}},lH=oF.react_stack_bottom_frame.bind(oF),rF={react_stack_bottom_frame:function($,U,z,Q,H){try{U.componentDidUpdate(z,Q,H)}catch(O){X6($,$.return,O)}}},tF=rF.react_stack_bottom_frame.bind(rF),aF={react_stack_bottom_frame:function($,U){var z=U.stack;$.componentDidCatch(U.value,{componentStack:z!==null?z:""})}},nT=aF.react_stack_bottom_frame.bind(aF),sF={react_stack_bottom_frame:function($,U,z){try{z.componentWillUnmount()}catch(Q){X6($,U,Q)}}},eF=sF.react_stack_bottom_frame.bind(sF),$V={react_stack_bottom_frame:function($){var U=$.create;return $=$.inst,U=U(),$.destroy=U}},dT=$V.react_stack_bottom_frame.bind($V),UV={react_stack_bottom_frame:function($,U,z){try{z()}catch(Q){X6($,U,Q)}}},pT=UV.react_stack_bottom_frame.bind(UV),wV={react_stack_bottom_frame:function($){var U=$._init;return U($._payload)}},oT=wV.react_stack_bottom_frame.bind(wV),TX=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),nH=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),cQ=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),iQ={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Jz=null,_Y=!1,bX=null,PY=0,g$=null,dH,zV=dH=!1,XV={},YV={},JV={};E=function($,U,z){if(z!==null&&typeof z==="object"&&z._store&&(!z._store.validated&&z.key==null||z._store.validated===2)){if(typeof z._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");z._store.validated=1;var Q=r($),H=Q||"null";if(!XV[H]){XV[H]=!0,z=z._owner,$=$._debugOwner;var O="";$&&typeof $.tag==="number"&&(H=r($))&&(O=`
|
|
220
|
+
|
|
221
|
+
Check the render method of \``+H+"`."),O||Q&&(O=`
|
|
222
|
+
|
|
223
|
+
Check the top-level render call using <`+Q+">.");var B="";z!=null&&$!==z&&(Q=null,typeof z.tag==="number"?Q=r(z):typeof z.name==="string"&&(Q=z.name),Q&&(B=" It was passed a child from "+Q+".")),O$(U,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',O,B)})}}};var Qz=s2(!0),QV=s2(!1),GV=0,WV=1,HV=2,pH=3,Yw=!1,OV=!1,oH=null,rH=!1,CX=Q6(null),lQ=Q6(0),G1=Q6(null),v1=null,kX=1,vY=2,n6=Q6(0),nQ=0,Z1=1,P4=2,W1=4,v4=8,xX,NV=new Set,BV=new Set,tH=new Set,qV=new Set,zU=0,P$=null,V6=null,r6=null,dQ=!1,gX=!1,Gz=!1,pQ=0,ZY=0,XU=null,rT=0,tT=25,h=null,S1=null,YU=-1,SY=!1,TY={readContext:T6,use:mU,useCallback:m6,useContext:m6,useEffect:m6,useImperativeHandle:m6,useLayoutEffect:m6,useInsertionEffect:m6,useMemo:m6,useReducer:m6,useRef:m6,useState:m6,useDebugValue:m6,useDeferredValue:m6,useTransition:m6,useSyncExternalStore:m6,useId:m6,useHostTransitionStatus:m6,useFormState:m6,useActionState:m6,useOptimistic:m6,useMemoCache:m6,useCacheRefresh:m6};TY.useEffectEvent=m6;var aH=null,LV=null,sH=null,KV=null,v0=null,n1=null,oQ=null;aH={readContext:function($){return T6($)},use:mU,useCallback:function($,U){return h="useCallback",m$(),sz(U),rG($,U)},useContext:function($){return h="useContext",m$(),T6($)},useEffect:function($,U){return h="useEffect",m$(),sz(U),m9($,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",m$(),sz(z),oG($,U,z)},useInsertionEffect:function($,U){h="useInsertionEffect",m$(),sz(U),dw(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",m$(),sz(U),pG($,U)},useMemo:function($,U){h="useMemo",m$(),sz(U);var z=u.H;u.H=v0;try{return tG($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",m$();var Q=u.H;u.H=v0;try{return fG($,U,z)}finally{u.H=Q}},useRef:function($){return h="useRef",m$(),nG($)},useState:function($){h="useState",m$();var U=u.H;u.H=v0;try{return cG($)}finally{u.H=U}},useDebugValue:function(){h="useDebugValue",m$()},useDeferredValue:function($,U){return h="useDeferredValue",m$(),aG($,U)},useTransition:function(){return h="useTransition",m$(),$W()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",m$(),uG($,U,z)},useId:function(){return h="useId",m$(),UW()},useFormState:function($,U){return h="useFormState",m$(),g9(),$X($,U)},useActionState:function($,U){return h="useActionState",m$(),$X($,U)},useOptimistic:function($){return h="useOptimistic",m$(),iG($)},useHostTransitionStatus:pw,useMemoCache:nw,useCacheRefresh:function(){return h="useCacheRefresh",m$(),wW()},useEffectEvent:function($){return h="useEffectEvent",m$(),dG($)}},LV={readContext:function($){return T6($)},use:mU,useCallback:function($,U){return h="useCallback",d(),rG($,U)},useContext:function($){return h="useContext",d(),T6($)},useEffect:function($,U){return h="useEffect",d(),m9($,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",d(),oG($,U,z)},useInsertionEffect:function($,U){h="useInsertionEffect",d(),dw(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",d(),pG($,U)},useMemo:function($,U){h="useMemo",d();var z=u.H;u.H=v0;try{return tG($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",d();var Q=u.H;u.H=v0;try{return fG($,U,z)}finally{u.H=Q}},useRef:function($){return h="useRef",d(),nG($)},useState:function($){h="useState",d();var U=u.H;u.H=v0;try{return cG($)}finally{u.H=U}},useDebugValue:function(){h="useDebugValue",d()},useDeferredValue:function($,U){return h="useDeferredValue",d(),aG($,U)},useTransition:function(){return h="useTransition",d(),$W()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",d(),uG($,U,z)},useId:function(){return h="useId",d(),UW()},useActionState:function($,U){return h="useActionState",d(),$X($,U)},useFormState:function($,U){return h="useFormState",d(),g9(),$X($,U)},useOptimistic:function($){return h="useOptimistic",d(),iG($)},useHostTransitionStatus:pw,useMemoCache:nw,useCacheRefresh:function(){return h="useCacheRefresh",d(),wW()},useEffectEvent:function($){return h="useEffectEvent",d(),dG($)}},sH={readContext:function($){return T6($)},use:mU,useCallback:function($,U){return h="useCallback",d(),l9($,U)},useContext:function($){return h="useContext",d(),T6($)},useEffect:function($,U){h="useEffect",d(),y4(2048,v4,$,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",d(),i9($,U,z)},useInsertionEffect:function($,U){return h="useInsertionEffect",d(),y4(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",d(),y4(4,W1,$,U)},useMemo:function($,U){h="useMemo",d();var z=u.H;u.H=n1;try{return n9($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",d();var Q=u.H;u.H=n1;try{return ez($,U,z)}finally{u.H=Q}},useRef:function(){return h="useRef",d(),N6().memoizedState},useState:function(){h="useState",d();var $=u.H;u.H=n1;try{return ez(h1)}finally{u.H=$}},useDebugValue:function(){h="useDebugValue",d()},useDeferredValue:function($,U){return h="useDeferredValue",d(),FD($,U)},useTransition:function(){return h="useTransition",d(),_D()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",d(),f9($,U,z)},useId:function(){return h="useId",d(),N6().memoizedState},useFormState:function($){return h="useFormState",d(),g9(),h9($)},useActionState:function($){return h="useActionState",d(),h9($)},useOptimistic:function($,U){return h="useOptimistic",d(),HD($,U)},useHostTransitionStatus:pw,useMemoCache:nw,useCacheRefresh:function(){return h="useCacheRefresh",d(),N6().memoizedState},useEffectEvent:function($){return h="useEffectEvent",d(),c9($)}},KV={readContext:function($){return T6($)},use:mU,useCallback:function($,U){return h="useCallback",d(),l9($,U)},useContext:function($){return h="useContext",d(),T6($)},useEffect:function($,U){h="useEffect",d(),y4(2048,v4,$,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",d(),i9($,U,z)},useInsertionEffect:function($,U){return h="useInsertionEffect",d(),y4(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",d(),y4(4,W1,$,U)},useMemo:function($,U){h="useMemo",d();var z=u.H;u.H=oQ;try{return n9($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",d();var Q=u.H;u.H=oQ;try{return g8($,U,z)}finally{u.H=Q}},useRef:function(){return h="useRef",d(),N6().memoizedState},useState:function(){h="useState",d();var $=u.H;u.H=oQ;try{return g8(h1)}finally{u.H=$}},useDebugValue:function(){h="useDebugValue",d()},useDeferredValue:function($,U){return h="useDeferredValue",d(),VD($,U)},useTransition:function(){return h="useTransition",d(),PD()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",d(),f9($,U,z)},useId:function(){return h="useId",d(),N6().memoizedState},useFormState:function($){return h="useFormState",d(),g9(),u9($)},useActionState:function($){return h="useActionState",d(),u9($)},useOptimistic:function($,U){return h="useOptimistic",d(),ND($,U)},useHostTransitionStatus:pw,useMemoCache:nw,useCacheRefresh:function(){return h="useCacheRefresh",d(),N6().memoizedState},useEffectEvent:function($){return h="useEffectEvent",d(),c9($)}},v0={readContext:function($){return A(),T6($)},use:function($){return K(),mU($)},useCallback:function($,U){return h="useCallback",K(),m$(),rG($,U)},useContext:function($){return h="useContext",K(),m$(),T6($)},useEffect:function($,U){return h="useEffect",K(),m$(),m9($,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",K(),m$(),oG($,U,z)},useInsertionEffect:function($,U){h="useInsertionEffect",K(),m$(),dw(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",K(),m$(),pG($,U)},useMemo:function($,U){h="useMemo",K(),m$();var z=u.H;u.H=v0;try{return tG($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",K(),m$();var Q=u.H;u.H=v0;try{return fG($,U,z)}finally{u.H=Q}},useRef:function($){return h="useRef",K(),m$(),nG($)},useState:function($){h="useState",K(),m$();var U=u.H;u.H=v0;try{return cG($)}finally{u.H=U}},useDebugValue:function(){h="useDebugValue",K(),m$()},useDeferredValue:function($,U){return h="useDeferredValue",K(),m$(),aG($,U)},useTransition:function(){return h="useTransition",K(),m$(),$W()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",K(),m$(),uG($,U,z)},useId:function(){return h="useId",K(),m$(),UW()},useFormState:function($,U){return h="useFormState",K(),m$(),$X($,U)},useActionState:function($,U){return h="useActionState",K(),m$(),$X($,U)},useOptimistic:function($){return h="useOptimistic",K(),m$(),iG($)},useMemoCache:function($){return K(),nw($)},useHostTransitionStatus:pw,useCacheRefresh:function(){return h="useCacheRefresh",m$(),wW()},useEffectEvent:function($){return h="useEffectEvent",K(),m$(),dG($)}},n1={readContext:function($){return A(),T6($)},use:function($){return K(),mU($)},useCallback:function($,U){return h="useCallback",K(),d(),l9($,U)},useContext:function($){return h="useContext",K(),d(),T6($)},useEffect:function($,U){h="useEffect",K(),d(),y4(2048,v4,$,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",K(),d(),i9($,U,z)},useInsertionEffect:function($,U){return h="useInsertionEffect",K(),d(),y4(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",K(),d(),y4(4,W1,$,U)},useMemo:function($,U){h="useMemo",K(),d();var z=u.H;u.H=n1;try{return n9($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",K(),d();var Q=u.H;u.H=n1;try{return ez($,U,z)}finally{u.H=Q}},useRef:function(){return h="useRef",K(),d(),N6().memoizedState},useState:function(){h="useState",K(),d();var $=u.H;u.H=n1;try{return ez(h1)}finally{u.H=$}},useDebugValue:function(){h="useDebugValue",K(),d()},useDeferredValue:function($,U){return h="useDeferredValue",K(),d(),FD($,U)},useTransition:function(){return h="useTransition",K(),d(),_D()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",K(),d(),f9($,U,z)},useId:function(){return h="useId",K(),d(),N6().memoizedState},useFormState:function($){return h="useFormState",K(),d(),h9($)},useActionState:function($){return h="useActionState",K(),d(),h9($)},useOptimistic:function($,U){return h="useOptimistic",K(),d(),HD($,U)},useMemoCache:function($){return K(),nw($)},useHostTransitionStatus:pw,useCacheRefresh:function(){return h="useCacheRefresh",d(),N6().memoizedState},useEffectEvent:function($){return h="useEffectEvent",K(),d(),c9($)}},oQ={readContext:function($){return A(),T6($)},use:function($){return K(),mU($)},useCallback:function($,U){return h="useCallback",K(),d(),l9($,U)},useContext:function($){return h="useContext",K(),d(),T6($)},useEffect:function($,U){h="useEffect",K(),d(),y4(2048,v4,$,U)},useImperativeHandle:function($,U,z){return h="useImperativeHandle",K(),d(),i9($,U,z)},useInsertionEffect:function($,U){return h="useInsertionEffect",K(),d(),y4(4,P4,$,U)},useLayoutEffect:function($,U){return h="useLayoutEffect",K(),d(),y4(4,W1,$,U)},useMemo:function($,U){h="useMemo",K(),d();var z=u.H;u.H=n1;try{return n9($,U)}finally{u.H=z}},useReducer:function($,U,z){h="useReducer",K(),d();var Q=u.H;u.H=n1;try{return g8($,U,z)}finally{u.H=Q}},useRef:function(){return h="useRef",K(),d(),N6().memoizedState},useState:function(){h="useState",K(),d();var $=u.H;u.H=n1;try{return g8(h1)}finally{u.H=$}},useDebugValue:function(){h="useDebugValue",K(),d()},useDeferredValue:function($,U){return h="useDeferredValue",K(),d(),VD($,U)},useTransition:function(){return h="useTransition",K(),d(),PD()},useSyncExternalStore:function($,U,z){return h="useSyncExternalStore",K(),d(),f9($,U,z)},useId:function(){return h="useId",K(),d(),N6().memoizedState},useFormState:function($){return h="useFormState",K(),d(),u9($)},useActionState:function($){return h="useActionState",K(),d(),u9($)},useOptimistic:function($,U){return h="useOptimistic",K(),d(),ND($,U)},useMemoCache:function($){return K(),nw($)},useHostTransitionStatus:pw,useCacheRefresh:function(){return h="useCacheRefresh",d(),N6().memoizedState},useEffectEvent:function($){return h="useEffectEvent",K(),d(),c9($)}};var DV={},jV=new Set,AV=new Set,FV=new Set,VV=new Set,EV=new Set,MV=new Set,RV=new Set,IV=new Set,_V=new Set,PV=new Set;Object.freeze(DV);var eH={enqueueSetState:function($,U,z){$=$._reactInternals;var Q=w1($),H=yU(Q);H.payload=U,z!==void 0&&z!==null&&(XW(z),H.callback=z),U=fU($,H,Q),U!==null&&(Y0(Q,"this.setState()",$),f6(U,$,Q),b8(U,$,Q))},enqueueReplaceState:function($,U,z){$=$._reactInternals;var Q=w1($),H=yU(Q);H.tag=WV,H.payload=U,z!==void 0&&z!==null&&(XW(z),H.callback=z),U=fU($,H,Q),U!==null&&(Y0(Q,"this.replaceState()",$),f6(U,$,Q),b8(U,$,Q))},enqueueForceUpdate:function($,U){$=$._reactInternals;var z=w1($),Q=yU(z);Q.tag=HV,U!==void 0&&U!==null&&(XW(U),Q.callback=U),U=fU($,Q,z),U!==null&&(Y0(z,"this.forceUpdate()",$),f6(U,$,z),b8(U,$,z))}},yX=null,$O=null,UO=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),t6=!1,vV={},ZV={},SV={},TV={},fX=!1,bV={},rQ={},wO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},CV=!1,kV=null;kV=new Set;var JU=!1,a6=!1,zO=!1,xV=typeof WeakSet==="function"?WeakSet:Set,W4=null,hX=null,uX=null,s6=null,u4=!1,d1=null,w4=!1,bY=8192,aT={getCacheForType:function($){var U=T6(p6),z=U.data.get($);return z===void 0&&(z=$(),U.data.set($,z)),z},cacheSignal:function(){return T6(p6).controller.signal},getOwner:function(){return Y1}};if(typeof Symbol==="function"&&Symbol.for){var CY=Symbol.for;CY("selector.component"),CY("selector.has_pseudo_class"),CY("selector.role"),CY("selector.test_id"),CY("selector.text")}var sT=[],eT=typeof WeakMap==="function"?WeakMap:Map,H4=0,z4=2,H1=4,QU=0,kY=1,Wz=2,tQ=3,Jw=4,aQ=6,gV=5,s$=H4,E6=null,h$=null,y$=0,m4=0,sQ=1,Hz=2,xY=3,yV=4,XO=5,gY=6,eQ=7,YO=8,Oz=9,B6=m4,O1=null,Qw=!1,mX=!1,JO=!1,Z0=0,g6=QU,Gw=0,Ww=0,QO=0,c4=0,Nz=0,yY=null,Z4=null,$7=!1,U7=0,fV=0,hV=300,w7=1/0,uV=500,fY=null,c6=null,Hw=null,z7=0,GO=1,WO=2,mV=3,Ow=0,cV=1,iV=2,lV=3,nV=4,X7=5,e6=0,Nw=null,cX=null,p1=0,HO=0,OO=-0,NO=null,dV=null,pV=null,o1=z7,oV=null,$b=50,hY=0,BO=null,qO=!1,Y7=!1,Ub=50,Bz=0,uY=null,iX=!1,J7=null,rV=!1,tV=new Set,wb={},Q7=null,lX=null,LO=!1,KO=!1,G7=!1,DO=!1,Bw=0,jO={};(function(){for(var $=0;$<ZH.length;$++){var U=ZH[$],z=U.toLowerCase();U=U[0].toUpperCase()+U.slice(1),f1(z,"on"+U)}f1(_F,"onAnimationEnd"),f1(PF,"onAnimationIteration"),f1(vF,"onAnimationStart"),f1("dblclick","onDoubleClick"),f1("focusin","onFocus"),f1("focusout","onBlur"),f1(bT,"onTransitionRun"),f1(CT,"onTransitionStart"),f1(kT,"onTransitionCancel"),f1(ZF,"onTransitionEnd")})(),r4("onMouseEnter",["mouseout","mouseover"]),r4("onMouseLeave",["mouseout","mouseover"]),r4("onPointerEnter",["pointerout","pointerover"]),r4("onPointerLeave",["pointerout","pointerover"]),K4("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),K4("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),K4("onBeforeInput",["compositionend","keypress","textInput","paste"]),K4("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),K4("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),K4("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mY="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),AO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mY)),W7="_reactListening"+Math.random().toString(36).slice(2),aV=!1,sV=!1,H7=!1,eV=!1,O7=!1,N7=!1,$E=!1,B7={},zb=/\r\n?/g,Xb=/\u0000|\uFFFD/g,qz="http://www.w3.org/1999/xlink",FO="http://www.w3.org/XML/1998/namespace",Yb="javascript:throw new Error('React form unexpectedly submitted.')",Jb="suppressHydrationWarning",Lz="&",q7="/&",cY="$",iY="/$",qw="$?",Kz="$~",nX="$!",Qb="html",Gb="body",Wb="head",VO="F!",UE="F",wE="loading",Hb="style",GU=0,dX=1,L7=2,EO=null,MO=null,zE={dialog:!0,webview:!0},RO=null,lY=void 0,XE=typeof setTimeout==="function"?setTimeout:void 0,Ob=typeof clearTimeout==="function"?clearTimeout:void 0,Dz=-1,YE=typeof Promise==="function"?Promise:void 0,Nb=typeof queueMicrotask==="function"?queueMicrotask:typeof YE<"u"?function($){return YE.resolve(null).then($).catch(tZ)}:XE,IO=null,jz=0,nY=1,JE=2,QE=3,T1=4,b1=new Map,GE=new Set,WU=Y6.d;Y6.d={f:function(){var $=WU.f(),U=YX();return $||U},r:function($){var U=S$($);U!==null&&U.tag===5&&U.type==="form"?ID(U):WU.r($)},D:function($){WU.D($),jA("dns-prefetch",$,null)},C:function($,U){WU.C($,U),jA("preconnect",$,U)},L:function($,U,z){WU.L($,U,z);var Q=pX;if(Q&&$&&U){var H='link[rel="preload"][as="'+A1(U)+'"]';U==="image"?z&&z.imageSrcSet?(H+='[imagesrcset="'+A1(z.imageSrcSet)+'"]',typeof z.imageSizes==="string"&&(H+='[imagesizes="'+A1(z.imageSizes)+'"]')):H+='[href="'+A1($)+'"]':H+='[href="'+A1($)+'"]';var O=H;switch(U){case"style":O=GX($);break;case"script":O=WX($)}b1.has(O)||($=c$({rel:"preload",href:U==="image"&&z&&z.imageSrcSet?void 0:$,as:U},z),b1.set(O,$),Q.querySelector(H)!==null||U==="style"&&Q.querySelector(a8(O))||U==="script"&&Q.querySelector(s8(O))||(U=Q.createElement("link"),B4(U,"link",$),F$(U),Q.head.appendChild(U)))}},m:function($,U){WU.m($,U);var z=pX;if(z&&$){var Q=U&&typeof U.as==="string"?U.as:"script",H='link[rel="modulepreload"][as="'+A1(Q)+'"][href="'+A1($)+'"]',O=H;switch(Q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":O=WX($)}if(!b1.has(O)&&($=c$({rel:"modulepreload",href:$},U),b1.set(O,$),z.querySelector(H)===null)){switch(Q){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(z.querySelector(s8(O)))return}Q=z.createElement("link"),B4(Q,"link",$),F$(Q),z.head.appendChild(Q)}}},X:function($,U){WU.X($,U);var z=pX;if(z&&$){var Q=$6(z).hoistableScripts,H=WX($),O=Q.get(H);O||(O=z.querySelector(s8(H)),O||($=c$({src:$,async:!0},U),(U=b1.get(H))&&oW($,U),O=z.createElement("script"),F$(O),B4(O,"link",$),z.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},Q.set(H,O))}},S:function($,U,z){WU.S($,U,z);var Q=pX;if(Q&&$){var H=$6(Q).hoistableStyles,O=GX($);U=U||"default";var B=H.get(O);if(!B){var L={loading:jz,preload:null};if(B=Q.querySelector(a8(O)))L.loading=nY|T1;else{$=c$({rel:"stylesheet",href:$,"data-precedence":U},z),(z=b1.get(O))&&pW($,z);var D=B=Q.createElement("link");F$(D),B4(D,"link",$),D._p=new Promise(function(F,T){D.onload=F,D.onerror=T}),D.addEventListener("load",function(){L.loading|=nY}),D.addEventListener("error",function(){L.loading|=JE}),L.loading|=T1,HQ(B,U,Q)}B={type:"stylesheet",instance:B,count:1,state:L},H.set(O,B)}}},M:function($,U){WU.M($,U);var z=pX;if(z&&$){var Q=$6(z).hoistableScripts,H=WX($),O=Q.get(H);O||(O=z.querySelector(s8(H)),O||($=c$({src:$,async:!0,type:"module"},U),(U=b1.get(H))&&oW($,U),O=z.createElement("script"),F$(O),B4(O,"link",$),z.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},Q.set(H,O))}}};var pX=typeof document>"u"?null:document,K7=null,Bb=60000,qb=800,Lb=500,_O=0,PO=null,D7=null,Az=SS,dY={$$typeof:A0,Provider:null,Consumer:null,_currentValue:Az,_currentValue2:Az,_threadCount:0},WE="%c%s%c",HE="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",OE="",j7=" ",Kb=Function.prototype.bind,NE=!1,BE=null,qE=null,LE=null,KE=null,DE=null,jE=null,AE=null,FE=null,VE=null,EE=null;BE=function($,U,z,Q){U=w($,U),U!==null&&(z=X(U.memoizedState,z,0,Q),U.memoizedState=z,U.baseState=z,$.memoizedProps=c$({},$.memoizedProps),z=D4($,2),z!==null&&f6(z,$,2))},qE=function($,U,z){U=w($,U),U!==null&&(z=Y(U.memoizedState,z,0),U.memoizedState=z,U.baseState=z,$.memoizedProps=c$({},$.memoizedProps),z=D4($,2),z!==null&&f6(z,$,2))},LE=function($,U,z,Q){U=w($,U),U!==null&&(z=J(U.memoizedState,z,Q),U.memoizedState=z,U.baseState=z,$.memoizedProps=c$({},$.memoizedProps),z=D4($,2),z!==null&&f6(z,$,2))},KE=function($,U,z){$.pendingProps=X($.memoizedProps,U,0,z),$.alternate&&($.alternate.pendingProps=$.pendingProps),U=D4($,2),U!==null&&f6(U,$,2)},DE=function($,U){$.pendingProps=Y($.memoizedProps,U,0),$.alternate&&($.alternate.pendingProps=$.pendingProps),U=D4($,2),U!==null&&f6(U,$,2)},jE=function($,U,z){$.pendingProps=J($.memoizedProps,U,z),$.alternate&&($.alternate.pendingProps=$.pendingProps),U=D4($,2),U!==null&&f6(U,$,2)},AE=function($){var U=D4($,2);U!==null&&f6(U,$,2)},FE=function($){var U=nz(),z=D4($,U);z!==null&&f6(z,$,U)},VE=function($){q=$},EE=function($){W=$};var A7=!0,F7=null,vO=!1,Lw=null,Kw=null,Dw=null,pY=new Map,oY=new Map,jw=[],Db="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),V7=null;if(LQ.prototype.render=$H.prototype.render=function($){var U=this._internalRoot;if(U===null)throw Error("Cannot update an unmounted root.");var z=arguments;typeof z[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):p(z[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof z[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),z=$;var Q=U.current,H=w1(Q);rW(Q,H,z,U,null,null)},LQ.prototype.unmount=$H.prototype.unmount=function(){var $=arguments;if(typeof $[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),$=this._internalRoot,$!==null){this._internalRoot=null;var U=$.containerInfo;(s$&(z4|H1))!==H4&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),rW($.current,2,null,$,null,null),YX(),U[oU]=null}},LQ.prototype.unstable_scheduleHydration=function($){if($){var U=x();$={blockedOn:null,target:$,priority:U};for(var z=0;z<jw.length&&U!==0&&U<jw[z].priority;z++);jw.splice(z,0,$),z===0&&bA($)}},function(){var $=oX.version;if($!=="19.2.6")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
224
|
+
- react: `+($+`
|
|
225
|
+
- react-dom: 19.2.6
|
|
226
|
+
Learn more: https://react.dev/warnings/version-mismatch`))}(),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://react.dev/link/react-polyfills"),Y6.findDOMNode=function($){var U=$._reactInternals;if(U===void 0){if(typeof $.render==="function")throw Error("Unable to find node on an unmounted component.");throw $=Object.keys($).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+$)}return $=G$(U),$=$!==null?N$($):null,$=$===null?null:$.stateNode,$},!function(){var $={bundleType:1,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:u,reconcilerVersion:"19.2.6"};return $.overrideHookState=BE,$.overrideHookStateDeletePath=qE,$.overrideHookStateRenamePath=LE,$.overrideProps=KE,$.overridePropsDeletePath=DE,$.overridePropsRenamePath=jE,$.scheduleUpdate=AE,$.scheduleRetry=FE,$.setErrorHandler=VE,$.setSuspenseHandler=EE,$.scheduleRefresh=f,$.scheduleRoot=P,$.setRefreshHandler=c,$.getCurrentFiber=ES,lz($)}()&&R0&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var ME=window.location.protocol;/^(https?|file):$/.test(ME)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(ME==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}bb.createRoot=function($,U){if(!p($))throw Error("Target container is not a DOM element.");gA($);var z=!1,Q="",H=CD,O=kD,B=xD;return U!==null&&U!==void 0&&(U.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof U==="object"&&U!==null&&U.$$typeof===j0&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
228
|
+
|
|
229
|
+
let root = createRoot(domContainer);
|
|
230
|
+
root.render(<App />);`),U.unstable_strictMode===!0&&(z=!0),U.identifierPrefix!==void 0&&(Q=U.identifierPrefix),U.onUncaughtError!==void 0&&(H=U.onUncaughtError),U.onCaughtError!==void 0&&(O=U.onCaughtError),U.onRecoverableError!==void 0&&(B=U.onRecoverableError)),U=IA($,1,!1,null,null,z,Q,null,H,O,B,xA),$[oU]=U.current,xW($),new $H(U)},bb.hydrateRoot=function($,U,z){if(!p($))throw Error("Target container is not a DOM element.");gA($),U===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var Q=!1,H="",O=CD,B=kD,L=xD,D=null;return z!==null&&z!==void 0&&(z.unstable_strictMode===!0&&(Q=!0),z.identifierPrefix!==void 0&&(H=z.identifierPrefix),z.onUncaughtError!==void 0&&(O=z.onUncaughtError),z.onCaughtError!==void 0&&(B=z.onCaughtError),z.onRecoverableError!==void 0&&(L=z.onRecoverableError),z.formState!==void 0&&(D=z.formState)),U=IA($,1,!0,U,z!=null?z:null,Q,H,D,O,B,L,xA),U.context=_A(null),z=U.current,Q=w1(z),Q=xw(Q),H=yU(Q),H.callback=null,fU(z,H,Q),Y0(Q,"hydrateRoot()",null),z=Q,U.current.lanes=z,SU(U,z),K0(U),$[oU]=U.current,xW($),new LQ(U)},bb.version="19.2.6",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var SE=Aw((Pi,ZE)=>{var Cb=K6(vE());ZE.exports=Cb});var y_=Aw((uo,g_)=>{function _f(w,X){if(typeof w!=="function")throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof w}\`.`);let J,G=0;return function(...W){clearTimeout(J);let q=Date.now(),K=q-G,A=X-K;if(A<=0)G=q,w.apply(this,W);else J=setTimeout(()=>{G=Date.now(),w.apply(this,W)},A)}}g_.exports=_f});var C4=Aw((xm)=>{var cz=K6(S0());(function(){function w(n){if(n==null)return null;if(typeof n==="function")return n.$$typeof===r?null:n.displayName||n.name||null;if(typeof n==="string")return n;switch(n){case c:return"Fragment";case k:return"Profiler";case p:return"StrictMode";case G$:return"Suspense";case N$:return"SuspenseList";case e$:return"Activity"}if(typeof n==="object")switch(typeof n.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),n.$$typeof){case f:return"Portal";case R:return n.displayName||"Context";case C:return(n._context.displayName||"Context")+".Consumer";case s:var Z$=n.render;return n=n.displayName,n||(n=Z$.displayName||Z$.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case a:return Z$=n.displayName||null,Z$!==null?Z$:w(n.type)||"Memo";case w$:Z$=n._payload,n=n._init;try{return w(n(Z$))}catch(H6){}}return null}function X(n){return""+n}function J(n){try{X(n);var Z$=!1}catch(q6){Z$=!0}if(Z$){Z$=console;var H6=Z$.error,O6=typeof Symbol==="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object";return H6.call(Z$,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",O6),X(n)}}function G(n){if(n===c)return"<>";if(typeof n==="object"&&n!==null&&n.$$typeof===w$)return"<...>";try{var Z$=w(n);return Z$?"<"+Z$+">":"<...>"}catch(H6){return"<...>"}}function Y(){var n=Q6.A;return n===null?null:n.getOwner()}function W(){return Error("react-stack-top-frame")}function q(n){if(a$.call(n,"key")){var Z$=Object.getOwnPropertyDescriptor(n,"key").get;if(Z$&&Z$.isReactWarning)return!1}return n.key!==void 0}function K(n,Z$){function H6(){Q$||(Q$=!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)",Z$))}H6.isReactWarning=!0,Object.defineProperty(n,"key",{get:H6,configurable:!0})}function A(){var n=w(this.type);return R$[n]||(R$[n]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),n=this.props.ref,n!==void 0?n:null}function j(n,Z$,H6,O6,q6,$0){var y6=H6.ref;return n={$$typeof:P,type:n,key:Z$,props:H6,_owner:O6},(y6!==void 0?y6:null)!==null?Object.defineProperty(n,"ref",{enumerable:!1,get:A}):Object.defineProperty(n,"ref",{enumerable:!1,value:null}),n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(n,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(n,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:q6}),Object.defineProperty(n,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$0}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n}function E(n,Z$,H6,O6,q6,$0){var y6=Z$.children;if(y6!==void 0)if(O6)if(u$(y6)){for(O6=0;O6<y6.length;O6++)M(y6[O6]);Object.freeze&&Object.freeze(y6)}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 M(y6);if(a$.call(Z$,"key")){y6=w(n);var o4=Object.keys(Z$).filter(function(f0){return f0!=="key"});O6=0<o4.length?"{key: someKey, "+o4.join(": ..., ")+": ...}":"{key: someKey}",W6[y6+O6]||(o4=0<o4.length?"{"+o4.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
231
|
+
let props = %s;
|
|
232
|
+
<%s {...props} />
|
|
233
|
+
React keys must be passed directly to JSX without using spread:
|
|
234
|
+
let props = %s;
|
|
235
|
+
<%s key={someKey} {...props} />`,O6,y6,o4,y6),W6[y6+O6]=!0)}if(y6=null,H6!==void 0&&(J(H6),y6=""+H6),q(Z$)&&(J(Z$.key),y6=""+Z$.key),"key"in Z$){H6={};for(var D1 in Z$)D1!=="key"&&(H6[D1]=Z$[D1])}else H6=Z$;return y6&&K(H6,typeof n==="function"?n.displayName||n.name||"Unknown":n),j(n,y6,H6,Y(),q6,$0)}function M(n){Z(n)?n._store&&(n._store.validated=1):typeof n==="object"&&n!==null&&n.$$typeof===w$&&(n._payload.status==="fulfilled"?Z(n._payload.value)&&n._payload.value._store&&(n._payload.value._store.validated=1):n._store&&(n._store.validated=1))}function Z(n){return typeof n==="object"&&n!==null&&n.$$typeof===P}var P=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),R=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),G$=Symbol.for("react.suspense"),N$=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),w$=Symbol.for("react.lazy"),e$=Symbol.for("react.activity"),r=Symbol.for("react.client.reference"),Q6=cz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,a$=Object.prototype.hasOwnProperty,u$=Array.isArray,l6=console.createTask?console.createTask:function(){return null};cz={react_stack_bottom_frame:function(n){return n()}};var Q$,R$={},E$=cz.react_stack_bottom_frame.bind(cz,W)(),G6=l6(G(W)),W6={};xm.Fragment=c,xm.jsxDEV=function(n,Z$,H6,O6){var q6=1e4>Q6.recentlyCreatedOwnerStacks++;return E(n,Z$,H6,O6,q6?Error("react-stack-top-frame"):E$,q6?l6(G(n)):G6)}})()});var yv=K6(SE(),1);var x4=K6(S0(),1);var g1=K6(S0(),1);var YM="vercel.ai.error",kb=Symbol.for(YM),TE,bE,D6=class w extends(bE=Error,TE=kb,bE){constructor({name:X,message:J,cause:G}){super(J);this[TE]=!0,this.name=X,this.cause=G}static isInstance(X){return w.hasMarker(X,YM)}static hasMarker(X,J){let G=Symbol.for(J);return X!=null&&typeof X==="object"&&G in X&&typeof X[G]==="boolean"&&X[G]===!0}},JM="AI_APICallError",QM=`vercel.ai.error.${JM}`,xb=Symbol.for(QM),CE,kE,vi=class extends(kE=D6,CE=xb,kE){constructor({message:w,url:X,requestBodyValues:J,statusCode:G,responseHeaders:Y,responseBody:W,cause:q,isRetryable:K=G!=null&&(G===408||G===409||G===429||G>=500),data:A}){super({name:JM,message:w,cause:q});this[CE]=!0,this.url=X,this.requestBodyValues=J,this.statusCode=G,this.responseHeaders=Y,this.responseBody=W,this.isRetryable=K,this.data=A}static isInstance(w){return D6.hasMarker(w,QM)}},GM="AI_EmptyResponseBodyError",WM=`vercel.ai.error.${GM}`,gb=Symbol.for(WM),xE,gE,Zi=class extends(gE=D6,xE=gb,gE){constructor({message:w="Empty response body"}={}){super({name:GM,message:w});this[xE]=!0}static isInstance(w){return D6.hasMarker(w,WM)}};function HM(w){if(w==null)return"unknown error";if(typeof w==="string")return w;if(w instanceof Error)return w.message;return JSON.stringify(w)}var OM="AI_InvalidArgumentError",NM=`vercel.ai.error.${OM}`,yb=Symbol.for(NM),yE,fE,BM=class extends(fE=D6,yE=yb,fE){constructor({message:w,cause:X,argument:J}){super({name:OM,message:w,cause:X});this[yE]=!0,this.argument=J}static isInstance(w){return D6.hasMarker(w,NM)}},qM="AI_InvalidPromptError",LM=`vercel.ai.error.${qM}`,fb=Symbol.for(LM),hE,uE,Si=class extends(uE=D6,hE=fb,uE){constructor({prompt:w,message:X,cause:J}){super({name:qM,message:`Invalid prompt: ${X}`,cause:J});this[hE]=!0,this.prompt=w}static isInstance(w){return D6.hasMarker(w,LM)}},KM="AI_InvalidResponseDataError",DM=`vercel.ai.error.${KM}`,hb=Symbol.for(DM),mE,cE,Ti=class extends(cE=D6,mE=hb,cE){constructor({data:w,message:X=`Invalid response data: ${JSON.stringify(w)}.`}){super({name:KM,message:X});this[mE]=!0,this.data=w}static isInstance(w){return D6.hasMarker(w,DM)}},jM="AI_JSONParseError",AM=`vercel.ai.error.${jM}`,ub=Symbol.for(AM),iE,lE,bO=class extends(lE=D6,iE=ub,lE){constructor({text:w,cause:X}){super({name:jM,message:`JSON parsing failed: Text: ${w}.
|
|
236
|
+
Error message: ${HM(X)}`,cause:X});this[iE]=!0,this.text=w}static isInstance(w){return D6.hasMarker(w,AM)}},FM="AI_LoadAPIKeyError",VM=`vercel.ai.error.${FM}`,mb=Symbol.for(VM),nE,dE,bi=class extends(dE=D6,nE=mb,dE){constructor({message:w}){super({name:FM,message:w});this[nE]=!0}static isInstance(w){return D6.hasMarker(w,VM)}},EM="AI_LoadSettingError",MM=`vercel.ai.error.${EM}`,cb=Symbol.for(MM),pE,oE,Ci=class extends(oE=D6,pE=cb,oE){constructor({message:w}){super({name:EM,message:w});this[pE]=!0}static isInstance(w){return D6.hasMarker(w,MM)}},RM="AI_NoContentGeneratedError",IM=`vercel.ai.error.${RM}`,ib=Symbol.for(IM),rE,tE,ki=class extends(tE=D6,rE=ib,tE){constructor({message:w="No content generated."}={}){super({name:RM,message:w});this[rE]=!0}static isInstance(w){return D6.hasMarker(w,IM)}},_M="AI_NoSuchModelError",PM=`vercel.ai.error.${_M}`,lb=Symbol.for(PM),aE,sE,xi=class extends(sE=D6,aE=lb,sE){constructor({errorName:w=_M,modelId:X,modelType:J,message:G=`No such ${J}: ${X}`}){super({name:w,message:G});this[aE]=!0,this.modelId=X,this.modelType=J}static isInstance(w){return D6.hasMarker(w,PM)}},vM="AI_TooManyEmbeddingValuesForCallError",ZM=`vercel.ai.error.${vM}`,nb=Symbol.for(ZM),eE,$M,gi=class extends($M=D6,eE=nb,$M){constructor(w){super({name:vM,message:`Too many values for a single embedding call. The ${w.provider} model "${w.modelId}" can only embed up to ${w.maxEmbeddingsPerCall} values per call, but ${w.values.length} values were provided.`});this[eE]=!0,this.provider=w.provider,this.modelId=w.modelId,this.maxEmbeddingsPerCall=w.maxEmbeddingsPerCall,this.values=w.values}static isInstance(w){return D6.hasMarker(w,ZM)}},SM="AI_TypeValidationError",TM=`vercel.ai.error.${SM}`,db=Symbol.for(TM),UM,wM,Ez=class w extends(wM=D6,UM=db,wM){constructor({value:X,cause:J,context:G}){let Y="Type validation failed";if(G==null?void 0:G.field)Y+=` for ${G.field}`;if((G==null?void 0:G.entityName)||(G==null?void 0:G.entityId)){Y+=" (";let W=[];if(G.entityName)W.push(G.entityName);if(G.entityId)W.push(`id: "${G.entityId}"`);Y+=W.join(", "),Y+=")"}super({name:SM,message:`${Y}: Value: ${JSON.stringify(X)}.
|
|
237
|
+
Error message: ${HM(J)}`,cause:J});this[UM]=!0,this.value=X,this.context=G}static isInstance(X){return D6.hasMarker(X,TM)}static wrap({value:X,cause:J,context:G}){var Y,W,q;if(w.isInstance(J)&&J.value===X&&((Y=J.context)==null?void 0:Y.field)===(G==null?void 0:G.field)&&((W=J.context)==null?void 0:W.entityName)===(G==null?void 0:G.entityName)&&((q=J.context)==null?void 0:q.entityId)===(G==null?void 0:G.entityId))return J;return new w({value:X,cause:J,context:G})}},bM="AI_UnsupportedFunctionalityError",CM=`vercel.ai.error.${bM}`,pb=Symbol.for(CM),zM,XM,yi=class extends(XM=D6,zM=pb,XM){constructor({functionality:w,message:X=`'${w}' functionality not supported.`}){super({name:bM,message:X});this[zM]=!0,this.functionality=w}static isInstance(w){return D6.hasMarker(w,CM)}};var N={};Fz(N,{xid:()=>p3,void:()=>qk,uuidv7:()=>u3,uuidv6:()=>h3,uuidv4:()=>f3,uuid:()=>y3,url:()=>m3,uppercase:()=>DJ,unknown:()=>q5,union:()=>V5,undefined:()=>Nk,ulid:()=>d3,uint64:()=>Hk,uint32:()=>Qk,tuple:()=>Vk,trim:()=>MJ,treeifyError:()=>nO,transform:()=>sL,toUpperCase:()=>IJ,toLowerCase:()=>RJ,toJSONSchema:()=>Tz,templateLiteral:()=>Sk,symbol:()=>Ok,superRefine:()=>oR,success:()=>vk,stringbool:()=>kk,stringFormat:()=>zk,string:()=>PL,strictObject:()=>jk,startsWith:()=>AJ,size:()=>qJ,setErrorMap:()=>fk,set:()=>Rk,safeParseAsync:()=>bz,safeParse:()=>_L,registry:()=>h7,regexes:()=>_z,regex:()=>LJ,refine:()=>pR,record:()=>MR,readonly:()=>mR,property:()=>OL,promise:()=>Tk,prettifyError:()=>dO,preprocess:()=>gk,prefault:()=>kR,positive:()=>QL,pipe:()=>D5,partialRecord:()=>Ek,parseAsync:()=>IL,parse:()=>RL,overwrite:()=>LU,optional:()=>L5,object:()=>Dk,number:()=>GR,nullish:()=>Pk,nullable:()=>K5,null:()=>BR,normalize:()=>EJ,nonpositive:()=>WL,nonoptional:()=>xR,nonnegative:()=>HL,never:()=>j5,negative:()=>GL,nativeEnum:()=>Ik,nanoid:()=>i3,nan:()=>Zk,multipleOf:()=>Zz,minSize:()=>Sz,minLength:()=>Vw,mime:()=>VJ,maxSize:()=>U8,maxLength:()=>w8,map:()=>Mk,lte:()=>C1,lt:()=>BU,lowercase:()=>KJ,looseObject:()=>Ak,locales:()=>OJ,literal:()=>vR,length:()=>z8,lazy:()=>lR,ksuid:()=>o3,keyof:()=>Kk,jwt:()=>wk,json:()=>xk,iso:()=>N5,ipv6:()=>t3,ipv4:()=>r3,intersection:()=>VR,int64:()=>Wk,int32:()=>Jk,int:()=>vL,instanceof:()=>Ck,includes:()=>jJ,guid:()=>g3,gte:()=>l4,gt:()=>qU,globalRegistry:()=>T0,getErrorMap:()=>hk,function:()=>AL,formatError:()=>YJ,float64:()=>Yk,float32:()=>Xk,flattenError:()=>XJ,file:()=>_k,enum:()=>_R,endsWith:()=>FJ,emoji:()=>c3,email:()=>x3,e164:()=>Uk,discriminatedUnion:()=>Fk,date:()=>Lk,custom:()=>bk,cuid2:()=>n3,cuid:()=>l3,core:()=>KU,config:()=>$4,coerce:()=>wK,clone:()=>N1,cidrv6:()=>s3,cidrv4:()=>a3,check:()=>dR,catch:()=>fR,boolean:()=>WR,bigint:()=>Gk,base64url:()=>$k,base64:()=>e3,array:()=>oL,any:()=>Bk,_default:()=>bR,_ZodString:()=>ZL,ZodXID:()=>yL,ZodVoid:()=>DR,ZodUnknown:()=>LR,ZodUnion:()=>rL,ZodUndefined:()=>OR,ZodUUID:()=>DU,ZodURL:()=>TL,ZodULID:()=>gL,ZodType:()=>n$,ZodTuple:()=>ER,ZodTransform:()=>aL,ZodTemplateLiteral:()=>cR,ZodSymbol:()=>HR,ZodSuccess:()=>gR,ZodStringFormat:()=>S6,ZodString:()=>vJ,ZodSet:()=>IR,ZodRecord:()=>tL,ZodRealError:()=>X8,ZodReadonly:()=>uR,ZodPromise:()=>nR,ZodPrefault:()=>CR,ZodPipe:()=>UK,ZodOptional:()=>eL,ZodObject:()=>F5,ZodNumberFormat:()=>Y8,ZodNumber:()=>ZJ,ZodNullable:()=>SR,ZodNull:()=>NR,ZodNonOptional:()=>$K,ZodNever:()=>KR,ZodNanoID:()=>CL,ZodNaN:()=>hR,ZodMap:()=>RR,ZodLiteral:()=>PR,ZodLazy:()=>iR,ZodKSUID:()=>fL,ZodJWT:()=>dL,ZodIssueCode:()=>yk,ZodIntersection:()=>FR,ZodISOTime:()=>H5,ZodISODuration:()=>O5,ZodISODateTime:()=>G5,ZodISODate:()=>W5,ZodIPv6:()=>uL,ZodIPv4:()=>hL,ZodGUID:()=>B5,ZodFile:()=>ZR,ZodError:()=>C3,ZodEnum:()=>PJ,ZodEmoji:()=>bL,ZodEmail:()=>SL,ZodE164:()=>nL,ZodDiscriminatedUnion:()=>AR,ZodDefault:()=>TR,ZodDate:()=>A5,ZodCustomStringFormat:()=>QR,ZodCustom:()=>E5,ZodCatch:()=>yR,ZodCUID2:()=>xL,ZodCUID:()=>kL,ZodCIDRv6:()=>cL,ZodCIDRv4:()=>mL,ZodBoolean:()=>SJ,ZodBigIntFormat:()=>pL,ZodBigInt:()=>TJ,ZodBase64URL:()=>lL,ZodBase64:()=>iL,ZodArray:()=>jR,ZodAny:()=>qR,TimePrecision:()=>kq,NEVER:()=>CO,$output:()=>Sq,$input:()=>Tq,$brand:()=>kO});var KU={};Fz(KU,{version:()=>cN,util:()=>X$,treeifyError:()=>nO,toJSONSchema:()=>Tz,toDotPath:()=>gM,safeParseAsync:()=>oO,safeParse:()=>pO,registry:()=>h7,regexes:()=>_z,prettifyError:()=>dO,parseAsync:()=>P7,parse:()=>I7,locales:()=>OJ,isValidJWT:()=>$R,isValidBase64URL:()=>eM,isValidBase64:()=>WB,globalRegistry:()=>T0,globalConfig:()=>rY,function:()=>AL,formatError:()=>YJ,flattenError:()=>XJ,config:()=>$4,clone:()=>N1,_xid:()=>a7,_void:()=>zL,_uuidv7:()=>l7,_uuidv6:()=>i7,_uuidv4:()=>c7,_uuid:()=>m7,_url:()=>n7,_uppercase:()=>DJ,_unknown:()=>$8,_union:()=>O3,_undefined:()=>eq,_ulid:()=>t7,_uint64:()=>aq,_uint32:()=>nq,_tuple:()=>NL,_trim:()=>MJ,_transform:()=>F3,_toUpperCase:()=>IJ,_toLowerCase:()=>RJ,_templateLiteral:()=>Z3,_symbol:()=>sq,_success:()=>I3,_stringbool:()=>KL,_stringFormat:()=>DL,_string:()=>bq,_startsWith:()=>AJ,_size:()=>qJ,_set:()=>K3,_safeParseAsync:()=>Z7,_safeParse:()=>v7,_regex:()=>LJ,_refine:()=>LL,_record:()=>q3,_readonly:()=>v3,_property:()=>OL,_promise:()=>T3,_positive:()=>QL,_pipe:()=>P3,_parseAsync:()=>_7,_parse:()=>R7,_overwrite:()=>LU,_optional:()=>V3,_number:()=>hq,_nullable:()=>E3,_null:()=>$L,_normalize:()=>EJ,_nonpositive:()=>WL,_nonoptional:()=>R3,_nonnegative:()=>HL,_never:()=>wL,_negative:()=>GL,_nativeEnum:()=>j3,_nanoid:()=>p7,_nan:()=>JL,_multipleOf:()=>Zz,_minSize:()=>Sz,_minLength:()=>Vw,_min:()=>l4,_mime:()=>VJ,_maxSize:()=>U8,_maxLength:()=>w8,_max:()=>C1,_map:()=>L3,_lte:()=>C1,_lt:()=>BU,_lowercase:()=>KJ,_literal:()=>A3,_length:()=>z8,_lazy:()=>S3,_ksuid:()=>s7,_jwt:()=>J5,_isoTime:()=>yq,_isoDuration:()=>fq,_isoDateTime:()=>xq,_isoDate:()=>gq,_ipv6:()=>$5,_ipv4:()=>e7,_intersection:()=>B3,_int64:()=>tq,_int32:()=>lq,_int:()=>mq,_includes:()=>jJ,_guid:()=>BJ,_gte:()=>l4,_gt:()=>qU,_float64:()=>iq,_float32:()=>cq,_file:()=>BL,_enum:()=>D3,_endsWith:()=>FJ,_emoji:()=>d7,_email:()=>u7,_e164:()=>Y5,_discriminatedUnion:()=>N3,_default:()=>M3,_date:()=>XL,_custom:()=>qL,_cuid2:()=>r7,_cuid:()=>o7,_coercedString:()=>Cq,_coercedNumber:()=>uq,_coercedDate:()=>YL,_coercedBoolean:()=>pq,_coercedBigint:()=>rq,_cidrv6:()=>w5,_cidrv4:()=>U5,_catch:()=>_3,_boolean:()=>dq,_bigint:()=>oq,_base64url:()=>X5,_base64:()=>z5,_array:()=>_J,_any:()=>UL,TimePrecision:()=>kq,NEVER:()=>CO,JSONSchemaGenerator:()=>Q5,JSONSchema:()=>XR,Doc:()=>C7,$output:()=>Sq,$input:()=>Tq,$constructor:()=>g,$brand:()=>kO,$ZodXID:()=>eN,$ZodVoid:()=>EB,$ZodUnknown:()=>eX,$ZodUnion:()=>f7,$ZodUndefined:()=>jB,$ZodUUID:()=>nN,$ZodURL:()=>pN,$ZodULID:()=>sN,$ZodType:()=>b$,$ZodTuple:()=>vz,$ZodTransform:()=>GJ,$ZodTemplateLiteral:()=>cB,$ZodSymbol:()=>DB,$ZodSuccess:()=>fB,$ZodStringFormat:()=>_6,$ZodString:()=>Pz,$ZodSet:()=>ZB,$ZodRegistry:()=>NJ,$ZodRecord:()=>PB,$ZodRealError:()=>aX,$ZodReadonly:()=>mB,$ZodPromise:()=>iB,$ZodPrefault:()=>gB,$ZodPipe:()=>WJ,$ZodOptional:()=>CB,$ZodObject:()=>RB,$ZodNumberFormat:()=>LB,$ZodNumber:()=>g7,$ZodNullable:()=>kB,$ZodNull:()=>AB,$ZodNonOptional:()=>yB,$ZodNever:()=>VB,$ZodNanoID:()=>rN,$ZodNaN:()=>uB,$ZodMap:()=>vB,$ZodLiteral:()=>TB,$ZodLazy:()=>lB,$ZodKSUID:()=>$B,$ZodJWT:()=>BB,$ZodIntersection:()=>_B,$ZodISOTime:()=>zB,$ZodISODuration:()=>XB,$ZodISODateTime:()=>UB,$ZodISODate:()=>wB,$ZodIPv6:()=>JB,$ZodIPv4:()=>YB,$ZodGUID:()=>lN,$ZodFunction:()=>jL,$ZodFile:()=>bB,$ZodError:()=>zJ,$ZodEnum:()=>SB,$ZodEmoji:()=>oN,$ZodEmail:()=>dN,$ZodE164:()=>NB,$ZodDiscriminatedUnion:()=>IB,$ZodDefault:()=>xB,$ZodDate:()=>MB,$ZodCustomStringFormat:()=>qB,$ZodCustom:()=>nB,$ZodCheckUpperCase:()=>xN,$ZodCheckStringFormat:()=>sX,$ZodCheckStartsWith:()=>yN,$ZodCheckSizeEquals:()=>ZN,$ZodCheckRegex:()=>CN,$ZodCheckProperty:()=>hN,$ZodCheckOverwrite:()=>mN,$ZodCheckNumberFormat:()=>IN,$ZodCheckMultipleOf:()=>RN,$ZodCheckMinSize:()=>vN,$ZodCheckMinLength:()=>TN,$ZodCheckMimeType:()=>uN,$ZodCheckMaxSize:()=>PN,$ZodCheckMaxLength:()=>SN,$ZodCheckLowerCase:()=>kN,$ZodCheckLessThan:()=>T7,$ZodCheckLengthEquals:()=>bN,$ZodCheckIncludes:()=>gN,$ZodCheckGreaterThan:()=>b7,$ZodCheckEndsWith:()=>fN,$ZodCheckBigIntFormat:()=>_N,$ZodCheck:()=>u6,$ZodCatch:()=>hB,$ZodCUID2:()=>aN,$ZodCUID:()=>tN,$ZodCIDRv6:()=>GB,$ZodCIDRv4:()=>QB,$ZodBoolean:()=>JJ,$ZodBigIntFormat:()=>KB,$ZodBigInt:()=>y7,$ZodBase64URL:()=>OB,$ZodBase64:()=>HB,$ZodAsyncError:()=>OU,$ZodArray:()=>QJ,$ZodAny:()=>FB});var CO=Object.freeze({status:"aborted"});function g(w,X,J){function G(K,A){var j;Object.defineProperty(K,"_zod",{value:K._zod??{},enumerable:!1}),(j=K._zod).traits??(j.traits=new Set),K._zod.traits.add(w),X(K,A);for(let E in q.prototype)if(!(E in K))Object.defineProperty(K,E,{value:q.prototype[E].bind(K)});K._zod.constr=q,K._zod.def=A}let Y=J?.Parent??Object;class W extends Y{}Object.defineProperty(W,"name",{value:w});function q(K){var A;let j=J?.Parent?new W:this;G(j,K),(A=j._zod).deferred??(A.deferred=[]);for(let E of j._zod.deferred)E();return j}return Object.defineProperty(q,"init",{value:G}),Object.defineProperty(q,Symbol.hasInstance,{value:(K)=>{if(J?.Parent&&K instanceof J.Parent)return!0;return K?._zod?.traits?.has(w)}}),Object.defineProperty(q,"name",{value:w}),q}var kO=Symbol("zod_brand");class OU extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}var rY={};function $4(w){if(w)Object.assign(rY,w);return rY}var X$={};Fz(X$,{unwrapMessage:()=>tY,stringifyPrimitive:()=>z$,required:()=>HC,randomString:()=>UC,propertyKeyTypes:()=>$J,promiseAllObject:()=>$C,primitiveTypes:()=>uO,prefixIssues:()=>i4,pick:()=>YC,partial:()=>WC,optionalKeys:()=>mO,omit:()=>JC,numKeys:()=>wC,nullish:()=>Fw,normalizeParams:()=>e,merge:()=>GC,jsonStringifyReplacer:()=>gO,joinValues:()=>l,issue:()=>lO,isPlainObject:()=>tX,isObject:()=>rX,getSizableOrigin:()=>UJ,getParsedType:()=>zC,getLengthableOrigin:()=>wJ,getEnumValues:()=>aY,getElementAtPath:()=>eb,floatSafeRemainder:()=>yO,finalizeIssue:()=>B1,extend:()=>QC,escapeRegex:()=>NU,esc:()=>Mz,defineLazy:()=>J6,createTransparentProxy:()=>XC,clone:()=>N1,cleanRegex:()=>eY,cleanEnum:()=>OC,captureStackTrace:()=>M7,cached:()=>sY,assignProp:()=>fO,assertNotEqual:()=>rb,assertNever:()=>ab,assertIs:()=>tb,assertEqual:()=>ob,assert:()=>sb,allowsEval:()=>hO,aborted:()=>Rz,NUMBER_FORMAT_RANGES:()=>cO,Class:()=>kM,BIGINT_FORMAT_RANGES:()=>iO});function ob(w){return w}function rb(w){return w}function tb(w){}function ab(w){throw Error()}function sb(w){}function aY(w){let X=Object.values(w).filter((G)=>typeof G==="number");return Object.entries(w).filter(([G,Y])=>X.indexOf(+G)===-1).map(([G,Y])=>Y)}function l(w,X="|"){return w.map((J)=>z$(J)).join(X)}function gO(w,X){if(typeof X==="bigint")return X.toString();return X}function sY(w){return{get value(){{let J=w();return Object.defineProperty(this,"value",{value:J}),J}throw Error("cached value already set")}}}function Fw(w){return w===null||w===void 0}function eY(w){let X=w.startsWith("^")?1:0,J=w.endsWith("$")?w.length-1:w.length;return w.slice(X,J)}function yO(w,X){let J=(w.toString().split(".")[1]||"").length,G=(X.toString().split(".")[1]||"").length,Y=J>G?J:G,W=Number.parseInt(w.toFixed(Y).replace(".","")),q=Number.parseInt(X.toFixed(Y).replace(".",""));return W%q/10**Y}function J6(w,X,J){Object.defineProperty(w,X,{get(){{let Y=J();return w[X]=Y,Y}throw Error("cached value already set")},set(Y){Object.defineProperty(w,X,{value:Y})},configurable:!0})}function fO(w,X,J){Object.defineProperty(w,X,{value:J,writable:!0,enumerable:!0,configurable:!0})}function eb(w,X){if(!X)return w;return X.reduce((J,G)=>J?.[G],w)}function $C(w){let X=Object.keys(w),J=X.map((G)=>w[G]);return Promise.all(J).then((G)=>{let Y={};for(let W=0;W<X.length;W++)Y[X[W]]=G[W];return Y})}function UC(w=10){let J="";for(let G=0;G<w;G++)J+="abcdefghijklmnopqrstuvwxyz"[Math.floor(Math.random()*26)];return J}function Mz(w){return JSON.stringify(w)}var M7=Error.captureStackTrace?Error.captureStackTrace:(...w)=>{};function rX(w){return typeof w==="object"&&w!==null&&!Array.isArray(w)}var hO=sY(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(w){return!1}});function tX(w){if(rX(w)===!1)return!1;let X=w.constructor;if(X===void 0)return!0;let J=X.prototype;if(rX(J)===!1)return!1;if(Object.prototype.hasOwnProperty.call(J,"isPrototypeOf")===!1)return!1;return!0}function wC(w){let X=0;for(let J in w)if(Object.prototype.hasOwnProperty.call(w,J))X++;return X}var zC=(w)=>{let X=typeof w;switch(X){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(w)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":if(Array.isArray(w))return"array";if(w===null)return"null";if(w.then&&typeof w.then==="function"&&w.catch&&typeof w.catch==="function")return"promise";if(typeof Map<"u"&&w instanceof Map)return"map";if(typeof Set<"u"&&w instanceof Set)return"set";if(typeof Date<"u"&&w instanceof Date)return"date";if(typeof File<"u"&&w instanceof File)return"file";return"object";default:throw Error(`Unknown data type: ${X}`)}},$J=new Set(["string","number","symbol"]),uO=new Set(["string","number","bigint","boolean","symbol","undefined"]);function NU(w){return w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function N1(w,X,J){let G=new w._zod.constr(X??w._zod.def);if(!X||J?.parent)G._zod.parent=w;return G}function e(w){let X=w;if(!X)return{};if(typeof X==="string")return{error:()=>X};if(X?.message!==void 0){if(X?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");X.error=X.message}if(delete X.message,typeof X.error==="string")return{...X,error:()=>X.error};return X}function XC(w){let X;return new Proxy({},{get(J,G,Y){return X??(X=w()),Reflect.get(X,G,Y)},set(J,G,Y,W){return X??(X=w()),Reflect.set(X,G,Y,W)},has(J,G){return X??(X=w()),Reflect.has(X,G)},deleteProperty(J,G){return X??(X=w()),Reflect.deleteProperty(X,G)},ownKeys(J){return X??(X=w()),Reflect.ownKeys(X)},getOwnPropertyDescriptor(J,G){return X??(X=w()),Reflect.getOwnPropertyDescriptor(X,G)},defineProperty(J,G,Y){return X??(X=w()),Reflect.defineProperty(X,G,Y)}})}function z$(w){if(typeof w==="bigint")return w.toString()+"n";if(typeof w==="string")return`"${w}"`;return`${w}`}function mO(w){return Object.keys(w).filter((X)=>{return w[X]._zod.optin==="optional"&&w[X]._zod.optout==="optional"})}var cO={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-340282346638528860000000000000000000000,340282346638528860000000000000000000000],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},iO={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function YC(w,X){let J={},G=w._zod.def;for(let Y in X){if(!(Y in G.shape))throw Error(`Unrecognized key: "${Y}"`);if(!X[Y])continue;J[Y]=G.shape[Y]}return N1(w,{...w._zod.def,shape:J,checks:[]})}function JC(w,X){let J={...w._zod.def.shape},G=w._zod.def;for(let Y in X){if(!(Y in G.shape))throw Error(`Unrecognized key: "${Y}"`);if(!X[Y])continue;delete J[Y]}return N1(w,{...w._zod.def,shape:J,checks:[]})}function QC(w,X){if(!tX(X))throw Error("Invalid input to extend: expected a plain object");let J={...w._zod.def,get shape(){let G={...w._zod.def.shape,...X};return fO(this,"shape",G),G},checks:[]};return N1(w,J)}function GC(w,X){return N1(w,{...w._zod.def,get shape(){let J={...w._zod.def.shape,...X._zod.def.shape};return fO(this,"shape",J),J},catchall:X._zod.def.catchall,checks:[]})}function WC(w,X,J){let G=X._zod.def.shape,Y={...G};if(J)for(let W in J){if(!(W in G))throw Error(`Unrecognized key: "${W}"`);if(!J[W])continue;Y[W]=w?new w({type:"optional",innerType:G[W]}):G[W]}else for(let W in G)Y[W]=w?new w({type:"optional",innerType:G[W]}):G[W];return N1(X,{...X._zod.def,shape:Y,checks:[]})}function HC(w,X,J){let G=X._zod.def.shape,Y={...G};if(J)for(let W in J){if(!(W in Y))throw Error(`Unrecognized key: "${W}"`);if(!J[W])continue;Y[W]=new w({type:"nonoptional",innerType:G[W]})}else for(let W in G)Y[W]=new w({type:"nonoptional",innerType:G[W]});return N1(X,{...X._zod.def,shape:Y,checks:[]})}function Rz(w,X=0){for(let J=X;J<w.issues.length;J++)if(w.issues[J]?.continue!==!0)return!0;return!1}function i4(w,X){return X.map((J)=>{var G;return(G=J).path??(G.path=[]),J.path.unshift(w),J})}function tY(w){return typeof w==="string"?w:w?.message}function B1(w,X,J){let G={...w,path:w.path??[]};if(!w.message){let Y=tY(w.inst?._zod.def?.error?.(w))??tY(X?.error?.(w))??tY(J.customError?.(w))??tY(J.localeError?.(w))??"Invalid input";G.message=Y}if(delete G.inst,delete G.continue,!X?.reportInput)delete G.input;return G}function UJ(w){if(w instanceof Set)return"set";if(w instanceof Map)return"map";if(w instanceof File)return"file";return"unknown"}function wJ(w){if(Array.isArray(w))return"array";if(typeof w==="string")return"string";return"unknown"}function lO(...w){let[X,J,G]=w;if(typeof X==="string")return{message:X,code:"custom",input:J,inst:G};return{...X}}function OC(w){return Object.entries(w).filter(([X,J])=>{return Number.isNaN(Number.parseInt(X,10))}).map((X)=>X[1])}class kM{constructor(...w){}}var xM=(w,X)=>{w.name="$ZodError",Object.defineProperty(w,"_zod",{value:w._zod,enumerable:!1}),Object.defineProperty(w,"issues",{value:X,enumerable:!1}),Object.defineProperty(w,"message",{get(){return JSON.stringify(X,gO,2)},enumerable:!0}),Object.defineProperty(w,"toString",{value:()=>w.message,enumerable:!1})},zJ=g("$ZodError",xM),aX=g("$ZodError",xM,{Parent:Error});function XJ(w,X=(J)=>J.message){let J={},G=[];for(let Y of w.issues)if(Y.path.length>0)J[Y.path[0]]=J[Y.path[0]]||[],J[Y.path[0]].push(X(Y));else G.push(X(Y));return{formErrors:G,fieldErrors:J}}function YJ(w,X){let J=X||function(W){return W.message},G={_errors:[]},Y=(W)=>{for(let q of W.issues)if(q.code==="invalid_union"&&q.errors.length)q.errors.map((K)=>Y({issues:K}));else if(q.code==="invalid_key")Y({issues:q.issues});else if(q.code==="invalid_element")Y({issues:q.issues});else if(q.path.length===0)G._errors.push(J(q));else{let K=G,A=0;while(A<q.path.length){let j=q.path[A];if(A!==q.path.length-1)K[j]=K[j]||{_errors:[]};else K[j]=K[j]||{_errors:[]},K[j]._errors.push(J(q));K=K[j],A++}}};return Y(w),G}function nO(w,X){let J=X||function(W){return W.message},G={errors:[]},Y=(W,q=[])=>{var K,A;for(let j of W.issues)if(j.code==="invalid_union"&&j.errors.length)j.errors.map((E)=>Y({issues:E},j.path));else if(j.code==="invalid_key")Y({issues:j.issues},j.path);else if(j.code==="invalid_element")Y({issues:j.issues},j.path);else{let E=[...q,...j.path];if(E.length===0){G.errors.push(J(j));continue}let M=G,Z=0;while(Z<E.length){let P=E[Z],f=Z===E.length-1;if(typeof P==="string")M.properties??(M.properties={}),(K=M.properties)[P]??(K[P]={errors:[]}),M=M.properties[P];else M.items??(M.items=[]),(A=M.items)[P]??(A[P]={errors:[]}),M=M.items[P];if(f)M.errors.push(J(j));Z++}}};return Y(w),G}function gM(w){let X=[];for(let J of w)if(typeof J==="number")X.push(`[${J}]`);else if(typeof J==="symbol")X.push(`[${JSON.stringify(String(J))}]`);else if(/[^\w$]/.test(J))X.push(`[${JSON.stringify(J)}]`);else{if(X.length)X.push(".");X.push(J)}return X.join("")}function dO(w){let X=[],J=[...w.issues].sort((G,Y)=>G.path.length-Y.path.length);for(let G of J)if(X.push(`✖ ${G.message}`),G.path?.length)X.push(` → at ${gM(G.path)}`);return X.join(`
|
|
238
|
+
`)}var R7=(w)=>(X,J,G,Y)=>{let W=G?Object.assign(G,{async:!1}):{async:!1},q=X._zod.run({value:J,issues:[]},W);if(q instanceof Promise)throw new OU;if(q.issues.length){let K=new(Y?.Err??w)(q.issues.map((A)=>B1(A,W,$4())));throw M7(K,Y?.callee),K}return q.value},I7=R7(aX),_7=(w)=>async(X,J,G,Y)=>{let W=G?Object.assign(G,{async:!0}):{async:!0},q=X._zod.run({value:J,issues:[]},W);if(q instanceof Promise)q=await q;if(q.issues.length){let K=new(Y?.Err??w)(q.issues.map((A)=>B1(A,W,$4())));throw M7(K,Y?.callee),K}return q.value},P7=_7(aX),v7=(w)=>(X,J,G)=>{let Y=G?{...G,async:!1}:{async:!1},W=X._zod.run({value:J,issues:[]},Y);if(W instanceof Promise)throw new OU;return W.issues.length?{success:!1,error:new(w??zJ)(W.issues.map((q)=>B1(q,Y,$4())))}:{success:!0,data:W.value}},pO=v7(aX),Z7=(w)=>async(X,J,G)=>{let Y=G?Object.assign(G,{async:!0}):{async:!0},W=X._zod.run({value:J,issues:[]},Y);if(W instanceof Promise)W=await W;return W.issues.length?{success:!1,error:new w(W.issues.map((q)=>B1(q,Y,$4())))}:{success:!0,data:W.value}},oO=Z7(aX);var _z={};Fz(_z,{xid:()=>sO,uuid7:()=>KC,uuid6:()=>LC,uuid4:()=>qC,uuid:()=>Iz,uppercase:()=>MN,unicodeEmail:()=>AC,undefined:()=>VN,ulid:()=>aO,time:()=>BN,string:()=>LN,rfc5322Email:()=>jC,number:()=>jN,null:()=>FN,nanoid:()=>$N,lowercase:()=>EN,ksuid:()=>eO,ipv6:()=>JN,ipv4:()=>YN,integer:()=>DN,html5Email:()=>DC,hostname:()=>HN,guid:()=>wN,extendedDuration:()=>BC,emoji:()=>XN,email:()=>zN,e164:()=>ON,duration:()=>UN,domain:()=>EC,datetime:()=>qN,date:()=>NN,cuid2:()=>tO,cuid:()=>rO,cidrv6:()=>GN,cidrv4:()=>QN,browserEmail:()=>FC,boolean:()=>AN,bigint:()=>KN,base64url:()=>S7,base64:()=>WN,_emoji:()=>VC});var rO=/^[cC][^\s-]{8,}$/,tO=/^[0-9a-z]+$/,aO=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sO=/^[0-9a-vA-V]{20}$/,eO=/^[A-Za-z0-9]{27}$/,$N=/^[a-zA-Z0-9_-]{21}$/,UN=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,BC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,wN=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Iz=(w)=>{if(!w)return/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/;return new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${w}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`)},qC=Iz(4),LC=Iz(6),KC=Iz(7),zN=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DC=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,jC=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,AC=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,FC=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,VC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function XN(){return new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")}var YN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,JN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,QN=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,GN=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,WN=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,S7=/^[A-Za-z0-9_-]*$/,HN=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,EC=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ON=/^\+(?:[0-9]){6,14}[0-9]$/,yM="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",NN=new RegExp(`^${yM}$`);function fM(w){return typeof w.precision==="number"?w.precision===-1?"(?:[01]\\d|2[0-3]):[0-5]\\d":w.precision===0?"(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d":`(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{${w.precision}}`:"(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?"}function BN(w){return new RegExp(`^${fM(w)}$`)}function qN(w){let X=fM({precision:w.precision}),J=["Z"];if(w.local)J.push("");if(w.offset)J.push("([+-]\\d{2}:\\d{2})");let G=`${X}(?:${J.join("|")})`;return new RegExp(`^${yM}T(?:${G})$`)}var LN=(w)=>{let X=w?`[\\s\\S]{${w?.minimum??0},${w?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${X}$`)},KN=/^\d+n?$/,DN=/^\d+$/,jN=/^-?\d+(?:\.\d+)?/i,AN=/true|false/i,FN=/null/i;var VN=/undefined/i;var EN=/^[^A-Z]*$/,MN=/^[^a-z]*$/;var u6=g("$ZodCheck",(w,X)=>{var J;w._zod??(w._zod={}),w._zod.def=X,(J=w._zod).onattach??(J.onattach=[])}),uM={number:"number",bigint:"bigint",object:"date"},T7=g("$ZodCheckLessThan",(w,X)=>{u6.init(w,X);let J=uM[typeof X.value];w._zod.onattach.push((G)=>{let Y=G._zod.bag,W=(X.inclusive?Y.maximum:Y.exclusiveMaximum)??Number.POSITIVE_INFINITY;if(X.value<W)if(X.inclusive)Y.maximum=X.value;else Y.exclusiveMaximum=X.value}),w._zod.check=(G)=>{if(X.inclusive?G.value<=X.value:G.value<X.value)return;G.issues.push({origin:J,code:"too_big",maximum:X.value,input:G.value,inclusive:X.inclusive,inst:w,continue:!X.abort})}}),b7=g("$ZodCheckGreaterThan",(w,X)=>{u6.init(w,X);let J=uM[typeof X.value];w._zod.onattach.push((G)=>{let Y=G._zod.bag,W=(X.inclusive?Y.minimum:Y.exclusiveMinimum)??Number.NEGATIVE_INFINITY;if(X.value>W)if(X.inclusive)Y.minimum=X.value;else Y.exclusiveMinimum=X.value}),w._zod.check=(G)=>{if(X.inclusive?G.value>=X.value:G.value>X.value)return;G.issues.push({origin:J,code:"too_small",minimum:X.value,input:G.value,inclusive:X.inclusive,inst:w,continue:!X.abort})}}),RN=g("$ZodCheckMultipleOf",(w,X)=>{u6.init(w,X),w._zod.onattach.push((J)=>{var G;(G=J._zod.bag).multipleOf??(G.multipleOf=X.value)}),w._zod.check=(J)=>{if(typeof J.value!==typeof X.value)throw Error("Cannot mix number and bigint in multiple_of check.");if(typeof J.value==="bigint"?J.value%X.value===BigInt(0):yO(J.value,X.value)===0)return;J.issues.push({origin:typeof J.value,code:"not_multiple_of",divisor:X.value,input:J.value,inst:w,continue:!X.abort})}}),IN=g("$ZodCheckNumberFormat",(w,X)=>{u6.init(w,X),X.format=X.format||"float64";let J=X.format?.includes("int"),G=J?"int":"number",[Y,W]=cO[X.format];w._zod.onattach.push((q)=>{let K=q._zod.bag;if(K.format=X.format,K.minimum=Y,K.maximum=W,J)K.pattern=DN}),w._zod.check=(q)=>{let K=q.value;if(J){if(!Number.isInteger(K)){q.issues.push({expected:G,format:X.format,code:"invalid_type",input:K,inst:w});return}if(!Number.isSafeInteger(K)){if(K>0)q.issues.push({input:K,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:w,origin:G,continue:!X.abort});else q.issues.push({input:K,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:w,origin:G,continue:!X.abort});return}}if(K<Y)q.issues.push({origin:"number",input:K,code:"too_small",minimum:Y,inclusive:!0,inst:w,continue:!X.abort});if(K>W)q.issues.push({origin:"number",input:K,code:"too_big",maximum:W,inst:w})}}),_N=g("$ZodCheckBigIntFormat",(w,X)=>{u6.init(w,X);let[J,G]=iO[X.format];w._zod.onattach.push((Y)=>{let W=Y._zod.bag;W.format=X.format,W.minimum=J,W.maximum=G}),w._zod.check=(Y)=>{let W=Y.value;if(W<J)Y.issues.push({origin:"bigint",input:W,code:"too_small",minimum:J,inclusive:!0,inst:w,continue:!X.abort});if(W>G)Y.issues.push({origin:"bigint",input:W,code:"too_big",maximum:G,inst:w})}}),PN=g("$ZodCheckMaxSize",(w,X)=>{var J;u6.init(w,X),(J=w._zod.def).when??(J.when=(G)=>{let Y=G.value;return!Fw(Y)&&Y.size!==void 0}),w._zod.onattach.push((G)=>{let Y=G._zod.bag.maximum??Number.POSITIVE_INFINITY;if(X.maximum<Y)G._zod.bag.maximum=X.maximum}),w._zod.check=(G)=>{let Y=G.value;if(Y.size<=X.maximum)return;G.issues.push({origin:UJ(Y),code:"too_big",maximum:X.maximum,input:Y,inst:w,continue:!X.abort})}}),vN=g("$ZodCheckMinSize",(w,X)=>{var J;u6.init(w,X),(J=w._zod.def).when??(J.when=(G)=>{let Y=G.value;return!Fw(Y)&&Y.size!==void 0}),w._zod.onattach.push((G)=>{let Y=G._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(X.minimum>Y)G._zod.bag.minimum=X.minimum}),w._zod.check=(G)=>{let Y=G.value;if(Y.size>=X.minimum)return;G.issues.push({origin:UJ(Y),code:"too_small",minimum:X.minimum,input:Y,inst:w,continue:!X.abort})}}),ZN=g("$ZodCheckSizeEquals",(w,X)=>{var J;u6.init(w,X),(J=w._zod.def).when??(J.when=(G)=>{let Y=G.value;return!Fw(Y)&&Y.size!==void 0}),w._zod.onattach.push((G)=>{let Y=G._zod.bag;Y.minimum=X.size,Y.maximum=X.size,Y.size=X.size}),w._zod.check=(G)=>{let Y=G.value,W=Y.size;if(W===X.size)return;let q=W>X.size;G.issues.push({origin:UJ(Y),...q?{code:"too_big",maximum:X.size}:{code:"too_small",minimum:X.size},inclusive:!0,exact:!0,input:G.value,inst:w,continue:!X.abort})}}),SN=g("$ZodCheckMaxLength",(w,X)=>{var J;u6.init(w,X),(J=w._zod.def).when??(J.when=(G)=>{let Y=G.value;return!Fw(Y)&&Y.length!==void 0}),w._zod.onattach.push((G)=>{let Y=G._zod.bag.maximum??Number.POSITIVE_INFINITY;if(X.maximum<Y)G._zod.bag.maximum=X.maximum}),w._zod.check=(G)=>{let Y=G.value;if(Y.length<=X.maximum)return;let q=wJ(Y);G.issues.push({origin:q,code:"too_big",maximum:X.maximum,inclusive:!0,input:Y,inst:w,continue:!X.abort})}}),TN=g("$ZodCheckMinLength",(w,X)=>{var J;u6.init(w,X),(J=w._zod.def).when??(J.when=(G)=>{let Y=G.value;return!Fw(Y)&&Y.length!==void 0}),w._zod.onattach.push((G)=>{let Y=G._zod.bag.minimum??Number.NEGATIVE_INFINITY;if(X.minimum>Y)G._zod.bag.minimum=X.minimum}),w._zod.check=(G)=>{let Y=G.value;if(Y.length>=X.minimum)return;let q=wJ(Y);G.issues.push({origin:q,code:"too_small",minimum:X.minimum,inclusive:!0,input:Y,inst:w,continue:!X.abort})}}),bN=g("$ZodCheckLengthEquals",(w,X)=>{var J;u6.init(w,X),(J=w._zod.def).when??(J.when=(G)=>{let Y=G.value;return!Fw(Y)&&Y.length!==void 0}),w._zod.onattach.push((G)=>{let Y=G._zod.bag;Y.minimum=X.length,Y.maximum=X.length,Y.length=X.length}),w._zod.check=(G)=>{let Y=G.value,W=Y.length;if(W===X.length)return;let q=wJ(Y),K=W>X.length;G.issues.push({origin:q,...K?{code:"too_big",maximum:X.length}:{code:"too_small",minimum:X.length},inclusive:!0,exact:!0,input:G.value,inst:w,continue:!X.abort})}}),sX=g("$ZodCheckStringFormat",(w,X)=>{var J,G;if(u6.init(w,X),w._zod.onattach.push((Y)=>{let W=Y._zod.bag;if(W.format=X.format,X.pattern)W.patterns??(W.patterns=new Set),W.patterns.add(X.pattern)}),X.pattern)(J=w._zod).check??(J.check=(Y)=>{if(X.pattern.lastIndex=0,X.pattern.test(Y.value))return;Y.issues.push({origin:"string",code:"invalid_format",format:X.format,input:Y.value,...X.pattern?{pattern:X.pattern.toString()}:{},inst:w,continue:!X.abort})});else(G=w._zod).check??(G.check=()=>{})}),CN=g("$ZodCheckRegex",(w,X)=>{sX.init(w,X),w._zod.check=(J)=>{if(X.pattern.lastIndex=0,X.pattern.test(J.value))return;J.issues.push({origin:"string",code:"invalid_format",format:"regex",input:J.value,pattern:X.pattern.toString(),inst:w,continue:!X.abort})}}),kN=g("$ZodCheckLowerCase",(w,X)=>{X.pattern??(X.pattern=EN),sX.init(w,X)}),xN=g("$ZodCheckUpperCase",(w,X)=>{X.pattern??(X.pattern=MN),sX.init(w,X)}),gN=g("$ZodCheckIncludes",(w,X)=>{u6.init(w,X);let J=NU(X.includes),G=new RegExp(typeof X.position==="number"?`^.{${X.position}}${J}`:J);X.pattern=G,w._zod.onattach.push((Y)=>{let W=Y._zod.bag;W.patterns??(W.patterns=new Set),W.patterns.add(G)}),w._zod.check=(Y)=>{if(Y.value.includes(X.includes,X.position))return;Y.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:X.includes,input:Y.value,inst:w,continue:!X.abort})}}),yN=g("$ZodCheckStartsWith",(w,X)=>{u6.init(w,X);let J=new RegExp(`^${NU(X.prefix)}.*`);X.pattern??(X.pattern=J),w._zod.onattach.push((G)=>{let Y=G._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(J)}),w._zod.check=(G)=>{if(G.value.startsWith(X.prefix))return;G.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:X.prefix,input:G.value,inst:w,continue:!X.abort})}}),fN=g("$ZodCheckEndsWith",(w,X)=>{u6.init(w,X);let J=new RegExp(`.*${NU(X.suffix)}$`);X.pattern??(X.pattern=J),w._zod.onattach.push((G)=>{let Y=G._zod.bag;Y.patterns??(Y.patterns=new Set),Y.patterns.add(J)}),w._zod.check=(G)=>{if(G.value.endsWith(X.suffix))return;G.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:X.suffix,input:G.value,inst:w,continue:!X.abort})}});function hM(w,X,J){if(w.issues.length)X.issues.push(...i4(J,w.issues))}var hN=g("$ZodCheckProperty",(w,X)=>{u6.init(w,X),w._zod.check=(J)=>{let G=X.schema._zod.run({value:J.value[X.property],issues:[]},{});if(G instanceof Promise)return G.then((Y)=>hM(Y,J,X.property));hM(G,J,X.property);return}}),uN=g("$ZodCheckMimeType",(w,X)=>{u6.init(w,X);let J=new Set(X.mime);w._zod.onattach.push((G)=>{G._zod.bag.mime=X.mime}),w._zod.check=(G)=>{if(J.has(G.value.type))return;G.issues.push({code:"invalid_value",values:X.mime,input:G.value.type,inst:w})}}),mN=g("$ZodCheckOverwrite",(w,X)=>{u6.init(w,X),w._zod.check=(J)=>{J.value=X.tx(J.value)}});class C7{constructor(w=[]){if(this.content=[],this.indent=0,this)this.args=w}indented(w){this.indent+=1,w(this),this.indent-=1}write(w){if(typeof w==="function"){w(this,{execution:"sync"}),w(this,{execution:"async"});return}let J=w.split(`
|
|
239
|
+
`).filter((W)=>W),G=Math.min(...J.map((W)=>W.length-W.trimStart().length)),Y=J.map((W)=>W.slice(G)).map((W)=>" ".repeat(this.indent*2)+W);for(let W of Y)this.content.push(W)}compile(){let w=Function,X=this?.args,G=[...(this?.content??[""]).map((Y)=>` ${Y}`)];return new w(...X,G.join(`
|
|
240
|
+
`))}}var cN={major:4,minor:0,patch:0};var b$=g("$ZodType",(w,X)=>{var J;w??(w={}),w._zod.def=X,w._zod.bag=w._zod.bag||{},w._zod.version=cN;let G=[...w._zod.def.checks??[]];if(w._zod.traits.has("$ZodCheck"))G.unshift(w);for(let Y of G)for(let W of Y._zod.onattach)W(w);if(G.length===0)(J=w._zod).deferred??(J.deferred=[]),w._zod.deferred?.push(()=>{w._zod.run=w._zod.parse});else{let Y=(W,q,K)=>{let A=Rz(W),j;for(let E of q){if(E._zod.def.when){if(!E._zod.def.when(W))continue}else if(A)continue;let M=W.issues.length,Z=E._zod.check(W);if(Z instanceof Promise&&K?.async===!1)throw new OU;if(j||Z instanceof Promise)j=(j??Promise.resolve()).then(async()=>{if(await Z,W.issues.length===M)return;if(!A)A=Rz(W,M)});else{if(W.issues.length===M)continue;if(!A)A=Rz(W,M)}}if(j)return j.then(()=>{return W});return W};w._zod.run=(W,q)=>{let K=w._zod.parse(W,q);if(K instanceof Promise){if(q.async===!1)throw new OU;return K.then((A)=>Y(A,G,q))}return Y(K,G,q)}}w["~standard"]={validate:(Y)=>{try{let W=pO(w,Y);return W.success?{value:W.data}:{issues:W.error?.issues}}catch(W){return oO(w,Y).then((q)=>q.success?{value:q.data}:{issues:q.error?.issues})}},vendor:"zod",version:1}}),Pz=g("$ZodString",(w,X)=>{b$.init(w,X),w._zod.pattern=[...w?._zod.bag?.patterns??[]].pop()??LN(w._zod.bag),w._zod.parse=(J,G)=>{if(X.coerce)try{J.value=String(J.value)}catch(Y){}if(typeof J.value==="string")return J;return J.issues.push({expected:"string",code:"invalid_type",input:J.value,inst:w}),J}}),_6=g("$ZodStringFormat",(w,X)=>{sX.init(w,X),Pz.init(w,X)}),lN=g("$ZodGUID",(w,X)=>{X.pattern??(X.pattern=wN),_6.init(w,X)}),nN=g("$ZodUUID",(w,X)=>{if(X.version){let G={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[X.version];if(G===void 0)throw Error(`Invalid UUID version: "${X.version}"`);X.pattern??(X.pattern=Iz(G))}else X.pattern??(X.pattern=Iz());_6.init(w,X)}),dN=g("$ZodEmail",(w,X)=>{X.pattern??(X.pattern=zN),_6.init(w,X)}),pN=g("$ZodURL",(w,X)=>{_6.init(w,X),w._zod.check=(J)=>{try{let G=J.value,Y=new URL(G),W=Y.href;if(X.hostname){if(X.hostname.lastIndex=0,!X.hostname.test(Y.hostname))J.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:HN.source,input:J.value,inst:w,continue:!X.abort})}if(X.protocol){if(X.protocol.lastIndex=0,!X.protocol.test(Y.protocol.endsWith(":")?Y.protocol.slice(0,-1):Y.protocol))J.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:X.protocol.source,input:J.value,inst:w,continue:!X.abort})}if(!G.endsWith("/")&&W.endsWith("/"))J.value=W.slice(0,-1);else J.value=W;return}catch(G){J.issues.push({code:"invalid_format",format:"url",input:J.value,inst:w,continue:!X.abort})}}}),oN=g("$ZodEmoji",(w,X)=>{X.pattern??(X.pattern=XN()),_6.init(w,X)}),rN=g("$ZodNanoID",(w,X)=>{X.pattern??(X.pattern=$N),_6.init(w,X)}),tN=g("$ZodCUID",(w,X)=>{X.pattern??(X.pattern=rO),_6.init(w,X)}),aN=g("$ZodCUID2",(w,X)=>{X.pattern??(X.pattern=tO),_6.init(w,X)}),sN=g("$ZodULID",(w,X)=>{X.pattern??(X.pattern=aO),_6.init(w,X)}),eN=g("$ZodXID",(w,X)=>{X.pattern??(X.pattern=sO),_6.init(w,X)}),$B=g("$ZodKSUID",(w,X)=>{X.pattern??(X.pattern=eO),_6.init(w,X)}),UB=g("$ZodISODateTime",(w,X)=>{X.pattern??(X.pattern=qN(X)),_6.init(w,X)}),wB=g("$ZodISODate",(w,X)=>{X.pattern??(X.pattern=NN),_6.init(w,X)}),zB=g("$ZodISOTime",(w,X)=>{X.pattern??(X.pattern=BN(X)),_6.init(w,X)}),XB=g("$ZodISODuration",(w,X)=>{X.pattern??(X.pattern=UN),_6.init(w,X)}),YB=g("$ZodIPv4",(w,X)=>{X.pattern??(X.pattern=YN),_6.init(w,X),w._zod.onattach.push((J)=>{let G=J._zod.bag;G.format="ipv4"})}),JB=g("$ZodIPv6",(w,X)=>{X.pattern??(X.pattern=JN),_6.init(w,X),w._zod.onattach.push((J)=>{let G=J._zod.bag;G.format="ipv6"}),w._zod.check=(J)=>{try{new URL(`http://[${J.value}]`)}catch{J.issues.push({code:"invalid_format",format:"ipv6",input:J.value,inst:w,continue:!X.abort})}}}),QB=g("$ZodCIDRv4",(w,X)=>{X.pattern??(X.pattern=QN),_6.init(w,X)}),GB=g("$ZodCIDRv6",(w,X)=>{X.pattern??(X.pattern=GN),_6.init(w,X),w._zod.check=(J)=>{let[G,Y]=J.value.split("/");try{if(!Y)throw Error();let W=Number(Y);if(`${W}`!==Y)throw Error();if(W<0||W>128)throw Error();new URL(`http://[${G}]`)}catch{J.issues.push({code:"invalid_format",format:"cidrv6",input:J.value,inst:w,continue:!X.abort})}}});function WB(w){if(w==="")return!0;if(w.length%4!==0)return!1;try{return atob(w),!0}catch{return!1}}var HB=g("$ZodBase64",(w,X)=>{X.pattern??(X.pattern=WN),_6.init(w,X),w._zod.onattach.push((J)=>{J._zod.bag.contentEncoding="base64"}),w._zod.check=(J)=>{if(WB(J.value))return;J.issues.push({code:"invalid_format",format:"base64",input:J.value,inst:w,continue:!X.abort})}});function eM(w){if(!S7.test(w))return!1;let X=w.replace(/[-_]/g,(G)=>G==="-"?"+":"/"),J=X.padEnd(Math.ceil(X.length/4)*4,"=");return WB(J)}var OB=g("$ZodBase64URL",(w,X)=>{X.pattern??(X.pattern=S7),_6.init(w,X),w._zod.onattach.push((J)=>{J._zod.bag.contentEncoding="base64url"}),w._zod.check=(J)=>{if(eM(J.value))return;J.issues.push({code:"invalid_format",format:"base64url",input:J.value,inst:w,continue:!X.abort})}}),NB=g("$ZodE164",(w,X)=>{X.pattern??(X.pattern=ON),_6.init(w,X)});function $R(w,X=null){try{let J=w.split(".");if(J.length!==3)return!1;let[G]=J;if(!G)return!1;let Y=JSON.parse(atob(G));if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(X&&(!("alg"in Y)||Y.alg!==X))return!1;return!0}catch{return!1}}var BB=g("$ZodJWT",(w,X)=>{_6.init(w,X),w._zod.check=(J)=>{if($R(J.value,X.alg))return;J.issues.push({code:"invalid_format",format:"jwt",input:J.value,inst:w,continue:!X.abort})}}),qB=g("$ZodCustomStringFormat",(w,X)=>{_6.init(w,X),w._zod.check=(J)=>{if(X.fn(J.value))return;J.issues.push({code:"invalid_format",format:X.format,input:J.value,inst:w,continue:!X.abort})}}),g7=g("$ZodNumber",(w,X)=>{b$.init(w,X),w._zod.pattern=w._zod.bag.pattern??jN,w._zod.parse=(J,G)=>{if(X.coerce)try{J.value=Number(J.value)}catch(q){}let Y=J.value;if(typeof Y==="number"&&!Number.isNaN(Y)&&Number.isFinite(Y))return J;let W=typeof Y==="number"?Number.isNaN(Y)?"NaN":!Number.isFinite(Y)?"Infinity":void 0:void 0;return J.issues.push({expected:"number",code:"invalid_type",input:Y,inst:w,...W?{received:W}:{}}),J}}),LB=g("$ZodNumber",(w,X)=>{IN.init(w,X),g7.init(w,X)}),JJ=g("$ZodBoolean",(w,X)=>{b$.init(w,X),w._zod.pattern=AN,w._zod.parse=(J,G)=>{if(X.coerce)try{J.value=Boolean(J.value)}catch(W){}let Y=J.value;if(typeof Y==="boolean")return J;return J.issues.push({expected:"boolean",code:"invalid_type",input:Y,inst:w}),J}}),y7=g("$ZodBigInt",(w,X)=>{b$.init(w,X),w._zod.pattern=KN,w._zod.parse=(J,G)=>{if(X.coerce)try{J.value=BigInt(J.value)}catch(Y){}if(typeof J.value==="bigint")return J;return J.issues.push({expected:"bigint",code:"invalid_type",input:J.value,inst:w}),J}}),KB=g("$ZodBigInt",(w,X)=>{_N.init(w,X),y7.init(w,X)}),DB=g("$ZodSymbol",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(typeof Y==="symbol")return J;return J.issues.push({expected:"symbol",code:"invalid_type",input:Y,inst:w}),J}}),jB=g("$ZodUndefined",(w,X)=>{b$.init(w,X),w._zod.pattern=VN,w._zod.values=new Set([void 0]),w._zod.optin="optional",w._zod.optout="optional",w._zod.parse=(J,G)=>{let Y=J.value;if(typeof Y>"u")return J;return J.issues.push({expected:"undefined",code:"invalid_type",input:Y,inst:w}),J}}),AB=g("$ZodNull",(w,X)=>{b$.init(w,X),w._zod.pattern=FN,w._zod.values=new Set([null]),w._zod.parse=(J,G)=>{let Y=J.value;if(Y===null)return J;return J.issues.push({expected:"null",code:"invalid_type",input:Y,inst:w}),J}}),FB=g("$ZodAny",(w,X)=>{b$.init(w,X),w._zod.parse=(J)=>J}),eX=g("$ZodUnknown",(w,X)=>{b$.init(w,X),w._zod.parse=(J)=>J}),VB=g("$ZodNever",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{return J.issues.push({expected:"never",code:"invalid_type",input:J.value,inst:w}),J}}),EB=g("$ZodVoid",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(typeof Y>"u")return J;return J.issues.push({expected:"void",code:"invalid_type",input:Y,inst:w}),J}}),MB=g("$ZodDate",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{if(X.coerce)try{J.value=new Date(J.value)}catch(K){}let Y=J.value,W=Y instanceof Date;if(W&&!Number.isNaN(Y.getTime()))return J;return J.issues.push({expected:"date",code:"invalid_type",input:Y,...W?{received:"Invalid Date"}:{},inst:w}),J}});function cM(w,X,J){if(w.issues.length)X.issues.push(...i4(J,w.issues));X.value[J]=w.value}var QJ=g("$ZodArray",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(!Array.isArray(Y))return J.issues.push({expected:"array",code:"invalid_type",input:Y,inst:w}),J;J.value=Array(Y.length);let W=[];for(let q=0;q<Y.length;q++){let K=Y[q],A=X.element._zod.run({value:K,issues:[]},G);if(A instanceof Promise)W.push(A.then((j)=>cM(j,J,q)));else cM(A,J,q)}if(W.length)return Promise.all(W).then(()=>J);return J}});function k7(w,X,J){if(w.issues.length)X.issues.push(...i4(J,w.issues));X.value[J]=w.value}function iM(w,X,J,G){if(w.issues.length)if(G[J]===void 0)if(J in G)X.value[J]=void 0;else X.value[J]=w.value;else X.issues.push(...i4(J,w.issues));else if(w.value===void 0){if(J in G)X.value[J]=void 0}else X.value[J]=w.value}var RB=g("$ZodObject",(w,X)=>{b$.init(w,X);let J=sY(()=>{let M=Object.keys(X.shape);for(let P of M)if(!(X.shape[P]instanceof b$))throw Error(`Invalid element at key "${P}": expected a Zod schema`);let Z=mO(X.shape);return{shape:X.shape,keys:M,keySet:new Set(M),numKeys:M.length,optionalKeys:new Set(Z)}});J6(w._zod,"propValues",()=>{let M=X.shape,Z={};for(let P in M){let f=M[P]._zod;if(f.values){Z[P]??(Z[P]=new Set);for(let c of f.values)Z[P].add(c)}}return Z});let G=(M)=>{let Z=new C7(["shape","payload","ctx"]),P=J.value,f=(C)=>{let R=Mz(C);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};Z.write("const input = payload.value;");let c=Object.create(null),p=0;for(let C of P.keys)c[C]=`key_${p++}`;Z.write("const newResult = {}");for(let C of P.keys)if(P.optionalKeys.has(C)){let R=c[C];Z.write(`const ${R} = ${f(C)};`);let s=Mz(C);Z.write(`
|
|
241
|
+
if (${R}.issues.length) {
|
|
242
|
+
if (input[${s}] === undefined) {
|
|
243
|
+
if (${s} in input) {
|
|
244
|
+
newResult[${s}] = undefined;
|
|
245
|
+
}
|
|
246
|
+
} else {
|
|
247
|
+
payload.issues = payload.issues.concat(
|
|
248
|
+
${R}.issues.map((iss) => ({
|
|
249
|
+
...iss,
|
|
250
|
+
path: iss.path ? [${s}, ...iss.path] : [${s}],
|
|
251
|
+
}))
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
} else if (${R}.value === undefined) {
|
|
255
|
+
if (${s} in input) newResult[${s}] = undefined;
|
|
256
|
+
} else {
|
|
257
|
+
newResult[${s}] = ${R}.value;
|
|
258
|
+
}
|
|
259
|
+
`)}else{let R=c[C];Z.write(`const ${R} = ${f(C)};`),Z.write(`
|
|
260
|
+
if (${R}.issues.length) payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
|
|
261
|
+
...iss,
|
|
262
|
+
path: iss.path ? [${Mz(C)}, ...iss.path] : [${Mz(C)}]
|
|
263
|
+
})));`),Z.write(`newResult[${Mz(C)}] = ${R}.value`)}Z.write("payload.value = newResult;"),Z.write("return payload;");let k=Z.compile();return(C,R)=>k(M,C,R)},Y,W=rX,q=!rY.jitless,A=q&&hO.value,j=X.catchall,E;w._zod.parse=(M,Z)=>{E??(E=J.value);let P=M.value;if(!W(P))return M.issues.push({expected:"object",code:"invalid_type",input:P,inst:w}),M;let f=[];if(q&&A&&Z?.async===!1&&Z.jitless!==!0){if(!Y)Y=G(X.shape);M=Y(M,Z)}else{M.value={};let R=E.shape;for(let s of E.keys){let G$=R[s],N$=G$._zod.run({value:P[s],issues:[]},Z),a=G$._zod.optin==="optional"&&G$._zod.optout==="optional";if(N$ instanceof Promise)f.push(N$.then((w$)=>a?iM(w$,M,s,P):k7(w$,M,s)));else if(a)iM(N$,M,s,P);else k7(N$,M,s)}}if(!j)return f.length?Promise.all(f).then(()=>M):M;let c=[],p=E.keySet,k=j._zod,C=k.def.type;for(let R of Object.keys(P)){if(p.has(R))continue;if(C==="never"){c.push(R);continue}let s=k.run({value:P[R],issues:[]},Z);if(s instanceof Promise)f.push(s.then((G$)=>k7(G$,M,R)));else k7(s,M,R)}if(c.length)M.issues.push({code:"unrecognized_keys",keys:c,input:P,inst:w});if(!f.length)return M;return Promise.all(f).then(()=>{return M})}});function lM(w,X,J,G){for(let Y of w)if(Y.issues.length===0)return X.value=Y.value,X;return X.issues.push({code:"invalid_union",input:X.value,inst:J,errors:w.map((Y)=>Y.issues.map((W)=>B1(W,G,$4())))}),X}var f7=g("$ZodUnion",(w,X)=>{b$.init(w,X),J6(w._zod,"optin",()=>X.options.some((J)=>J._zod.optin==="optional")?"optional":void 0),J6(w._zod,"optout",()=>X.options.some((J)=>J._zod.optout==="optional")?"optional":void 0),J6(w._zod,"values",()=>{if(X.options.every((J)=>J._zod.values))return new Set(X.options.flatMap((J)=>Array.from(J._zod.values)));return}),J6(w._zod,"pattern",()=>{if(X.options.every((J)=>J._zod.pattern)){let J=X.options.map((G)=>G._zod.pattern);return new RegExp(`^(${J.map((G)=>eY(G.source)).join("|")})$`)}return}),w._zod.parse=(J,G)=>{let Y=!1,W=[];for(let q of X.options){let K=q._zod.run({value:J.value,issues:[]},G);if(K instanceof Promise)W.push(K),Y=!0;else{if(K.issues.length===0)return K;W.push(K)}}if(!Y)return lM(W,J,w,G);return Promise.all(W).then((q)=>{return lM(q,J,w,G)})}}),IB=g("$ZodDiscriminatedUnion",(w,X)=>{f7.init(w,X);let J=w._zod.parse;J6(w._zod,"propValues",()=>{let Y={};for(let W of X.options){let q=W._zod.propValues;if(!q||Object.keys(q).length===0)throw Error(`Invalid discriminated union option at index "${X.options.indexOf(W)}"`);for(let[K,A]of Object.entries(q)){if(!Y[K])Y[K]=new Set;for(let j of A)Y[K].add(j)}}return Y});let G=sY(()=>{let Y=X.options,W=new Map;for(let q of Y){let K=q._zod.propValues[X.discriminator];if(!K||K.size===0)throw Error(`Invalid discriminated union option at index "${X.options.indexOf(q)}"`);for(let A of K){if(W.has(A))throw Error(`Duplicate discriminator value "${String(A)}"`);W.set(A,q)}}return W});w._zod.parse=(Y,W)=>{let q=Y.value;if(!rX(q))return Y.issues.push({code:"invalid_type",expected:"object",input:q,inst:w}),Y;let K=G.value.get(q?.[X.discriminator]);if(K)return K._zod.run(Y,W);if(X.unionFallback)return J(Y,W);return Y.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:q,path:[X.discriminator],inst:w}),Y}}),_B=g("$ZodIntersection",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value,W=X.left._zod.run({value:Y,issues:[]},G),q=X.right._zod.run({value:Y,issues:[]},G);if(W instanceof Promise||q instanceof Promise)return Promise.all([W,q]).then(([A,j])=>{return nM(J,A,j)});return nM(J,W,q)}});function iN(w,X){if(w===X)return{valid:!0,data:w};if(w instanceof Date&&X instanceof Date&&+w===+X)return{valid:!0,data:w};if(tX(w)&&tX(X)){let J=Object.keys(X),G=Object.keys(w).filter((W)=>J.indexOf(W)!==-1),Y={...w,...X};for(let W of G){let q=iN(w[W],X[W]);if(!q.valid)return{valid:!1,mergeErrorPath:[W,...q.mergeErrorPath]};Y[W]=q.data}return{valid:!0,data:Y}}if(Array.isArray(w)&&Array.isArray(X)){if(w.length!==X.length)return{valid:!1,mergeErrorPath:[]};let J=[];for(let G=0;G<w.length;G++){let Y=w[G],W=X[G],q=iN(Y,W);if(!q.valid)return{valid:!1,mergeErrorPath:[G,...q.mergeErrorPath]};J.push(q.data)}return{valid:!0,data:J}}return{valid:!1,mergeErrorPath:[]}}function nM(w,X,J){if(X.issues.length)w.issues.push(...X.issues);if(J.issues.length)w.issues.push(...J.issues);if(Rz(w))return w;let G=iN(X.value,J.value);if(!G.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(G.mergeErrorPath)}`);return w.value=G.data,w}var vz=g("$ZodTuple",(w,X)=>{b$.init(w,X);let J=X.items,G=J.length-[...J].reverse().findIndex((Y)=>Y._zod.optin!=="optional");w._zod.parse=(Y,W)=>{let q=Y.value;if(!Array.isArray(q))return Y.issues.push({input:q,inst:w,expected:"tuple",code:"invalid_type"}),Y;Y.value=[];let K=[];if(!X.rest){let j=q.length>J.length,E=q.length<G-1;if(j||E)return Y.issues.push({input:q,inst:w,origin:"array",...j?{code:"too_big",maximum:J.length}:{code:"too_small",minimum:J.length}}),Y}let A=-1;for(let j of J){if(A++,A>=q.length){if(A>=G)continue}let E=j._zod.run({value:q[A],issues:[]},W);if(E instanceof Promise)K.push(E.then((M)=>x7(M,Y,A)));else x7(E,Y,A)}if(X.rest){let j=q.slice(J.length);for(let E of j){A++;let M=X.rest._zod.run({value:E,issues:[]},W);if(M instanceof Promise)K.push(M.then((Z)=>x7(Z,Y,A)));else x7(M,Y,A)}}if(K.length)return Promise.all(K).then(()=>Y);return Y}});function x7(w,X,J){if(w.issues.length)X.issues.push(...i4(J,w.issues));X.value[J]=w.value}var PB=g("$ZodRecord",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(!tX(Y))return J.issues.push({expected:"record",code:"invalid_type",input:Y,inst:w}),J;let W=[];if(X.keyType._zod.values){let q=X.keyType._zod.values;J.value={};for(let A of q)if(typeof A==="string"||typeof A==="number"||typeof A==="symbol"){let j=X.valueType._zod.run({value:Y[A],issues:[]},G);if(j instanceof Promise)W.push(j.then((E)=>{if(E.issues.length)J.issues.push(...i4(A,E.issues));J.value[A]=E.value}));else{if(j.issues.length)J.issues.push(...i4(A,j.issues));J.value[A]=j.value}}let K;for(let A in Y)if(!q.has(A))K=K??[],K.push(A);if(K&&K.length>0)J.issues.push({code:"unrecognized_keys",input:Y,inst:w,keys:K})}else{J.value={};for(let q of Reflect.ownKeys(Y)){if(q==="__proto__")continue;let K=X.keyType._zod.run({value:q,issues:[]},G);if(K instanceof Promise)throw Error("Async schemas not supported in object keys currently");if(K.issues.length){J.issues.push({origin:"record",code:"invalid_key",issues:K.issues.map((j)=>B1(j,G,$4())),input:q,path:[q],inst:w}),J.value[K.value]=K.value;continue}let A=X.valueType._zod.run({value:Y[q],issues:[]},G);if(A instanceof Promise)W.push(A.then((j)=>{if(j.issues.length)J.issues.push(...i4(q,j.issues));J.value[K.value]=j.value}));else{if(A.issues.length)J.issues.push(...i4(q,A.issues));J.value[K.value]=A.value}}}if(W.length)return Promise.all(W).then(()=>J);return J}}),vB=g("$ZodMap",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(!(Y instanceof Map))return J.issues.push({expected:"map",code:"invalid_type",input:Y,inst:w}),J;let W=[];J.value=new Map;for(let[q,K]of Y){let A=X.keyType._zod.run({value:q,issues:[]},G),j=X.valueType._zod.run({value:K,issues:[]},G);if(A instanceof Promise||j instanceof Promise)W.push(Promise.all([A,j]).then(([E,M])=>{dM(E,M,J,q,Y,w,G)}));else dM(A,j,J,q,Y,w,G)}if(W.length)return Promise.all(W).then(()=>J);return J}});function dM(w,X,J,G,Y,W,q){if(w.issues.length)if($J.has(typeof G))J.issues.push(...i4(G,w.issues));else J.issues.push({origin:"map",code:"invalid_key",input:Y,inst:W,issues:w.issues.map((K)=>B1(K,q,$4()))});if(X.issues.length)if($J.has(typeof G))J.issues.push(...i4(G,X.issues));else J.issues.push({origin:"map",code:"invalid_element",input:Y,inst:W,key:G,issues:X.issues.map((K)=>B1(K,q,$4()))});J.value.set(w.value,X.value)}var ZB=g("$ZodSet",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(!(Y instanceof Set))return J.issues.push({input:Y,inst:w,expected:"set",code:"invalid_type"}),J;let W=[];J.value=new Set;for(let q of Y){let K=X.valueType._zod.run({value:q,issues:[]},G);if(K instanceof Promise)W.push(K.then((A)=>pM(A,J)));else pM(K,J)}if(W.length)return Promise.all(W).then(()=>J);return J}});function pM(w,X){if(w.issues.length)X.issues.push(...w.issues);X.value.add(w.value)}var SB=g("$ZodEnum",(w,X)=>{b$.init(w,X);let J=aY(X.entries);w._zod.values=new Set(J),w._zod.pattern=new RegExp(`^(${J.filter((G)=>$J.has(typeof G)).map((G)=>typeof G==="string"?NU(G):G.toString()).join("|")})$`),w._zod.parse=(G,Y)=>{let W=G.value;if(w._zod.values.has(W))return G;return G.issues.push({code:"invalid_value",values:J,input:W,inst:w}),G}}),TB=g("$ZodLiteral",(w,X)=>{b$.init(w,X),w._zod.values=new Set(X.values),w._zod.pattern=new RegExp(`^(${X.values.map((J)=>typeof J==="string"?NU(J):J?J.toString():String(J)).join("|")})$`),w._zod.parse=(J,G)=>{let Y=J.value;if(w._zod.values.has(Y))return J;return J.issues.push({code:"invalid_value",values:X.values,input:Y,inst:w}),J}}),bB=g("$ZodFile",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=J.value;if(Y instanceof File)return J;return J.issues.push({expected:"file",code:"invalid_type",input:Y,inst:w}),J}}),GJ=g("$ZodTransform",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=X.transform(J.value,J);if(G.async)return(Y instanceof Promise?Y:Promise.resolve(Y)).then((q)=>{return J.value=q,J});if(Y instanceof Promise)throw new OU;return J.value=Y,J}}),CB=g("$ZodOptional",(w,X)=>{b$.init(w,X),w._zod.optin="optional",w._zod.optout="optional",J6(w._zod,"values",()=>{return X.innerType._zod.values?new Set([...X.innerType._zod.values,void 0]):void 0}),J6(w._zod,"pattern",()=>{let J=X.innerType._zod.pattern;return J?new RegExp(`^(${eY(J.source)})?$`):void 0}),w._zod.parse=(J,G)=>{if(X.innerType._zod.optin==="optional")return X.innerType._zod.run(J,G);if(J.value===void 0)return J;return X.innerType._zod.run(J,G)}}),kB=g("$ZodNullable",(w,X)=>{b$.init(w,X),J6(w._zod,"optin",()=>X.innerType._zod.optin),J6(w._zod,"optout",()=>X.innerType._zod.optout),J6(w._zod,"pattern",()=>{let J=X.innerType._zod.pattern;return J?new RegExp(`^(${eY(J.source)}|null)$`):void 0}),J6(w._zod,"values",()=>{return X.innerType._zod.values?new Set([...X.innerType._zod.values,null]):void 0}),w._zod.parse=(J,G)=>{if(J.value===null)return J;return X.innerType._zod.run(J,G)}}),xB=g("$ZodDefault",(w,X)=>{b$.init(w,X),w._zod.optin="optional",J6(w._zod,"values",()=>X.innerType._zod.values),w._zod.parse=(J,G)=>{if(J.value===void 0)return J.value=X.defaultValue,J;let Y=X.innerType._zod.run(J,G);if(Y instanceof Promise)return Y.then((W)=>oM(W,X));return oM(Y,X)}});function oM(w,X){if(w.value===void 0)w.value=X.defaultValue;return w}var gB=g("$ZodPrefault",(w,X)=>{b$.init(w,X),w._zod.optin="optional",J6(w._zod,"values",()=>X.innerType._zod.values),w._zod.parse=(J,G)=>{if(J.value===void 0)J.value=X.defaultValue;return X.innerType._zod.run(J,G)}}),yB=g("$ZodNonOptional",(w,X)=>{b$.init(w,X),J6(w._zod,"values",()=>{let J=X.innerType._zod.values;return J?new Set([...J].filter((G)=>G!==void 0)):void 0}),w._zod.parse=(J,G)=>{let Y=X.innerType._zod.run(J,G);if(Y instanceof Promise)return Y.then((W)=>rM(W,w));return rM(Y,w)}});function rM(w,X){if(!w.issues.length&&w.value===void 0)w.issues.push({code:"invalid_type",expected:"nonoptional",input:w.value,inst:X});return w}var fB=g("$ZodSuccess",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{let Y=X.innerType._zod.run(J,G);if(Y instanceof Promise)return Y.then((W)=>{return J.value=W.issues.length===0,J});return J.value=Y.issues.length===0,J}}),hB=g("$ZodCatch",(w,X)=>{b$.init(w,X),w._zod.optin="optional",J6(w._zod,"optout",()=>X.innerType._zod.optout),J6(w._zod,"values",()=>X.innerType._zod.values),w._zod.parse=(J,G)=>{let Y=X.innerType._zod.run(J,G);if(Y instanceof Promise)return Y.then((W)=>{if(J.value=W.value,W.issues.length)J.value=X.catchValue({...J,error:{issues:W.issues.map((q)=>B1(q,G,$4()))},input:J.value}),J.issues=[];return J});if(J.value=Y.value,Y.issues.length)J.value=X.catchValue({...J,error:{issues:Y.issues.map((W)=>B1(W,G,$4()))},input:J.value}),J.issues=[];return J}}),uB=g("$ZodNaN",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{if(typeof J.value!=="number"||!Number.isNaN(J.value))return J.issues.push({input:J.value,inst:w,expected:"nan",code:"invalid_type"}),J;return J}}),WJ=g("$ZodPipe",(w,X)=>{b$.init(w,X),J6(w._zod,"values",()=>X.in._zod.values),J6(w._zod,"optin",()=>X.in._zod.optin),J6(w._zod,"optout",()=>X.out._zod.optout),w._zod.parse=(J,G)=>{let Y=X.in._zod.run(J,G);if(Y instanceof Promise)return Y.then((W)=>tM(W,X,G));return tM(Y,X,G)}});function tM(w,X,J){if(Rz(w))return w;return X.out._zod.run({value:w.value,issues:w.issues},J)}var mB=g("$ZodReadonly",(w,X)=>{b$.init(w,X),J6(w._zod,"propValues",()=>X.innerType._zod.propValues),J6(w._zod,"values",()=>X.innerType._zod.values),J6(w._zod,"optin",()=>X.innerType._zod.optin),J6(w._zod,"optout",()=>X.innerType._zod.optout),w._zod.parse=(J,G)=>{let Y=X.innerType._zod.run(J,G);if(Y instanceof Promise)return Y.then(aM);return aM(Y)}});function aM(w){return w.value=Object.freeze(w.value),w}var cB=g("$ZodTemplateLiteral",(w,X)=>{b$.init(w,X);let J=[];for(let G of X.parts)if(G instanceof b$){if(!G._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...G._zod.traits].shift()}`);let Y=G._zod.pattern instanceof RegExp?G._zod.pattern.source:G._zod.pattern;if(!Y)throw Error(`Invalid template literal part: ${G._zod.traits}`);let W=Y.startsWith("^")?1:0,q=Y.endsWith("$")?Y.length-1:Y.length;J.push(Y.slice(W,q))}else if(G===null||uO.has(typeof G))J.push(NU(`${G}`));else throw Error(`Invalid template literal part: ${G}`);w._zod.pattern=new RegExp(`^${J.join("")}$`),w._zod.parse=(G,Y)=>{if(typeof G.value!=="string")return G.issues.push({input:G.value,inst:w,expected:"template_literal",code:"invalid_type"}),G;if(w._zod.pattern.lastIndex=0,!w._zod.pattern.test(G.value))return G.issues.push({input:G.value,inst:w,code:"invalid_format",format:"template_literal",pattern:w._zod.pattern.source}),G;return G}}),iB=g("$ZodPromise",(w,X)=>{b$.init(w,X),w._zod.parse=(J,G)=>{return Promise.resolve(J.value).then((Y)=>X.innerType._zod.run({value:Y,issues:[]},G))}}),lB=g("$ZodLazy",(w,X)=>{b$.init(w,X),J6(w._zod,"innerType",()=>X.getter()),J6(w._zod,"pattern",()=>w._zod.innerType._zod.pattern),J6(w._zod,"propValues",()=>w._zod.innerType._zod.propValues),J6(w._zod,"optin",()=>w._zod.innerType._zod.optin),J6(w._zod,"optout",()=>w._zod.innerType._zod.optout),w._zod.parse=(J,G)=>{return w._zod.innerType._zod.run(J,G)}}),nB=g("$ZodCustom",(w,X)=>{u6.init(w,X),b$.init(w,X),w._zod.parse=(J,G)=>{return J},w._zod.check=(J)=>{let G=J.value,Y=X.fn(G);if(Y instanceof Promise)return Y.then((W)=>sM(W,J,G,w));sM(Y,J,G,w);return}});function sM(w,X,J,G){if(!w){let Y={code:"custom",input:J,inst:G,path:[...G._zod.def.path??[]],continue:!G._zod.def.abort};if(G._zod.def.params)Y.params=G._zod.def.params;X.issues.push(lO(Y))}}var OJ={};Fz(OJ,{zhTW:()=>Zq,zhCN:()=>vq,vi:()=>Pq,ur:()=>_q,ua:()=>Iq,tr:()=>Rq,th:()=>Mq,ta:()=>Eq,sv:()=>Vq,sl:()=>Fq,ru:()=>Aq,pt:()=>jq,ps:()=>Kq,pl:()=>Dq,ota:()=>Lq,no:()=>qq,nl:()=>Bq,ms:()=>Nq,mk:()=>Oq,ko:()=>Hq,kh:()=>Wq,ja:()=>Gq,it:()=>Qq,id:()=>Jq,hu:()=>Yq,he:()=>Xq,frCA:()=>zq,fr:()=>wq,fi:()=>Uq,fa:()=>$q,es:()=>eB,eo:()=>sB,en:()=>HJ,de:()=>aB,cs:()=>tB,ca:()=>rB,be:()=>oB,az:()=>pB,ar:()=>dB});var MC=()=>{let w={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return(Y)=>{switch(Y.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${Y.expected}، ولكن تم إدخال ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`مدخلات غير مقبولة: يفترض إدخال ${z$(Y.values[0])}`;return`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return` أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${W} ${Y.maximum.toString()} ${q.unit??"عنصر"}`;return`أكبر من اللازم: يفترض أن تكون ${Y.origin??"القيمة"} ${W} ${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${W} ${Y.minimum.toString()} ${q.unit}`;return`أصغر من اللازم: يفترض لـ ${Y.origin} أن يكون ${W} ${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`نَص غير مقبول: يجب أن يبدأ بـ "${Y.prefix}"`;if(W.format==="ends_with")return`نَص غير مقبول: يجب أن ينتهي بـ "${W.suffix}"`;if(W.format==="includes")return`نَص غير مقبول: يجب أن يتضمَّن "${W.includes}"`;if(W.format==="regex")return`نَص غير مقبول: يجب أن يطابق النمط ${W.pattern}`;return`${G[W.format]??Y.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${Y.divisor}`;case"unrecognized_keys":return`معرف${Y.keys.length>1?"ات":""} غريب${Y.keys.length>1?"ة":""}: ${l(Y.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${Y.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${Y.origin}`;default:return"مدخل غير مقبول"}}};function dB(){return{localeError:MC()}}var RC=()=>{let w={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${Y.expected}, daxil olan ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Yanlış dəyər: gözlənilən ${z$(Y.values[0])}`;return`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${W}${Y.maximum.toString()} ${q.unit??"element"}`;return`Çox böyük: gözlənilən ${Y.origin??"dəyər"} ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Çox kiçik: gözlənilən ${Y.origin} ${W}${Y.minimum.toString()} ${q.unit}`;return`Çox kiçik: gözlənilən ${Y.origin} ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Yanlış mətn: "${W.prefix}" ilə başlamalıdır`;if(W.format==="ends_with")return`Yanlış mətn: "${W.suffix}" ilə bitməlidir`;if(W.format==="includes")return`Yanlış mətn: "${W.includes}" daxil olmalıdır`;if(W.format==="regex")return`Yanlış mətn: ${W.pattern} şablonuna uyğun olmalıdır`;return`Yanlış ${G[W.format]??Y.format}`}case"not_multiple_of":return`Yanlış ədəd: ${Y.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${Y.keys.length>1?"lar":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${Y.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function pB(){return{localeError:RC()}}function wR(w,X,J,G){let Y=Math.abs(w),W=Y%10,q=Y%100;if(q>=11&&q<=19)return G;if(W===1)return X;if(W>=2&&W<=4)return J;return G}var IC=()=>{let w={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"лік";case"object":{if(Array.isArray(Y))return"масіў";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return(Y)=>{switch(Y.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${Y.expected}, атрымана ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Няправільны ўвод: чакалася ${z$(Y.values[0])}`;return`Няправільны варыянт: чакаўся адзін з ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q){let K=Number(Y.maximum),A=wR(K,q.unit.one,q.unit.few,q.unit.many);return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна ${q.verb} ${W}${Y.maximum.toString()} ${A}`}return`Занадта вялікі: чакалася, што ${Y.origin??"значэнне"} павінна быць ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q){let K=Number(Y.minimum),A=wR(K,q.unit.one,q.unit.few,q.unit.many);return`Занадта малы: чакалася, што ${Y.origin} павінна ${q.verb} ${W}${Y.minimum.toString()} ${A}`}return`Занадта малы: чакалася, што ${Y.origin} павінна быць ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Няправільны радок: павінен пачынацца з "${W.prefix}"`;if(W.format==="ends_with")return`Няправільны радок: павінен заканчвацца на "${W.suffix}"`;if(W.format==="includes")return`Няправільны радок: павінен змяшчаць "${W.includes}"`;if(W.format==="regex")return`Няправільны радок: павінен адпавядаць шаблону ${W.pattern}`;return`Няправільны ${G[W.format]??Y.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${Y.keys.length>1?"ключы":"ключ"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${Y.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${Y.origin}`;default:return"Няправільны ўвод"}}};function oB(){return{localeError:IC()}}var _C=()=>{let w={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(Y)=>{switch(Y.code){case"invalid_type":return`Tipus invàlid: s'esperava ${Y.expected}, s'ha rebut ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Valor invàlid: s'esperava ${z$(Y.values[0])}`;return`Opció invàlida: s'esperava una de ${l(Y.values," o ")}`;case"too_big":{let W=Y.inclusive?"com a màxim":"menys de",q=X(Y.origin);if(q)return`Massa gran: s'esperava que ${Y.origin??"el valor"} contingués ${W} ${Y.maximum.toString()} ${q.unit??"elements"}`;return`Massa gran: s'esperava que ${Y.origin??"el valor"} fos ${W} ${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?"com a mínim":"més de",q=X(Y.origin);if(q)return`Massa petit: s'esperava que ${Y.origin} contingués ${W} ${Y.minimum.toString()} ${q.unit}`;return`Massa petit: s'esperava que ${Y.origin} fos ${W} ${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Format invàlid: ha de començar amb "${W.prefix}"`;if(W.format==="ends_with")return`Format invàlid: ha d'acabar amb "${W.suffix}"`;if(W.format==="includes")return`Format invàlid: ha d'incloure "${W.includes}"`;if(W.format==="regex")return`Format invàlid: ha de coincidir amb el patró ${W.pattern}`;return`Format invàlid per a ${G[W.format]??Y.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${Y.divisor}`;case"unrecognized_keys":return`Clau${Y.keys.length>1?"s":""} no reconeguda${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${Y.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${Y.origin}`;default:return"Entrada invàlida"}}};function rB(){return{localeError:_C()}}var PC=()=>{let w={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(Y))return"pole";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return(Y)=>{switch(Y.code){case"invalid_type":return`Neplatný vstup: očekáváno ${Y.expected}, obdrženo ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Neplatný vstup: očekáváno ${z$(Y.values[0])}`;return`Neplatná možnost: očekávána jedna z hodnot ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí mít ${W}${Y.maximum.toString()} ${q.unit??"prvků"}`;return`Hodnota je příliš velká: ${Y.origin??"hodnota"} musí být ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí mít ${W}${Y.minimum.toString()} ${q.unit??"prvků"}`;return`Hodnota je příliš malá: ${Y.origin??"hodnota"} musí být ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Neplatný řetězec: musí začínat na "${W.prefix}"`;if(W.format==="ends_with")return`Neplatný řetězec: musí končit na "${W.suffix}"`;if(W.format==="includes")return`Neplatný řetězec: musí obsahovat "${W.includes}"`;if(W.format==="regex")return`Neplatný řetězec: musí odpovídat vzoru ${W.pattern}`;return`Neplatný formát ${G[W.format]??Y.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${Y.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${l(Y.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${Y.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${Y.origin}`;default:return"Neplatný vstup"}}};function tB(){return{localeError:PC()}}var vC=()=>{let w={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"Zahl";case"object":{if(Array.isArray(Y))return"Array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return(Y)=>{switch(Y.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${Y.expected}, erhalten ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Ungültige Eingabe: erwartet ${z$(Y.values[0])}`;return`Ungültige Option: erwartet eine von ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${W}${Y.maximum.toString()} ${q.unit??"Elemente"} hat`;return`Zu groß: erwartet, dass ${Y.origin??"Wert"} ${W}${Y.maximum.toString()} ist`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Zu klein: erwartet, dass ${Y.origin} ${W}${Y.minimum.toString()} ${q.unit} hat`;return`Zu klein: erwartet, dass ${Y.origin} ${W}${Y.minimum.toString()} ist`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Ungültiger String: muss mit "${W.prefix}" beginnen`;if(W.format==="ends_with")return`Ungültiger String: muss mit "${W.suffix}" enden`;if(W.format==="includes")return`Ungültiger String: muss "${W.includes}" enthalten`;if(W.format==="regex")return`Ungültiger String: muss dem Muster ${W.pattern} entsprechen`;return`Ungültig: ${G[W.format]??Y.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${Y.divisor} sein`;case"unrecognized_keys":return`${Y.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${Y.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${Y.origin}`;default:return"Ungültige Eingabe"}}};function aB(){return{localeError:vC()}}var ZC=(w)=>{let X=typeof w;switch(X){case"number":return Number.isNaN(w)?"NaN":"number";case"object":{if(Array.isArray(w))return"array";if(w===null)return"null";if(Object.getPrototypeOf(w)!==Object.prototype&&w.constructor)return w.constructor.name}}return X},SC=()=>{let w={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"}};function X(G){return w[G]??null}let J={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return(G)=>{switch(G.code){case"invalid_type":return`Invalid input: expected ${G.expected}, received ${ZC(G.input)}`;case"invalid_value":if(G.values.length===1)return`Invalid input: expected ${z$(G.values[0])}`;return`Invalid option: expected one of ${l(G.values,"|")}`;case"too_big":{let Y=G.inclusive?"<=":"<",W=X(G.origin);if(W)return`Too big: expected ${G.origin??"value"} to have ${Y}${G.maximum.toString()} ${W.unit??"elements"}`;return`Too big: expected ${G.origin??"value"} to be ${Y}${G.maximum.toString()}`}case"too_small":{let Y=G.inclusive?">=":">",W=X(G.origin);if(W)return`Too small: expected ${G.origin} to have ${Y}${G.minimum.toString()} ${W.unit}`;return`Too small: expected ${G.origin} to be ${Y}${G.minimum.toString()}`}case"invalid_format":{let Y=G;if(Y.format==="starts_with")return`Invalid string: must start with "${Y.prefix}"`;if(Y.format==="ends_with")return`Invalid string: must end with "${Y.suffix}"`;if(Y.format==="includes")return`Invalid string: must include "${Y.includes}"`;if(Y.format==="regex")return`Invalid string: must match pattern ${Y.pattern}`;return`Invalid ${J[Y.format]??G.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${G.divisor}`;case"unrecognized_keys":return`Unrecognized key${G.keys.length>1?"s":""}: ${l(G.keys,", ")}`;case"invalid_key":return`Invalid key in ${G.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${G.origin}`;default:return"Invalid input"}}};function HJ(){return{localeError:SC()}}var TC=(w)=>{let X=typeof w;switch(X){case"number":return Number.isNaN(w)?"NaN":"nombro";case"object":{if(Array.isArray(w))return"tabelo";if(w===null)return"senvalora";if(Object.getPrototypeOf(w)!==Object.prototype&&w.constructor)return w.constructor.name}}return X},bC=()=>{let w={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function X(G){return w[G]??null}let J={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"};return(G)=>{switch(G.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${G.expected}, riceviĝis ${TC(G.input)}`;case"invalid_value":if(G.values.length===1)return`Nevalida enigo: atendiĝis ${z$(G.values[0])}`;return`Nevalida opcio: atendiĝis unu el ${l(G.values,"|")}`;case"too_big":{let Y=G.inclusive?"<=":"<",W=X(G.origin);if(W)return`Tro granda: atendiĝis ke ${G.origin??"valoro"} havu ${Y}${G.maximum.toString()} ${W.unit??"elementojn"}`;return`Tro granda: atendiĝis ke ${G.origin??"valoro"} havu ${Y}${G.maximum.toString()}`}case"too_small":{let Y=G.inclusive?">=":">",W=X(G.origin);if(W)return`Tro malgranda: atendiĝis ke ${G.origin} havu ${Y}${G.minimum.toString()} ${W.unit}`;return`Tro malgranda: atendiĝis ke ${G.origin} estu ${Y}${G.minimum.toString()}`}case"invalid_format":{let Y=G;if(Y.format==="starts_with")return`Nevalida karaktraro: devas komenciĝi per "${Y.prefix}"`;if(Y.format==="ends_with")return`Nevalida karaktraro: devas finiĝi per "${Y.suffix}"`;if(Y.format==="includes")return`Nevalida karaktraro: devas inkluzivi "${Y.includes}"`;if(Y.format==="regex")return`Nevalida karaktraro: devas kongrui kun la modelo ${Y.pattern}`;return`Nevalida ${J[Y.format]??G.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${G.divisor}`;case"unrecognized_keys":return`Nekonata${G.keys.length>1?"j":""} ŝlosilo${G.keys.length>1?"j":""}: ${l(G.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${G.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${G.origin}`;default:return"Nevalida enigo"}}};function sB(){return{localeError:bC()}}var CC=()=>{let w={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"número";case"object":{if(Array.isArray(Y))return"arreglo";if(Y===null)return"nulo";if(Object.getPrototypeOf(Y)!==Object.prototype)return Y.constructor.name}}return W},G={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(Y)=>{switch(Y.code){case"invalid_type":return`Entrada inválida: se esperaba ${Y.expected}, recibido ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Entrada inválida: se esperaba ${z$(Y.values[0])}`;return`Opción inválida: se esperaba una de ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Demasiado grande: se esperaba que ${Y.origin??"valor"} tuviera ${W}${Y.maximum.toString()} ${q.unit??"elementos"}`;return`Demasiado grande: se esperaba que ${Y.origin??"valor"} fuera ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Demasiado pequeño: se esperaba que ${Y.origin} tuviera ${W}${Y.minimum.toString()} ${q.unit}`;return`Demasiado pequeño: se esperaba que ${Y.origin} fuera ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Cadena inválida: debe comenzar con "${W.prefix}"`;if(W.format==="ends_with")return`Cadena inválida: debe terminar en "${W.suffix}"`;if(W.format==="includes")return`Cadena inválida: debe incluir "${W.includes}"`;if(W.format==="regex")return`Cadena inválida: debe coincidir con el patrón ${W.pattern}`;return`Inválido ${G[W.format]??Y.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":return`Llave${Y.keys.length>1?"s":""} desconocida${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Llave inválida en ${Y.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${Y.origin}`;default:return"Entrada inválida"}}};function eB(){return{localeError:CC()}}var kC=()=>{let w={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"عدد";case"object":{if(Array.isArray(Y))return"آرایه";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return(Y)=>{switch(Y.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${Y.expected} میبود، ${J(Y.input)} دریافت شد`;case"invalid_value":if(Y.values.length===1)return`ورودی نامعتبر: میبایست ${z$(Y.values[0])} میبود`;return`گزینه نامعتبر: میبایست یکی از ${l(Y.values,"|")} میبود`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${W}${Y.maximum.toString()} ${q.unit??"عنصر"} باشد`;return`خیلی بزرگ: ${Y.origin??"مقدار"} باید ${W}${Y.maximum.toString()} باشد`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`خیلی کوچک: ${Y.origin} باید ${W}${Y.minimum.toString()} ${q.unit} باشد`;return`خیلی کوچک: ${Y.origin} باید ${W}${Y.minimum.toString()} باشد`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`رشته نامعتبر: باید با "${W.prefix}" شروع شود`;if(W.format==="ends_with")return`رشته نامعتبر: باید با "${W.suffix}" تمام شود`;if(W.format==="includes")return`رشته نامعتبر: باید شامل "${W.includes}" باشد`;if(W.format==="regex")return`رشته نامعتبر: باید با الگوی ${W.pattern} مطابقت داشته باشد`;return`${G[W.format]??Y.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${Y.divisor} باشد`;case"unrecognized_keys":return`کلید${Y.keys.length>1?"های":""} ناشناس: ${l(Y.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${Y.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${Y.origin}`;default:return"ورودی نامعتبر"}}};function $q(){return{localeError:kC()}}var xC=()=>{let w={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"};return(Y)=>{switch(Y.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${Y.expected}, oli ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Virheellinen syöte: täytyy olla ${z$(Y.values[0])}`;return`Virheellinen valinta: täytyy olla yksi seuraavista: ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Liian suuri: ${q.subject} täytyy olla ${W}${Y.maximum.toString()} ${q.unit}`.trim();return`Liian suuri: arvon täytyy olla ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Liian pieni: ${q.subject} täytyy olla ${W}${Y.minimum.toString()} ${q.unit}`.trim();return`Liian pieni: arvon täytyy olla ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Virheellinen syöte: täytyy alkaa "${W.prefix}"`;if(W.format==="ends_with")return`Virheellinen syöte: täytyy loppua "${W.suffix}"`;if(W.format==="includes")return`Virheellinen syöte: täytyy sisältää "${W.includes}"`;if(W.format==="regex")return`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${W.pattern}`;return`Virheellinen ${G[W.format]??Y.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${Y.divisor} monikerta`;case"unrecognized_keys":return`${Y.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${l(Y.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function Uq(){return{localeError:xC()}}var gC=()=>{let w={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"nombre";case"object":{if(Array.isArray(Y))return"tableau";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return(Y)=>{switch(Y.code){case"invalid_type":return`Entrée invalide : ${Y.expected} attendu, ${J(Y.input)} reçu`;case"invalid_value":if(Y.values.length===1)return`Entrée invalide : ${z$(Y.values[0])} attendu`;return`Option invalide : une valeur parmi ${l(Y.values,"|")} attendue`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Trop grand : ${Y.origin??"valeur"} doit ${q.verb} ${W}${Y.maximum.toString()} ${q.unit??"élément(s)"}`;return`Trop grand : ${Y.origin??"valeur"} doit être ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Trop petit : ${Y.origin} doit ${q.verb} ${W}${Y.minimum.toString()} ${q.unit}`;return`Trop petit : ${Y.origin} doit être ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Chaîne invalide : doit commencer par "${W.prefix}"`;if(W.format==="ends_with")return`Chaîne invalide : doit se terminer par "${W.suffix}"`;if(W.format==="includes")return`Chaîne invalide : doit inclure "${W.includes}"`;if(W.format==="regex")return`Chaîne invalide : doit correspondre au modèle ${W.pattern}`;return`${G[W.format]??Y.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Y.divisor}`;case"unrecognized_keys":return`Clé${Y.keys.length>1?"s":""} non reconnue${Y.keys.length>1?"s":""} : ${l(Y.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Y.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Y.origin}`;default:return"Entrée invalide"}}};function wq(){return{localeError:gC()}}var yC=()=>{let w={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return(Y)=>{switch(Y.code){case"invalid_type":return`Entrée invalide : attendu ${Y.expected}, reçu ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Entrée invalide : attendu ${z$(Y.values[0])}`;return`Option invalide : attendu l'une des valeurs suivantes ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"≤":"<",q=X(Y.origin);if(q)return`Trop grand : attendu que ${Y.origin??"la valeur"} ait ${W}${Y.maximum.toString()} ${q.unit}`;return`Trop grand : attendu que ${Y.origin??"la valeur"} soit ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?"≥":">",q=X(Y.origin);if(q)return`Trop petit : attendu que ${Y.origin} ait ${W}${Y.minimum.toString()} ${q.unit}`;return`Trop petit : attendu que ${Y.origin} soit ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Chaîne invalide : doit commencer par "${W.prefix}"`;if(W.format==="ends_with")return`Chaîne invalide : doit se terminer par "${W.suffix}"`;if(W.format==="includes")return`Chaîne invalide : doit inclure "${W.includes}"`;if(W.format==="regex")return`Chaîne invalide : doit correspondre au motif ${W.pattern}`;return`${G[W.format]??Y.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${Y.divisor}`;case"unrecognized_keys":return`Clé${Y.keys.length>1?"s":""} non reconnue${Y.keys.length>1?"s":""} : ${l(Y.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${Y.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${Y.origin}`;default:return"Entrée invalide"}}};function zq(){return{localeError:yC()}}var fC=()=>{let w={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return(Y)=>{switch(Y.code){case"invalid_type":return`קלט לא תקין: צריך ${Y.expected}, התקבל ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`קלט לא תקין: צריך ${z$(Y.values[0])}`;return`קלט לא תקין: צריך אחת מהאפשרויות ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`גדול מדי: ${Y.origin??"value"} צריך להיות ${W}${Y.maximum.toString()} ${q.unit??"elements"}`;return`גדול מדי: ${Y.origin??"value"} צריך להיות ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`קטן מדי: ${Y.origin} צריך להיות ${W}${Y.minimum.toString()} ${q.unit}`;return`קטן מדי: ${Y.origin} צריך להיות ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`מחרוזת לא תקינה: חייבת להתחיל ב"${W.prefix}"`;if(W.format==="ends_with")return`מחרוזת לא תקינה: חייבת להסתיים ב "${W.suffix}"`;if(W.format==="includes")return`מחרוזת לא תקינה: חייבת לכלול "${W.includes}"`;if(W.format==="regex")return`מחרוזת לא תקינה: חייבת להתאים לתבנית ${W.pattern}`;return`${G[W.format]??Y.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${Y.divisor}`;case"unrecognized_keys":return`מפתח${Y.keys.length>1?"ות":""} לא מזוה${Y.keys.length>1?"ים":"ה"}: ${l(Y.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${Y.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${Y.origin}`;default:return"קלט לא תקין"}}};function Xq(){return{localeError:fC()}}var hC=()=>{let w={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"szám";case"object":{if(Array.isArray(Y))return"tömb";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return(Y)=>{switch(Y.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${Y.expected}, a kapott érték ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Érvénytelen bemenet: a várt érték ${z$(Y.values[0])}`;return`Érvénytelen opció: valamelyik érték várt ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Túl nagy: ${Y.origin??"érték"} mérete túl nagy ${W}${Y.maximum.toString()} ${q.unit??"elem"}`;return`Túl nagy: a bemeneti érték ${Y.origin??"érték"} túl nagy: ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Túl kicsi: a bemeneti érték ${Y.origin} mérete túl kicsi ${W}${Y.minimum.toString()} ${q.unit}`;return`Túl kicsi: a bemeneti érték ${Y.origin} túl kicsi ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Érvénytelen string: "${W.prefix}" értékkel kell kezdődnie`;if(W.format==="ends_with")return`Érvénytelen string: "${W.suffix}" értékkel kell végződnie`;if(W.format==="includes")return`Érvénytelen string: "${W.includes}" értéket kell tartalmaznia`;if(W.format==="regex")return`Érvénytelen string: ${W.pattern} mintának kell megfelelnie`;return`Érvénytelen ${G[W.format]??Y.format}`}case"not_multiple_of":return`Érvénytelen szám: ${Y.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${Y.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${Y.origin}`;default:return"Érvénytelen bemenet"}}};function Yq(){return{localeError:hC()}}var uC=()=>{let w={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Input tidak valid: diharapkan ${Y.expected}, diterima ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Input tidak valid: diharapkan ${z$(Y.values[0])}`;return`Pilihan tidak valid: diharapkan salah satu dari ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Terlalu besar: diharapkan ${Y.origin??"value"} memiliki ${W}${Y.maximum.toString()} ${q.unit??"elemen"}`;return`Terlalu besar: diharapkan ${Y.origin??"value"} menjadi ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Terlalu kecil: diharapkan ${Y.origin} memiliki ${W}${Y.minimum.toString()} ${q.unit}`;return`Terlalu kecil: diharapkan ${Y.origin} menjadi ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`String tidak valid: harus dimulai dengan "${W.prefix}"`;if(W.format==="ends_with")return`String tidak valid: harus berakhir dengan "${W.suffix}"`;if(W.format==="includes")return`String tidak valid: harus menyertakan "${W.includes}"`;if(W.format==="regex")return`String tidak valid: harus sesuai pola ${W.pattern}`;return`${G[W.format]??Y.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${Y.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${Y.origin}`;default:return"Input tidak valid"}}};function Jq(){return{localeError:uC()}}var mC=()=>{let w={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"numero";case"object":{if(Array.isArray(Y))return"vettore";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Input non valido: atteso ${Y.expected}, ricevuto ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Input non valido: atteso ${z$(Y.values[0])}`;return`Opzione non valida: atteso uno tra ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Troppo grande: ${Y.origin??"valore"} deve avere ${W}${Y.maximum.toString()} ${q.unit??"elementi"}`;return`Troppo grande: ${Y.origin??"valore"} deve essere ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Troppo piccolo: ${Y.origin} deve avere ${W}${Y.minimum.toString()} ${q.unit}`;return`Troppo piccolo: ${Y.origin} deve essere ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Stringa non valida: deve iniziare con "${W.prefix}"`;if(W.format==="ends_with")return`Stringa non valida: deve terminare con "${W.suffix}"`;if(W.format==="includes")return`Stringa non valida: deve includere "${W.includes}"`;if(W.format==="regex")return`Stringa non valida: deve corrispondere al pattern ${W.pattern}`;return`Invalid ${G[W.format]??Y.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${Y.divisor}`;case"unrecognized_keys":return`Chiav${Y.keys.length>1?"i":"e"} non riconosciut${Y.keys.length>1?"e":"a"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${Y.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${Y.origin}`;default:return"Input non valido"}}};function Qq(){return{localeError:mC()}}var cC=()=>{let w={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"数値";case"object":{if(Array.isArray(Y))return"配列";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return(Y)=>{switch(Y.code){case"invalid_type":return`無効な入力: ${Y.expected}が期待されましたが、${J(Y.input)}が入力されました`;case"invalid_value":if(Y.values.length===1)return`無効な入力: ${z$(Y.values[0])}が期待されました`;return`無効な選択: ${l(Y.values,"、")}のいずれかである必要があります`;case"too_big":{let W=Y.inclusive?"以下である":"より小さい",q=X(Y.origin);if(q)return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${q.unit??"要素"}${W}必要があります`;return`大きすぎる値: ${Y.origin??"値"}は${Y.maximum.toString()}${W}必要があります`}case"too_small":{let W=Y.inclusive?"以上である":"より大きい",q=X(Y.origin);if(q)return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${q.unit}${W}必要があります`;return`小さすぎる値: ${Y.origin}は${Y.minimum.toString()}${W}必要があります`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`無効な文字列: "${W.prefix}"で始まる必要があります`;if(W.format==="ends_with")return`無効な文字列: "${W.suffix}"で終わる必要があります`;if(W.format==="includes")return`無効な文字列: "${W.includes}"を含む必要があります`;if(W.format==="regex")return`無効な文字列: パターン${W.pattern}に一致する必要があります`;return`無効な${G[W.format]??Y.format}`}case"not_multiple_of":return`無効な数値: ${Y.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${Y.keys.length>1?"群":""}: ${l(Y.keys,"、")}`;case"invalid_key":return`${Y.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${Y.origin}内の無効な値`;default:return"無効な入力"}}};function Gq(){return{localeError:cC()}}var iC=()=>{let w={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(Y))return"អារេ (Array)";if(Y===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return(Y)=>{switch(Y.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Y.expected} ប៉ុន្តែទទួលបាន ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${z$(Y.values[0])}`;return`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${W} ${Y.maximum.toString()} ${q.unit??"ធាតុ"}`;return`ធំពេក៖ ត្រូវការ ${Y.origin??"តម្លៃ"} ${W} ${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`តូចពេក៖ ត្រូវការ ${Y.origin} ${W} ${Y.minimum.toString()} ${q.unit}`;return`តូចពេក៖ ត្រូវការ ${Y.origin} ${W} ${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${W.prefix}"`;if(W.format==="ends_with")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${W.suffix}"`;if(W.format==="includes")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${W.includes}"`;if(W.format==="regex")return`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${W.pattern}`;return`មិនត្រឹមត្រូវ៖ ${G[W.format]??Y.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${Y.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${l(Y.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${Y.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Wq(){return{localeError:iC()}}var lC=()=>{let w={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return(Y)=>{switch(Y.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${Y.expected}, 받은 타입은 ${J(Y.input)}입니다`;case"invalid_value":if(Y.values.length===1)return`잘못된 입력: 값은 ${z$(Y.values[0])} 이어야 합니다`;return`잘못된 옵션: ${l(Y.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{let W=Y.inclusive?"이하":"미만",q=W==="미만"?"이어야 합니다":"여야 합니다",K=X(Y.origin),A=K?.unit??"요소";if(K)return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()}${A} ${W}${q}`;return`${Y.origin??"값"}이 너무 큽니다: ${Y.maximum.toString()} ${W}${q}`}case"too_small":{let W=Y.inclusive?"이상":"초과",q=W==="이상"?"이어야 합니다":"여야 합니다",K=X(Y.origin),A=K?.unit??"요소";if(K)return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()}${A} ${W}${q}`;return`${Y.origin??"값"}이 너무 작습니다: ${Y.minimum.toString()} ${W}${q}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`잘못된 문자열: "${W.prefix}"(으)로 시작해야 합니다`;if(W.format==="ends_with")return`잘못된 문자열: "${W.suffix}"(으)로 끝나야 합니다`;if(W.format==="includes")return`잘못된 문자열: "${W.includes}"을(를) 포함해야 합니다`;if(W.format==="regex")return`잘못된 문자열: 정규식 ${W.pattern} 패턴과 일치해야 합니다`;return`잘못된 ${G[W.format]??Y.format}`}case"not_multiple_of":return`잘못된 숫자: ${Y.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${l(Y.keys,", ")}`;case"invalid_key":return`잘못된 키: ${Y.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${Y.origin}`;default:return"잘못된 입력"}}};function Hq(){return{localeError:lC()}}var nC=()=>{let w={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"број";case"object":{if(Array.isArray(Y))return"низа";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return(Y)=>{switch(Y.code){case"invalid_type":return`Грешен внес: се очекува ${Y.expected}, примено ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Invalid input: expected ${z$(Y.values[0])}`;return`Грешана опција: се очекува една ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Премногу голем: се очекува ${Y.origin??"вредноста"} да има ${W}${Y.maximum.toString()} ${q.unit??"елементи"}`;return`Премногу голем: се очекува ${Y.origin??"вредноста"} да биде ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Премногу мал: се очекува ${Y.origin} да има ${W}${Y.minimum.toString()} ${q.unit}`;return`Премногу мал: се очекува ${Y.origin} да биде ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Неважечка низа: мора да започнува со "${W.prefix}"`;if(W.format==="ends_with")return`Неважечка низа: мора да завршува со "${W.suffix}"`;if(W.format==="includes")return`Неважечка низа: мора да вклучува "${W.includes}"`;if(W.format==="regex")return`Неважечка низа: мора да одгоара на патернот ${W.pattern}`;return`Invalid ${G[W.format]??Y.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${Y.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${Y.origin}`;default:return"Грешен внес"}}};function Oq(){return{localeError:nC()}}var dC=()=>{let w={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"nombor";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Input tidak sah: dijangka ${Y.expected}, diterima ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Input tidak sah: dijangka ${z$(Y.values[0])}`;return`Pilihan tidak sah: dijangka salah satu daripada ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Terlalu besar: dijangka ${Y.origin??"nilai"} ${q.verb} ${W}${Y.maximum.toString()} ${q.unit??"elemen"}`;return`Terlalu besar: dijangka ${Y.origin??"nilai"} adalah ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Terlalu kecil: dijangka ${Y.origin} ${q.verb} ${W}${Y.minimum.toString()} ${q.unit}`;return`Terlalu kecil: dijangka ${Y.origin} adalah ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`String tidak sah: mesti bermula dengan "${W.prefix}"`;if(W.format==="ends_with")return`String tidak sah: mesti berakhir dengan "${W.suffix}"`;if(W.format==="includes")return`String tidak sah: mesti mengandungi "${W.includes}"`;if(W.format==="regex")return`String tidak sah: mesti sepadan dengan corak ${W.pattern}`;return`${G[W.format]??Y.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${Y.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${l(Y.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${Y.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${Y.origin}`;default:return"Input tidak sah"}}};function Nq(){return{localeError:dC()}}var pC=()=>{let w={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"getal";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return(Y)=>{switch(Y.code){case"invalid_type":return`Ongeldige invoer: verwacht ${Y.expected}, ontving ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Ongeldige invoer: verwacht ${z$(Y.values[0])}`;return`Ongeldige optie: verwacht één van ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Te lang: verwacht dat ${Y.origin??"waarde"} ${W}${Y.maximum.toString()} ${q.unit??"elementen"} bevat`;return`Te lang: verwacht dat ${Y.origin??"waarde"} ${W}${Y.maximum.toString()} is`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Te kort: verwacht dat ${Y.origin} ${W}${Y.minimum.toString()} ${q.unit} bevat`;return`Te kort: verwacht dat ${Y.origin} ${W}${Y.minimum.toString()} is`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Ongeldige tekst: moet met "${W.prefix}" beginnen`;if(W.format==="ends_with")return`Ongeldige tekst: moet op "${W.suffix}" eindigen`;if(W.format==="includes")return`Ongeldige tekst: moet "${W.includes}" bevatten`;if(W.format==="regex")return`Ongeldige tekst: moet overeenkomen met patroon ${W.pattern}`;return`Ongeldig: ${G[W.format]??Y.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${Y.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${Y.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${Y.origin}`;default:return"Ongeldige invoer"}}};function Bq(){return{localeError:pC()}}var oC=()=>{let w={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"tall";case"object":{if(Array.isArray(Y))return"liste";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`Ugyldig input: forventet ${Y.expected}, fikk ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Ugyldig verdi: forventet ${z$(Y.values[0])}`;return`Ugyldig valg: forventet en av ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`For stor(t): forventet ${Y.origin??"value"} til å ha ${W}${Y.maximum.toString()} ${q.unit??"elementer"}`;return`For stor(t): forventet ${Y.origin??"value"} til å ha ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`For lite(n): forventet ${Y.origin} til å ha ${W}${Y.minimum.toString()} ${q.unit}`;return`For lite(n): forventet ${Y.origin} til å ha ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Ugyldig streng: må starte med "${W.prefix}"`;if(W.format==="ends_with")return`Ugyldig streng: må ende med "${W.suffix}"`;if(W.format==="includes")return`Ugyldig streng: må inneholde "${W.includes}"`;if(W.format==="regex")return`Ugyldig streng: må matche mønsteret ${W.pattern}`;return`Ugyldig ${G[W.format]??Y.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${Y.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${Y.origin}`;default:return"Ugyldig input"}}};function qq(){return{localeError:oC()}}var rC=()=>{let w={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"numara";case"object":{if(Array.isArray(Y))return"saf";if(Y===null)return"gayb";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return(Y)=>{switch(Y.code){case"invalid_type":return`Fâsit giren: umulan ${Y.expected}, alınan ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Fâsit giren: umulan ${z$(Y.values[0])}`;return`Fâsit tercih: mûteberler ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Fazla büyük: ${Y.origin??"value"}, ${W}${Y.maximum.toString()} ${q.unit??"elements"} sahip olmalıydı.`;return`Fazla büyük: ${Y.origin??"value"}, ${W}${Y.maximum.toString()} olmalıydı.`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Fazla küçük: ${Y.origin}, ${W}${Y.minimum.toString()} ${q.unit} sahip olmalıydı.`;return`Fazla küçük: ${Y.origin}, ${W}${Y.minimum.toString()} olmalıydı.`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Fâsit metin: "${W.prefix}" ile başlamalı.`;if(W.format==="ends_with")return`Fâsit metin: "${W.suffix}" ile bitmeli.`;if(W.format==="includes")return`Fâsit metin: "${W.includes}" ihtivâ etmeli.`;if(W.format==="regex")return`Fâsit metin: ${W.pattern} nakşına uymalı.`;return`Fâsit ${G[W.format]??Y.format}`}case"not_multiple_of":return`Fâsit sayı: ${Y.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${Y.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Lq(){return{localeError:rC()}}var tC=()=>{let w={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"عدد";case"object":{if(Array.isArray(Y))return"ارې";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return(Y)=>{switch(Y.code){case"invalid_type":return`ناسم ورودي: باید ${Y.expected} وای, مګر ${J(Y.input)} ترلاسه شو`;case"invalid_value":if(Y.values.length===1)return`ناسم ورودي: باید ${z$(Y.values[0])} وای`;return`ناسم انتخاب: باید یو له ${l(Y.values,"|")} څخه وای`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${W}${Y.maximum.toString()} ${q.unit??"عنصرونه"} ولري`;return`ډیر لوی: ${Y.origin??"ارزښت"} باید ${W}${Y.maximum.toString()} وي`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`ډیر کوچنی: ${Y.origin} باید ${W}${Y.minimum.toString()} ${q.unit} ولري`;return`ډیر کوچنی: ${Y.origin} باید ${W}${Y.minimum.toString()} وي`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`ناسم متن: باید د "${W.prefix}" سره پیل شي`;if(W.format==="ends_with")return`ناسم متن: باید د "${W.suffix}" سره پای ته ورسيږي`;if(W.format==="includes")return`ناسم متن: باید "${W.includes}" ولري`;if(W.format==="regex")return`ناسم متن: باید د ${W.pattern} سره مطابقت ولري`;return`${G[W.format]??Y.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${Y.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${Y.keys.length>1?"کلیډونه":"کلیډ"}: ${l(Y.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${Y.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${Y.origin} کې`;default:return"ناسمه ورودي"}}};function Kq(){return{localeError:tC()}}var aC=()=>{let w={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"liczba";case"object":{if(Array.isArray(Y))return"tablica";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return(Y)=>{switch(Y.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${Y.expected}, otrzymano ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Nieprawidłowe dane wejściowe: oczekiwano ${z$(Y.values[0])}`;return`Nieprawidłowa opcja: oczekiwano jednej z wartości ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Za duża wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${W}${Y.maximum.toString()} ${q.unit??"elementów"}`;return`Zbyt duż(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Za mała wartość: oczekiwano, że ${Y.origin??"wartość"} będzie mieć ${W}${Y.minimum.toString()} ${q.unit??"elementów"}`;return`Zbyt mał(y/a/e): oczekiwano, że ${Y.origin??"wartość"} będzie wynosić ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Nieprawidłowy ciąg znaków: musi zaczynać się od "${W.prefix}"`;if(W.format==="ends_with")return`Nieprawidłowy ciąg znaków: musi kończyć się na "${W.suffix}"`;if(W.format==="includes")return`Nieprawidłowy ciąg znaków: musi zawierać "${W.includes}"`;if(W.format==="regex")return`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${W.pattern}`;return`Nieprawidłow(y/a/e) ${G[W.format]??Y.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${Y.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${Y.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${Y.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Dq(){return{localeError:aC()}}var sC=()=>{let w={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"número";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"nulo";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return(Y)=>{switch(Y.code){case"invalid_type":return`Tipo inválido: esperado ${Y.expected}, recebido ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Entrada inválida: esperado ${z$(Y.values[0])}`;return`Opção inválida: esperada uma das ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Muito grande: esperado que ${Y.origin??"valor"} tivesse ${W}${Y.maximum.toString()} ${q.unit??"elementos"}`;return`Muito grande: esperado que ${Y.origin??"valor"} fosse ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Muito pequeno: esperado que ${Y.origin} tivesse ${W}${Y.minimum.toString()} ${q.unit}`;return`Muito pequeno: esperado que ${Y.origin} fosse ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Texto inválido: deve começar com "${W.prefix}"`;if(W.format==="ends_with")return`Texto inválido: deve terminar com "${W.suffix}"`;if(W.format==="includes")return`Texto inválido: deve incluir "${W.includes}"`;if(W.format==="regex")return`Texto inválido: deve corresponder ao padrão ${W.pattern}`;return`${G[W.format]??Y.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${Y.divisor}`;case"unrecognized_keys":return`Chave${Y.keys.length>1?"s":""} desconhecida${Y.keys.length>1?"s":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Chave inválida em ${Y.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${Y.origin}`;default:return"Campo inválido"}}};function jq(){return{localeError:sC()}}function zR(w,X,J,G){let Y=Math.abs(w),W=Y%10,q=Y%100;if(q>=11&&q<=19)return G;if(W===1)return X;if(W>=2&&W<=4)return J;return G}var eC=()=>{let w={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"число";case"object":{if(Array.isArray(Y))return"массив";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return(Y)=>{switch(Y.code){case"invalid_type":return`Неверный ввод: ожидалось ${Y.expected}, получено ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Неверный ввод: ожидалось ${z$(Y.values[0])}`;return`Неверный вариант: ожидалось одно из ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q){let K=Number(Y.maximum),A=zR(K,q.unit.one,q.unit.few,q.unit.many);return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет иметь ${W}${Y.maximum.toString()} ${A}`}return`Слишком большое значение: ожидалось, что ${Y.origin??"значение"} будет ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q){let K=Number(Y.minimum),A=zR(K,q.unit.one,q.unit.few,q.unit.many);return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет иметь ${W}${Y.minimum.toString()} ${A}`}return`Слишком маленькое значение: ожидалось, что ${Y.origin} будет ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Неверная строка: должна начинаться с "${W.prefix}"`;if(W.format==="ends_with")return`Неверная строка: должна заканчиваться на "${W.suffix}"`;if(W.format==="includes")return`Неверная строка: должна содержать "${W.includes}"`;if(W.format==="regex")return`Неверная строка: должна соответствовать шаблону ${W.pattern}`;return`Неверный ${G[W.format]??Y.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${Y.divisor}`;case"unrecognized_keys":return`Нераспознанн${Y.keys.length>1?"ые":"ый"} ключ${Y.keys.length>1?"и":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${Y.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${Y.origin}`;default:return"Неверные входные данные"}}};function Aq(){return{localeError:eC()}}var $3=()=>{let w={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"število";case"object":{if(Array.isArray(Y))return"tabela";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"};return(Y)=>{switch(Y.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${Y.expected}, prejeto ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Neveljaven vnos: pričakovano ${z$(Y.values[0])}`;return`Neveljavna možnost: pričakovano eno izmed ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} imelo ${W}${Y.maximum.toString()} ${q.unit??"elementov"}`;return`Preveliko: pričakovano, da bo ${Y.origin??"vrednost"} ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Premajhno: pričakovano, da bo ${Y.origin} imelo ${W}${Y.minimum.toString()} ${q.unit}`;return`Premajhno: pričakovano, da bo ${Y.origin} ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Neveljaven niz: mora se začeti z "${W.prefix}"`;if(W.format==="ends_with")return`Neveljaven niz: mora se končati z "${W.suffix}"`;if(W.format==="includes")return`Neveljaven niz: mora vsebovati "${W.includes}"`;if(W.format==="regex")return`Neveljaven niz: mora ustrezati vzorcu ${W.pattern}`;return`Neveljaven ${G[W.format]??Y.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${Y.divisor}`;case"unrecognized_keys":return`Neprepoznan${Y.keys.length>1?"i ključi":" ključ"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${Y.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${Y.origin}`;default:return"Neveljaven vnos"}}};function Fq(){return{localeError:$3()}}var U3=()=>{let w={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"antal";case"object":{if(Array.isArray(Y))return"lista";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return(Y)=>{switch(Y.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${Y.expected}, fick ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Ogiltig inmatning: förväntat ${z$(Y.values[0])}`;return`Ogiltigt val: förväntade en av ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`För stor(t): förväntade ${Y.origin??"värdet"} att ha ${W}${Y.maximum.toString()} ${q.unit??"element"}`;return`För stor(t): förväntat ${Y.origin??"värdet"} att ha ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${W}${Y.minimum.toString()} ${q.unit}`;return`För lite(t): förväntade ${Y.origin??"värdet"} att ha ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Ogiltig sträng: måste börja med "${W.prefix}"`;if(W.format==="ends_with")return`Ogiltig sträng: måste sluta med "${W.suffix}"`;if(W.format==="includes")return`Ogiltig sträng: måste innehålla "${W.includes}"`;if(W.format==="regex")return`Ogiltig sträng: måste matcha mönstret "${W.pattern}"`;return`Ogiltig(t) ${G[W.format]??Y.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${Y.divisor}`;case"unrecognized_keys":return`${Y.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${l(Y.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${Y.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${Y.origin??"värdet"}`;default:return"Ogiltig input"}}};function Vq(){return{localeError:U3()}}var w3=()=>{let w={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(Y))return"அணி";if(Y===null)return"வெறுமை";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return(Y)=>{switch(Y.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Y.expected}, பெறப்பட்டது ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${z$(Y.values[0])}`;return`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${l(Y.values,"|")} இல் ஒன்று`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${W}${Y.maximum.toString()} ${q.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`;return`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${Y.origin??"மதிப்பு"} ${W}${Y.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${W}${Y.minimum.toString()} ${q.unit} ஆக இருக்க வேண்டும்`;return`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${Y.origin} ${W}${Y.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`தவறான சரம்: "${W.prefix}" இல் தொடங்க வேண்டும்`;if(W.format==="ends_with")return`தவறான சரம்: "${W.suffix}" இல் முடிவடைய வேண்டும்`;if(W.format==="includes")return`தவறான சரம்: "${W.includes}" ஐ உள்ளடக்க வேண்டும்`;if(W.format==="regex")return`தவறான சரம்: ${W.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`;return`தவறான ${G[W.format]??Y.format}`}case"not_multiple_of":return`தவறான எண்: ${Y.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${Y.keys.length>1?"கள்":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${Y.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Eq(){return{localeError:w3()}}var z3=()=>{let w={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(Y))return"อาร์เรย์ (Array)";if(Y===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return(Y)=>{switch(Y.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${Y.expected} แต่ได้รับ ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`ค่าไม่ถูกต้อง: ควรเป็น ${z$(Y.values[0])}`;return`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"ไม่เกิน":"น้อยกว่า",q=X(Y.origin);if(q)return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${W} ${Y.maximum.toString()} ${q.unit??"รายการ"}`;return`เกินกำหนด: ${Y.origin??"ค่า"} ควรมี${W} ${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?"อย่างน้อย":"มากกว่า",q=X(Y.origin);if(q)return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${W} ${Y.minimum.toString()} ${q.unit}`;return`น้อยกว่ากำหนด: ${Y.origin} ควรมี${W} ${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${W.prefix}"`;if(W.format==="ends_with")return`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${W.suffix}"`;if(W.format==="includes")return`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${W.includes}" อยู่ในข้อความ`;if(W.format==="regex")return`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${W.pattern}`;return`รูปแบบไม่ถูกต้อง: ${G[W.format]??Y.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${Y.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${l(Y.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${Y.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${Y.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Mq(){return{localeError:z3()}}var X3=(w)=>{let X=typeof w;switch(X){case"number":return Number.isNaN(w)?"NaN":"number";case"object":{if(Array.isArray(w))return"array";if(w===null)return"null";if(Object.getPrototypeOf(w)!==Object.prototype&&w.constructor)return w.constructor.name}}return X},Y3=()=>{let w={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function X(G){return w[G]??null}let J={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return(G)=>{switch(G.code){case"invalid_type":return`Geçersiz değer: beklenen ${G.expected}, alınan ${X3(G.input)}`;case"invalid_value":if(G.values.length===1)return`Geçersiz değer: beklenen ${z$(G.values[0])}`;return`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${l(G.values,"|")}`;case"too_big":{let Y=G.inclusive?"<=":"<",W=X(G.origin);if(W)return`Çok büyük: beklenen ${G.origin??"değer"} ${Y}${G.maximum.toString()} ${W.unit??"öğe"}`;return`Çok büyük: beklenen ${G.origin??"değer"} ${Y}${G.maximum.toString()}`}case"too_small":{let Y=G.inclusive?">=":">",W=X(G.origin);if(W)return`Çok küçük: beklenen ${G.origin} ${Y}${G.minimum.toString()} ${W.unit}`;return`Çok küçük: beklenen ${G.origin} ${Y}${G.minimum.toString()}`}case"invalid_format":{let Y=G;if(Y.format==="starts_with")return`Geçersiz metin: "${Y.prefix}" ile başlamalı`;if(Y.format==="ends_with")return`Geçersiz metin: "${Y.suffix}" ile bitmeli`;if(Y.format==="includes")return`Geçersiz metin: "${Y.includes}" içermeli`;if(Y.format==="regex")return`Geçersiz metin: ${Y.pattern} desenine uymalı`;return`Geçersiz ${J[Y.format]??G.format}`}case"not_multiple_of":return`Geçersiz sayı: ${G.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${G.keys.length>1?"lar":""}: ${l(G.keys,", ")}`;case"invalid_key":return`${G.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${G.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Rq(){return{localeError:Y3()}}var J3=()=>{let w={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"число";case"object":{if(Array.isArray(Y))return"масив";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return(Y)=>{switch(Y.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${Y.expected}, отримано ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Неправильні вхідні дані: очікується ${z$(Y.values[0])}`;return`Неправильна опція: очікується одне з ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Занадто велике: очікується, що ${Y.origin??"значення"} ${q.verb} ${W}${Y.maximum.toString()} ${q.unit??"елементів"}`;return`Занадто велике: очікується, що ${Y.origin??"значення"} буде ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Занадто мале: очікується, що ${Y.origin} ${q.verb} ${W}${Y.minimum.toString()} ${q.unit}`;return`Занадто мале: очікується, що ${Y.origin} буде ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Неправильний рядок: повинен починатися з "${W.prefix}"`;if(W.format==="ends_with")return`Неправильний рядок: повинен закінчуватися на "${W.suffix}"`;if(W.format==="includes")return`Неправильний рядок: повинен містити "${W.includes}"`;if(W.format==="regex")return`Неправильний рядок: повинен відповідати шаблону ${W.pattern}`;return`Неправильний ${G[W.format]??Y.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${Y.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${Y.keys.length>1?"і":""}: ${l(Y.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${Y.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${Y.origin}`;default:return"Неправильні вхідні дані"}}};function Iq(){return{localeError:J3()}}var Q3=()=>{let w={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"نمبر";case"object":{if(Array.isArray(Y))return"آرے";if(Y===null)return"نل";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return(Y)=>{switch(Y.code){case"invalid_type":return`غلط ان پٹ: ${Y.expected} متوقع تھا، ${J(Y.input)} موصول ہوا`;case"invalid_value":if(Y.values.length===1)return`غلط ان پٹ: ${z$(Y.values[0])} متوقع تھا`;return`غلط آپشن: ${l(Y.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`بہت بڑا: ${Y.origin??"ویلیو"} کے ${W}${Y.maximum.toString()} ${q.unit??"عناصر"} ہونے متوقع تھے`;return`بہت بڑا: ${Y.origin??"ویلیو"} کا ${W}${Y.maximum.toString()} ہونا متوقع تھا`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`بہت چھوٹا: ${Y.origin} کے ${W}${Y.minimum.toString()} ${q.unit} ہونے متوقع تھے`;return`بہت چھوٹا: ${Y.origin} کا ${W}${Y.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`غلط سٹرنگ: "${W.prefix}" سے شروع ہونا چاہیے`;if(W.format==="ends_with")return`غلط سٹرنگ: "${W.suffix}" پر ختم ہونا چاہیے`;if(W.format==="includes")return`غلط سٹرنگ: "${W.includes}" شامل ہونا چاہیے`;if(W.format==="regex")return`غلط سٹرنگ: پیٹرن ${W.pattern} سے میچ ہونا چاہیے`;return`غلط ${G[W.format]??Y.format}`}case"not_multiple_of":return`غلط نمبر: ${Y.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${Y.keys.length>1?"ز":""}: ${l(Y.keys,"، ")}`;case"invalid_key":return`${Y.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${Y.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function _q(){return{localeError:Q3()}}var G3=()=>{let w={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"số";case"object":{if(Array.isArray(Y))return"mảng";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return(Y)=>{switch(Y.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${Y.expected}, nhận được ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`Đầu vào không hợp lệ: mong đợi ${z$(Y.values[0])}`;return`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${q.verb} ${W}${Y.maximum.toString()} ${q.unit??"phần tử"}`;return`Quá lớn: mong đợi ${Y.origin??"giá trị"} ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`Quá nhỏ: mong đợi ${Y.origin} ${q.verb} ${W}${Y.minimum.toString()} ${q.unit}`;return`Quá nhỏ: mong đợi ${Y.origin} ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`Chuỗi không hợp lệ: phải bắt đầu bằng "${W.prefix}"`;if(W.format==="ends_with")return`Chuỗi không hợp lệ: phải kết thúc bằng "${W.suffix}"`;if(W.format==="includes")return`Chuỗi không hợp lệ: phải bao gồm "${W.includes}"`;if(W.format==="regex")return`Chuỗi không hợp lệ: phải khớp với mẫu ${W.pattern}`;return`${G[W.format]??Y.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${Y.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${l(Y.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${Y.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${Y.origin}`;default:return"Đầu vào không hợp lệ"}}};function Pq(){return{localeError:G3()}}var W3=()=>{let w={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(Y))return"数组";if(Y===null)return"空值(null)";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return(Y)=>{switch(Y.code){case"invalid_type":return`无效输入:期望 ${Y.expected},实际接收 ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`无效输入:期望 ${z$(Y.values[0])}`;return`无效选项:期望以下之一 ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`数值过大:期望 ${Y.origin??"值"} ${W}${Y.maximum.toString()} ${q.unit??"个元素"}`;return`数值过大:期望 ${Y.origin??"值"} ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`数值过小:期望 ${Y.origin} ${W}${Y.minimum.toString()} ${q.unit}`;return`数值过小:期望 ${Y.origin} ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`无效字符串:必须以 "${W.prefix}" 开头`;if(W.format==="ends_with")return`无效字符串:必须以 "${W.suffix}" 结尾`;if(W.format==="includes")return`无效字符串:必须包含 "${W.includes}"`;if(W.format==="regex")return`无效字符串:必须满足正则表达式 ${W.pattern}`;return`无效${G[W.format]??Y.format}`}case"not_multiple_of":return`无效数字:必须是 ${Y.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${l(Y.keys,", ")}`;case"invalid_key":return`${Y.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${Y.origin} 中包含无效值(value)`;default:return"无效输入"}}};function vq(){return{localeError:W3()}}var H3=()=>{let w={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function X(Y){return w[Y]??null}let J=(Y)=>{let W=typeof Y;switch(W){case"number":return Number.isNaN(Y)?"NaN":"number";case"object":{if(Array.isArray(Y))return"array";if(Y===null)return"null";if(Object.getPrototypeOf(Y)!==Object.prototype&&Y.constructor)return Y.constructor.name}}return W},G={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return(Y)=>{switch(Y.code){case"invalid_type":return`無效的輸入值:預期為 ${Y.expected},但收到 ${J(Y.input)}`;case"invalid_value":if(Y.values.length===1)return`無效的輸入值:預期為 ${z$(Y.values[0])}`;return`無效的選項:預期為以下其中之一 ${l(Y.values,"|")}`;case"too_big":{let W=Y.inclusive?"<=":"<",q=X(Y.origin);if(q)return`數值過大:預期 ${Y.origin??"值"} 應為 ${W}${Y.maximum.toString()} ${q.unit??"個元素"}`;return`數值過大:預期 ${Y.origin??"值"} 應為 ${W}${Y.maximum.toString()}`}case"too_small":{let W=Y.inclusive?">=":">",q=X(Y.origin);if(q)return`數值過小:預期 ${Y.origin} 應為 ${W}${Y.minimum.toString()} ${q.unit}`;return`數值過小:預期 ${Y.origin} 應為 ${W}${Y.minimum.toString()}`}case"invalid_format":{let W=Y;if(W.format==="starts_with")return`無效的字串:必須以 "${W.prefix}" 開頭`;if(W.format==="ends_with")return`無效的字串:必須以 "${W.suffix}" 結尾`;if(W.format==="includes")return`無效的字串:必須包含 "${W.includes}"`;if(W.format==="regex")return`無效的字串:必須符合格式 ${W.pattern}`;return`無效的 ${G[W.format]??Y.format}`}case"not_multiple_of":return`無效的數字:必須為 ${Y.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${Y.keys.length>1?"們":""}:${l(Y.keys,"、")}`;case"invalid_key":return`${Y.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${Y.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Zq(){return{localeError:H3()}}var Sq=Symbol("ZodOutput"),Tq=Symbol("ZodInput");class NJ{constructor(){this._map=new Map,this._idmap=new Map}add(w,...X){let J=X[0];if(this._map.set(w,J),J&&typeof J==="object"&&"id"in J){if(this._idmap.has(J.id))throw Error(`ID ${J.id} already exists in the registry`);this._idmap.set(J.id,w)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(w){let X=this._map.get(w);if(X&&typeof X==="object"&&"id"in X)this._idmap.delete(X.id);return this._map.delete(w),this}get(w){let X=w._zod.parent;if(X){let J={...this.get(X)??{}};return delete J.id,{...J,...this._map.get(w)}}return this._map.get(w)}has(w){return this._map.has(w)}}function h7(){return new NJ}var T0=h7();function bq(w,X){return new w({type:"string",...e(X)})}function Cq(w,X){return new w({type:"string",coerce:!0,...e(X)})}function u7(w,X){return new w({type:"string",format:"email",check:"string_format",abort:!1,...e(X)})}function BJ(w,X){return new w({type:"string",format:"guid",check:"string_format",abort:!1,...e(X)})}function m7(w,X){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,...e(X)})}function c7(w,X){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...e(X)})}function i7(w,X){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...e(X)})}function l7(w,X){return new w({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...e(X)})}function n7(w,X){return new w({type:"string",format:"url",check:"string_format",abort:!1,...e(X)})}function d7(w,X){return new w({type:"string",format:"emoji",check:"string_format",abort:!1,...e(X)})}function p7(w,X){return new w({type:"string",format:"nanoid",check:"string_format",abort:!1,...e(X)})}function o7(w,X){return new w({type:"string",format:"cuid",check:"string_format",abort:!1,...e(X)})}function r7(w,X){return new w({type:"string",format:"cuid2",check:"string_format",abort:!1,...e(X)})}function t7(w,X){return new w({type:"string",format:"ulid",check:"string_format",abort:!1,...e(X)})}function a7(w,X){return new w({type:"string",format:"xid",check:"string_format",abort:!1,...e(X)})}function s7(w,X){return new w({type:"string",format:"ksuid",check:"string_format",abort:!1,...e(X)})}function e7(w,X){return new w({type:"string",format:"ipv4",check:"string_format",abort:!1,...e(X)})}function $5(w,X){return new w({type:"string",format:"ipv6",check:"string_format",abort:!1,...e(X)})}function U5(w,X){return new w({type:"string",format:"cidrv4",check:"string_format",abort:!1,...e(X)})}function w5(w,X){return new w({type:"string",format:"cidrv6",check:"string_format",abort:!1,...e(X)})}function z5(w,X){return new w({type:"string",format:"base64",check:"string_format",abort:!1,...e(X)})}function X5(w,X){return new w({type:"string",format:"base64url",check:"string_format",abort:!1,...e(X)})}function Y5(w,X){return new w({type:"string",format:"e164",check:"string_format",abort:!1,...e(X)})}function J5(w,X){return new w({type:"string",format:"jwt",check:"string_format",abort:!1,...e(X)})}var kq={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function xq(w,X){return new w({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...e(X)})}function gq(w,X){return new w({type:"string",format:"date",check:"string_format",...e(X)})}function yq(w,X){return new w({type:"string",format:"time",check:"string_format",precision:null,...e(X)})}function fq(w,X){return new w({type:"string",format:"duration",check:"string_format",...e(X)})}function hq(w,X){return new w({type:"number",checks:[],...e(X)})}function uq(w,X){return new w({type:"number",coerce:!0,checks:[],...e(X)})}function mq(w,X){return new w({type:"number",check:"number_format",abort:!1,format:"safeint",...e(X)})}function cq(w,X){return new w({type:"number",check:"number_format",abort:!1,format:"float32",...e(X)})}function iq(w,X){return new w({type:"number",check:"number_format",abort:!1,format:"float64",...e(X)})}function lq(w,X){return new w({type:"number",check:"number_format",abort:!1,format:"int32",...e(X)})}function nq(w,X){return new w({type:"number",check:"number_format",abort:!1,format:"uint32",...e(X)})}function dq(w,X){return new w({type:"boolean",...e(X)})}function pq(w,X){return new w({type:"boolean",coerce:!0,...e(X)})}function oq(w,X){return new w({type:"bigint",...e(X)})}function rq(w,X){return new w({type:"bigint",coerce:!0,...e(X)})}function tq(w,X){return new w({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...e(X)})}function aq(w,X){return new w({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...e(X)})}function sq(w,X){return new w({type:"symbol",...e(X)})}function eq(w,X){return new w({type:"undefined",...e(X)})}function $L(w,X){return new w({type:"null",...e(X)})}function UL(w){return new w({type:"any"})}function $8(w){return new w({type:"unknown"})}function wL(w,X){return new w({type:"never",...e(X)})}function zL(w,X){return new w({type:"void",...e(X)})}function XL(w,X){return new w({type:"date",...e(X)})}function YL(w,X){return new w({type:"date",coerce:!0,...e(X)})}function JL(w,X){return new w({type:"nan",...e(X)})}function BU(w,X){return new T7({check:"less_than",...e(X),value:w,inclusive:!1})}function C1(w,X){return new T7({check:"less_than",...e(X),value:w,inclusive:!0})}function qU(w,X){return new b7({check:"greater_than",...e(X),value:w,inclusive:!1})}function l4(w,X){return new b7({check:"greater_than",...e(X),value:w,inclusive:!0})}function QL(w){return qU(0,w)}function GL(w){return BU(0,w)}function WL(w){return C1(0,w)}function HL(w){return l4(0,w)}function Zz(w,X){return new RN({check:"multiple_of",...e(X),value:w})}function U8(w,X){return new PN({check:"max_size",...e(X),maximum:w})}function Sz(w,X){return new vN({check:"min_size",...e(X),minimum:w})}function qJ(w,X){return new ZN({check:"size_equals",...e(X),size:w})}function w8(w,X){return new SN({check:"max_length",...e(X),maximum:w})}function Vw(w,X){return new TN({check:"min_length",...e(X),minimum:w})}function z8(w,X){return new bN({check:"length_equals",...e(X),length:w})}function LJ(w,X){return new CN({check:"string_format",format:"regex",...e(X),pattern:w})}function KJ(w){return new kN({check:"string_format",format:"lowercase",...e(w)})}function DJ(w){return new xN({check:"string_format",format:"uppercase",...e(w)})}function jJ(w,X){return new gN({check:"string_format",format:"includes",...e(X),includes:w})}function AJ(w,X){return new yN({check:"string_format",format:"starts_with",...e(X),prefix:w})}function FJ(w,X){return new fN({check:"string_format",format:"ends_with",...e(X),suffix:w})}function OL(w,X,J){return new hN({check:"property",property:w,schema:X,...e(J)})}function VJ(w,X){return new uN({check:"mime_type",mime:w,...e(X)})}function LU(w){return new mN({check:"overwrite",tx:w})}function EJ(w){return LU((X)=>X.normalize(w))}function MJ(){return LU((w)=>w.trim())}function RJ(){return LU((w)=>w.toLowerCase())}function IJ(){return LU((w)=>w.toUpperCase())}function _J(w,X,J){return new w({type:"array",element:X,...e(J)})}function O3(w,X,J){return new w({type:"union",options:X,...e(J)})}function N3(w,X,J,G){return new w({type:"union",options:J,discriminator:X,...e(G)})}function B3(w,X,J){return new w({type:"intersection",left:X,right:J})}function NL(w,X,J,G){let Y=J instanceof b$;return new w({type:"tuple",items:X,rest:Y?J:null,...e(Y?G:J)})}function q3(w,X,J,G){return new w({type:"record",keyType:X,valueType:J,...e(G)})}function L3(w,X,J,G){return new w({type:"map",keyType:X,valueType:J,...e(G)})}function K3(w,X,J){return new w({type:"set",valueType:X,...e(J)})}function D3(w,X,J){let G=Array.isArray(X)?Object.fromEntries(X.map((Y)=>[Y,Y])):X;return new w({type:"enum",entries:G,...e(J)})}function j3(w,X,J){return new w({type:"enum",entries:X,...e(J)})}function A3(w,X,J){return new w({type:"literal",values:Array.isArray(X)?X:[X],...e(J)})}function BL(w,X){return new w({type:"file",...e(X)})}function F3(w,X){return new w({type:"transform",transform:X})}function V3(w,X){return new w({type:"optional",innerType:X})}function E3(w,X){return new w({type:"nullable",innerType:X})}function M3(w,X,J){return new w({type:"default",innerType:X,get defaultValue(){return typeof J==="function"?J():J}})}function R3(w,X,J){return new w({type:"nonoptional",innerType:X,...e(J)})}function I3(w,X){return new w({type:"success",innerType:X})}function _3(w,X,J){return new w({type:"catch",innerType:X,catchValue:typeof J==="function"?J:()=>J})}function P3(w,X,J){return new w({type:"pipe",in:X,out:J})}function v3(w,X){return new w({type:"readonly",innerType:X})}function Z3(w,X,J){return new w({type:"template_literal",parts:X,...e(J)})}function S3(w,X){return new w({type:"lazy",getter:X})}function T3(w,X){return new w({type:"promise",innerType:X})}function qL(w,X,J){let G=e(J);return G.abort??(G.abort=!0),new w({type:"custom",check:"custom",fn:X,...G})}function LL(w,X,J){return new w({type:"custom",check:"custom",fn:X,...e(J)})}function KL(w,X){let J=e(X),G=J.truthy??["true","1","yes","on","y","enabled"],Y=J.falsy??["false","0","no","off","n","disabled"];if(J.case!=="sensitive")G=G.map((f)=>typeof f==="string"?f.toLowerCase():f),Y=Y.map((f)=>typeof f==="string"?f.toLowerCase():f);let W=new Set(G),q=new Set(Y),K=w.Pipe??WJ,A=w.Boolean??JJ,j=w.String??Pz,M=new(w.Transform??GJ)({type:"transform",transform:(f,c)=>{let p=f;if(J.case!=="sensitive")p=p.toLowerCase();if(W.has(p))return!0;else if(q.has(p))return!1;else return c.issues.push({code:"invalid_value",expected:"stringbool",values:[...W,...q],input:c.value,inst:M}),{}},error:J.error}),Z=new K({type:"pipe",in:new j({type:"string",error:J.error}),out:M,error:J.error});return new K({type:"pipe",in:Z,out:new A({type:"boolean",error:J.error}),error:J.error})}function DL(w,X,J,G={}){let Y=e(G),W={...e(G),check:"string_format",type:"string",format:X,fn:typeof J==="function"?J:(K)=>J.test(K),...Y};if(J instanceof RegExp)W.pattern=J;return new w(W)}class jL{constructor(w){this._def=w,this.def=w}implement(w){if(typeof w!=="function")throw Error("implement() must be called with a function");let X=(...J)=>{let G=this._def.input?I7(this._def.input,J,void 0,{callee:X}):J;if(!Array.isArray(G))throw Error("Invalid arguments schema: not an array or tuple schema.");let Y=w(...G);return this._def.output?I7(this._def.output,Y,void 0,{callee:X}):Y};return X}implementAsync(w){if(typeof w!=="function")throw Error("implement() must be called with a function");let X=async(...J)=>{let G=this._def.input?await P7(this._def.input,J,void 0,{callee:X}):J;if(!Array.isArray(G))throw Error("Invalid arguments schema: not an array or tuple schema.");let Y=await w(...G);return this._def.output?P7(this._def.output,Y,void 0,{callee:X}):Y};return X}input(...w){let X=this.constructor;if(Array.isArray(w[0]))return new X({type:"function",input:new vz({type:"tuple",items:w[0],rest:w[1]}),output:this._def.output});return new X({type:"function",input:w[0],output:this._def.output})}output(w){return new this.constructor({type:"function",input:this._def.input,output:w})}}function AL(w){return new jL({type:"function",input:Array.isArray(w?.input)?NL(vz,w?.input):w?.input??_J(QJ,$8(eX)),output:w?.output??$8(eX)})}class Q5{constructor(w){this.counter=0,this.metadataRegistry=w?.metadata??T0,this.target=w?.target??"draft-2020-12",this.unrepresentable=w?.unrepresentable??"throw",this.override=w?.override??(()=>{}),this.io=w?.io??"output",this.seen=new Map}process(w,X={path:[],schemaPath:[]}){var J;let G=w._zod.def,Y={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},W=this.seen.get(w);if(W){if(W.count++,X.schemaPath.includes(w))W.cycle=X.path;return W.schema}let q={schema:{},count:1,cycle:void 0,path:X.path};this.seen.set(w,q);let K=w._zod.toJSONSchema?.();if(K)q.schema=K;else{let E={...X,schemaPath:[...X.schemaPath,w],path:X.path},M=w._zod.parent;if(M)q.ref=M,this.process(M,E),this.seen.get(M).isParent=!0;else{let Z=q.schema;switch(G.type){case"string":{let P=Z;P.type="string";let{minimum:f,maximum:c,format:p,patterns:k,contentEncoding:C}=w._zod.bag;if(typeof f==="number")P.minLength=f;if(typeof c==="number")P.maxLength=c;if(p){if(P.format=Y[p]??p,P.format==="")delete P.format}if(C)P.contentEncoding=C;if(k&&k.size>0){let R=[...k];if(R.length===1)P.pattern=R[0].source;else if(R.length>1)q.schema.allOf=[...R.map((s)=>({...this.target==="draft-7"?{type:"string"}:{},pattern:s.source}))]}break}case"number":{let P=Z,{minimum:f,maximum:c,format:p,multipleOf:k,exclusiveMaximum:C,exclusiveMinimum:R}=w._zod.bag;if(typeof p==="string"&&p.includes("int"))P.type="integer";else P.type="number";if(typeof R==="number")P.exclusiveMinimum=R;if(typeof f==="number"){if(P.minimum=f,typeof R==="number")if(R>=f)delete P.minimum;else delete P.exclusiveMinimum}if(typeof C==="number")P.exclusiveMaximum=C;if(typeof c==="number"){if(P.maximum=c,typeof C==="number")if(C<=c)delete P.maximum;else delete P.exclusiveMaximum}if(typeof k==="number")P.multipleOf=k;break}case"boolean":{let P=Z;P.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw Error("Symbols cannot be represented in JSON Schema");break}case"null":{Z.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw Error("Void cannot be represented in JSON Schema");break}case"never":{Z.not={};break}case"date":{if(this.unrepresentable==="throw")throw Error("Date cannot be represented in JSON Schema");break}case"array":{let P=Z,{minimum:f,maximum:c}=w._zod.bag;if(typeof f==="number")P.minItems=f;if(typeof c==="number")P.maxItems=c;P.type="array",P.items=this.process(G.element,{...E,path:[...E.path,"items"]});break}case"object":{let P=Z;P.type="object",P.properties={};let f=G.shape;for(let k in f)P.properties[k]=this.process(f[k],{...E,path:[...E.path,"properties",k]});let c=new Set(Object.keys(f)),p=new Set([...c].filter((k)=>{let C=G.shape[k]._zod;if(this.io==="input")return C.optin===void 0;else return C.optout===void 0}));if(p.size>0)P.required=Array.from(p);if(G.catchall?._zod.def.type==="never")P.additionalProperties=!1;else if(!G.catchall){if(this.io==="output")P.additionalProperties=!1}else if(G.catchall)P.additionalProperties=this.process(G.catchall,{...E,path:[...E.path,"additionalProperties"]});break}case"union":{let P=Z;P.anyOf=G.options.map((f,c)=>this.process(f,{...E,path:[...E.path,"anyOf",c]}));break}case"intersection":{let P=Z,f=this.process(G.left,{...E,path:[...E.path,"allOf",0]}),c=this.process(G.right,{...E,path:[...E.path,"allOf",1]}),p=(C)=>("allOf"in C)&&Object.keys(C).length===1,k=[...p(f)?f.allOf:[f],...p(c)?c.allOf:[c]];P.allOf=k;break}case"tuple":{let P=Z;P.type="array";let f=G.items.map((k,C)=>this.process(k,{...E,path:[...E.path,"prefixItems",C]}));if(this.target==="draft-2020-12")P.prefixItems=f;else P.items=f;if(G.rest){let k=this.process(G.rest,{...E,path:[...E.path,"items"]});if(this.target==="draft-2020-12")P.items=k;else P.additionalItems=k}if(G.rest)P.items=this.process(G.rest,{...E,path:[...E.path,"items"]});let{minimum:c,maximum:p}=w._zod.bag;if(typeof c==="number")P.minItems=c;if(typeof p==="number")P.maxItems=p;break}case"record":{let P=Z;P.type="object",P.propertyNames=this.process(G.keyType,{...E,path:[...E.path,"propertyNames"]}),P.additionalProperties=this.process(G.valueType,{...E,path:[...E.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw Error("Set cannot be represented in JSON Schema");break}case"enum":{let P=Z,f=aY(G.entries);if(f.every((c)=>typeof c==="number"))P.type="number";if(f.every((c)=>typeof c==="string"))P.type="string";P.enum=f;break}case"literal":{let P=Z,f=[];for(let c of G.values)if(c===void 0){if(this.unrepresentable==="throw")throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof c==="bigint")if(this.unrepresentable==="throw")throw Error("BigInt literals cannot be represented in JSON Schema");else f.push(Number(c));else f.push(c);if(f.length===0);else if(f.length===1){let c=f[0];P.type=c===null?"null":typeof c,P.const=c}else{if(f.every((c)=>typeof c==="number"))P.type="number";if(f.every((c)=>typeof c==="string"))P.type="string";if(f.every((c)=>typeof c==="boolean"))P.type="string";if(f.every((c)=>c===null))P.type="null";P.enum=f}break}case"file":{let P=Z,f={type:"string",format:"binary",contentEncoding:"binary"},{minimum:c,maximum:p,mime:k}=w._zod.bag;if(c!==void 0)f.minLength=c;if(p!==void 0)f.maxLength=p;if(k)if(k.length===1)f.contentMediaType=k[0],Object.assign(P,f);else P.anyOf=k.map((C)=>{return{...f,contentMediaType:C}});else Object.assign(P,f);break}case"transform":{if(this.unrepresentable==="throw")throw Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let P=this.process(G.innerType,E);Z.anyOf=[P,{type:"null"}];break}case"nonoptional":{this.process(G.innerType,E),q.ref=G.innerType;break}case"success":{let P=Z;P.type="boolean";break}case"default":{this.process(G.innerType,E),q.ref=G.innerType,Z.default=JSON.parse(JSON.stringify(G.defaultValue));break}case"prefault":{if(this.process(G.innerType,E),q.ref=G.innerType,this.io==="input")Z._prefault=JSON.parse(JSON.stringify(G.defaultValue));break}case"catch":{this.process(G.innerType,E),q.ref=G.innerType;let P;try{P=G.catchValue(void 0)}catch{throw Error("Dynamic catch values are not supported in JSON Schema")}Z.default=P;break}case"nan":{if(this.unrepresentable==="throw")throw Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let P=Z,f=w._zod.pattern;if(!f)throw Error("Pattern not found in template literal");P.type="string",P.pattern=f.source;break}case"pipe":{let P=this.io==="input"?G.in._zod.def.type==="transform"?G.out:G.in:G.out;this.process(P,E),q.ref=P;break}case"readonly":{this.process(G.innerType,E),q.ref=G.innerType,Z.readOnly=!0;break}case"promise":{this.process(G.innerType,E),q.ref=G.innerType;break}case"optional":{this.process(G.innerType,E),q.ref=G.innerType;break}case"lazy":{let P=w._zod.innerType;this.process(P,E),q.ref=P;break}case"custom":{if(this.unrepresentable==="throw")throw Error("Custom types cannot be represented in JSON Schema");break}default:}}}let A=this.metadataRegistry.get(w);if(A)Object.assign(q.schema,A);if(this.io==="input"&&X4(w))delete q.schema.examples,delete q.schema.default;if(this.io==="input"&&q.schema._prefault)(J=q.schema).default??(J.default=q.schema._prefault);return delete q.schema._prefault,this.seen.get(w).schema}emit(w,X){let J={cycles:X?.cycles??"ref",reused:X?.reused??"inline",external:X?.external??void 0},G=this.seen.get(w);if(!G)throw Error("Unprocessed schema. This is a bug in Zod.");let Y=(j)=>{let E=this.target==="draft-2020-12"?"$defs":"definitions";if(J.external){let f=J.external.registry.get(j[0])?.id,c=J.external.uri??((k)=>k);if(f)return{ref:c(f)};let p=j[1].defId??j[1].schema.id??`schema${this.counter++}`;return j[1].defId=p,{defId:p,ref:`${c("__shared")}#/${E}/${p}`}}if(j[1]===G)return{ref:"#"};let Z=`${"#"}/${E}/`,P=j[1].schema.id??`__schema${this.counter++}`;return{defId:P,ref:Z+P}},W=(j)=>{if(j[1].schema.$ref)return;let E=j[1],{ref:M,defId:Z}=Y(j);if(E.def={...E.schema},Z)E.defId=Z;let P=E.schema;for(let f in P)delete P[f];P.$ref=M};if(J.cycles==="throw")for(let j of this.seen.entries()){let E=j[1];if(E.cycle)throw Error(`Cycle detected: #/${E.cycle?.join("/")}/<root>
|
|
264
|
+
|
|
265
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let j of this.seen.entries()){let E=j[1];if(w===j[0]){W(j);continue}if(J.external){let Z=J.external.registry.get(j[0])?.id;if(w!==j[0]&&Z){W(j);continue}}if(this.metadataRegistry.get(j[0])?.id){W(j);continue}if(E.cycle){W(j);continue}if(E.count>1){if(J.reused==="ref"){W(j);continue}}}let q=(j,E)=>{let M=this.seen.get(j),Z=M.def??M.schema,P={...Z};if(M.ref===null)return;let f=M.ref;if(M.ref=null,f){q(f,E);let c=this.seen.get(f).schema;if(c.$ref&&E.target==="draft-7")Z.allOf=Z.allOf??[],Z.allOf.push(c);else Object.assign(Z,c),Object.assign(Z,P)}if(!M.isParent)this.override({zodSchema:j,jsonSchema:Z,path:M.path??[]})};for(let j of[...this.seen.entries()].reverse())q(j[0],{target:this.target});let K={};if(this.target==="draft-2020-12")K.$schema="https://json-schema.org/draft/2020-12/schema";else if(this.target==="draft-7")K.$schema="http://json-schema.org/draft-07/schema#";else console.warn(`Invalid target: ${this.target}`);if(J.external?.uri){let j=J.external.registry.get(w)?.id;if(!j)throw Error("Schema is missing an `id` property");K.$id=J.external.uri(j)}Object.assign(K,G.def);let A=J.external?.defs??{};for(let j of this.seen.entries()){let E=j[1];if(E.def&&E.defId)A[E.defId]=E.def}if(J.external);else if(Object.keys(A).length>0)if(this.target==="draft-2020-12")K.$defs=A;else K.definitions=A;try{return JSON.parse(JSON.stringify(K))}catch(j){throw Error("Error converting schema to JSON.")}}}function Tz(w,X){if(w instanceof NJ){let G=new Q5(X),Y={};for(let K of w._idmap.entries()){let[A,j]=K;G.process(j)}let W={},q={registry:w,uri:X?.uri,defs:Y};for(let K of w._idmap.entries()){let[A,j]=K;W[A]=G.emit(j,{...X,external:q})}if(Object.keys(Y).length>0){let K=G.target==="draft-2020-12"?"$defs":"definitions";W.__shared={[K]:Y}}return{schemas:W}}let J=new Q5(X);return J.process(w),J.emit(w,X)}function X4(w,X){let J=X??{seen:new Set};if(J.seen.has(w))return!1;J.seen.add(w);let Y=w._zod.def;switch(Y.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return X4(Y.element,J);case"object":{for(let W in Y.shape)if(X4(Y.shape[W],J))return!0;return!1}case"union":{for(let W of Y.options)if(X4(W,J))return!0;return!1}case"intersection":return X4(Y.left,J)||X4(Y.right,J);case"tuple":{for(let W of Y.items)if(X4(W,J))return!0;if(Y.rest&&X4(Y.rest,J))return!0;return!1}case"record":return X4(Y.keyType,J)||X4(Y.valueType,J);case"map":return X4(Y.keyType,J)||X4(Y.valueType,J);case"set":return X4(Y.valueType,J);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return X4(Y.innerType,J);case"lazy":return X4(Y.getter(),J);case"default":return X4(Y.innerType,J);case"prefault":return X4(Y.innerType,J);case"custom":return!1;case"transform":return!0;case"pipe":return X4(Y.in,J)||X4(Y.out,J);case"success":return!1;case"catch":return!1;default:}throw Error(`Unknown schema type: ${Y.type}`)}var XR={};var N5={};Fz(N5,{time:()=>EL,duration:()=>ML,datetime:()=>FL,date:()=>VL,ZodISOTime:()=>H5,ZodISODuration:()=>O5,ZodISODateTime:()=>G5,ZodISODate:()=>W5});var G5=g("ZodISODateTime",(w,X)=>{UB.init(w,X),S6.init(w,X)});function FL(w){return xq(G5,w)}var W5=g("ZodISODate",(w,X)=>{wB.init(w,X),S6.init(w,X)});function VL(w){return gq(W5,w)}var H5=g("ZodISOTime",(w,X)=>{zB.init(w,X),S6.init(w,X)});function EL(w){return yq(H5,w)}var O5=g("ZodISODuration",(w,X)=>{XB.init(w,X),S6.init(w,X)});function ML(w){return fq(O5,w)}var JR=(w,X)=>{zJ.init(w,X),w.name="ZodError",Object.defineProperties(w,{format:{value:(J)=>YJ(w,J)},flatten:{value:(J)=>XJ(w,J)},addIssue:{value:(J)=>w.issues.push(J)},addIssues:{value:(J)=>w.issues.push(...J)},isEmpty:{get(){return w.issues.length===0}}})},C3=g("ZodError",JR),X8=g("ZodError",JR,{Parent:Error});var RL=R7(X8),IL=_7(X8),_L=v7(X8),bz=Z7(X8);var n$=g("ZodType",(w,X)=>{return b$.init(w,X),w.def=X,Object.defineProperty(w,"_def",{value:X}),w.check=(...J)=>{return w.clone({...X,checks:[...X.checks??[],...J.map((G)=>typeof G==="function"?{_zod:{check:G,def:{check:"custom"},onattach:[]}}:G)]})},w.clone=(J,G)=>N1(w,J,G),w.brand=()=>w,w.register=(J,G)=>{return J.add(w,G),w},w.parse=(J,G)=>RL(w,J,G,{callee:w.parse}),w.safeParse=(J,G)=>_L(w,J,G),w.parseAsync=async(J,G)=>IL(w,J,G,{callee:w.parseAsync}),w.safeParseAsync=async(J,G)=>bz(w,J,G),w.spa=w.safeParseAsync,w.refine=(J,G)=>w.check(pR(J,G)),w.superRefine=(J)=>w.check(oR(J)),w.overwrite=(J)=>w.check(LU(J)),w.optional=()=>L5(w),w.nullable=()=>K5(w),w.nullish=()=>L5(K5(w)),w.nonoptional=(J)=>xR(w,J),w.array=()=>oL(w),w.or=(J)=>V5([w,J]),w.and=(J)=>VR(w,J),w.transform=(J)=>D5(w,sL(J)),w.default=(J)=>bR(w,J),w.prefault=(J)=>kR(w,J),w.catch=(J)=>fR(w,J),w.pipe=(J)=>D5(w,J),w.readonly=()=>mR(w),w.describe=(J)=>{let G=w.clone();return T0.add(G,{description:J}),G},Object.defineProperty(w,"description",{get(){return T0.get(w)?.description},configurable:!0}),w.meta=(...J)=>{if(J.length===0)return T0.get(w);let G=w.clone();return T0.add(G,J[0]),G},w.isOptional=()=>w.safeParse(void 0).success,w.isNullable=()=>w.safeParse(null).success,w}),ZL=g("_ZodString",(w,X)=>{Pz.init(w,X),n$.init(w,X);let J=w._zod.bag;w.format=J.format??null,w.minLength=J.minimum??null,w.maxLength=J.maximum??null,w.regex=(...G)=>w.check(LJ(...G)),w.includes=(...G)=>w.check(jJ(...G)),w.startsWith=(...G)=>w.check(AJ(...G)),w.endsWith=(...G)=>w.check(FJ(...G)),w.min=(...G)=>w.check(Vw(...G)),w.max=(...G)=>w.check(w8(...G)),w.length=(...G)=>w.check(z8(...G)),w.nonempty=(...G)=>w.check(Vw(1,...G)),w.lowercase=(G)=>w.check(KJ(G)),w.uppercase=(G)=>w.check(DJ(G)),w.trim=()=>w.check(MJ()),w.normalize=(...G)=>w.check(EJ(...G)),w.toLowerCase=()=>w.check(RJ()),w.toUpperCase=()=>w.check(IJ())}),vJ=g("ZodString",(w,X)=>{Pz.init(w,X),ZL.init(w,X),w.email=(J)=>w.check(u7(SL,J)),w.url=(J)=>w.check(n7(TL,J)),w.jwt=(J)=>w.check(J5(dL,J)),w.emoji=(J)=>w.check(d7(bL,J)),w.guid=(J)=>w.check(BJ(B5,J)),w.uuid=(J)=>w.check(m7(DU,J)),w.uuidv4=(J)=>w.check(c7(DU,J)),w.uuidv6=(J)=>w.check(i7(DU,J)),w.uuidv7=(J)=>w.check(l7(DU,J)),w.nanoid=(J)=>w.check(p7(CL,J)),w.guid=(J)=>w.check(BJ(B5,J)),w.cuid=(J)=>w.check(o7(kL,J)),w.cuid2=(J)=>w.check(r7(xL,J)),w.ulid=(J)=>w.check(t7(gL,J)),w.base64=(J)=>w.check(z5(iL,J)),w.base64url=(J)=>w.check(X5(lL,J)),w.xid=(J)=>w.check(a7(yL,J)),w.ksuid=(J)=>w.check(s7(fL,J)),w.ipv4=(J)=>w.check(e7(hL,J)),w.ipv6=(J)=>w.check($5(uL,J)),w.cidrv4=(J)=>w.check(U5(mL,J)),w.cidrv6=(J)=>w.check(w5(cL,J)),w.e164=(J)=>w.check(Y5(nL,J)),w.datetime=(J)=>w.check(FL(J)),w.date=(J)=>w.check(VL(J)),w.time=(J)=>w.check(EL(J)),w.duration=(J)=>w.check(ML(J))});function PL(w){return bq(vJ,w)}var S6=g("ZodStringFormat",(w,X)=>{_6.init(w,X),ZL.init(w,X)}),SL=g("ZodEmail",(w,X)=>{dN.init(w,X),S6.init(w,X)});function x3(w){return u7(SL,w)}var B5=g("ZodGUID",(w,X)=>{lN.init(w,X),S6.init(w,X)});function g3(w){return BJ(B5,w)}var DU=g("ZodUUID",(w,X)=>{nN.init(w,X),S6.init(w,X)});function y3(w){return m7(DU,w)}function f3(w){return c7(DU,w)}function h3(w){return i7(DU,w)}function u3(w){return l7(DU,w)}var TL=g("ZodURL",(w,X)=>{pN.init(w,X),S6.init(w,X)});function m3(w){return n7(TL,w)}var bL=g("ZodEmoji",(w,X)=>{oN.init(w,X),S6.init(w,X)});function c3(w){return d7(bL,w)}var CL=g("ZodNanoID",(w,X)=>{rN.init(w,X),S6.init(w,X)});function i3(w){return p7(CL,w)}var kL=g("ZodCUID",(w,X)=>{tN.init(w,X),S6.init(w,X)});function l3(w){return o7(kL,w)}var xL=g("ZodCUID2",(w,X)=>{aN.init(w,X),S6.init(w,X)});function n3(w){return r7(xL,w)}var gL=g("ZodULID",(w,X)=>{sN.init(w,X),S6.init(w,X)});function d3(w){return t7(gL,w)}var yL=g("ZodXID",(w,X)=>{eN.init(w,X),S6.init(w,X)});function p3(w){return a7(yL,w)}var fL=g("ZodKSUID",(w,X)=>{$B.init(w,X),S6.init(w,X)});function o3(w){return s7(fL,w)}var hL=g("ZodIPv4",(w,X)=>{YB.init(w,X),S6.init(w,X)});function r3(w){return e7(hL,w)}var uL=g("ZodIPv6",(w,X)=>{JB.init(w,X),S6.init(w,X)});function t3(w){return $5(uL,w)}var mL=g("ZodCIDRv4",(w,X)=>{QB.init(w,X),S6.init(w,X)});function a3(w){return U5(mL,w)}var cL=g("ZodCIDRv6",(w,X)=>{GB.init(w,X),S6.init(w,X)});function s3(w){return w5(cL,w)}var iL=g("ZodBase64",(w,X)=>{HB.init(w,X),S6.init(w,X)});function e3(w){return z5(iL,w)}var lL=g("ZodBase64URL",(w,X)=>{OB.init(w,X),S6.init(w,X)});function $k(w){return X5(lL,w)}var nL=g("ZodE164",(w,X)=>{NB.init(w,X),S6.init(w,X)});function Uk(w){return Y5(nL,w)}var dL=g("ZodJWT",(w,X)=>{BB.init(w,X),S6.init(w,X)});function wk(w){return J5(dL,w)}var QR=g("ZodCustomStringFormat",(w,X)=>{qB.init(w,X),S6.init(w,X)});function zk(w,X,J={}){return DL(QR,w,X,J)}var ZJ=g("ZodNumber",(w,X)=>{g7.init(w,X),n$.init(w,X),w.gt=(G,Y)=>w.check(qU(G,Y)),w.gte=(G,Y)=>w.check(l4(G,Y)),w.min=(G,Y)=>w.check(l4(G,Y)),w.lt=(G,Y)=>w.check(BU(G,Y)),w.lte=(G,Y)=>w.check(C1(G,Y)),w.max=(G,Y)=>w.check(C1(G,Y)),w.int=(G)=>w.check(vL(G)),w.safe=(G)=>w.check(vL(G)),w.positive=(G)=>w.check(qU(0,G)),w.nonnegative=(G)=>w.check(l4(0,G)),w.negative=(G)=>w.check(BU(0,G)),w.nonpositive=(G)=>w.check(C1(0,G)),w.multipleOf=(G,Y)=>w.check(Zz(G,Y)),w.step=(G,Y)=>w.check(Zz(G,Y)),w.finite=()=>w;let J=w._zod.bag;w.minValue=Math.max(J.minimum??Number.NEGATIVE_INFINITY,J.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,w.maxValue=Math.min(J.maximum??Number.POSITIVE_INFINITY,J.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,w.isInt=(J.format??"").includes("int")||Number.isSafeInteger(J.multipleOf??0.5),w.isFinite=!0,w.format=J.format??null});function GR(w){return hq(ZJ,w)}var Y8=g("ZodNumberFormat",(w,X)=>{LB.init(w,X),ZJ.init(w,X)});function vL(w){return mq(Y8,w)}function Xk(w){return cq(Y8,w)}function Yk(w){return iq(Y8,w)}function Jk(w){return lq(Y8,w)}function Qk(w){return nq(Y8,w)}var SJ=g("ZodBoolean",(w,X)=>{JJ.init(w,X),n$.init(w,X)});function WR(w){return dq(SJ,w)}var TJ=g("ZodBigInt",(w,X)=>{y7.init(w,X),n$.init(w,X),w.gte=(G,Y)=>w.check(l4(G,Y)),w.min=(G,Y)=>w.check(l4(G,Y)),w.gt=(G,Y)=>w.check(qU(G,Y)),w.gte=(G,Y)=>w.check(l4(G,Y)),w.min=(G,Y)=>w.check(l4(G,Y)),w.lt=(G,Y)=>w.check(BU(G,Y)),w.lte=(G,Y)=>w.check(C1(G,Y)),w.max=(G,Y)=>w.check(C1(G,Y)),w.positive=(G)=>w.check(qU(BigInt(0),G)),w.negative=(G)=>w.check(BU(BigInt(0),G)),w.nonpositive=(G)=>w.check(C1(BigInt(0),G)),w.nonnegative=(G)=>w.check(l4(BigInt(0),G)),w.multipleOf=(G,Y)=>w.check(Zz(G,Y));let J=w._zod.bag;w.minValue=J.minimum??null,w.maxValue=J.maximum??null,w.format=J.format??null});function Gk(w){return oq(TJ,w)}var pL=g("ZodBigIntFormat",(w,X)=>{KB.init(w,X),TJ.init(w,X)});function Wk(w){return tq(pL,w)}function Hk(w){return aq(pL,w)}var HR=g("ZodSymbol",(w,X)=>{DB.init(w,X),n$.init(w,X)});function Ok(w){return sq(HR,w)}var OR=g("ZodUndefined",(w,X)=>{jB.init(w,X),n$.init(w,X)});function Nk(w){return eq(OR,w)}var NR=g("ZodNull",(w,X)=>{AB.init(w,X),n$.init(w,X)});function BR(w){return $L(NR,w)}var qR=g("ZodAny",(w,X)=>{FB.init(w,X),n$.init(w,X)});function Bk(){return UL(qR)}var LR=g("ZodUnknown",(w,X)=>{eX.init(w,X),n$.init(w,X)});function q5(){return $8(LR)}var KR=g("ZodNever",(w,X)=>{VB.init(w,X),n$.init(w,X)});function j5(w){return wL(KR,w)}var DR=g("ZodVoid",(w,X)=>{EB.init(w,X),n$.init(w,X)});function qk(w){return zL(DR,w)}var A5=g("ZodDate",(w,X)=>{MB.init(w,X),n$.init(w,X),w.min=(G,Y)=>w.check(l4(G,Y)),w.max=(G,Y)=>w.check(C1(G,Y));let J=w._zod.bag;w.minDate=J.minimum?new Date(J.minimum):null,w.maxDate=J.maximum?new Date(J.maximum):null});function Lk(w){return XL(A5,w)}var jR=g("ZodArray",(w,X)=>{QJ.init(w,X),n$.init(w,X),w.element=X.element,w.min=(J,G)=>w.check(Vw(J,G)),w.nonempty=(J)=>w.check(Vw(1,J)),w.max=(J,G)=>w.check(w8(J,G)),w.length=(J,G)=>w.check(z8(J,G)),w.unwrap=()=>w.element});function oL(w,X){return _J(jR,w,X)}function Kk(w){let X=w._zod.def.shape;return vR(Object.keys(X))}var F5=g("ZodObject",(w,X)=>{RB.init(w,X),n$.init(w,X),X$.defineLazy(w,"shape",()=>X.shape),w.keyof=()=>_R(Object.keys(w._zod.def.shape)),w.catchall=(J)=>w.clone({...w._zod.def,catchall:J}),w.passthrough=()=>w.clone({...w._zod.def,catchall:q5()}),w.loose=()=>w.clone({...w._zod.def,catchall:q5()}),w.strict=()=>w.clone({...w._zod.def,catchall:j5()}),w.strip=()=>w.clone({...w._zod.def,catchall:void 0}),w.extend=(J)=>{return X$.extend(w,J)},w.merge=(J)=>X$.merge(w,J),w.pick=(J)=>X$.pick(w,J),w.omit=(J)=>X$.omit(w,J),w.partial=(...J)=>X$.partial(eL,w,J[0]),w.required=(...J)=>X$.required($K,w,J[0])});function Dk(w,X){let J={type:"object",get shape(){return X$.assignProp(this,"shape",{...w}),this.shape},...X$.normalizeParams(X)};return new F5(J)}function jk(w,X){return new F5({type:"object",get shape(){return X$.assignProp(this,"shape",{...w}),this.shape},catchall:j5(),...X$.normalizeParams(X)})}function Ak(w,X){return new F5({type:"object",get shape(){return X$.assignProp(this,"shape",{...w}),this.shape},catchall:q5(),...X$.normalizeParams(X)})}var rL=g("ZodUnion",(w,X)=>{f7.init(w,X),n$.init(w,X),w.options=X.options});function V5(w,X){return new rL({type:"union",options:w,...X$.normalizeParams(X)})}var AR=g("ZodDiscriminatedUnion",(w,X)=>{rL.init(w,X),IB.init(w,X)});function Fk(w,X,J){return new AR({type:"union",options:X,discriminator:w,...X$.normalizeParams(J)})}var FR=g("ZodIntersection",(w,X)=>{_B.init(w,X),n$.init(w,X)});function VR(w,X){return new FR({type:"intersection",left:w,right:X})}var ER=g("ZodTuple",(w,X)=>{vz.init(w,X),n$.init(w,X),w.rest=(J)=>w.clone({...w._zod.def,rest:J})});function Vk(w,X,J){let G=X instanceof b$,Y=G?J:X;return new ER({type:"tuple",items:w,rest:G?X:null,...X$.normalizeParams(Y)})}var tL=g("ZodRecord",(w,X)=>{PB.init(w,X),n$.init(w,X),w.keyType=X.keyType,w.valueType=X.valueType});function MR(w,X,J){return new tL({type:"record",keyType:w,valueType:X,...X$.normalizeParams(J)})}function Ek(w,X,J){return new tL({type:"record",keyType:V5([w,j5()]),valueType:X,...X$.normalizeParams(J)})}var RR=g("ZodMap",(w,X)=>{vB.init(w,X),n$.init(w,X),w.keyType=X.keyType,w.valueType=X.valueType});function Mk(w,X,J){return new RR({type:"map",keyType:w,valueType:X,...X$.normalizeParams(J)})}var IR=g("ZodSet",(w,X)=>{ZB.init(w,X),n$.init(w,X),w.min=(...J)=>w.check(Sz(...J)),w.nonempty=(J)=>w.check(Sz(1,J)),w.max=(...J)=>w.check(U8(...J)),w.size=(...J)=>w.check(qJ(...J))});function Rk(w,X){return new IR({type:"set",valueType:w,...X$.normalizeParams(X)})}var PJ=g("ZodEnum",(w,X)=>{SB.init(w,X),n$.init(w,X),w.enum=X.entries,w.options=Object.values(X.entries);let J=new Set(Object.keys(X.entries));w.extract=(G,Y)=>{let W={};for(let q of G)if(J.has(q))W[q]=X.entries[q];else throw Error(`Key ${q} not found in enum`);return new PJ({...X,checks:[],...X$.normalizeParams(Y),entries:W})},w.exclude=(G,Y)=>{let W={...X.entries};for(let q of G)if(J.has(q))delete W[q];else throw Error(`Key ${q} not found in enum`);return new PJ({...X,checks:[],...X$.normalizeParams(Y),entries:W})}});function _R(w,X){let J=Array.isArray(w)?Object.fromEntries(w.map((G)=>[G,G])):w;return new PJ({type:"enum",entries:J,...X$.normalizeParams(X)})}function Ik(w,X){return new PJ({type:"enum",entries:w,...X$.normalizeParams(X)})}var PR=g("ZodLiteral",(w,X)=>{TB.init(w,X),n$.init(w,X),w.values=new Set(X.values),Object.defineProperty(w,"value",{get(){if(X.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return X.values[0]}})});function vR(w,X){return new PR({type:"literal",values:Array.isArray(w)?w:[w],...X$.normalizeParams(X)})}var ZR=g("ZodFile",(w,X)=>{bB.init(w,X),n$.init(w,X),w.min=(J,G)=>w.check(Sz(J,G)),w.max=(J,G)=>w.check(U8(J,G)),w.mime=(J,G)=>w.check(VJ(Array.isArray(J)?J:[J],G))});function _k(w){return BL(ZR,w)}var aL=g("ZodTransform",(w,X)=>{GJ.init(w,X),n$.init(w,X),w._zod.parse=(J,G)=>{J.addIssue=(W)=>{if(typeof W==="string")J.issues.push(X$.issue(W,J.value,X));else{let q=W;if(q.fatal)q.continue=!1;q.code??(q.code="custom"),q.input??(q.input=J.value),q.inst??(q.inst=w),q.continue??(q.continue=!0),J.issues.push(X$.issue(q))}};let Y=X.transform(J.value,J);if(Y instanceof Promise)return Y.then((W)=>{return J.value=W,J});return J.value=Y,J}});function sL(w){return new aL({type:"transform",transform:w})}var eL=g("ZodOptional",(w,X)=>{CB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType});function L5(w){return new eL({type:"optional",innerType:w})}var SR=g("ZodNullable",(w,X)=>{kB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType});function K5(w){return new SR({type:"nullable",innerType:w})}function Pk(w){return L5(K5(w))}var TR=g("ZodDefault",(w,X)=>{xB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType,w.removeDefault=w.unwrap});function bR(w,X){return new TR({type:"default",innerType:w,get defaultValue(){return typeof X==="function"?X():X}})}var CR=g("ZodPrefault",(w,X)=>{gB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType});function kR(w,X){return new CR({type:"prefault",innerType:w,get defaultValue(){return typeof X==="function"?X():X}})}var $K=g("ZodNonOptional",(w,X)=>{yB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType});function xR(w,X){return new $K({type:"nonoptional",innerType:w,...X$.normalizeParams(X)})}var gR=g("ZodSuccess",(w,X)=>{fB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType});function vk(w){return new gR({type:"success",innerType:w})}var yR=g("ZodCatch",(w,X)=>{hB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType,w.removeCatch=w.unwrap});function fR(w,X){return new yR({type:"catch",innerType:w,catchValue:typeof X==="function"?X:()=>X})}var hR=g("ZodNaN",(w,X)=>{uB.init(w,X),n$.init(w,X)});function Zk(w){return JL(hR,w)}var UK=g("ZodPipe",(w,X)=>{WJ.init(w,X),n$.init(w,X),w.in=X.in,w.out=X.out});function D5(w,X){return new UK({type:"pipe",in:w,out:X})}var uR=g("ZodReadonly",(w,X)=>{mB.init(w,X),n$.init(w,X)});function mR(w){return new uR({type:"readonly",innerType:w})}var cR=g("ZodTemplateLiteral",(w,X)=>{cB.init(w,X),n$.init(w,X)});function Sk(w,X){return new cR({type:"template_literal",parts:w,...X$.normalizeParams(X)})}var iR=g("ZodLazy",(w,X)=>{lB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.getter()});function lR(w){return new iR({type:"lazy",getter:w})}var nR=g("ZodPromise",(w,X)=>{iB.init(w,X),n$.init(w,X),w.unwrap=()=>w._zod.def.innerType});function Tk(w){return new nR({type:"promise",innerType:w})}var E5=g("ZodCustom",(w,X)=>{nB.init(w,X),n$.init(w,X)});function dR(w){let X=new u6({check:"custom"});return X._zod.check=w,X}function bk(w,X){return qL(E5,w??(()=>!0),X)}function pR(w,X={}){return LL(E5,w,X)}function oR(w){let X=dR((J)=>{return J.addIssue=(G)=>{if(typeof G==="string")J.issues.push(X$.issue(G,J.value,X._zod.def));else{let Y=G;if(Y.fatal)Y.continue=!1;Y.code??(Y.code="custom"),Y.input??(Y.input=J.value),Y.inst??(Y.inst=X),Y.continue??(Y.continue=!X._zod.def.abort),J.issues.push(X$.issue(Y))}},w(J.value,J)});return X}function Ck(w,X={error:`Input not instance of ${w.name}`}){let J=new E5({type:"custom",check:"custom",fn:(G)=>G instanceof w,abort:!0,...X$.normalizeParams(X)});return J._zod.bag.Class=w,J}var kk=(...w)=>KL({Pipe:UK,Boolean:SJ,String:vJ,Transform:aL},...w);function xk(w){let X=lR(()=>{return V5([PL(w),GR(),WR(),BR(),oL(X),MR(PL(),X)])});return X}function gk(w,X){return D5(sL(w),X)}var yk={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function fk(w){$4({customError:w})}function hk(){return $4().customError}var wK={};Fz(wK,{string:()=>uk,number:()=>mk,date:()=>lk,boolean:()=>ck,bigint:()=>ik});function uk(w){return Cq(vJ,w)}function mk(w){return uq(ZJ,w)}function ck(w){return pq(SJ,w)}function ik(w){return rq(TJ,w)}function lk(w){return YL(A5,w)}$4(HJ());var t$;(function(w){w.assertEqual=(Y)=>{};function X(Y){}w.assertIs=X;function J(Y){throw Error()}w.assertNever=J,w.arrayToEnum=(Y)=>{let W={};for(let q of Y)W[q]=q;return W},w.getValidEnumValues=(Y)=>{let W=w.objectKeys(Y).filter((K)=>typeof Y[Y[K]]!=="number"),q={};for(let K of W)q[K]=Y[K];return w.objectValues(q)},w.objectValues=(Y)=>{return w.objectKeys(Y).map(function(W){return Y[W]})},w.objectKeys=typeof Object.keys==="function"?(Y)=>Object.keys(Y):(Y)=>{let W=[];for(let q in Y)if(Object.prototype.hasOwnProperty.call(Y,q))W.push(q);return W},w.find=(Y,W)=>{for(let q of Y)if(W(q))return q;return},w.isInteger=typeof Number.isInteger==="function"?(Y)=>Number.isInteger(Y):(Y)=>typeof Y==="number"&&Number.isFinite(Y)&&Math.floor(Y)===Y;function G(Y,W=" | "){return Y.map((q)=>typeof q==="string"?`'${q}'`:q).join(W)}w.joinValues=G,w.jsonStringifyReplacer=(Y,W)=>{if(typeof W==="bigint")return W.toString();return W}})(t$||(t$={}));var rR;(function(w){w.mergeShapes=(X,J)=>{return{...X,...J}}})(rR||(rR={}));var U$=t$.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),jU=(w)=>{switch(typeof w){case"undefined":return U$.undefined;case"string":return U$.string;case"number":return Number.isNaN(w)?U$.nan:U$.number;case"boolean":return U$.boolean;case"function":return U$.function;case"bigint":return U$.bigint;case"symbol":return U$.symbol;case"object":if(Array.isArray(w))return U$.array;if(w===null)return U$.null;if(w.then&&typeof w.then==="function"&&w.catch&&typeof w.catch==="function")return U$.promise;if(typeof Map<"u"&&w instanceof Map)return U$.map;if(typeof Set<"u"&&w instanceof Set)return U$.set;if(typeof Date<"u"&&w instanceof Date)return U$.date;return U$.object;default:return U$.unknown}};var o=t$.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class q1 extends Error{get errors(){return this.issues}constructor(w){super();this.issues=[],this.addIssue=(J)=>{this.issues=[...this.issues,J]},this.addIssues=(J=[])=>{this.issues=[...this.issues,...J]};let X=new.target.prototype;if(Object.setPrototypeOf)Object.setPrototypeOf(this,X);else this.__proto__=X;this.name="ZodError",this.issues=w}format(w){let X=w||function(Y){return Y.message},J={_errors:[]},G=(Y)=>{for(let W of Y.issues)if(W.code==="invalid_union")W.unionErrors.map(G);else if(W.code==="invalid_return_type")G(W.returnTypeError);else if(W.code==="invalid_arguments")G(W.argumentsError);else if(W.path.length===0)J._errors.push(X(W));else{let q=J,K=0;while(K<W.path.length){let A=W.path[K];if(K!==W.path.length-1)q[A]=q[A]||{_errors:[]};else q[A]=q[A]||{_errors:[]},q[A]._errors.push(X(W));q=q[A],K++}}};return G(this),J}static assert(w){if(!(w instanceof q1))throw Error(`Not a ZodError: ${w}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,t$.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(w=(X)=>X.message){let X={},J=[];for(let G of this.issues)if(G.path.length>0){let Y=G.path[0];X[Y]=X[Y]||[],X[Y].push(w(G))}else J.push(w(G));return{formErrors:J,fieldErrors:X}}get formErrors(){return this.flatten()}}q1.create=(w)=>{return new q1(w)};var nk=(w,X)=>{let J;switch(w.code){case o.invalid_type:if(w.received===U$.undefined)J="Required";else J=`Expected ${w.expected}, received ${w.received}`;break;case o.invalid_literal:J=`Invalid literal value, expected ${JSON.stringify(w.expected,t$.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:J=`Unrecognized key(s) in object: ${t$.joinValues(w.keys,", ")}`;break;case o.invalid_union:J="Invalid input";break;case o.invalid_union_discriminator:J=`Invalid discriminator value. Expected ${t$.joinValues(w.options)}`;break;case o.invalid_enum_value:J=`Invalid enum value. Expected ${t$.joinValues(w.options)}, received '${w.received}'`;break;case o.invalid_arguments:J="Invalid function arguments";break;case o.invalid_return_type:J="Invalid function return type";break;case o.invalid_date:J="Invalid date";break;case o.invalid_string:if(typeof w.validation==="object")if("includes"in w.validation){if(J=`Invalid input: must include "${w.validation.includes}"`,typeof w.validation.position==="number")J=`${J} at one or more positions greater than or equal to ${w.validation.position}`}else if("startsWith"in w.validation)J=`Invalid input: must start with "${w.validation.startsWith}"`;else if("endsWith"in w.validation)J=`Invalid input: must end with "${w.validation.endsWith}"`;else t$.assertNever(w.validation);else if(w.validation!=="regex")J=`Invalid ${w.validation}`;else J="Invalid";break;case o.too_small:if(w.type==="array")J=`Array must contain ${w.exact?"exactly":w.inclusive?"at least":"more than"} ${w.minimum} element(s)`;else if(w.type==="string")J=`String must contain ${w.exact?"exactly":w.inclusive?"at least":"over"} ${w.minimum} character(s)`;else if(w.type==="number")J=`Number must be ${w.exact?"exactly equal to ":w.inclusive?"greater than or equal to ":"greater than "}${w.minimum}`;else if(w.type==="bigint")J=`Number must be ${w.exact?"exactly equal to ":w.inclusive?"greater than or equal to ":"greater than "}${w.minimum}`;else if(w.type==="date")J=`Date must be ${w.exact?"exactly equal to ":w.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(w.minimum))}`;else J="Invalid input";break;case o.too_big:if(w.type==="array")J=`Array must contain ${w.exact?"exactly":w.inclusive?"at most":"less than"} ${w.maximum} element(s)`;else if(w.type==="string")J=`String must contain ${w.exact?"exactly":w.inclusive?"at most":"under"} ${w.maximum} character(s)`;else if(w.type==="number")J=`Number must be ${w.exact?"exactly":w.inclusive?"less than or equal to":"less than"} ${w.maximum}`;else if(w.type==="bigint")J=`BigInt must be ${w.exact?"exactly":w.inclusive?"less than or equal to":"less than"} ${w.maximum}`;else if(w.type==="date")J=`Date must be ${w.exact?"exactly":w.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(w.maximum))}`;else J="Invalid input";break;case o.custom:J="Invalid input";break;case o.invalid_intersection_types:J="Intersection results could not be merged";break;case o.not_multiple_of:J=`Number must be a multiple of ${w.multipleOf}`;break;case o.not_finite:J="Number must be finite";break;default:J=X.defaultError,t$.assertNever(w)}return{message:J}},Ew=nk;var dk=Ew;function bJ(){return dk}var M5=(w)=>{let{data:X,path:J,errorMaps:G,issueData:Y}=w,W=[...J,...Y.path||[]],q={...Y,path:W};if(Y.message!==void 0)return{...Y,path:W,message:Y.message};let K="",A=G.filter((j)=>!!j).slice().reverse();for(let j of A)K=j(q,{data:X,defaultError:K}).message;return{...Y,path:W,message:K}};function W$(w,X){let J=bJ(),G=M5({issueData:X,data:w.data,path:w.path,errorMaps:[w.common.contextualErrorMap,w.schemaErrorMap,J,J===Ew?void 0:Ew].filter((Y)=>!!Y)});w.common.issues.push(G)}class F4{constructor(){this.value="valid"}dirty(){if(this.value==="valid")this.value="dirty"}abort(){if(this.value!=="aborted")this.value="aborted"}static mergeArray(w,X){let J=[];for(let G of X){if(G.status==="aborted")return _$;if(G.status==="dirty")w.dirty();J.push(G.value)}return{status:w.value,value:J}}static async mergeObjectAsync(w,X){let J=[];for(let G of X){let Y=await G.key,W=await G.value;J.push({key:Y,value:W})}return F4.mergeObjectSync(w,J)}static mergeObjectSync(w,X){let J={};for(let G of X){let{key:Y,value:W}=G;if(Y.status==="aborted")return _$;if(W.status==="aborted")return _$;if(Y.status==="dirty")w.dirty();if(W.status==="dirty")w.dirty();if(Y.value!=="__proto__"&&(typeof W.value<"u"||G.alwaysSet))J[Y.value]=W.value}return{status:w.value,value:J}}}var _$=Object.freeze({status:"aborted"}),J8=(w)=>({status:"dirty",value:w}),S4=(w)=>({status:"valid",value:w}),zK=(w)=>w.status==="aborted",XK=(w)=>w.status==="dirty",Cz=(w)=>w.status==="valid",CJ=(w)=>typeof Promise<"u"&&w instanceof Promise;var L$;(function(w){w.errToObj=(X)=>typeof X==="string"?{message:X}:X||{},w.toString=(X)=>typeof X==="string"?X:X?.message})(L$||(L$={}));class r1{constructor(w,X,J,G){this._cachedPath=[],this.parent=w,this.data=X,this._path=J,this._key=G}get path(){if(!this._cachedPath.length)if(Array.isArray(this._key))this._cachedPath.push(...this._path,...this._key);else this._cachedPath.push(...this._path,this._key);return this._cachedPath}}var tR=(w,X)=>{if(Cz(X))return{success:!0,data:X.value};else{if(!w.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let J=new q1(w.common.issues);return this._error=J,this._error}}}};function f$(w){if(!w)return{};let{errorMap:X,invalid_type_error:J,required_error:G,description:Y}=w;if(X&&(J||G))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);if(X)return{errorMap:X,description:Y};return{errorMap:(q,K)=>{let{message:A}=w;if(q.code==="invalid_enum_value")return{message:A??K.defaultError};if(typeof K.data>"u")return{message:A??G??K.defaultError};if(q.code!=="invalid_type")return{message:K.defaultError};return{message:A??J??K.defaultError}},description:Y}}class p${get description(){return this._def.description}_getType(w){return jU(w.data)}_getOrReturnCtx(w,X){return X||{common:w.parent.common,data:w.data,parsedType:jU(w.data),schemaErrorMap:this._def.errorMap,path:w.path,parent:w.parent}}_processInputParams(w){return{status:new F4,ctx:{common:w.parent.common,data:w.data,parsedType:jU(w.data),schemaErrorMap:this._def.errorMap,path:w.path,parent:w.parent}}}_parseSync(w){let X=this._parse(w);if(CJ(X))throw Error("Synchronous parse encountered promise.");return X}_parseAsync(w){let X=this._parse(w);return Promise.resolve(X)}parse(w,X){let J=this.safeParse(w,X);if(J.success)return J.data;throw J.error}safeParse(w,X){let J={common:{issues:[],async:X?.async??!1,contextualErrorMap:X?.errorMap},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:w,parsedType:jU(w)},G=this._parseSync({data:w,path:J.path,parent:J});return tR(J,G)}"~validate"(w){let X={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:w,parsedType:jU(w)};if(!this["~standard"].async)try{let J=this._parseSync({data:w,path:[],parent:X});return Cz(J)?{value:J.value}:{issues:X.common.issues}}catch(J){if(J?.message?.toLowerCase()?.includes("encountered"))this["~standard"].async=!0;X.common={issues:[],async:!0}}return this._parseAsync({data:w,path:[],parent:X}).then((J)=>Cz(J)?{value:J.value}:{issues:X.common.issues})}async parseAsync(w,X){let J=await this.safeParseAsync(w,X);if(J.success)return J.data;throw J.error}async safeParseAsync(w,X){let J={common:{issues:[],contextualErrorMap:X?.errorMap,async:!0},path:X?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:w,parsedType:jU(w)},G=this._parse({data:w,path:J.path,parent:J}),Y=await(CJ(G)?G:Promise.resolve(G));return tR(J,Y)}refine(w,X){let J=(G)=>{if(typeof X==="string"||typeof X>"u")return{message:X};else if(typeof X==="function")return X(G);else return X};return this._refinement((G,Y)=>{let W=w(G),q=()=>Y.addIssue({code:o.custom,...J(G)});if(typeof Promise<"u"&&W instanceof Promise)return W.then((K)=>{if(!K)return q(),!1;else return!0});if(!W)return q(),!1;else return!0})}refinement(w,X){return this._refinement((J,G)=>{if(!w(J))return G.addIssue(typeof X==="function"?X(J,G):X),!1;else return!0})}_refinement(w){return new k0({schema:this,typeName:m.ZodEffects,effect:{type:"refinement",refinement:w}})}superRefine(w){return this._refinement(w)}constructor(w){this.spa=this.safeParseAsync,this._def=w,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:(X)=>this["~validate"](X)}}optional(){return C0.create(this,this._def)}nullable(){return Mw.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return b0.create(this)}promise(){return O8.create(this,this._def)}or(w){return fJ.create([this,w],this._def)}and(w){return hJ.create(this,w,this._def)}transform(w){return new k0({...f$(this._def),schema:this,typeName:m.ZodEffects,effect:{type:"transform",transform:w}})}default(w){let X=typeof w==="function"?w:()=>w;return new iJ({...f$(this._def),innerType:this,defaultValue:X,typeName:m.ZodDefault})}brand(){return new GK({typeName:m.ZodBranded,type:this,...f$(this._def)})}catch(w){let X=typeof w==="function"?w:()=>w;return new lJ({...f$(this._def),innerType:this,catchValue:X,typeName:m.ZodCatch})}describe(w){return new this.constructor({...this._def,description:w})}pipe(w){return T5.create(this,w)}readonly(){return nJ.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}var pk=/^c[^\s-]{8,}$/i,ok=/^[0-9a-z]+$/,rk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,tk=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ak=/^[a-z0-9_-]{21}$/i,sk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ek=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,$x=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ux="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",YK,wx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,zx=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Xx=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Yx=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Jx=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Qx=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,aR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Gx=new RegExp(`^${aR}$`);function sR(w){let X="[0-5]\\d";if(w.precision)X=`${X}\\.\\d{${w.precision}}`;else if(w.precision==null)X=`${X}(\\.\\d+)?`;let J=w.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${X})${J}`}function Wx(w){return new RegExp(`^${sR(w)}$`)}function Hx(w){let X=`${aR}T${sR(w)}`,J=[];if(J.push(w.local?"Z?":"Z"),w.offset)J.push("([+-]\\d{2}:?\\d{2})");return X=`${X}(${J.join("|")})`,new RegExp(`^${X}$`)}function Ox(w,X){if((X==="v4"||!X)&&wx.test(w))return!0;if((X==="v6"||!X)&&Xx.test(w))return!0;return!1}function Nx(w,X){if(!sk.test(w))return!1;try{let[J]=w.split(".");if(!J)return!1;let G=J.replace(/-/g,"+").replace(/_/g,"/").padEnd(J.length+(4-J.length%4)%4,"="),Y=JSON.parse(atob(G));if(typeof Y!=="object"||Y===null)return!1;if("typ"in Y&&Y?.typ!=="JWT")return!1;if(!Y.alg)return!1;if(X&&Y.alg!==X)return!1;return!0}catch{return!1}}function Bx(w,X){if((X==="v4"||!X)&&zx.test(w))return!0;if((X==="v6"||!X)&&Yx.test(w))return!0;return!1}class FU extends p${_parse(w){if(this._def.coerce)w.data=String(w.data);if(this._getType(w)!==U$.string){let Y=this._getOrReturnCtx(w);return W$(Y,{code:o.invalid_type,expected:U$.string,received:Y.parsedType}),_$}let J=new F4,G=void 0;for(let Y of this._def.checks)if(Y.kind==="min"){if(w.data.length<Y.value)G=this._getOrReturnCtx(w,G),W$(G,{code:o.too_small,minimum:Y.value,type:"string",inclusive:!0,exact:!1,message:Y.message}),J.dirty()}else if(Y.kind==="max"){if(w.data.length>Y.value)G=this._getOrReturnCtx(w,G),W$(G,{code:o.too_big,maximum:Y.value,type:"string",inclusive:!0,exact:!1,message:Y.message}),J.dirty()}else if(Y.kind==="length"){let W=w.data.length>Y.value,q=w.data.length<Y.value;if(W||q){if(G=this._getOrReturnCtx(w,G),W)W$(G,{code:o.too_big,maximum:Y.value,type:"string",inclusive:!0,exact:!0,message:Y.message});else if(q)W$(G,{code:o.too_small,minimum:Y.value,type:"string",inclusive:!0,exact:!0,message:Y.message});J.dirty()}}else if(Y.kind==="email"){if(!$x.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"email",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="emoji"){if(!YK)YK=new RegExp(Ux,"u");if(!YK.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"emoji",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="uuid"){if(!tk.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"uuid",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="nanoid"){if(!ak.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"nanoid",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="cuid"){if(!pk.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"cuid",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="cuid2"){if(!ok.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"cuid2",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="ulid"){if(!rk.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"ulid",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="url")try{new URL(w.data)}catch{G=this._getOrReturnCtx(w,G),W$(G,{validation:"url",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="regex"){if(Y.regex.lastIndex=0,!Y.regex.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"regex",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="trim")w.data=w.data.trim();else if(Y.kind==="includes"){if(!w.data.includes(Y.value,Y.position))G=this._getOrReturnCtx(w,G),W$(G,{code:o.invalid_string,validation:{includes:Y.value,position:Y.position},message:Y.message}),J.dirty()}else if(Y.kind==="toLowerCase")w.data=w.data.toLowerCase();else if(Y.kind==="toUpperCase")w.data=w.data.toUpperCase();else if(Y.kind==="startsWith"){if(!w.data.startsWith(Y.value))G=this._getOrReturnCtx(w,G),W$(G,{code:o.invalid_string,validation:{startsWith:Y.value},message:Y.message}),J.dirty()}else if(Y.kind==="endsWith"){if(!w.data.endsWith(Y.value))G=this._getOrReturnCtx(w,G),W$(G,{code:o.invalid_string,validation:{endsWith:Y.value},message:Y.message}),J.dirty()}else if(Y.kind==="datetime"){if(!Hx(Y).test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{code:o.invalid_string,validation:"datetime",message:Y.message}),J.dirty()}else if(Y.kind==="date"){if(!Gx.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{code:o.invalid_string,validation:"date",message:Y.message}),J.dirty()}else if(Y.kind==="time"){if(!Wx(Y).test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{code:o.invalid_string,validation:"time",message:Y.message}),J.dirty()}else if(Y.kind==="duration"){if(!ek.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"duration",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="ip"){if(!Ox(w.data,Y.version))G=this._getOrReturnCtx(w,G),W$(G,{validation:"ip",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="jwt"){if(!Nx(w.data,Y.alg))G=this._getOrReturnCtx(w,G),W$(G,{validation:"jwt",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="cidr"){if(!Bx(w.data,Y.version))G=this._getOrReturnCtx(w,G),W$(G,{validation:"cidr",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="base64"){if(!Jx.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"base64",code:o.invalid_string,message:Y.message}),J.dirty()}else if(Y.kind==="base64url"){if(!Qx.test(w.data))G=this._getOrReturnCtx(w,G),W$(G,{validation:"base64url",code:o.invalid_string,message:Y.message}),J.dirty()}else t$.assertNever(Y);return{status:J.value,value:w.data}}_regex(w,X,J){return this.refinement((G)=>w.test(G),{validation:X,code:o.invalid_string,...L$.errToObj(J)})}_addCheck(w){return new FU({...this._def,checks:[...this._def.checks,w]})}email(w){return this._addCheck({kind:"email",...L$.errToObj(w)})}url(w){return this._addCheck({kind:"url",...L$.errToObj(w)})}emoji(w){return this._addCheck({kind:"emoji",...L$.errToObj(w)})}uuid(w){return this._addCheck({kind:"uuid",...L$.errToObj(w)})}nanoid(w){return this._addCheck({kind:"nanoid",...L$.errToObj(w)})}cuid(w){return this._addCheck({kind:"cuid",...L$.errToObj(w)})}cuid2(w){return this._addCheck({kind:"cuid2",...L$.errToObj(w)})}ulid(w){return this._addCheck({kind:"ulid",...L$.errToObj(w)})}base64(w){return this._addCheck({kind:"base64",...L$.errToObj(w)})}base64url(w){return this._addCheck({kind:"base64url",...L$.errToObj(w)})}jwt(w){return this._addCheck({kind:"jwt",...L$.errToObj(w)})}ip(w){return this._addCheck({kind:"ip",...L$.errToObj(w)})}cidr(w){return this._addCheck({kind:"cidr",...L$.errToObj(w)})}datetime(w){if(typeof w==="string")return this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:w});return this._addCheck({kind:"datetime",precision:typeof w?.precision>"u"?null:w?.precision,offset:w?.offset??!1,local:w?.local??!1,...L$.errToObj(w?.message)})}date(w){return this._addCheck({kind:"date",message:w})}time(w){if(typeof w==="string")return this._addCheck({kind:"time",precision:null,message:w});return this._addCheck({kind:"time",precision:typeof w?.precision>"u"?null:w?.precision,...L$.errToObj(w?.message)})}duration(w){return this._addCheck({kind:"duration",...L$.errToObj(w)})}regex(w,X){return this._addCheck({kind:"regex",regex:w,...L$.errToObj(X)})}includes(w,X){return this._addCheck({kind:"includes",value:w,position:X?.position,...L$.errToObj(X?.message)})}startsWith(w,X){return this._addCheck({kind:"startsWith",value:w,...L$.errToObj(X)})}endsWith(w,X){return this._addCheck({kind:"endsWith",value:w,...L$.errToObj(X)})}min(w,X){return this._addCheck({kind:"min",value:w,...L$.errToObj(X)})}max(w,X){return this._addCheck({kind:"max",value:w,...L$.errToObj(X)})}length(w,X){return this._addCheck({kind:"length",value:w,...L$.errToObj(X)})}nonempty(w){return this.min(1,L$.errToObj(w))}trim(){return new FU({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new FU({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new FU({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find((w)=>w.kind==="datetime")}get isDate(){return!!this._def.checks.find((w)=>w.kind==="date")}get isTime(){return!!this._def.checks.find((w)=>w.kind==="time")}get isDuration(){return!!this._def.checks.find((w)=>w.kind==="duration")}get isEmail(){return!!this._def.checks.find((w)=>w.kind==="email")}get isURL(){return!!this._def.checks.find((w)=>w.kind==="url")}get isEmoji(){return!!this._def.checks.find((w)=>w.kind==="emoji")}get isUUID(){return!!this._def.checks.find((w)=>w.kind==="uuid")}get isNANOID(){return!!this._def.checks.find((w)=>w.kind==="nanoid")}get isCUID(){return!!this._def.checks.find((w)=>w.kind==="cuid")}get isCUID2(){return!!this._def.checks.find((w)=>w.kind==="cuid2")}get isULID(){return!!this._def.checks.find((w)=>w.kind==="ulid")}get isIP(){return!!this._def.checks.find((w)=>w.kind==="ip")}get isCIDR(){return!!this._def.checks.find((w)=>w.kind==="cidr")}get isBase64(){return!!this._def.checks.find((w)=>w.kind==="base64")}get isBase64url(){return!!this._def.checks.find((w)=>w.kind==="base64url")}get minLength(){let w=null;for(let X of this._def.checks)if(X.kind==="min"){if(w===null||X.value>w)w=X.value}return w}get maxLength(){let w=null;for(let X of this._def.checks)if(X.kind==="max"){if(w===null||X.value<w)w=X.value}return w}}FU.create=(w)=>{return new FU({checks:[],typeName:m.ZodString,coerce:w?.coerce??!1,...f$(w)})};function qx(w,X){let J=(w.toString().split(".")[1]||"").length,G=(X.toString().split(".")[1]||"").length,Y=J>G?J:G,W=Number.parseInt(w.toFixed(Y).replace(".","")),q=Number.parseInt(X.toFixed(Y).replace(".",""));return W%q/10**Y}class G8 extends p${constructor(){super(...arguments);this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(w){if(this._def.coerce)w.data=Number(w.data);if(this._getType(w)!==U$.number){let Y=this._getOrReturnCtx(w);return W$(Y,{code:o.invalid_type,expected:U$.number,received:Y.parsedType}),_$}let J=void 0,G=new F4;for(let Y of this._def.checks)if(Y.kind==="int"){if(!t$.isInteger(w.data))J=this._getOrReturnCtx(w,J),W$(J,{code:o.invalid_type,expected:"integer",received:"float",message:Y.message}),G.dirty()}else if(Y.kind==="min"){if(Y.inclusive?w.data<Y.value:w.data<=Y.value)J=this._getOrReturnCtx(w,J),W$(J,{code:o.too_small,minimum:Y.value,type:"number",inclusive:Y.inclusive,exact:!1,message:Y.message}),G.dirty()}else if(Y.kind==="max"){if(Y.inclusive?w.data>Y.value:w.data>=Y.value)J=this._getOrReturnCtx(w,J),W$(J,{code:o.too_big,maximum:Y.value,type:"number",inclusive:Y.inclusive,exact:!1,message:Y.message}),G.dirty()}else if(Y.kind==="multipleOf"){if(qx(w.data,Y.value)!==0)J=this._getOrReturnCtx(w,J),W$(J,{code:o.not_multiple_of,multipleOf:Y.value,message:Y.message}),G.dirty()}else if(Y.kind==="finite"){if(!Number.isFinite(w.data))J=this._getOrReturnCtx(w,J),W$(J,{code:o.not_finite,message:Y.message}),G.dirty()}else t$.assertNever(Y);return{status:G.value,value:w.data}}gte(w,X){return this.setLimit("min",w,!0,L$.toString(X))}gt(w,X){return this.setLimit("min",w,!1,L$.toString(X))}lte(w,X){return this.setLimit("max",w,!0,L$.toString(X))}lt(w,X){return this.setLimit("max",w,!1,L$.toString(X))}setLimit(w,X,J,G){return new G8({...this._def,checks:[...this._def.checks,{kind:w,value:X,inclusive:J,message:L$.toString(G)}]})}_addCheck(w){return new G8({...this._def,checks:[...this._def.checks,w]})}int(w){return this._addCheck({kind:"int",message:L$.toString(w)})}positive(w){return this._addCheck({kind:"min",value:0,inclusive:!1,message:L$.toString(w)})}negative(w){return this._addCheck({kind:"max",value:0,inclusive:!1,message:L$.toString(w)})}nonpositive(w){return this._addCheck({kind:"max",value:0,inclusive:!0,message:L$.toString(w)})}nonnegative(w){return this._addCheck({kind:"min",value:0,inclusive:!0,message:L$.toString(w)})}multipleOf(w,X){return this._addCheck({kind:"multipleOf",value:w,message:L$.toString(X)})}finite(w){return this._addCheck({kind:"finite",message:L$.toString(w)})}safe(w){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:L$.toString(w)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:L$.toString(w)})}get minValue(){let w=null;for(let X of this._def.checks)if(X.kind==="min"){if(w===null||X.value>w)w=X.value}return w}get maxValue(){let w=null;for(let X of this._def.checks)if(X.kind==="max"){if(w===null||X.value<w)w=X.value}return w}get isInt(){return!!this._def.checks.find((w)=>w.kind==="int"||w.kind==="multipleOf"&&t$.isInteger(w.value))}get isFinite(){let w=null,X=null;for(let J of this._def.checks)if(J.kind==="finite"||J.kind==="int"||J.kind==="multipleOf")return!0;else if(J.kind==="min"){if(X===null||J.value>X)X=J.value}else if(J.kind==="max"){if(w===null||J.value<w)w=J.value}return Number.isFinite(X)&&Number.isFinite(w)}}G8.create=(w)=>{return new G8({checks:[],typeName:m.ZodNumber,coerce:w?.coerce||!1,...f$(w)})};class W8 extends p${constructor(){super(...arguments);this.min=this.gte,this.max=this.lte}_parse(w){if(this._def.coerce)try{w.data=BigInt(w.data)}catch{return this._getInvalidInput(w)}if(this._getType(w)!==U$.bigint)return this._getInvalidInput(w);let J=void 0,G=new F4;for(let Y of this._def.checks)if(Y.kind==="min"){if(Y.inclusive?w.data<Y.value:w.data<=Y.value)J=this._getOrReturnCtx(w,J),W$(J,{code:o.too_small,type:"bigint",minimum:Y.value,inclusive:Y.inclusive,message:Y.message}),G.dirty()}else if(Y.kind==="max"){if(Y.inclusive?w.data>Y.value:w.data>=Y.value)J=this._getOrReturnCtx(w,J),W$(J,{code:o.too_big,type:"bigint",maximum:Y.value,inclusive:Y.inclusive,message:Y.message}),G.dirty()}else if(Y.kind==="multipleOf"){if(w.data%Y.value!==BigInt(0))J=this._getOrReturnCtx(w,J),W$(J,{code:o.not_multiple_of,multipleOf:Y.value,message:Y.message}),G.dirty()}else t$.assertNever(Y);return{status:G.value,value:w.data}}_getInvalidInput(w){let X=this._getOrReturnCtx(w);return W$(X,{code:o.invalid_type,expected:U$.bigint,received:X.parsedType}),_$}gte(w,X){return this.setLimit("min",w,!0,L$.toString(X))}gt(w,X){return this.setLimit("min",w,!1,L$.toString(X))}lte(w,X){return this.setLimit("max",w,!0,L$.toString(X))}lt(w,X){return this.setLimit("max",w,!1,L$.toString(X))}setLimit(w,X,J,G){return new W8({...this._def,checks:[...this._def.checks,{kind:w,value:X,inclusive:J,message:L$.toString(G)}]})}_addCheck(w){return new W8({...this._def,checks:[...this._def.checks,w]})}positive(w){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:L$.toString(w)})}negative(w){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:L$.toString(w)})}nonpositive(w){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:L$.toString(w)})}nonnegative(w){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:L$.toString(w)})}multipleOf(w,X){return this._addCheck({kind:"multipleOf",value:w,message:L$.toString(X)})}get minValue(){let w=null;for(let X of this._def.checks)if(X.kind==="min"){if(w===null||X.value>w)w=X.value}return w}get maxValue(){let w=null;for(let X of this._def.checks)if(X.kind==="max"){if(w===null||X.value<w)w=X.value}return w}}W8.create=(w)=>{return new W8({checks:[],typeName:m.ZodBigInt,coerce:w?.coerce??!1,...f$(w)})};class R5 extends p${_parse(w){if(this._def.coerce)w.data=Boolean(w.data);if(this._getType(w)!==U$.boolean){let J=this._getOrReturnCtx(w);return W$(J,{code:o.invalid_type,expected:U$.boolean,received:J.parsedType}),_$}return S4(w.data)}}R5.create=(w)=>{return new R5({typeName:m.ZodBoolean,coerce:w?.coerce||!1,...f$(w)})};class xJ extends p${_parse(w){if(this._def.coerce)w.data=new Date(w.data);if(this._getType(w)!==U$.date){let Y=this._getOrReturnCtx(w);return W$(Y,{code:o.invalid_type,expected:U$.date,received:Y.parsedType}),_$}if(Number.isNaN(w.data.getTime())){let Y=this._getOrReturnCtx(w);return W$(Y,{code:o.invalid_date}),_$}let J=new F4,G=void 0;for(let Y of this._def.checks)if(Y.kind==="min"){if(w.data.getTime()<Y.value)G=this._getOrReturnCtx(w,G),W$(G,{code:o.too_small,message:Y.message,inclusive:!0,exact:!1,minimum:Y.value,type:"date"}),J.dirty()}else if(Y.kind==="max"){if(w.data.getTime()>Y.value)G=this._getOrReturnCtx(w,G),W$(G,{code:o.too_big,message:Y.message,inclusive:!0,exact:!1,maximum:Y.value,type:"date"}),J.dirty()}else t$.assertNever(Y);return{status:J.value,value:new Date(w.data.getTime())}}_addCheck(w){return new xJ({...this._def,checks:[...this._def.checks,w]})}min(w,X){return this._addCheck({kind:"min",value:w.getTime(),message:L$.toString(X)})}max(w,X){return this._addCheck({kind:"max",value:w.getTime(),message:L$.toString(X)})}get minDate(){let w=null;for(let X of this._def.checks)if(X.kind==="min"){if(w===null||X.value>w)w=X.value}return w!=null?new Date(w):null}get maxDate(){let w=null;for(let X of this._def.checks)if(X.kind==="max"){if(w===null||X.value<w)w=X.value}return w!=null?new Date(w):null}}xJ.create=(w)=>{return new xJ({checks:[],coerce:w?.coerce||!1,typeName:m.ZodDate,...f$(w)})};class I5 extends p${_parse(w){if(this._getType(w)!==U$.symbol){let J=this._getOrReturnCtx(w);return W$(J,{code:o.invalid_type,expected:U$.symbol,received:J.parsedType}),_$}return S4(w.data)}}I5.create=(w)=>{return new I5({typeName:m.ZodSymbol,...f$(w)})};class gJ extends p${_parse(w){if(this._getType(w)!==U$.undefined){let J=this._getOrReturnCtx(w);return W$(J,{code:o.invalid_type,expected:U$.undefined,received:J.parsedType}),_$}return S4(w.data)}}gJ.create=(w)=>{return new gJ({typeName:m.ZodUndefined,...f$(w)})};class yJ extends p${_parse(w){if(this._getType(w)!==U$.null){let J=this._getOrReturnCtx(w);return W$(J,{code:o.invalid_type,expected:U$.null,received:J.parsedType}),_$}return S4(w.data)}}yJ.create=(w)=>{return new yJ({typeName:m.ZodNull,...f$(w)})};class _5 extends p${constructor(){super(...arguments);this._any=!0}_parse(w){return S4(w.data)}}_5.create=(w)=>{return new _5({typeName:m.ZodAny,...f$(w)})};class kz extends p${constructor(){super(...arguments);this._unknown=!0}_parse(w){return S4(w.data)}}kz.create=(w)=>{return new kz({typeName:m.ZodUnknown,...f$(w)})};class VU extends p${_parse(w){let X=this._getOrReturnCtx(w);return W$(X,{code:o.invalid_type,expected:U$.never,received:X.parsedType}),_$}}VU.create=(w)=>{return new VU({typeName:m.ZodNever,...f$(w)})};class P5 extends p${_parse(w){if(this._getType(w)!==U$.undefined){let J=this._getOrReturnCtx(w);return W$(J,{code:o.invalid_type,expected:U$.void,received:J.parsedType}),_$}return S4(w.data)}}P5.create=(w)=>{return new P5({typeName:m.ZodVoid,...f$(w)})};class b0 extends p${_parse(w){let{ctx:X,status:J}=this._processInputParams(w),G=this._def;if(X.parsedType!==U$.array)return W$(X,{code:o.invalid_type,expected:U$.array,received:X.parsedType}),_$;if(G.exactLength!==null){let W=X.data.length>G.exactLength.value,q=X.data.length<G.exactLength.value;if(W||q)W$(X,{code:W?o.too_big:o.too_small,minimum:q?G.exactLength.value:void 0,maximum:W?G.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:G.exactLength.message}),J.dirty()}if(G.minLength!==null){if(X.data.length<G.minLength.value)W$(X,{code:o.too_small,minimum:G.minLength.value,type:"array",inclusive:!0,exact:!1,message:G.minLength.message}),J.dirty()}if(G.maxLength!==null){if(X.data.length>G.maxLength.value)W$(X,{code:o.too_big,maximum:G.maxLength.value,type:"array",inclusive:!0,exact:!1,message:G.maxLength.message}),J.dirty()}if(X.common.async)return Promise.all([...X.data].map((W,q)=>{return G.type._parseAsync(new r1(X,W,X.path,q))})).then((W)=>{return F4.mergeArray(J,W)});let Y=[...X.data].map((W,q)=>{return G.type._parseSync(new r1(X,W,X.path,q))});return F4.mergeArray(J,Y)}get element(){return this._def.type}min(w,X){return new b0({...this._def,minLength:{value:w,message:L$.toString(X)}})}max(w,X){return new b0({...this._def,maxLength:{value:w,message:L$.toString(X)}})}length(w,X){return new b0({...this._def,exactLength:{value:w,message:L$.toString(X)}})}nonempty(w){return this.min(1,w)}}b0.create=(w,X)=>{return new b0({type:w,minLength:null,maxLength:null,exactLength:null,typeName:m.ZodArray,...f$(X)})};function Q8(w){if(w instanceof i6){let X={};for(let J in w.shape){let G=w.shape[J];X[J]=C0.create(Q8(G))}return new i6({...w._def,shape:()=>X})}else if(w instanceof b0)return new b0({...w._def,type:Q8(w.element)});else if(w instanceof C0)return C0.create(Q8(w.unwrap()));else if(w instanceof Mw)return Mw.create(Q8(w.unwrap()));else if(w instanceof EU)return EU.create(w.items.map((X)=>Q8(X)));else return w}class i6 extends p${constructor(){super(...arguments);this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let w=this._def.shape(),X=t$.objectKeys(w);return this._cached={shape:w,keys:X},this._cached}_parse(w){if(this._getType(w)!==U$.object){let A=this._getOrReturnCtx(w);return W$(A,{code:o.invalid_type,expected:U$.object,received:A.parsedType}),_$}let{status:J,ctx:G}=this._processInputParams(w),{shape:Y,keys:W}=this._getCached(),q=[];if(!(this._def.catchall instanceof VU&&this._def.unknownKeys==="strip")){for(let A in G.data)if(!W.includes(A))q.push(A)}let K=[];for(let A of W){let j=Y[A],E=G.data[A];K.push({key:{status:"valid",value:A},value:j._parse(new r1(G,E,G.path,A)),alwaysSet:A in G.data})}if(this._def.catchall instanceof VU){let A=this._def.unknownKeys;if(A==="passthrough")for(let j of q)K.push({key:{status:"valid",value:j},value:{status:"valid",value:G.data[j]}});else if(A==="strict"){if(q.length>0)W$(G,{code:o.unrecognized_keys,keys:q}),J.dirty()}else if(A==="strip");else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let A=this._def.catchall;for(let j of q){let E=G.data[j];K.push({key:{status:"valid",value:j},value:A._parse(new r1(G,E,G.path,j)),alwaysSet:j in G.data})}}if(G.common.async)return Promise.resolve().then(async()=>{let A=[];for(let j of K){let E=await j.key,M=await j.value;A.push({key:E,value:M,alwaysSet:j.alwaysSet})}return A}).then((A)=>{return F4.mergeObjectSync(J,A)});else return F4.mergeObjectSync(J,K)}get shape(){return this._def.shape()}strict(w){return L$.errToObj,new i6({...this._def,unknownKeys:"strict",...w!==void 0?{errorMap:(X,J)=>{let G=this._def.errorMap?.(X,J).message??J.defaultError;if(X.code==="unrecognized_keys")return{message:L$.errToObj(w).message??G};return{message:G}}}:{}})}strip(){return new i6({...this._def,unknownKeys:"strip"})}passthrough(){return new i6({...this._def,unknownKeys:"passthrough"})}extend(w){return new i6({...this._def,shape:()=>({...this._def.shape(),...w})})}merge(w){return new i6({unknownKeys:w._def.unknownKeys,catchall:w._def.catchall,shape:()=>({...this._def.shape(),...w._def.shape()}),typeName:m.ZodObject})}setKey(w,X){return this.augment({[w]:X})}catchall(w){return new i6({...this._def,catchall:w})}pick(w){let X={};for(let J of t$.objectKeys(w))if(w[J]&&this.shape[J])X[J]=this.shape[J];return new i6({...this._def,shape:()=>X})}omit(w){let X={};for(let J of t$.objectKeys(this.shape))if(!w[J])X[J]=this.shape[J];return new i6({...this._def,shape:()=>X})}deepPartial(){return Q8(this)}partial(w){let X={};for(let J of t$.objectKeys(this.shape)){let G=this.shape[J];if(w&&!w[J])X[J]=G;else X[J]=G.optional()}return new i6({...this._def,shape:()=>X})}required(w){let X={};for(let J of t$.objectKeys(this.shape))if(w&&!w[J])X[J]=this.shape[J];else{let Y=this.shape[J];while(Y instanceof C0)Y=Y._def.innerType;X[J]=Y}return new i6({...this._def,shape:()=>X})}keyof(){return eR(t$.objectKeys(this.shape))}}i6.create=(w,X)=>{return new i6({shape:()=>w,unknownKeys:"strip",catchall:VU.create(),typeName:m.ZodObject,...f$(X)})};i6.strictCreate=(w,X)=>{return new i6({shape:()=>w,unknownKeys:"strict",catchall:VU.create(),typeName:m.ZodObject,...f$(X)})};i6.lazycreate=(w,X)=>{return new i6({shape:w,unknownKeys:"strip",catchall:VU.create(),typeName:m.ZodObject,...f$(X)})};class fJ extends p${_parse(w){let{ctx:X}=this._processInputParams(w),J=this._def.options;function G(Y){for(let q of Y)if(q.result.status==="valid")return q.result;for(let q of Y)if(q.result.status==="dirty")return X.common.issues.push(...q.ctx.common.issues),q.result;let W=Y.map((q)=>new q1(q.ctx.common.issues));return W$(X,{code:o.invalid_union,unionErrors:W}),_$}if(X.common.async)return Promise.all(J.map(async(Y)=>{let W={...X,common:{...X.common,issues:[]},parent:null};return{result:await Y._parseAsync({data:X.data,path:X.path,parent:W}),ctx:W}})).then(G);else{let Y=void 0,W=[];for(let K of J){let A={...X,common:{...X.common,issues:[]},parent:null},j=K._parseSync({data:X.data,path:X.path,parent:A});if(j.status==="valid")return j;else if(j.status==="dirty"&&!Y)Y={result:j,ctx:A};if(A.common.issues.length)W.push(A.common.issues)}if(Y)return X.common.issues.push(...Y.ctx.common.issues),Y.result;let q=W.map((K)=>new q1(K));return W$(X,{code:o.invalid_union,unionErrors:q}),_$}}get options(){return this._def.options}}fJ.create=(w,X)=>{return new fJ({options:w,typeName:m.ZodUnion,...f$(X)})};var AU=(w)=>{if(w instanceof uJ)return AU(w.schema);else if(w instanceof k0)return AU(w.innerType());else if(w instanceof mJ)return[w.value];else if(w instanceof xz)return w.options;else if(w instanceof cJ)return t$.objectValues(w.enum);else if(w instanceof iJ)return AU(w._def.innerType);else if(w instanceof gJ)return[void 0];else if(w instanceof yJ)return[null];else if(w instanceof C0)return[void 0,...AU(w.unwrap())];else if(w instanceof Mw)return[null,...AU(w.unwrap())];else if(w instanceof GK)return AU(w.unwrap());else if(w instanceof nJ)return AU(w.unwrap());else if(w instanceof lJ)return AU(w._def.innerType);else return[]};class QK extends p${_parse(w){let{ctx:X}=this._processInputParams(w);if(X.parsedType!==U$.object)return W$(X,{code:o.invalid_type,expected:U$.object,received:X.parsedType}),_$;let J=this.discriminator,G=X.data[J],Y=this.optionsMap.get(G);if(!Y)return W$(X,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[J]}),_$;if(X.common.async)return Y._parseAsync({data:X.data,path:X.path,parent:X});else return Y._parseSync({data:X.data,path:X.path,parent:X})}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(w,X,J){let G=new Map;for(let Y of X){let W=AU(Y.shape[w]);if(!W.length)throw Error(`A discriminator value for key \`${w}\` could not be extracted from all schema options`);for(let q of W){if(G.has(q))throw Error(`Discriminator property ${String(w)} has duplicate value ${String(q)}`);G.set(q,Y)}}return new QK({typeName:m.ZodDiscriminatedUnion,discriminator:w,options:X,optionsMap:G,...f$(J)})}}function JK(w,X){let J=jU(w),G=jU(X);if(w===X)return{valid:!0,data:w};else if(J===U$.object&&G===U$.object){let Y=t$.objectKeys(X),W=t$.objectKeys(w).filter((K)=>Y.indexOf(K)!==-1),q={...w,...X};for(let K of W){let A=JK(w[K],X[K]);if(!A.valid)return{valid:!1};q[K]=A.data}return{valid:!0,data:q}}else if(J===U$.array&&G===U$.array){if(w.length!==X.length)return{valid:!1};let Y=[];for(let W=0;W<w.length;W++){let q=w[W],K=X[W],A=JK(q,K);if(!A.valid)return{valid:!1};Y.push(A.data)}return{valid:!0,data:Y}}else if(J===U$.date&&G===U$.date&&+w===+X)return{valid:!0,data:w};else return{valid:!1}}class hJ extends p${_parse(w){let{status:X,ctx:J}=this._processInputParams(w),G=(Y,W)=>{if(zK(Y)||zK(W))return _$;let q=JK(Y.value,W.value);if(!q.valid)return W$(J,{code:o.invalid_intersection_types}),_$;if(XK(Y)||XK(W))X.dirty();return{status:X.value,value:q.data}};if(J.common.async)return Promise.all([this._def.left._parseAsync({data:J.data,path:J.path,parent:J}),this._def.right._parseAsync({data:J.data,path:J.path,parent:J})]).then(([Y,W])=>G(Y,W));else return G(this._def.left._parseSync({data:J.data,path:J.path,parent:J}),this._def.right._parseSync({data:J.data,path:J.path,parent:J}))}}hJ.create=(w,X,J)=>{return new hJ({left:w,right:X,typeName:m.ZodIntersection,...f$(J)})};class EU extends p${_parse(w){let{status:X,ctx:J}=this._processInputParams(w);if(J.parsedType!==U$.array)return W$(J,{code:o.invalid_type,expected:U$.array,received:J.parsedType}),_$;if(J.data.length<this._def.items.length)return W$(J,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),_$;if(!this._def.rest&&J.data.length>this._def.items.length)W$(J,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),X.dirty();let Y=[...J.data].map((W,q)=>{let K=this._def.items[q]||this._def.rest;if(!K)return null;return K._parse(new r1(J,W,J.path,q))}).filter((W)=>!!W);if(J.common.async)return Promise.all(Y).then((W)=>{return F4.mergeArray(X,W)});else return F4.mergeArray(X,Y)}get items(){return this._def.items}rest(w){return new EU({...this._def,rest:w})}}EU.create=(w,X)=>{if(!Array.isArray(w))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new EU({items:w,typeName:m.ZodTuple,rest:null,...f$(X)})};class v5 extends p${get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(w){let{status:X,ctx:J}=this._processInputParams(w);if(J.parsedType!==U$.object)return W$(J,{code:o.invalid_type,expected:U$.object,received:J.parsedType}),_$;let G=[],Y=this._def.keyType,W=this._def.valueType;for(let q in J.data)G.push({key:Y._parse(new r1(J,q,J.path,q)),value:W._parse(new r1(J,J.data[q],J.path,q)),alwaysSet:q in J.data});if(J.common.async)return F4.mergeObjectAsync(X,G);else return F4.mergeObjectSync(X,G)}get element(){return this._def.valueType}static create(w,X,J){if(X instanceof p$)return new v5({keyType:w,valueType:X,typeName:m.ZodRecord,...f$(J)});return new v5({keyType:FU.create(),valueType:w,typeName:m.ZodRecord,...f$(X)})}}class Z5 extends p${get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(w){let{status:X,ctx:J}=this._processInputParams(w);if(J.parsedType!==U$.map)return W$(J,{code:o.invalid_type,expected:U$.map,received:J.parsedType}),_$;let G=this._def.keyType,Y=this._def.valueType,W=[...J.data.entries()].map(([q,K],A)=>{return{key:G._parse(new r1(J,q,J.path,[A,"key"])),value:Y._parse(new r1(J,K,J.path,[A,"value"]))}});if(J.common.async){let q=new Map;return Promise.resolve().then(async()=>{for(let K of W){let A=await K.key,j=await K.value;if(A.status==="aborted"||j.status==="aborted")return _$;if(A.status==="dirty"||j.status==="dirty")X.dirty();q.set(A.value,j.value)}return{status:X.value,value:q}})}else{let q=new Map;for(let K of W){let{key:A,value:j}=K;if(A.status==="aborted"||j.status==="aborted")return _$;if(A.status==="dirty"||j.status==="dirty")X.dirty();q.set(A.value,j.value)}return{status:X.value,value:q}}}}Z5.create=(w,X,J)=>{return new Z5({valueType:X,keyType:w,typeName:m.ZodMap,...f$(J)})};class H8 extends p${_parse(w){let{status:X,ctx:J}=this._processInputParams(w);if(J.parsedType!==U$.set)return W$(J,{code:o.invalid_type,expected:U$.set,received:J.parsedType}),_$;let G=this._def;if(G.minSize!==null){if(J.data.size<G.minSize.value)W$(J,{code:o.too_small,minimum:G.minSize.value,type:"set",inclusive:!0,exact:!1,message:G.minSize.message}),X.dirty()}if(G.maxSize!==null){if(J.data.size>G.maxSize.value)W$(J,{code:o.too_big,maximum:G.maxSize.value,type:"set",inclusive:!0,exact:!1,message:G.maxSize.message}),X.dirty()}let Y=this._def.valueType;function W(K){let A=new Set;for(let j of K){if(j.status==="aborted")return _$;if(j.status==="dirty")X.dirty();A.add(j.value)}return{status:X.value,value:A}}let q=[...J.data.values()].map((K,A)=>Y._parse(new r1(J,K,J.path,A)));if(J.common.async)return Promise.all(q).then((K)=>W(K));else return W(q)}min(w,X){return new H8({...this._def,minSize:{value:w,message:L$.toString(X)}})}max(w,X){return new H8({...this._def,maxSize:{value:w,message:L$.toString(X)}})}size(w,X){return this.min(w,X).max(w,X)}nonempty(w){return this.min(1,w)}}H8.create=(w,X)=>{return new H8({valueType:w,minSize:null,maxSize:null,typeName:m.ZodSet,...f$(X)})};class kJ extends p${constructor(){super(...arguments);this.validate=this.implement}_parse(w){let{ctx:X}=this._processInputParams(w);if(X.parsedType!==U$.function)return W$(X,{code:o.invalid_type,expected:U$.function,received:X.parsedType}),_$;function J(q,K){return M5({data:q,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,bJ(),Ew].filter((A)=>!!A),issueData:{code:o.invalid_arguments,argumentsError:K}})}function G(q,K){return M5({data:q,path:X.path,errorMaps:[X.common.contextualErrorMap,X.schemaErrorMap,bJ(),Ew].filter((A)=>!!A),issueData:{code:o.invalid_return_type,returnTypeError:K}})}let Y={errorMap:X.common.contextualErrorMap},W=X.data;if(this._def.returns instanceof O8){let q=this;return S4(async function(...K){let A=new q1([]),j=await q._def.args.parseAsync(K,Y).catch((Z)=>{throw A.addIssue(J(K,Z)),A}),E=await Reflect.apply(W,this,j);return await q._def.returns._def.type.parseAsync(E,Y).catch((Z)=>{throw A.addIssue(G(E,Z)),A})})}else{let q=this;return S4(function(...K){let A=q._def.args.safeParse(K,Y);if(!A.success)throw new q1([J(K,A.error)]);let j=Reflect.apply(W,this,A.data),E=q._def.returns.safeParse(j,Y);if(!E.success)throw new q1([G(j,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...w){return new kJ({...this._def,args:EU.create(w).rest(kz.create())})}returns(w){return new kJ({...this._def,returns:w})}implement(w){return this.parse(w)}strictImplement(w){return this.parse(w)}static create(w,X,J){return new kJ({args:w?w:EU.create([]).rest(kz.create()),returns:X||kz.create(),typeName:m.ZodFunction,...f$(J)})}}class uJ extends p${get schema(){return this._def.getter()}_parse(w){let{ctx:X}=this._processInputParams(w);return this._def.getter()._parse({data:X.data,path:X.path,parent:X})}}uJ.create=(w,X)=>{return new uJ({getter:w,typeName:m.ZodLazy,...f$(X)})};class mJ extends p${_parse(w){if(w.data!==this._def.value){let X=this._getOrReturnCtx(w);return W$(X,{received:X.data,code:o.invalid_literal,expected:this._def.value}),_$}return{status:"valid",value:w.data}}get value(){return this._def.value}}mJ.create=(w,X)=>{return new mJ({value:w,typeName:m.ZodLiteral,...f$(X)})};function eR(w,X){return new xz({values:w,typeName:m.ZodEnum,...f$(X)})}class xz extends p${_parse(w){if(typeof w.data!=="string"){let X=this._getOrReturnCtx(w),J=this._def.values;return W$(X,{expected:t$.joinValues(J),received:X.parsedType,code:o.invalid_type}),_$}if(!this._cache)this._cache=new Set(this._def.values);if(!this._cache.has(w.data)){let X=this._getOrReturnCtx(w),J=this._def.values;return W$(X,{received:X.data,code:o.invalid_enum_value,options:J}),_$}return S4(w.data)}get options(){return this._def.values}get enum(){let w={};for(let X of this._def.values)w[X]=X;return w}get Values(){let w={};for(let X of this._def.values)w[X]=X;return w}get Enum(){let w={};for(let X of this._def.values)w[X]=X;return w}extract(w,X=this._def){return xz.create(w,{...this._def,...X})}exclude(w,X=this._def){return xz.create(this.options.filter((J)=>!w.includes(J)),{...this._def,...X})}}xz.create=eR;class cJ extends p${_parse(w){let X=t$.getValidEnumValues(this._def.values),J=this._getOrReturnCtx(w);if(J.parsedType!==U$.string&&J.parsedType!==U$.number){let G=t$.objectValues(X);return W$(J,{expected:t$.joinValues(G),received:J.parsedType,code:o.invalid_type}),_$}if(!this._cache)this._cache=new Set(t$.getValidEnumValues(this._def.values));if(!this._cache.has(w.data)){let G=t$.objectValues(X);return W$(J,{received:J.data,code:o.invalid_enum_value,options:G}),_$}return S4(w.data)}get enum(){return this._def.values}}cJ.create=(w,X)=>{return new cJ({values:w,typeName:m.ZodNativeEnum,...f$(X)})};class O8 extends p${unwrap(){return this._def.type}_parse(w){let{ctx:X}=this._processInputParams(w);if(X.parsedType!==U$.promise&&X.common.async===!1)return W$(X,{code:o.invalid_type,expected:U$.promise,received:X.parsedType}),_$;let J=X.parsedType===U$.promise?X.data:Promise.resolve(X.data);return S4(J.then((G)=>{return this._def.type.parseAsync(G,{path:X.path,errorMap:X.common.contextualErrorMap})}))}}O8.create=(w,X)=>{return new O8({type:w,typeName:m.ZodPromise,...f$(X)})};class k0 extends p${innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===m.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(w){let{status:X,ctx:J}=this._processInputParams(w),G=this._def.effect||null,Y={addIssue:(W)=>{if(W$(J,W),W.fatal)X.abort();else X.dirty()},get path(){return J.path}};if(Y.addIssue=Y.addIssue.bind(Y),G.type==="preprocess"){let W=G.transform(J.data,Y);if(J.common.async)return Promise.resolve(W).then(async(q)=>{if(X.value==="aborted")return _$;let K=await this._def.schema._parseAsync({data:q,path:J.path,parent:J});if(K.status==="aborted")return _$;if(K.status==="dirty")return J8(K.value);if(X.value==="dirty")return J8(K.value);return K});else{if(X.value==="aborted")return _$;let q=this._def.schema._parseSync({data:W,path:J.path,parent:J});if(q.status==="aborted")return _$;if(q.status==="dirty")return J8(q.value);if(X.value==="dirty")return J8(q.value);return q}}if(G.type==="refinement"){let W=(q)=>{let K=G.refinement(q,Y);if(J.common.async)return Promise.resolve(K);if(K instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return q};if(J.common.async===!1){let q=this._def.schema._parseSync({data:J.data,path:J.path,parent:J});if(q.status==="aborted")return _$;if(q.status==="dirty")X.dirty();return W(q.value),{status:X.value,value:q.value}}else return this._def.schema._parseAsync({data:J.data,path:J.path,parent:J}).then((q)=>{if(q.status==="aborted")return _$;if(q.status==="dirty")X.dirty();return W(q.value).then(()=>{return{status:X.value,value:q.value}})})}if(G.type==="transform")if(J.common.async===!1){let W=this._def.schema._parseSync({data:J.data,path:J.path,parent:J});if(!Cz(W))return _$;let q=G.transform(W.value,Y);if(q instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:X.value,value:q}}else return this._def.schema._parseAsync({data:J.data,path:J.path,parent:J}).then((W)=>{if(!Cz(W))return _$;return Promise.resolve(G.transform(W.value,Y)).then((q)=>({status:X.value,value:q}))});t$.assertNever(G)}}k0.create=(w,X,J)=>{return new k0({schema:w,typeName:m.ZodEffects,effect:X,...f$(J)})};k0.createWithPreprocess=(w,X,J)=>{return new k0({schema:X,effect:{type:"preprocess",transform:w},typeName:m.ZodEffects,...f$(J)})};class C0 extends p${_parse(w){if(this._getType(w)===U$.undefined)return S4(void 0);return this._def.innerType._parse(w)}unwrap(){return this._def.innerType}}C0.create=(w,X)=>{return new C0({innerType:w,typeName:m.ZodOptional,...f$(X)})};class Mw extends p${_parse(w){if(this._getType(w)===U$.null)return S4(null);return this._def.innerType._parse(w)}unwrap(){return this._def.innerType}}Mw.create=(w,X)=>{return new Mw({innerType:w,typeName:m.ZodNullable,...f$(X)})};class iJ extends p${_parse(w){let{ctx:X}=this._processInputParams(w),J=X.data;if(X.parsedType===U$.undefined)J=this._def.defaultValue();return this._def.innerType._parse({data:J,path:X.path,parent:X})}removeDefault(){return this._def.innerType}}iJ.create=(w,X)=>{return new iJ({innerType:w,typeName:m.ZodDefault,defaultValue:typeof X.default==="function"?X.default:()=>X.default,...f$(X)})};class lJ extends p${_parse(w){let{ctx:X}=this._processInputParams(w),J={...X,common:{...X.common,issues:[]}},G=this._def.innerType._parse({data:J.data,path:J.path,parent:{...J}});if(CJ(G))return G.then((Y)=>{return{status:"valid",value:Y.status==="valid"?Y.value:this._def.catchValue({get error(){return new q1(J.common.issues)},input:J.data})}});else return{status:"valid",value:G.status==="valid"?G.value:this._def.catchValue({get error(){return new q1(J.common.issues)},input:J.data})}}removeCatch(){return this._def.innerType}}lJ.create=(w,X)=>{return new lJ({innerType:w,typeName:m.ZodCatch,catchValue:typeof X.catch==="function"?X.catch:()=>X.catch,...f$(X)})};class S5 extends p${_parse(w){if(this._getType(w)!==U$.nan){let J=this._getOrReturnCtx(w);return W$(J,{code:o.invalid_type,expected:U$.nan,received:J.parsedType}),_$}return{status:"valid",value:w.data}}}S5.create=(w)=>{return new S5({typeName:m.ZodNaN,...f$(w)})};var Sd=Symbol("zod_brand");class GK extends p${_parse(w){let{ctx:X}=this._processInputParams(w),J=X.data;return this._def.type._parse({data:J,path:X.path,parent:X})}unwrap(){return this._def.type}}class T5 extends p${_parse(w){let{status:X,ctx:J}=this._processInputParams(w);if(J.common.async)return(async()=>{let Y=await this._def.in._parseAsync({data:J.data,path:J.path,parent:J});if(Y.status==="aborted")return _$;if(Y.status==="dirty")return X.dirty(),J8(Y.value);else return this._def.out._parseAsync({data:Y.value,path:J.path,parent:J})})();else{let G=this._def.in._parseSync({data:J.data,path:J.path,parent:J});if(G.status==="aborted")return _$;if(G.status==="dirty")return X.dirty(),{status:"dirty",value:G.value};else return this._def.out._parseSync({data:G.value,path:J.path,parent:J})}}static create(w,X){return new T5({in:w,out:X,typeName:m.ZodPipeline})}}class nJ extends p${_parse(w){let X=this._def.innerType._parse(w),J=(G)=>{if(Cz(G))G.value=Object.freeze(G.value);return G};return CJ(X)?X.then((G)=>J(G)):J(X)}unwrap(){return this._def.innerType}}nJ.create=(w,X)=>{return new nJ({innerType:w,typeName:m.ZodReadonly,...f$(X)})};var Td={object:i6.lazycreate},m;(function(w){w.ZodString="ZodString",w.ZodNumber="ZodNumber",w.ZodNaN="ZodNaN",w.ZodBigInt="ZodBigInt",w.ZodBoolean="ZodBoolean",w.ZodDate="ZodDate",w.ZodSymbol="ZodSymbol",w.ZodUndefined="ZodUndefined",w.ZodNull="ZodNull",w.ZodAny="ZodAny",w.ZodUnknown="ZodUnknown",w.ZodNever="ZodNever",w.ZodVoid="ZodVoid",w.ZodArray="ZodArray",w.ZodObject="ZodObject",w.ZodUnion="ZodUnion",w.ZodDiscriminatedUnion="ZodDiscriminatedUnion",w.ZodIntersection="ZodIntersection",w.ZodTuple="ZodTuple",w.ZodRecord="ZodRecord",w.ZodMap="ZodMap",w.ZodSet="ZodSet",w.ZodFunction="ZodFunction",w.ZodLazy="ZodLazy",w.ZodLiteral="ZodLiteral",w.ZodEnum="ZodEnum",w.ZodEffects="ZodEffects",w.ZodNativeEnum="ZodNativeEnum",w.ZodOptional="ZodOptional",w.ZodNullable="ZodNullable",w.ZodDefault="ZodDefault",w.ZodCatch="ZodCatch",w.ZodPromise="ZodPromise",w.ZodBranded="ZodBranded",w.ZodPipeline="ZodPipeline",w.ZodReadonly="ZodReadonly"})(m||(m={}));var bd=FU.create,Cd=G8.create,kd=S5.create,xd=W8.create,gd=R5.create,yd=xJ.create,fd=I5.create,hd=gJ.create,ud=yJ.create,md=_5.create,cd=kz.create,id=VU.create,ld=P5.create,nd=b0.create,dd=i6.create,pd=i6.strictCreate,od=fJ.create,rd=QK.create,td=hJ.create,ad=EU.create,sd=v5.create,ed=Z5.create,$p=H8.create,Up=kJ.create,wp=uJ.create,zp=mJ.create,Xp=xz.create,Yp=cJ.create,Jp=O8.create,Qp=k0.create,Gp=C0.create,Wp=Mw.create,Hp=k0.createWithPreprocess,Op=T5.create;class HK extends Error{constructor(w,X){super(w),this.name="ParseError",this.type=X.type,this.field=X.field,this.value=X.value,this.line=X.line}}var $I=10,Lx=13,gz=32;function WK(w){}function zI(w){if(typeof w=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:X=WK,onError:J=WK,onRetry:G=WK,onComment:Y}=w,W=[],q=!0,K,A="",j=0,E;function M(k){if(q&&(q=!1,k.charCodeAt(0)===239&&k.charCodeAt(1)===187&&k.charCodeAt(2)===191&&(k=k.slice(3))),W.length===0){let s=Z(k);s!==""&&W.push(s);return}if(k.indexOf(`
|
|
266
|
+
`)===-1&&k.indexOf("\r")===-1){W.push(k);return}W.push(k);let C=W.join("");W.length=0;let R=Z(C);R!==""&&W.push(R)}function Z(k){let C=0;if(k.indexOf("\r")===-1){let R=k.indexOf(`
|
|
267
|
+
`,C);for(;R!==-1;){if(C===R){j>0&&X({id:K,event:E,data:A}),K=void 0,A="",j=0,E=void 0,C=R+1,R=k.indexOf(`
|
|
268
|
+
`,C);continue}let s=k.charCodeAt(C);if(UI(k,C,s)){let G$=k.charCodeAt(C+5)===gz?C+6:C+5,N$=k.slice(G$,R);if(j===0&&k.charCodeAt(R+1)===$I){X({id:K,event:E,data:N$}),K=void 0,A="",E=void 0,C=R+2,R=k.indexOf(`
|
|
269
|
+
`,C);continue}A=j===0?N$:`${A}
|
|
270
|
+
${N$}`,j++}else wI(k,C,s)?E=k.slice(k.charCodeAt(C+6)===gz?C+7:C+6,R)||void 0:P(k,C,R);C=R+1,R=k.indexOf(`
|
|
271
|
+
`,C)}return k.slice(C)}for(;C<k.length;){let R=k.indexOf("\r",C),s=k.indexOf(`
|
|
272
|
+
`,C),G$=-1;if(R!==-1&&s!==-1?G$=R<s?R:s:R!==-1?R===k.length-1?G$=-1:G$=R:s!==-1&&(G$=s),G$===-1)break;P(k,C,G$),C=G$+1,k.charCodeAt(C-1)===Lx&&k.charCodeAt(C)===$I&&C++}return k.slice(C)}function P(k,C,R){if(C===R){c();return}let s=k.charCodeAt(C);if(UI(k,C,s)){let r=k.charCodeAt(C+5)===gz?C+6:C+5,Q6=k.slice(r,R);A=j===0?Q6:`${A}
|
|
273
|
+
${Q6}`,j++;return}if(wI(k,C,s)){E=k.slice(k.charCodeAt(C+6)===gz?C+7:C+6,R)||void 0;return}if(s===105&&k.charCodeAt(C+1)===100&&k.charCodeAt(C+2)===58){let r=k.slice(k.charCodeAt(C+3)===gz?C+4:C+3,R);K=r.includes("\x00")?void 0:r;return}if(s===58){if(Y){let r=k.slice(C,R);Y(r.slice(k.charCodeAt(C+1)===gz?2:1))}return}let G$=k.slice(C,R),N$=G$.indexOf(":");if(N$===-1){f(G$,"",G$);return}let a=G$.slice(0,N$),w$=G$.charCodeAt(N$+1)===gz?2:1,e$=G$.slice(N$+w$);f(a,e$,G$)}function f(k,C,R){switch(k){case"event":E=C||void 0;break;case"data":A=j===0?C:`${A}
|
|
274
|
+
${C}`,j++;break;case"id":K=C.includes("\x00")?void 0:C;break;case"retry":/^\d+$/.test(C)?G(parseInt(C,10)):J(new HK(`Invalid \`retry\` value: "${C}"`,{type:"invalid-retry",value:C,line:R}));break;default:J(new HK(`Unknown field "${k.length>20?`${k.slice(0,20)}…`:k}"`,{type:"unknown-field",field:k,value:C,line:R}));break}}function c(){j>0&&X({id:K,event:E,data:A}),K=void 0,A="",j=0,E=void 0}function p(k={}){if(k.consume&&W.length>0){let C=W.join("");P(C,0,C.length)}q=!0,K=void 0,A="",j=0,E=void 0,W.length=0}return{feed:M,reset:p}}function UI(w,X,J){return J===100&&w.charCodeAt(X+1)===97&&w.charCodeAt(X+2)===116&&w.charCodeAt(X+3)===97&&w.charCodeAt(X+4)===58}function wI(w,X,J){return J===101&&w.charCodeAt(X+1)===118&&w.charCodeAt(X+2)===101&&w.charCodeAt(X+3)===110&&w.charCodeAt(X+4)===116&&w.charCodeAt(X+5)===58}class OK extends TransformStream{constructor({onError:w,onRetry:X,onComment:J}={}){let G;super({start(Y){G=zI({onEvent:(W)=>{Y.enqueue(W)},onError(W){w==="terminate"?Y.error(W):typeof w=="function"&&w(W)},onRetry:X,onComment:J})},transform(Y){G.feed(Y)}})}}var WI="AI_DownloadError",HI=`vercel.ai.error.${WI}`,Dx=Symbol.for(HI),XI,YI,k1=class extends(YI=D6,XI=Dx,YI){constructor({url:w,statusCode:X,statusText:J,cause:G,message:Y=G==null?`Failed to download ${w}: ${X} ${J}`:`Failed to download ${w}: ${G}`}){super({name:WI,message:Y,cause:G});this[XI]=!0,this.url=w,this.statusCode=X,this.statusText=J}static isInstance(w){return D6.hasMarker(w,HI)}},DK=2147483648;async function OI({response:w,url:X,maxBytes:J=DK}){let G=w.headers.get("content-length");if(G!=null){let E=parseInt(G,10);if(!isNaN(E)&&E>J)throw new k1({url:X,message:`Download of ${X} exceeded maximum size of ${J} bytes (Content-Length: ${E}).`})}let Y=w.body;if(Y==null)return new Uint8Array(0);let W=Y.getReader(),q=[],K=0;try{while(!0){let{done:E,value:M}=await W.read();if(E)break;if(K+=M.length,K>J)throw new k1({url:X,message:`Download of ${X} exceeded maximum size of ${J} bytes.`});q.push(M)}}finally{try{await W.cancel()}finally{W.releaseLock()}}let A=new Uint8Array(K),j=0;for(let E of q)A.set(E,j),j+=E.length;return A}function jK(w){let X;try{X=new URL(w)}catch(G){throw new k1({url:w,message:`Invalid URL: ${w}`})}if(X.protocol==="data:")return;if(X.protocol!=="http:"&&X.protocol!=="https:")throw new k1({url:w,message:`URL scheme must be http, https, or data, got ${X.protocol}`});let J=X.hostname;if(!J)throw new k1({url:w,message:"URL must have a hostname"});if(J==="localhost"||J.endsWith(".local")||J.endsWith(".localhost"))throw new k1({url:w,message:`URL with hostname ${J} is not allowed`});if(J.startsWith("[")&&J.endsWith("]")){let G=J.slice(1,-1);if(jx(G))throw new k1({url:w,message:`URL with IPv6 address ${J} is not allowed`});return}if(NI(J)){if(qK(J))throw new k1({url:w,message:`URL with IP address ${J} is not allowed`});return}}function NI(w){let X=w.split(".");if(X.length!==4)return!1;return X.every((J)=>{let G=Number(J);return Number.isInteger(G)&&G>=0&&G<=255&&String(G)===J})}function qK(w){let X=w.split(".").map(Number),[J,G]=X;if(J===0)return!0;if(J===10)return!0;if(J===127)return!0;if(J===169&&G===254)return!0;if(J===172&&G>=16&&G<=31)return!0;if(J===192&&G===168)return!0;return!1}function jx(w){let X=w.toLowerCase();if(X==="::1")return!0;if(X==="::")return!0;if(X.startsWith("::ffff:")){let J=X.slice(7);if(NI(J))return qK(J);let G=J.split(":");if(G.length===2){let Y=parseInt(G[0],16),W=parseInt(G[1],16);if(!isNaN(Y)&&!isNaN(W)){let q=Y>>8&255,K=Y&255,A=W>>8&255,j=W&255;return qK(`${q}.${K}.${A}.${j}`)}}}if(X.startsWith("fc")||X.startsWith("fd"))return!0;if(X.startsWith("fe80"))return!0;return!1}var MU=({prefix:w,size:X=16,alphabet:J="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:G="-"}={})=>{let Y=()=>{let W=J.length,q=Array(X);for(let K=0;K<X;K++)q[K]=J[Math.random()*W|0];return q.join("")};if(w==null)return Y;if(J.includes(G))throw new BM({argument:"separator",message:`The separator "${G}" must not be part of the alphabet "${J}".`});return()=>`${w}${G}${Y()}`},BI=MU();function qI(w=globalThis){var X,J,G;if(w.window)return"runtime/browser";if((X=w.navigator)==null?void 0:X.userAgent)return`runtime/${w.navigator.userAgent.toLowerCase()}`;if((G=(J=w.process)==null?void 0:J.versions)==null?void 0:G.node)return`runtime/node.js/${w.process.version.substring(0)}`;if(w.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function Rw(w){if(w==null)return{};let X={};if(w instanceof Headers)w.forEach((J,G)=>{X[G.toLowerCase()]=J});else{if(!Array.isArray(w))w=Object.entries(w);for(let[J,G]of w)if(G!=null)X[J.toLowerCase()]=G}return X}function b5(w,...X){let J=new Headers(Rw(w)),G=J.get("user-agent")||"";return J.set("user-agent",[G,...X].filter(Boolean).join(" ")),Object.fromEntries(J.entries())}var Ax=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Fx=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function JI(w){let X=JSON.parse(w);if(X===null||typeof X!=="object")return X;if(Ax.test(w)===!1&&Fx.test(w)===!1)return X;return Vx(X)}function Vx(w){let X=[w];while(X.length){let J=X;X=[];for(let G of J){if(Object.prototype.hasOwnProperty.call(G,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(G,"constructor")&&G.constructor!==null&&typeof G.constructor==="object"&&Object.prototype.hasOwnProperty.call(G.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let Y in G){let W=G[Y];if(W&&typeof W==="object")X.push(W)}}}return w}function Ex(w){let{stackTraceLimit:X}=Error;try{Error.stackTraceLimit=0}catch(J){return JI(w)}try{return JI(w)}finally{Error.stackTraceLimit=X}}function AK(w){if(w.type==="object"||Array.isArray(w.type)&&w.type.includes("object")){w.additionalProperties=!1;let{properties:J}=w;if(J!=null)for(let G of Object.keys(J))J[G]=yz(J[G])}if(w.items!=null)w.items=Array.isArray(w.items)?w.items.map(yz):yz(w.items);if(w.anyOf!=null)w.anyOf=w.anyOf.map(yz);if(w.allOf!=null)w.allOf=w.allOf.map(yz);if(w.oneOf!=null)w.oneOf=w.oneOf.map(yz);let{definitions:X}=w;if(X!=null)for(let J of Object.keys(X))X[J]=yz(X[J]);return w}function yz(w){if(typeof w==="boolean")return w;return AK(w)}var Mx=Symbol("Let zodToJsonSchema decide on which parser to use"),QI={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Rx=(w)=>typeof w==="string"?{...QI,name:w}:{...QI,...w};function L1(){return{}}function Ix(w,X){var J,G,Y;let W={type:"array"};if(((J=w.type)==null?void 0:J._def)&&((Y=(G=w.type)==null?void 0:G._def)==null?void 0:Y.typeName)!==m.ZodAny)W.items=j6(w.type._def,{...X,currentPath:[...X.currentPath,"items"]});if(w.minLength)W.minItems=w.minLength.value;if(w.maxLength)W.maxItems=w.maxLength.value;if(w.exactLength)W.minItems=w.exactLength.value,W.maxItems=w.exactLength.value;return W}function _x(w){let X={type:"integer",format:"int64"};if(!w.checks)return X;for(let J of w.checks)switch(J.kind){case"min":if(J.inclusive)X.minimum=J.value;else X.exclusiveMinimum=J.value;break;case"max":if(J.inclusive)X.maximum=J.value;else X.exclusiveMaximum=J.value;break;case"multipleOf":X.multipleOf=J.value;break}return X}function Px(){return{type:"boolean"}}function LI(w,X){return j6(w.type._def,X)}var vx=(w,X)=>{return j6(w.innerType._def,X)};function KI(w,X,J){let G=J!=null?J:X.dateStrategy;if(Array.isArray(G))return{anyOf:G.map((Y,W)=>KI(w,X,Y))};switch(G){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Zx(w)}}var Zx=(w)=>{let X={type:"integer",format:"unix-time"};for(let J of w.checks)switch(J.kind){case"min":X.minimum=J.value;break;case"max":X.maximum=J.value;break}return X};function Sx(w,X){return{...j6(w.innerType._def,X),default:w.defaultValue()}}function Tx(w,X){return X.effectStrategy==="input"?j6(w.schema._def,X):L1()}function bx(w){return{type:"string",enum:Array.from(w.values)}}var Cx=(w)=>{if("type"in w&&w.type==="string")return!1;return"allOf"in w};function kx(w,X){let J=[j6(w.left._def,{...X,currentPath:[...X.currentPath,"allOf","0"]}),j6(w.right._def,{...X,currentPath:[...X.currentPath,"allOf","1"]})].filter((Y)=>!!Y),G=[];return J.forEach((Y)=>{if(Cx(Y))G.push(...Y.allOf);else{let W=Y;if("additionalProperties"in Y&&Y.additionalProperties===!1){let{additionalProperties:q,...K}=Y;W=K}G.push(W)}}),G.length?{allOf:G}:void 0}function xx(w){let X=typeof w.value;if(X!=="bigint"&&X!=="number"&&X!=="boolean"&&X!=="string")return{type:Array.isArray(w.value)?"array":"object"};return{type:X==="bigint"?"integer":X,const:w.value}}var NK=void 0,t1={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(NK===void 0)NK=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return NK},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function DI(w,X){let J={type:"string"};if(w.checks)for(let G of w.checks)switch(G.kind){case"min":J.minLength=typeof J.minLength==="number"?Math.max(J.minLength,G.value):G.value;break;case"max":J.maxLength=typeof J.maxLength==="number"?Math.min(J.maxLength,G.value):G.value;break;case"email":switch(X.emailStrategy){case"format:email":a1(J,"email",G.message,X);break;case"format:idn-email":a1(J,"idn-email",G.message,X);break;case"pattern:zod":T4(J,t1.email,G.message,X);break}break;case"url":a1(J,"uri",G.message,X);break;case"uuid":a1(J,"uuid",G.message,X);break;case"regex":T4(J,G.regex,G.message,X);break;case"cuid":T4(J,t1.cuid,G.message,X);break;case"cuid2":T4(J,t1.cuid2,G.message,X);break;case"startsWith":T4(J,RegExp(`^${BK(G.value,X)}`),G.message,X);break;case"endsWith":T4(J,RegExp(`${BK(G.value,X)}$`),G.message,X);break;case"datetime":a1(J,"date-time",G.message,X);break;case"date":a1(J,"date",G.message,X);break;case"time":a1(J,"time",G.message,X);break;case"duration":a1(J,"duration",G.message,X);break;case"length":J.minLength=typeof J.minLength==="number"?Math.max(J.minLength,G.value):G.value,J.maxLength=typeof J.maxLength==="number"?Math.min(J.maxLength,G.value):G.value;break;case"includes":{T4(J,RegExp(BK(G.value,X)),G.message,X);break}case"ip":{if(G.version!=="v6")a1(J,"ipv4",G.message,X);if(G.version!=="v4")a1(J,"ipv6",G.message,X);break}case"base64url":T4(J,t1.base64url,G.message,X);break;case"jwt":T4(J,t1.jwt,G.message,X);break;case"cidr":{if(G.version!=="v6")T4(J,t1.ipv4Cidr,G.message,X);if(G.version!=="v4")T4(J,t1.ipv6Cidr,G.message,X);break}case"emoji":T4(J,t1.emoji(),G.message,X);break;case"ulid":{T4(J,t1.ulid,G.message,X);break}case"base64":{switch(X.base64Strategy){case"format:binary":{a1(J,"binary",G.message,X);break}case"contentEncoding:base64":{J.contentEncoding="base64";break}case"pattern:zod":{T4(J,t1.base64,G.message,X);break}}break}case"nanoid":T4(J,t1.nanoid,G.message,X);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return J}function BK(w,X){return X.patternStrategy==="escape"?yx(w):w}var gx=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function yx(w){let X="";for(let J=0;J<w.length;J++){if(!gx.has(w[J]))X+="\\";X+=w[J]}return X}function a1(w,X,J,G){var Y;if(w.format||((Y=w.anyOf)==null?void 0:Y.some((W)=>W.format))){if(!w.anyOf)w.anyOf=[];if(w.format)w.anyOf.push({format:w.format}),delete w.format;w.anyOf.push({format:X,...J&&G.errorMessages&&{errorMessage:{format:J}}})}else w.format=X}function T4(w,X,J,G){var Y;if(w.pattern||((Y=w.allOf)==null?void 0:Y.some((W)=>W.pattern))){if(!w.allOf)w.allOf=[];if(w.pattern)w.allOf.push({pattern:w.pattern}),delete w.pattern;w.allOf.push({pattern:GI(X,G),...J&&G.errorMessages&&{errorMessage:{pattern:J}}})}else w.pattern=GI(X,G)}function GI(w,X){var J;if(!X.applyRegexFlags||!w.flags)return w.source;let G={i:w.flags.includes("i"),m:w.flags.includes("m"),s:w.flags.includes("s")},Y=G.i?w.source.toLowerCase():w.source,W="",q=!1,K=!1,A=!1;for(let j=0;j<Y.length;j++){if(q){W+=Y[j],q=!1;continue}if(G.i){if(K){if(Y[j].match(/[a-z]/)){if(A)W+=Y[j],W+=`${Y[j-2]}-${Y[j]}`.toUpperCase(),A=!1;else if(Y[j+1]==="-"&&((J=Y[j+2])==null?void 0:J.match(/[a-z]/)))W+=Y[j],A=!0;else W+=`${Y[j]}${Y[j].toUpperCase()}`;continue}}else if(Y[j].match(/[a-z]/)){W+=`[${Y[j]}${Y[j].toUpperCase()}]`;continue}}if(G.m){if(Y[j]==="^"){W+=`(^|(?<=[\r
|
|
275
|
+
]))`;continue}else if(Y[j]==="$"){W+=`($|(?=[\r
|
|
276
|
+
]))`;continue}}if(G.s&&Y[j]==="."){W+=K?`${Y[j]}\r
|
|
277
|
+
`:`[${Y[j]}\r
|
|
278
|
+
]`;continue}if(W+=Y[j],Y[j]==="\\")q=!0;else if(K&&Y[j]==="]")K=!1;else if(!K&&Y[j]==="[")K=!0}try{new RegExp(W)}catch(j){return console.warn(`Could not convert regex pattern at ${X.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),w.source}return W}function jI(w,X){var J,G,Y,W,q,K;let A={type:"object",additionalProperties:(J=j6(w.valueType._def,{...X,currentPath:[...X.currentPath,"additionalProperties"]}))!=null?J:X.allowedAdditionalProperties};if(((G=w.keyType)==null?void 0:G._def.typeName)===m.ZodString&&((Y=w.keyType._def.checks)==null?void 0:Y.length)){let{type:j,...E}=DI(w.keyType._def,X);return{...A,propertyNames:E}}else if(((W=w.keyType)==null?void 0:W._def.typeName)===m.ZodEnum)return{...A,propertyNames:{enum:w.keyType._def.values}};else if(((q=w.keyType)==null?void 0:q._def.typeName)===m.ZodBranded&&w.keyType._def.type._def.typeName===m.ZodString&&((K=w.keyType._def.type._def.checks)==null?void 0:K.length)){let{type:j,...E}=LI(w.keyType._def,X);return{...A,propertyNames:E}}return A}function fx(w,X){if(X.mapStrategy==="record")return jI(w,X);let J=j6(w.keyType._def,{...X,currentPath:[...X.currentPath,"items","items","0"]})||L1(),G=j6(w.valueType._def,{...X,currentPath:[...X.currentPath,"items","items","1"]})||L1();return{type:"array",maxItems:125,items:{type:"array",items:[J,G],minItems:2,maxItems:2}}}function hx(w){let X=w.values,G=Object.keys(w.values).filter((W)=>{return typeof X[X[W]]!=="number"}).map((W)=>X[W]),Y=Array.from(new Set(G.map((W)=>typeof W)));return{type:Y.length===1?Y[0]==="string"?"string":"number":["string","number"],enum:G}}function ux(){return{not:L1()}}function mx(){return{type:"null"}}var LK={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function cx(w,X){let J=w.options instanceof Map?Array.from(w.options.values()):w.options;if(J.every((G)=>(G._def.typeName in LK)&&(!G._def.checks||!G._def.checks.length))){let G=J.reduce((Y,W)=>{let q=LK[W._def.typeName];return q&&!Y.includes(q)?[...Y,q]:Y},[]);return{type:G.length>1?G:G[0]}}else if(J.every((G)=>G._def.typeName==="ZodLiteral"&&!G.description)){let G=J.reduce((Y,W)=>{let q=typeof W._def.value;switch(q){case"string":case"number":case"boolean":return[...Y,q];case"bigint":return[...Y,"integer"];case"object":if(W._def.value===null)return[...Y,"null"];case"symbol":case"undefined":case"function":default:return Y}},[]);if(G.length===J.length){let Y=G.filter((W,q,K)=>K.indexOf(W)===q);return{type:Y.length>1?Y:Y[0],enum:J.reduce((W,q)=>{return W.includes(q._def.value)?W:[...W,q._def.value]},[])}}}else if(J.every((G)=>G._def.typeName==="ZodEnum"))return{type:"string",enum:J.reduce((G,Y)=>[...G,...Y._def.values.filter((W)=>!G.includes(W))],[])};return ix(w,X)}var ix=(w,X)=>{let J=(w.options instanceof Map?Array.from(w.options.values()):w.options).map((G,Y)=>j6(G._def,{...X,currentPath:[...X.currentPath,"anyOf",`${Y}`]})).filter((G)=>!!G&&(!X.strictUnions||typeof G==="object"&&Object.keys(G).length>0));return J.length?{anyOf:J}:void 0};function lx(w,X){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(w.innerType._def.typeName)&&(!w.innerType._def.checks||!w.innerType._def.checks.length))return{type:[LK[w.innerType._def.typeName],"null"]};let J=j6(w.innerType._def,{...X,currentPath:[...X.currentPath,"anyOf","0"]});return J&&{anyOf:[J,{type:"null"}]}}function nx(w){let X={type:"number"};if(!w.checks)return X;for(let J of w.checks)switch(J.kind){case"int":X.type="integer";break;case"min":if(J.inclusive)X.minimum=J.value;else X.exclusiveMinimum=J.value;break;case"max":if(J.inclusive)X.maximum=J.value;else X.exclusiveMaximum=J.value;break;case"multipleOf":X.multipleOf=J.value;break}return X}function dx(w,X){let J={type:"object",properties:{}},G=[],Y=w.shape();for(let q in Y){let K=Y[q];if(K===void 0||K._def===void 0)continue;let A=ox(K),j=j6(K._def,{...X,currentPath:[...X.currentPath,"properties",q],propertyPath:[...X.currentPath,"properties",q]});if(j===void 0)continue;if(J.properties[q]=j,!A)G.push(q)}if(G.length)J.required=G;let W=px(w,X);if(W!==void 0)J.additionalProperties=W;return J}function px(w,X){if(w.catchall._def.typeName!=="ZodNever")return j6(w.catchall._def,{...X,currentPath:[...X.currentPath,"additionalProperties"]});switch(w.unknownKeys){case"passthrough":return X.allowedAdditionalProperties;case"strict":return X.rejectedAdditionalProperties;case"strip":return X.removeAdditionalStrategy==="strict"?X.allowedAdditionalProperties:X.rejectedAdditionalProperties}}function ox(w){try{return w.isOptional()}catch(X){return!0}}var rx=(w,X)=>{var J;if(X.currentPath.toString()===((J=X.propertyPath)==null?void 0:J.toString()))return j6(w.innerType._def,X);let G=j6(w.innerType._def,{...X,currentPath:[...X.currentPath,"anyOf","1"]});return G?{anyOf:[{not:L1()},G]}:L1()},tx=(w,X)=>{if(X.pipeStrategy==="input")return j6(w.in._def,X);else if(X.pipeStrategy==="output")return j6(w.out._def,X);let J=j6(w.in._def,{...X,currentPath:[...X.currentPath,"allOf","0"]}),G=j6(w.out._def,{...X,currentPath:[...X.currentPath,"allOf",J?"1":"0"]});return{allOf:[J,G].filter((Y)=>Y!==void 0)}};function ax(w,X){return j6(w.type._def,X)}function sx(w,X){let G={type:"array",uniqueItems:!0,items:j6(w.valueType._def,{...X,currentPath:[...X.currentPath,"items"]})};if(w.minSize)G.minItems=w.minSize.value;if(w.maxSize)G.maxItems=w.maxSize.value;return G}function ex(w,X){if(w.rest)return{type:"array",minItems:w.items.length,items:w.items.map((J,G)=>j6(J._def,{...X,currentPath:[...X.currentPath,"items",`${G}`]})).reduce((J,G)=>G===void 0?J:[...J,G],[]),additionalItems:j6(w.rest._def,{...X,currentPath:[...X.currentPath,"additionalItems"]})};else return{type:"array",minItems:w.items.length,maxItems:w.items.length,items:w.items.map((J,G)=>j6(J._def,{...X,currentPath:[...X.currentPath,"items",`${G}`]})).reduce((J,G)=>G===void 0?J:[...J,G],[])}}function $g(){return{not:L1()}}function Ug(){return L1()}var wg=(w,X)=>{return j6(w.innerType._def,X)},zg=(w,X,J)=>{switch(X){case m.ZodString:return DI(w,J);case m.ZodNumber:return nx(w);case m.ZodObject:return dx(w,J);case m.ZodBigInt:return _x(w);case m.ZodBoolean:return Px();case m.ZodDate:return KI(w,J);case m.ZodUndefined:return $g();case m.ZodNull:return mx();case m.ZodArray:return Ix(w,J);case m.ZodUnion:case m.ZodDiscriminatedUnion:return cx(w,J);case m.ZodIntersection:return kx(w,J);case m.ZodTuple:return ex(w,J);case m.ZodRecord:return jI(w,J);case m.ZodLiteral:return xx(w);case m.ZodEnum:return bx(w);case m.ZodNativeEnum:return hx(w);case m.ZodNullable:return lx(w,J);case m.ZodOptional:return rx(w,J);case m.ZodMap:return fx(w,J);case m.ZodSet:return sx(w,J);case m.ZodLazy:return()=>w.getter()._def;case m.ZodPromise:return ax(w,J);case m.ZodNaN:case m.ZodNever:return ux();case m.ZodEffects:return Tx(w,J);case m.ZodAny:return L1();case m.ZodUnknown:return Ug();case m.ZodDefault:return Sx(w,J);case m.ZodBranded:return LI(w,J);case m.ZodReadonly:return wg(w,J);case m.ZodCatch:return vx(w,J);case m.ZodPipeline:return tx(w,J);case m.ZodFunction:case m.ZodVoid:case m.ZodSymbol:return;default:return((G)=>{return})(X)}},Xg=(w,X)=>{let J=0;for(;J<w.length&&J<X.length;J++)if(w[J]!==X[J])break;return[(w.length-J).toString(),...X.slice(J)].join("/")};function j6(w,X,J=!1){var G;let Y=X.seen.get(w);if(X.override){let A=(G=X.override)==null?void 0:G.call(X,w,X,Y,J);if(A!==Mx)return A}if(Y&&!J){let A=Yg(Y,X);if(A!==void 0)return A}let W={def:w,path:X.currentPath,jsonSchema:void 0};X.seen.set(w,W);let q=zg(w,w.typeName,X),K=typeof q==="function"?j6(q(),X):q;if(K)Jg(w,X,K);if(X.postProcess){let A=X.postProcess(K,w,X);return W.jsonSchema=K,A}return W.jsonSchema=K,K}var Yg=(w,X)=>{switch(X.$refStrategy){case"root":return{$ref:w.path.join("/")};case"relative":return{$ref:Xg(X.currentPath,w.path)};case"none":case"seen":{if(w.path.length<X.currentPath.length&&w.path.every((J,G)=>X.currentPath[G]===J))return console.warn(`Recursive reference detected at ${X.currentPath.join("/")}! Defaulting to any`),L1();return X.$refStrategy==="seen"?L1():void 0}}},Jg=(w,X,J)=>{if(w.description)J.description=w.description;return J},Qg=(w)=>{let X=Rx(w),J=X.name!==void 0?[...X.basePath,X.definitionPath,X.name]:X.basePath;return{...X,currentPath:J,propertyPath:void 0,seen:new Map(Object.entries(X.definitions).map(([G,Y])=>[Y._def,{def:Y._def,path:[...X.basePath,X.definitionPath,G],jsonSchema:void 0}]))}},Gg=(w,X)=>{var J;let G=Qg(X),Y=typeof X==="object"&&X.definitions?Object.entries(X.definitions).reduce((j,[E,M])=>{var Z;return{...j,[E]:(Z=j6(M._def,{...G,currentPath:[...G.basePath,G.definitionPath,E]},!0))!=null?Z:L1()}},{}):void 0,W=typeof X==="string"?X:(X==null?void 0:X.nameStrategy)==="title"?void 0:X==null?void 0:X.name,q=(J=j6(w._def,W===void 0?G:{...G,currentPath:[...G.basePath,G.definitionPath,W]},!1))!=null?J:L1(),K=typeof X==="object"&&X.name!==void 0&&X.nameStrategy==="title"?X.name:void 0;if(K!==void 0)q.title=K;let A=W===void 0?Y?{...q,[G.definitionPath]:Y}:q:{$ref:[...G.$refStrategy==="relative"?[]:G.basePath,G.definitionPath,W].join("/"),[G.definitionPath]:{...Y,[W]:q}};return A.$schema="http://json-schema.org/draft-07/schema#",A},KK=Symbol.for("vercel.ai.schema");function C5(w){let X;return()=>{if(X==null)X=w();return X}}function k5(w,{validate:X}={}){return{[KK]:!0,_type:void 0,get jsonSchema(){if(typeof w==="function")w=w();return w},validate:X}}function Wg(w){return typeof w==="object"&&w!==null&&KK in w&&w[KK]===!0&&"jsonSchema"in w&&"validate"in w}function x5(w){return w==null?k5({properties:{},additionalProperties:!1}):Wg(w)?w:("~standard"in w)?w["~standard"].vendor==="zod"?dJ(w):Hg(w):w()}function Hg(w){return k5(()=>AK(w["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(X)=>{let J=await w["~standard"].validate(X);return"value"in J?{success:!0,value:J.value}:{success:!1,error:new Ez({value:X,cause:J.issues})}}})}function Og(w,X){var J;let G=(J=X==null?void 0:X.useReferences)!=null?J:!1;return k5(()=>Gg(w,{$refStrategy:G?"root":"none"}),{validate:async(Y)=>{let W=await w.safeParseAsync(Y);return W.success?{success:!0,value:W.data}:{success:!1,error:W.error}}})}function Ng(w,X){var J;let G=(J=X==null?void 0:X.useReferences)!=null?J:!1;return k5(()=>AK(Tz(w,{target:"draft-7",io:"input",reused:G?"ref":"inline"})),{validate:async(Y)=>{let W=await bz(w,Y);return W.success?{success:!0,value:W.data}:{success:!1,error:W.error}}})}function Bg(w){return"_zod"in w}function dJ(w,X){if(Bg(w))return Ng(w,X);else return Og(w,X)}async function g5({value:w,schema:X,context:J}){let G=await N8({value:w,schema:X,context:J});if(!G.success)throw Ez.wrap({value:w,cause:G.error,context:J});return G.value}async function N8({value:w,schema:X,context:J}){let G=x5(X);try{if(G.validate==null)return{success:!0,value:w,rawValue:w};let Y=await G.validate(w);if(Y.success)return{success:!0,value:Y.value,rawValue:w};return{success:!1,error:Ez.wrap({value:w,cause:Y.error,context:J}),rawValue:w}}catch(Y){return{success:!1,error:Ez.wrap({value:w,cause:Y,context:J}),rawValue:w}}}async function RU({text:w,schema:X}){try{let J=Ex(w);if(X==null)return{success:!0,value:J,rawValue:J};return await N8({value:J,schema:X})}catch(J){return{success:!1,error:bO.isInstance(J)?J:new bO({text:w,cause:J}),rawValue:void 0}}}function AI({stream:w,schema:X}){return w.pipeThrough(new TextDecoderStream).pipeThrough(new OK).pipeThrough(new TransformStream({async transform({data:J},G){if(J==="[DONE]")return;G.enqueue(await RU({text:J,schema:X}))}}))}async function x0(w){if(typeof w==="function")w=w();return Promise.resolve(w)}var oI="vercel.ai.error",qg=Symbol.for(oI),FI,VI,w6=class w extends(VI=Error,FI=qg,VI){constructor({name:X,message:J,cause:G}){super(J);this[FI]=!0,this.name=X,this.cause=G}static isInstance(X){return w.hasMarker(X,oI)}static hasMarker(X,J){let G=Symbol.for(J);return X!=null&&typeof X==="object"&&G in X&&typeof X[G]==="boolean"&&X[G]===!0}},rI="AI_APICallError",tI=`vercel.ai.error.${rI}`,Lg=Symbol.for(tI),EI,MI,Pp=class extends(MI=w6,EI=Lg,MI){constructor({message:w,url:X,requestBodyValues:J,statusCode:G,responseHeaders:Y,responseBody:W,cause:q,isRetryable:K=G!=null&&(G===408||G===409||G===429||G>=500),data:A}){super({name:rI,message:w,cause:q});this[EI]=!0,this.url=X,this.requestBodyValues=J,this.statusCode=G,this.responseHeaders=Y,this.responseBody=W,this.isRetryable=K,this.data=A}static isInstance(w){return w6.hasMarker(w,tI)}},aI="AI_EmptyResponseBodyError",sI=`vercel.ai.error.${aI}`,Kg=Symbol.for(sI),RI,II,vp=class extends(II=w6,RI=Kg,II){constructor({message:w="Empty response body"}={}){super({name:aI,message:w});this[RI]=!0}static isInstance(w){return w6.hasMarker(w,sI)}};function eI(w){if(w==null)return"unknown error";if(typeof w==="string")return w;if(w instanceof Error)return w.message;return JSON.stringify(w)}var $_="AI_InvalidArgumentError",U_=`vercel.ai.error.${$_}`,Dg=Symbol.for(U_),_I,PI,Zp=class extends(PI=w6,_I=Dg,PI){constructor({message:w,cause:X,argument:J}){super({name:$_,message:w,cause:X});this[_I]=!0,this.argument=J}static isInstance(w){return w6.hasMarker(w,U_)}},w_="AI_InvalidPromptError",z_=`vercel.ai.error.${w_}`,jg=Symbol.for(z_),vI,ZI,Sp=class extends(ZI=w6,vI=jg,ZI){constructor({prompt:w,message:X,cause:J}){super({name:w_,message:`Invalid prompt: ${X}`,cause:J});this[vI]=!0,this.prompt=w}static isInstance(w){return w6.hasMarker(w,z_)}},X_="AI_InvalidResponseDataError",Y_=`vercel.ai.error.${X_}`,Ag=Symbol.for(Y_),SI,TI,Tp=class extends(TI=w6,SI=Ag,TI){constructor({data:w,message:X=`Invalid response data: ${JSON.stringify(w)}.`}){super({name:X_,message:X});this[SI]=!0,this.data=w}static isInstance(w){return w6.hasMarker(w,Y_)}},J_="AI_JSONParseError",Q_=`vercel.ai.error.${J_}`,Fg=Symbol.for(Q_),bI,CI,bp=class extends(CI=w6,bI=Fg,CI){constructor({text:w,cause:X}){super({name:J_,message:`JSON parsing failed: Text: ${w}.
|
|
279
|
+
Error message: ${eI(X)}`,cause:X});this[bI]=!0,this.text=w}static isInstance(w){return w6.hasMarker(w,Q_)}},G_="AI_LoadAPIKeyError",W_=`vercel.ai.error.${G_}`,Vg=Symbol.for(W_),kI,xI,Cp=class extends(xI=w6,kI=Vg,xI){constructor({message:w}){super({name:G_,message:w});this[kI]=!0}static isInstance(w){return w6.hasMarker(w,W_)}},H_="AI_LoadSettingError",O_=`vercel.ai.error.${H_}`,Eg=Symbol.for(O_),gI,yI,kp=class extends(yI=w6,gI=Eg,yI){constructor({message:w}){super({name:H_,message:w});this[gI]=!0}static isInstance(w){return w6.hasMarker(w,O_)}},N_="AI_NoContentGeneratedError",B_=`vercel.ai.error.${N_}`,Mg=Symbol.for(B_),fI,hI,xp=class extends(hI=w6,fI=Mg,hI){constructor({message:w="No content generated."}={}){super({name:N_,message:w});this[fI]=!0}static isInstance(w){return w6.hasMarker(w,B_)}},q_="AI_NoSuchModelError",L_=`vercel.ai.error.${q_}`,Rg=Symbol.for(L_),uI,mI,gp=class extends(mI=w6,uI=Rg,mI){constructor({errorName:w=q_,modelId:X,modelType:J,message:G=`No such ${J}: ${X}`}){super({name:w,message:G});this[uI]=!0,this.modelId=X,this.modelType=J}static isInstance(w){return w6.hasMarker(w,L_)}},K_="AI_TooManyEmbeddingValuesForCallError",D_=`vercel.ai.error.${K_}`,Ig=Symbol.for(D_),cI,iI,yp=class extends(iI=w6,cI=Ig,iI){constructor(w){super({name:K_,message:`Too many values for a single embedding call. The ${w.provider} model "${w.modelId}" can only embed up to ${w.maxEmbeddingsPerCall} values per call, but ${w.values.length} values were provided.`});this[cI]=!0,this.provider=w.provider,this.modelId=w.modelId,this.maxEmbeddingsPerCall=w.maxEmbeddingsPerCall,this.values=w.values}static isInstance(w){return w6.hasMarker(w,D_)}},j_="AI_TypeValidationError",A_=`vercel.ai.error.${j_}`,_g=Symbol.for(A_),lI,nI,FK=class w extends(nI=w6,lI=_g,nI){constructor({value:X,cause:J,context:G}){let Y="Type validation failed";if(G==null?void 0:G.field)Y+=` for ${G.field}`;if((G==null?void 0:G.entityName)||(G==null?void 0:G.entityId)){Y+=" (";let W=[];if(G.entityName)W.push(G.entityName);if(G.entityId)W.push(`id: "${G.entityId}"`);Y+=W.join(", "),Y+=")"}super({name:j_,message:`${Y}: Value: ${JSON.stringify(X)}.
|
|
280
|
+
Error message: ${eI(J)}`,cause:J});this[lI]=!0,this.value=X,this.context=G}static isInstance(X){return w6.hasMarker(X,A_)}static wrap({value:X,cause:J,context:G}){var Y,W,q;if(w.isInstance(J)&&J.value===X&&((Y=J.context)==null?void 0:Y.field)===(G==null?void 0:G.field)&&((W=J.context)==null?void 0:W.entityName)===(G==null?void 0:G.entityName)&&((q=J.context)==null?void 0:q.entityId)===(G==null?void 0:G.entityId))return J;return new w({value:X,cause:J,context:G})}},F_="AI_UnsupportedFunctionalityError",V_=`vercel.ai.error.${F_}`,Pg=Symbol.for(V_),dI,pI,fp=class extends(pI=w6,dI=Pg,pI){constructor({functionality:w,message:X=`'${w}' functionality not supported.`}){super({name:F_,message:X});this[dI]=!0,this.functionality=w}static isInstance(w){return w6.hasMarker(w,V_)}};var Zg=Object.defineProperty,Sg=(w,X)=>{for(var J in X)Zg(w,J,{get:X[J],enumerable:!0})},Tg="AI_InvalidArgumentError",bg=`vercel.ai.error.${Tg}`,Cg=Symbol.for(bg),kg;kg=Cg;var xg="AI_InvalidStreamPartError",gg=`vercel.ai.error.${xg}`,yg=Symbol.for(gg),fg;fg=yg;var hg="AI_InvalidToolApprovalError",ug=`vercel.ai.error.${hg}`,mg=Symbol.for(ug),cg;cg=mg;var ig="AI_InvalidToolInputError",lg=`vercel.ai.error.${ig}`,ng=Symbol.for(lg),dg;dg=ng;var pg="AI_ToolCallNotFoundForApprovalError",og=`vercel.ai.error.${pg}`,rg=Symbol.for(og),tg;tg=rg;var ag="AI_MissingToolResultsError",sg=`vercel.ai.error.${ag}`,eg=Symbol.for(sg),$y;$y=eg;var Uy="AI_NoImageGeneratedError",wy=`vercel.ai.error.${Uy}`,zy=Symbol.for(wy),Xy;Xy=zy;var M_="AI_NoObjectGeneratedError",R_=`vercel.ai.error.${M_}`,Yy=Symbol.for(R_),I_,Iw=class extends w6{constructor({message:w="No object generated.",cause:X,text:J,response:G,usage:Y,finishReason:W}){super({name:M_,message:w,cause:X});this[I_]=!0,this.text=J,this.response=G,this.usage=Y,this.finishReason=W}static isInstance(w){return w6.hasMarker(w,R_)}};I_=Yy;var Jy="AI_NoOutputGeneratedError",Qy=`vercel.ai.error.${Jy}`,Gy=Symbol.for(Qy),Wy;Wy=Gy;var Hy="AI_NoSpeechGeneratedError",Oy=`vercel.ai.error.${Hy}`,Ny=Symbol.for(Oy),By;By=Ny;var qy="AI_NoTranscriptGeneratedError",Ly=`vercel.ai.error.${qy}`,Ky=Symbol.for(Ly),Dy;Dy=Ky;var jy="AI_NoVideoGeneratedError",Ay=`vercel.ai.error.${jy}`,Fy=Symbol.for(Ay),Vy;Vy=Fy;var Ey="AI_NoSuchToolError",My=`vercel.ai.error.${Ey}`,Ry=Symbol.for(My),Iy;Iy=Ry;var _y="AI_ToolCallRepairError",Py=`vercel.ai.error.${_y}`,vy=Symbol.for(Py),Zy;Zy=vy;var __="AI_UIMessageStreamError",P_=`vercel.ai.error.${__}`,Sy=Symbol.for(P_),v_,B8=class extends w6{constructor({chunkType:w,chunkId:X,message:J}){super({name:__,message:J});this[v_]=!0,this.chunkType=w,this.chunkId=X}static isInstance(w){return w6.hasMarker(w,P_)}};v_=Sy;var Ty="AI_InvalidDataContentError",by=`vercel.ai.error.${Ty}`,Cy=Symbol.for(by),ky;ky=Cy;var xy="AI_InvalidMessageRoleError",gy=`vercel.ai.error.${xy}`,yy=Symbol.for(gy),fy;fy=yy;var hy="AI_MessageConversionError",uy=`vercel.ai.error.${hy}`,my=Symbol.for(uy),cy;cy=my;var iy="AI_RetryError",ly=`vercel.ai.error.${iy}`,ny=Symbol.for(ly),dy;dy=ny;var py="6.0.191",oy=async({url:w,maxBytes:X,abortSignal:J})=>{var G;let Y=w.toString();jK(Y);try{let W=await fetch(Y,{headers:b5({},`ai-sdk/${py}`,qI()),signal:J});if(W.redirected)jK(W.url);if(!W.ok)throw new k1({url:Y,statusCode:W.status,statusText:W.statusText});return{data:await OI({response:W,url:Y,maxBytes:X!=null?X:DK}),mediaType:(G=W.headers.get("content-type"))!=null?G:void 0}}catch(W){if(k1.isInstance(W))throw W;throw new k1({url:Y,cause:W})}};var Z_=N.union([N.string(),N.instanceof(Uint8Array),N.instanceof(ArrayBuffer),N.custom((w)=>{var X,J;return(J=(X=globalThis.Buffer)==null?void 0:X.isBuffer(w))!=null?J:!1},{message:"Must be a Buffer"})]);var fz=N.lazy(()=>N.union([N.null(),N.string(),N.number(),N.boolean(),N.record(N.string(),fz.optional()),N.array(fz)])),K$=N.record(N.string(),N.record(N.string(),fz.optional())),S_=N.object({type:N.literal("text"),text:N.string(),providerOptions:K$.optional()}),ry=N.object({type:N.literal("image"),image:N.union([Z_,N.instanceof(URL)]),mediaType:N.string().optional(),providerOptions:K$.optional()}),T_=N.object({type:N.literal("file"),data:N.union([Z_,N.instanceof(URL)]),filename:N.string().optional(),mediaType:N.string(),providerOptions:K$.optional()}),ty=N.object({type:N.literal("reasoning"),text:N.string(),providerOptions:K$.optional()}),ay=N.object({type:N.literal("tool-call"),toolCallId:N.string(),toolName:N.string(),input:N.unknown(),providerOptions:K$.optional(),providerExecuted:N.boolean().optional()}),sy=N.discriminatedUnion("type",[N.object({type:N.literal("text"),value:N.string(),providerOptions:K$.optional()}),N.object({type:N.literal("json"),value:fz,providerOptions:K$.optional()}),N.object({type:N.literal("execution-denied"),reason:N.string().optional(),providerOptions:K$.optional()}),N.object({type:N.literal("error-text"),value:N.string(),providerOptions:K$.optional()}),N.object({type:N.literal("error-json"),value:fz,providerOptions:K$.optional()}),N.object({type:N.literal("content"),value:N.array(N.union([N.object({type:N.literal("text"),text:N.string(),providerOptions:K$.optional()}),N.object({type:N.literal("media"),data:N.string(),mediaType:N.string()}),N.object({type:N.literal("file-data"),data:N.string(),mediaType:N.string(),filename:N.string().optional(),providerOptions:K$.optional()}),N.object({type:N.literal("file-url"),url:N.string(),providerOptions:K$.optional()}),N.object({type:N.literal("file-id"),fileId:N.union([N.string(),N.record(N.string(),N.string())]),providerOptions:K$.optional()}),N.object({type:N.literal("image-data"),data:N.string(),mediaType:N.string(),providerOptions:K$.optional()}),N.object({type:N.literal("image-url"),url:N.string(),providerOptions:K$.optional()}),N.object({type:N.literal("image-file-id"),fileId:N.union([N.string(),N.record(N.string(),N.string())]),providerOptions:K$.optional()}),N.object({type:N.literal("custom"),providerOptions:K$.optional()})]))})]),b_=N.object({type:N.literal("tool-result"),toolCallId:N.string(),toolName:N.string(),output:sy,providerOptions:K$.optional()}),ey=N.object({type:N.literal("tool-approval-request"),approvalId:N.string(),toolCallId:N.string()}),$f=N.object({type:N.literal("tool-approval-response"),approvalId:N.string(),approved:N.boolean(),reason:N.string().optional()}),Uf=N.object({role:N.literal("system"),content:N.string(),providerOptions:K$.optional()}),wf=N.object({role:N.literal("user"),content:N.union([N.string(),N.array(N.union([S_,ry,T_]))]),providerOptions:K$.optional()}),zf=N.object({role:N.literal("assistant"),content:N.union([N.string(),N.array(N.union([S_,T_,ty,ay,b_,ey]))]),providerOptions:K$.optional()}),Xf=N.object({role:N.literal("tool"),content:N.array(N.union([b_,$f])),providerOptions:K$.optional()}),Wo=N.union([Uf,wf,zf,Xf]);function C_(w,X){if(w===void 0&&X===void 0)return;if(w===void 0)return X;if(X===void 0)return w;let J={...w};for(let G in X){if(G==="__proto__"||G==="constructor"||G==="prototype")continue;if(Object.prototype.hasOwnProperty.call(X,G)){let Y=X[G];if(Y===void 0)continue;let W=G in w?w[G]:void 0,q=Y!==null&&typeof Y==="object"&&!Array.isArray(Y)&&!(Y instanceof Date)&&!(Y instanceof RegExp),K=W!==null&&W!==void 0&&typeof W==="object"&&!Array.isArray(W)&&!(W instanceof Date)&&!(W instanceof RegExp);if(q&&K)J[G]=C_(W,Y);else J[G]=Y}}return J}var Yf={};Sg(Yf,{array:()=>Wf,choice:()=>Hf,json:()=>Of,object:()=>Gf,text:()=>Qf});function Jf(w){let X=["ROOT"],J=-1,G=null;function Y(A,j,E){switch(A){case'"':{J=j,X.pop(),X.push(E),X.push("INSIDE_STRING");break}case"f":case"t":case"n":{J=j,G=j,X.pop(),X.push(E),X.push("INSIDE_LITERAL");break}case"-":{X.pop(),X.push(E),X.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{J=j,X.pop(),X.push(E),X.push("INSIDE_NUMBER");break}case"{":{J=j,X.pop(),X.push(E),X.push("INSIDE_OBJECT_START");break}case"[":{J=j,X.pop(),X.push(E),X.push("INSIDE_ARRAY_START");break}}}function W(A,j){switch(A){case",":{X.pop(),X.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{J=j,X.pop();break}}}function q(A,j){switch(A){case",":{X.pop(),X.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{J=j,X.pop();break}}}for(let A=0;A<w.length;A++){let j=w[A];switch(X[X.length-1]){case"ROOT":Y(j,A,"FINISH");break;case"INSIDE_OBJECT_START":{switch(j){case'"':{X.pop(),X.push("INSIDE_OBJECT_KEY");break}case"}":{J=A,X.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(j){case'"':{X.pop(),X.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(j){case'"':{X.pop(),X.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(j){case":":{X.pop(),X.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{Y(j,A,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{W(j,A);break}case"INSIDE_STRING":{switch(j){case'"':{X.pop(),J=A;break}case"\\":{X.push("INSIDE_STRING_ESCAPE");break}default:J=A}break}case"INSIDE_ARRAY_START":{switch(j){case"]":{J=A,X.pop();break}default:{J=A,Y(j,A,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(j){case",":{X.pop(),X.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{J=A,X.pop();break}default:{J=A;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{Y(j,A,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{X.pop(),J=A;break}case"INSIDE_NUMBER":{switch(j){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{J=A;break}case"e":case"E":case"-":case".":break;case",":{if(X.pop(),X[X.length-1]==="INSIDE_ARRAY_AFTER_VALUE")q(j,A);if(X[X.length-1]==="INSIDE_OBJECT_AFTER_VALUE")W(j,A);break}case"}":{if(X.pop(),X[X.length-1]==="INSIDE_OBJECT_AFTER_VALUE")W(j,A);break}case"]":{if(X.pop(),X[X.length-1]==="INSIDE_ARRAY_AFTER_VALUE")q(j,A);break}default:{X.pop();break}}break}case"INSIDE_LITERAL":{let M=w.substring(G,A+1);if(!"false".startsWith(M)&&!"true".startsWith(M)&&!"null".startsWith(M)){if(X.pop(),X[X.length-1]==="INSIDE_OBJECT_AFTER_VALUE")W(j,A);else if(X[X.length-1]==="INSIDE_ARRAY_AFTER_VALUE")q(j,A)}else J=A;break}}}let K=w.slice(0,J+1);for(let A=X.length-1;A>=0;A--)switch(X[A]){case"INSIDE_STRING":{K+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{K+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{K+="]";break}case"INSIDE_LITERAL":{let E=w.substring(G,w.length);if("true".startsWith(E))K+="true".slice(E.length);else if("false".startsWith(E))K+="false".slice(E.length);else if("null".startsWith(E))K+="null".slice(E.length)}}return K}async function oJ(w){if(w===void 0)return{value:void 0,state:"undefined-input"};let X=await RU({text:w});if(X.success)return{value:X.value,state:"successful-parse"};if(X=await RU({text:Jf(w)}),X.success)return{value:X.value,state:"repaired-parse"};return{value:void 0,state:"failed-parse"}}var Qf=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:w}){return w},async parsePartialOutput({text:w}){return{partial:w}},createElementStreamTransform(){return}}),Gf=({schema:w,name:X,description:J})=>{let G=x5(w);return{name:"object",responseFormat:x0(G.jsonSchema).then((Y)=>({type:"json",schema:Y,...X!=null&&{name:X},...J!=null&&{description:J}})),async parseCompleteOutput({text:Y},W){let q=await RU({text:Y});if(!q.success)throw new Iw({message:"No object generated: could not parse the response.",cause:q.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});let K=await N8({value:q.value,schema:G});if(!K.success)throw new Iw({message:"No object generated: response did not match schema.",cause:K.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});return K.value},async parsePartialOutput({text:Y}){let W=await oJ(Y);switch(W.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:W.value}}},createElementStreamTransform(){return}}},Wf=({element:w,name:X,description:J})=>{let G=x5(w);return{name:"array",responseFormat:x0(G.jsonSchema).then((Y)=>{let{$schema:W,...q}=Y;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:q}},required:["elements"],additionalProperties:!1},...X!=null&&{name:X},...J!=null&&{description:J}}}),async parseCompleteOutput({text:Y},W){let q=await RU({text:Y});if(!q.success)throw new Iw({message:"No object generated: could not parse the response.",cause:q.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});let K=q.value;if(K==null||typeof K!=="object"||!("elements"in K)||!Array.isArray(K.elements))throw new Iw({message:"No object generated: response did not match schema.",cause:new FK({value:K,cause:"response must be an object with an elements array"}),text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});for(let A of K.elements){let j=await N8({value:A,schema:G});if(!j.success)throw new Iw({message:"No object generated: response did not match schema.",cause:j.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason})}return K.elements},async parsePartialOutput({text:Y}){let W=await oJ(Y);switch(W.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let q=W.value;if(q==null||typeof q!=="object"||!("elements"in q)||!Array.isArray(q.elements))return;let K=W.state==="repaired-parse"&&q.elements.length>0?q.elements.slice(0,-1):q.elements,A=[];for(let j of K){let E=await N8({value:j,schema:G});if(E.success)A.push(E.value)}return{partial:A}}}},createElementStreamTransform(){let Y=0;return new TransformStream({transform({partialOutput:W},q){if(W!=null)for(;Y<W.length;Y++)q.enqueue(W[Y])}})}}},Hf=({options:w,name:X,description:J})=>{return{name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:w}},required:["result"],additionalProperties:!1},...X!=null&&{name:X},...J!=null&&{description:J}}),async parseCompleteOutput({text:G},Y){let W=await RU({text:G});if(!W.success)throw new Iw({message:"No object generated: could not parse the response.",cause:W.error,text:G,response:Y.response,usage:Y.usage,finishReason:Y.finishReason});let q=W.value;if(q==null||typeof q!=="object"||!("result"in q)||typeof q.result!=="string"||!w.includes(q.result))throw new Iw({message:"No object generated: response did not match schema.",cause:new FK({value:q,cause:"response must be an object that contains a choice value."}),text:G,response:Y.response,usage:Y.usage,finishReason:Y.finishReason});return q.result},async parsePartialOutput({text:G}){let Y=await oJ(G);switch(Y.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let W=Y.value;if(W==null||typeof W!=="object"||!("result"in W)||typeof W.result!=="string")return;let q=w.filter((K)=>K.startsWith(W.result));if(Y.state==="successful-parse")return q.includes(W.result)?{partial:W.result}:void 0;else return q.length===1?{partial:q[0]}:void 0}}},createElementStreamTransform(){return}}},Of=({name:w,description:X}={})=>{return{name:"json",responseFormat:Promise.resolve({type:"json",...w!=null&&{name:w},...X!=null&&{description:X}}),async parseCompleteOutput({text:J},G){let Y=await RU({text:J});if(!Y.success)throw new Iw({message:"No object generated: could not parse the response.",cause:Y.error,text:J,response:G.response,usage:G.usage,finishReason:G.finishReason});return Y.value},async parsePartialOutput({text:J}){let G=await oJ(J);switch(G.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return G.value===void 0?void 0:{partial:G.value}}},createElementStreamTransform(){return}}};var Bo=MU({prefix:"aitxt",size:24});var Lo=class extends TransformStream{constructor(){super({transform(w,X){X.enqueue(`data: ${JSON.stringify(w)}
|
|
281
|
+
|
|
282
|
+
`)},flush(w){w.enqueue(`data: [DONE]
|
|
283
|
+
|
|
284
|
+
`)}})}};var pJ=N.record(N.string(),fz.optional()),Nf=C5(()=>dJ(N.union([N.strictObject({type:N.literal("text-start"),id:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("text-delta"),id:N.string(),delta:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("text-end"),id:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("error"),errorText:N.string()}),N.strictObject({type:N.literal("tool-input-start"),toolCallId:N.string(),toolName:N.string(),providerExecuted:N.boolean().optional(),providerMetadata:K$.optional(),toolMetadata:pJ.optional(),dynamic:N.boolean().optional(),title:N.string().optional()}),N.strictObject({type:N.literal("tool-input-delta"),toolCallId:N.string(),inputTextDelta:N.string()}),N.strictObject({type:N.literal("tool-input-available"),toolCallId:N.string(),toolName:N.string(),input:N.unknown(),providerExecuted:N.boolean().optional(),providerMetadata:K$.optional(),toolMetadata:pJ.optional(),dynamic:N.boolean().optional(),title:N.string().optional()}),N.strictObject({type:N.literal("tool-input-error"),toolCallId:N.string(),toolName:N.string(),input:N.unknown(),providerExecuted:N.boolean().optional(),providerMetadata:K$.optional(),toolMetadata:pJ.optional(),dynamic:N.boolean().optional(),errorText:N.string(),title:N.string().optional()}),N.strictObject({type:N.literal("tool-approval-request"),approvalId:N.string(),toolCallId:N.string()}),N.strictObject({type:N.literal("tool-output-available"),toolCallId:N.string(),output:N.unknown(),providerExecuted:N.boolean().optional(),providerMetadata:K$.optional(),toolMetadata:pJ.optional(),dynamic:N.boolean().optional(),preliminary:N.boolean().optional()}),N.strictObject({type:N.literal("tool-output-error"),toolCallId:N.string(),errorText:N.string(),providerExecuted:N.boolean().optional(),providerMetadata:K$.optional(),toolMetadata:pJ.optional(),dynamic:N.boolean().optional()}),N.strictObject({type:N.literal("tool-output-denied"),toolCallId:N.string()}),N.strictObject({type:N.literal("reasoning-start"),id:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("reasoning-delta"),id:N.string(),delta:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("reasoning-end"),id:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("source-url"),sourceId:N.string(),url:N.string(),title:N.string().optional(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("source-document"),sourceId:N.string(),mediaType:N.string(),title:N.string(),filename:N.string().optional(),providerMetadata:K$.optional()}),N.strictObject({type:N.literal("file"),url:N.string(),mediaType:N.string(),providerMetadata:K$.optional()}),N.strictObject({type:N.custom((w)=>typeof w==="string"&&w.startsWith("data-"),{message:'Type must start with "data-"'}),id:N.string().optional(),data:N.unknown(),transient:N.boolean().optional()}),N.strictObject({type:N.literal("start-step")}),N.strictObject({type:N.literal("finish-step")}),N.strictObject({type:N.literal("start"),messageId:N.string().optional(),messageMetadata:N.unknown().optional()}),N.strictObject({type:N.literal("finish"),finishReason:N.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:N.unknown().optional()}),N.strictObject({type:N.literal("abort"),reason:N.string().optional()}),N.strictObject({type:N.literal("message-metadata"),messageMetadata:N.unknown()})])));function Bf(w){return w.type.startsWith("data-")}function VK(w){return w.type.startsWith("tool-")}function qf(w){return w.type==="dynamic-tool"}function y5(w){return VK(w)||qf(w)}function E_(w){return w.type.split("-").slice(1).join("-")}function Lf({lastMessage:w,messageId:X}){return{message:(w==null?void 0:w.role)==="assistant"?w:{id:X,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function Kf({stream:w,messageMetadataSchema:X,dataPartSchemas:J,runUpdateMessageJob:G,onError:Y,onToolCall:W,onData:q}){return w.pipeThrough(new TransformStream({async transform(K,A){await G(async({state:j,write:E})=>{var M,Z,P,f;function c(R){let G$=j.message.parts.filter(y5).find((N$)=>N$.toolCallId===R);if(G$==null)throw new B8({chunkType:"tool-invocation",chunkId:R,message:`No tool invocation found for tool call ID "${R}".`});return G$}function p(R){var s;let G$=j.message.parts.find((w$)=>VK(w$)&&w$.toolCallId===R.toolCallId),N$=R,a=G$;if(G$!=null){if(G$.state=R.state,a.input=N$.input,a.output=N$.output,a.errorText=N$.errorText,a.rawInput=N$.rawInput,a.preliminary=N$.preliminary,R.title!==void 0)a.title=R.title;if(R.toolMetadata!==void 0)a.toolMetadata=R.toolMetadata;a.providerExecuted=(s=N$.providerExecuted)!=null?s:G$.providerExecuted;let w$=N$.providerMetadata;if(w$!=null)if(R.state==="output-available"||R.state==="output-error"){let e$=G$;e$.resultProviderMetadata=w$}else G$.callProviderMetadata=w$}else j.message.parts.push({type:`tool-${R.toolName}`,toolCallId:R.toolCallId,state:R.state,title:R.title,...R.toolMetadata!==void 0?{toolMetadata:R.toolMetadata}:{},input:N$.input,output:N$.output,rawInput:N$.rawInput,errorText:N$.errorText,providerExecuted:N$.providerExecuted,preliminary:N$.preliminary,...N$.providerMetadata!=null&&(R.state==="output-available"||R.state==="output-error")?{resultProviderMetadata:N$.providerMetadata}:{},...N$.providerMetadata!=null&&!(R.state==="output-available"||R.state==="output-error")?{callProviderMetadata:N$.providerMetadata}:{}})}function k(R){var s,G$;let N$=j.message.parts.find((e$)=>e$.type==="dynamic-tool"&&e$.toolCallId===R.toolCallId),a=R,w$=N$;if(N$!=null){if(N$.state=R.state,w$.toolName=R.toolName,w$.input=a.input,w$.output=a.output,w$.errorText=a.errorText,w$.rawInput=(s=a.rawInput)!=null?s:w$.rawInput,w$.preliminary=a.preliminary,R.title!==void 0)w$.title=R.title;if(R.toolMetadata!==void 0)w$.toolMetadata=R.toolMetadata;w$.providerExecuted=(G$=a.providerExecuted)!=null?G$:N$.providerExecuted;let e$=a.providerMetadata;if(e$!=null)if(R.state==="output-available"||R.state==="output-error"){let r=N$;r.resultProviderMetadata=e$}else N$.callProviderMetadata=e$}else j.message.parts.push({type:"dynamic-tool",toolName:R.toolName,toolCallId:R.toolCallId,state:R.state,input:a.input,output:a.output,errorText:a.errorText,preliminary:a.preliminary,providerExecuted:a.providerExecuted,title:R.title,...R.toolMetadata!==void 0?{toolMetadata:R.toolMetadata}:{},...a.providerMetadata!=null&&(R.state==="output-available"||R.state==="output-error")?{resultProviderMetadata:a.providerMetadata}:{},...a.providerMetadata!=null&&!(R.state==="output-available"||R.state==="output-error")?{callProviderMetadata:a.providerMetadata}:{}})}async function C(R){if(R!=null){let s=j.message.metadata!=null?C_(j.message.metadata,R):R;if(X!=null)await g5({value:s,schema:X,context:{field:"message.metadata",entityId:j.message.id}});j.message.metadata=s}}switch(K.type){case"text-start":{let R={type:"text",text:"",providerMetadata:K.providerMetadata,state:"streaming"};j.activeTextParts[K.id]=R,j.message.parts.push(R),E();break}case"text-delta":{let R=j.activeTextParts[K.id];if(R==null)throw new B8({chunkType:"text-delta",chunkId:K.id,message:`Received text-delta for missing text part with ID "${K.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});R.text+=K.delta,R.providerMetadata=(M=K.providerMetadata)!=null?M:R.providerMetadata,E();break}case"text-end":{let R=j.activeTextParts[K.id];if(R==null)throw new B8({chunkType:"text-end",chunkId:K.id,message:`Received text-end for missing text part with ID "${K.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});R.state="done",R.providerMetadata=(Z=K.providerMetadata)!=null?Z:R.providerMetadata,delete j.activeTextParts[K.id],E();break}case"reasoning-start":{let R={type:"reasoning",text:"",providerMetadata:K.providerMetadata,state:"streaming"};j.activeReasoningParts[K.id]=R,j.message.parts.push(R),E();break}case"reasoning-delta":{let R=j.activeReasoningParts[K.id];if(R==null)throw new B8({chunkType:"reasoning-delta",chunkId:K.id,message:`Received reasoning-delta for missing reasoning part with ID "${K.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});R.text+=K.delta,R.providerMetadata=(P=K.providerMetadata)!=null?P:R.providerMetadata,E();break}case"reasoning-end":{let R=j.activeReasoningParts[K.id];if(R==null)throw new B8({chunkType:"reasoning-end",chunkId:K.id,message:`Received reasoning-end for missing reasoning part with ID "${K.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});R.providerMetadata=(f=K.providerMetadata)!=null?f:R.providerMetadata,R.state="done",delete j.activeReasoningParts[K.id],E();break}case"file":{j.message.parts.push({type:"file",mediaType:K.mediaType,url:K.url,...K.providerMetadata!=null?{providerMetadata:K.providerMetadata}:{}}),E();break}case"source-url":{j.message.parts.push({type:"source-url",sourceId:K.sourceId,url:K.url,title:K.title,providerMetadata:K.providerMetadata}),E();break}case"source-document":{j.message.parts.push({type:"source-document",sourceId:K.sourceId,mediaType:K.mediaType,title:K.title,filename:K.filename,providerMetadata:K.providerMetadata}),E();break}case"tool-input-start":{let R=j.message.parts.filter(VK);if(j.partialToolCalls[K.toolCallId]={text:"",toolName:K.toolName,index:R.length,dynamic:K.dynamic,title:K.title,toolMetadata:K.toolMetadata},K.dynamic)k({toolCallId:K.toolCallId,toolName:K.toolName,state:"input-streaming",input:void 0,providerExecuted:K.providerExecuted,title:K.title,toolMetadata:K.toolMetadata,providerMetadata:K.providerMetadata});else p({toolCallId:K.toolCallId,toolName:K.toolName,state:"input-streaming",input:void 0,providerExecuted:K.providerExecuted,title:K.title,toolMetadata:K.toolMetadata,providerMetadata:K.providerMetadata});E();break}case"tool-input-delta":{let R=j.partialToolCalls[K.toolCallId];if(R==null)throw new B8({chunkType:"tool-input-delta",chunkId:K.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${K.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});R.text+=K.inputTextDelta;let{value:s}=await oJ(R.text);if(R.dynamic)k({toolCallId:K.toolCallId,toolName:R.toolName,state:"input-streaming",input:s,title:R.title,toolMetadata:R.toolMetadata});else p({toolCallId:K.toolCallId,toolName:R.toolName,state:"input-streaming",input:s,title:R.title,toolMetadata:R.toolMetadata});E();break}case"tool-input-available":{if(K.dynamic)k({toolCallId:K.toolCallId,toolName:K.toolName,state:"input-available",input:K.input,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,title:K.title,toolMetadata:K.toolMetadata});else p({toolCallId:K.toolCallId,toolName:K.toolName,state:"input-available",input:K.input,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,title:K.title,toolMetadata:K.toolMetadata});if(E(),W&&!K.providerExecuted)await W({toolCall:K});break}case"tool-input-error":{let R=j.message.parts.filter(y5).find((G$)=>G$.toolCallId===K.toolCallId);if(R!=null?R.type==="dynamic-tool":!!K.dynamic)k({toolCallId:K.toolCallId,toolName:K.toolName,state:"output-error",input:K.input,errorText:K.errorText,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,toolMetadata:K.toolMetadata});else p({toolCallId:K.toolCallId,toolName:K.toolName,state:"output-error",input:void 0,rawInput:K.input,errorText:K.errorText,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,toolMetadata:K.toolMetadata});E();break}case"tool-approval-request":{let R=c(K.toolCallId);R.state="approval-requested",R.approval={id:K.approvalId},E();break}case"tool-output-denied":{let R=c(K.toolCallId);R.state="output-denied",E();break}case"tool-output-available":{let R=c(K.toolCallId);if(R.type==="dynamic-tool")k({toolCallId:K.toolCallId,toolName:R.toolName,state:"output-available",input:R.input,output:K.output,preliminary:K.preliminary,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,title:R.title,toolMetadata:R.toolMetadata});else p({toolCallId:K.toolCallId,toolName:E_(R),state:"output-available",input:R.input,output:K.output,providerExecuted:K.providerExecuted,preliminary:K.preliminary,providerMetadata:K.providerMetadata,title:R.title,toolMetadata:R.toolMetadata});E();break}case"tool-output-error":{let R=c(K.toolCallId);if(R.type==="dynamic-tool")k({toolCallId:K.toolCallId,toolName:R.toolName,state:"output-error",input:R.input,errorText:K.errorText,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,title:R.title,toolMetadata:R.toolMetadata});else p({toolCallId:K.toolCallId,toolName:E_(R),state:"output-error",input:R.input,rawInput:R.rawInput,errorText:K.errorText,providerExecuted:K.providerExecuted,providerMetadata:K.providerMetadata,title:R.title,toolMetadata:R.toolMetadata});E();break}case"start-step":{j.message.parts.push({type:"step-start"});break}case"finish-step":{j.activeTextParts={},j.activeReasoningParts={};break}case"start":{if(K.messageId!=null)j.message.id=K.messageId;if(await C(K.messageMetadata),K.messageId!=null||K.messageMetadata!=null)E();break}case"finish":{if(K.finishReason!=null)j.finishReason=K.finishReason;if(await C(K.messageMetadata),K.messageMetadata!=null)E();break}case"message-metadata":{if(await C(K.messageMetadata),K.messageMetadata!=null)E();break}case"error":{Y==null||Y(Error(K.errorText));break}default:if(Bf(K)){if((J==null?void 0:J[K.type])!=null){let G$=j.message.parts.findIndex((a)=>("id"in a)&&("data"in a)&&a.id===K.id&&a.type===K.type),N$=G$>=0?G$:j.message.parts.length;await g5({value:K.data,schema:J[K.type],context:{field:`message.parts[${N$}].data`,entityName:K.type,entityId:K.id}})}let R=K;if(R.transient){q==null||q(R);break}let s=R.id!=null?j.message.parts.find((G$)=>R.type===G$.type&&R.id===G$.id):void 0;if(s!=null)s.data=R.data;else j.message.parts.push(R);q==null||q(R),E()}}A.enqueue(K)})}}))}async function Df({stream:w,onError:X}){let J=w.getReader();try{while(!0){let{done:G}=await J.read();if(G)break}}catch(G){X==null||X(G)}finally{J.releaseLock()}}var Ao=MU({prefix:"aitxt",size:24});var n4=N.record(N.string(),fz.optional()),Eo=C5(()=>dJ(N.array(N.object({id:N.string(),role:N.enum(["system","user","assistant"]),metadata:N.unknown().optional(),parts:N.array(N.union([N.object({type:N.literal("text"),text:N.string(),state:N.enum(["streaming","done"]).optional(),providerMetadata:K$.optional()}),N.object({type:N.literal("reasoning"),text:N.string(),state:N.enum(["streaming","done"]).optional(),providerMetadata:K$.optional()}),N.object({type:N.literal("source-url"),sourceId:N.string(),url:N.string(),title:N.string().optional(),providerMetadata:K$.optional()}),N.object({type:N.literal("source-document"),sourceId:N.string(),mediaType:N.string(),title:N.string(),filename:N.string().optional(),providerMetadata:K$.optional()}),N.object({type:N.literal("file"),mediaType:N.string(),filename:N.string().optional(),url:N.string(),providerMetadata:K$.optional()}),N.object({type:N.literal("step-start")}),N.object({type:N.string().startsWith("data-"),id:N.string().optional(),data:N.unknown()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("input-streaming"),input:N.unknown().optional(),providerExecuted:N.boolean().optional(),callProviderMetadata:K$.optional(),output:N.never().optional(),errorText:N.never().optional(),approval:N.never().optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("input-available"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.never().optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("approval-requested"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.never().optional(),reason:N.never().optional()})}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("approval-responded"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.boolean(),reason:N.string().optional()})}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("output-available"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.unknown(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),resultProviderMetadata:K$.optional(),preliminary:N.boolean().optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("output-error"),input:N.unknown().optional(),rawInput:N.unknown().optional(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.string(),callProviderMetadata:K$.optional(),resultProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("output-denied"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.literal(!1),reason:N.string().optional()})}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("input-streaming"),providerExecuted:N.boolean().optional(),callProviderMetadata:K$.optional(),input:N.unknown().optional(),output:N.never().optional(),errorText:N.never().optional(),approval:N.never().optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("input-available"),providerExecuted:N.boolean().optional(),input:N.unknown(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.never().optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("approval-requested"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.never().optional(),reason:N.never().optional()})}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("approval-responded"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.boolean(),reason:N.string().optional()})}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("output-available"),providerExecuted:N.boolean().optional(),input:N.unknown(),output:N.unknown(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),resultProviderMetadata:K$.optional(),preliminary:N.boolean().optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("output-error"),providerExecuted:N.boolean().optional(),input:N.unknown().optional(),rawInput:N.unknown().optional(),output:N.never().optional(),errorText:N.string(),callProviderMetadata:K$.optional(),resultProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:n4.optional(),state:N.literal("output-denied"),providerExecuted:N.boolean().optional(),input:N.unknown(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:K$.optional(),approval:N.object({id:N.string(),approved:N.literal(!1),reason:N.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var Ro=MU({prefix:"aiobj",size:24});function k_(w){return({url:X,abortSignal:J})=>oy({url:X,maxBytes:w==null?void 0:w.maxBytes,abortSignal:J})}var jf=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(this.isProcessing)return;this.isProcessing=!0;while(this.queue.length>0)await this.queue[0](),this.queue.shift();this.isProcessing=!1}async run(w){return new Promise((X,J)=>{this.queue.push(async()=>{try{await w(),X()}catch(G){J(G)}}),this.processQueue()})}};var _o=MU({prefix:"aiobj",size:24});var Po=k_();var Af="AI_NoSuchProviderError",Ff=`vercel.ai.error.${Af}`,Vf=Symbol.for(Ff),Ef;Ef=Vf;var vo=k_();async function Mf(w){if(w==null)return[];if(!globalThis.FileList||!(w instanceof globalThis.FileList))throw Error("FileList is not supported in the current environment");return Promise.all(Array.from(w).map(async(X)=>{let{name:J,type:G}=X,Y=await new Promise((W,q)=>{let K=new FileReader;K.onload=(A)=>{var j;W((j=A.target)==null?void 0:j.result)},K.onerror=(A)=>q(A),K.readAsDataURL(X)});return{type:"file",mediaType:G,filename:J,url:Y}}))}var Rf=class{constructor({api:w="/api/chat",credentials:X,headers:J,body:G,fetch:Y,prepareSendMessagesRequest:W,prepareReconnectToStreamRequest:q}){this.api=w,this.credentials=X,this.headers=J,this.body=G,this.fetch=Y,this.prepareSendMessagesRequest=W,this.prepareReconnectToStreamRequest=q}async sendMessages({abortSignal:w,...X}){var J,G,Y,W,q;let K=await x0(this.body),A=await x0(this.headers),j=await x0(this.credentials),E={...Rw(A),...Rw(X.headers)},M=await((J=this.prepareSendMessagesRequest)==null?void 0:J.call(this,{api:this.api,id:X.chatId,messages:X.messages,body:{...K,...X.body},headers:E,credentials:j,requestMetadata:X.metadata,trigger:X.trigger,messageId:X.messageId})),Z=(G=M==null?void 0:M.api)!=null?G:this.api,P=(M==null?void 0:M.headers)!==void 0?Rw(M.headers):E,f=(M==null?void 0:M.body)!==void 0?M.body:{...K,...X.body,id:X.chatId,messages:X.messages,trigger:X.trigger,messageId:X.messageId},c=(Y=M==null?void 0:M.credentials)!=null?Y:j,k=await((W=this.fetch)!=null?W:globalThis.fetch)(Z,{method:"POST",headers:{"Content-Type":"application/json",...P},body:JSON.stringify(f),credentials:c,signal:w});if(!k.ok)throw Error((q=await k.text())!=null?q:"Failed to fetch the chat response.");if(!k.body)throw Error("The response body is empty.");return this.processResponseStream(k.body)}async reconnectToStream(w){var X,J,G,Y,W;let q=await x0(this.body),K=await x0(this.headers),A=await x0(this.credentials),j={...Rw(K),...Rw(w.headers)},E=await((X=this.prepareReconnectToStreamRequest)==null?void 0:X.call(this,{api:this.api,id:w.chatId,body:{...q,...w.body},headers:j,credentials:A,requestMetadata:w.metadata})),M=(J=E==null?void 0:E.api)!=null?J:`${this.api}/${w.chatId}/stream`,Z=(E==null?void 0:E.headers)!==void 0?Rw(E.headers):j,P=(G=E==null?void 0:E.credentials)!=null?G:A,c=await((Y=this.fetch)!=null?Y:globalThis.fetch)(M,{method:"GET",headers:Z,credentials:P});if(c.status===204)return null;if(!c.ok)throw Error((W=await c.text())!=null?W:"Failed to fetch the chat response.");if(!c.body)throw Error("The response body is empty.");return this.processResponseStream(c.body)}},If=class extends Rf{constructor(w={}){super(w)}processResponseStream(w){return AI({stream:w,schema:Nf}).pipeThrough(new TransformStream({async transform(X,J){if(!X.success)throw X.error;J.enqueue(X.value)}}))}},x_=class{constructor({generateId:w=BI,id:X=w(),transport:J=new If,messageMetadataSchema:G,dataPartSchemas:Y,state:W,onError:q,onToolCall:K,onFinish:A,onData:j,sendAutomaticallyWhen:E}){this.activeResponse=void 0,this.jobExecutor=new jf,this.sendMessage=async(M,Z)=>{var P,f,c,p;if(M==null){await this.makeRequest({trigger:"submit-message",messageId:(P=this.lastMessage)==null?void 0:P.id,...Z});return}let k;if("text"in M||"files"in M)k={parts:[...Array.isArray(M.files)?M.files:await Mf(M.files),..."text"in M&&M.text!=null?[{type:"text",text:M.text}]:[]]};else k=M;if(M.messageId!=null){let C=this.state.messages.findIndex((R)=>R.id===M.messageId);if(C===-1)throw Error(`message with id ${M.messageId} not found`);if(this.state.messages[C].role!=="user")throw Error(`message with id ${M.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,C+1),this.state.replaceMessage(C,{...k,id:M.messageId,role:(f=k.role)!=null?f:"user",metadata:M.metadata})}else this.state.pushMessage({...k,id:(c=k.id)!=null?c:this.generateId(),role:(p=k.role)!=null?p:"user",metadata:M.metadata});await this.makeRequest({trigger:"submit-message",messageId:M.messageId,...Z})},this.regenerate=async({messageId:M,...Z}={})=>{let P=M==null?this.state.messages.length-1:this.state.messages.findIndex((f)=>f.id===M);if(P===-1)throw Error(`message ${M} not found`);this.state.messages=this.state.messages.slice(0,this.messages[P].role==="assistant"?P:P+1),await this.makeRequest({trigger:"regenerate-message",messageId:M,...Z})},this.resumeStream=async(M={})=>{await this.makeRequest({trigger:"resume-stream",...M})},this.clearError=()=>{if(this.status==="error")this.state.error=void 0,this.setStatus({status:"ready"})},this.addToolApprovalResponse=async({id:M,approved:Z,reason:P,options:f})=>this.jobExecutor.run(async()=>{let c=this.state.messages,p=c[c.length-1],k=(C)=>y5(C)&&C.state==="approval-requested"&&C.approval.id===M?{...C,state:"approval-responded",approval:{id:M,approved:Z,reason:P}}:C;if(this.state.replaceMessage(c.length-1,{...p,parts:p.parts.map(k)}),this.activeResponse)this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(k);if(this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen)this.shouldSendAutomatically().then((C)=>{var R;if(C)this.makeRequest({trigger:"submit-message",messageId:(R=this.lastMessage)==null?void 0:R.id,...f})})}),this.addToolOutput=async({state:M="output-available",toolCallId:Z,output:P,errorText:f,options:c})=>this.jobExecutor.run(async()=>{let p=this.state.messages,k=p[p.length-1],C=(R)=>y5(R)&&R.toolCallId===Z?{...R,state:M,output:P,errorText:f}:R;if(this.state.replaceMessage(p.length-1,{...k,parts:k.parts.map(C)}),this.activeResponse)this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(C);if(this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen)this.shouldSendAutomatically().then((R)=>{var s;if(R)this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,...c})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var M;if(this.status!=="streaming"&&this.status!=="submitted")return;if((M=this.activeResponse)==null?void 0:M.abortController)this.activeResponse.abortController.abort()},this.id=X,this.transport=J,this.generateId=w,this.messageMetadataSchema=G,this.dataPartSchemas=Y,this.state=W,this.onError=q,this.onToolCall=K,this.onFinish=A,this.onData=j,this.sendAutomaticallyWhen=E}get status(){return this.state.status}setStatus({status:w,error:X}){if(this.status===w)return;this.state.status=w,this.state.error=X}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(w){this.state.messages=w}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let w=this.sendAutomaticallyWhen({messages:this.state.messages});if(w&&typeof w==="object"&&"then"in w)return await w;return w}async makeRequest({trigger:w,metadata:X,headers:J,body:G,messageId:Y}){var W,q,K;let A;if(w==="resume-stream")try{let P=await this.transport.reconnectToStream({chatId:this.id,metadata:X,headers:J,body:G});if(P==null)return;A=P}catch(P){if(this.onError&&P instanceof Error)this.onError(P);this.setStatus({status:"error",error:P});return}this.setStatus({status:"submitted",error:void 0});let j=this.lastMessage,E=!1,M=!1,Z=!1;try{let P={state:Lf({lastMessage:this.state.snapshot(j),messageId:this.generateId()}),abortController:new AbortController};P.abortController.signal.addEventListener("abort",()=>{E=!0}),this.activeResponse=P;let f;if(w==="resume-stream")f=A;else f=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:P.abortController.signal,metadata:X,headers:J,body:G,trigger:w,messageId:Y});let c=(p)=>this.jobExecutor.run(()=>p({state:P.state,write:()=>{var k;if(this.setStatus({status:"streaming"}),P.state.message.id===((k=this.lastMessage)==null?void 0:k.id))this.state.replaceMessage(this.state.messages.length-1,P.state.message);else this.state.pushMessage(P.state.message)}}));await Df({stream:Kf({stream:f,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:c,onError:(p)=>{throw p}}),onError:(p)=>{throw p}}),this.setStatus({status:"ready"})}catch(P){if(E||P.name==="AbortError")return E=!0,this.setStatus({status:"ready"}),null;if(Z=!0,P instanceof TypeError&&(P.message.toLowerCase().includes("fetch")||P.message.toLowerCase().includes("network")))M=!0;if(this.onError&&P instanceof Error)this.onError(P);this.setStatus({status:"error",error:P})}finally{try{(q=this.onFinish)==null||q.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:E,isDisconnect:M,isError:Z,finishReason:(W=this.activeResponse)==null?void 0:W.state.finishReason})}catch(P){console.error(P)}this.activeResponse=void 0}if(!Z&&await this.shouldSendAutomatically())await this.makeRequest({trigger:"submit-message",messageId:(K=this.lastMessage)==null?void 0:K.id,metadata:X,headers:J,body:G})}};var h_=K6(y_(),1);var sJ=K6(S0(),1);var m5=K6(S0(),1);var f_=(w,X,J)=>{if(!X.has(w))throw TypeError("Cannot "+J)},C6=(w,X,J)=>{return f_(w,X,"read from private field"),J?J.call(w):X.get(w)},g0=(w,X,J)=>{if(X.has(w))throw TypeError("Cannot add the same private member more than once");X instanceof WeakSet?X.add(w):X.set(w,J)},_w=(w,X,J,G)=>{return f_(w,X,"write to private field"),G?G.call(w,J):X.set(w,J),J};function Pf(w,X){return X!=null?h_.default(w,X):w}var x1,f5,h5,rJ,tJ,aJ,q8,EK,MK,vf=class{constructor(w=[]){g0(this,x1,void 0),g0(this,f5,"ready"),g0(this,h5,void 0),g0(this,rJ,new Set),g0(this,tJ,new Set),g0(this,aJ,new Set),this.pushMessage=(X)=>{_w(this,x1,C6(this,x1).concat(X)),C6(this,q8).call(this)},this.popMessage=()=>{_w(this,x1,C6(this,x1).slice(0,-1)),C6(this,q8).call(this)},this.replaceMessage=(X,J)=>{_w(this,x1,[...C6(this,x1).slice(0,X),this.snapshot(J),...C6(this,x1).slice(X+1)]),C6(this,q8).call(this)},this.snapshot=(X)=>structuredClone(X),this["~registerMessagesCallback"]=(X,J)=>{let G=J?Pf(X,J):X;return C6(this,rJ).add(G),()=>{C6(this,rJ).delete(G)}},this["~registerStatusCallback"]=(X)=>{return C6(this,tJ).add(X),()=>{C6(this,tJ).delete(X)}},this["~registerErrorCallback"]=(X)=>{return C6(this,aJ).add(X),()=>{C6(this,aJ).delete(X)}},g0(this,q8,()=>{C6(this,rJ).forEach((X)=>X())}),g0(this,EK,()=>{C6(this,tJ).forEach((X)=>X())}),g0(this,MK,()=>{C6(this,aJ).forEach((X)=>X())}),_w(this,x1,w)}get status(){return C6(this,f5)}set status(w){_w(this,f5,w),C6(this,EK).call(this)}get error(){return C6(this,h5)}set error(w){_w(this,h5,w),C6(this,MK).call(this)}get messages(){return C6(this,x1)}set messages(w){_w(this,x1,[...w]),C6(this,q8).call(this)}};x1=new WeakMap;f5=new WeakMap;h5=new WeakMap;rJ=new WeakMap;tJ=new WeakMap;aJ=new WeakMap;q8=new WeakMap;EK=new WeakMap;MK=new WeakMap;var L8,u5=class extends x_{constructor({messages:w,...X}){let J=new vf(w);super({...X,state:J});g0(this,L8,void 0),this["~registerMessagesCallback"]=(G,Y)=>C6(this,L8)["~registerMessagesCallback"](G,Y),this["~registerStatusCallback"]=(G)=>C6(this,L8)["~registerStatusCallback"](G),this["~registerErrorCallback"]=(G)=>C6(this,L8)["~registerErrorCallback"](G),_w(this,L8,J)}};L8=new WeakMap;function u_({experimental_throttle:w,resume:X=!1,...J}={}){let G=g1.useRef(!("chat"in J)?{onToolCall:J.onToolCall,onData:J.onData,onFinish:J.onFinish,onError:J.onError,sendAutomaticallyWhen:J.sendAutomaticallyWhen}:{});if(!("chat"in J))G.current={onToolCall:J.onToolCall,onData:J.onData,onFinish:J.onFinish,onError:J.onError,sendAutomaticallyWhen:J.sendAutomaticallyWhen};let Y={...J,onToolCall:(Z)=>{var P,f;return(f=(P=G.current).onToolCall)==null?void 0:f.call(P,Z)},onData:(Z)=>{var P,f;return(f=(P=G.current).onData)==null?void 0:f.call(P,Z)},onFinish:(Z)=>{var P,f;return(f=(P=G.current).onFinish)==null?void 0:f.call(P,Z)},onError:(Z)=>{var P,f;return(f=(P=G.current).onError)==null?void 0:f.call(P,Z)},sendAutomaticallyWhen:(Z)=>{var P,f,c;return(c=(f=(P=G.current).sendAutomaticallyWhen)==null?void 0:f.call(P,Z))!=null?c:!1}},W=g1.useRef("chat"in J?J.chat:new u5(Y));if("chat"in J&&J.chat!==W.current||"id"in J&&W.current.id!==J.id)W.current="chat"in J?J.chat:new u5(Y);let K=g1.useCallback((Z)=>W.current["~registerMessagesCallback"](Z,w),[w,W.current.id]),A=g1.useSyncExternalStore(K,()=>W.current.messages,()=>W.current.messages),j=g1.useSyncExternalStore(W.current["~registerStatusCallback"],()=>W.current.status,()=>W.current.status),E=g1.useSyncExternalStore(W.current["~registerErrorCallback"],()=>W.current.error,()=>W.current.error),M=g1.useCallback((Z)=>{if(typeof Z==="function")Z=Z(W.current.messages);W.current.messages=Z},[W]);return g1.useEffect(()=>{if(X)W.current.resumeStream()},[X,W]),{id:W.current.id,messages:A,setMessages:M,sendMessage:W.current.sendMessage,regenerate:W.current.regenerate,clearError:W.current.clearError,stop:W.current.stop,error:E,resumeStream:W.current.resumeStream,status:j,addToolResult:W.current.addToolOutput,addToolOutput:W.current.addToolOutput,addToolApprovalResponse:W.current.addToolApprovalResponse}}var LP="vercel.ai.error",Zf=Symbol.for(LP),m_,c_,z6=class w extends(c_=Error,m_=Zf,c_){constructor({name:X,message:J,cause:G}){super(J);this[m_]=!0,this.name=X,this.cause=G}static isInstance(X){return w.hasMarker(X,LP)}static hasMarker(X,J){let G=Symbol.for(J);return X!=null&&typeof X==="object"&&G in X&&typeof X[G]==="boolean"&&X[G]===!0}},KP="AI_APICallError",DP=`vercel.ai.error.${KP}`,Sf=Symbol.for(DP),i_,l_,no=class extends(l_=z6,i_=Sf,l_){constructor({message:w,url:X,requestBodyValues:J,statusCode:G,responseHeaders:Y,responseBody:W,cause:q,isRetryable:K=G!=null&&(G===408||G===409||G===429||G>=500),data:A}){super({name:KP,message:w,cause:q});this[i_]=!0,this.url=X,this.requestBodyValues=J,this.statusCode=G,this.responseHeaders=Y,this.responseBody=W,this.isRetryable=K,this.data=A}static isInstance(w){return z6.hasMarker(w,DP)}},jP="AI_EmptyResponseBodyError",AP=`vercel.ai.error.${jP}`,Tf=Symbol.for(AP),n_,d_,po=class extends(d_=z6,n_=Tf,d_){constructor({message:w="Empty response body"}={}){super({name:jP,message:w});this[n_]=!0}static isInstance(w){return z6.hasMarker(w,AP)}};function FP(w){if(w==null)return"unknown error";if(typeof w==="string")return w;if(w instanceof Error)return w.message;return JSON.stringify(w)}var VP="AI_InvalidArgumentError",EP=`vercel.ai.error.${VP}`,bf=Symbol.for(EP),p_,o_,MP=class extends(o_=z6,p_=bf,o_){constructor({message:w,cause:X,argument:J}){super({name:VP,message:w,cause:X});this[p_]=!0,this.argument=J}static isInstance(w){return z6.hasMarker(w,EP)}},RP="AI_InvalidPromptError",IP=`vercel.ai.error.${RP}`,Cf=Symbol.for(IP),r_,t_,oo=class extends(t_=z6,r_=Cf,t_){constructor({prompt:w,message:X,cause:J}){super({name:RP,message:`Invalid prompt: ${X}`,cause:J});this[r_]=!0,this.prompt=w}static isInstance(w){return z6.hasMarker(w,IP)}},_P="AI_InvalidResponseDataError",PP=`vercel.ai.error.${_P}`,kf=Symbol.for(PP),a_,s_,ro=class extends(s_=z6,a_=kf,s_){constructor({data:w,message:X=`Invalid response data: ${JSON.stringify(w)}.`}){super({name:_P,message:X});this[a_]=!0,this.data=w}static isInstance(w){return z6.hasMarker(w,PP)}},vP="AI_JSONParseError",ZP=`vercel.ai.error.${vP}`,xf=Symbol.for(ZP),e_,$P,RK=class extends($P=z6,e_=xf,$P){constructor({text:w,cause:X}){super({name:vP,message:`JSON parsing failed: Text: ${w}.
|
|
285
|
+
Error message: ${FP(X)}`,cause:X});this[e_]=!0,this.text=w}static isInstance(w){return z6.hasMarker(w,ZP)}},SP="AI_LoadAPIKeyError",TP=`vercel.ai.error.${SP}`,gf=Symbol.for(TP),UP,wP,to=class extends(wP=z6,UP=gf,wP){constructor({message:w}){super({name:SP,message:w});this[UP]=!0}static isInstance(w){return z6.hasMarker(w,TP)}},bP="AI_LoadSettingError",CP=`vercel.ai.error.${bP}`,yf=Symbol.for(CP),zP,XP,ao=class extends(XP=z6,zP=yf,XP){constructor({message:w}){super({name:bP,message:w});this[zP]=!0}static isInstance(w){return z6.hasMarker(w,CP)}},kP="AI_NoContentGeneratedError",xP=`vercel.ai.error.${kP}`,ff=Symbol.for(xP),YP,JP,so=class extends(JP=z6,YP=ff,JP){constructor({message:w="No content generated."}={}){super({name:kP,message:w});this[YP]=!0}static isInstance(w){return z6.hasMarker(w,xP)}},gP="AI_NoSuchModelError",yP=`vercel.ai.error.${gP}`,hf=Symbol.for(yP),QP,GP,eo=class extends(GP=z6,QP=hf,GP){constructor({errorName:w=gP,modelId:X,modelType:J,message:G=`No such ${J}: ${X}`}){super({name:w,message:G});this[QP]=!0,this.modelId=X,this.modelType=J}static isInstance(w){return z6.hasMarker(w,yP)}},fP="AI_TooManyEmbeddingValuesForCallError",hP=`vercel.ai.error.${fP}`,uf=Symbol.for(hP),WP,HP,$r=class extends(HP=z6,WP=uf,HP){constructor(w){super({name:fP,message:`Too many values for a single embedding call. The ${w.provider} model "${w.modelId}" can only embed up to ${w.maxEmbeddingsPerCall} values per call, but ${w.values.length} values were provided.`});this[WP]=!0,this.provider=w.provider,this.modelId=w.modelId,this.maxEmbeddingsPerCall=w.maxEmbeddingsPerCall,this.values=w.values}static isInstance(w){return z6.hasMarker(w,hP)}},uP="AI_TypeValidationError",mP=`vercel.ai.error.${uP}`,mf=Symbol.for(mP),OP,NP,IU=class w extends(NP=z6,OP=mf,NP){constructor({value:X,cause:J,context:G}){let Y="Type validation failed";if(G==null?void 0:G.field)Y+=` for ${G.field}`;if((G==null?void 0:G.entityName)||(G==null?void 0:G.entityId)){Y+=" (";let W=[];if(G.entityName)W.push(G.entityName);if(G.entityId)W.push(`id: "${G.entityId}"`);Y+=W.join(", "),Y+=")"}super({name:uP,message:`${Y}: Value: ${JSON.stringify(X)}.
|
|
286
|
+
Error message: ${FP(J)}`,cause:J});this[OP]=!0,this.value=X,this.context=G}static isInstance(X){return z6.hasMarker(X,mP)}static wrap({value:X,cause:J,context:G}){var Y,W,q;if(w.isInstance(J)&&J.value===X&&((Y=J.context)==null?void 0:Y.field)===(G==null?void 0:G.field)&&((W=J.context)==null?void 0:W.entityName)===(G==null?void 0:G.entityName)&&((q=J.context)==null?void 0:q.entityId)===(G==null?void 0:G.entityId))return J;return new w({value:X,cause:J,context:G})}},cP="AI_UnsupportedFunctionalityError",iP=`vercel.ai.error.${cP}`,cf=Symbol.for(iP),BP,qP,Ur=class extends(qP=z6,BP=cf,qP){constructor({functionality:w,message:X=`'${w}' functionality not supported.`}){super({name:cP,message:X});this[BP]=!0,this.functionality=w}static isInstance(w){return z6.hasMarker(w,iP)}};class _K extends Error{constructor(w,X){super(w),this.name="ParseError",this.type=X.type,this.field=X.field,this.value=X.value,this.line=X.line}}var lP=10,lf=13,hz=32;function IK(w){}function pP(w){if(typeof w=="function")throw TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:X=IK,onError:J=IK,onRetry:G=IK,onComment:Y}=w,W=[],q=!0,K,A="",j=0,E;function M(k){if(q&&(q=!1,k.charCodeAt(0)===239&&k.charCodeAt(1)===187&&k.charCodeAt(2)===191&&(k=k.slice(3))),W.length===0){let s=Z(k);s!==""&&W.push(s);return}if(k.indexOf(`
|
|
287
|
+
`)===-1&&k.indexOf("\r")===-1){W.push(k);return}W.push(k);let C=W.join("");W.length=0;let R=Z(C);R!==""&&W.push(R)}function Z(k){let C=0;if(k.indexOf("\r")===-1){let R=k.indexOf(`
|
|
288
|
+
`,C);for(;R!==-1;){if(C===R){j>0&&X({id:K,event:E,data:A}),K=void 0,A="",j=0,E=void 0,C=R+1,R=k.indexOf(`
|
|
289
|
+
`,C);continue}let s=k.charCodeAt(C);if(nP(k,C,s)){let G$=k.charCodeAt(C+5)===hz?C+6:C+5,N$=k.slice(G$,R);if(j===0&&k.charCodeAt(R+1)===lP){X({id:K,event:E,data:N$}),K=void 0,A="",E=void 0,C=R+2,R=k.indexOf(`
|
|
290
|
+
`,C);continue}A=j===0?N$:`${A}
|
|
291
|
+
${N$}`,j++}else dP(k,C,s)?E=k.slice(k.charCodeAt(C+6)===hz?C+7:C+6,R)||void 0:P(k,C,R);C=R+1,R=k.indexOf(`
|
|
292
|
+
`,C)}return k.slice(C)}for(;C<k.length;){let R=k.indexOf("\r",C),s=k.indexOf(`
|
|
293
|
+
`,C),G$=-1;if(R!==-1&&s!==-1?G$=R<s?R:s:R!==-1?R===k.length-1?G$=-1:G$=R:s!==-1&&(G$=s),G$===-1)break;P(k,C,G$),C=G$+1,k.charCodeAt(C-1)===lf&&k.charCodeAt(C)===lP&&C++}return k.slice(C)}function P(k,C,R){if(C===R){c();return}let s=k.charCodeAt(C);if(nP(k,C,s)){let r=k.charCodeAt(C+5)===hz?C+6:C+5,Q6=k.slice(r,R);A=j===0?Q6:`${A}
|
|
294
|
+
${Q6}`,j++;return}if(dP(k,C,s)){E=k.slice(k.charCodeAt(C+6)===hz?C+7:C+6,R)||void 0;return}if(s===105&&k.charCodeAt(C+1)===100&&k.charCodeAt(C+2)===58){let r=k.slice(k.charCodeAt(C+3)===hz?C+4:C+3,R);K=r.includes("\x00")?void 0:r;return}if(s===58){if(Y){let r=k.slice(C,R);Y(r.slice(k.charCodeAt(C+1)===hz?2:1))}return}let G$=k.slice(C,R),N$=G$.indexOf(":");if(N$===-1){f(G$,"",G$);return}let a=G$.slice(0,N$),w$=G$.charCodeAt(N$+1)===hz?2:1,e$=G$.slice(N$+w$);f(a,e$,G$)}function f(k,C,R){switch(k){case"event":E=C||void 0;break;case"data":A=j===0?C:`${A}
|
|
295
|
+
${C}`,j++;break;case"id":K=C.includes("\x00")?void 0:C;break;case"retry":/^\d+$/.test(C)?G(parseInt(C,10)):J(new _K(`Invalid \`retry\` value: "${C}"`,{type:"invalid-retry",value:C,line:R}));break;default:J(new _K(`Unknown field "${k.length>20?`${k.slice(0,20)}…`:k}"`,{type:"unknown-field",field:k,value:C,line:R}));break}}function c(){j>0&&X({id:K,event:E,data:A}),K=void 0,A="",j=0,E=void 0}function p(k={}){if(k.consume&&W.length>0){let C=W.join("");P(C,0,C.length)}q=!0,K=void 0,A="",j=0,E=void 0,W.length=0}return{feed:M,reset:p}}function nP(w,X,J){return J===100&&w.charCodeAt(X+1)===97&&w.charCodeAt(X+2)===116&&w.charCodeAt(X+3)===97&&w.charCodeAt(X+4)===58}function dP(w,X,J){return J===101&&w.charCodeAt(X+1)===118&&w.charCodeAt(X+2)===101&&w.charCodeAt(X+3)===110&&w.charCodeAt(X+4)===116&&w.charCodeAt(X+5)===58}class PK extends TransformStream{constructor({onError:w,onRetry:X,onComment:J}={}){let G;super({start(Y){G=pP({onEvent:(W)=>{Y.enqueue(W)},onError(W){w==="terminate"?Y.error(W):typeof w=="function"&&w(W)},onRetry:X,onComment:J})},transform(Y){G.feed(Y)}})}}var eP="AI_DownloadError",$v=`vercel.ai.error.${eP}`,nf=Symbol.for($v),oP,rP,y1=class extends(rP=z6,oP=nf,rP){constructor({url:w,statusCode:X,statusText:J,cause:G,message:Y=G==null?`Failed to download ${w}: ${X} ${J}`:`Failed to download ${w}: ${G}`}){super({name:eP,message:Y,cause:G});this[oP]=!0,this.url=w,this.statusCode=X,this.statusText=J}static isInstance(w){return z6.hasMarker(w,$v)}},CK=2147483648;async function Uv({response:w,url:X,maxBytes:J=CK}){let G=w.headers.get("content-length");if(G!=null){let E=parseInt(G,10);if(!isNaN(E)&&E>J)throw new y1({url:X,message:`Download of ${X} exceeded maximum size of ${J} bytes (Content-Length: ${E}).`})}let Y=w.body;if(Y==null)return new Uint8Array(0);let W=Y.getReader(),q=[],K=0;try{while(!0){let{done:E,value:M}=await W.read();if(E)break;if(K+=M.length,K>J)throw new y1({url:X,message:`Download of ${X} exceeded maximum size of ${J} bytes.`});q.push(M)}}finally{try{await W.cancel()}finally{W.releaseLock()}}let A=new Uint8Array(K),j=0;for(let E of q)A.set(E,j),j+=E.length;return A}function kK(w){let X;try{X=new URL(w)}catch(G){throw new y1({url:w,message:`Invalid URL: ${w}`})}if(X.protocol==="data:")return;if(X.protocol!=="http:"&&X.protocol!=="https:")throw new y1({url:w,message:`URL scheme must be http, https, or data, got ${X.protocol}`});let J=X.hostname;if(!J)throw new y1({url:w,message:"URL must have a hostname"});if(J==="localhost"||J.endsWith(".local")||J.endsWith(".localhost"))throw new y1({url:w,message:`URL with hostname ${J} is not allowed`});if(J.startsWith("[")&&J.endsWith("]")){let G=J.slice(1,-1);if(df(G))throw new y1({url:w,message:`URL with IPv6 address ${J} is not allowed`});return}if(wv(J)){if(SK(J))throw new y1({url:w,message:`URL with IP address ${J} is not allowed`});return}}function wv(w){let X=w.split(".");if(X.length!==4)return!1;return X.every((J)=>{let G=Number(J);return Number.isInteger(G)&&G>=0&&G<=255&&String(G)===J})}function SK(w){let X=w.split(".").map(Number),[J,G]=X;if(J===0)return!0;if(J===10)return!0;if(J===127)return!0;if(J===169&&G===254)return!0;if(J===172&&G>=16&&G<=31)return!0;if(J===192&&G===168)return!0;return!1}function df(w){let X=w.toLowerCase();if(X==="::1")return!0;if(X==="::")return!0;if(X.startsWith("::ffff:")){let J=X.slice(7);if(wv(J))return SK(J);let G=J.split(":");if(G.length===2){let Y=parseInt(G[0],16),W=parseInt(G[1],16);if(!isNaN(Y)&&!isNaN(W)){let q=Y>>8&255,K=Y&255,A=W>>8&255,j=W&255;return SK(`${q}.${K}.${A}.${j}`)}}}if(X.startsWith("fc")||X.startsWith("fd"))return!0;if(X.startsWith("fe80"))return!0;return!1}var _U=({prefix:w,size:X=16,alphabet:J="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:G="-"}={})=>{let Y=()=>{let W=J.length,q=Array(X);for(let K=0;K<X;K++)q[K]=J[Math.random()*W|0];return q.join("")};if(w==null)return Y;if(J.includes(G))throw new MP({argument:"separator",message:`The separator "${G}" must not be part of the alphabet "${J}".`});return()=>`${w}${G}${Y()}`},Fr=_U();function zv(w=globalThis){var X,J,G;if(w.window)return"runtime/browser";if((X=w.navigator)==null?void 0:X.userAgent)return`runtime/${w.navigator.userAgent.toLowerCase()}`;if((G=(J=w.process)==null?void 0:J.versions)==null?void 0:G.node)return`runtime/node.js/${w.process.version.substring(0)}`;if(w.EdgeRuntime)return"runtime/vercel-edge";return"runtime/unknown"}function Pw(w){if(w==null)return{};let X={};if(w instanceof Headers)w.forEach((J,G)=>{X[G.toLowerCase()]=J});else{if(!Array.isArray(w))w=Object.entries(w);for(let[J,G]of w)if(G!=null)X[J.toLowerCase()]=G}return X}function c5(w,...X){let J=new Headers(Pw(w)),G=J.get("user-agent")||"";return J.set("user-agent",[G,...X].filter(Boolean).join(" ")),Object.fromEntries(J.entries())}var pf=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,of=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function tP(w){let X=JSON.parse(w);if(X===null||typeof X!=="object")return X;if(pf.test(w)===!1&&of.test(w)===!1)return X;return rf(X)}function rf(w){let X=[w];while(X.length){let J=X;X=[];for(let G of J){if(Object.prototype.hasOwnProperty.call(G,"__proto__"))throw SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(G,"constructor")&&G.constructor!==null&&typeof G.constructor==="object"&&Object.prototype.hasOwnProperty.call(G.constructor,"prototype"))throw SyntaxError("Object contains forbidden prototype property");for(let Y in G){let W=G[Y];if(W&&typeof W==="object")X.push(W)}}}return w}function tf(w){let{stackTraceLimit:X}=Error;try{Error.stackTraceLimit=0}catch(J){return tP(w)}try{return tP(w)}finally{Error.stackTraceLimit=X}}function xK(w){if(w.type==="object"||Array.isArray(w.type)&&w.type.includes("object")){w.additionalProperties=!1;let{properties:J}=w;if(J!=null)for(let G of Object.keys(J))J[G]=uz(J[G])}if(w.items!=null)w.items=Array.isArray(w.items)?w.items.map(uz):uz(w.items);if(w.anyOf!=null)w.anyOf=w.anyOf.map(uz);if(w.allOf!=null)w.allOf=w.allOf.map(uz);if(w.oneOf!=null)w.oneOf=w.oneOf.map(uz);let{definitions:X}=w;if(X!=null)for(let J of Object.keys(X))X[J]=uz(X[J]);return w}function uz(w){if(typeof w==="boolean")return w;return xK(w)}var af=Symbol("Let zodToJsonSchema decide on which parser to use"),aP={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},sf=(w)=>typeof w==="string"?{...aP,name:w}:{...aP,...w};function K1(){return{}}function ef(w,X){var J,G,Y;let W={type:"array"};if(((J=w.type)==null?void 0:J._def)&&((Y=(G=w.type)==null?void 0:G._def)==null?void 0:Y.typeName)!==m.ZodAny)W.items=A6(w.type._def,{...X,currentPath:[...X.currentPath,"items"]});if(w.minLength)W.minItems=w.minLength.value;if(w.maxLength)W.maxItems=w.maxLength.value;if(w.exactLength)W.minItems=w.exactLength.value,W.maxItems=w.exactLength.value;return W}function $h(w){let X={type:"integer",format:"int64"};if(!w.checks)return X;for(let J of w.checks)switch(J.kind){case"min":if(J.inclusive)X.minimum=J.value;else X.exclusiveMinimum=J.value;break;case"max":if(J.inclusive)X.maximum=J.value;else X.exclusiveMaximum=J.value;break;case"multipleOf":X.multipleOf=J.value;break}return X}function Uh(){return{type:"boolean"}}function Xv(w,X){return A6(w.type._def,X)}var wh=(w,X)=>{return A6(w.innerType._def,X)};function Yv(w,X,J){let G=J!=null?J:X.dateStrategy;if(Array.isArray(G))return{anyOf:G.map((Y,W)=>Yv(w,X,Y))};switch(G){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return zh(w)}}var zh=(w)=>{let X={type:"integer",format:"unix-time"};for(let J of w.checks)switch(J.kind){case"min":X.minimum=J.value;break;case"max":X.maximum=J.value;break}return X};function Xh(w,X){return{...A6(w.innerType._def,X),default:w.defaultValue()}}function Yh(w,X){return X.effectStrategy==="input"?A6(w.schema._def,X):K1()}function Jh(w){return{type:"string",enum:Array.from(w.values)}}var Qh=(w)=>{if("type"in w&&w.type==="string")return!1;return"allOf"in w};function Gh(w,X){let J=[A6(w.left._def,{...X,currentPath:[...X.currentPath,"allOf","0"]}),A6(w.right._def,{...X,currentPath:[...X.currentPath,"allOf","1"]})].filter((Y)=>!!Y),G=[];return J.forEach((Y)=>{if(Qh(Y))G.push(...Y.allOf);else{let W=Y;if("additionalProperties"in Y&&Y.additionalProperties===!1){let{additionalProperties:q,...K}=Y;W=K}G.push(W)}}),G.length?{allOf:G}:void 0}function Wh(w){let X=typeof w.value;if(X!=="bigint"&&X!=="number"&&X!=="boolean"&&X!=="string")return{type:Array.isArray(w.value)?"array":"object"};return{type:X==="bigint"?"integer":X,const:w.value}}var vK=void 0,s1={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>{if(vK===void 0)vK=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u");return vK},uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function Jv(w,X){let J={type:"string"};if(w.checks)for(let G of w.checks)switch(G.kind){case"min":J.minLength=typeof J.minLength==="number"?Math.max(J.minLength,G.value):G.value;break;case"max":J.maxLength=typeof J.maxLength==="number"?Math.min(J.maxLength,G.value):G.value;break;case"email":switch(X.emailStrategy){case"format:email":e1(J,"email",G.message,X);break;case"format:idn-email":e1(J,"idn-email",G.message,X);break;case"pattern:zod":b4(J,s1.email,G.message,X);break}break;case"url":e1(J,"uri",G.message,X);break;case"uuid":e1(J,"uuid",G.message,X);break;case"regex":b4(J,G.regex,G.message,X);break;case"cuid":b4(J,s1.cuid,G.message,X);break;case"cuid2":b4(J,s1.cuid2,G.message,X);break;case"startsWith":b4(J,RegExp(`^${ZK(G.value,X)}`),G.message,X);break;case"endsWith":b4(J,RegExp(`${ZK(G.value,X)}$`),G.message,X);break;case"datetime":e1(J,"date-time",G.message,X);break;case"date":e1(J,"date",G.message,X);break;case"time":e1(J,"time",G.message,X);break;case"duration":e1(J,"duration",G.message,X);break;case"length":J.minLength=typeof J.minLength==="number"?Math.max(J.minLength,G.value):G.value,J.maxLength=typeof J.maxLength==="number"?Math.min(J.maxLength,G.value):G.value;break;case"includes":{b4(J,RegExp(ZK(G.value,X)),G.message,X);break}case"ip":{if(G.version!=="v6")e1(J,"ipv4",G.message,X);if(G.version!=="v4")e1(J,"ipv6",G.message,X);break}case"base64url":b4(J,s1.base64url,G.message,X);break;case"jwt":b4(J,s1.jwt,G.message,X);break;case"cidr":{if(G.version!=="v6")b4(J,s1.ipv4Cidr,G.message,X);if(G.version!=="v4")b4(J,s1.ipv6Cidr,G.message,X);break}case"emoji":b4(J,s1.emoji(),G.message,X);break;case"ulid":{b4(J,s1.ulid,G.message,X);break}case"base64":{switch(X.base64Strategy){case"format:binary":{e1(J,"binary",G.message,X);break}case"contentEncoding:base64":{J.contentEncoding="base64";break}case"pattern:zod":{b4(J,s1.base64,G.message,X);break}}break}case"nanoid":b4(J,s1.nanoid,G.message,X);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return J}function ZK(w,X){return X.patternStrategy==="escape"?Oh(w):w}var Hh=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Oh(w){let X="";for(let J=0;J<w.length;J++){if(!Hh.has(w[J]))X+="\\";X+=w[J]}return X}function e1(w,X,J,G){var Y;if(w.format||((Y=w.anyOf)==null?void 0:Y.some((W)=>W.format))){if(!w.anyOf)w.anyOf=[];if(w.format)w.anyOf.push({format:w.format}),delete w.format;w.anyOf.push({format:X,...J&&G.errorMessages&&{errorMessage:{format:J}}})}else w.format=X}function b4(w,X,J,G){var Y;if(w.pattern||((Y=w.allOf)==null?void 0:Y.some((W)=>W.pattern))){if(!w.allOf)w.allOf=[];if(w.pattern)w.allOf.push({pattern:w.pattern}),delete w.pattern;w.allOf.push({pattern:sP(X,G),...J&&G.errorMessages&&{errorMessage:{pattern:J}}})}else w.pattern=sP(X,G)}function sP(w,X){var J;if(!X.applyRegexFlags||!w.flags)return w.source;let G={i:w.flags.includes("i"),m:w.flags.includes("m"),s:w.flags.includes("s")},Y=G.i?w.source.toLowerCase():w.source,W="",q=!1,K=!1,A=!1;for(let j=0;j<Y.length;j++){if(q){W+=Y[j],q=!1;continue}if(G.i){if(K){if(Y[j].match(/[a-z]/)){if(A)W+=Y[j],W+=`${Y[j-2]}-${Y[j]}`.toUpperCase(),A=!1;else if(Y[j+1]==="-"&&((J=Y[j+2])==null?void 0:J.match(/[a-z]/)))W+=Y[j],A=!0;else W+=`${Y[j]}${Y[j].toUpperCase()}`;continue}}else if(Y[j].match(/[a-z]/)){W+=`[${Y[j]}${Y[j].toUpperCase()}]`;continue}}if(G.m){if(Y[j]==="^"){W+=`(^|(?<=[\r
|
|
296
|
+
]))`;continue}else if(Y[j]==="$"){W+=`($|(?=[\r
|
|
297
|
+
]))`;continue}}if(G.s&&Y[j]==="."){W+=K?`${Y[j]}\r
|
|
298
|
+
`:`[${Y[j]}\r
|
|
299
|
+
]`;continue}if(W+=Y[j],Y[j]==="\\")q=!0;else if(K&&Y[j]==="]")K=!1;else if(!K&&Y[j]==="[")K=!0}try{new RegExp(W)}catch(j){return console.warn(`Could not convert regex pattern at ${X.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),w.source}return W}function Qv(w,X){var J,G,Y,W,q,K;let A={type:"object",additionalProperties:(J=A6(w.valueType._def,{...X,currentPath:[...X.currentPath,"additionalProperties"]}))!=null?J:X.allowedAdditionalProperties};if(((G=w.keyType)==null?void 0:G._def.typeName)===m.ZodString&&((Y=w.keyType._def.checks)==null?void 0:Y.length)){let{type:j,...E}=Jv(w.keyType._def,X);return{...A,propertyNames:E}}else if(((W=w.keyType)==null?void 0:W._def.typeName)===m.ZodEnum)return{...A,propertyNames:{enum:w.keyType._def.values}};else if(((q=w.keyType)==null?void 0:q._def.typeName)===m.ZodBranded&&w.keyType._def.type._def.typeName===m.ZodString&&((K=w.keyType._def.type._def.checks)==null?void 0:K.length)){let{type:j,...E}=Xv(w.keyType._def,X);return{...A,propertyNames:E}}return A}function Nh(w,X){if(X.mapStrategy==="record")return Qv(w,X);let J=A6(w.keyType._def,{...X,currentPath:[...X.currentPath,"items","items","0"]})||K1(),G=A6(w.valueType._def,{...X,currentPath:[...X.currentPath,"items","items","1"]})||K1();return{type:"array",maxItems:125,items:{type:"array",items:[J,G],minItems:2,maxItems:2}}}function Bh(w){let X=w.values,G=Object.keys(w.values).filter((W)=>{return typeof X[X[W]]!=="number"}).map((W)=>X[W]),Y=Array.from(new Set(G.map((W)=>typeof W)));return{type:Y.length===1?Y[0]==="string"?"string":"number":["string","number"],enum:G}}function qh(){return{not:K1()}}function Lh(){return{type:"null"}}var TK={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function Kh(w,X){let J=w.options instanceof Map?Array.from(w.options.values()):w.options;if(J.every((G)=>(G._def.typeName in TK)&&(!G._def.checks||!G._def.checks.length))){let G=J.reduce((Y,W)=>{let q=TK[W._def.typeName];return q&&!Y.includes(q)?[...Y,q]:Y},[]);return{type:G.length>1?G:G[0]}}else if(J.every((G)=>G._def.typeName==="ZodLiteral"&&!G.description)){let G=J.reduce((Y,W)=>{let q=typeof W._def.value;switch(q){case"string":case"number":case"boolean":return[...Y,q];case"bigint":return[...Y,"integer"];case"object":if(W._def.value===null)return[...Y,"null"];case"symbol":case"undefined":case"function":default:return Y}},[]);if(G.length===J.length){let Y=G.filter((W,q,K)=>K.indexOf(W)===q);return{type:Y.length>1?Y:Y[0],enum:J.reduce((W,q)=>{return W.includes(q._def.value)?W:[...W,q._def.value]},[])}}}else if(J.every((G)=>G._def.typeName==="ZodEnum"))return{type:"string",enum:J.reduce((G,Y)=>[...G,...Y._def.values.filter((W)=>!G.includes(W))],[])};return Dh(w,X)}var Dh=(w,X)=>{let J=(w.options instanceof Map?Array.from(w.options.values()):w.options).map((G,Y)=>A6(G._def,{...X,currentPath:[...X.currentPath,"anyOf",`${Y}`]})).filter((G)=>!!G&&(!X.strictUnions||typeof G==="object"&&Object.keys(G).length>0));return J.length?{anyOf:J}:void 0};function jh(w,X){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(w.innerType._def.typeName)&&(!w.innerType._def.checks||!w.innerType._def.checks.length))return{type:[TK[w.innerType._def.typeName],"null"]};let J=A6(w.innerType._def,{...X,currentPath:[...X.currentPath,"anyOf","0"]});return J&&{anyOf:[J,{type:"null"}]}}function Ah(w){let X={type:"number"};if(!w.checks)return X;for(let J of w.checks)switch(J.kind){case"int":X.type="integer";break;case"min":if(J.inclusive)X.minimum=J.value;else X.exclusiveMinimum=J.value;break;case"max":if(J.inclusive)X.maximum=J.value;else X.exclusiveMaximum=J.value;break;case"multipleOf":X.multipleOf=J.value;break}return X}function Fh(w,X){let J={type:"object",properties:{}},G=[],Y=w.shape();for(let q in Y){let K=Y[q];if(K===void 0||K._def===void 0)continue;let A=Eh(K),j=A6(K._def,{...X,currentPath:[...X.currentPath,"properties",q],propertyPath:[...X.currentPath,"properties",q]});if(j===void 0)continue;if(J.properties[q]=j,!A)G.push(q)}if(G.length)J.required=G;let W=Vh(w,X);if(W!==void 0)J.additionalProperties=W;return J}function Vh(w,X){if(w.catchall._def.typeName!=="ZodNever")return A6(w.catchall._def,{...X,currentPath:[...X.currentPath,"additionalProperties"]});switch(w.unknownKeys){case"passthrough":return X.allowedAdditionalProperties;case"strict":return X.rejectedAdditionalProperties;case"strip":return X.removeAdditionalStrategy==="strict"?X.allowedAdditionalProperties:X.rejectedAdditionalProperties}}function Eh(w){try{return w.isOptional()}catch(X){return!0}}var Mh=(w,X)=>{var J;if(X.currentPath.toString()===((J=X.propertyPath)==null?void 0:J.toString()))return A6(w.innerType._def,X);let G=A6(w.innerType._def,{...X,currentPath:[...X.currentPath,"anyOf","1"]});return G?{anyOf:[{not:K1()},G]}:K1()},Rh=(w,X)=>{if(X.pipeStrategy==="input")return A6(w.in._def,X);else if(X.pipeStrategy==="output")return A6(w.out._def,X);let J=A6(w.in._def,{...X,currentPath:[...X.currentPath,"allOf","0"]}),G=A6(w.out._def,{...X,currentPath:[...X.currentPath,"allOf",J?"1":"0"]});return{allOf:[J,G].filter((Y)=>Y!==void 0)}};function Ih(w,X){return A6(w.type._def,X)}function _h(w,X){let G={type:"array",uniqueItems:!0,items:A6(w.valueType._def,{...X,currentPath:[...X.currentPath,"items"]})};if(w.minSize)G.minItems=w.minSize.value;if(w.maxSize)G.maxItems=w.maxSize.value;return G}function Ph(w,X){if(w.rest)return{type:"array",minItems:w.items.length,items:w.items.map((J,G)=>A6(J._def,{...X,currentPath:[...X.currentPath,"items",`${G}`]})).reduce((J,G)=>G===void 0?J:[...J,G],[]),additionalItems:A6(w.rest._def,{...X,currentPath:[...X.currentPath,"additionalItems"]})};else return{type:"array",minItems:w.items.length,maxItems:w.items.length,items:w.items.map((J,G)=>A6(J._def,{...X,currentPath:[...X.currentPath,"items",`${G}`]})).reduce((J,G)=>G===void 0?J:[...J,G],[])}}function vh(){return{not:K1()}}function Zh(){return K1()}var Sh=(w,X)=>{return A6(w.innerType._def,X)},Th=(w,X,J)=>{switch(X){case m.ZodString:return Jv(w,J);case m.ZodNumber:return Ah(w);case m.ZodObject:return Fh(w,J);case m.ZodBigInt:return $h(w);case m.ZodBoolean:return Uh();case m.ZodDate:return Yv(w,J);case m.ZodUndefined:return vh();case m.ZodNull:return Lh();case m.ZodArray:return ef(w,J);case m.ZodUnion:case m.ZodDiscriminatedUnion:return Kh(w,J);case m.ZodIntersection:return Gh(w,J);case m.ZodTuple:return Ph(w,J);case m.ZodRecord:return Qv(w,J);case m.ZodLiteral:return Wh(w);case m.ZodEnum:return Jh(w);case m.ZodNativeEnum:return Bh(w);case m.ZodNullable:return jh(w,J);case m.ZodOptional:return Mh(w,J);case m.ZodMap:return Nh(w,J);case m.ZodSet:return _h(w,J);case m.ZodLazy:return()=>w.getter()._def;case m.ZodPromise:return Ih(w,J);case m.ZodNaN:case m.ZodNever:return qh();case m.ZodEffects:return Yh(w,J);case m.ZodAny:return K1();case m.ZodUnknown:return Zh();case m.ZodDefault:return Xh(w,J);case m.ZodBranded:return Xv(w,J);case m.ZodReadonly:return Sh(w,J);case m.ZodCatch:return wh(w,J);case m.ZodPipeline:return Rh(w,J);case m.ZodFunction:case m.ZodVoid:case m.ZodSymbol:return;default:return((G)=>{return})(X)}},bh=(w,X)=>{let J=0;for(;J<w.length&&J<X.length;J++)if(w[J]!==X[J])break;return[(w.length-J).toString(),...X.slice(J)].join("/")};function A6(w,X,J=!1){var G;let Y=X.seen.get(w);if(X.override){let A=(G=X.override)==null?void 0:G.call(X,w,X,Y,J);if(A!==af)return A}if(Y&&!J){let A=Ch(Y,X);if(A!==void 0)return A}let W={def:w,path:X.currentPath,jsonSchema:void 0};X.seen.set(w,W);let q=Th(w,w.typeName,X),K=typeof q==="function"?A6(q(),X):q;if(K)kh(w,X,K);if(X.postProcess){let A=X.postProcess(K,w,X);return W.jsonSchema=K,A}return W.jsonSchema=K,K}var Ch=(w,X)=>{switch(X.$refStrategy){case"root":return{$ref:w.path.join("/")};case"relative":return{$ref:bh(X.currentPath,w.path)};case"none":case"seen":{if(w.path.length<X.currentPath.length&&w.path.every((J,G)=>X.currentPath[G]===J))return console.warn(`Recursive reference detected at ${X.currentPath.join("/")}! Defaulting to any`),K1();return X.$refStrategy==="seen"?K1():void 0}}},kh=(w,X,J)=>{if(w.description)J.description=w.description;return J},xh=(w)=>{let X=sf(w),J=X.name!==void 0?[...X.basePath,X.definitionPath,X.name]:X.basePath;return{...X,currentPath:J,propertyPath:void 0,seen:new Map(Object.entries(X.definitions).map(([G,Y])=>[Y._def,{def:Y._def,path:[...X.basePath,X.definitionPath,G],jsonSchema:void 0}]))}},gh=(w,X)=>{var J;let G=xh(X),Y=typeof X==="object"&&X.definitions?Object.entries(X.definitions).reduce((j,[E,M])=>{var Z;return{...j,[E]:(Z=A6(M._def,{...G,currentPath:[...G.basePath,G.definitionPath,E]},!0))!=null?Z:K1()}},{}):void 0,W=typeof X==="string"?X:(X==null?void 0:X.nameStrategy)==="title"?void 0:X==null?void 0:X.name,q=(J=A6(w._def,W===void 0?G:{...G,currentPath:[...G.basePath,G.definitionPath,W]},!1))!=null?J:K1(),K=typeof X==="object"&&X.name!==void 0&&X.nameStrategy==="title"?X.name:void 0;if(K!==void 0)q.title=K;let A=W===void 0?Y?{...q,[G.definitionPath]:Y}:q:{$ref:[...G.$refStrategy==="relative"?[]:G.basePath,G.definitionPath,W].join("/"),[G.definitionPath]:{...Y,[W]:q}};return A.$schema="http://json-schema.org/draft-07/schema#",A},bK=Symbol.for("vercel.ai.schema");function i5(w){let X;return()=>{if(X==null)X=w();return X}}function l5(w,{validate:X}={}){return{[bK]:!0,_type:void 0,get jsonSchema(){if(typeof w==="function")w=w();return w},validate:X}}function yh(w){return typeof w==="object"&&w!==null&&bK in w&&w[bK]===!0&&"jsonSchema"in w&&"validate"in w}function n5(w){return w==null?l5({properties:{},additionalProperties:!1}):yh(w)?w:("~standard"in w)?w["~standard"].vendor==="zod"?eJ(w):fh(w):w()}function fh(w){return l5(()=>xK(w["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async(X)=>{let J=await w["~standard"].validate(X);return"value"in J?{success:!0,value:J.value}:{success:!1,error:new IU({value:X,cause:J.issues})}}})}function hh(w,X){var J;let G=(J=X==null?void 0:X.useReferences)!=null?J:!1;return l5(()=>gh(w,{$refStrategy:G?"root":"none"}),{validate:async(Y)=>{let W=await w.safeParseAsync(Y);return W.success?{success:!0,value:W.data}:{success:!1,error:W.error}}})}function uh(w,X){var J;let G=(J=X==null?void 0:X.useReferences)!=null?J:!1;return l5(()=>xK(Tz(w,{target:"draft-7",io:"input",reused:G?"ref":"inline"})),{validate:async(Y)=>{let W=await bz(w,Y);return W.success?{success:!0,value:W.data}:{success:!1,error:W.error}}})}function mh(w){return"_zod"in w}function eJ(w,X){if(mh(w))return uh(w,X);else return hh(w,X)}async function $9({value:w,schema:X,context:J}){let G=n5(X);try{if(G.validate==null)return{success:!0,value:w,rawValue:w};let Y=await G.validate(w);if(Y.success)return{success:!0,value:Y.value,rawValue:w};return{success:!1,error:IU.wrap({value:w,cause:Y.error,context:J}),rawValue:w}}catch(Y){return{success:!1,error:IU.wrap({value:w,cause:Y,context:J}),rawValue:w}}}async function PU({text:w,schema:X}){try{let J=tf(w);if(X==null)return{success:!0,value:J,rawValue:J};return await $9({value:J,schema:X})}catch(J){return{success:!1,error:RK.isInstance(J)?J:new RK({text:w,cause:J}),rawValue:void 0}}}function Gv({stream:w,schema:X}){return w.pipeThrough(new TextDecoderStream).pipeThrough(new PK).pipeThrough(new TransformStream({async transform({data:J},G){if(J==="[DONE]")return;G.enqueue(await PU({text:J,schema:X}))}}))}async function y0(w){if(typeof w==="function")w=w();return Promise.resolve(w)}var ih=Object.defineProperty,lh=(w,X)=>{for(var J in X)ih(w,J,{get:X[J],enumerable:!0})},nh="AI_InvalidArgumentError",dh=`vercel.ai.error.${nh}`,ph=Symbol.for(dh),oh;oh=ph;var rh="AI_InvalidStreamPartError",th=`vercel.ai.error.${rh}`,ah=Symbol.for(th),sh;sh=ah;var eh="AI_InvalidToolApprovalError",$u=`vercel.ai.error.${eh}`,Uu=Symbol.for($u),wu;wu=Uu;var zu="AI_InvalidToolInputError",Xu=`vercel.ai.error.${zu}`,Yu=Symbol.for(Xu),Ju;Ju=Yu;var Qu="AI_ToolCallNotFoundForApprovalError",Gu=`vercel.ai.error.${Qu}`,Wu=Symbol.for(Gu),Hu;Hu=Wu;var Ou="AI_MissingToolResultsError",Nu=`vercel.ai.error.${Ou}`,Bu=Symbol.for(Nu),qu;qu=Bu;var Lu="AI_NoImageGeneratedError",Ku=`vercel.ai.error.${Lu}`,Du=Symbol.for(Ku),ju;ju=Du;var Wv="AI_NoObjectGeneratedError",Hv=`vercel.ai.error.${Wv}`,Au=Symbol.for(Hv),Ov,vw=class extends z6{constructor({message:w="No object generated.",cause:X,text:J,response:G,usage:Y,finishReason:W}){super({name:Wv,message:w,cause:X});this[Ov]=!0,this.text=J,this.response=G,this.usage=Y,this.finishReason=W}static isInstance(w){return z6.hasMarker(w,Hv)}};Ov=Au;var Fu="AI_NoOutputGeneratedError",Vu=`vercel.ai.error.${Fu}`,Eu=Symbol.for(Vu),Mu;Mu=Eu;var Ru="AI_NoSpeechGeneratedError",Iu=`vercel.ai.error.${Ru}`,_u=Symbol.for(Iu),Pu;Pu=_u;var vu="AI_NoTranscriptGeneratedError",Zu=`vercel.ai.error.${vu}`,Su=Symbol.for(Zu),Tu;Tu=Su;var bu="AI_NoVideoGeneratedError",Cu=`vercel.ai.error.${bu}`,ku=Symbol.for(Cu),xu;xu=ku;var gu="AI_NoSuchToolError",yu=`vercel.ai.error.${gu}`,fu=Symbol.for(yu),hu;hu=fu;var uu="AI_ToolCallRepairError",mu=`vercel.ai.error.${uu}`,cu=Symbol.for(mu),iu;iu=cu;var lu="AI_UIMessageStreamError",nu=`vercel.ai.error.${lu}`,du=Symbol.for(nu),pu;pu=du;var ou="AI_InvalidDataContentError",ru=`vercel.ai.error.${ou}`,tu=Symbol.for(ru),au;au=tu;var su="AI_InvalidMessageRoleError",eu=`vercel.ai.error.${su}`,$m=Symbol.for(eu),Um;Um=$m;var wm="AI_MessageConversionError",zm=`vercel.ai.error.${wm}`,Xm=Symbol.for(zm),Ym;Ym=Xm;var Jm="AI_RetryError",Qm=`vercel.ai.error.${Jm}`,Gm=Symbol.for(Qm),Wm;Wm=Gm;var Hm="6.0.191",Om=async({url:w,maxBytes:X,abortSignal:J})=>{var G;let Y=w.toString();kK(Y);try{let W=await fetch(Y,{headers:c5({},`ai-sdk/${Hm}`,zv()),signal:J});if(W.redirected)kK(W.url);if(!W.ok)throw new y1({url:Y,statusCode:W.status,statusText:W.statusText});return{data:await Uv({response:W,url:Y,maxBytes:X!=null?X:CK}),mediaType:(G=W.headers.get("content-type"))!=null?G:void 0}}catch(W){if(y1.isInstance(W))throw W;throw new y1({url:Y,cause:W})}};var Nv=N.union([N.string(),N.instanceof(Uint8Array),N.instanceof(ArrayBuffer),N.custom((w)=>{var X,J;return(J=(X=globalThis.Buffer)==null?void 0:X.isBuffer(w))!=null?J:!1},{message:"Must be a Buffer"})]);var mz=N.lazy(()=>N.union([N.null(),N.string(),N.number(),N.boolean(),N.record(N.string(),mz.optional()),N.array(mz)])),D$=N.record(N.string(),N.record(N.string(),mz.optional())),Bv=N.object({type:N.literal("text"),text:N.string(),providerOptions:D$.optional()}),Nm=N.object({type:N.literal("image"),image:N.union([Nv,N.instanceof(URL)]),mediaType:N.string().optional(),providerOptions:D$.optional()}),qv=N.object({type:N.literal("file"),data:N.union([Nv,N.instanceof(URL)]),filename:N.string().optional(),mediaType:N.string(),providerOptions:D$.optional()}),Bm=N.object({type:N.literal("reasoning"),text:N.string(),providerOptions:D$.optional()}),qm=N.object({type:N.literal("tool-call"),toolCallId:N.string(),toolName:N.string(),input:N.unknown(),providerOptions:D$.optional(),providerExecuted:N.boolean().optional()}),Lm=N.discriminatedUnion("type",[N.object({type:N.literal("text"),value:N.string(),providerOptions:D$.optional()}),N.object({type:N.literal("json"),value:mz,providerOptions:D$.optional()}),N.object({type:N.literal("execution-denied"),reason:N.string().optional(),providerOptions:D$.optional()}),N.object({type:N.literal("error-text"),value:N.string(),providerOptions:D$.optional()}),N.object({type:N.literal("error-json"),value:mz,providerOptions:D$.optional()}),N.object({type:N.literal("content"),value:N.array(N.union([N.object({type:N.literal("text"),text:N.string(),providerOptions:D$.optional()}),N.object({type:N.literal("media"),data:N.string(),mediaType:N.string()}),N.object({type:N.literal("file-data"),data:N.string(),mediaType:N.string(),filename:N.string().optional(),providerOptions:D$.optional()}),N.object({type:N.literal("file-url"),url:N.string(),providerOptions:D$.optional()}),N.object({type:N.literal("file-id"),fileId:N.union([N.string(),N.record(N.string(),N.string())]),providerOptions:D$.optional()}),N.object({type:N.literal("image-data"),data:N.string(),mediaType:N.string(),providerOptions:D$.optional()}),N.object({type:N.literal("image-url"),url:N.string(),providerOptions:D$.optional()}),N.object({type:N.literal("image-file-id"),fileId:N.union([N.string(),N.record(N.string(),N.string())]),providerOptions:D$.optional()}),N.object({type:N.literal("custom"),providerOptions:D$.optional()})]))})]),Lv=N.object({type:N.literal("tool-result"),toolCallId:N.string(),toolName:N.string(),output:Lm,providerOptions:D$.optional()}),Km=N.object({type:N.literal("tool-approval-request"),approvalId:N.string(),toolCallId:N.string()}),Dm=N.object({type:N.literal("tool-approval-response"),approvalId:N.string(),approved:N.boolean(),reason:N.string().optional()}),jm=N.object({role:N.literal("system"),content:N.string(),providerOptions:D$.optional()}),Am=N.object({role:N.literal("user"),content:N.union([N.string(),N.array(N.union([Bv,Nm,qv]))]),providerOptions:D$.optional()}),Fm=N.object({role:N.literal("assistant"),content:N.union([N.string(),N.array(N.union([Bv,qv,Bm,qm,Lv,Km]))]),providerOptions:D$.optional()}),Vm=N.object({role:N.literal("tool"),content:N.array(N.union([Lv,Dm])),providerOptions:D$.optional()}),mr=N.union([jm,Am,Fm,Vm]);var Em={};lh(Em,{array:()=>_m,choice:()=>Pm,json:()=>vm,object:()=>Im,text:()=>Rm});function Mm(w){let X=["ROOT"],J=-1,G=null;function Y(A,j,E){switch(A){case'"':{J=j,X.pop(),X.push(E),X.push("INSIDE_STRING");break}case"f":case"t":case"n":{J=j,G=j,X.pop(),X.push(E),X.push("INSIDE_LITERAL");break}case"-":{X.pop(),X.push(E),X.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{J=j,X.pop(),X.push(E),X.push("INSIDE_NUMBER");break}case"{":{J=j,X.pop(),X.push(E),X.push("INSIDE_OBJECT_START");break}case"[":{J=j,X.pop(),X.push(E),X.push("INSIDE_ARRAY_START");break}}}function W(A,j){switch(A){case",":{X.pop(),X.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{J=j,X.pop();break}}}function q(A,j){switch(A){case",":{X.pop(),X.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{J=j,X.pop();break}}}for(let A=0;A<w.length;A++){let j=w[A];switch(X[X.length-1]){case"ROOT":Y(j,A,"FINISH");break;case"INSIDE_OBJECT_START":{switch(j){case'"':{X.pop(),X.push("INSIDE_OBJECT_KEY");break}case"}":{J=A,X.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(j){case'"':{X.pop(),X.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(j){case'"':{X.pop(),X.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(j){case":":{X.pop(),X.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{Y(j,A,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{W(j,A);break}case"INSIDE_STRING":{switch(j){case'"':{X.pop(),J=A;break}case"\\":{X.push("INSIDE_STRING_ESCAPE");break}default:J=A}break}case"INSIDE_ARRAY_START":{switch(j){case"]":{J=A,X.pop();break}default:{J=A,Y(j,A,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(j){case",":{X.pop(),X.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{J=A,X.pop();break}default:{J=A;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{Y(j,A,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{X.pop(),J=A;break}case"INSIDE_NUMBER":{switch(j){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{J=A;break}case"e":case"E":case"-":case".":break;case",":{if(X.pop(),X[X.length-1]==="INSIDE_ARRAY_AFTER_VALUE")q(j,A);if(X[X.length-1]==="INSIDE_OBJECT_AFTER_VALUE")W(j,A);break}case"}":{if(X.pop(),X[X.length-1]==="INSIDE_OBJECT_AFTER_VALUE")W(j,A);break}case"]":{if(X.pop(),X[X.length-1]==="INSIDE_ARRAY_AFTER_VALUE")q(j,A);break}default:{X.pop();break}}break}case"INSIDE_LITERAL":{let M=w.substring(G,A+1);if(!"false".startsWith(M)&&!"true".startsWith(M)&&!"null".startsWith(M)){if(X.pop(),X[X.length-1]==="INSIDE_OBJECT_AFTER_VALUE")W(j,A);else if(X[X.length-1]==="INSIDE_ARRAY_AFTER_VALUE")q(j,A)}else J=A;break}}}let K=w.slice(0,J+1);for(let A=X.length-1;A>=0;A--)switch(X[A]){case"INSIDE_STRING":{K+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{K+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{K+="]";break}case"INSIDE_LITERAL":{let E=w.substring(G,w.length);if("true".startsWith(E))K+="true".slice(E.length);else if("false".startsWith(E))K+="false".slice(E.length);else if("null".startsWith(E))K+="null".slice(E.length)}}return K}async function d5(w){if(w===void 0)return{value:void 0,state:"undefined-input"};let X=await PU({text:w});if(X.success)return{value:X.value,state:"successful-parse"};if(X=await PU({text:Mm(w)}),X.success)return{value:X.value,state:"repaired-parse"};return{value:void 0,state:"failed-parse"}}var Rm=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:w}){return w},async parsePartialOutput({text:w}){return{partial:w}},createElementStreamTransform(){return}}),Im=({schema:w,name:X,description:J})=>{let G=n5(w);return{name:"object",responseFormat:y0(G.jsonSchema).then((Y)=>({type:"json",schema:Y,...X!=null&&{name:X},...J!=null&&{description:J}})),async parseCompleteOutput({text:Y},W){let q=await PU({text:Y});if(!q.success)throw new vw({message:"No object generated: could not parse the response.",cause:q.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});let K=await $9({value:q.value,schema:G});if(!K.success)throw new vw({message:"No object generated: response did not match schema.",cause:K.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});return K.value},async parsePartialOutput({text:Y}){let W=await d5(Y);switch(W.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:W.value}}},createElementStreamTransform(){return}}},_m=({element:w,name:X,description:J})=>{let G=n5(w);return{name:"array",responseFormat:y0(G.jsonSchema).then((Y)=>{let{$schema:W,...q}=Y;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:q}},required:["elements"],additionalProperties:!1},...X!=null&&{name:X},...J!=null&&{description:J}}}),async parseCompleteOutput({text:Y},W){let q=await PU({text:Y});if(!q.success)throw new vw({message:"No object generated: could not parse the response.",cause:q.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});let K=q.value;if(K==null||typeof K!=="object"||!("elements"in K)||!Array.isArray(K.elements))throw new vw({message:"No object generated: response did not match schema.",cause:new IU({value:K,cause:"response must be an object with an elements array"}),text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason});for(let A of K.elements){let j=await $9({value:A,schema:G});if(!j.success)throw new vw({message:"No object generated: response did not match schema.",cause:j.error,text:Y,response:W.response,usage:W.usage,finishReason:W.finishReason})}return K.elements},async parsePartialOutput({text:Y}){let W=await d5(Y);switch(W.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let q=W.value;if(q==null||typeof q!=="object"||!("elements"in q)||!Array.isArray(q.elements))return;let K=W.state==="repaired-parse"&&q.elements.length>0?q.elements.slice(0,-1):q.elements,A=[];for(let j of K){let E=await $9({value:j,schema:G});if(E.success)A.push(E.value)}return{partial:A}}}},createElementStreamTransform(){let Y=0;return new TransformStream({transform({partialOutput:W},q){if(W!=null)for(;Y<W.length;Y++)q.enqueue(W[Y])}})}}},Pm=({options:w,name:X,description:J})=>{return{name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:w}},required:["result"],additionalProperties:!1},...X!=null&&{name:X},...J!=null&&{description:J}}),async parseCompleteOutput({text:G},Y){let W=await PU({text:G});if(!W.success)throw new vw({message:"No object generated: could not parse the response.",cause:W.error,text:G,response:Y.response,usage:Y.usage,finishReason:Y.finishReason});let q=W.value;if(q==null||typeof q!=="object"||!("result"in q)||typeof q.result!=="string"||!w.includes(q.result))throw new vw({message:"No object generated: response did not match schema.",cause:new IU({value:q,cause:"response must be an object that contains a choice value."}),text:G,response:Y.response,usage:Y.usage,finishReason:Y.finishReason});return q.result},async parsePartialOutput({text:G}){let Y=await d5(G);switch(Y.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let W=Y.value;if(W==null||typeof W!=="object"||!("result"in W)||typeof W.result!=="string")return;let q=w.filter((K)=>K.startsWith(W.result));if(Y.state==="successful-parse")return q.includes(W.result)?{partial:W.result}:void 0;else return q.length===1?{partial:q[0]}:void 0}}},createElementStreamTransform(){return}}},vm=({name:w,description:X}={})=>{return{name:"json",responseFormat:Promise.resolve({type:"json",...w!=null&&{name:w},...X!=null&&{description:X}}),async parseCompleteOutput({text:J},G){let Y=await PU({text:J});if(!Y.success)throw new vw({message:"No object generated: could not parse the response.",cause:Y.error,text:J,response:G.response,usage:G.usage,finishReason:G.finishReason});return Y.value},async parsePartialOutput({text:J}){let G=await d5(J);switch(G.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return G.value===void 0?void 0:{partial:G.value}}},createElementStreamTransform(){return}}};var nr=_U({prefix:"aitxt",size:24});var pr=class extends TransformStream{constructor(){super({transform(w,X){X.enqueue(`data: ${JSON.stringify(w)}
|
|
300
|
+
|
|
301
|
+
`)},flush(w){w.enqueue(`data: [DONE]
|
|
302
|
+
|
|
303
|
+
`)}})}};var U9=N.record(N.string(),mz.optional()),Zm=i5(()=>eJ(N.union([N.strictObject({type:N.literal("text-start"),id:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("text-delta"),id:N.string(),delta:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("text-end"),id:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("error"),errorText:N.string()}),N.strictObject({type:N.literal("tool-input-start"),toolCallId:N.string(),toolName:N.string(),providerExecuted:N.boolean().optional(),providerMetadata:D$.optional(),toolMetadata:U9.optional(),dynamic:N.boolean().optional(),title:N.string().optional()}),N.strictObject({type:N.literal("tool-input-delta"),toolCallId:N.string(),inputTextDelta:N.string()}),N.strictObject({type:N.literal("tool-input-available"),toolCallId:N.string(),toolName:N.string(),input:N.unknown(),providerExecuted:N.boolean().optional(),providerMetadata:D$.optional(),toolMetadata:U9.optional(),dynamic:N.boolean().optional(),title:N.string().optional()}),N.strictObject({type:N.literal("tool-input-error"),toolCallId:N.string(),toolName:N.string(),input:N.unknown(),providerExecuted:N.boolean().optional(),providerMetadata:D$.optional(),toolMetadata:U9.optional(),dynamic:N.boolean().optional(),errorText:N.string(),title:N.string().optional()}),N.strictObject({type:N.literal("tool-approval-request"),approvalId:N.string(),toolCallId:N.string()}),N.strictObject({type:N.literal("tool-output-available"),toolCallId:N.string(),output:N.unknown(),providerExecuted:N.boolean().optional(),providerMetadata:D$.optional(),toolMetadata:U9.optional(),dynamic:N.boolean().optional(),preliminary:N.boolean().optional()}),N.strictObject({type:N.literal("tool-output-error"),toolCallId:N.string(),errorText:N.string(),providerExecuted:N.boolean().optional(),providerMetadata:D$.optional(),toolMetadata:U9.optional(),dynamic:N.boolean().optional()}),N.strictObject({type:N.literal("tool-output-denied"),toolCallId:N.string()}),N.strictObject({type:N.literal("reasoning-start"),id:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("reasoning-delta"),id:N.string(),delta:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("reasoning-end"),id:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("source-url"),sourceId:N.string(),url:N.string(),title:N.string().optional(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("source-document"),sourceId:N.string(),mediaType:N.string(),title:N.string(),filename:N.string().optional(),providerMetadata:D$.optional()}),N.strictObject({type:N.literal("file"),url:N.string(),mediaType:N.string(),providerMetadata:D$.optional()}),N.strictObject({type:N.custom((w)=>typeof w==="string"&&w.startsWith("data-"),{message:'Type must start with "data-"'}),id:N.string().optional(),data:N.unknown(),transient:N.boolean().optional()}),N.strictObject({type:N.literal("start-step")}),N.strictObject({type:N.literal("finish-step")}),N.strictObject({type:N.literal("start"),messageId:N.string().optional(),messageMetadata:N.unknown().optional()}),N.strictObject({type:N.literal("finish"),finishReason:N.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:N.unknown().optional()}),N.strictObject({type:N.literal("abort"),reason:N.string().optional()}),N.strictObject({type:N.literal("message-metadata"),messageMetadata:N.unknown()})])));var tr=_U({prefix:"aitxt",size:24});var d4=N.record(N.string(),mz.optional()),er=i5(()=>eJ(N.array(N.object({id:N.string(),role:N.enum(["system","user","assistant"]),metadata:N.unknown().optional(),parts:N.array(N.union([N.object({type:N.literal("text"),text:N.string(),state:N.enum(["streaming","done"]).optional(),providerMetadata:D$.optional()}),N.object({type:N.literal("reasoning"),text:N.string(),state:N.enum(["streaming","done"]).optional(),providerMetadata:D$.optional()}),N.object({type:N.literal("source-url"),sourceId:N.string(),url:N.string(),title:N.string().optional(),providerMetadata:D$.optional()}),N.object({type:N.literal("source-document"),sourceId:N.string(),mediaType:N.string(),title:N.string(),filename:N.string().optional(),providerMetadata:D$.optional()}),N.object({type:N.literal("file"),mediaType:N.string(),filename:N.string().optional(),url:N.string(),providerMetadata:D$.optional()}),N.object({type:N.literal("step-start")}),N.object({type:N.string().startsWith("data-"),id:N.string().optional(),data:N.unknown()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("input-streaming"),input:N.unknown().optional(),providerExecuted:N.boolean().optional(),callProviderMetadata:D$.optional(),output:N.never().optional(),errorText:N.never().optional(),approval:N.never().optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("input-available"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.never().optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("approval-requested"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.never().optional(),reason:N.never().optional()})}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("approval-responded"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.boolean(),reason:N.string().optional()})}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("output-available"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.unknown(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),resultProviderMetadata:D$.optional(),preliminary:N.boolean().optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("output-error"),input:N.unknown().optional(),rawInput:N.unknown().optional(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.string(),callProviderMetadata:D$.optional(),resultProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.literal("dynamic-tool"),toolName:N.string(),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("output-denied"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.literal(!1),reason:N.string().optional()})}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("input-streaming"),providerExecuted:N.boolean().optional(),callProviderMetadata:D$.optional(),input:N.unknown().optional(),output:N.never().optional(),errorText:N.never().optional(),approval:N.never().optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("input-available"),providerExecuted:N.boolean().optional(),input:N.unknown(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.never().optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("approval-requested"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.never().optional(),reason:N.never().optional()})}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("approval-responded"),input:N.unknown(),providerExecuted:N.boolean().optional(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.boolean(),reason:N.string().optional()})}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("output-available"),providerExecuted:N.boolean().optional(),input:N.unknown(),output:N.unknown(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),resultProviderMetadata:D$.optional(),preliminary:N.boolean().optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("output-error"),providerExecuted:N.boolean().optional(),input:N.unknown().optional(),rawInput:N.unknown().optional(),output:N.never().optional(),errorText:N.string(),callProviderMetadata:D$.optional(),resultProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.literal(!0),reason:N.string().optional()}).optional()}),N.object({type:N.string().startsWith("tool-"),toolCallId:N.string(),toolMetadata:d4.optional(),state:N.literal("output-denied"),providerExecuted:N.boolean().optional(),input:N.unknown(),output:N.never().optional(),errorText:N.never().optional(),callProviderMetadata:D$.optional(),approval:N.object({id:N.string(),approved:N.literal(!1),reason:N.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var Ut=_U({prefix:"aiobj",size:24});function Kv(w){return({url:X,abortSignal:J})=>Om({url:X,maxBytes:w==null?void 0:w.maxBytes,abortSignal:J})}var zt=_U({prefix:"aiobj",size:24});var Xt=Kv();var Sm="AI_NoSuchProviderError",Tm=`vercel.ai.error.${Sm}`,bm=Symbol.for(Tm),Cm;Cm=bm;var Yt=Kv();var km=class{constructor({api:w="/api/chat",credentials:X,headers:J,body:G,fetch:Y,prepareSendMessagesRequest:W,prepareReconnectToStreamRequest:q}){this.api=w,this.credentials=X,this.headers=J,this.body=G,this.fetch=Y,this.prepareSendMessagesRequest=W,this.prepareReconnectToStreamRequest=q}async sendMessages({abortSignal:w,...X}){var J,G,Y,W,q;let K=await y0(this.body),A=await y0(this.headers),j=await y0(this.credentials),E={...Pw(A),...Pw(X.headers)},M=await((J=this.prepareSendMessagesRequest)==null?void 0:J.call(this,{api:this.api,id:X.chatId,messages:X.messages,body:{...K,...X.body},headers:E,credentials:j,requestMetadata:X.metadata,trigger:X.trigger,messageId:X.messageId})),Z=(G=M==null?void 0:M.api)!=null?G:this.api,P=(M==null?void 0:M.headers)!==void 0?Pw(M.headers):E,f=(M==null?void 0:M.body)!==void 0?M.body:{...K,...X.body,id:X.chatId,messages:X.messages,trigger:X.trigger,messageId:X.messageId},c=(Y=M==null?void 0:M.credentials)!=null?Y:j,k=await((W=this.fetch)!=null?W:globalThis.fetch)(Z,{method:"POST",headers:{"Content-Type":"application/json",...P},body:JSON.stringify(f),credentials:c,signal:w});if(!k.ok)throw Error((q=await k.text())!=null?q:"Failed to fetch the chat response.");if(!k.body)throw Error("The response body is empty.");return this.processResponseStream(k.body)}async reconnectToStream(w){var X,J,G,Y,W;let q=await y0(this.body),K=await y0(this.headers),A=await y0(this.credentials),j={...Pw(K),...Pw(w.headers)},E=await((X=this.prepareReconnectToStreamRequest)==null?void 0:X.call(this,{api:this.api,id:w.chatId,body:{...q,...w.body},headers:j,credentials:A,requestMetadata:w.metadata})),M=(J=E==null?void 0:E.api)!=null?J:`${this.api}/${w.chatId}/stream`,Z=(E==null?void 0:E.headers)!==void 0?Pw(E.headers):j,P=(G=E==null?void 0:E.credentials)!=null?G:A,c=await((Y=this.fetch)!=null?Y:globalThis.fetch)(M,{method:"GET",headers:Z,credentials:P});if(c.status===204)return null;if(!c.ok)throw Error((W=await c.text())!=null?W:"Failed to fetch the chat response.");if(!c.body)throw Error("The response body is empty.");return this.processResponseStream(c.body)}},Dv=class extends km{constructor(w={}){super(w)}processResponseStream(w){return Gv({stream:w,schema:Zm}).pipeThrough(new TransformStream({async transform(X,J){if(!X.success)throw X.error;J.enqueue(X.value)}}))}};var k4=K6(C4(),1);function jv({children:w}){return k4.jsxDEV("section",{className:"web-chat-conversation",children:w},void 0,!1,void 0,this)}function Av({children:w}){return k4.jsxDEV("div",{className:"web-chat-conversation-content",children:w},void 0,!1,void 0,this)}function Fv({description:w,eyebrow:X,title:J}){return k4.jsxDEV("div",{className:"web-chat-empty-state",children:[k4.jsxDEV("svg",{className:"web-chat-empty-state-glyph",viewBox:"0 0 180 88","aria-hidden":"true",children:[k4.jsxDEV("path",{d:"M4 60 C 30 60, 40 30, 70 30 S 110 60, 140 50 S 174 30, 178 28"},void 0,!1,void 0,this),k4.jsxDEV("path",{d:"M70 30 C 78 22, 86 12, 96 10"},void 0,!1,void 0,this),k4.jsxDEV("path",{d:"M70 30 C 68 44, 80 60, 92 70"},void 0,!1,void 0,this),k4.jsxDEV("path",{d:"M120 56 C 128 64, 138 70, 152 72"},void 0,!1,void 0,this),k4.jsxDEV("circle",{cx:"96",cy:"10",r:"2.5"},void 0,!1,void 0,this),k4.jsxDEV("circle",{cx:"92",cy:"70",r:"2.5"},void 0,!1,void 0,this),k4.jsxDEV("circle",{cx:"178",cy:"28",r:"2.5"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),X?k4.jsxDEV("span",{className:"web-chat-empty-state-eyebrow",children:X},void 0,!1,void 0,this):null,k4.jsxDEV("h2",{children:J},void 0,!1,void 0,this),k4.jsxDEV("p",{children:w},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var w9=K6(S0(),1),k6=K6(C4(),1);function gm(w,X){if(typeof w!=="object"||w===null)return;return w[X]}function z9(w,X){let J=gm(w,X);return typeof J==="string"?J:void 0}function Vv({tools:w}){return k6.jsxDEV("details",{className:"web-chat-tool-group",children:[k6.jsxDEV("summary",{className:"web-chat-tool-group-header",children:[w.length," tool calls",k6.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k6.jsxDEV("div",{className:"web-chat-tool-group-body",children:w.map((X,J)=>k6.jsxDEV(gK,{data:X},J,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function gK({data:w}){let X=z9(w,"toolName")??z9(w,"name")??z9(w,"tool"),J=X?`tool · ${X}`:"tool result";return k6.jsxDEV("details",{className:"web-chat-data-part","data-kind":"tool-result",children:[k6.jsxDEV("summary",{className:"web-chat-data-part-header",children:[J,k6.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k6.jsxDEV("div",{className:"web-chat-data-part-body",children:k6.jsxDEV("pre",{children:JSON.stringify(w,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Ev({conversationId:w,data:X}){let J=z9(X,"title")??"Confirmation required",G=z9(X,"description"),[Y,W]=w9.useState(!1),[q,K]=w9.useState(null),[A,j]=w9.useState(null),[E,M]=w9.useState(null);async function Z(c){W(!0),M(null);try{let p=await fetch("/api/chat/confirm",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({id:w,confirmed:c})});if(!p.ok)throw Error(await p.text());K(await p.json()),j(c?"approved":"declined")}catch(p){M(p instanceof Error?p.message:"Confirmation failed")}finally{W(!1)}}let P=q!==null;return k6.jsxDEV("section",{className:"web-chat-confirmation","data-state":P?"resolved":"pending",role:"group","aria-label":J,children:[k6.jsxDEV("header",{className:"web-chat-confirmation-header",children:P?"confirmation resolved":"confirmation pending"},void 0,!1,void 0,this),k6.jsxDEV("div",{className:"web-chat-confirmation-body",children:[k6.jsxDEV("p",{className:"web-chat-confirmation-summary",children:G??J},void 0,!1,void 0,this),P?k6.jsxDEV("span",{className:"web-chat-confirmation-result",children:[A==="declined"?"Declined":"Approved",q.text?` · ${q.text}`:""]},void 0,!0,void 0,this):k6.jsxDEV("div",{className:"web-chat-confirmation-actions",children:[k6.jsxDEV("button",{type:"button","data-variant":"primary",disabled:Y,onClick:()=>void Z(!0),children:"Approve"},void 0,!1,void 0,this),k6.jsxDEV("button",{type:"button",disabled:Y,onClick:()=>void Z(!1),children:"Decline"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),E?k6.jsxDEV("p",{className:"web-chat-error",children:E},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Mv({data:w,type:X}){return k6.jsxDEV("details",{className:"web-chat-data-part",children:[k6.jsxDEV("summary",{className:"web-chat-data-part-header",children:[X,k6.jsxDEV("span",{className:"web-chat-data-part-chevron","aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),k6.jsxDEV("div",{className:"web-chat-data-part-body",children:k6.jsxDEV("pre",{children:JSON.stringify(w,null,2)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var vU=K6(C4(),1);function ym(w){let X=[],J=/```([^\n`]*)\n([\s\S]*?)```/g,G=0,Y;while((Y=J.exec(w))!==null){if(Y.index>G)X.push({type:"text",text:w.slice(G,Y.index)});let W=Y[1]?.trim();X.push({type:"code",language:W&&W.length>0?W:void 0,code:Y[2]??""}),G=Y.index+Y[0].length}if(G<w.length)X.push({type:"text",text:w.slice(G)});return X}function fm(w){return w.split(/\n{2,}/).map((X)=>X.trim()).filter((X)=>X.length>0).map((X,J)=>vU.jsxDEV("p",{className:"web-chat-message-response",children:X.split(`
|
|
304
|
+
`).map((G,Y)=>vU.jsxDEV("span",{children:[Y>0?vU.jsxDEV("br",{},void 0,!1,void 0,this):null,G]},Y,!0,void 0,this))},J,!1,void 0,this))}function Rv({children:w}){return vU.jsxDEV("div",{className:"web-chat-markdown-response",children:ym(w).map((X,J)=>{if(X.type==="code")return vU.jsxDEV("figure",{className:"web-chat-code-block",children:[X.language?vU.jsxDEV("figcaption",{children:X.language},void 0,!1,void 0,this):null,vU.jsxDEV("pre",{children:vU.jsxDEV("code",{children:X.code},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},J,!0,void 0,this);return fm(X.text)})},void 0,!1,void 0,this)}var X9=K6(C4(),1),hm={user:"You",assistant:"Brain",system:"System",data:"Data"};function Iv({children:w,from:X}){return X9.jsxDEV("article",{className:"web-chat-message","data-role":X,children:w},void 0,!1,void 0,this)}function _v({role:w,time:X}){return X9.jsxDEV("span",{className:"web-chat-message-header",children:[hm[w],X?X9.jsxDEV("time",{children:X},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)}function Pv({children:w}){return X9.jsxDEV("div",{className:"web-chat-message-bubble",children:w},void 0,!1,void 0,this)}var vv=K6(S0(),1),p4=K6(C4(),1);function Zv({children:w,onSubmit:X}){return p4.jsxDEV("form",{className:"web-chat-prompt-input",onSubmit:(J)=>{J.preventDefault(),X()},children:w},void 0,!1,void 0,this)}var Sv=vv.forwardRef(function(X,J){return p4.jsxDEV("textarea",{ref:J,className:"web-chat-prompt-textarea",...X},void 0,!1,void 0,this)});function Tv({children:w}){return p4.jsxDEV("div",{className:"web-chat-prompt-footer",children:w},void 0,!1,void 0,this)}function bv(){return p4.jsxDEV("span",{className:"web-chat-prompt-hint",children:[p4.jsxDEV("kbd",{children:"Enter"},void 0,!1,void 0,this)," to send · ",p4.jsxDEV("kbd",{children:"Shift"},void 0,!1,void 0,this),"+",p4.jsxDEV("kbd",{children:"Enter"},void 0,!1,void 0,this)," newline"]},void 0,!0,void 0,this)}function um(){return p4.jsxDEV("svg",{viewBox:"0 0 18 14",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:[p4.jsxDEV("path",{d:"M2 7h10M9 3c1.5 2 3 4 5 4-2 0-3.5 2-5 4",strokeLinecap:"round",strokeLinejoin:"round"},void 0,!1,void 0,this),p4.jsxDEV("circle",{cx:"2",cy:"7",r:"1.5",fill:"currentColor",stroke:"none"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Cv({disabled:w=!1,onStop:X,status:J}){if(J==="submitted"||J==="streaming")return p4.jsxDEV("button",{"aria-label":"Stop response",className:"web-chat-prompt-submit",type:"button",onClick:X,children:"Stop"},void 0,!1,void 0,this);return p4.jsxDEV("button",{"aria-label":"Send message",className:"web-chat-prompt-submit",type:"submit",disabled:w,children:["Send",p4.jsxDEV(um,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var A$=K6(C4(),1),o5="brain:web-chat:conversation-id",yK=86400000,kv=48;function hK(){return`web-${crypto.randomUUID()}`}function mm(){try{let w=localStorage.getItem(o5);if(w)return w;let X=hK();return localStorage.setItem(o5,X),X}catch{return hK()}}function cm(w){return{id:w.id,role:w.role,parts:[{type:"text",text:w.content}]}}function fK(w){if(typeof w!=="object"||w===null||!("data"in w))return;return w.data}function im(w){let X=[],J=[],G=()=>{if(J.length===0)return;X.push({kind:"tools",tools:J}),J=[]};for(let Y of w){if(Y.type==="data-tool-result"){J.push(fK(Y));continue}if(G(),Y.type==="text")X.push({kind:"text",text:Y.text});else if(Y.type==="data-confirmation")X.push({kind:"confirmation",data:fK(Y)});else if(Y.type.startsWith("data-"))X.push({kind:"generic",type:Y.type,data:fK(Y)})}return G(),X}function lm(w){return w==="submitted"||w==="streaming"}function nm(w){w.style.height="auto",w.style.height=`${w.scrollHeight}px`}function p5(w){requestAnimationFrame(()=>w?.focus())}function dm(w){return w.key==="Enter"&&!w.shiftKey&&!w.metaKey&&!w.ctrlKey&&!w.altKey}function pm(w){let X=w.trim().split(/\r?\n/,1)[0]??"";if(!X)return"New conversation";if(X.length<=kv)return X;return`${X.slice(0,kv-1).trimEnd()}…`}function om(w,X=new Date){let J=new Date(w);if(Number.isNaN(J.getTime()))return"—";let G=X.getTime()-J.getTime();if(G<yK&&J.getDate()===X.getDate())return J.toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit"});let Y=new Date(X.getTime()-yK);if(J.getDate()===Y.getDate())return"Yest";if(G<7*yK)return J.toLocaleDateString(void 0,{weekday:"short"});return J.toLocaleDateString(void 0,{day:"numeric",month:"short"})}function rm(w){if(w==="submitted")return"the rhizome is listening";if(w==="streaming")return"the rhizome is listening";if(w==="error")return"a thread broke mid-growth";return""}function xv(){let[w,X]=x4.useState(""),[J,G]=x4.useState(()=>mm()),[Y,W]=x4.useState([]),[q,K]=x4.useState([]),A=x4.useRef(null),j=x4.useRef(null),E=x4.useMemo(()=>new Dv({api:"/api/chat",credentials:"include"}),[]),M=x4.useMemo(()=>new u5({id:J,messages:q,transport:E}),[J,q,E]),{messages:Z,sendMessage:P,status:f,error:c,stop:p,clearError:k}=u_({chat:M});x4.useEffect(()=>{A.current?.scrollIntoView({block:"end",behavior:"smooth"})},[Z,f]),x4.useEffect(()=>{if(j.current)nm(j.current)},[w]),x4.useEffect(()=>{p5(j.current),C()},[]);async function C(){let a=await fetch("/api/chat/sessions",{credentials:"include"});if(!a.ok)return;let w$=await a.json();W(w$.sessions)}function R(a){let w$=new Date().toISOString(),e$={id:J,title:pm(a),lastActiveAt:w$};W((r)=>{let Q6=r.find((l6)=>l6.id===J),a$=Q6&&Q6.title!=="New conversation"?{...Q6,lastActiveAt:w$}:e$,u$=r.filter((l6)=>l6.id!==J);return[a$,...u$]})}async function s(a){let w$=await fetch(`/api/chat/messages?id=${encodeURIComponent(a)}`,{credentials:"include"});if(!w$.ok)return;let r=(await w$.json()).messages.map(cm);localStorage.setItem(o5,a),K(r),G(a),X(""),p5(j.current)}function G$(){let a=w.trim();if(!a||lm(f))return;R(a),X(""),P({text:a}).finally(()=>C()),p5(j.current)}function N$(){let a=hK();localStorage.setItem(o5,a),K([]),G(a),X(""),p5(j.current)}return A$.jsxDEV("div",{className:"web-chat-shell","data-web-chat-app":"true","data-web-chat-ui":"ai-elements-v0","data-conversation-id":J,children:[A$.jsxDEV("aside",{className:"web-chat-sessions","aria-label":"Sessions",children:[A$.jsxDEV("header",{className:"web-chat-sessions-header",children:[A$.jsxDEV("h2",{children:"Sessions"},void 0,!1,void 0,this),A$.jsxDEV("button",{className:"web-chat-sessions-new",type:"button","aria-label":"New conversation",onClick:N$,children:A$.jsxDEV("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.75","aria-hidden":"true",children:A$.jsxDEV("path",{d:"M8 3v10M3 8h10",strokeLinecap:"round"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.length===0?A$.jsxDEV("p",{className:"web-chat-sessions-list-empty",children:"No traces yet."},void 0,!1,void 0,this):A$.jsxDEV("ul",{className:"web-chat-sessions-list",role:"listbox",children:Y.map((a)=>A$.jsxDEV("li",{children:A$.jsxDEV("button",{className:"web-chat-session",type:"button",role:"option","aria-selected":a.id===J,"data-active":a.id===J?"true":"false",onClick:()=>void s(a.id),children:[A$.jsxDEV("span",{className:"web-chat-session-time",children:om(a.lastActiveAt)},void 0,!1,void 0,this),A$.jsxDEV("div",{className:"web-chat-session-body",children:A$.jsxDEV("h3",{className:"web-chat-session-title",children:a.title},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},a.id,!1,void 0,this))},void 0,!1,void 0,this),A$.jsxDEV("footer",{className:"web-chat-sessions-footer",children:A$.jsxDEV("span",{className:"web-chat-sessions-footer-id",children:"brain · anchor"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A$.jsxDEV("main",{className:"web-chat-app","aria-label":"Brain chat",children:[A$.jsxDEV("header",{className:"web-chat-header",children:[A$.jsxDEV("div",{children:[A$.jsxDEV("span",{className:"web-chat-header-eyebrow",children:["Anchor",Z.length>0?A$.jsxDEV(A$.Fragment,{children:[" · ",A$.jsxDEV("strong",{children:[Z.length," message",Z.length===1?"":"s"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this):null]},void 0,!0,void 0,this),A$.jsxDEV("h1",{children:["Brain ",A$.jsxDEV("em",{children:"Chat"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A$.jsxDEV("p",{children:"A field log for talking with the rhizome."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),A$.jsxDEV("button",{className:"web-chat-secondary-action",type:"button",onClick:N$,children:[A$.jsxDEV("svg",{viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5","aria-hidden":"true",children:A$.jsxDEV("path",{d:"M8 3v10M3 8h10",strokeLinecap:"round"},void 0,!1,void 0,this)},void 0,!1,void 0,this),"New"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),A$.jsxDEV(jv,{children:A$.jsxDEV(Av,{children:[Z.length===0?A$.jsxDEV(Fv,{eyebrow:"No traces yet",title:"Begin a field note.",description:"Ask the brain about entities, notes, prompts, or recent work — the thread grows from the first message."},void 0,!1,void 0,this):Z.map((a)=>A$.jsxDEV(Iv,{from:a.role,children:[A$.jsxDEV(_v,{role:a.role},void 0,!1,void 0,this),A$.jsxDEV(Pv,{children:im(a.parts).map((w$,e$)=>{if(w$.kind==="text")return A$.jsxDEV(Rv,{children:w$.text},e$,!1,void 0,this);if(w$.kind==="tools"){if(w$.tools.length===1)return A$.jsxDEV(gK,{data:w$.tools[0]},e$,!1,void 0,this);return A$.jsxDEV(Vv,{tools:w$.tools},e$,!1,void 0,this)}if(w$.kind==="confirmation")return A$.jsxDEV(Ev,{conversationId:J,data:w$.data},e$,!1,void 0,this);return A$.jsxDEV(Mv,{type:w$.type,data:w$.data},e$,!1,void 0,this)})},void 0,!1,void 0,this)]},a.id,!0,void 0,this)),A$.jsxDEV("div",{ref:A,"aria-hidden":"true"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),f!=="ready"?A$.jsxDEV("p",{className:"web-chat-status","data-status":f,children:[A$.jsxDEV("span",{className:"web-chat-status-rail","aria-hidden":"true"},void 0,!1,void 0,this),A$.jsxDEV("span",{className:"web-chat-status-phrase",children:rm(f)},void 0,!1,void 0,this),A$.jsxDEV("span",{className:"web-chat-status-meta",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,c?A$.jsxDEV("div",{className:"web-chat-error",role:"alert",children:[A$.jsxDEV("span",{className:"web-chat-error-tag",children:"[ signal lost ]"},void 0,!1,void 0,this),A$.jsxDEV("p",{children:c.message},void 0,!1,void 0,this),A$.jsxDEV("button",{type:"button",onClick:k,children:"Dismiss"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,A$.jsxDEV(Zv,{onSubmit:G$,children:[A$.jsxDEV("label",{htmlFor:"web-chat-input",children:"Message"},void 0,!1,void 0,this),A$.jsxDEV(Sv,{id:"web-chat-input",ref:j,value:w,placeholder:"Plant a question…",onInput:(a)=>X(a.currentTarget.value),onKeyDown:(a)=>{if(!dm(a))return;a.preventDefault(),G$()}},void 0,!1,void 0,this),A$.jsxDEV(Tv,{children:[A$.jsxDEV(bv,{},void 0,!1,void 0,this),A$.jsxDEV(Cv,{status:f,onStop:p,disabled:!w.trim()},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var fv=K6(C4(),1),gv=document.querySelector("[data-web-chat-root]");if(gv)yv.createRoot(gv).render(fv.jsxDEV(xv,{},void 0,!1,void 0,this));
|
|
305
|
+
|
|
306
|
+
//# debugId=2C1D6CCE760E8BDE64756E2164756E21
|