@chosengeneration/light-code 0.1.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/cli.js +65236 -3829
  2. package/dist/client/client.js +73 -55
  3. package/dist/client/guide/appearance-dark.svg +1 -0
  4. package/dist/client/guide/appearance-light.svg +1 -0
  5. package/dist/client/guide/approvals-dark.svg +1 -0
  6. package/dist/client/guide/approvals-light.svg +1 -0
  7. package/dist/client/guide/chat-dark.svg +1 -0
  8. package/dist/client/guide/chat-light.svg +1 -0
  9. package/dist/client/guide/expert-dark.svg +1 -0
  10. package/dist/client/guide/expert-light.svg +1 -0
  11. package/dist/client/guide/mcp-dark.svg +1 -0
  12. package/dist/client/guide/mcp-light.svg +1 -0
  13. package/dist/client/guide/network-dark.svg +1 -0
  14. package/dist/client/guide/network-light.svg +1 -0
  15. package/dist/client/guide/orientation-dark.svg +1 -0
  16. package/dist/client/guide/orientation-light.svg +1 -0
  17. package/dist/client/guide/privacy-dark.svg +1 -0
  18. package/dist/client/guide/privacy-light.svg +1 -0
  19. package/dist/client/guide/providers-dark.svg +1 -0
  20. package/dist/client/guide/providers-light.svg +1 -0
  21. package/dist/client/guide/python-dark.svg +1 -0
  22. package/dist/client/guide/python-light.svg +1 -0
  23. package/dist/client/guide/schedules-dark.svg +1 -0
  24. package/dist/client/guide/schedules-light.svg +1 -0
  25. package/dist/client/guide/search-dark.svg +1 -0
  26. package/dist/client/guide/search-light.svg +1 -0
  27. package/dist/client/guide/skills-dark.svg +1 -0
  28. package/dist/client/guide/skills-light.svg +1 -0
  29. package/dist/client/guide/tools-dark.svg +1 -0
  30. package/dist/client/guide/tools-light.svg +1 -0
  31. package/dist/server.js +64949 -3869
  32. package/package.json +14 -12
@@ -1,127 +1,145 @@
1
- "use strict";(()=>{var Fw=Object.create;var _d=Object.defineProperty;var Xw=Object.getOwnPropertyDescriptor;var Kw=Object.getOwnPropertyNames;var Qw=Object.getPrototypeOf,Ww=Object.prototype.hasOwnProperty;var bn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),In=(e,t)=>{for(var n in t)_d(e,n,{get:t[n],enumerable:!0})},e6=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Kw(t))!Ww.call(e,r)&&r!==n&&_d(e,r,{get:()=>t[r],enumerable:!(i=Xw(t,r))||i.enumerable});return e};var H=(e,t,n)=>(n=e!=null?Fw(Qw(e)):{},e6(t||!e||!e.__esModule?_d(n,"default",{value:e,enumerable:!0}):n,e));var tx=bn(Gl=>{"use strict";var t6=Symbol.for("react.transitional.element"),n6=Symbol.for("react.fragment");function ex(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:t6,type:e,key:i,ref:t!==void 0?t:null,props:n}}Gl.Fragment=n6;Gl.jsx=ex;Gl.jsxs=ex});var de=bn((_j,nx)=>{"use strict";nx.exports=tx()});var h0=bn(Y=>{"use strict";var Av=Symbol.for("react.transitional.element"),aD=Symbol.for("react.portal"),lD=Symbol.for("react.fragment"),uD=Symbol.for("react.strict_mode"),cD=Symbol.for("react.profiler"),sD=Symbol.for("react.consumer"),dD=Symbol.for("react.context"),fD=Symbol.for("react.forward_ref"),mD=Symbol.for("react.suspense"),pD=Symbol.for("react.memo"),d0=Symbol.for("react.lazy"),gD=Symbol.for("react.activity"),l0=Symbol.iterator;function vD(e){return e===null||typeof e!="object"?null:(e=l0&&e[l0]||e["@@iterator"],typeof e=="function"?e:null)}var f0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m0=Object.assign,p0={};function ao(e,t,n){this.props=e,this.context=t,this.refs=p0,this.updater=n||f0}ao.prototype.isReactComponent={};ao.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ao.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function g0(){}g0.prototype=ao.prototype;function Cv(e,t,n){this.props=e,this.context=t,this.refs=p0,this.updater=n||f0}var Nv=Cv.prototype=new g0;Nv.constructor=Cv;m0(Nv,ao.prototype);Nv.isPureReactComponent=!0;var u0=Array.isArray;function Ov(){}var we={H:null,A:null,T:null,S:null},v0=Object.prototype.hasOwnProperty;function Iv(e,t,n){var i=n.ref;return{$$typeof:Av,type:e,key:t,ref:i!==void 0?i:null,props:n}}function hD(e,t){return Iv(e.type,t,e.props)}function Zv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Av}function yD(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var c0=/\/+/g;function jv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yD(""+e.key):t.toString(36)}function bD(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ov,Ov):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function oo(e,t,n,i,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Av:case aD:a=!0;break;case d0:return a=e._init,oo(a(e._payload),t,n,i,r)}}if(a)return r=r(e),a=i===""?"."+jv(e,0):i,u0(r)?(n="",a!=null&&(n=a.replace(c0,"$&/")+"/"),oo(r,t,n,"",function(c){return c})):r!=null&&(Zv(r)&&(r=hD(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(c0,"$&/")+"/")+a)),t.push(r)),1;a=0;var l=i===""?".":i+":";if(u0(e))for(var u=0;u<e.length;u++)i=e[u],o=l+jv(i,u),a+=oo(i,t,n,o,r);else if(u=vD(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=l+jv(i,u++),a+=oo(i,t,n,o,r);else if(o==="object"){if(typeof e.then=="function")return oo(bD(e),t,n,i,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Nc(e,t,n){if(e==null)return e;var i=[],r=0;return oo(e,i,"","",function(o){return t.call(n,o,r++)}),i}function xD(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var s0=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},_D={map:Nc,forEach:function(e,t,n){Nc(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Nc(e,function(){t++}),t},toArray:function(e){return Nc(e,function(t){return t})||[]},only:function(e){if(!Zv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Y.Activity=gD;Y.Children=_D;Y.Component=ao;Y.Fragment=lD;Y.Profiler=cD;Y.PureComponent=Cv;Y.StrictMode=uD;Y.Suspense=mD;Y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=we;Y.__COMPILER_RUNTIME={__proto__:null,c:function(e){return we.H.useMemoCache(e)}};Y.cache=function(e){return function(){return e.apply(null,arguments)}};Y.cacheSignal=function(){return null};Y.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=m0({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!v0.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];i.children=a}return Iv(e.type,r,i)};Y.createContext=function(e){return e={$$typeof:dD,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:sD,_context:e},e};Y.createElement=function(e,t,n){var i,r={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)v0.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(r[i]=t[i]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(e&&e.defaultProps)for(i in a=e.defaultProps,a)r[i]===void 0&&(r[i]=a[i]);return Iv(e,o,r)};Y.createRef=function(){return{current:null}};Y.forwardRef=function(e){return{$$typeof:fD,render:e}};Y.isValidElement=Zv;Y.lazy=function(e){return{$$typeof:d0,_payload:{_status:-1,_result:e},_init:xD}};Y.memo=function(e,t){return{$$typeof:pD,type:e,compare:t===void 0?null:t}};Y.startTransition=function(e){var t=we.T,n={};we.T=n;try{var i=e(),r=we.S;r!==null&&r(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Ov,s0)}catch(o){s0(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),we.T=t}};Y.unstable_useCacheRefresh=function(){return we.H.useCacheRefresh()};Y.use=function(e){return we.H.use(e)};Y.useActionState=function(e,t,n){return we.H.useActionState(e,t,n)};Y.useCallback=function(e,t){return we.H.useCallback(e,t)};Y.useContext=function(e){return we.H.useContext(e)};Y.useDebugValue=function(){};Y.useDeferredValue=function(e,t){return we.H.useDeferredValue(e,t)};Y.useEffect=function(e,t){return we.H.useEffect(e,t)};Y.useEffectEvent=function(e){return we.H.useEffectEvent(e)};Y.useId=function(){return we.H.useId()};Y.useImperativeHandle=function(e,t,n){return we.H.useImperativeHandle(e,t,n)};Y.useInsertionEffect=function(e,t){return we.H.useInsertionEffect(e,t)};Y.useLayoutEffect=function(e,t){return we.H.useLayoutEffect(e,t)};Y.useMemo=function(e,t){return we.H.useMemo(e,t)};Y.useOptimistic=function(e,t){return we.H.useOptimistic(e,t)};Y.useReducer=function(e,t,n){return we.H.useReducer(e,t,n)};Y.useRef=function(e){return we.H.useRef(e)};Y.useState=function(e){return we.H.useState(e)};Y.useSyncExternalStore=function(e,t,n){return we.H.useSyncExternalStore(e,t,n)};Y.useTransition=function(){return we.H.useTransition()};Y.version="19.2.8"});var Ge=bn((MC,y0)=>{"use strict";y0.exports=h0()});var f$=bn(Ae=>{"use strict";function sh(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,r=e[i];if(0<Bc(r,t))e[i]=t,e[n]=r,n=i;else break e}}function Tn(e){return e.length===0?null:e[0]}function Pc(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,r=e.length,o=r>>>1;i<o;){var a=2*(i+1)-1,l=e[a],u=a+1,c=e[u];if(0>Bc(l,n))u<r&&0>Bc(c,l)?(e[i]=c,e[u]=n,i=u):(e[i]=l,e[a]=n,i=a);else if(u<r&&0>Bc(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function Bc(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}Ae.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(r$=performance,Ae.unstable_now=function(){return r$.now()}):(lh=Date,i$=lh.now(),Ae.unstable_now=function(){return lh.now()-i$});var r$,lh,i$,Pn=[],_r=[],qD=1,Wt=null,ft=3,dh=!1,qa=!1,Ha=!1,fh=!1,l$=typeof setTimeout=="function"?setTimeout:null,u$=typeof clearTimeout=="function"?clearTimeout:null,o$=typeof setImmediate<"u"?setImmediate:null;function Lc(e){for(var t=Tn(_r);t!==null;){if(t.callback===null)Pc(_r);else if(t.startTime<=e)Pc(_r),t.sortIndex=t.expirationTime,sh(Pn,t);else break;t=Tn(_r)}}function mh(e){if(Ha=!1,Lc(e),!qa)if(Tn(Pn)!==null)qa=!0,vo||(vo=!0,go());else{var t=Tn(_r);t!==null&&ph(mh,t.startTime-e)}}var vo=!1,Ga=-1,c$=5,s$=-1;function d$(){return fh?!0:!(Ae.unstable_now()-s$<c$)}function uh(){if(fh=!1,vo){var e=Ae.unstable_now();s$=e;var t=!0;try{e:{qa=!1,Ha&&(Ha=!1,u$(Ga),Ga=-1),dh=!0;var n=ft;try{t:{for(Lc(e),Wt=Tn(Pn);Wt!==null&&!(Wt.expirationTime>e&&d$());){var i=Wt.callback;if(typeof i=="function"){Wt.callback=null,ft=Wt.priorityLevel;var r=i(Wt.expirationTime<=e);if(e=Ae.unstable_now(),typeof r=="function"){Wt.callback=r,Lc(e),t=!0;break t}Wt===Tn(Pn)&&Pc(Pn),Lc(e)}else Pc(Pn);Wt=Tn(Pn)}if(Wt!==null)t=!0;else{var o=Tn(_r);o!==null&&ph(mh,o.startTime-e),t=!1}}break e}finally{Wt=null,ft=n,dh=!1}t=void 0}}finally{t?go():vo=!1}}}var go;typeof o$=="function"?go=function(){o$(uh)}:typeof MessageChannel<"u"?(ch=new MessageChannel,a$=ch.port2,ch.port1.onmessage=uh,go=function(){a$.postMessage(null)}):go=function(){l$(uh,0)};var ch,a$;function ph(e,t){Ga=l$(function(){e(Ae.unstable_now())},t)}Ae.unstable_IdlePriority=5;Ae.unstable_ImmediatePriority=1;Ae.unstable_LowPriority=4;Ae.unstable_NormalPriority=3;Ae.unstable_Profiling=null;Ae.unstable_UserBlockingPriority=2;Ae.unstable_cancelCallback=function(e){e.callback=null};Ae.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):c$=0<e?Math.floor(1e3/e):5};Ae.unstable_getCurrentPriorityLevel=function(){return ft};Ae.unstable_next=function(e){switch(ft){case 1:case 2:case 3:var t=3;break;default:t=ft}var n=ft;ft=t;try{return e()}finally{ft=n}};Ae.unstable_requestPaint=function(){fh=!0};Ae.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=ft;ft=e;try{return t()}finally{ft=n}};Ae.unstable_scheduleCallback=function(e,t,n){var i=Ae.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=n+r,e={id:qD++,callback:t,priorityLevel:e,startTime:n,expirationTime:r,sortIndex:-1},n>i?(e.sortIndex=n,sh(_r,e),Tn(Pn)===null&&e===Tn(_r)&&(Ha?(u$(Ga),Ga=-1):Ha=!0,ph(mh,n-i))):(e.sortIndex=r,sh(Pn,e),qa||dh||(qa=!0,vo||(vo=!0,go()))),e};Ae.unstable_shouldYield=d$;Ae.unstable_wrapCallback=function(e){var t=ft;return function(){var n=ft;ft=t;try{return e.apply(this,arguments)}finally{ft=n}}}});var p$=bn((YI,m$)=>{"use strict";m$.exports=f$()});var v$=bn(bt=>{"use strict";var HD=Ge();function g$(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Sr(){}var yt={d:{f:Sr,r:function(){throw Error(g$(522))},D:Sr,C:Sr,L:Sr,m:Sr,X:Sr,S:Sr,M:Sr},p:0,findDOMNode:null},GD=Symbol.for("react.portal");function JD(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:GD,key:i==null?null:""+i,children:e,containerInfo:t,implementation:n}}var Ja=HD.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Vc(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=yt;bt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(g$(299));return JD(e,t,null,n)};bt.flushSync=function(e){var t=Ja.T,n=yt.p;try{if(Ja.T=null,yt.p=2,e)return e()}finally{Ja.T=t,yt.p=n,yt.d.f()}};bt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,yt.d.C(e,t))};bt.prefetchDNS=function(e){typeof e=="string"&&yt.d.D(e)};bt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Vc(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?yt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:o}):n==="script"&&yt.d.X(e,{crossOrigin:i,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};bt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Vc(t.as,t.crossOrigin);yt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&yt.d.M(e)};bt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Vc(n,t.crossOrigin);yt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};bt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Vc(t.as,t.crossOrigin);yt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else yt.d.m(e)};bt.requestFormReset=function(e){yt.d.r(e)};bt.unstable_batchedUpdates=function(e,t){return e(t)};bt.useFormState=function(e,t,n){return Ja.H.useFormState(e,t,n)};bt.useFormStatus=function(){return Ja.H.useHostTransitionStatus()};bt.version="19.2.8"});var b$=bn((XI,y$)=>{"use strict";function h$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(h$)}catch(e){console.error(e)}}h$(),y$.exports=v$()});var j4=bn(pd=>{"use strict";var Qe=p$(),H1=Ge(),YD=b$();function k(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function G1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Al(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function J1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Y1(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x$(e){if(Al(e)!==e)throw Error(k(188))}function FD(e){var t=e.alternate;if(!t){if(t=Al(e),t===null)throw Error(k(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var o=r.alternate;if(o===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===n)return x$(r),e;if(o===i)return x$(r),t;o=o.sibling}throw Error(k(188))}if(n.return!==i.return)n=r,i=o;else{for(var a=!1,l=r.child;l;){if(l===n){a=!0,n=r,i=o;break}if(l===i){a=!0,i=r,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,i=r;break}if(l===i){a=!0,i=o,n=r;break}l=l.sibling}if(!a)throw Error(k(189))}}if(n.alternate!==i)throw Error(k(190))}if(n.tag!==3)throw Error(k(188));return n.stateNode.current===n?e:t}function F1(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=F1(e),t!==null)return t;e=e.sibling}return null}var Ue=Object.assign,XD=Symbol.for("react.element"),qc=Symbol.for("react.transitional.element"),tl=Symbol.for("react.portal"),So=Symbol.for("react.fragment"),X1=Symbol.for("react.strict_mode"),Yh=Symbol.for("react.profiler"),K1=Symbol.for("react.consumer"),Xn=Symbol.for("react.context"),Vy=Symbol.for("react.forward_ref"),Fh=Symbol.for("react.suspense"),Xh=Symbol.for("react.suspense_list"),qy=Symbol.for("react.memo"),$r=Symbol.for("react.lazy"),Kh=Symbol.for("react.activity"),KD=Symbol.for("react.memo_cache_sentinel"),_$=Symbol.iterator;function Ya(e){return e===null||typeof e!="object"?null:(e=_$&&e[_$]||e["@@iterator"],typeof e=="function"?e:null)}var QD=Symbol.for("react.client.reference");function Qh(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===QD?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case So:return"Fragment";case Yh:return"Profiler";case X1:return"StrictMode";case Fh:return"Suspense";case Xh:return"SuspenseList";case Kh:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case tl:return"Portal";case Xn:return e.displayName||"Context";case K1:return(e._context.displayName||"Context")+".Consumer";case Vy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qy:return t=e.displayName||null,t!==null?t:Qh(e.type)||"Memo";case $r:t=e._payload,e=e._init;try{return Qh(e(t))}catch{}}return null}var nl=Array.isArray,V=H1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=YD.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,di={pending:!1,data:null,method:null,action:null},Wh=[],$o=-1;function On(e){return{current:e}}function tt(e){0>$o||(e.current=Wh[$o],Wh[$o]=null,$o--)}function ze(e,t){$o++,Wh[$o]=e.current,e.current=t}var jn=On(null),bl=On(null),Cr=On(null),$s=On(null);function ks(e,t){switch(ze(Cr,t),ze(bl,e),ze(jn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?D1(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=D1(t),e=h4(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(jn),ze(jn,e)}function Lo(){tt(jn),tt(bl),tt(Cr)}function ey(e){e.memoizedState!==null&&ze($s,e);var t=jn.current,n=h4(t,e.type);t!==n&&(ze(bl,e),ze(jn,n))}function zs(e){bl.current===e&&(tt(jn),tt(bl)),$s.current===e&&(tt($s),Ul._currentValue=di)}var gh,S$;function li(e){if(gh===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gh=t&&t[1]||"",S$=-1<n.stack.indexOf(`
1
+ "use strict";(()=>{var UC=Object.create;var jf=Object.defineProperty;var OC=Object.getOwnPropertyDescriptor;var NC=Object.getOwnPropertyNames;var RC=Object.getPrototypeOf,MC=Object.prototype.hasOwnProperty;var Xn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gi=(e,t)=>{for(var n in t)jf(e,n,{get:t[n],enumerable:!0})},ZC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of NC(t))!MC.call(e,i)&&i!==n&&jf(e,i,{get:()=>t[i],enumerable:!(r=OC(t,i))||r.enumerable});return e};var P=(e,t,n)=>(n=e!=null?UC(RC(e)):{},ZC(t||!e||!e.__esModule?jf(n,"default",{value:e,enumerable:!0}):n,e));var G1=Xn(Lc=>{"use strict";var BC=Symbol.for("react.transitional.element"),LC=Symbol.for("react.fragment");function H1(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:BC,type:e,key:r,ref:t!==void 0?t:null,props:n}}Lc.Fragment=LC;Lc.jsx=H1;Lc.jsxs=H1});var ie=Xn((BO,Y1)=>{"use strict";Y1.exports=G1()});var u_=Xn(ae=>{"use strict";var Hv=Symbol.for("react.transitional.element"),KI=Symbol.for("react.portal"),QI=Symbol.for("react.fragment"),WI=Symbol.for("react.strict_mode"),eA=Symbol.for("react.profiler"),tA=Symbol.for("react.consumer"),nA=Symbol.for("react.context"),iA=Symbol.for("react.forward_ref"),rA=Symbol.for("react.suspense"),oA=Symbol.for("react.memo"),r_=Symbol.for("react.lazy"),aA=Symbol.for("react.activity"),e_=Symbol.iterator;function lA(e){return e===null||typeof e!="object"?null:(e=e_&&e[e_]||e["@@iterator"],typeof e=="function"?e:null)}var o_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},a_=Object.assign,l_={};function qo(e,t,n){this.props=e,this.context=t,this.refs=l_,this.updater=n||o_}qo.prototype.isReactComponent={};qo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};qo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function c_(){}c_.prototype=qo.prototype;function Gv(e,t,n){this.props=e,this.context=t,this.refs=l_,this.updater=n||o_}var Yv=Gv.prototype=new c_;Yv.constructor=Gv;a_(Yv,qo.prototype);Yv.isPureReactComponent=!0;var t_=Array.isArray;function qv(){}var Ye={H:null,A:null,T:null,S:null},s_=Object.prototype.hasOwnProperty;function Jv(e,t,n){var r=n.ref;return{$$typeof:Hv,type:e,key:t,ref:r!==void 0?r:null,props:n}}function cA(e,t){return Jv(e.type,t,e.props)}function Xv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hv}function sA(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var n_=/\/+/g;function Fv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sA(""+e.key):t.toString(36)}function uA(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(qv,qv):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Fo(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Hv:case KI:a=!0;break;case r_:return a=e._init,Fo(a(e._payload),t,n,r,i)}}if(a)return i=i(e),a=r===""?"."+Fv(e,0):r,t_(i)?(n="",a!=null&&(n=a.replace(n_,"$&/")+"/"),Fo(i,t,n,"",function(u){return u})):i!=null&&(Xv(i)&&(i=cA(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(n_,"$&/")+"/")+a)),t.push(i)),1;a=0;var l=r===""?".":r+":";if(t_(e))for(var c=0;c<e.length;c++)r=e[c],o=l+Fv(r,c),a+=Fo(r,t,n,o,i);else if(c=lA(e),typeof c=="function")for(e=c.call(e),c=0;!(r=e.next()).done;)r=r.value,o=l+Fv(r,c++),a+=Fo(r,t,n,o,i);else if(o==="object"){if(typeof e.then=="function")return Fo(uA(e),t,n,r,i);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function Au(e,t,n){if(e==null)return e;var r=[],i=0;return Fo(e,r,"","",function(o){return t.call(n,o,i++)}),r}function dA(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var i_=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},fA={map:Au,forEach:function(e,t,n){Au(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Au(e,function(){t++}),t},toArray:function(e){return Au(e,function(t){return t})||[]},only:function(e){if(!Xv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Activity=aA;ae.Children=fA;ae.Component=qo;ae.Fragment=QI;ae.Profiler=eA;ae.PureComponent=Gv;ae.StrictMode=WI;ae.Suspense=rA;ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ye;ae.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ye.H.useMemoCache(e)}};ae.cache=function(e){return function(){return e.apply(null,arguments)}};ae.cacheSignal=function(){return null};ae.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=a_({},e.props),i=e.key;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)!s_.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(r[o]=t[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];r.children=a}return Jv(e.type,i,r)};ae.createContext=function(e){return e={$$typeof:nA,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:tA,_context:e},e};ae.createElement=function(e,t,n){var r,i={},o=null;if(t!=null)for(r in t.key!==void 0&&(o=""+t.key),t)s_.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return Jv(e,o,i)};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:iA,render:e}};ae.isValidElement=Xv;ae.lazy=function(e){return{$$typeof:r_,_payload:{_status:-1,_result:e},_init:dA}};ae.memo=function(e,t){return{$$typeof:oA,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ye.T,n={};Ye.T=n;try{var r=e(),i=Ye.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(qv,i_)}catch(o){i_(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ye.T=t}};ae.unstable_useCacheRefresh=function(){return Ye.H.useCacheRefresh()};ae.use=function(e){return Ye.H.use(e)};ae.useActionState=function(e,t,n){return Ye.H.useActionState(e,t,n)};ae.useCallback=function(e,t){return Ye.H.useCallback(e,t)};ae.useContext=function(e){return Ye.H.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e,t){return Ye.H.useDeferredValue(e,t)};ae.useEffect=function(e,t){return Ye.H.useEffect(e,t)};ae.useEffectEvent=function(e){return Ye.H.useEffectEvent(e)};ae.useId=function(){return Ye.H.useId()};ae.useImperativeHandle=function(e,t,n){return Ye.H.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return Ye.H.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return Ye.H.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return Ye.H.useMemo(e,t)};ae.useOptimistic=function(e,t){return Ye.H.useOptimistic(e,t)};ae.useReducer=function(e,t,n){return Ye.H.useReducer(e,t,n)};ae.useRef=function(e){return Ye.H.useRef(e)};ae.useState=function(e){return Ye.H.useState(e)};ae.useSyncExternalStore=function(e,t,n){return Ye.H.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return Ye.H.useTransition()};ae.version="19.2.8"});var he=Xn((bM,d_)=>{"use strict";d_.exports=u_()});var ew=Xn(et=>{"use strict";function Zy(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<Hu(i,t))e[r]=t,e[n]=i,n=r;else break e}}function ci(e){return e.length===0?null:e[0]}function Yu(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>Hu(l,n))c<i&&0>Hu(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else if(c<i&&0>Hu(u,n))e[r]=u,e[c]=n,r=c;else break e}}return t}function Hu(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}et.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(q$=performance,et.unstable_now=function(){return q$.now()}):(Ny=Date,H$=Ny.now(),et.unstable_now=function(){return Ny.now()-H$});var q$,Ny,H$,_i=[],or=[],sj=1,jn=null,Rt=3,By=!1,Zl=!1,Bl=!1,Ly=!1,J$=typeof setTimeout=="function"?setTimeout:null,X$=typeof clearTimeout=="function"?clearTimeout:null,G$=typeof setImmediate<"u"?setImmediate:null;function Gu(e){for(var t=ci(or);t!==null;){if(t.callback===null)Yu(or);else if(t.startTime<=e)Yu(or),t.sortIndex=t.expirationTime,Zy(_i,t);else break;t=ci(or)}}function Py(e){if(Bl=!1,Gu(e),!Zl)if(ci(_i)!==null)Zl=!0,aa||(aa=!0,oa());else{var t=ci(or);t!==null&&Vy(Py,t.startTime-e)}}var aa=!1,Ll=-1,K$=5,Q$=-1;function W$(){return Ly?!0:!(et.unstable_now()-Q$<K$)}function Ry(){if(Ly=!1,aa){var e=et.unstable_now();Q$=e;var t=!0;try{e:{Zl=!1,Bl&&(Bl=!1,X$(Ll),Ll=-1),By=!0;var n=Rt;try{t:{for(Gu(e),jn=ci(_i);jn!==null&&!(jn.expirationTime>e&&W$());){var r=jn.callback;if(typeof r=="function"){jn.callback=null,Rt=jn.priorityLevel;var i=r(jn.expirationTime<=e);if(e=et.unstable_now(),typeof i=="function"){jn.callback=i,Gu(e),t=!0;break t}jn===ci(_i)&&Yu(_i),Gu(e)}else Yu(_i);jn=ci(_i)}if(jn!==null)t=!0;else{var o=ci(or);o!==null&&Vy(Py,o.startTime-e),t=!1}}break e}finally{jn=null,Rt=n,By=!1}t=void 0}}finally{t?oa():aa=!1}}}var oa;typeof G$=="function"?oa=function(){G$(Ry)}:typeof MessageChannel<"u"?(My=new MessageChannel,Y$=My.port2,My.port1.onmessage=Ry,oa=function(){Y$.postMessage(null)}):oa=function(){J$(Ry,0)};var My,Y$;function Vy(e,t){Ll=J$(function(){e(et.unstable_now())},t)}et.unstable_IdlePriority=5;et.unstable_ImmediatePriority=1;et.unstable_LowPriority=4;et.unstable_NormalPriority=3;et.unstable_Profiling=null;et.unstable_UserBlockingPriority=2;et.unstable_cancelCallback=function(e){e.callback=null};et.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K$=0<e?Math.floor(1e3/e):5};et.unstable_getCurrentPriorityLevel=function(){return Rt};et.unstable_next=function(e){switch(Rt){case 1:case 2:case 3:var t=3;break;default:t=Rt}var n=Rt;Rt=t;try{return e()}finally{Rt=n}};et.unstable_requestPaint=function(){Ly=!0};et.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Rt;Rt=e;try{return t()}finally{Rt=n}};et.unstable_scheduleCallback=function(e,t,n){var r=et.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:sj++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,Zy(or,e),ci(_i)===null&&e===ci(or)&&(Bl?(X$(Ll),Ll=-1):Bl=!0,Vy(Py,n-r))):(e.sortIndex=i,Zy(_i,e),Zl||By||(Zl=!0,aa||(aa=!0,oa()))),e};et.unstable_shouldYield=W$;et.unstable_wrapCallback=function(e){var t=Rt;return function(){var n=Rt;Rt=t;try{return e.apply(this,arguments)}finally{Rt=n}}}});var nw=Xn((pB,tw)=>{"use strict";tw.exports=ew()});var rw=Xn(Yt=>{"use strict";var uj=he();function iw(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ar(){}var Gt={d:{f:ar,r:function(){throw Error(iw(522))},D:ar,C:ar,L:ar,m:ar,X:ar,S:ar,M:ar},p:0,findDOMNode:null},dj=Symbol.for("react.portal");function fj(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:dj,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Pl=uj.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ju(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gt;Yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(iw(299));return fj(e,t,null,n)};Yt.flushSync=function(e){var t=Pl.T,n=Gt.p;try{if(Pl.T=null,Gt.p=2,e)return e()}finally{Pl.T=t,Gt.p=n,Gt.d.f()}};Yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Gt.d.C(e,t))};Yt.prefetchDNS=function(e){typeof e=="string"&&Gt.d.D(e)};Yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Ju(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Gt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&Gt.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Ju(t.as,t.crossOrigin);Gt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Gt.d.M(e)};Yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Ju(n,t.crossOrigin);Gt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Ju(t.as,t.crossOrigin);Gt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Gt.d.m(e)};Yt.requestFormReset=function(e){Gt.d.r(e)};Yt.unstable_batchedUpdates=function(e,t){return e(t)};Yt.useFormState=function(e,t,n){return Pl.H.useFormState(e,t,n)};Yt.useFormStatus=function(){return Pl.H.useHostTransitionStatus()};Yt.version="19.2.8"});var lw=Xn((gB,aw)=>{"use strict";function ow(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ow)}catch(e){console.error(e)}}ow(),aw.exports=rw()});var b2=Xn(Sf=>{"use strict";var xt=nw(),jz=he(),mj=lw();function E(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Uz(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Oz(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Nz(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function cw(e){if(Cc(e)!==e)throw Error(E(188))}function pj(e){var t=e.alternate;if(!t){if(t=Cc(e),t===null)throw Error(E(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return cw(i),e;if(o===r)return cw(i),t;o=o.sibling}throw Error(E(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(E(189))}}if(n.alternate!==r)throw Error(E(190))}if(n.tag!==3)throw Error(E(188));return n.stateNode.current===n?e:t}function Rz(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Rz(e),t!==null)return t;e=e.sibling}return null}var Qe=Object.assign,hj=Symbol.for("react.element"),Xu=Symbol.for("react.transitional.element"),Xl=Symbol.for("react.portal"),fa=Symbol.for("react.fragment"),Mz=Symbol.for("react.strict_mode"),_b=Symbol.for("react.profiler"),Zz=Symbol.for("react.consumer"),Ii=Symbol.for("react.context"),yx=Symbol.for("react.forward_ref"),$b=Symbol.for("react.suspense"),wb=Symbol.for("react.suspense_list"),bx=Symbol.for("react.memo"),lr=Symbol.for("react.lazy"),zb=Symbol.for("react.activity"),gj=Symbol.for("react.memo_cache_sentinel"),sw=Symbol.iterator;function Vl(e){return e===null||typeof e!="object"?null:(e=sw&&e[sw]||e["@@iterator"],typeof e=="function"?e:null)}var vj=Symbol.for("react.client.reference");function Tb(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===vj?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fa:return"Fragment";case _b:return"Profiler";case Mz:return"StrictMode";case $b:return"Suspense";case wb:return"SuspenseList";case zb:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Xl:return"Portal";case Ii:return e.displayName||"Context";case Zz:return(e._context.displayName||"Context")+".Consumer";case yx:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bx:return t=e.displayName||null,t!==null?t:Tb(e.type)||"Memo";case lr:t=e._payload,e=e._init;try{return Tb(e(t))}catch{}}return null}var Kl=Array.isArray,ne=jz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=mj.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Xr={pending:!1,data:null,method:null,action:null},Cb=[],ma=-1;function mi(e){return{current:e}}function $t(e){0>ma||(e.current=Cb[ma],Cb[ma]=null,ma--)}function Ge(e,t){ma++,Cb[ma]=e.current,e.current=t}var fi=mi(null),pc=mi(null),yr=mi(null),Ed=mi(null);function Dd(e,t){switch(Ge(yr,t),Ge(pc,e),Ge(fi,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gz(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=gz(t),e=o2(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$t(fi),Ge(fi,e)}function Ia(){$t(fi),$t(pc),$t(yr)}function Eb(e){e.memoizedState!==null&&Ge(Ed,e);var t=fi.current,n=o2(t,e.type);t!==n&&(Ge(pc,e),Ge(fi,n))}function Id(e){pc.current===e&&($t(fi),$t(pc)),Ed.current===e&&($t(Ed),wc._currentValue=Xr)}var Fy,uw;function Hr(e){if(Fy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Fy=t&&t[1]||"",uw=-1<n.stack.indexOf(`
2
2
  at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
- `+gh+e+S$}var vh=!1;function hh(e,t){if(!e||vh)return"";vh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(m){var f=m}Reflect.construct(e,[],d)}else{try{d.call()}catch(m){f=m}e.call(d.prototype)}}else{try{throw Error()}catch(m){f=m}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(m){if(m&&f&&typeof m.stack=="string")return[m.stack,f.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=i.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var u=a.split(`
4
- `),c=l.split(`
5
- `);for(r=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;if(i===u.length||r===c.length)for(i=u.length-1,r=c.length-1;1<=i&&0<=r&&u[i]!==c[r];)r--;for(;1<=i&&0<=r;i--,r--)if(u[i]!==c[r]){if(i!==1||r!==1)do if(i--,r--,0>r||u[i]!==c[r]){var s=`
6
- `+u[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=i&&0<=r);break}}}finally{vh=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?li(n):""}function WD(e,t){switch(e.tag){case 26:case 27:case 5:return li(e.type);case 16:return li("Lazy");case 13:return e.child!==t&&t!==null?li("Suspense Fallback"):li("Suspense");case 19:return li("SuspenseList");case 0:case 15:return hh(e.type,!1);case 11:return hh(e.type.render,!1);case 1:return hh(e.type,!0);case 31:return li("Activity");default:return""}}function $$(e){try{var t="",n=null;do t+=WD(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
7
- Error generating stack: `+i.message+`
8
- `+i.stack}}var ty=Object.prototype.hasOwnProperty,Hy=Qe.unstable_scheduleCallback,yh=Qe.unstable_cancelCallback,eE=Qe.unstable_shouldYield,tE=Qe.unstable_requestPaint,Bt=Qe.unstable_now,nE=Qe.unstable_getCurrentPriorityLevel,Q1=Qe.unstable_ImmediatePriority,W1=Qe.unstable_UserBlockingPriority,ws=Qe.unstable_NormalPriority,rE=Qe.unstable_LowPriority,ek=Qe.unstable_IdlePriority,iE=Qe.log,oE=Qe.unstable_setDisableYieldValue,Cl=null,Lt=null;function Er(e){if(typeof iE=="function"&&oE(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(Cl,e)}catch{}}var Pt=Math.clz32?Math.clz32:uE,aE=Math.log,lE=Math.LN2;function uE(e){return e>>>=0,e===0?32:31-(aE(e)/lE|0)|0}var Hc=256,Gc=262144,Jc=4194304;function ui(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Qs(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=i&134217727;return l!==0?(i=l&~o,i!==0?r=ui(i):(a&=l,a!==0?r=ui(a):n||(n=l&~e,n!==0&&(r=ui(n))))):(l=i&~o,l!==0?r=ui(l):a!==0?r=ui(a):n||(n=i&~e,n!==0&&(r=ui(n)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:r}function Nl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function cE(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function tk(){var e=Jc;return Jc<<=1,(Jc&62914560)===0&&(Jc=4194304),e}function bh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Il(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sE(e,t,n,i,r,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=a&~n;0<n;){var s=31-Pt(n),d=1<<s;l[s]=0,u[s]=-1;var f=c[s];if(f!==null)for(c[s]=null,s=0;s<f.length;s++){var m=f[s];m!==null&&(m.lane&=-536870913)}n&=~d}i!==0&&nk(e,i,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function nk(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Pt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function rk(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Pt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function ik(e,t){var n=t&-t;return n=(n&42)!==0?1:Gy(n),(n&(e.suspendedLanes|t))!==0?0:n}function Gy(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jy(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ok(){var e=ue.p;return e!==0?e:(e=window.event,e===void 0?32:D4(e.type))}function k$(e,t){var n=ue.p;try{return ue.p=e,t()}finally{ue.p=n}}var Jr=Math.random().toString(36).slice(2),lt="__reactFiber$"+Jr,jt="__reactProps$"+Jr,Qo="__reactContainer$"+Jr,ny="__reactEvents$"+Jr,dE="__reactListeners$"+Jr,fE="__reactHandles$"+Jr,z$="__reactResources$"+Jr,Zl="__reactMarker$"+Jr;function Yy(e){delete e[lt],delete e[jt],delete e[ny],delete e[dE],delete e[fE]}function ko(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qo]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=A1(e);e!==null;){if(n=e[lt])return n;e=A1(e)}return t}e=n,n=e.parentNode}return null}function Wo(e){if(e=e[lt]||e[Qo]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function rl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(k(33))}function Co(e){var t=e[z$];return t||(t=e[z$]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Zl]=!0}var ak=new Set,lk={};function _i(e,t){Po(e,t),Po(e+"Capture",t)}function Po(e,t){for(lk[e]=t,e=0;e<t.length;e++)ak.add(t[e])}var mE=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]*$"),w$={},T$={};function pE(e){return ty.call(T$,e)?!0:ty.call(w$,e)?!1:mE.test(e)?T$[e]=!0:(w$[e]=!0,!1)}function us(e,t,n){if(pE(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Yc(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Vn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gE(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ry(e){if(!e._valueTracker){var t=uk(e)?"checked":"value";e._valueTracker=gE(e,t,""+e[t])}}function ck(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=uk(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Ts(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var vE=/[\n"\\]/g;function on(e){return e.replace(vE,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function iy(e,t,n,i,r,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tn(t)):e.value!==""+tn(t)&&(e.value=""+tn(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?oy(e,a,tn(t)):n!=null?oy(e,a,tn(n)):i!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+tn(l):e.removeAttribute("name")}function sk(e,t,n,i,r,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){ry(e);return}n=n!=null?""+tn(n):"",t=t!=null?""+tn(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=l?e.checked:!!i,e.defaultChecked=!!i,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),ry(e)}function oy(e,t,n){t==="number"&&Ts(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function No(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+tn(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function dk(e,t,n){if(t!=null&&(t=""+tn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+tn(n):""}function fk(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(k(92));if(nl(i)){if(1<i.length)throw Error(k(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=tn(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),ry(e)}function Vo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hE=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(" "));function D$(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||hE.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function mk(e,t,n){if(t!=null&&typeof t!="object")throw Error(k(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&D$(e,r,i)}else for(var o in t)t.hasOwnProperty(o)&&D$(e,o,t[o])}function Fy(e){if(e.indexOf("-")===-1)return!1;switch(e){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}}var yE=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"]]),bE=/^[\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;function cs(e){return bE.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Kn(){}var ay=null;function Xy(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,Io=null;function E$(e){var t=Wo(e);if(t&&(e=t.stateNode)){var n=e[jt]||null;e:switch(e=t.stateNode,t.type){case"input":if(iy(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+on(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[jt]||null;if(!r)throw Error(k(90));iy(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&ck(i)}break e;case"textarea":dk(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&No(e,!!n.multiple,t,!1)}}}var xh=!1;function pk(e,t,n){if(xh)return e(t,n);xh=!0;try{var i=e(t);return i}finally{if(xh=!1,(zo!==null||Io!==null)&&(sd(),zo&&(t=zo,e=Io,Io=zo=null,E$(t),e)))for(t=0;t<e.length;t++)E$(e[t])}}function xl(e,t){var n=e.stateNode;if(n===null)return null;var i=n[jt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(k(231,t,typeof n));return n}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ly=!1;if(nr)try{ho={},Object.defineProperty(ho,"passive",{get:function(){ly=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{ly=!1}var ho,Ur=null,Ky=null,ss=null;function gk(){if(ss)return ss;var e,t=Ky,n=t.length,i,r="value"in Ur?Ur.value:Ur.textContent,o=r.length;for(e=0;e<n&&t[e]===r[e];e++);var a=n-e;for(i=1;i<=a&&t[n-i]===r[o-i];i++);return ss=r.slice(e,1<i?1-i:void 0)}function ds(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fc(){return!0}function U$(){return!1}function Ot(e){function t(n,i,r,o,a){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Fc:U$,this.isPropagationStopped=U$,this}return Ue(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Fc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Fc)},persist:function(){},isPersistent:Fc}),t}var Si={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ws=Ot(Si),Ml=Ue({},Si,{view:0,detail:0}),xE=Ot(Ml),_h,Sh,Fa,ed=Ue({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qy,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fa&&(Fa&&e.type==="mousemove"?(_h=e.screenX-Fa.screenX,Sh=e.screenY-Fa.screenY):Sh=_h=0,Fa=e),_h)},movementY:function(e){return"movementY"in e?e.movementY:Sh}}),j$=Ot(ed),_E=Ue({},ed,{dataTransfer:0}),SE=Ot(_E),$E=Ue({},Ml,{relatedTarget:0}),$h=Ot($E),kE=Ue({},Si,{animationName:0,elapsedTime:0,pseudoElement:0}),zE=Ot(kE),wE=Ue({},Si,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),TE=Ot(wE),DE=Ue({},Si,{data:0}),O$=Ot(DE),EE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={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"},jE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jE[e])?!!t[e]:!1}function Qy(){return OE}var AE=Ue({},Ml,{key:function(e){if(e.key){var t=EE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ds(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qy,charCode:function(e){return e.type==="keypress"?ds(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ds(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),CE=Ot(AE),NE=Ue({},ed,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),A$=Ot(NE),IE=Ue({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qy}),ZE=Ot(IE),ME=Ue({},Si,{propertyName:0,elapsedTime:0,pseudoElement:0}),RE=Ot(ME),BE=Ue({},ed,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),LE=Ot(BE),PE=Ue({},Si,{newState:0,oldState:0}),VE=Ot(PE),qE=[9,13,27,32],Wy=nr&&"CompositionEvent"in window,al=null;nr&&"documentMode"in document&&(al=document.documentMode);var HE=nr&&"TextEvent"in window&&!al,vk=nr&&(!Wy||al&&8<al&&11>=al),C$=" ",N$=!1;function hk(e,t){switch(e){case"keyup":return qE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wo=!1;function GE(e,t){switch(e){case"compositionend":return yk(t);case"keypress":return t.which!==32?null:(N$=!0,C$);case"textInput":return e=t.data,e===C$&&N$?null:e;default:return null}}function JE(e,t){if(wo)return e==="compositionend"||!Wy&&hk(e,t)?(e=gk(),ss=Ky=Ur=null,wo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vk&&t.locale!=="ko"?null:t.data;default:return null}}var YE={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};function I$(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!YE[e.type]:t==="textarea"}function bk(e,t,n,i){zo?Io?Io.push(i):Io=[i]:zo=i,t=Hs(t,"onChange"),0<t.length&&(n=new Ws("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var ll=null,_l=null;function FE(e){p4(e,0)}function td(e){var t=rl(e);if(ck(t))return e}function Z$(e,t){if(e==="change")return t}var xk=!1;nr&&(nr?(Kc="oninput"in document,Kc||(kh=document.createElement("div"),kh.setAttribute("oninput","return;"),Kc=typeof kh.oninput=="function"),Xc=Kc):Xc=!1,xk=Xc&&(!document.documentMode||9<document.documentMode));var Xc,Kc,kh;function M$(){ll&&(ll.detachEvent("onpropertychange",_k),_l=ll=null)}function _k(e){if(e.propertyName==="value"&&td(_l)){var t=[];bk(t,_l,e,Xy(e)),pk(FE,t)}}function XE(e,t,n){e==="focusin"?(M$(),ll=t,_l=n,ll.attachEvent("onpropertychange",_k)):e==="focusout"&&M$()}function KE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return td(_l)}function QE(e,t){if(e==="click")return td(t)}function WE(e,t){if(e==="input"||e==="change")return td(t)}function eU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qt=typeof Object.is=="function"?Object.is:eU;function Sl(e,t){if(qt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!ty.call(t,r)||!qt(e[r],t[r]))return!1}return!0}function R$(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function B$(e,t){var n=R$(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=R$(n)}}function Sk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $k(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ts(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ts(e.document)}return t}function eb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tU=nr&&"documentMode"in document&&11>=document.documentMode,To=null,uy=null,ul=null,cy=!1;function L$(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cy||To==null||To!==Ts(i)||(i=To,"selectionStart"in i&&eb(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ul&&Sl(ul,i)||(ul=i,i=Hs(uy,"onSelect"),0<i.length&&(t=new Ws("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=To)))}function ai(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Do={animationend:ai("Animation","AnimationEnd"),animationiteration:ai("Animation","AnimationIteration"),animationstart:ai("Animation","AnimationStart"),transitionrun:ai("Transition","TransitionRun"),transitionstart:ai("Transition","TransitionStart"),transitioncancel:ai("Transition","TransitionCancel"),transitionend:ai("Transition","TransitionEnd")},zh={},kk={};nr&&(kk=document.createElement("div").style,"AnimationEvent"in window||(delete Do.animationend.animation,delete Do.animationiteration.animation,delete Do.animationstart.animation),"TransitionEvent"in window||delete Do.transitionend.transition);function $i(e){if(zh[e])return zh[e];if(!Do[e])return e;var t=Do[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in kk)return zh[e]=t[n];return e}var zk=$i("animationend"),wk=$i("animationiteration"),Tk=$i("animationstart"),nU=$i("transitionrun"),rU=$i("transitionstart"),iU=$i("transitioncancel"),Dk=$i("transitionend"),Ek=new Map,sy="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(" ");sy.push("scrollEnd");function hn(e,t){Ek.set(e,t),_i(t,[e])}var Ds=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},en=[],Eo=0,tb=0;function nd(){for(var e=Eo,t=tb=Eo=0;t<e;){var n=en[t];en[t++]=null;var i=en[t];en[t++]=null;var r=en[t];en[t++]=null;var o=en[t];if(en[t++]=null,i!==null&&r!==null){var a=i.pending;a===null?r.next=r:(r.next=a.next,a.next=r),i.pending=r}o!==0&&Uk(n,r,o)}}function rd(e,t,n,i){en[Eo++]=e,en[Eo++]=t,en[Eo++]=n,en[Eo++]=i,tb|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function nb(e,t,n,i){return rd(e,t,n,i),Es(e)}function ki(e,t){return rd(e,null,null,t),Es(e)}function Uk(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Pt(n),e=o.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),o):null}function Es(e){if(50<hl)throw hl=0,jy=null,Error(k(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Uo={};function oU(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,n,i){return new oU(e,t,n,i)}function rb(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Wn(e,t){var n=e.alternate;return n===null?(n=Mt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function jk(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fs(e,t,n,i,r,o){var a=0;if(i=e,typeof e=="function")rb(e)&&(a=1);else if(typeof e=="string")a=uj(e,n,jn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Kh:return e=Mt(31,n,t,r),e.elementType=Kh,e.lanes=o,e;case So:return fi(n.children,r,o,t);case X1:a=8,r|=24;break;case Yh:return e=Mt(12,n,t,r|2),e.elementType=Yh,e.lanes=o,e;case Fh:return e=Mt(13,n,t,r),e.elementType=Fh,e.lanes=o,e;case Xh:return e=Mt(19,n,t,r),e.elementType=Xh,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xn:a=10;break e;case K1:a=9;break e;case Vy:a=11;break e;case qy:a=14;break e;case $r:a=16,i=null;break e}a=29,n=Error(k(130,e===null?"null":typeof e,"")),i=null}return t=Mt(a,n,t,r),t.elementType=e,t.type=i,t.lanes=o,t}function fi(e,t,n,i){return e=Mt(7,e,i,t),e.lanes=n,e}function wh(e,t,n){return e=Mt(6,e,null,t),e.lanes=n,e}function Ok(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function Th(e,t,n){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var P$=new WeakMap;function an(e,t){if(typeof e=="object"&&e!==null){var n=P$.get(e);return n!==void 0?n:(t={value:e,source:t,stack:$$(t)},P$.set(e,t),t)}return{value:e,source:t,stack:$$(t)}}var jo=[],Oo=0,Us=null,$l=0,nn=[],rn=0,Vr=null,Dn=1,En="";function Yn(e,t){jo[Oo++]=$l,jo[Oo++]=Us,Us=e,$l=t}function Ak(e,t,n){nn[rn++]=Dn,nn[rn++]=En,nn[rn++]=Vr,Vr=e;var i=Dn;e=En;var r=32-Pt(i)-1;i&=~(1<<r),n+=1;var o=32-Pt(t)+r;if(30<o){var a=r-r%5;o=(i&(1<<a)-1).toString(32),i>>=a,r-=a,Dn=1<<32-Pt(t)+r|n<<r|i,En=o+e}else Dn=1<<o|n<<r|i,En=e}function ib(e){e.return!==null&&(Yn(e,1),Ak(e,1,0))}function ob(e){for(;e===Us;)Us=jo[--Oo],jo[Oo]=null,$l=jo[--Oo],jo[Oo]=null;for(;e===Vr;)Vr=nn[--rn],nn[rn]=null,En=nn[--rn],nn[rn]=null,Dn=nn[--rn],nn[rn]=null}function Ck(e,t){nn[rn++]=Dn,nn[rn++]=En,nn[rn++]=Vr,Dn=t.id,En=t.overflow,Vr=e}var ut=null,Ee=null,oe=!1,Nr=null,ln=!1,dy=Error(k(519));function qr(e){var t=Error(k(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw kl(an(t,e)),dy}function V$(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[lt]=e,t[jt]=i,n){case"dialog":ne("cancel",t),ne("close",t);break;case"iframe":case"object":case"embed":ne("load",t);break;case"video":case"audio":for(n=0;n<Dl.length;n++)ne(Dl[n],t);break;case"source":ne("error",t);break;case"img":case"image":case"link":ne("error",t),ne("load",t);break;case"details":ne("toggle",t);break;case"input":ne("invalid",t),sk(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ne("invalid",t);break;case"textarea":ne("invalid",t),fk(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||v4(t.textContent,n)?(i.popover!=null&&(ne("beforetoggle",t),ne("toggle",t)),i.onScroll!=null&&ne("scroll",t),i.onScrollEnd!=null&&ne("scrollend",t),i.onClick!=null&&(t.onclick=Kn),t=!0):t=!1,t||qr(e,!0)}function q$(e){for(ut=e.return;ut;)switch(ut.tag){case 5:case 31:case 13:ln=!1;return;case 27:case 3:ln=!0;return;default:ut=ut.return}}function yo(e){if(e!==ut)return!1;if(!oe)return q$(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Iy(e.type,e.memoizedProps)),n=!n),n&&Ee&&qr(e),q$(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));Ee=O1(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(317));Ee=O1(e)}else t===27?(t=Ee,Yr(e.type)?(e=By,By=null,Ee=e):Ee=t):Ee=ut?cn(e.stateNode.nextSibling):null;return!0}function vi(){Ee=ut=null,oe=!1}function Dh(){var e=Nr;return e!==null&&(Et===null?Et=e:Et.push.apply(Et,e),Nr=null),e}function kl(e){Nr===null?Nr=[e]:Nr.push(e)}var fy=On(null),zi=null,Qn=null;function zr(e,t,n){ze(fy,t._currentValue),t._currentValue=n}function er(e){e._currentValue=fy.current,tt(fy)}function my(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function py(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var a=r.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=r;for(var u=0;u<t.length;u++)if(l.context===t[u]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),my(o.return,n,e),i||(a=null);break e}o=l.next}}else if(r.tag===18){if(a=r.return,a===null)throw Error(k(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),my(a,n,e),a=null}else a=r.child;if(a!==null)a.return=r;else for(a=r;a!==null;){if(a===e){a=null;break}if(r=a.sibling,r!==null){r.return=a.return,a=r;break}a=a.return}r=a}}function ea(e,t,n,i){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var a=r.alternate;if(a===null)throw Error(k(387));if(a=a.memoizedProps,a!==null){var l=r.type;qt(r.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(r===$s.current){if(a=r.alternate,a===null)throw Error(k(387));a.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ul):e=[Ul])}r=r.return}e!==null&&py(t,e,n,i),t.flags|=262144}function js(e){for(e=e.firstContext;e!==null;){if(!qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function hi(e){zi=e,Qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Nk(zi,e)}function Qc(e,t){return zi===null&&hi(e),Nk(e,t)}function Nk(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Qn===null){if(e===null)throw Error(k(308));Qn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Qn=Qn.next=t;return n}var aU=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lU=Qe.unstable_scheduleCallback,uU=Qe.unstable_NormalPriority,Fe={$$typeof:Xn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ab(){return{controller:new aU,data:new Map,refCount:0}}function Rl(e){e.refCount--,e.refCount===0&&lU(uU,function(){e.controller.abort()})}var cl=null,gy=0,qo=0,Zo=null;function cU(e,t){if(cl===null){var n=cl=[];gy=0,qo=jb(),Zo={status:"pending",value:void 0,then:function(i){n.push(i)}}}return gy++,t.then(H$,H$),t}function H$(){if(--gy===0&&cl!==null){Zo!==null&&(Zo.status="fulfilled");var e=cl;cl=null,qo=0,Zo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function sU(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var G$=V.S;V.S=function(e,t){Fz=Bt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&cU(e,t),G$!==null&&G$(e,t)};var mi=On(null);function lb(){var e=mi.current;return e!==null?e:_e.pooledCache}function ms(e,t){t===null?ze(mi,mi.current):ze(mi,t.pool)}function Ik(){var e=lb();return e===null?null:{parent:Fe._currentValue,pool:e}}var ta=Error(k(460)),ub=Error(k(474)),id=Error(k(542)),Os={then:function(){}};function J$(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zk(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Kn,Kn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,F$(e),e;default:if(typeof t.status=="string")t.then(Kn,Kn);else{if(e=_e,e!==null&&100<e.shellSuspendCounter)throw Error(k(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,F$(e),e}throw pi=t,ta}}function ci(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(pi=n,ta):n}}var pi=null;function Y$(){if(pi===null)throw Error(k(459));var e=pi;return pi=null,e}function F$(e){if(e===ta||e===id)throw Error(k(483))}var Mo=null,zl=0;function Wc(e){var t=zl;return zl+=1,Mo===null&&(Mo=[]),Zk(Mo,e,t)}function Xa(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function es(e,t){throw t.$$typeof===XD?Error(k(525)):(e=Object.prototype.toString.call(t),Error(k(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mk(e){function t(v,g){if(e){var h=v.deletions;h===null?(v.deletions=[g],v.flags|=16):h.push(g)}}function n(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function i(v){for(var g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function r(v,g){return v=Wn(v,g),v.index=0,v.sibling=null,v}function o(v,g,h){return v.index=h,e?(h=v.alternate,h!==null?(h=h.index,h<g?(v.flags|=67108866,g):h):(v.flags|=67108866,g)):(v.flags|=1048576,g)}function a(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function l(v,g,h,b){return g===null||g.tag!==6?(g=wh(h,v.mode,b),g.return=v,g):(g=r(g,h),g.return=v,g)}function u(v,g,h,b){var j=h.type;return j===So?s(v,g,h.props.children,b,h.key):g!==null&&(g.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===$r&&ci(j)===g.type)?(g=r(g,h.props),Xa(g,h),g.return=v,g):(g=fs(h.type,h.key,h.props,null,v.mode,b),Xa(g,h),g.return=v,g)}function c(v,g,h,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==h.containerInfo||g.stateNode.implementation!==h.implementation?(g=Th(h,v.mode,b),g.return=v,g):(g=r(g,h.children||[]),g.return=v,g)}function s(v,g,h,b,j){return g===null||g.tag!==7?(g=fi(h,v.mode,b,j),g.return=v,g):(g=r(g,h),g.return=v,g)}function d(v,g,h){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=wh(""+g,v.mode,h),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case qc:return h=fs(g.type,g.key,g.props,null,v.mode,h),Xa(h,g),h.return=v,h;case tl:return g=Th(g,v.mode,h),g.return=v,g;case $r:return g=ci(g),d(v,g,h)}if(nl(g)||Ya(g))return g=fi(g,v.mode,h,null),g.return=v,g;if(typeof g.then=="function")return d(v,Wc(g),h);if(g.$$typeof===Xn)return d(v,Qc(v,g),h);es(v,g)}return null}function f(v,g,h,b){var j=g!==null?g.key:null;if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return j!==null?null:l(v,g,""+h,b);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case qc:return h.key===j?u(v,g,h,b):null;case tl:return h.key===j?c(v,g,h,b):null;case $r:return h=ci(h),f(v,g,h,b)}if(nl(h)||Ya(h))return j!==null?null:s(v,g,h,b,null);if(typeof h.then=="function")return f(v,g,Wc(h),b);if(h.$$typeof===Xn)return f(v,g,Qc(v,h),b);es(v,h)}return null}function m(v,g,h,b,j){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return v=v.get(h)||null,l(g,v,""+b,j);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case qc:return v=v.get(b.key===null?h:b.key)||null,u(g,v,b,j);case tl:return v=v.get(b.key===null?h:b.key)||null,c(g,v,b,j);case $r:return b=ci(b),m(v,g,h,b,j)}if(nl(b)||Ya(b))return v=v.get(h)||null,s(g,v,b,j,null);if(typeof b.then=="function")return m(v,g,h,Wc(b),j);if(b.$$typeof===Xn)return m(v,g,h,Qc(g,b),j);es(g,b)}return null}function S(v,g,h,b){for(var j=null,E=null,x=g,N=g=0,R=null;x!==null&&N<h.length;N++){x.index>N?(R=x,x=null):R=x.sibling;var X=f(v,x,h[N],b);if(X===null){x===null&&(x=R);break}e&&x&&X.alternate===null&&t(v,x),g=o(X,g,N),E===null?j=X:E.sibling=X,E=X,x=R}if(N===h.length)return n(v,x),oe&&Yn(v,N),j;if(x===null){for(;N<h.length;N++)x=d(v,h[N],b),x!==null&&(g=o(x,g,N),E===null?j=x:E.sibling=x,E=x);return oe&&Yn(v,N),j}for(x=i(x);N<h.length;N++)R=m(x,v,N,h[N],b),R!==null&&(e&&R.alternate!==null&&x.delete(R.key===null?N:R.key),g=o(R,g,N),E===null?j=R:E.sibling=R,E=R);return e&&x.forEach(function(Ve){return t(v,Ve)}),oe&&Yn(v,N),j}function $(v,g,h,b){if(h==null)throw Error(k(151));for(var j=null,E=null,x=g,N=g=0,R=null,X=h.next();x!==null&&!X.done;N++,X=h.next()){x.index>N?(R=x,x=null):R=x.sibling;var Ve=f(v,x,X.value,b);if(Ve===null){x===null&&(x=R);break}e&&x&&Ve.alternate===null&&t(v,x),g=o(Ve,g,N),E===null?j=Ve:E.sibling=Ve,E=Ve,x=R}if(X.done)return n(v,x),oe&&Yn(v,N),j;if(x===null){for(;!X.done;N++,X=h.next())X=d(v,X.value,b),X!==null&&(g=o(X,g,N),E===null?j=X:E.sibling=X,E=X);return oe&&Yn(v,N),j}for(x=i(x);!X.done;N++,X=h.next())X=m(x,v,N,X.value,b),X!==null&&(e&&X.alternate!==null&&x.delete(X.key===null?N:X.key),g=o(X,g,N),E===null?j=X:E.sibling=X,E=X);return e&&x.forEach(function(ur){return t(v,ur)}),oe&&Yn(v,N),j}function C(v,g,h,b){if(typeof h=="object"&&h!==null&&h.type===So&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case qc:e:{for(var j=h.key;g!==null;){if(g.key===j){if(j=h.type,j===So){if(g.tag===7){n(v,g.sibling),b=r(g,h.props.children),b.return=v,v=b;break e}}else if(g.elementType===j||typeof j=="object"&&j!==null&&j.$$typeof===$r&&ci(j)===g.type){n(v,g.sibling),b=r(g,h.props),Xa(b,h),b.return=v,v=b;break e}n(v,g);break}else t(v,g);g=g.sibling}h.type===So?(b=fi(h.props.children,v.mode,b,h.key),b.return=v,v=b):(b=fs(h.type,h.key,h.props,null,v.mode,b),Xa(b,h),b.return=v,v=b)}return a(v);case tl:e:{for(j=h.key;g!==null;){if(g.key===j)if(g.tag===4&&g.stateNode.containerInfo===h.containerInfo&&g.stateNode.implementation===h.implementation){n(v,g.sibling),b=r(g,h.children||[]),b.return=v,v=b;break e}else{n(v,g);break}else t(v,g);g=g.sibling}b=Th(h,v.mode,b),b.return=v,v=b}return a(v);case $r:return h=ci(h),C(v,g,h,b)}if(nl(h))return S(v,g,h,b);if(Ya(h)){if(j=Ya(h),typeof j!="function")throw Error(k(150));return h=j.call(h),$(v,g,h,b)}if(typeof h.then=="function")return C(v,g,Wc(h),b);if(h.$$typeof===Xn)return C(v,g,Qc(v,h),b);es(v,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,g!==null&&g.tag===6?(n(v,g.sibling),b=r(g,h),b.return=v,v=b):(n(v,g),b=wh(h,v.mode,b),b.return=v,v=b),a(v)):n(v,g)}return function(v,g,h,b){try{zl=0;var j=C(v,g,h,b);return Mo=null,j}catch(x){if(x===ta||x===id)throw x;var E=Mt(29,x,null,v.mode);return E.lanes=b,E.return=v,E}}}var yi=Mk(!0),Rk=Mk(!1),kr=!1;function cb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vy(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ir(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(le&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=Es(e),Uk(e,null,n),t}return rd(e,i,t,n),Es(e)}function sl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,rk(e,n)}}function Eh(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?r=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?r=o=t:o=o.next=t}else r=o=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var hy=!1;function dl(){if(hy){var e=Zo;if(e!==null)throw e}}function fl(e,t,n,i){hy=!1;var r=e.updateQueue;kr=!1;var o=r.firstBaseUpdate,a=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,c=u.next;u.next=null,a===null?o=c:a.next=c,a=u;var s=e.alternate;s!==null&&(s=s.updateQueue,l=s.lastBaseUpdate,l!==a&&(l===null?s.firstBaseUpdate=c:l.next=c,s.lastBaseUpdate=u))}if(o!==null){var d=r.baseState;a=0,s=c=u=null,l=o;do{var f=l.lane&-536870913,m=f!==l.lane;if(m?(ie&f)===f:(i&f)===f){f!==0&&f===qo&&(hy=!0),s!==null&&(s=s.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var S=e,$=l;f=t;var C=n;switch($.tag){case 1:if(S=$.payload,typeof S=="function"){d=S.call(C,d,f);break e}d=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=$.payload,f=typeof S=="function"?S.call(C,d,f):S,f==null)break e;d=Ue({},d,f);break e;case 2:kr=!0}}f=l.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=r.callbacks,m===null?r.callbacks=[f]:m.push(f))}else m={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},s===null?(c=s=m,u=d):s=s.next=m,a|=f;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;m=l,l=m.next,m.next=null,r.lastBaseUpdate=m,r.shared.pending=null}}while(!0);s===null&&(u=d),r.baseState=u,r.firstBaseUpdate=c,r.lastBaseUpdate=s,o===null&&(r.shared.lanes=0),Gr|=a,e.lanes=a,e.memoizedState=d}}function Bk(e,t){if(typeof e!="function")throw Error(k(191,e));e.call(t)}function Lk(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Bk(n[e],t)}var Ho=On(null),As=On(0);function X$(e,t){e=ar,ze(As,e),ze(Ho,t),ar=e|t.baseLanes}function yy(){ze(As,ar),ze(Ho,Ho.current)}function sb(){ar=As.current,tt(Ho),tt(As)}var Ht=On(null),un=null;function wr(e){var t=e.alternate;ze(qe,qe.current&1),ze(Ht,e),un===null&&(t===null||Ho.current!==null||t.memoizedState!==null)&&(un=e)}function by(e){ze(qe,qe.current),ze(Ht,e),un===null&&(un=e)}function Pk(e){e.tag===22?(ze(qe,qe.current),ze(Ht,e),un===null&&(un=e)):Tr(e)}function Tr(){ze(qe,qe.current),ze(Ht,Ht.current)}function Zt(e){tt(Ht),un===e&&(un=null),tt(qe)}var qe=On(0);function Cs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||My(n)||Ry(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var rr=0,Q=null,be=null,Je=null,Ns=!1,Ro=!1,bi=!1,Is=0,wl=0,Bo=null,dU=0;function Le(){throw Error(k(321))}function db(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qt(e[n],t[n]))return!1;return!0}function fb(e,t,n,i,r,o){return rr=o,Q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?bz:$b,bi=!1,o=n(i,r),bi=!1,Ro&&(o=qk(t,n,i,r)),Vk(e),o}function Vk(e){V.H=Tl;var t=be!==null&&be.next!==null;if(rr=0,Je=be=Q=null,Ns=!1,wl=0,Bo=null,t)throw Error(k(300));e===null||Xe||(e=e.dependencies,e!==null&&js(e)&&(Xe=!0))}function qk(e,t,n,i){Q=e;var r=0;do{if(Ro&&(Bo=null),wl=0,Ro=!1,25<=r)throw Error(k(301));if(r+=1,Je=be=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=xz,o=t(n,i)}while(Ro);return o}function fU(){var e=V.H,t=e.useState()[0];return t=typeof t.then=="function"?Bl(t):t,e=e.useState()[0],(be!==null?be.memoizedState:null)!==e&&(Q.flags|=1024),t}function mb(){var e=Is!==0;return Is=0,e}function pb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function gb(e){if(Ns){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ns=!1}rr=0,Je=be=Q=null,Ro=!1,wl=Is=0,Bo=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Q.memoizedState=Je=e:Je=Je.next=e,Je}function He(){if(be===null){var e=Q.alternate;e=e!==null?e.memoizedState:null}else e=be.next;var t=Je===null?Q.memoizedState:Je.next;if(t!==null)Je=t,be=e;else{if(e===null)throw Q.alternate===null?Error(k(467)):Error(k(310));be=e,e={memoizedState:be.memoizedState,baseState:be.baseState,baseQueue:be.baseQueue,queue:be.queue,next:null},Je===null?Q.memoizedState=Je=e:Je=Je.next=e}return Je}function od(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bl(e){var t=wl;return wl+=1,Bo===null&&(Bo=[]),e=Zk(Bo,e,t),t=Q,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?bz:$b),e}function ad(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bl(e);if(e.$$typeof===Xn)return ct(e)}throw Error(k(438,String(e)))}function vb(e){var t=null,n=Q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=Q.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=od(),Q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=KD;return t.index++,n}function ir(e,t){return typeof t=="function"?t(e):t}function ps(e){var t=He();return hb(t,be,e)}function hb(e,t,n){var i=e.queue;if(i===null)throw Error(k(311));i.lastRenderedReducer=n;var r=e.baseQueue,o=i.pending;if(o!==null){if(r!==null){var a=r.next;r.next=o.next,o.next=a}t.baseQueue=r=o,i.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var l=a=null,u=null,c=t,s=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(ie&d)===d:(rr&d)===d){var f=c.revertLane;if(f===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===qo&&(s=!0);else if((rr&f)===f){c=c.next,f===qo&&(s=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=d,a=o):u=u.next=d,Q.lanes|=f,Gr|=f;d=c.action,bi&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(l=u=f,a=o):u=u.next=f,Q.lanes|=d,Gr|=d;c=c.next}while(c!==null&&c!==t);if(u===null?a=o:u.next=l,!qt(o,e.memoizedState)&&(Xe=!0,s&&(n=Zo,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=u,i.lastRenderedState=o}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Uh(e){var t=He(),n=t.queue;if(n===null)throw Error(k(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,o=t.memoizedState;if(r!==null){n.pending=null;var a=r=r.next;do o=e(o,a.action),a=a.next;while(a!==r);qt(o,t.memoizedState)||(Xe=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Hk(e,t,n){var i=Q,r=He(),o=oe;if(o){if(n===void 0)throw Error(k(407));n=n()}else n=t();var a=!qt((be||r).memoizedState,n);if(a&&(r.memoizedState=n,Xe=!0),r=r.queue,yb(Yk.bind(null,i,r,e),[e]),r.getSnapshot!==t||a||Je!==null&&Je.memoizedState.tag&1){if(i.flags|=2048,Go(9,{destroy:void 0},Jk.bind(null,i,r,n,t),null),_e===null)throw Error(k(349));o||(rr&127)!==0||Gk(i,t,n)}return n}function Gk(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Q.updateQueue,t===null?(t=od(),Q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jk(e,t,n,i){t.value=n,t.getSnapshot=i,Fk(t)&&Xk(e)}function Yk(e,t,n){return n(function(){Fk(t)&&Xk(e)})}function Fk(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qt(e,n)}catch{return!0}}function Xk(e){var t=ki(e,2);t!==null&&Ut(t,e,2)}function xy(e){var t=xt();if(typeof e=="function"){var n=e;if(e=n(),bi){Er(!0);try{n()}finally{Er(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:e},t}function Kk(e,t,n,i){return e.baseState=n,hb(e,be,typeof i=="function"?i:ir)}function mU(e,t,n,i,r){if(ud(e))throw Error(k(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};V.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,Qk(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Qk(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var o=V.T,a={};V.T=a;try{var l=n(r,i),u=V.S;u!==null&&u(a,l),K$(e,t,l)}catch(c){_y(e,t,c)}finally{o!==null&&a.types!==null&&(o.types=a.types),V.T=o}}else try{o=n(r,i),K$(e,t,o)}catch(c){_y(e,t,c)}}function K$(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Q$(e,t,i)},function(i){return _y(e,t,i)}):Q$(e,t,n)}function Q$(e,t,n){t.status="fulfilled",t.value=n,Wk(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qk(e,n)))}function _y(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Wk(t),t=t.next;while(t!==i)}e.action=null}function Wk(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ez(e,t){return t}function W$(e,t){if(oe){var n=_e.formState;if(n!==null){e:{var i=Q;if(oe){if(Ee){t:{for(var r=Ee,o=ln;r.nodeType!==8;){if(!o){r=null;break t}if(r=cn(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){Ee=cn(r.nextSibling),i=r.data==="F!";break e}}qr(i)}i=!1}i&&(t=n[0])}}return n=xt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ez,lastRenderedState:t},n.queue=i,n=vz.bind(null,Q,i),i.dispatch=n,i=xy(!1),o=Sb.bind(null,Q,!1,i.queue),i=xt(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=mU.bind(null,Q,r,o,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function e1(e){var t=He();return tz(t,be,e)}function tz(e,t,n){if(t=hb(e,t,ez)[0],e=ps(ir)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Bl(t)}catch(a){throw a===ta?id:a}else i=t;t=He();var r=t.queue,o=r.dispatch;return n!==t.memoizedState&&(Q.flags|=2048,Go(9,{destroy:void 0},pU.bind(null,r,n),null)),[i,o,e]}function pU(e,t){e.action=t}function t1(e){var t=He(),n=be;if(n!==null)return tz(t,n,e);He(),t=t.memoizedState,n=He();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Go(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=Q.updateQueue,t===null&&(t=od(),Q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function nz(){return He().memoizedState}function gs(e,t,n,i){var r=xt();Q.flags|=e,r.memoizedState=Go(1|t,{destroy:void 0},n,i===void 0?null:i)}function ld(e,t,n,i){var r=He();i=i===void 0?null:i;var o=r.memoizedState.inst;be!==null&&i!==null&&db(i,be.memoizedState.deps)?r.memoizedState=Go(t,o,n,i):(Q.flags|=e,r.memoizedState=Go(1|t,o,n,i))}function n1(e,t){gs(8390656,8,e,t)}function yb(e,t){ld(2048,8,e,t)}function gU(e){Q.flags|=4;var t=Q.updateQueue;if(t===null)t=od(),Q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function rz(e){var t=He().memoizedState;return gU({ref:t,nextImpl:e}),function(){if((le&2)!==0)throw Error(k(440));return t.impl.apply(void 0,arguments)}}function iz(e,t){return ld(4,2,e,t)}function oz(e,t){return ld(4,4,e,t)}function az(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function lz(e,t,n){n=n!=null?n.concat([e]):null,ld(4,4,az.bind(null,t,e),n)}function bb(){}function uz(e,t){var n=He();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&db(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function cz(e,t){var n=He();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&db(t,i[1]))return i[0];if(i=e(),bi){Er(!0);try{e()}finally{Er(!1)}}return n.memoizedState=[i,t],i}function xb(e,t,n){return n===void 0||(rr&1073741824)!==0&&(ie&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Kz(),Q.lanes|=e,Gr|=e,n)}function sz(e,t,n,i){return qt(n,t)?n:Ho.current!==null?(e=xb(e,n,i),qt(e,t)||(Xe=!0),e):(rr&42)===0||(rr&1073741824)!==0&&(ie&261930)===0?(Xe=!0,e.memoizedState=n):(e=Kz(),Q.lanes|=e,Gr|=e,t)}function dz(e,t,n,i,r){var o=ue.p;ue.p=o!==0&&8>o?o:8;var a=V.T,l={};V.T=l,Sb(e,!1,t,n);try{var u=r(),c=V.S;if(c!==null&&c(l,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var s=sU(u,i);ml(e,t,s,Vt(e))}else ml(e,t,i,Vt(e))}catch(d){ml(e,t,{then:function(){},status:"rejected",reason:d},Vt())}finally{ue.p=o,a!==null&&l.types!==null&&(a.types=l.types),V.T=a}}function vU(){}function Sy(e,t,n,i){if(e.tag!==5)throw Error(k(476));var r=fz(e).queue;dz(e,r,t,di,n===null?vU:function(){return mz(e),n(i)})}function fz(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:di,baseState:di,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:di},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ir,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mz(e){var t=fz(e);t.next===null&&(t=e.alternate.memoizedState),ml(e,t.next.queue,{},Vt())}function _b(){return ct(Ul)}function pz(){return He().memoizedState}function gz(){return He().memoizedState}function hU(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Vt();e=Ir(n);var i=Zr(t,e,n);i!==null&&(Ut(i,t,n),sl(i,t,n)),t={cache:ab()},e.payload=t;return}t=t.return}}function yU(e,t,n){var i=Vt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ud(e)?hz(t,n):(n=nb(e,t,n,i),n!==null&&(Ut(n,e,i),yz(n,t,i)))}function vz(e,t,n){var i=Vt();ml(e,t,n,i)}function ml(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ud(e))hz(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(r.hasEagerState=!0,r.eagerState=l,qt(l,a))return rd(e,t,r,0),_e===null&&nd(),!1}catch{}if(n=nb(e,t,r,i),n!==null)return Ut(n,e,i),yz(n,t,i),!0}return!1}function Sb(e,t,n,i){if(i={lane:2,revertLane:jb(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ud(e)){if(t)throw Error(k(479))}else t=nb(e,n,i,2),t!==null&&Ut(t,e,2)}function ud(e){var t=e.alternate;return e===Q||t!==null&&t===Q}function hz(e,t){Ro=Ns=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yz(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,rk(e,n)}}var Tl={readContext:ct,use:ad,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useLayoutEffect:Le,useInsertionEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useSyncExternalStore:Le,useId:Le,useHostTransitionStatus:Le,useFormState:Le,useActionState:Le,useOptimistic:Le,useMemoCache:Le,useCacheRefresh:Le};Tl.useEffectEvent=Le;var bz={readContext:ct,use:ad,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:n1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gs(4194308,4,az.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){gs(4,2,e,t)},useMemo:function(e,t){var n=xt();t=t===void 0?null:t;var i=e();if(bi){Er(!0);try{e()}finally{Er(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=xt();if(n!==void 0){var r=n(t);if(bi){Er(!0);try{n(t)}finally{Er(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=yU.bind(null,Q,e),[i.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=xy(e);var t=e.queue,n=vz.bind(null,Q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:bb,useDeferredValue:function(e,t){var n=xt();return xb(n,e,t)},useTransition:function(){var e=xy(!1);return e=dz.bind(null,Q,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=Q,r=xt();if(oe){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),_e===null)throw Error(k(349));(ie&127)!==0||Gk(i,t,n)}r.memoizedState=n;var o={value:n,getSnapshot:t};return r.queue=o,n1(Yk.bind(null,i,o,e),[e]),i.flags|=2048,Go(9,{destroy:void 0},Jk.bind(null,i,o,n,t),null),n},useId:function(){var e=xt(),t=_e.identifierPrefix;if(oe){var n=En,i=Dn;n=(i&~(1<<32-Pt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Is++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=dU++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:_b,useFormState:W$,useActionState:W$,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Sb.bind(null,Q,!0,n),n.dispatch=t,[e,t]},useMemoCache:vb,useCacheRefresh:function(){return xt().memoizedState=hU.bind(null,Q)},useEffectEvent:function(e){var t=xt(),n={impl:e};return t.memoizedState=n,function(){if((le&2)!==0)throw Error(k(440));return n.impl.apply(void 0,arguments)}}},$b={readContext:ct,use:ad,useCallback:uz,useContext:ct,useEffect:yb,useImperativeHandle:lz,useInsertionEffect:iz,useLayoutEffect:oz,useMemo:cz,useReducer:ps,useRef:nz,useState:function(){return ps(ir)},useDebugValue:bb,useDeferredValue:function(e,t){var n=He();return sz(n,be.memoizedState,e,t)},useTransition:function(){var e=ps(ir)[0],t=He().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Hk,useId:pz,useHostTransitionStatus:_b,useFormState:e1,useActionState:e1,useOptimistic:function(e,t){var n=He();return Kk(n,be,e,t)},useMemoCache:vb,useCacheRefresh:gz};$b.useEffectEvent=rz;var xz={readContext:ct,use:ad,useCallback:uz,useContext:ct,useEffect:yb,useImperativeHandle:lz,useInsertionEffect:iz,useLayoutEffect:oz,useMemo:cz,useReducer:Uh,useRef:nz,useState:function(){return Uh(ir)},useDebugValue:bb,useDeferredValue:function(e,t){var n=He();return be===null?xb(n,e,t):sz(n,be.memoizedState,e,t)},useTransition:function(){var e=Uh(ir)[0],t=He().memoizedState;return[typeof e=="boolean"?e:Bl(e),t]},useSyncExternalStore:Hk,useId:pz,useHostTransitionStatus:_b,useFormState:t1,useActionState:t1,useOptimistic:function(e,t){var n=He();return be!==null?Kk(n,be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:vb,useCacheRefresh:gz};xz.useEffectEvent=rz;function jh(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ue({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var $y={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=Vt(),r=Ir(i);r.payload=t,n!=null&&(r.callback=n),t=Zr(e,r,i),t!==null&&(Ut(t,e,i),sl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=Vt(),r=Ir(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=Zr(e,r,i),t!==null&&(Ut(t,e,i),sl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vt(),i=Ir(n);i.tag=2,t!=null&&(i.callback=t),t=Zr(e,i,n),t!==null&&(Ut(t,e,n),sl(t,e,n))}};function r1(e,t,n,i,r,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,a):t.prototype&&t.prototype.isPureReactComponent?!Sl(n,i)||!Sl(r,o):!0}function i1(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&$y.enqueueReplaceState(t,t.state,null)}function xi(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ue({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function _z(e){Ds(e)}function Sz(e){console.error(e)}function $z(e){Ds(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function o1(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ky(e,t,n){return n=Ir(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function kz(e){return e=Ir(e),e.tag=3,e}function zz(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var o=i.value;e.payload=function(){return r(o)},e.callback=function(){o1(t,n,i)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){o1(t,n,i),typeof r!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var l=i.stack;this.componentDidCatch(i.value,{componentStack:l!==null?l:""})})}function bU(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ea(t,n,r,!0),n=Ht.current,n!==null){switch(n.tag){case 31:case 13:return un===null?Ps():n.alternate===null&&Pe===0&&(Pe=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===Os?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Ph(e,i,r)),!1;case 22:return n.flags|=65536,i===Os?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Ph(e,i,r)),!1}throw Error(k(435,n.tag))}return Ph(e,i,r),Ps(),!1}if(oe)return t=Ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==dy&&(e=Error(k(422),{cause:i}),kl(an(e,n)))):(i!==dy&&(t=Error(k(423),{cause:i}),kl(an(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=an(i,n),r=ky(e.stateNode,i,r),Eh(e,r),Pe!==4&&(Pe=2)),!1;var o=Error(k(520),{cause:i});if(o=an(o,n),vl===null?vl=[o]:vl.push(o),Pe!==4&&(Pe=2),t===null)return!0;i=an(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=ky(n.stateNode,i,e),Eh(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Mr===null||!Mr.has(o))))return n.flags|=65536,r&=-r,n.lanes|=r,r=kz(r),zz(r,e,n,i),Eh(n,r),!1}n=n.return}while(n!==null);return!1}var kb=Error(k(461)),Xe=!1;function at(e,t,n,i){t.child=e===null?Rk(t,null,n,i):yi(t,e.child,n,i)}function a1(e,t,n,i,r){n=n.render;var o=t.ref;if("ref"in i){var a={};for(var l in i)l!=="ref"&&(a[l]=i[l])}else a=i;return hi(t),i=fb(e,t,n,a,o,r),l=mb(),e!==null&&!Xe?(pb(e,t,r),or(e,t,r)):(oe&&l&&ib(t),t.flags|=1,at(e,t,i,r),t.child)}function l1(e,t,n,i,r){if(e===null){var o=n.type;return typeof o=="function"&&!rb(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,wz(e,t,o,i,r)):(e=fs(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!zb(e,r)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Sl,n(a,i)&&e.ref===t.ref)return or(e,t,r)}return t.flags|=1,e=Wn(o,i),e.ref=t.ref,e.return=t,t.child=e}function wz(e,t,n,i,r){if(e!==null){var o=e.memoizedProps;if(Sl(o,i)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=i=o,zb(e,r))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,or(e,t,r)}return zy(e,t,n,i,r)}function Tz(e,t,n,i){var r=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~o}else i=0,t.child=null;return u1(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ms(t,o!==null?o.cachePool:null),o!==null?X$(t,o):yy(),Pk(t);else return i=t.lanes=536870912,u1(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(ms(t,o.cachePool),X$(t,o),Tr(t),t.memoizedState=null):(e!==null&&ms(t,null),yy(),Tr(t));return at(e,t,r,n),t.child}function il(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function u1(e,t,n,i,r){var o=lb();return o=o===null?null:{parent:Fe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&ms(t,null),yy(),Pk(t),e!==null&&ea(e,t,i,!0),t.childLanes=r,null}function vs(e,t){return t=Ms({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function c1(e,t,n){return yi(t,e.child,null,n),e=vs(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function xU(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=vs(t,i),t.lanes=536870912,il(null,e);if(by(t),(e=Ee)?(e=b4(e,ln),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vr!==null?{id:Dn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},n=Ok(e),n.return=t,t.child=n,ut=t,Ee=null)):e=null,e===null)throw qr(t);return t.lanes=536870912,null}return vs(t,i)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(by(t),r)if(t.flags&256)t.flags&=-257,t=c1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(k(558));else if(Xe||ea(e,t,n,!1),r=(n&e.childLanes)!==0,Xe||r){if(i=_e,i!==null&&(a=ik(i,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,ki(e,a),Ut(i,e,a),kb;Ps(),t=c1(e,t,n)}else e=o.treeContext,Ee=cn(a.nextSibling),ut=t,oe=!0,Nr=null,ln=!1,e!==null&&Ck(t,e),t=vs(t,i),t.flags|=4096;return t}return e=Wn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(k(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function zy(e,t,n,i,r){return hi(t),n=fb(e,t,n,i,void 0,r),i=mb(),e!==null&&!Xe?(pb(e,t,r),or(e,t,r)):(oe&&i&&ib(t),t.flags|=1,at(e,t,n,r),t.child)}function s1(e,t,n,i,r,o){return hi(t),t.updateQueue=null,n=qk(t,i,n,r),Vk(e),i=mb(),e!==null&&!Xe?(pb(e,t,o),or(e,t,o)):(oe&&i&&ib(t),t.flags|=1,at(e,t,n,o),t.child)}function d1(e,t,n,i,r){if(hi(t),t.stateNode===null){var o=Uo,a=n.contextType;typeof a=="object"&&a!==null&&(o=ct(a)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=$y,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},cb(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?ct(a):Uo,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(jh(t,n,a,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&$y.enqueueReplaceState(o,o.state,null),fl(t,i,o,r),dl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,u=xi(n,l);o.props=u;var c=o.context,s=n.contextType;a=Uo,typeof s=="object"&&s!==null&&(a=ct(s));var d=n.getDerivedStateFromProps;s=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,s||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||c!==a)&&i1(t,o,i,a),kr=!1;var f=t.memoizedState;o.state=f,fl(t,i,o,r),dl(),c=t.memoizedState,l||f!==c||kr?(typeof d=="function"&&(jh(t,n,d,i),c=t.memoizedState),(u=kr||r1(t,n,u,i,f,c,a))?(s||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"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=a,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,vy(e,t),a=t.memoizedProps,s=xi(n,a),o.props=s,d=t.pendingProps,f=o.context,c=n.contextType,u=Uo,typeof c=="object"&&c!==null&&(u=ct(c)),l=n.getDerivedStateFromProps,(c=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==d||f!==u)&&i1(t,o,i,u),kr=!1,f=t.memoizedState,o.state=f,fl(t,i,o,r),dl();var m=t.memoizedState;a!==d||f!==m||kr||e!==null&&e.dependencies!==null&&js(e.dependencies)?(typeof l=="function"&&(jh(t,n,l,i),m=t.memoizedState),(s=kr||r1(t,n,s,i,f,m,u)||e!==null&&e.dependencies!==null&&js(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=s):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,hs(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=yi(t,e.child,null,r),t.child=yi(t,null,n,r)):at(e,t,n,r),t.memoizedState=o.state,e=t.child):e=or(e,t,r),e}function f1(e,t,n,i){return vi(),t.flags|=256,at(e,t,n,i),t.child}var Oh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ah(e){return{baseLanes:e,cachePool:Ik()}}function Ch(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Rt),e}function Dz(e,t,n){var i=t.pendingProps,r=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(qe.current&2)!==0),a&&(r=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(r?wr(t):Tr(t),(e=Ee)?(e=b4(e,ln),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vr!==null?{id:Dn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},n=Ok(e),n.return=t,t.child=n,ut=t,Ee=null)):e=null,e===null)throw qr(t);return Ry(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,r?(Tr(t),r=t.mode,l=Ms({mode:"hidden",children:l},r),i=fi(i,r,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,i=t.child,i.memoizedState=Ah(n),i.childLanes=Ch(e,a,n),t.memoizedState=Oh,il(null,i)):(wr(t),wy(t,l))}var u=e.memoizedState;if(u!==null&&(l=u.dehydrated,l!==null)){if(o)t.flags&256?(wr(t),t.flags&=-257,t=Nh(e,t,n)):t.memoizedState!==null?(Tr(t),t.child=e.child,t.flags|=128,t=null):(Tr(t),l=i.fallback,r=t.mode,i=Ms({mode:"visible",children:i.children},r),l=fi(l,r,n,null),l.flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,yi(t,e.child,null,n),i=t.child,i.memoizedState=Ah(n),i.childLanes=Ch(e,a,n),t.memoizedState=Oh,t=il(null,i));else if(wr(t),Ry(l)){if(a=l.nextSibling&&l.nextSibling.dataset,a)var c=a.dgst;a=c,i=Error(k(419)),i.stack="",i.digest=a,kl({value:i,source:null,stack:null}),t=Nh(e,t,n)}else if(Xe||ea(e,t,n,!1),a=(n&e.childLanes)!==0,Xe||a){if(a=_e,a!==null&&(i=ik(a,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,ki(e,i),Ut(a,e,i),kb;My(l)||Ps(),t=Nh(e,t,n)}else My(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Ee=cn(l.nextSibling),ut=t,oe=!0,Nr=null,ln=!1,e!==null&&Ck(t,e),t=wy(t,i.children),t.flags|=4096);return t}return r?(Tr(t),l=i.fallback,r=t.mode,u=e.child,c=u.sibling,i=Wn(u,{mode:"hidden",children:i.children}),i.subtreeFlags=u.subtreeFlags&65011712,c!==null?l=Wn(c,l):(l=fi(l,r,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,il(null,i),i=t.child,l=e.child.memoizedState,l===null?l=Ah(n):(r=l.cachePool,r!==null?(u=Fe._currentValue,r=r.parent!==u?{parent:u,pool:u}:r):r=Ik(),l={baseLanes:l.baseLanes|n,cachePool:r}),i.memoizedState=l,i.childLanes=Ch(e,a,n),t.memoizedState=Oh,il(e.child,i)):(wr(t),n=e.child,e=n.sibling,n=Wn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function wy(e,t){return t=Ms({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ms(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function Nh(e,t,n){return yi(t,e.child,null,n),e=wy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function m1(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),my(e.return,t,n)}function Ih(e,t,n,i,r,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailMode=r,a.treeForkCount=o)}function Ez(e,t,n){var i=t.pendingProps,r=i.revealOrder,o=i.tail;i=i.children;var a=qe.current,l=(a&2)!==0;if(l?(a=a&1|2,t.flags|=128):a&=1,ze(qe,a),at(e,t,i,n),i=oe?$l:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&m1(e,n,t);else if(e.tag===19)m1(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Cs(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ih(t,!1,r,n,o,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Cs(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ih(t,!0,n,null,o,i);break;case"together":Ih(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function or(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(k(153));if(t.child!==null){for(e=t.child,n=Wn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zb(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&js(e)))}function _U(e,t,n){switch(t.tag){case 3:ks(t,t.stateNode.containerInfo),zr(t,Fe,e.memoizedState.cache),vi();break;case 27:case 5:ey(t);break;case 4:ks(t,t.stateNode.containerInfo);break;case 10:zr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,by(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(wr(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Dz(e,t,n):(wr(t),e=or(e,t,n),e!==null?e.sibling:null);wr(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(ea(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return Ez(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ze(qe,qe.current),i)break;return null;case 22:return t.lanes=0,Tz(e,t,n,t.pendingProps);case 24:zr(t,Fe,e.memoizedState.cache)}return or(e,t,n)}function Uz(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!zb(e,n)&&(t.flags&128)===0)return Xe=!1,_U(e,t,n);Xe=(e.flags&131072)!==0}else Xe=!1,oe&&(t.flags&1048576)!==0&&Ak(t,$l,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=ci(t.elementType),t.type=e,typeof e=="function")rb(e)?(i=xi(e,i),t.tag=1,t=d1(null,t,e,i,n)):(t.tag=0,t=zy(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===Vy){t.tag=11,t=a1(null,t,e,i,n);break e}else if(r===qy){t.tag=14,t=l1(null,t,e,i,n);break e}}throw t=Qh(e)||e,Error(k(306,t,""))}}return t;case 0:return zy(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=xi(i,t.pendingProps),d1(e,t,i,r,n);case 3:e:{if(ks(t,t.stateNode.containerInfo),e===null)throw Error(k(387));i=t.pendingProps;var o=t.memoizedState;r=o.element,vy(e,t),fl(t,i,null,n);var a=t.memoizedState;if(i=a.cache,zr(t,Fe,i),i!==o.cache&&py(t,[Fe],n,!0),dl(),i=a.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=f1(e,t,i,n);break e}else if(i!==r){r=an(Error(k(424)),t),kl(r),t=f1(e,t,i,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ee=cn(e.firstChild),ut=t,oe=!0,Nr=null,ln=!0,n=Rk(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vi(),i===r){t=or(e,t,n);break e}at(e,t,i,n)}t=t.child}return t;case 26:return hs(e,t),e===null?(n=N1(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(n=t.type,e=t.pendingProps,i=Gs(Cr.current).createElement(n),i[lt]=t,i[jt]=e,st(i,n,e),et(i),t.stateNode=i):t.memoizedState=N1(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ey(t),e===null&&oe&&(i=t.stateNode=x4(t.type,t.pendingProps,Cr.current),ut=t,ln=!0,r=Ee,Yr(t.type)?(By=r,Ee=cn(i.firstChild)):Ee=r),at(e,t,t.pendingProps.children,n),hs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((r=i=Ee)&&(i=FU(i,t.type,t.pendingProps,ln),i!==null?(t.stateNode=i,ut=t,Ee=cn(i.firstChild),ln=!1,r=!0):r=!1),r||qr(t)),ey(t),r=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,i=o.children,Iy(r,o)?i=null:a!==null&&Iy(r,a)&&(t.flags|=32),t.memoizedState!==null&&(r=fb(e,t,fU,null,null,n),Ul._currentValue=r),hs(e,t),at(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=Ee)&&(n=XU(n,t.pendingProps,ln),n!==null?(t.stateNode=n,ut=t,Ee=null,e=!0):e=!1),e||qr(t)),null;case 13:return Dz(e,t,n);case 4:return ks(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=yi(t,null,i,n):at(e,t,i,n),t.child;case 11:return a1(e,t,t.type,t.pendingProps,n);case 7:return at(e,t,t.pendingProps,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,zr(t,t.type,i.value),at(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,hi(t),r=ct(r),i=i(r),t.flags|=1,at(e,t,i,n),t.child;case 14:return l1(e,t,t.type,t.pendingProps,n);case 15:return wz(e,t,t.type,t.pendingProps,n);case 19:return Ez(e,t,n);case 31:return xU(e,t,n);case 22:return Tz(e,t,n,t.pendingProps);case 24:return hi(t),i=ct(Fe),e===null?(r=lb(),r===null&&(r=_e,o=ab(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=n),r=o),t.memoizedState={parent:i,cache:r},cb(t),zr(t,Fe,r)):((e.lanes&n)!==0&&(vy(e,t),fl(t,null,null,n),dl()),r=e.memoizedState,o=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),zr(t,Fe,i)):(i=o.cache,zr(t,Fe,i),i!==r.cache&&py(t,[Fe],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(k(156,t.tag))}function qn(e){e.flags|=4}function Zh(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(e4())e.flags|=8192;else throw pi=Os,ub}else e.flags&=-16777217}function p1(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$4(t))if(e4())e.flags|=8192;else throw pi=Os,ub}function ts(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?tk():536870912,e.lanes|=t,Jo|=t)}function Ka(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function SU(e,t,n){var i=t.pendingProps;switch(ob(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),er(Fe),Lo(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(yo(t)?qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dh())),De(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(qn(t),o!==null?(De(t),p1(t,o)):(De(t),Zh(t,r,null,i,n))):o?o!==e.memoizedState?(qn(t),De(t),p1(t,o)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&qn(t),De(t),Zh(t,r,e,i,n)),null;case 27:if(zs(t),n=Cr.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&qn(t);else{if(!i){if(t.stateNode===null)throw Error(k(166));return De(t),null}e=jn.current,yo(t)?V$(t,e):(e=x4(r,i,n),t.stateNode=e,qn(t))}return De(t),null;case 5:if(zs(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&qn(t);else{if(!i){if(t.stateNode===null)throw Error(k(166));return De(t),null}if(o=jn.current,yo(t))V$(t,o);else{var a=Gs(Cr.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?a.createElement("select",{is:i.is}):a.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?a.createElement(r,{is:i.is}):a.createElement(r)}}o[lt]=t,o[jt]=i;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(st(o,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&qn(t)}}return De(t),Zh(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&qn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(k(166));if(e=Cr.current,yo(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=ut,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||v4(e.nodeValue,n)),e||qr(t,!0)}else e=Gs(e).createTextNode(i),e[lt]=t,t.stateNode=e}return De(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=yo(t),n!==null){if(e===null){if(!i)throw Error(k(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(k(557));e[lt]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else n=Dh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(k(558))}return De(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=yo(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(k(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(k(317));r[lt]=t}else vi(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),r=!1}else r=Dh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ts(t,t.updateQueue),De(t),null);case 4:return Lo(),e===null&&Ob(t.stateNode.containerInfo),De(t),null;case 10:return er(t.type),De(t),null;case 19:if(tt(qe),i=t.memoizedState,i===null)return De(t),null;if(r=(t.flags&128)!==0,o=i.rendering,o===null)if(r)Ka(i,!1);else{if(Pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Cs(e),o!==null){for(t.flags|=128,Ka(i,!1),e=o.updateQueue,t.updateQueue=e,ts(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)jk(n,e),n=n.sibling;return ze(qe,qe.current&1|2),oe&&Yn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Bt()>Bs&&(t.flags|=128,r=!0,Ka(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cs(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ts(t,e),Ka(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!oe)return De(t),null}else 2*Bt()-i.renderingStartTime>Bs&&n!==536870912&&(t.flags|=128,r=!0,Ka(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Bt(),e.sibling=null,n=qe.current,ze(qe,r?n&1|2:n&1),oe&&Yn(t,i.treeForkCount),e):(De(t),null);case 22:case 23:return Zt(t),sb(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),n=t.updateQueue,n!==null&&ts(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&tt(mi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),er(Fe),De(t),null;case 25:return null;case 30:return null}throw Error(k(156,t.tag))}function $U(e,t){switch(ob(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return er(Fe),Lo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return zs(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(k(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));vi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return tt(qe),null;case 4:return Lo(),null;case 10:return er(t.type),null;case 22:case 23:return Zt(t),sb(),e!==null&&tt(mi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return er(Fe),null;case 25:return null;default:return null}}function jz(e,t){switch(ob(t),t.tag){case 3:er(Fe),Lo();break;case 26:case 27:case 5:zs(t);break;case 4:Lo();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:tt(qe);break;case 10:er(t.type);break;case 22:case 23:Zt(t),sb(),e!==null&&tt(mi);break;case 24:er(Fe)}}function Ll(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var o=n.create,a=n.inst;i=o(),a.destroy=i}n=n.next}while(n!==r)}}catch(l){me(t,t.return,l)}}function Hr(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){var a=i.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,r=t;var u=n,c=l;try{c()}catch(s){me(r,u,s)}}}i=i.next}while(i!==o)}}catch(s){me(t,t.return,s)}}function Oz(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Lk(t,n)}catch(i){me(e,e.return,i)}}}function Az(e,t,n){n.props=xi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){me(e,t,i)}}function pl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){me(e,t,r)}}function Un(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){me(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){me(e,t,r)}else n.current=null}function Cz(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){me(e,e.return,r)}}function Mh(e,t,n){try{var i=e.stateNode;VU(i,e.type,n,t),i[jt]=t}catch(r){me(e,e.return,r)}}function Nz(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Yr(e.type)||e.tag===4}function Rh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Yr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ty(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kn));else if(i!==4&&(i===27&&Yr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Ty(e,t,n),e=e.sibling;e!==null;)Ty(e,t,n),e=e.sibling}function Rs(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Yr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Rs(e,t,n),e=e.sibling;e!==null;)Rs(e,t,n),e=e.sibling}function Iz(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);st(t,i,n),t[lt]=e,t[jt]=n}catch(o){me(e,e.return,o)}}var Fn=!1,Ye=!1,Bh=!1,g1=typeof WeakSet=="function"?WeakSet:Set,We=null;function kU(e,t){if(e=e.containerInfo,Cy=Xs,e=$k(e),eb(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,u=-1,c=0,s=0,d=e,f=null;t:for(;;){for(var m;d!==n||r!==0&&d.nodeType!==3||(l=a+r),d!==o||i!==0&&d.nodeType!==3||(u=a+i),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)f=d,d=m;for(;;){if(d===e)break t;if(f===n&&++c===r&&(l=a),f===o&&++s===i&&(u=a),(m=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=m}n=l===-1||u===-1?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ny={focusedElem:e,selectionRange:n},Xs=!1,We=t;We!==null;)if(t=We,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,We=e;else for(;We!==null;){switch(t=We,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,r=o.memoizedProps,o=o.memoizedState,i=n.stateNode;try{var S=xi(n.type,r);e=i.getSnapshotBeforeUpdate(S,o),i.__reactInternalSnapshotBeforeUpdate=e}catch($){me(n,n.return,$)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Zy(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zy(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(k(163))}if(e=t.sibling,e!==null){e.return=t.return,We=e;break}We=t.return}}function Zz(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Gn(e,n),i&4&&Ll(5,n);break;case 1:if(Gn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){me(n,n.return,a)}else{var r=xi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){me(n,n.return,a)}}i&64&&Oz(n),i&512&&pl(n,n.return);break;case 3:if(Gn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Lk(e,t)}catch(a){me(n,n.return,a)}}break;case 27:t===null&&i&4&&Iz(n);case 26:case 5:Gn(e,n),t===null&&i&4&&Cz(n),i&512&&pl(n,n.return);break;case 12:Gn(e,n);break;case 31:Gn(e,n),i&4&&Bz(e,n);break;case 13:Gn(e,n),i&4&&Lz(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=AU.bind(null,n),KU(e,n))));break;case 22:if(i=n.memoizedState!==null||Fn,!i){t=t!==null&&t.memoizedState!==null||Ye,r=Fn;var o=Ye;Fn=i,(Ye=t)&&!o?Jn(e,n,(n.subtreeFlags&8772)!==0):Gn(e,n),Fn=r,Ye=o}break;case 30:break;default:Gn(e,n)}}function Mz(e){var t=e.alternate;t!==null&&(e.alternate=null,Mz(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Yy(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ce=null,Dt=!1;function Hn(e,t,n){for(n=n.child;n!==null;)Rz(e,t,n),n=n.sibling}function Rz(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:Ye||Un(n,t),Hn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ye||Un(n,t);var i=Ce,r=Dt;Yr(n.type)&&(Ce=n.stateNode,Dt=!1),Hn(e,t,n),yl(n.stateNode),Ce=i,Dt=r;break;case 5:Ye||Un(n,t);case 6:if(i=Ce,r=Dt,Ce=null,Hn(e,t,n),Ce=i,Dt=r,Ce!==null)if(Dt)try{(Ce.nodeType===9?Ce.body:Ce.nodeName==="HTML"?Ce.ownerDocument.body:Ce).removeChild(n.stateNode)}catch(o){me(n,t,o)}else try{Ce.removeChild(n.stateNode)}catch(o){me(n,t,o)}break;case 18:Ce!==null&&(Dt?(e=Ce,U1(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ko(e)):U1(Ce,n.stateNode));break;case 4:i=Ce,r=Dt,Ce=n.stateNode.containerInfo,Dt=!0,Hn(e,t,n),Ce=i,Dt=r;break;case 0:case 11:case 14:case 15:Hr(2,n,t),Ye||Hr(4,n,t),Hn(e,t,n);break;case 1:Ye||(Un(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Az(n,t,i)),Hn(e,t,n);break;case 21:Hn(e,t,n);break;case 22:Ye=(i=Ye)||n.memoizedState!==null,Hn(e,t,n),Ye=i;break;default:Hn(e,t,n)}}function Bz(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ko(e)}catch(n){me(t,t.return,n)}}}function Lz(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ko(e)}catch(n){me(t,t.return,n)}}function zU(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new g1),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new g1),t;default:throw Error(k(435,e.tag))}}function ns(e,t){var n=zU(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=CU.bind(null,e,i);i.then(r,r)}})}function wt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:if(Yr(l.type)){Ce=l.stateNode,Dt=!1;break e}break;case 5:Ce=l.stateNode,Dt=!1;break e;case 3:case 4:Ce=l.stateNode.containerInfo,Dt=!0;break e}l=l.return}if(Ce===null)throw Error(k(160));Rz(o,a,r),Ce=null,Dt=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pz(t,e),t=t.sibling}var vn=null;function Pz(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wt(t,e),Tt(e),i&4&&(Hr(3,e,e.return),Ll(3,e),Hr(5,e,e.return));break;case 1:wt(t,e),Tt(e),i&512&&(Ye||n===null||Un(n,n.return)),i&64&&Fn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=vn;if(wt(t,e),Tt(e),i&512&&(Ye||n===null||Un(n,n.return)),i&4){var o=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Zl]||o[lt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(i),r.head.insertBefore(o,r.querySelector("head > title"))),st(o,i,n),o[lt]=e,et(o),i=o;break e;case"link":var a=Z1("link","href",r).get(i+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=r.createElement(i),st(o,i,n),r.head.appendChild(o);break;case"meta":if(a=Z1("meta","content",r).get(i+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=r.createElement(i),st(o,i,n),r.head.appendChild(o);break;default:throw Error(k(468,i))}o[lt]=e,et(o),i=o}e.stateNode=i}else M1(r,e.type,e.stateNode);else e.stateNode=I1(r,i,e.memoizedProps);else o!==i?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,i===null?M1(r,e.type,e.stateNode):I1(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Mh(e,e.memoizedProps,n.memoizedProps)}break;case 27:wt(t,e),Tt(e),i&512&&(Ye||n===null||Un(n,n.return)),n!==null&&i&4&&Mh(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wt(t,e),Tt(e),i&512&&(Ye||n===null||Un(n,n.return)),e.flags&32){r=e.stateNode;try{Vo(r,"")}catch(S){me(e,e.return,S)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,Mh(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Bh=!0);break;case 6:if(wt(t,e),Tt(e),i&4){if(e.stateNode===null)throw Error(k(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(S){me(e,e.return,S)}}break;case 3:if(xs=null,r=vn,vn=Js(t.containerInfo),wt(t,e),vn=r,Tt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{Ko(t.containerInfo)}catch(S){me(e,e.return,S)}Bh&&(Bh=!1,Vz(e));break;case 4:i=vn,vn=Js(e.stateNode.containerInfo),wt(t,e),Tt(e),vn=i;break;case 12:wt(t,e),Tt(e);break;case 31:wt(t,e),Tt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ns(e,i)));break;case 13:wt(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(cd=Bt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ns(e,i)));break;case 22:r=e.memoizedState!==null;var u=n!==null&&n.memoizedState!==null,c=Fn,s=Ye;if(Fn=c||r,Ye=s||u,wt(t,e),Ye=s,Fn=c,Tt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||u||Fn||Ye||si(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){u=n=t;try{if(o=u.stateNode,r)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{l=u.stateNode;var d=u.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;l.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(S){me(u,u.return,S)}}}else if(t.tag===6){if(n===null){u=t;try{u.stateNode.nodeValue=r?"":u.memoizedProps}catch(S){me(u,u.return,S)}}}else if(t.tag===18){if(n===null){u=t;try{var m=u.stateNode;r?j1(m,!0):j1(u.stateNode,!1)}catch(S){me(u,u.return,S)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,ns(e,n))));break;case 19:wt(t,e),Tt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,ns(e,i)));break;case 30:break;case 21:break;default:wt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Nz(i)){n=i;break}i=i.return}if(n==null)throw Error(k(160));switch(n.tag){case 27:var r=n.stateNode,o=Rh(e);Rs(e,o,r);break;case 5:var a=n.stateNode;n.flags&32&&(Vo(a,""),n.flags&=-33);var l=Rh(e);Rs(e,l,a);break;case 3:case 4:var u=n.stateNode.containerInfo,c=Rh(e);Ty(e,c,u);break;default:throw Error(k(161))}}catch(s){me(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vz(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Vz(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Zz(e,t.alternate,t),t=t.sibling}function si(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hr(4,t,t.return),si(t);break;case 1:Un(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Az(t,t.return,n),si(t);break;case 27:yl(t.stateNode);case 26:case 5:Un(t,t.return),si(t);break;case 22:t.memoizedState===null&&si(t);break;case 30:si(t);break;default:si(t)}e=e.sibling}}function Jn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Jn(r,o,n),Ll(4,o);break;case 1:if(Jn(r,o,n),i=o,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){me(i,i.return,c)}if(i=o,r=i.updateQueue,r!==null){var l=i.stateNode;try{var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)Bk(u[r],l)}catch(c){me(i,i.return,c)}}n&&a&64&&Oz(o),pl(o,o.return);break;case 27:Iz(o);case 26:case 5:Jn(r,o,n),n&&i===null&&a&4&&Cz(o),pl(o,o.return);break;case 12:Jn(r,o,n);break;case 31:Jn(r,o,n),n&&a&4&&Bz(r,o);break;case 13:Jn(r,o,n),n&&a&4&&Lz(r,o);break;case 22:o.memoizedState===null&&Jn(r,o,n),pl(o,o.return);break;case 30:break;default:Jn(r,o,n)}t=t.sibling}}function wb(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Rl(n))}function Tb(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rl(e))}function gn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qz(e,t,n,i),t=t.sibling}function qz(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:gn(e,t,n,i),r&2048&&Ll(9,t);break;case 1:gn(e,t,n,i);break;case 3:gn(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rl(e)));break;case 12:if(r&2048){gn(e,t,n,i),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(u){me(t,t.return,u)}}else gn(e,t,n,i);break;case 31:gn(e,t,n,i);break;case 13:gn(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?gn(e,t,n,i):gl(e,t):o._visibility&2?gn(e,t,n,i):(o._visibility|=2,xo(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&wb(a,t);break;case 24:gn(e,t,n,i),r&2048&&Tb(t.alternate,t);break;default:gn(e,t,n,i)}}function xo(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,l=n,u=i,c=a.flags;switch(a.tag){case 0:case 11:case 15:xo(o,a,l,u,r),Ll(8,a);break;case 23:break;case 22:var s=a.stateNode;a.memoizedState!==null?s._visibility&2?xo(o,a,l,u,r):gl(o,a):(s._visibility|=2,xo(o,a,l,u,r)),r&&c&2048&&wb(a.alternate,a);break;case 24:xo(o,a,l,u,r),r&&c&2048&&Tb(a.alternate,a);break;default:xo(o,a,l,u,r)}t=t.sibling}}function gl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:gl(n,i),r&2048&&wb(i.alternate,i);break;case 24:gl(n,i),r&2048&&Tb(i.alternate,i);break;default:gl(n,i)}t=t.sibling}}var ol=8192;function bo(e,t,n){if(e.subtreeFlags&ol)for(e=e.child;e!==null;)Hz(e,t,n),e=e.sibling}function Hz(e,t,n){switch(e.tag){case 26:bo(e,t,n),e.flags&ol&&e.memoizedState!==null&&cj(n,vn,e.memoizedState,e.memoizedProps);break;case 5:bo(e,t,n);break;case 3:case 4:var i=vn;vn=Js(e.stateNode.containerInfo),bo(e,t,n),vn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=ol,ol=16777216,bo(e,t,n),ol=i):bo(e,t,n));break;default:bo(e,t,n)}}function Gz(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Qa(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];We=i,Yz(i,e)}Gz(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Jz(e),e=e.sibling}function Jz(e){switch(e.tag){case 0:case 11:case 15:Qa(e),e.flags&2048&&Hr(9,e,e.return);break;case 3:Qa(e);break;case 12:Qa(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ys(e)):Qa(e);break;default:Qa(e)}}function ys(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];We=i,Yz(i,e)}Gz(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hr(8,t,t.return),ys(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,ys(t));break;default:ys(t)}e=e.sibling}}function Yz(e,t){for(;We!==null;){var n=We;switch(n.tag){case 0:case 11:case 15:Hr(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Rl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,We=i;else e:for(n=e;We!==null;){i=We;var r=i.sibling,o=i.return;if(Mz(i),i===n){We=null;break e}if(r!==null){r.return=o,We=r;break e}We=o}}}var wU={getCacheForType:function(e){var t=ct(Fe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Fe).controller.signal}},TU=typeof WeakMap=="function"?WeakMap:Map,le=0,_e=null,re=null,ie=0,fe=0,It=null,jr=!1,na=!1,Db=!1,ar=0,Pe=0,Gr=0,gi=0,Eb=0,Rt=0,Jo=0,vl=null,Et=null,Dy=!1,cd=0,Fz=0,Bs=1/0,Ls=null,Mr=null,Ke=0,Rr=null,Yo=null,tr=0,Ey=0,Uy=null,Xz=null,hl=0,jy=null;function Vt(){return(le&2)!==0&&ie!==0?ie&-ie:V.T!==null?jb():ok()}function Kz(){if(Rt===0)if((ie&536870912)===0||oe){var e=Gc;Gc<<=1,(Gc&3932160)===0&&(Gc=262144),Rt=e}else Rt=536870912;return e=Ht.current,e!==null&&(e.flags|=32),Rt}function Ut(e,t,n){(e===_e&&(fe===2||fe===9)||e.cancelPendingCommit!==null)&&(Fo(e,0),Or(e,ie,Rt,!1)),Il(e,n),((le&2)===0||e!==_e)&&(e===_e&&((le&2)===0&&(gi|=n),Pe===4&&Or(e,ie,Rt,!1)),An(e))}function Qz(e,t,n){if((le&6)!==0)throw Error(k(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Nl(e,t),r=i?UU(e,t):Lh(e,t,!0),o=i;do{if(r===0){na&&!i&&Or(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!DU(n)){r=Lh(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;r=vl;var u=l.current.memoizedState.isDehydrated;if(u&&(Fo(l,a).flags|=256),a=Lh(l,a,!1),a!==2){if(Db&&!u){l.errorRecoveryDisabledLanes|=o,gi|=o,r=4;break e}o=Et,Et=r,o!==null&&(Et===null?Et=o:Et.push.apply(Et,o))}r=a}if(o=!1,r!==2)continue}}if(r===1){Fo(e,0),Or(e,t,0,!0);break}e:{switch(i=e,o=r,o){case 0:case 1:throw Error(k(345));case 4:if((t&4194048)!==t)break;case 6:Or(i,t,Rt,!jr);break e;case 2:Et=null;break;case 3:case 5:break;default:throw Error(k(329))}if((t&62914560)===t&&(r=cd+300-Bt(),10<r)){if(Or(i,t,Rt,!jr),Qs(i,0,!0)!==0)break e;tr=t,i.timeoutHandle=y4(v1.bind(null,i,n,Et,Ls,Dy,t,Rt,gi,Jo,jr,o,"Throttled",-0,0),r);break e}v1(i,n,Et,Ls,Dy,t,Rt,gi,Jo,jr,o,null,-0,0)}}break}while(!0);An(e)}function v1(e,t,n,i,r,o,a,l,u,c,s,d,f,m){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Kn},Hz(t,o,d);var S=(o&62914560)===o?cd-Bt():(o&4194048)===o?Fz-Bt():0;if(S=sj(d,S),S!==null){tr=o,e.cancelPendingCommit=S(y1.bind(null,e,t,o,n,i,r,a,l,u,s,d,null,f,m)),Or(e,o,a,!c);return}}y1(e,t,o,n,i,r,a,l,u)}function DU(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],o=r.getSnapshot;r=r.value;try{if(!qt(o(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Or(e,t,n,i){t&=~Eb,t&=~gi,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var o=31-Pt(r),a=1<<o;i[o]=-1,r&=~a}n!==0&&nk(e,n,t)}function sd(){return(le&6)===0?(Pl(0,!1),!1):!0}function Ub(){if(re!==null){if(fe===0)var e=re.return;else e=re,Qn=zi=null,gb(e),Mo=null,zl=0,e=re;for(;e!==null;)jz(e.alternate,e),e=e.return;re=null}}function Fo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,GU(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),tr=0,Ub(),_e=e,re=n=Wn(e.current,null),ie=t,fe=0,It=null,jr=!1,na=Nl(e,t),Db=!1,Jo=Rt=Eb=gi=Gr=Pe=0,Et=vl=null,Dy=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-Pt(i),o=1<<r;t|=e[r],i&=~o}return ar=t,nd(),n}function Wz(e,t){Q=null,V.H=Tl,t===ta||t===id?(t=Y$(),fe=3):t===ub?(t=Y$(),fe=4):fe=t===kb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,It=t,re===null&&(Pe=1,Zs(e,an(t,e.current)))}function e4(){var e=Ht.current;return e===null?!0:(ie&4194048)===ie?un===null:(ie&62914560)===ie||(ie&536870912)!==0?e===un:!1}function t4(){var e=V.H;return V.H=Tl,e===null?Tl:e}function n4(){var e=V.A;return V.A=wU,e}function Ps(){Pe=4,jr||(ie&4194048)!==ie&&Ht.current!==null||(na=!0),(Gr&134217727)===0&&(gi&134217727)===0||_e===null||Or(_e,ie,Rt,!1)}function Lh(e,t,n){var i=le;le|=2;var r=t4(),o=n4();(_e!==e||ie!==t)&&(Ls=null,Fo(e,t)),t=!1;var a=Pe;e:do try{if(fe!==0&&re!==null){var l=re,u=It;switch(fe){case 8:Ub(),a=6;break e;case 3:case 2:case 9:case 6:Ht.current===null&&(t=!0);var c=fe;if(fe=0,It=null,Ao(e,l,u,c),n&&na){a=0;break e}break;default:c=fe,fe=0,It=null,Ao(e,l,u,c)}}EU(),a=Pe;break}catch(s){Wz(e,s)}while(!0);return t&&e.shellSuspendCounter++,Qn=zi=null,le=i,V.H=r,V.A=o,re===null&&(_e=null,ie=0,nd()),a}function EU(){for(;re!==null;)r4(re)}function UU(e,t){var n=le;le|=2;var i=t4(),r=n4();_e!==e||ie!==t?(Ls=null,Bs=Bt()+500,Fo(e,t)):na=Nl(e,t);e:do try{if(fe!==0&&re!==null){t=re;var o=It;t:switch(fe){case 1:fe=0,It=null,Ao(e,t,o,1);break;case 2:case 9:if(J$(o)){fe=0,It=null,h1(t);break}t=function(){fe!==2&&fe!==9||_e!==e||(fe=7),An(e)},o.then(t,t);break e;case 3:fe=7;break e;case 4:fe=5;break e;case 7:J$(o)?(fe=0,It=null,h1(t)):(fe=0,It=null,Ao(e,t,o,7));break;case 5:var a=null;switch(re.tag){case 26:a=re.memoizedState;case 5:case 27:var l=re;if(a?$4(a):l.stateNode.complete){fe=0,It=null;var u=l.sibling;if(u!==null)re=u;else{var c=l.return;c!==null?(re=c,dd(c)):re=null}break t}}fe=0,It=null,Ao(e,t,o,5);break;case 6:fe=0,It=null,Ao(e,t,o,6);break;case 8:Ub(),Pe=6;break e;default:throw Error(k(462))}}jU();break}catch(s){Wz(e,s)}while(!0);return Qn=zi=null,V.H=i,V.A=r,le=n,re!==null?0:(_e=null,ie=0,nd(),Pe)}function jU(){for(;re!==null&&!eE();)r4(re)}function r4(e){var t=Uz(e.alternate,e,ar);e.memoizedProps=e.pendingProps,t===null?dd(e):re=t}function h1(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=s1(n,t,t.pendingProps,t.type,void 0,ie);break;case 11:t=s1(n,t,t.pendingProps,t.type.render,t.ref,ie);break;case 5:gb(t);default:jz(n,t),t=re=jk(t,ar),t=Uz(n,t,ar)}e.memoizedProps=e.pendingProps,t===null?dd(e):re=t}function Ao(e,t,n,i){Qn=zi=null,gb(t),Mo=null,zl=0;var r=t.return;try{if(bU(e,r,t,n,ie)){Pe=1,Zs(e,an(n,e.current)),re=null;return}}catch(o){if(r!==null)throw re=r,o;Pe=1,Zs(e,an(n,e.current)),re=null;return}t.flags&32768?(oe||i===1?e=!0:na||(ie&536870912)!==0?e=!1:(jr=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),i4(t,e)):dd(t)}function dd(e){var t=e;do{if((t.flags&32768)!==0){i4(t,jr);return}e=t.return;var n=SU(t.alternate,t,ar);if(n!==null){re=n;return}if(t=t.sibling,t!==null){re=t;return}re=t=e}while(t!==null);Pe===0&&(Pe=5)}function i4(e,t){do{var n=$U(e.alternate,e);if(n!==null){n.flags&=32767,re=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){re=e;return}re=e=n}while(e!==null);Pe=6,re=null}function y1(e,t,n,i,r,o,a,l,u){e.cancelPendingCommit=null;do fd();while(Ke!==0);if((le&6)!==0)throw Error(k(327));if(t!==null){if(t===e.current)throw Error(k(177));if(o=t.lanes|t.childLanes,o|=tb,sE(e,n,o,a,l,u),e===_e&&(re=_e=null,ie=0),Yo=t,Rr=e,tr=n,Ey=o,Uy=r,Xz=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,NU(ws,function(){return c4(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=V.T,V.T=null,r=ue.p,ue.p=2,a=le,le|=4;try{kU(e,t,n)}finally{le=a,ue.p=r,V.T=i}}Ke=1,o4(),a4(),l4()}}function o4(){if(Ke===1){Ke=0;var e=Rr,t=Yo,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=V.T,V.T=null;var i=ue.p;ue.p=2;var r=le;le|=4;try{Pz(t,e);var o=Ny,a=$k(e.containerInfo),l=o.focusedElem,u=o.selectionRange;if(a!==l&&l&&l.ownerDocument&&Sk(l.ownerDocument.documentElement,l)){if(u!==null&&eb(l)){var c=u.start,s=u.end;if(s===void 0&&(s=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(s,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var m=f.getSelection(),S=l.textContent.length,$=Math.min(u.start,S),C=u.end===void 0?$:Math.min(u.end,S);!m.extend&&$>C&&(a=C,C=$,$=a);var v=B$(l,$),g=B$(l,C);if(v&&g&&(m.rangeCount!==1||m.anchorNode!==v.node||m.anchorOffset!==v.offset||m.focusNode!==g.node||m.focusOffset!==g.offset)){var h=d.createRange();h.setStart(v.node,v.offset),m.removeAllRanges(),$>C?(m.addRange(h),m.extend(g.node,g.offset)):(h.setEnd(g.node,g.offset),m.addRange(h))}}}}for(d=[],m=l;m=m.parentNode;)m.nodeType===1&&d.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var b=d[l];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Xs=!!Cy,Ny=Cy=null}finally{le=r,ue.p=i,V.T=n}}e.current=t,Ke=2}}function a4(){if(Ke===2){Ke=0;var e=Rr,t=Yo,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=V.T,V.T=null;var i=ue.p;ue.p=2;var r=le;le|=4;try{Zz(e,t.alternate,t)}finally{le=r,ue.p=i,V.T=n}}Ke=3}}function l4(){if(Ke===4||Ke===3){Ke=0,tE();var e=Rr,t=Yo,n=tr,i=Xz;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ke=5:(Ke=0,Yo=Rr=null,u4(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Mr=null),Jy(n),t=t.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(Cl,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=V.T,r=ue.p,ue.p=2,V.T=null;try{for(var o=e.onRecoverableError,a=0;a<i.length;a++){var l=i[a];o(l.value,{componentStack:l.stack})}}finally{V.T=t,ue.p=r}}(tr&3)!==0&&fd(),An(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===jy?hl++:(hl=0,jy=e):hl=0,Pl(0,!1)}}function u4(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Rl(t)))}function fd(){return o4(),a4(),l4(),c4()}function c4(){if(Ke!==5)return!1;var e=Rr,t=Ey;Ey=0;var n=Jy(tr),i=V.T,r=ue.p;try{ue.p=32>n?32:n,V.T=null,n=Uy,Uy=null;var o=Rr,a=tr;if(Ke=0,Yo=Rr=null,tr=0,(le&6)!==0)throw Error(k(331));var l=le;if(le|=4,Jz(o.current),qz(o,o.current,a,n),le=l,Pl(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(Cl,o)}catch{}return!0}finally{ue.p=r,V.T=i,u4(e,t)}}function b1(e,t,n){t=an(n,t),t=ky(e.stateNode,t,2),e=Zr(e,t,2),e!==null&&(Il(e,2),An(e))}function me(e,t,n){if(e.tag===3)b1(e,e,n);else for(;t!==null;){if(t.tag===3){b1(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Mr===null||!Mr.has(i))){e=an(n,e),n=kz(2),i=Zr(t,n,2),i!==null&&(zz(n,i,t,e),Il(i,2),An(i));break}}t=t.return}}function Ph(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new TU;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Db=!0,r.add(n),e=OU.bind(null,e,t,n),t.then(e,e))}function OU(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,_e===e&&(ie&n)===n&&(Pe===4||Pe===3&&(ie&62914560)===ie&&300>Bt()-cd?(le&2)===0&&Fo(e,0):Eb|=n,Jo===ie&&(Jo=0)),An(e)}function s4(e,t){t===0&&(t=tk()),e=ki(e,t),e!==null&&(Il(e,t),An(e))}function AU(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),s4(e,n)}function CU(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(k(314))}i!==null&&i.delete(t),s4(e,n)}function NU(e,t){return Hy(e,t)}var Vs=null,_o=null,Oy=!1,qs=!1,Vh=!1,Ar=0;function An(e){e!==_o&&e.next===null&&(_o===null?Vs=_o=e:_o=_o.next=e),qs=!0,Oy||(Oy=!0,ZU())}function Pl(e,t){if(!Vh&&qs){Vh=!0;do for(var n=!1,i=Vs;i!==null;){if(!t)if(e!==0){var r=i.pendingLanes;if(r===0)var o=0;else{var a=i.suspendedLanes,l=i.pingedLanes;o=(1<<31-Pt(42|e)+1)-1,o&=r&~(a&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,x1(i,o))}else o=ie,o=Qs(i,i===_e?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Nl(i,o)||(n=!0,x1(i,o));i=i.next}while(n);Vh=!1}}function IU(){d4()}function d4(){qs=Oy=!1;var e=0;Ar!==0&&HU()&&(e=Ar);for(var t=Bt(),n=null,i=Vs;i!==null;){var r=i.next,o=f4(i,t);o===0?(i.next=null,n===null?Vs=r:n.next=r,r===null&&(_o=n)):(n=i,(e!==0||(o&3)!==0)&&(qs=!0)),i=r}Ke!==0&&Ke!==5||Pl(e,!1),Ar!==0&&(Ar=0)}function f4(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-Pt(o),l=1<<a,u=r[a];u===-1?((l&n)===0||(l&i)!==0)&&(r[a]=cE(l,t)):u<=t&&(e.expiredLanes|=l),o&=~l}if(t=_e,n=ie,n=Qs(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(fe===2||fe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&yh(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Nl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&yh(i),Jy(n)){case 2:case 8:n=W1;break;case 32:n=ws;break;case 268435456:n=ek;break;default:n=ws}return i=m4.bind(null,e),n=Hy(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&yh(i),e.callbackPriority=2,e.callbackNode=null,2}function m4(e,t){if(Ke!==0&&Ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(fd()&&e.callbackNode!==n)return null;var i=ie;return i=Qs(e,e===_e?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Qz(e,i,t),f4(e,Bt()),e.callbackNode!=null&&e.callbackNode===n?m4.bind(null,e):null)}function x1(e,t){if(fd())return null;Qz(e,t,!0)}function ZU(){JU(function(){(le&6)!==0?Hy(Q1,IU):d4()})}function jb(){if(Ar===0){var e=qo;e===0&&(e=Hc,Hc<<=1,(Hc&261888)===0&&(Hc=256)),Ar=e}return Ar}function _1(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function S1(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function MU(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var o=_1((r[jt]||null).action),a=i.submitter;a&&(t=(t=a[jt]||null)?_1(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new Ws("action","action",null,i,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ar!==0){var u=a?S1(r,a):new FormData(r);Sy(n,{pending:!0,data:u,method:r.method,action:o},null,u)}}else typeof o=="function"&&(l.preventDefault(),u=a?S1(r,a):new FormData(r),Sy(n,{pending:!0,data:u,method:r.method,action:o},o,u))},currentTarget:r}]})}}for(rs=0;rs<sy.length;rs++)is=sy[rs],$1=is.toLowerCase(),k1=is[0].toUpperCase()+is.slice(1),hn($1,"on"+k1);var is,$1,k1,rs;hn(zk,"onAnimationEnd");hn(wk,"onAnimationIteration");hn(Tk,"onAnimationStart");hn("dblclick","onDoubleClick");hn("focusin","onFocus");hn("focusout","onBlur");hn(nU,"onTransitionRun");hn(rU,"onTransitionStart");hn(iU,"onTransitionCancel");hn(Dk,"onTransitionEnd");Po("onMouseEnter",["mouseout","mouseover"]);Po("onMouseLeave",["mouseout","mouseover"]);Po("onPointerEnter",["pointerout","pointerover"]);Po("onPointerLeave",["pointerout","pointerover"]);_i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_i("onBeforeInput",["compositionend","keypress","textInput","paste"]);_i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Dl="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(" "),RU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Dl));function p4(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var a=i.length-1;0<=a;a--){var l=i[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=c;try{o(r)}catch(s){Ds(s)}r.currentTarget=null,o=u}else for(a=0;a<i.length;a++){if(l=i[a],u=l.instance,c=l.currentTarget,l=l.listener,u!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=c;try{o(r)}catch(s){Ds(s)}r.currentTarget=null,o=u}}}}function ne(e,t){var n=t[ny];n===void 0&&(n=t[ny]=new Set);var i=e+"__bubble";n.has(i)||(g4(t,e,2,!1),n.add(i))}function qh(e,t,n){var i=0;t&&(i|=4),g4(n,e,i,t)}var os="_reactListening"+Math.random().toString(36).slice(2);function Ob(e){if(!e[os]){e[os]=!0,ak.forEach(function(n){n!=="selectionchange"&&(RU.has(n)||qh(n,!1,e),qh(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[os]||(t[os]=!0,qh("selectionchange",!1,t))}}function g4(e,t,n,i){switch(D4(t)){case 2:var r=mj;break;case 8:r=pj;break;default:r=Ib}n=r.bind(null,t,n,e),r=void 0,!ly||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Hh(e,t,n,i,r){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var a=i.tag;if(a===3||a===4){var l=i.stateNode.containerInfo;if(l===r)break;if(a===4)for(a=i.return;a!==null;){var u=a.tag;if((u===3||u===4)&&a.stateNode.containerInfo===r)return;a=a.return}for(;l!==null;){if(a=ko(l),a===null)return;if(u=a.tag,u===5||u===6||u===26||u===27){i=o=a;continue e}l=l.parentNode}}i=i.return}pk(function(){var c=o,s=Xy(n),d=[];e:{var f=Ek.get(e);if(f!==void 0){var m=Ws,S=e;switch(e){case"keypress":if(ds(n)===0)break e;case"keydown":case"keyup":m=CE;break;case"focusin":S="focus",m=$h;break;case"focusout":S="blur",m=$h;break;case"beforeblur":case"afterblur":m=$h;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=j$;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=SE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=ZE;break;case zk:case wk:case Tk:m=zE;break;case Dk:m=RE;break;case"scroll":case"scrollend":m=xE;break;case"wheel":m=LE;break;case"copy":case"cut":case"paste":m=TE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=A$;break;case"toggle":case"beforetoggle":m=VE}var $=(t&4)!==0,C=!$&&(e==="scroll"||e==="scrollend"),v=$?f!==null?f+"Capture":null:f;$=[];for(var g=c,h;g!==null;){var b=g;if(h=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||h===null||v===null||(b=xl(g,v),b!=null&&$.push(El(g,b,h))),C)break;g=g.return}0<$.length&&(f=new m(f,S,null,n,s),d.push({event:f,listeners:$}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&n!==ay&&(S=n.relatedTarget||n.fromElement)&&(ko(S)||S[Qo]))break e;if((m||f)&&(f=s.window===s?s:(f=s.ownerDocument)?f.defaultView||f.parentWindow:window,m?(S=n.relatedTarget||n.toElement,m=c,S=S?ko(S):null,S!==null&&(C=Al(S),$=S.tag,S!==C||$!==5&&$!==27&&$!==6)&&(S=null)):(m=null,S=c),m!==S)){if($=j$,b="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&($=A$,b="onPointerLeave",v="onPointerEnter",g="pointer"),C=m==null?f:rl(m),h=S==null?f:rl(S),f=new $(b,g+"leave",m,n,s),f.target=C,f.relatedTarget=h,b=null,ko(s)===c&&($=new $(v,g+"enter",S,n,s),$.target=h,$.relatedTarget=C,b=$),C=b,m&&S)t:{for($=BU,v=m,g=S,h=0,b=v;b;b=$(b))h++;b=0;for(var j=g;j;j=$(j))b++;for(;0<h-b;)v=$(v),h--;for(;0<b-h;)g=$(g),b--;for(;h--;){if(v===g||g!==null&&v===g.alternate){$=v;break t}v=$(v),g=$(g)}$=null}else $=null;m!==null&&z1(d,f,m,$,!1),S!==null&&C!==null&&z1(d,C,S,$,!0)}}e:{if(f=c?rl(c):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var E=Z$;else if(I$(f))if(xk)E=WE;else{E=KE;var x=XE}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?c&&Fy(c.elementType)&&(E=Z$):E=QE;if(E&&(E=E(e,c))){bk(d,E,n,s);break e}x&&x(e,f,c),e==="focusout"&&c&&f.type==="number"&&c.memoizedProps.value!=null&&oy(f,"number",f.value)}switch(x=c?rl(c):window,e){case"focusin":(I$(x)||x.contentEditable==="true")&&(To=x,uy=c,ul=null);break;case"focusout":ul=uy=To=null;break;case"mousedown":cy=!0;break;case"contextmenu":case"mouseup":case"dragend":cy=!1,L$(d,n,s);break;case"selectionchange":if(tU)break;case"keydown":case"keyup":L$(d,n,s)}var N;if(Wy)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else wo?hk(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(vk&&n.locale!=="ko"&&(wo||R!=="onCompositionStart"?R==="onCompositionEnd"&&wo&&(N=gk()):(Ur=s,Ky="value"in Ur?Ur.value:Ur.textContent,wo=!0)),x=Hs(c,R),0<x.length&&(R=new O$(R,e,null,n,s),d.push({event:R,listeners:x}),N?R.data=N:(N=yk(n),N!==null&&(R.data=N)))),(N=HE?GE(e,n):JE(e,n))&&(R=Hs(c,"onBeforeInput"),0<R.length&&(x=new O$("onBeforeInput","beforeinput",null,n,s),d.push({event:x,listeners:R}),x.data=N)),MU(d,e,c,n,s)}p4(d,t)})}function El(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hs(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=xl(e,n),r!=null&&i.unshift(El(e,r,o)),r=xl(e,t),r!=null&&i.push(El(e,r,o))),e.tag===3)return i;e=e.return}return[]}function BU(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function z1(e,t,n,i,r){for(var o=t._reactName,a=[];n!==null&&n!==i;){var l=n,u=l.alternate,c=l.stateNode;if(l=l.tag,u!==null&&u===i)break;l!==5&&l!==26&&l!==27||c===null||(u=c,r?(c=xl(n,o),c!=null&&a.unshift(El(n,c,u))):r||(c=xl(n,o),c!=null&&a.push(El(n,c,u)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var LU=/\r\n?/g,PU=/\u0000|\uFFFD/g;function w1(e){return(typeof e=="string"?e:""+e).replace(LU,`
9
- `).replace(PU,"")}function v4(e,t){return t=w1(t),w1(e)===t}function ye(e,t,n,i,r,o){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Vo(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Vo(e,""+i);break;case"className":Yc(e,"class",i);break;case"tabIndex":Yc(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Yc(e,n,i);break;case"style":mk(e,i,o);break;case"data":if(t!=="object"){Yc(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=cs(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"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"&&(n==="formAction"?(t!=="input"&&ye(e,t,"name",r.name,r,null),ye(e,t,"formEncType",r.formEncType,r,null),ye(e,t,"formMethod",r.formMethod,r,null),ye(e,t,"formTarget",r.formTarget,r,null)):(ye(e,t,"encType",r.encType,r,null),ye(e,t,"method",r.method,r,null),ye(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=cs(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Kn);break;case"onScroll":i!=null&&ne("scroll",e);break;case"onScrollEnd":i!=null&&ne("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(k(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(k(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=cs(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ne("beforetoggle",e),ne("toggle",e),us(e,"popover",i);break;case"xlinkActuate":Vn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Vn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Vn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Vn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Vn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Vn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Vn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":us(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=yE.get(n)||n,us(e,n,i))}}function Ay(e,t,n,i,r,o){switch(n){case"style":mk(e,i,o);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(k(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(k(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Vo(e,i):(typeof i=="number"||typeof i=="bigint")&&Vo(e,""+i);break;case"onScroll":i!=null&&ne("scroll",e);break;case"onScrollEnd":i!=null&&ne("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Kn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!lk.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),o=e[jt]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof i=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):us(e,n,i)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ne("error",e),ne("load",e);var i=!1,r=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(k(137,t));default:ye(e,t,o,a,n,null)}}r&&ye(e,t,"srcSet",n.srcSet,n,null),i&&ye(e,t,"src",n.src,n,null);return;case"input":ne("invalid",e);var l=o=a=r=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(s!=null)switch(i){case"name":r=s;break;case"type":a=s;break;case"checked":u=s;break;case"defaultChecked":c=s;break;case"value":o=s;break;case"defaultValue":l=s;break;case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(k(137,t));break;default:ye(e,t,i,s,n,null)}}sk(e,o,l,u,c,a,r,!1);return;case"select":ne("invalid",e),i=a=o=null;for(r in n)if(n.hasOwnProperty(r)&&(l=n[r],l!=null))switch(r){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":i=l;default:ye(e,t,r,l,n,null)}t=o,n=a,e.multiple=!!i,t!=null?No(e,!!i,t,!1):n!=null&&No(e,!!i,n,!0);return;case"textarea":ne("invalid",e),o=r=i=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":i=l;break;case"defaultValue":r=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(k(91));break;default:ye(e,t,a,l,n,null)}fk(e,i,r,o);return;case"option":for(u in n)n.hasOwnProperty(u)&&(i=n[u],i!=null)&&(u==="selected"?e.selected=i&&typeof i!="function"&&typeof i!="symbol":ye(e,t,u,i,n,null));return;case"dialog":ne("beforetoggle",e),ne("toggle",e),ne("cancel",e),ne("close",e);break;case"iframe":case"object":ne("load",e);break;case"video":case"audio":for(i=0;i<Dl.length;i++)ne(Dl[i],e);break;case"image":ne("error",e),ne("load",e);break;case"details":ne("toggle",e);break;case"embed":case"source":case"link":ne("error",e),ne("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(k(137,t));default:ye(e,t,c,i,n,null)}return;default:if(Fy(t)){for(s in n)n.hasOwnProperty(s)&&(i=n[s],i!==void 0&&Ay(e,t,s,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(i=n[l],i!=null&&ye(e,t,l,i,n,null))}function VU(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,a=null,l=null,u=null,c=null,s=null;for(m in n){var d=n[m];if(n.hasOwnProperty(m)&&d!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=d;default:i.hasOwnProperty(m)||ye(e,t,m,null,i,d)}}for(var f in i){var m=i[f];if(d=n[f],i.hasOwnProperty(f)&&(m!=null||d!=null))switch(f){case"type":o=m;break;case"name":r=m;break;case"checked":c=m;break;case"defaultChecked":s=m;break;case"value":a=m;break;case"defaultValue":l=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(k(137,t));break;default:m!==d&&ye(e,t,f,m,i,d)}}iy(e,a,l,u,c,s,o,r);return;case"select":m=a=l=f=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||ye(e,t,o,null,i,u)}for(r in i)if(o=i[r],u=n[r],i.hasOwnProperty(r)&&(o!=null||u!=null))switch(r){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==u&&ye(e,t,r,o,i,u)}t=l,n=a,i=m,f!=null?No(e,!!n,f,!1):!!i!=!!n&&(t!=null?No(e,!!n,t,!0):No(e,!!n,n?[]:"",!1));return;case"textarea":m=f=null;for(l in n)if(r=n[l],n.hasOwnProperty(l)&&r!=null&&!i.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:ye(e,t,l,null,i,r)}for(a in i)if(r=i[a],o=n[a],i.hasOwnProperty(a)&&(r!=null||o!=null))switch(a){case"value":f=r;break;case"defaultValue":m=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(k(91));break;default:r!==o&&ye(e,t,a,r,i,o)}dk(e,f,m);return;case"option":for(var S in n)f=n[S],n.hasOwnProperty(S)&&f!=null&&!i.hasOwnProperty(S)&&(S==="selected"?e.selected=!1:ye(e,t,S,null,i,f));for(u in i)f=i[u],m=n[u],i.hasOwnProperty(u)&&f!==m&&(f!=null||m!=null)&&(u==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":ye(e,t,u,f,i,m));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 $ in n)f=n[$],n.hasOwnProperty($)&&f!=null&&!i.hasOwnProperty($)&&ye(e,t,$,null,i,f);for(c in i)if(f=i[c],m=n[c],i.hasOwnProperty(c)&&f!==m&&(f!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(k(137,t));break;default:ye(e,t,c,f,i,m)}return;default:if(Fy(t)){for(var C in n)f=n[C],n.hasOwnProperty(C)&&f!==void 0&&!i.hasOwnProperty(C)&&Ay(e,t,C,void 0,i,f);for(s in i)f=i[s],m=n[s],!i.hasOwnProperty(s)||f===m||f===void 0&&m===void 0||Ay(e,t,s,f,i,m);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!i.hasOwnProperty(v)&&ye(e,t,v,null,i,f);for(d in i)f=i[d],m=n[d],!i.hasOwnProperty(d)||f===m||f==null&&m==null||ye(e,t,d,f,i,m)}function T1(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qU(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],o=r.transferSize,a=r.initiatorType,l=r.duration;if(o&&l&&T1(a)){for(a=0,l=r.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>l)break;var s=u.transferSize,d=u.initiatorType;s&&T1(d)&&(u=u.responseEnd,a+=s*(u<l?1:(l-c)/(u-c)))}if(--i,t+=8*(o+a)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cy=null,Ny=null;function Gs(e){return e.nodeType===9?e:e.ownerDocument}function D1(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function h4(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Iy(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gh=null;function HU(){var e=window.event;return e&&e.type==="popstate"?e===Gh?!1:(Gh=e,!0):(Gh=null,!1)}var y4=typeof setTimeout=="function"?setTimeout:void 0,GU=typeof clearTimeout=="function"?clearTimeout:void 0,E1=typeof Promise=="function"?Promise:void 0,JU=typeof queueMicrotask=="function"?queueMicrotask:typeof E1<"u"?function(e){return E1.resolve(null).then(e).catch(YU)}:y4;function YU(e){setTimeout(function(){throw e})}function Yr(e){return e==="head"}function U1(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),Ko(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")yl(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,yl(n);for(var o=n.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[Zl]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&yl(e.ownerDocument.body);n=r}while(n);Ko(t)}function j1(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Zy(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zy(n),Yy(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function FU(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Zl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function XU(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function b4(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=cn(e.nextSibling),e===null))return null;return e}function My(e){return e.data==="$?"||e.data==="$~"}function Ry(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function KU(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var By=null;function O1(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return cn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function A1(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function x4(e,t,n){switch(t=Gs(n),e){case"html":if(e=t.documentElement,!e)throw Error(k(452));return e;case"head":if(e=t.head,!e)throw Error(k(453));return e;case"body":if(e=t.body,!e)throw Error(k(454));return e;default:throw Error(k(451))}}function yl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Yy(e)}var sn=new Map,C1=new Set;function Js(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var lr=ue.d;ue.d={f:QU,r:WU,D:ej,C:tj,L:nj,m:rj,X:oj,S:ij,M:aj};function QU(){var e=lr.f(),t=sd();return e||t}function WU(e){var t=Wo(e);t!==null&&t.tag===5&&t.type==="form"?mz(t):lr.r(e)}var ra=typeof document>"u"?null:document;function _4(e,t,n){var i=ra;if(i&&typeof t=="string"&&t){var r=on(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),C1.has(r)||(C1.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),st(t,"link",e),et(t),i.head.appendChild(t)))}}function ej(e){lr.D(e),_4("dns-prefetch",e,null)}function tj(e,t){lr.C(e,t),_4("preconnect",e,t)}function nj(e,t,n){lr.L(e,t,n);var i=ra;if(i&&e&&t){var r='link[rel="preload"][as="'+on(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+on(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+on(n.imageSizes)+'"]')):r+='[href="'+on(e)+'"]';var o=r;switch(t){case"style":o=Xo(e);break;case"script":o=ia(e)}sn.has(o)||(e=Ue({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),sn.set(o,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(Vl(o))||t==="script"&&i.querySelector(ql(o))||(t=i.createElement("link"),st(t,"link",e),et(t),i.head.appendChild(t)))}}function rj(e,t){lr.m(e,t);var n=ra;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+on(i)+'"][href="'+on(e)+'"]',o=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ia(e)}if(!sn.has(o)&&(e=Ue({rel:"modulepreload",href:e},t),sn.set(o,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ql(o)))return}i=n.createElement("link"),st(i,"link",e),et(i),n.head.appendChild(i)}}}function ij(e,t,n){lr.S(e,t,n);var i=ra;if(i&&e){var r=Co(i).hoistableStyles,o=Xo(e);t=t||"default";var a=r.get(o);if(!a){var l={loading:0,preload:null};if(a=i.querySelector(Vl(o)))l.loading=5;else{e=Ue({rel:"stylesheet",href:e,"data-precedence":t},n),(n=sn.get(o))&&Ab(e,n);var u=a=i.createElement("link");et(u),st(u,"link",e),u._p=new Promise(function(c,s){u.onload=c,u.onerror=s}),u.addEventListener("load",function(){l.loading|=1}),u.addEventListener("error",function(){l.loading|=2}),l.loading|=4,bs(a,t,i)}a={type:"stylesheet",instance:a,count:1,state:l},r.set(o,a)}}}function oj(e,t){lr.X(e,t);var n=ra;if(n&&e){var i=Co(n).hoistableScripts,r=ia(e),o=i.get(r);o||(o=n.querySelector(ql(r)),o||(e=Ue({src:e,async:!0},t),(t=sn.get(r))&&Cb(e,t),o=n.createElement("script"),et(o),st(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function aj(e,t){lr.M(e,t);var n=ra;if(n&&e){var i=Co(n).hoistableScripts,r=ia(e),o=i.get(r);o||(o=n.querySelector(ql(r)),o||(e=Ue({src:e,async:!0,type:"module"},t),(t=sn.get(r))&&Cb(e,t),o=n.createElement("script"),et(o),st(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(r,o))}}function N1(e,t,n,i){var r=(r=Cr.current)?Js(r):null;if(!r)throw Error(k(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Xo(n.href),n=Co(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Xo(n.href);var o=Co(r).hoistableStyles,a=o.get(e);if(a||(r=r.ownerDocument||r,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=r.querySelector(Vl(e)))&&!o._p&&(a.instance=o,a.state.loading=5),sn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},sn.set(e,n),o||lj(r,e,n,a.state))),t&&i===null)throw Error(k(528,""));return a}if(t&&i!==null)throw Error(k(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ia(n),n=Co(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(k(444,e))}}function Xo(e){return'href="'+on(e)+'"'}function Vl(e){return'link[rel="stylesheet"]['+e+"]"}function S4(e){return Ue({},e,{"data-precedence":e.precedence,precedence:null})}function lj(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),st(t,"link",n),et(t),e.head.appendChild(t))}function ia(e){return'[src="'+on(e)+'"]'}function ql(e){return"script[async]"+e}function I1(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+on(n.href)+'"]');if(i)return t.instance=i,et(i),i;var r=Ue({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),et(i),st(i,"style",r),bs(i,n.precedence,e),t.instance=i;case"stylesheet":r=Xo(n.href);var o=e.querySelector(Vl(r));if(o)return t.state.loading|=4,t.instance=o,et(o),o;i=S4(n),(r=sn.get(r))&&Ab(i,r),o=(e.ownerDocument||e).createElement("link"),et(o);var a=o;return a._p=new Promise(function(l,u){a.onload=l,a.onerror=u}),st(o,"link",i),t.state.loading|=4,bs(o,n.precedence,e),t.instance=o;case"script":return o=ia(n.src),(r=e.querySelector(ql(o)))?(t.instance=r,et(r),r):(i=n,(r=sn.get(o))&&(i=Ue({},n),Cb(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),et(r),st(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(k(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,bs(i,n.precedence,e));return t.instance}function bs(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,o=r,a=0;a<i.length;a++){var l=i[a];if(l.dataset.precedence===t)o=l;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Ab(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Cb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xs=null;function Z1(e,t,n){if(xs===null){var i=new Map,r=xs=new Map;r.set(n,i)}else r=xs,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var o=n[r];if(!(o[Zl]||o[lt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=i.get(a);l?l.push(o):i.set(a,[o])}}return i}function M1(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function uj(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function $4(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function cj(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=Xo(i.href),o=t.querySelector(Vl(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ys.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,et(o);return}o=t.ownerDocument||t,i=S4(i),(r=sn.get(r))&&Ab(i,r),o=o.createElement("link"),et(o);var a=o;a._p=new Promise(function(l,u){a.onload=l,a.onerror=u}),st(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ys.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Jh=0;function sj(e,t){return e.stylesheets&&e.count===0&&_s(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Jh===0&&(Jh=62500*qU());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&_s(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Jh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fs=null;function _s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fs=new Map,t.forEach(dj,e),Fs=null,Ys.call(e))}function dj(e,t){if(!(t.state.loading&4)){var n=Fs.get(e);if(n)var i=n.get(null);else{n=new Map,Fs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var a=r[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),i=a)}i&&n.set(null,i)}r=t.instance,a=r.getAttribute("data-precedence"),o=n.get(a)||i,o===i&&n.set(null,r),n.set(a,r),this.count++,i=Ys.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ul={$$typeof:Xn,Provider:null,Consumer:null,_currentValue:di,_currentValue2:di,_threadCount:0};function fj(e,t,n,i,r,o,a,l,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bh(0),this.hiddenUpdates=bh(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function k4(e,t,n,i,r,o,a,l,u,c,s,d){return e=new fj(e,t,n,a,u,c,s,d,l),t=1,o===!0&&(t|=24),o=Mt(3,null,null,t),e.current=o,o.stateNode=e,t=ab(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},cb(o),e}function z4(e){return e?(e=Uo,e):Uo}function w4(e,t,n,i,r,o){r=z4(r),i.context===null?i.context=r:i.pendingContext=r,i=Ir(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=Zr(e,i,t),n!==null&&(Ut(n,e,t),sl(n,e,t))}function R1(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Nb(e,t){R1(e,t),(e=e.alternate)&&R1(e,t)}function T4(e){if(e.tag===13||e.tag===31){var t=ki(e,67108864);t!==null&&Ut(t,e,67108864),Nb(e,67108864)}}function B1(e){if(e.tag===13||e.tag===31){var t=Vt();t=Gy(t);var n=ki(e,t);n!==null&&Ut(n,e,t),Nb(e,t)}}var Xs=!0;function mj(e,t,n,i){var r=V.T;V.T=null;var o=ue.p;try{ue.p=2,Ib(e,t,n,i)}finally{ue.p=o,V.T=r}}function pj(e,t,n,i){var r=V.T;V.T=null;var o=ue.p;try{ue.p=8,Ib(e,t,n,i)}finally{ue.p=o,V.T=r}}function Ib(e,t,n,i){if(Xs){var r=Ly(i);if(r===null)Hh(e,t,i,Ks,n),L1(e,i);else if(vj(r,e,t,n,i))i.stopPropagation();else if(L1(e,i),t&4&&-1<gj.indexOf(e)){for(;r!==null;){var o=Wo(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=ui(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var u=1<<31-Pt(a);l.entanglements[1]|=u,a&=~u}An(o),(le&6)===0&&(Bs=Bt()+500,Pl(0,!1))}}break;case 31:case 13:l=ki(o,2),l!==null&&Ut(l,o,2),sd(),Nb(o,2)}if(o=Ly(i),o===null&&Hh(e,t,i,Ks,n),o===r)break;r=o}r!==null&&i.stopPropagation()}else Hh(e,t,i,null,n)}}function Ly(e){return e=Xy(e),Zb(e)}var Ks=null;function Zb(e){if(Ks=null,e=ko(e),e!==null){var t=Al(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=J1(t),e!==null)return e;e=null}else if(n===31){if(e=Y1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ks=e,null}function D4(e){switch(e){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 2;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 8;case"message":switch(nE()){case Q1:return 2;case W1:return 8;case ws:case rE:return 32;case ek:return 268435456;default:return 32}default:return 32}}var Py=!1,Br=null,Lr=null,Pr=null,jl=new Map,Ol=new Map,Dr=[],gj="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(" ");function L1(e,t){switch(e){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Lr=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":jl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ol.delete(t.pointerId)}}function Wa(e,t,n,i,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Wo(t),t!==null&&T4(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function vj(e,t,n,i,r){switch(t){case"focusin":return Br=Wa(Br,e,t,n,i,r),!0;case"dragenter":return Lr=Wa(Lr,e,t,n,i,r),!0;case"mouseover":return Pr=Wa(Pr,e,t,n,i,r),!0;case"pointerover":var o=r.pointerId;return jl.set(o,Wa(jl.get(o)||null,e,t,n,i,r)),!0;case"gotpointercapture":return o=r.pointerId,Ol.set(o,Wa(Ol.get(o)||null,e,t,n,i,r)),!0}return!1}function E4(e){var t=ko(e.target);if(t!==null){var n=Al(t);if(n!==null){if(t=n.tag,t===13){if(t=J1(n),t!==null){e.blockedOn=t,k$(e.priority,function(){B1(n)});return}}else if(t===31){if(t=Y1(n),t!==null){e.blockedOn=t,k$(e.priority,function(){B1(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ly(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);ay=i,n.target.dispatchEvent(i),ay=null}else return t=Wo(n),t!==null&&T4(t),e.blockedOn=n,!1;t.shift()}return!0}function P1(e,t,n){Ss(e)&&n.delete(t)}function hj(){Py=!1,Br!==null&&Ss(Br)&&(Br=null),Lr!==null&&Ss(Lr)&&(Lr=null),Pr!==null&&Ss(Pr)&&(Pr=null),jl.forEach(P1),Ol.forEach(P1)}function as(e,t){e.blockedOn===t&&(e.blockedOn=null,Py||(Py=!0,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,hj)))}var ls=null;function V1(e){ls!==e&&(ls=e,Qe.unstable_scheduleCallback(Qe.unstable_NormalPriority,function(){ls===e&&(ls=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(Zb(i||n)===null)continue;break}var o=Wo(n);o!==null&&(e.splice(t,3),t-=3,Sy(o,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function Ko(e){function t(u){return as(u,e)}Br!==null&&as(Br,e),Lr!==null&&as(Lr,e),Pr!==null&&as(Pr,e),jl.forEach(t),Ol.forEach(t);for(var n=0;n<Dr.length;n++){var i=Dr[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Dr.length&&(n=Dr[0],n.blockedOn===null);)E4(n),n.blockedOn===null&&Dr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],o=n[i+1],a=r[jt]||null;if(typeof o=="function")a||V1(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(r=o,a=o[jt]||null)l=a.formAction;else if(Zb(r)!==null)continue}else l=a.action;typeof l=="function"?n[i+1]=l:(n.splice(i,3),i-=3),V1(n)}}}function U4(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return r=a})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!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 i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function Mb(e){this._internalRoot=e}md.prototype.render=Mb.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(k(409));var n=t.current,i=Vt();w4(n,i,e,t,null,null)};md.prototype.unmount=Mb.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;w4(e.current,2,null,e,null,null),sd(),t[Qo]=null}};function md(e){this._internalRoot=e}md.prototype.unstable_scheduleHydration=function(e){if(e){var t=ok();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dr.length&&t!==0&&t<Dr[n].priority;n++);Dr.splice(n,0,e),n===0&&E4(e)}};var q1=H1.version;if(q1!=="19.2.8")throw Error(k(527,q1,"19.2.8"));ue.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(k(188)):(e=Object.keys(e).join(","),Error(k(268,e)));return e=FD(t),e=e!==null?F1(e):null,e=e===null?null:e.stateNode,e};var yj={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(el=__REACT_DEVTOOLS_GLOBAL_HOOK__,!el.isDisabled&&el.supportsFiber))try{Cl=el.inject(yj),Lt=el}catch{}var el;pd.createRoot=function(e,t){if(!G1(e))throw Error(k(299));var n=!1,i="",r=_z,o=Sz,a=$z;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=k4(e,1,!1,null,null,n,i,null,r,o,a,U4),e[Qo]=t.current,Ob(e),new Mb(t)};pd.hydrateRoot=function(e,t,n){if(!G1(e))throw Error(k(299));var i=!1,r="",o=_z,a=Sz,l=$z,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=k4(e,1,!0,t,n??null,i,r,u,o,a,l,U4),t.context=z4(null),n=t.current,i=Vt(),i=Gy(i),r=Ir(i),r.callback=null,Zr(n,r,i),n=i,t.current.lanes=n,Il(t,n),An(t),e[Qo]=t.current,Ob(e),new md(t)};pd.version="19.2.8"});var C4=bn((QI,A4)=>{"use strict";function O4(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(O4)}catch(e){console.error(e)}}O4(),A4.exports=j4()});var ke=H(de(),1);var Jl={id:"code",name:"Code",description:"Full access: read, edit, run commands, and use MCP tools.",groups:["read","edit","command","mcp","always"]},rx={id:"ask",name:"Ask",description:"Read-only: inspect the workspace and answer questions. Cannot edit or run commands.",groups:["read","mcp","always"]},Yl=[Jl,rx],Sd=Jl.id;function $d(e){return Yl.find(t=>t.id===e)??Jl}var A={};In(A,{$brand:()=>zd,$input:()=>Jm,$output:()=>Gm,NEVER:()=>kd,TimePrecision:()=>Km,ZodAny:()=>Bg,ZodArray:()=>qg,ZodBase64:()=>_c,ZodBase64URL:()=>Sc,ZodBigInt:()=>io,ZodBigIntFormat:()=>zc,ZodBoolean:()=>ro,ZodCIDRv4:()=>bc,ZodCIDRv6:()=>xc,ZodCUID:()=>fc,ZodCUID2:()=>mc,ZodCatch:()=>fv,ZodCodec:()=>Za,ZodCustom:()=>Ma,ZodCustomStringFormat:()=>to,ZodDate:()=>Oa,ZodDefault:()=>av,ZodDiscriminatedUnion:()=>Gg,ZodE164:()=>$c,ZodEmail:()=>cc,ZodEmoji:()=>sc,ZodEnum:()=>Wi,ZodError:()=>A2,ZodExactOptional:()=>rv,ZodFile:()=>tv,ZodFirstPartyTypeKind:()=>zv,ZodFunction:()=>Sv,ZodGUID:()=>Ta,ZodIPv4:()=>hc,ZodIPv6:()=>yc,ZodISODate:()=>rc,ZodISODateTime:()=>nc,ZodISODuration:()=>oc,ZodISOTime:()=>ic,ZodIntersection:()=>Jg,ZodIssueCode:()=>N2,ZodJWT:()=>kc,ZodKSUID:()=>vc,ZodLazy:()=>bv,ZodLiteral:()=>ev,ZodMAC:()=>Ag,ZodMap:()=>Qg,ZodNaN:()=>pv,ZodNanoID:()=>dc,ZodNever:()=>Pg,ZodNonOptional:()=>jc,ZodNull:()=>Mg,ZodNullable:()=>ov,ZodNumber:()=>no,ZodNumberFormat:()=>ii,ZodObject:()=>Ca,ZodOptional:()=>Uc,ZodPipe:()=>Ia,ZodPrefault:()=>uv,ZodPreprocess:()=>gv,ZodPromise:()=>_v,ZodReadonly:()=>vv,ZodRealError:()=>$t,ZodRecord:()=>Qi,ZodSet:()=>Wg,ZodString:()=>eo,ZodStringFormat:()=>ge,ZodSuccess:()=>dv,ZodSymbol:()=>Ig,ZodTemplateLiteral:()=>yv,ZodTransform:()=>nv,ZodTuple:()=>Fg,ZodType:()=>K,ZodULID:()=>pc,ZodURL:()=>ja,ZodUUID:()=>$n,ZodUndefined:()=>Zg,ZodUnion:()=>Na,ZodUnknown:()=>Lg,ZodVoid:()=>Vg,ZodXID:()=>gc,ZodXor:()=>Hg,_ZodString:()=>uc,_default:()=>lv,_function:()=>HS,any:()=>SS,array:()=>Aa,base64:()=>oS,base64url:()=>aS,bigint:()=>hS,boolean:()=>Ng,catch:()=>mv,check:()=>GS,cidrv4:()=>rS,cidrv6:()=>iS,clone:()=>mt,codec:()=>LS,coerce:()=>wv,config:()=>Ze,core:()=>Rn,cuid:()=>F_,cuid2:()=>X_,custom:()=>JS,date:()=>kS,decode:()=>wg,decodeAsync:()=>Dg,describe:()=>YS,discriminatedUnion:()=>US,e164:()=>lS,email:()=>R_,emoji:()=>J_,encode:()=>zg,encodeAsync:()=>Tg,endsWith:()=>Pi,enum:()=>Dc,exactOptional:()=>iv,file:()=>ZS,flattenError:()=>ma,float32:()=>mS,float64:()=>pS,formatError:()=>pa,fromJSONSchema:()=>t0,function:()=>HS,getErrorMap:()=>Z2,globalRegistry:()=>nt,gt:()=>_n,gte:()=>gt,guid:()=>B_,hash:()=>fS,hex:()=>dS,hostname:()=>sS,httpUrl:()=>G_,includes:()=>Bi,instanceof:()=>XS,int:()=>ac,int32:()=>gS,int64:()=>yS,intersection:()=>Yg,invertCodec:()=>PS,ipv4:()=>eS,ipv6:()=>nS,iso:()=>Ki,json:()=>QS,jwt:()=>uS,keyof:()=>zS,ksuid:()=>W_,lazy:()=>xv,length:()=>ni,literal:()=>IS,locales:()=>Sa,looseObject:()=>DS,looseRecord:()=>OS,lowercase:()=>Mi,lt:()=>xn,lte:()=>Ct,mac:()=>tS,map:()=>AS,maxLength:()=>ti,maxSize:()=>gr,meta:()=>FS,mime:()=>Vi,minLength:()=>Mn,minSize:()=>Sn,multipleOf:()=>pr,nan:()=>BS,nanoid:()=>Y_,nativeEnum:()=>NS,negative:()=>Gu,never:()=>wc,nonnegative:()=>Yu,nonoptional:()=>sv,nonpositive:()=>Ju,normalize:()=>qi,null:()=>Rg,nullable:()=>Ea,nullish:()=>MS,number:()=>Cg,object:()=>wS,optional:()=>Da,overwrite:()=>fn,parse:()=>_g,parseAsync:()=>Sg,partialRecord:()=>jS,pipe:()=>lc,positive:()=>Hu,prefault:()=>cv,preprocess:()=>WS,prettifyError:()=>Md,promise:()=>qS,property:()=>Fu,readonly:()=>hv,record:()=>Kg,refine:()=>$v,regex:()=>Zi,regexes:()=>At,registry:()=>ku,safeDecode:()=>Ug,safeDecodeAsync:()=>Og,safeEncode:()=>Eg,safeEncodeAsync:()=>jg,safeParse:()=>$g,safeParseAsync:()=>kg,set:()=>CS,setErrorMap:()=>I2,size:()=>ei,slugify:()=>Yi,startsWith:()=>Li,strictObject:()=>TS,string:()=>wa,stringFormat:()=>cS,stringbool:()=>KS,success:()=>RS,superRefine:()=>kv,symbol:()=>xS,templateLiteral:()=>VS,toJSONSchema:()=>Wu,toLowerCase:()=>Gi,toUpperCase:()=>Ji,transform:()=>Ec,treeifyError:()=>Zd,trim:()=>Hi,tuple:()=>Xg,uint32:()=>vS,uint64:()=>bS,ulid:()=>K_,undefined:()=>_S,union:()=>Tc,unknown:()=>ri,uppercase:()=>Ri,url:()=>H_,util:()=>D,uuid:()=>L_,uuidv4:()=>P_,uuidv6:()=>V_,uuidv7:()=>q_,void:()=>$S,xid:()=>Q_,xor:()=>ES});var Rn={};In(Rn,{$ZodAny:()=>pm,$ZodArray:()=>bm,$ZodAsyncError:()=>dn,$ZodBase64:()=>im,$ZodBase64URL:()=>om,$ZodBigInt:()=>vu,$ZodBigIntFormat:()=>sm,$ZodBoolean:()=>ya,$ZodCIDRv4:()=>tm,$ZodCIDRv6:()=>nm,$ZodCUID:()=>Vf,$ZodCUID2:()=>qf,$ZodCatch:()=>Zm,$ZodCheck:()=>xe,$ZodCheckBigIntFormat:()=>bf,$ZodCheckEndsWith:()=>jf,$ZodCheckGreaterThan:()=>su,$ZodCheckIncludes:()=>Ef,$ZodCheckLengthEquals:()=>zf,$ZodCheckLessThan:()=>cu,$ZodCheckLowerCase:()=>Tf,$ZodCheckMaxLength:()=>$f,$ZodCheckMaxSize:()=>xf,$ZodCheckMimeType:()=>Af,$ZodCheckMinLength:()=>kf,$ZodCheckMinSize:()=>_f,$ZodCheckMultipleOf:()=>hf,$ZodCheckNumberFormat:()=>yf,$ZodCheckOverwrite:()=>Cf,$ZodCheckProperty:()=>Of,$ZodCheckRegex:()=>wf,$ZodCheckSizeEquals:()=>Sf,$ZodCheckStartsWith:()=>Uf,$ZodCheckStringFormat:()=>Ni,$ZodCheckUpperCase:()=>Df,$ZodCodec:()=>xa,$ZodCustom:()=>Hm,$ZodCustomStringFormat:()=>um,$ZodDate:()=>ym,$ZodDefault:()=>Am,$ZodDiscriminatedUnion:()=>Sm,$ZodE164:()=>am,$ZodEmail:()=>Rf,$ZodEmoji:()=>Lf,$ZodEncodeError:()=>cr,$ZodEnum:()=>Tm,$ZodError:()=>fa,$ZodExactOptional:()=>jm,$ZodFile:()=>Em,$ZodFunction:()=>Pm,$ZodGUID:()=>Zf,$ZodIPv4:()=>Qf,$ZodIPv6:()=>Wf,$ZodISODate:()=>Ff,$ZodISODateTime:()=>Yf,$ZodISODuration:()=>Kf,$ZodISOTime:()=>Xf,$ZodIntersection:()=>$m,$ZodJWT:()=>lm,$ZodKSUID:()=>Jf,$ZodLazy:()=>qm,$ZodLiteral:()=>Dm,$ZodMAC:()=>em,$ZodMap:()=>zm,$ZodNaN:()=>Mm,$ZodNanoID:()=>Pf,$ZodNever:()=>vm,$ZodNonOptional:()=>Nm,$ZodNull:()=>mm,$ZodNullable:()=>Om,$ZodNumber:()=>gu,$ZodNumberFormat:()=>cm,$ZodObject:()=>Cx,$ZodObjectJIT:()=>xm,$ZodOptional:()=>yu,$ZodPipe:()=>bu,$ZodPrefault:()=>Cm,$ZodPreprocess:()=>Rm,$ZodPromise:()=>Vm,$ZodReadonly:()=>Bm,$ZodRealError:()=>St,$ZodRecord:()=>km,$ZodRegistry:()=>$u,$ZodSet:()=>wm,$ZodString:()=>Wr,$ZodStringFormat:()=>pe,$ZodSuccess:()=>Im,$ZodSymbol:()=>dm,$ZodTemplateLiteral:()=>Lm,$ZodTransform:()=>Um,$ZodTuple:()=>hu,$ZodType:()=>G,$ZodULID:()=>Hf,$ZodURL:()=>Bf,$ZodUUID:()=>Mf,$ZodUndefined:()=>fm,$ZodUnion:()=>ba,$ZodUnknown:()=>gm,$ZodVoid:()=>hm,$ZodXID:()=>Gf,$ZodXor:()=>_m,$brand:()=>zd,$constructor:()=>y,$input:()=>Jm,$output:()=>Gm,Doc:()=>ha,JSONSchema:()=>I_,JSONSchemaGenerator:()=>ec,NEVER:()=>kd,TimePrecision:()=>Km,_any:()=>yp,_array:()=>zp,_base64:()=>Lu,_base64url:()=>Pu,_bigint:()=>dp,_boolean:()=>cp,_catch:()=>z2,_check:()=>N_,_cidrv4:()=>Ru,_cidrv6:()=>Bu,_coercedBigint:()=>fp,_coercedBoolean:()=>sp,_coercedDate:()=>$p,_coercedNumber:()=>rp,_coercedString:()=>Fm,_cuid:()=>Ou,_cuid2:()=>Au,_custom:()=>Tp,_date:()=>Sp,_decode:()=>eu,_decodeAsync:()=>nu,_default:()=>S2,_discriminatedUnion:()=>s2,_e164:()=>Vu,_email:()=>zu,_emoji:()=>Uu,_encode:()=>Wl,_encodeAsync:()=>tu,_endsWith:()=>Pi,_enum:()=>v2,_file:()=>wp,_float32:()=>op,_float64:()=>ap,_gt:()=>_n,_gte:()=>gt,_guid:()=>$a,_includes:()=>Bi,_int:()=>ip,_int32:()=>lp,_int64:()=>mp,_intersection:()=>d2,_ipv4:()=>Zu,_ipv6:()=>Mu,_isoDate:()=>Wm,_isoDateTime:()=>Qm,_isoDuration:()=>tp,_isoTime:()=>ep,_jwt:()=>qu,_ksuid:()=>Iu,_lazy:()=>E2,_length:()=>ni,_literal:()=>y2,_lowercase:()=>Mi,_lt:()=>xn,_lte:()=>Ct,_mac:()=>Xm,_map:()=>p2,_max:()=>Ct,_maxLength:()=>ti,_maxSize:()=>gr,_mime:()=>Vi,_min:()=>gt,_minLength:()=>Mn,_minSize:()=>Sn,_multipleOf:()=>pr,_nan:()=>kp,_nanoid:()=>ju,_nativeEnum:()=>h2,_negative:()=>Gu,_never:()=>xp,_nonnegative:()=>Yu,_nonoptional:()=>$2,_nonpositive:()=>Ju,_normalize:()=>qi,_null:()=>hp,_nullable:()=>_2,_number:()=>np,_optional:()=>x2,_overwrite:()=>fn,_parse:()=>ji,_parseAsync:()=>Oi,_pipe:()=>w2,_positive:()=>Hu,_promise:()=>U2,_property:()=>Fu,_readonly:()=>T2,_record:()=>m2,_refine:()=>Dp,_regex:()=>Zi,_safeDecode:()=>iu,_safeDecodeAsync:()=>au,_safeEncode:()=>ru,_safeEncodeAsync:()=>ou,_safeParse:()=>Ai,_safeParseAsync:()=>Ci,_set:()=>g2,_size:()=>ei,_slugify:()=>Yi,_startsWith:()=>Li,_string:()=>Ym,_stringFormat:()=>Fi,_stringbool:()=>Op,_success:()=>k2,_superRefine:()=>Ep,_symbol:()=>gp,_templateLiteral:()=>D2,_toLowerCase:()=>Gi,_toUpperCase:()=>Ji,_transform:()=>b2,_trim:()=>Hi,_tuple:()=>f2,_uint32:()=>up,_uint64:()=>pp,_ulid:()=>Cu,_undefined:()=>vp,_union:()=>u2,_unknown:()=>bp,_uppercase:()=>Ri,_url:()=>ka,_uuid:()=>wu,_uuidv4:()=>Tu,_uuidv6:()=>Du,_uuidv7:()=>Eu,_void:()=>_p,_xid:()=>Nu,_xor:()=>c2,clone:()=>mt,config:()=>Ze,createStandardJSONSchemaMethod:()=>Xi,createToJSONSchemaMethod:()=>Ap,decode:()=>U6,decodeAsync:()=>O6,describe:()=>Up,encode:()=>E6,encodeAsync:()=>j6,extractDefs:()=>hr,finalize:()=>yr,flattenError:()=>ma,formatError:()=>pa,globalConfig:()=>Xr,globalRegistry:()=>nt,initializeContext:()=>vr,isValidBase64:()=>rm,isValidBase64URL:()=>Ux,isValidJWT:()=>jx,locales:()=>Sa,meta:()=>jp,parse:()=>Kl,parseAsync:()=>Ql,prettifyError:()=>Md,process:()=>ce,regexes:()=>At,registry:()=>ku,safeDecode:()=>C6,safeDecodeAsync:()=>I6,safeEncode:()=>A6,safeEncodeAsync:()=>N6,safeParse:()=>Rd,safeParseAsync:()=>Bd,toDotPath:()=>cx,toJSONSchema:()=>Wu,treeifyError:()=>Zd,util:()=>D,version:()=>Nf});var ix,kd=Object.freeze({status:"aborted"});function y(e,t,n){function i(l,u){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,u);let c=a.prototype,s=Object.keys(c);for(let d=0;d<s.length;d++){let f=s[d];f in l||(l[f]=c[f].bind(l))}}let r=n?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function a(l){var u;let c=n?.Parent?new o:this;i(c,l),(u=c._zod).deferred??(u.deferred=[]);for(let s of c._zod.deferred)s();return c}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var zd=Symbol("zod_brand"),dn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},cr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(ix=globalThis).__zod_globalConfig??(ix.__zod_globalConfig={});var Xr=globalThis.__zod_globalConfig;function Ze(e){return e&&Object.assign(Xr,e),Xr}var D={};In(D,{BIGINT_FORMAT_RANGES:()=>Nd,Class:()=>Td,NUMBER_FORMAT_RANGES:()=>Cd,aborted:()=>mr,allowsEval:()=>Ud,assert:()=>l6,assertEqual:()=>r6,assertIs:()=>o6,assertNever:()=>a6,assertNotEqual:()=>i6,assignProp:()=>dr,base64ToUint8Array:()=>ax,base64urlToUint8Array:()=>k6,cached:()=>Ei,captureStackTrace:()=>Xl,cleanEnum:()=>$6,cleanRegex:()=>ua,clone:()=>mt,cloneDef:()=>c6,createTransparentProxy:()=>g6,defineLazy:()=>W,esc:()=>Fl,escapeRegex:()=>Jt,explicitlyAborted:()=>Id,extend:()=>y6,finalizeIssue:()=>pt,floatSafeRemainder:()=>Dd,getElementAtPath:()=>s6,getEnumValues:()=>la,getLengthableOrigin:()=>da,getParsedType:()=>p6,getSizableOrigin:()=>sa,hexToUint8Array:()=>w6,isObject:()=>Kr,isPlainObject:()=>fr,issue:()=>Ui,joinValues:()=>_,jsonStringifyReplacer:()=>Di,merge:()=>x6,mergeDefs:()=>Zn,normalizeParams:()=>U,nullish:()=>sr,numKeys:()=>m6,objectClone:()=>u6,omit:()=>h6,optionalKeys:()=>Ad,parsedType:()=>T,partial:()=>_6,pick:()=>v6,prefixIssues:()=>_t,primitiveTypes:()=>Od,promiseAllObject:()=>d6,propertyKeyTypes:()=>ca,randomString:()=>f6,required:()=>S6,safeExtend:()=>b6,shallowClone:()=>jd,slugify:()=>Ed,stringifyPrimitive:()=>w,uint8ArrayToBase64:()=>lx,uint8ArrayToBase64url:()=>z6,uint8ArrayToHex:()=>T6,unwrapMessage:()=>aa});function r6(e){return e}function i6(e){return e}function o6(e){}function a6(e){throw new Error("Unexpected value in exhaustive check")}function l6(e){}function la(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}function _(e,t="|"){return e.map(n=>w(n)).join(t)}function Di(e,t){return typeof t=="bigint"?t.toString():t}function Ei(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function sr(e){return e==null}function ua(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Dd(e,t){let n=e/t,i=Math.round(n),r=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}var ox=Symbol("evaluating");function W(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==ox)return i===void 0&&(i=ox,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function u6(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function dr(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Zn(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function c6(e){return Zn(e._zod.def)}function s6(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}function d6(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=i[o];return r})}function f6(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}function Fl(e){return JSON.stringify(e)}function Ed(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Xl="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Ud=Ei(()=>{if(Xr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function fr(e){if(Kr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Kr(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function jd(e){return fr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function m6(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var p6=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},ca=new Set(["string","number","symbol"]),Od=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Jt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mt(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function U(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function g6(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,o){return t??(t=e()),Reflect.set(t,i,r,o)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}function w(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ad(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Cd={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Nd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function v6(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=Zn(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return dr(this,"shape",a),a},checks:[]});return mt(e,o)}function h6(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=Zn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return dr(this,"shape",a),a},checks:[]});return mt(e,o)}function y6(e,t){if(!fr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=Zn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return dr(this,"shape",o),o}});return mt(e,r)}function b6(e,t){if(!fr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=Zn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return dr(this,"shape",i),i}});return mt(e,n)}function x6(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=Zn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t._zod.def.shape};return dr(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return mt(e,n)}function _6(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Zn(t._zod.def,{get shape(){let l=t._zod.def.shape,u={...l};if(n)for(let c in n){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(u[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)u[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return dr(this,"shape",u),u},checks:[]});return mt(t,a)}function S6(e,t,n){let i=Zn(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)o[a]=new e({type:"nonoptional",innerType:r[a]});return dr(this,"shape",o),o}});return mt(t,i)}function mr(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Id(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function _t(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function aa(e){return typeof e=="string"?e:e?.message}function pt(e,t,n){let i=e.message?e.message:aa(e.inst?._zod.def?.error?.(e))??aa(t?.error?.(e))??aa(n.customError?.(e))??aa(n.localeError?.(e))??"Invalid input",{inst:r,continue:o,input:a,...l}=e;return l.path??(l.path=[]),l.message=i,t?.reportInput&&(l.input=a),l}function sa(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function da(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function T(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ui(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}function $6(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function ax(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}function lx(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function k6(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return ax(t+n)}function z6(e){return lx(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function w6(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}function T6(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Td=class{constructor(...t){}};var ux=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Di,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},fa=y("$ZodError",ux),St=y("$ZodError",ux,{Parent:Error});function ma(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}function pa(e,t=n=>n.message){let n={_errors:[]},i=(r,o=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>i({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(t(a));else{let u=n,c=0;for(;c<l.length;){let s=l[c];c===l.length-1?(u[s]=u[s]||{_errors:[]},u[s]._errors.push(t(a))):u[s]=u[s]||{_errors:[]},u=u[s],c++}}}};return i(e),n}function Zd(e,t=n=>n.message){let n={errors:[]},i=(r,o=[])=>{var a,l;for(let u of r.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(c=>i({issues:c},[...o,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...o,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...o,...u.path]);else{let c=[...o,...u.path];if(c.length===0){n.errors.push(t(u));continue}let s=n,d=0;for(;d<c.length;){let f=c[d],m=d===c.length-1;typeof f=="string"?(s.properties??(s.properties={}),(a=s.properties)[f]??(a[f]={errors:[]}),s=s.properties[f]):(s.items??(s.items=[]),(l=s.items)[f]??(l[f]={errors:[]}),s=s.items[f]),m&&s.errors.push(t(u)),d++}}};return i(e),n}function cx(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}function Md(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${cx(i.path)}`);return t.join(`
10
- `)}var ji=e=>(t,n,i,r)=>{let o=i?{...i,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new dn;if(a.issues.length){let l=new(r?.Err??e)(a.issues.map(u=>pt(u,o,Ze())));throw Xl(l,r?.callee),l}return a.value},Kl=ji(St),Oi=e=>async(t,n,i,r)=>{let o=i?{...i,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(r?.Err??e)(a.issues.map(u=>pt(u,o,Ze())));throw Xl(l,r?.callee),l}return a.value},Ql=Oi(St),Ai=e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},r);if(o instanceof Promise)throw new dn;return o.issues.length?{success:!1,error:new(e??fa)(o.issues.map(a=>pt(a,r,Ze())))}:{success:!0,data:o.value}},Rd=Ai(St),Ci=e=>async(t,n,i)=>{let r=i?{...i,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>pt(a,r,Ze())))}:{success:!0,data:o.value}},Bd=Ci(St),Wl=e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return ji(e)(t,n,r)},E6=Wl(St),eu=e=>(t,n,i)=>ji(e)(t,n,i),U6=eu(St),tu=e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Oi(e)(t,n,r)},j6=tu(St),nu=e=>async(t,n,i)=>Oi(e)(t,n,i),O6=nu(St),ru=e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Ai(e)(t,n,r)},A6=ru(St),iu=e=>(t,n,i)=>Ai(e)(t,n,i),C6=iu(St),ou=e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Ci(e)(t,n,r)},N6=ou(St),au=e=>async(t,n,i)=>Ci(e)(t,n,i),I6=au(St);var At={};In(At,{base64:()=>nf,base64url:()=>lu,bigint:()=>sf,boolean:()=>ff,browserEmail:()=>q6,cidrv4:()=>ef,cidrv6:()=>tf,cuid:()=>Ld,cuid2:()=>Pd,date:()=>af,datetime:()=>uf,domain:()=>J6,duration:()=>Jd,e164:()=>of,email:()=>Fd,emoji:()=>Xd,extendedDuration:()=>Z6,guid:()=>Yd,hex:()=>Y6,hostname:()=>G6,html5Email:()=>L6,httpProtocol:()=>rf,idnEmail:()=>V6,integer:()=>df,ipv4:()=>Kd,ipv6:()=>Qd,ksuid:()=>Hd,lowercase:()=>gf,mac:()=>Wd,md5_base64:()=>X6,md5_base64url:()=>K6,md5_hex:()=>F6,nanoid:()=>Gd,null:()=>mf,number:()=>uu,rfc5322Email:()=>P6,sha1_base64:()=>W6,sha1_base64url:()=>eT,sha1_hex:()=>Q6,sha256_base64:()=>nT,sha256_base64url:()=>rT,sha256_hex:()=>tT,sha384_base64:()=>oT,sha384_base64url:()=>aT,sha384_hex:()=>iT,sha512_base64:()=>uT,sha512_base64url:()=>cT,sha512_hex:()=>lT,string:()=>cf,time:()=>lf,ulid:()=>Vd,undefined:()=>pf,unicodeEmail:()=>sx,uppercase:()=>vf,uuid:()=>Qr,uuid4:()=>M6,uuid6:()=>R6,uuid7:()=>B6,xid:()=>qd});var Ld=/^[cC][0-9a-z]{6,}$/,Pd=/^[0-9a-z]+$/,Vd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qd=/^[0-9a-vA-V]{20}$/,Hd=/^[A-Za-z0-9]{27}$/,Gd=/^[a-zA-Z0-9_-]{21}$/,Jd=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Z6=/^[-+]?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)?)??$/,Yd=/^([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})$/,Qr=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,M6=Qr(4),R6=Qr(6),B6=Qr(7),Fd=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,L6=/^[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])?)*$/,P6=/^(([^<>()\[\]\\.,;:\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,}))$/,sx=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,V6=sx,q6=/^[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])?)*$/,H6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Xd(){return new RegExp(H6,"u")}var Kd=/^(?:(?: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])$/,Qd=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Wd=e=>{let t=Jt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ef=/^((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])$/,tf=/^(([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])$/,nf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lu=/^[A-Za-z0-9_-]*$/,G6=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,J6=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,rf=/^https?$/,of=/^\+[1-9]\d{6,14}$/,dx="(?:(?:\\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])))",af=new RegExp(`^${dx}$`);function fx(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lf(e){return new RegExp(`^${fx(e)}$`)}function uf(e){let t=fx({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i=`${t}(?:${n.join("|")})`;return new RegExp(`^${dx}T(?:${i})$`)}var cf=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},sf=/^-?\d+n?$/,df=/^-?\d+$/,uu=/^-?\d+(?:\.\d+)?$/,ff=/^(?:true|false)$/i,mf=/^null$/i;var pf=/^undefined$/i;var gf=/^[^A-Z]*$/,vf=/^[^a-z]*$/,Y6=/^[0-9a-fA-F]*$/;function ga(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function va(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var F6=/^[0-9a-fA-F]{32}$/,X6=ga(22,"=="),K6=va(22),Q6=/^[0-9a-fA-F]{40}$/,W6=ga(27,"="),eT=va(27),tT=/^[0-9a-fA-F]{64}$/,nT=ga(43,"="),rT=va(43),iT=/^[0-9a-fA-F]{96}$/,oT=ga(64,""),aT=va(64),lT=/^[0-9a-fA-F]{128}$/,uT=ga(86,"=="),cT=va(86);var xe=y("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),px={number:"number",bigint:"bigint",object:"date"},cu=y("$ZodCheckLessThan",(e,t)=>{xe.init(e,t);let n=px[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),su=y("$ZodCheckGreaterThan",(e,t)=>{xe.init(e,t);let n=px[typeof t.value];e._zod.onattach.push(i=>{let r=i._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hf=y("$ZodCheckMultipleOf",(e,t)=>{xe.init(e,t),e._zod.onattach.push(n=>{var i;(i=n._zod.bag).multipleOf??(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Dd(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),yf=y("$ZodCheckNumberFormat",(e,t)=>{xe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,o]=Cd[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,n&&(l.pattern=df)}),e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}l<r&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),bf=y("$ZodCheckBigIntFormat",(e,t)=>{xe.init(e,t);let[n,i]=Nd[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=n,o.maximum=i}),e._zod.check=r=>{let o=r.value;o<n&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>i&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),xf=y("$ZodCheckMaxSize",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!sr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:sa(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_f=y("$ZodCheckMinSize",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!sr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:sa(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Sf=y("$ZodCheckSizeEquals",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!sr(r)&&r.size!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=i=>{let r=i.value,o=r.size;if(o===t.size)return;let a=o>t.size;i.issues.push({origin:sa(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),$f=y("$ZodCheckMaxLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!sr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{let r=i.value;if(r.length<=t.maximum)return;let a=da(r);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kf=y("$ZodCheckMinLength",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!sr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{let r=i.value;if(r.length>=t.minimum)return;let a=da(r);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),zf=y("$ZodCheckLengthEquals",(e,t)=>{var n;xe.init(e,t),(n=e._zod.def).when??(n.when=i=>{let r=i.value;return!sr(r)&&r.length!==void 0}),e._zod.onattach.push(i=>{let r=i._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=i=>{let r=i.value,o=r.length;if(o===t.length)return;let a=da(r),l=o>t.length;i.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Ni=y("$ZodCheckStringFormat",(e,t)=>{var n,i;xe.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),wf=y("$ZodCheckRegex",(e,t)=>{Ni.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Tf=y("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=gf),Ni.init(e,t)}),Df=y("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=vf),Ni.init(e,t)}),Ef=y("$ZodCheckIncludes",(e,t)=>{xe.init(e,t);let n=Jt(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Uf=y("$ZodCheckStartsWith",(e,t)=>{xe.init(e,t);let n=new RegExp(`^${Jt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),jf=y("$ZodCheckEndsWith",(e,t)=>{xe.init(e,t);let n=new RegExp(`.*${Jt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{let r=i._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function mx(e,t,n){e.issues.length&&t.issues.push(..._t(n,e.issues))}var Of=y("$ZodCheckProperty",(e,t)=>{xe.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>mx(r,n,t.property));mx(i,n,t.property)}}),Af=y("$ZodCheckMimeType",(e,t)=>{xe.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Cf=y("$ZodCheckOverwrite",(e,t)=>{xe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var ha=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
11
- `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,r.join(`
12
- `))}};var Nf={major:4,minor:4,patch:3};var G=y("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Nf;let i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let r of i)for(let o of r._zod.onattach)o(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(a,l,u)=>{let c=mr(a),s;for(let d of l){if(d._zod.def.when){if(Id(a)||!d._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&u?.async===!1)throw new dn;if(s||m instanceof Promise)s=(s??Promise.resolve()).then(async()=>{await m,a.issues.length!==f&&(c||(c=mr(a,f)))});else{if(a.issues.length===f)continue;c||(c=mr(a,f))}}return s?s.then(()=>a):a},o=(a,l,u)=>{if(mr(a))return a.aborted=!0,a;let c=r(l,i,u);if(c instanceof Promise){if(u.async===!1)throw new dn;return c.then(s=>e._zod.parse(s,u))}return e._zod.parse(c,u)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let c=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return c instanceof Promise?c.then(s=>o(s,a,l)):o(c,a,l)}let u=e._zod.parse(a,l);if(u instanceof Promise){if(l.async===!1)throw new dn;return u.then(c=>r(c,i,l))}return r(u,i,l)}}W(e,"~standard",()=>({validate:r=>{try{let o=Rd(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Bd(e,r).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Wr=y("$ZodString",(e,t)=>{G.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cf(e._zod.bag),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),pe=y("$ZodStringFormat",(e,t)=>{Ni.init(e,t),Wr.init(e,t)}),Zf=y("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Yd),pe.init(e,t)}),Mf=y("$ZodUUID",(e,t)=>{if(t.version){let i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qr(i))}else t.pattern??(t.pattern=Qr());pe.init(e,t)}),Rf=y("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fd),pe.init(e,t)}),Bf=y("$ZodURL",(e,t)=>{pe.init(e,t),e._zod.check=n=>{try{let i=n.value.trim();if(!t.normalize&&t.protocol?.source===rf.source&&!/^https?:\/\//i.test(i)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}let r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Lf=y("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Xd()),pe.init(e,t)}),Pf=y("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Gd),pe.init(e,t)}),Vf=y("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ld),pe.init(e,t)}),qf=y("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Pd),pe.init(e,t)}),Hf=y("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Vd),pe.init(e,t)}),Gf=y("$ZodXID",(e,t)=>{t.pattern??(t.pattern=qd),pe.init(e,t)}),Jf=y("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Hd),pe.init(e,t)}),Yf=y("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=uf(t)),pe.init(e,t)}),Ff=y("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=af),pe.init(e,t)}),Xf=y("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=lf(t)),pe.init(e,t)}),Kf=y("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Jd),pe.init(e,t)}),Qf=y("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Kd),pe.init(e,t),e._zod.bag.format="ipv4"}),Wf=y("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Qd),pe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),em=y("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Wd(t.delimiter)),pe.init(e,t),e._zod.bag.format="mac"}),tm=y("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ef),pe.init(e,t)}),nm=y("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=tf),pe.init(e,t),e._zod.check=n=>{let i=n.value.split("/");try{if(i.length!==2)throw new Error;let[r,o]=i;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function rm(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var im=y("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=nf),pe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{rm(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Ux(e){if(!lu.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return rm(n)}var om=y("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lu),pe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Ux(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),am=y("$ZodE164",(e,t)=>{t.pattern??(t.pattern=of),pe.init(e,t)});function jx(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var lm=y("$ZodJWT",(e,t)=>{pe.init(e,t),e._zod.check=n=>{jx(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),um=y("$ZodCustomStringFormat",(e,t)=>{pe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),gu=y("$ZodNumber",(e,t)=>{G.init(e,t),e._zod.pattern=e._zod.bag.pattern??uu,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let r=n.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return n;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),n}}),cm=y("$ZodNumberFormat",(e,t)=>{yf.init(e,t),gu.init(e,t)}),ya=y("$ZodBoolean",(e,t)=>{G.init(e,t),e._zod.pattern=ff,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch{}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),vu=y("$ZodBigInt",(e,t)=>{G.init(e,t),e._zod.pattern=sf,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),sm=y("$ZodBigIntFormat",(e,t)=>{bf.init(e,t),vu.init(e,t)}),dm=y("$ZodSymbol",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),fm=y("$ZodUndefined",(e,t)=>{G.init(e,t),e._zod.pattern=pf,e._zod.values=new Set([void 0]),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),mm=y("$ZodNull",(e,t)=>{G.init(e,t),e._zod.pattern=mf,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),pm=y("$ZodAny",(e,t)=>{G.init(e,t),e._zod.parse=n=>n}),gm=y("$ZodUnknown",(e,t)=>{G.init(e,t),e._zod.parse=n=>n}),vm=y("$ZodNever",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),hm=y("$ZodVoid",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),ym=y("$ZodDate",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let r=n.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),n}});function vx(e,t,n){e.issues.length&&t.issues.push(..._t(n,e.issues)),t.value[n]=e.value}var bm=y("$ZodArray",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let o=[];for(let a=0;a<r.length;a++){let l=r[a],u=t.element._zod.run({value:l,issues:[]},i);u instanceof Promise?o.push(u.then(c=>vx(c,n,a))):vx(u,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function pu(e,t,n,i,r,o){let a=n in i;if(e.issues.length){if(r&&o&&!a)return;t.issues.push(..._t(n,e.issues))}if(!a&&!r){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function Ox(e){let t=Object.keys(e.shape);for(let i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);let n=Ad(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Ax(e,t,n,i,r,o){let a=[],l=r.keySet,u=r.catchall._zod,c=u.def.type,s=u.optin==="optional",d=u.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let m=u.run({value:t[f],issues:[]},i);m instanceof Promise?e.push(m.then(S=>pu(S,n,f,t,s,d))):pu(m,n,f,t,s,d)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var Cx=y("$ZodObject",(e,t)=>{if(G.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let u={...l};return Object.defineProperty(t,"shape",{value:u}),u}})}let i=Ei(()=>Ox(t));W(e._zod,"propValues",()=>{let l=t.shape,u={};for(let c in l){let s=l[c]._zod;if(s.values){u[c]??(u[c]=new Set);for(let d of s.values)u[c].add(d)}}return u});let r=Kr,o=t.catchall,a;e._zod.parse=(l,u)=>{a??(a=i.value);let c=l.value;if(!r(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let s=[],d=a.shape;for(let f of a.keys){let m=d[f],S=m._zod.optin==="optional",$=m._zod.optout==="optional",C=m._zod.run({value:c[f],issues:[]},u);C instanceof Promise?s.push(C.then(v=>pu(v,l,f,c,S,$))):pu(C,l,f,c,S,$)}return o?Ax(s,c,l,u,i.value,e):s.length?Promise.all(s).then(()=>l):l}}),xm=y("$ZodObjectJIT",(e,t)=>{Cx.init(e,t);let n=e._zod.parse,i=Ei(()=>Ox(t)),r=f=>{let m=new ha(["shape","payload","ctx"]),S=i.value,$=h=>{let b=Fl(h);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};m.write("const input = payload.value;");let C=Object.create(null),v=0;for(let h of S.keys)C[h]=`key_${v++}`;m.write("const newResult = {};");for(let h of S.keys){let b=C[h],j=Fl(h),E=f[h],x=E?._zod?.optin==="optional",N=E?._zod?.optout==="optional";m.write(`const ${b} = ${$(h)};`),x&&N?m.write(`
13
- if (${b}.issues.length) {
14
- if (${j} in input) {
15
- payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
3
+ `+Fy+e+uw}var qy=!1;function Hy(e,t){if(!e||qy)return"";qy=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(f){var p=f}Reflect.construct(e,[],m)}else{try{m.call()}catch(f){p=f}e.call(m.prototype)}}else{try{throw Error()}catch(f){p=f}(m=e())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(f){if(f&&p&&typeof f.stack=="string")return[f.stack,p.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],l=o[1];if(a&&l){var c=a.split(`
4
+ `),u=l.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===c.length||i===u.length)for(r=c.length-1,i=u.length-1;1<=r&&0<=i&&c[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==u[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==u[i]){var d=`
6
+ `+c[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=i);break}}}finally{qy=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Hr(n):""}function yj(e,t){switch(e.tag){case 26:case 27:case 5:return Hr(e.type);case 16:return Hr("Lazy");case 13:return e.child!==t&&t!==null?Hr("Suspense Fallback"):Hr("Suspense");case 19:return Hr("SuspenseList");case 0:case 15:return Hy(e.type,!1);case 11:return Hy(e.type.render,!1);case 1:return Hy(e.type,!0);case 31:return Hr("Activity");default:return""}}function dw(e){try{var t="",n=null;do t+=yj(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
7
+ Error generating stack: `+r.message+`
8
+ `+r.stack}}var Db=Object.prototype.hasOwnProperty,xx=xt.unstable_scheduleCallback,Gy=xt.unstable_cancelCallback,bj=xt.unstable_shouldYield,xj=xt.unstable_requestPaint,xn=xt.unstable_now,Sj=xt.unstable_getCurrentPriorityLevel,Bz=xt.unstable_ImmediatePriority,Lz=xt.unstable_UserBlockingPriority,Ad=xt.unstable_NormalPriority,kj=xt.unstable_LowPriority,Pz=xt.unstable_IdlePriority,_j=xt.log,$j=xt.unstable_setDisableYieldValue,Ec=null,Sn=null;function mr(e){if(typeof _j=="function"&&$j(e),Sn&&typeof Sn.setStrictMode=="function")try{Sn.setStrictMode(Ec,e)}catch{}}var kn=Math.clz32?Math.clz32:Tj,wj=Math.log,zj=Math.LN2;function Tj(e){return e>>>=0,e===0?32:31-(wj(e)/zj|0)|0}var Ku=256,Qu=262144,Wu=4194304;function Gr(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function of(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~o,r!==0?i=Gr(r):(a&=l,a!==0?i=Gr(a):n||(n=l&~e,n!==0&&(i=Gr(n))))):(l=r&~o,l!==0?i=Gr(l):a!==0?i=Gr(a):n||(n=r&~e,n!==0&&(i=Gr(n)))),i===0?0:t!==0&&t!==i&&(t&o)===0&&(o=i&-i,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:i}function Dc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cj(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vz(){var e=Wu;return Wu<<=1,(Wu&62914560)===0&&(Wu=4194304),e}function Yy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ic(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ej(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,c=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var d=31-kn(n),m=1<<d;l[d]=0,c[d]=-1;var p=u[d];if(p!==null)for(u[d]=null,d=0;d<p.length;d++){var f=p[d];f!==null&&(f.lane&=-536870913)}n&=~m}r!==0&&Fz(e,r,0),o!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=o&~(a&~t))}function Fz(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-kn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function qz(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-kn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Hz(e,t){var n=t&-t;return n=(n&42)!==0?1:Sx(n),(n&(e.suspendedLanes|t))!==0?0:n}function Sx(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function kx(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gz(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:g2(e.type))}function fw(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var Ir=Math.random().toString(36).slice(2),Dt="__reactFiber$"+Ir,ln="__reactProps$"+Ir,Pa="__reactContainer$"+Ir,Ib="__reactEvents$"+Ir,Dj="__reactListeners$"+Ir,Ij="__reactHandles$"+Ir,mw="__reactResources$"+Ir,Ac="__reactMarker$"+Ir;function _x(e){delete e[Dt],delete e[ln],delete e[Ib],delete e[Dj],delete e[Ij]}function pa(e){var t=e[Dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Pa]||n[Dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sz(e);e!==null;){if(n=e[Dt])return n;e=Sz(e)}return t}e=n,n=e.parentNode}return null}function Va(e){if(e=e[Dt]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ql(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(E(33))}function $a(e){var t=e[mw];return t||(t=e[mw]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function _t(e){e[Ac]=!0}var Yz=new Set,Jz={};function ao(e,t){Aa(e,t),Aa(e+"Capture",t)}function Aa(e,t){for(Jz[e]=t,e=0;e<t.length;e++)Yz.add(t[e])}var Aj=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]*$"),pw={},hw={};function jj(e){return Db.call(hw,e)?!0:Db.call(pw,e)?!1:Aj.test(e)?hw[e]=!0:(pw[e]=!0,!1)}function pd(e,t,n){if(jj(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ed(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function $i(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function On(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uj(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ab(e){if(!e._valueTracker){var t=Xz(e)?"checked":"value";e._valueTracker=Uj(e,t,""+e[t])}}function Kz(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xz(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function jd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Oj=/[\n"\\]/g;function Mn(e){return e.replace(Oj,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function jb(e,t,n,r,i,o,a,l){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+On(t)):e.value!==""+On(t)&&(e.value=""+On(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?Ub(e,a,On(t)):n!=null?Ub(e,a,On(n)):r!=null&&e.removeAttribute("value"),i==null&&o!=null&&(e.defaultChecked=!!o),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+On(l):e.removeAttribute("name")}function Qz(e,t,n,r,i,o,a,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ab(e);return}n=n!=null?""+On(n):"",t=t!=null?""+On(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a),Ab(e)}function Ub(e,t,n){t==="number"&&jd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wa(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+On(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wz(e,t,n){if(t!=null&&(t=""+On(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+On(n):""}function e4(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(E(92));if(Kl(r)){if(1<r.length)throw Error(E(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=On(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Ab(e)}function ja(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nj=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(" "));function gw(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||Nj.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function t4(e,t,n){if(t!=null&&typeof t!="object")throw Error(E(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&gw(e,i,r)}else for(var o in t)t.hasOwnProperty(o)&&gw(e,o,t[o])}function $x(e){if(e.indexOf("-")===-1)return!1;switch(e){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}}var Rj=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"]]),Mj=/^[\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;function hd(e){return Mj.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ai(){}var Ob=null;function wx(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ha=null,za=null;function vw(e){var t=Va(e);if(t&&(e=t.stateNode)){var n=e[ln]||null;e:switch(e=t.stateNode,t.type){case"input":if(jb(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Mn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[ln]||null;if(!i)throw Error(E(90));jb(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Kz(r)}break e;case"textarea":Wz(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&wa(e,!!n.multiple,t,!1)}}}var Jy=!1;function n4(e,t,n){if(Jy)return e(t,n);Jy=!0;try{var r=e(t);return r}finally{if(Jy=!1,(ha!==null||za!==null)&&(vf(),ha&&(t=ha,e=za,za=ha=null,vw(t),e)))for(t=0;t<e.length;t++)vw(e[t])}}function hc(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ln]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(E(231,t,typeof n));return n}var Ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nb=!1;if(Ri)try{la={},Object.defineProperty(la,"passive",{get:function(){Nb=!0}}),window.addEventListener("test",la,la),window.removeEventListener("test",la,la)}catch{Nb=!1}var la,pr=null,zx=null,gd=null;function i4(){if(gd)return gd;var e,t=zx,n=t.length,r,i="value"in pr?pr.value:pr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return gd=i.slice(e,1<r?1-r:void 0)}function vd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function td(){return!0}function yw(){return!1}function cn(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?td:yw,this.isPropagationStopped=yw,this}return Qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=td)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=td)},persist:function(){},isPersistent:td}),t}var lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},af=cn(lo),jc=Qe({},lo,{view:0,detail:0}),Zj=cn(jc),Xy,Ky,Fl,lf=Qe({},jc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tx,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fl&&(Fl&&e.type==="mousemove"?(Xy=e.screenX-Fl.screenX,Ky=e.screenY-Fl.screenY):Ky=Xy=0,Fl=e),Xy)},movementY:function(e){return"movementY"in e?e.movementY:Ky}}),bw=cn(lf),Bj=Qe({},lf,{dataTransfer:0}),Lj=cn(Bj),Pj=Qe({},jc,{relatedTarget:0}),Qy=cn(Pj),Vj=Qe({},lo,{animationName:0,elapsedTime:0,pseudoElement:0}),Fj=cn(Vj),qj=Qe({},lo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Hj=cn(qj),Gj=Qe({},lo,{data:0}),xw=cn(Gj),Yj={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jj={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"},Xj={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kj(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xj[e])?!!t[e]:!1}function Tx(){return Kj}var Qj=Qe({},jc,{key:function(e){if(e.key){var t=Yj[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jj[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tx,charCode:function(e){return e.type==="keypress"?vd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wj=cn(Qj),eU=Qe({},lf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sw=cn(eU),tU=Qe({},jc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tx}),nU=cn(tU),iU=Qe({},lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),rU=cn(iU),oU=Qe({},lf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),aU=cn(oU),lU=Qe({},lo,{newState:0,oldState:0}),cU=cn(lU),sU=[9,13,27,32],Cx=Ri&&"CompositionEvent"in window,tc=null;Ri&&"documentMode"in document&&(tc=document.documentMode);var uU=Ri&&"TextEvent"in window&&!tc,r4=Ri&&(!Cx||tc&&8<tc&&11>=tc),kw=" ",_w=!1;function o4(e,t){switch(e){case"keyup":return sU.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function a4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ga=!1;function dU(e,t){switch(e){case"compositionend":return a4(t);case"keypress":return t.which!==32?null:(_w=!0,kw);case"textInput":return e=t.data,e===kw&&_w?null:e;default:return null}}function fU(e,t){if(ga)return e==="compositionend"||!Cx&&o4(e,t)?(e=i4(),gd=zx=pr=null,ga=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return r4&&t.locale!=="ko"?null:t.data;default:return null}}var mU={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};function $w(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mU[e.type]:t==="textarea"}function l4(e,t,n,r){ha?za?za.push(r):za=[r]:ha=r,t=Kd(t,"onChange"),0<t.length&&(n=new af("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nc=null,gc=null;function pU(e){n2(e,0)}function cf(e){var t=Ql(e);if(Kz(t))return e}function ww(e,t){if(e==="change")return t}var c4=!1;Ri&&(Ri?(id="oninput"in document,id||(Wy=document.createElement("div"),Wy.setAttribute("oninput","return;"),id=typeof Wy.oninput=="function"),nd=id):nd=!1,c4=nd&&(!document.documentMode||9<document.documentMode));var nd,id,Wy;function zw(){nc&&(nc.detachEvent("onpropertychange",s4),gc=nc=null)}function s4(e){if(e.propertyName==="value"&&cf(gc)){var t=[];l4(t,gc,e,wx(e)),n4(pU,t)}}function hU(e,t,n){e==="focusin"?(zw(),nc=t,gc=n,nc.attachEvent("onpropertychange",s4)):e==="focusout"&&zw()}function gU(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return cf(gc)}function vU(e,t){if(e==="click")return cf(t)}function yU(e,t){if(e==="input"||e==="change")return cf(t)}function bU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:bU;function vc(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Db.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function Tw(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Cw(e,t){var n=Tw(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tw(n)}}function u4(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?u4(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function d4(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=jd(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=jd(e.document)}return t}function Ex(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var xU=Ri&&"documentMode"in document&&11>=document.documentMode,va=null,Rb=null,ic=null,Mb=!1;function Ew(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mb||va==null||va!==jd(r)||(r=va,"selectionStart"in r&&Ex(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ic&&vc(ic,r)||(ic=r,r=Kd(Rb,"onSelect"),0<r.length&&(t=new af("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=va)))}function qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ya={animationend:qr("Animation","AnimationEnd"),animationiteration:qr("Animation","AnimationIteration"),animationstart:qr("Animation","AnimationStart"),transitionrun:qr("Transition","TransitionRun"),transitionstart:qr("Transition","TransitionStart"),transitioncancel:qr("Transition","TransitionCancel"),transitionend:qr("Transition","TransitionEnd")},eb={},f4={};Ri&&(f4=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function co(e){if(eb[e])return eb[e];if(!ya[e])return e;var t=ya[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in f4)return eb[e]=t[n];return e}var m4=co("animationend"),p4=co("animationiteration"),h4=co("animationstart"),SU=co("transitionrun"),kU=co("transitionstart"),_U=co("transitioncancel"),g4=co("transitionend"),v4=new Map,Zb="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(" ");Zb.push("scrollEnd");function Jn(e,t){v4.set(e,t),ao(t,[e])}var Ud=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Un=[],ba=0,Dx=0;function sf(){for(var e=ba,t=Dx=ba=0;t<e;){var n=Un[t];Un[t++]=null;var r=Un[t];Un[t++]=null;var i=Un[t];Un[t++]=null;var o=Un[t];if(Un[t++]=null,r!==null&&i!==null){var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}o!==0&&y4(n,i,o)}}function uf(e,t,n,r){Un[ba++]=e,Un[ba++]=t,Un[ba++]=n,Un[ba++]=r,Dx|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ix(e,t,n,r){return uf(e,t,n,r),Od(e)}function so(e,t){return uf(e,null,null,t),Od(e)}function y4(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=e.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(i=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,i&&t!==null&&(i=31-kn(n),e=o.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),o):null}function Od(e){if(50<fc)throw fc=0,ax=null,Error(E(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var xa={};function $U(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yn(e,t,n,r){return new $U(e,t,n,r)}function Ax(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ui(e,t){var n=e.alternate;return n===null?(n=yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function b4(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yd(e,t,n,r,i,o){var a=0;if(r=e,typeof e=="function")Ax(e)&&(a=1);else if(typeof e=="string")a=TO(e,n,fi.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case zb:return e=yn(31,n,t,i),e.elementType=zb,e.lanes=o,e;case fa:return Kr(n.children,i,o,t);case Mz:a=8,i|=24;break;case _b:return e=yn(12,n,t,i|2),e.elementType=_b,e.lanes=o,e;case $b:return e=yn(13,n,t,i),e.elementType=$b,e.lanes=o,e;case wb:return e=yn(19,n,t,i),e.elementType=wb,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ii:a=10;break e;case Zz:a=9;break e;case yx:a=11;break e;case bx:a=14;break e;case lr:a=16,r=null;break e}a=29,n=Error(E(130,e===null?"null":typeof e,"")),r=null}return t=yn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Kr(e,t,n,r){return e=yn(7,e,r,t),e.lanes=n,e}function tb(e,t,n){return e=yn(6,e,null,t),e.lanes=n,e}function x4(e){var t=yn(18,null,null,0);return t.stateNode=e,t}function nb(e,t,n){return t=yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dw=new WeakMap;function Zn(e,t){if(typeof e=="object"&&e!==null){var n=Dw.get(e);return n!==void 0?n:(t={value:e,source:t,stack:dw(t)},Dw.set(e,t),t)}return{value:e,source:t,stack:dw(t)}}var Sa=[],ka=0,Nd=null,yc=0,Nn=[],Rn=0,Tr=null,si=1,ui="";function Ei(e,t){Sa[ka++]=yc,Sa[ka++]=Nd,Nd=e,yc=t}function S4(e,t,n){Nn[Rn++]=si,Nn[Rn++]=ui,Nn[Rn++]=Tr,Tr=e;var r=si;e=ui;var i=32-kn(r)-1;r&=~(1<<i),n+=1;var o=32-kn(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,si=1<<32-kn(t)+i|n<<i|r,ui=o+e}else si=1<<o|n<<i|r,ui=e}function jx(e){e.return!==null&&(Ei(e,1),S4(e,1,0))}function Ux(e){for(;e===Nd;)Nd=Sa[--ka],Sa[ka]=null,yc=Sa[--ka],Sa[ka]=null;for(;e===Tr;)Tr=Nn[--Rn],Nn[Rn]=null,ui=Nn[--Rn],Nn[Rn]=null,si=Nn[--Rn],Nn[Rn]=null}function k4(e,t){Nn[Rn++]=si,Nn[Rn++]=ui,Nn[Rn++]=Tr,si=t.id,ui=t.overflow,Tr=e}var It=null,Ke=null,_e=!1,br=null,Bn=!1,Bb=Error(E(519));function Cr(e){var t=Error(E(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bc(Zn(t,e)),Bb}function Iw(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Dt]=e,t[ln]=r,n){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(n=0;n<_c.length;n++)ge(_c[n],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),Qz(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),e4(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||r2(t.textContent,n)?(r.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),r.onScroll!=null&&ge("scroll",t),r.onScrollEnd!=null&&ge("scrollend",t),r.onClick!=null&&(t.onclick=Ai),t=!0):t=!1,t||Cr(e,!0)}function Aw(e){for(It=e.return;It;)switch(It.tag){case 5:case 31:case 13:Bn=!1;return;case 27:case 3:Bn=!0;return;default:It=It.return}}function ca(e){if(e!==It)return!1;if(!_e)return Aw(e),_e=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||dx(e.type,e.memoizedProps)),n=!n),n&&Ke&&Cr(e),Aw(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));Ke=xz(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(317));Ke=xz(e)}else t===27?(t=Ke,Ar(e.type)?(e=hx,hx=null,Ke=e):Ke=t):Ke=It?Pn(e.stateNode.nextSibling):null;return!0}function to(){Ke=It=null,_e=!1}function ib(){var e=br;return e!==null&&(on===null?on=e:on.push.apply(on,e),br=null),e}function bc(e){br===null?br=[e]:br.push(e)}var Lb=mi(null),uo=null,ji=null;function sr(e,t,n){Ge(Lb,t._currentValue),t._currentValue=n}function Oi(e){e._currentValue=Lb.current,$t(Lb)}function Pb(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vb(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var o=i.dependencies;if(o!==null){var a=i.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Pb(o.return,n,e),r||(a=null);break e}o=l.next}}else if(i.tag===18){if(a=i.return,a===null)throw Error(E(341));a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),Pb(a,n,e),a=null}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}}function Fa(e,t,n,r){e=null;for(var i=t,o=!1;i!==null;){if(!o){if((i.flags&524288)!==0)o=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var a=i.alternate;if(a===null)throw Error(E(387));if(a=a.memoizedProps,a!==null){var l=i.type;$n(i.pendingProps.value,a.value)||(e!==null?e.push(l):e=[l])}}else if(i===Ed.current){if(a=i.alternate,a===null)throw Error(E(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(wc):e=[wc])}i=i.return}e!==null&&Vb(t,e,n,r),t.flags|=262144}function Rd(e){for(e=e.firstContext;e!==null;){if(!$n(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function no(e){uo=e,ji=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return _4(uo,e)}function rd(e,t){return uo===null&&no(e),_4(e,t)}function _4(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ji===null){if(e===null)throw Error(E(308));ji=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ji=ji.next=t;return n}var wU=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},zU=xt.unstable_scheduleCallback,TU=xt.unstable_NormalPriority,gt={$$typeof:Ii,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ox(){return{controller:new wU,data:new Map,refCount:0}}function Uc(e){e.refCount--,e.refCount===0&&zU(TU,function(){e.controller.abort()})}var rc=null,Fb=0,Ua=0,Ta=null;function CU(e,t){if(rc===null){var n=rc=[];Fb=0,Ua=a1(),Ta={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Fb++,t.then(jw,jw),t}function jw(){if(--Fb===0&&rc!==null){Ta!==null&&(Ta.status="fulfilled");var e=rc;rc=null,Ua=0,Ta=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function EU(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var Uw=ne.S;ne.S=function(e,t){RT=xn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&CU(e,t),Uw!==null&&Uw(e,t)};var Qr=mi(null);function Nx(){var e=Qr.current;return e!==null?e:Ve.pooledCache}function bd(e,t){t===null?Ge(Qr,Qr.current):Ge(Qr,t.pool)}function $4(){var e=Nx();return e===null?null:{parent:gt._currentValue,pool:e}}var qa=Error(E(460)),Rx=Error(E(474)),df=Error(E(542)),Md={then:function(){}};function Ow(e){return e=e.status,e==="fulfilled"||e==="rejected"}function w4(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ai,Ai),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rw(e),e;default:if(typeof t.status=="string")t.then(Ai,Ai);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(E(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Rw(e),e}throw Wr=t,qa}}function Yr(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Wr=n,qa):n}}var Wr=null;function Nw(){if(Wr===null)throw Error(E(459));var e=Wr;return Wr=null,e}function Rw(e){if(e===qa||e===df)throw Error(E(483))}var Ca=null,xc=0;function od(e){var t=xc;return xc+=1,Ca===null&&(Ca=[]),w4(Ca,e,t)}function ql(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ad(e,t){throw t.$$typeof===hj?Error(E(525)):(e=Object.prototype.toString.call(t),Error(E(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function z4(e){function t(h,g){if(e){var b=h.deletions;b===null?(h.deletions=[g],h.flags|=16):b.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h){for(var g=new Map;h!==null;)h.key!==null?g.set(h.key,h):g.set(h.index,h),h=h.sibling;return g}function i(h,g){return h=Ui(h,g),h.index=0,h.sibling=null,h}function o(h,g,b){return h.index=b,e?(b=h.alternate,b!==null?(b=b.index,b<g?(h.flags|=67108866,g):b):(h.flags|=67108866,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function l(h,g,b,v){return g===null||g.tag!==6?(g=tb(b,h.mode,v),g.return=h,g):(g=i(g,b),g.return=h,g)}function c(h,g,b,v){var I=b.type;return I===fa?d(h,g,b.props.children,v,b.key):g!==null&&(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===lr&&Yr(I)===g.type)?(g=i(g,b.props),ql(g,b),g.return=h,g):(g=yd(b.type,b.key,b.props,null,h.mode,v),ql(g,b),g.return=h,g)}function u(h,g,b,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=nb(b,h.mode,v),g.return=h,g):(g=i(g,b.children||[]),g.return=h,g)}function d(h,g,b,v,I){return g===null||g.tag!==7?(g=Kr(b,h.mode,v,I),g.return=h,g):(g=i(g,b),g.return=h,g)}function m(h,g,b){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=tb(""+g,h.mode,b),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Xu:return b=yd(g.type,g.key,g.props,null,h.mode,b),ql(b,g),b.return=h,b;case Xl:return g=nb(g,h.mode,b),g.return=h,g;case lr:return g=Yr(g),m(h,g,b)}if(Kl(g)||Vl(g))return g=Kr(g,h.mode,b,null),g.return=h,g;if(typeof g.then=="function")return m(h,od(g),b);if(g.$$typeof===Ii)return m(h,rd(h,g),b);ad(h,g)}return null}function p(h,g,b,v){var I=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return I!==null?null:l(h,g,""+b,v);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Xu:return b.key===I?c(h,g,b,v):null;case Xl:return b.key===I?u(h,g,b,v):null;case lr:return b=Yr(b),p(h,g,b,v)}if(Kl(b)||Vl(b))return I!==null?null:d(h,g,b,v,null);if(typeof b.then=="function")return p(h,g,od(b),v);if(b.$$typeof===Ii)return p(h,g,rd(h,b),v);ad(h,b)}return null}function f(h,g,b,v,I){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return h=h.get(b)||null,l(g,h,""+v,I);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Xu:return h=h.get(v.key===null?b:v.key)||null,c(g,h,v,I);case Xl:return h=h.get(v.key===null?b:v.key)||null,u(g,h,v,I);case lr:return v=Yr(v),f(h,g,b,v,I)}if(Kl(v)||Vl(v))return h=h.get(b)||null,d(g,h,v,I,null);if(typeof v.then=="function")return f(h,g,b,od(v),I);if(v.$$typeof===Ii)return f(h,g,b,rd(g,v),I);ad(g,v)}return null}function x(h,g,b,v){for(var I=null,J=null,L=g,T=g=0,w=null;L!==null&&T<b.length;T++){L.index>T?(w=L,L=null):w=L.sibling;var F=p(h,L,b[T],v);if(F===null){L===null&&(L=w);break}e&&L&&F.alternate===null&&t(h,L),g=o(F,g,T),J===null?I=F:J.sibling=F,J=F,L=w}if(T===b.length)return n(h,L),_e&&Ei(h,T),I;if(L===null){for(;T<b.length;T++)L=m(h,b[T],v),L!==null&&(g=o(L,g,T),J===null?I=L:J.sibling=L,J=L);return _e&&Ei(h,T),I}for(L=r(L);T<b.length;T++)w=f(L,h,T,b[T],v),w!==null&&(e&&w.alternate!==null&&L.delete(w.key===null?T:w.key),g=o(w,g,T),J===null?I=w:J.sibling=w,J=w);return e&&L.forEach(function($e){return t(h,$e)}),_e&&Ei(h,T),I}function _(h,g,b,v){if(b==null)throw Error(E(151));for(var I=null,J=null,L=g,T=g=0,w=null,F=b.next();L!==null&&!F.done;T++,F=b.next()){L.index>T?(w=L,L=null):w=L.sibling;var $e=p(h,L,F.value,v);if($e===null){L===null&&(L=w);break}e&&L&&$e.alternate===null&&t(h,L),g=o($e,g,T),J===null?I=$e:J.sibling=$e,J=$e,L=w}if(F.done)return n(h,L),_e&&Ei(h,T),I;if(L===null){for(;!F.done;T++,F=b.next())F=m(h,F.value,v),F!==null&&(g=o(F,g,T),J===null?I=F:J.sibling=F,J=F);return _e&&Ei(h,T),I}for(L=r(L);!F.done;T++,F=b.next())F=f(L,h,T,F.value,v),F!==null&&(e&&F.alternate!==null&&L.delete(F.key===null?T:F.key),g=o(F,g,T),J===null?I=F:J.sibling=F,J=F);return e&&L.forEach(function(Ce){return t(h,Ce)}),_e&&Ei(h,T),I}function O(h,g,b,v){if(typeof b=="object"&&b!==null&&b.type===fa&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Xu:e:{for(var I=b.key;g!==null;){if(g.key===I){if(I=b.type,I===fa){if(g.tag===7){n(h,g.sibling),v=i(g,b.props.children),v.return=h,h=v;break e}}else if(g.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===lr&&Yr(I)===g.type){n(h,g.sibling),v=i(g,b.props),ql(v,b),v.return=h,h=v;break e}n(h,g);break}else t(h,g);g=g.sibling}b.type===fa?(v=Kr(b.props.children,h.mode,v,b.key),v.return=h,h=v):(v=yd(b.type,b.key,b.props,null,h.mode,v),ql(v,b),v.return=h,h=v)}return a(h);case Xl:e:{for(I=b.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){n(h,g.sibling),v=i(g,b.children||[]),v.return=h,h=v;break e}else{n(h,g);break}else t(h,g);g=g.sibling}v=nb(b,h.mode,v),v.return=h,h=v}return a(h);case lr:return b=Yr(b),O(h,g,b,v)}if(Kl(b))return x(h,g,b,v);if(Vl(b)){if(I=Vl(b),typeof I!="function")throw Error(E(150));return b=I.call(b),_(h,g,b,v)}if(typeof b.then=="function")return O(h,g,od(b),v);if(b.$$typeof===Ii)return O(h,g,rd(h,b),v);ad(h,b)}return typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint"?(b=""+b,g!==null&&g.tag===6?(n(h,g.sibling),v=i(g,b),v.return=h,h=v):(n(h,g),v=tb(b,h.mode,v),v.return=h,h=v),a(h)):n(h,g)}return function(h,g,b,v){try{xc=0;var I=O(h,g,b,v);return Ca=null,I}catch(L){if(L===qa||L===df)throw L;var J=yn(29,L,null,h.mode);return J.lanes=v,J.return=h,J}}}var io=z4(!0),T4=z4(!1),cr=!1;function Mx(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Sr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(ze&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Od(e),y4(e,null,n),t}return uf(e,r,t,n),Od(e)}function oc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qz(e,n)}}function rb(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Hb=!1;function ac(){if(Hb){var e=Ta;if(e!==null)throw e}}function lc(e,t,n,r){Hb=!1;var i=e.updateQueue;cr=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,a===null?o=u:a.next=u,a=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var m=i.baseState;a=0,d=u=c=null,l=o;do{var p=l.lane&-536870913,f=p!==l.lane;if(f?(be&p)===p:(r&p)===p){p!==0&&p===Ua&&(Hb=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var x=e,_=l;p=t;var O=n;switch(_.tag){case 1:if(x=_.payload,typeof x=="function"){m=x.call(O,m,p);break e}m=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=_.payload,p=typeof x=="function"?x.call(O,m,p):x,p==null)break e;m=Qe({},m,p);break e;case 2:cr=!0}}p=l.callback,p!==null&&(e.flags|=64,f&&(e.flags|=8192),f=i.callbacks,f===null?i.callbacks=[p]:f.push(p))}else f={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=f,c=m):d=d.next=f,a|=p;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);d===null&&(c=m),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,o===null&&(i.shared.lanes=0),Dr|=a,e.lanes=a,e.memoizedState=m}}function C4(e,t){if(typeof e!="function")throw Error(E(191,e));e.call(t)}function E4(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)C4(n[e],t)}var Oa=mi(null),Zd=mi(0);function Mw(e,t){e=Li,Ge(Zd,e),Ge(Oa,t),Li=e|t.baseLanes}function Gb(){Ge(Zd,Li),Ge(Oa,Oa.current)}function Zx(){Li=Zd.current,$t(Oa),$t(Zd)}var wn=mi(null),Ln=null;function ur(e){var t=e.alternate;Ge(ft,ft.current&1),Ge(wn,e),Ln===null&&(t===null||Oa.current!==null||t.memoizedState!==null)&&(Ln=e)}function Yb(e){Ge(ft,ft.current),Ge(wn,e),Ln===null&&(Ln=e)}function D4(e){e.tag===22?(Ge(ft,ft.current),Ge(wn,e),Ln===null&&(Ln=e)):dr(e)}function dr(){Ge(ft,ft.current),Ge(wn,wn.current)}function vn(e){$t(wn),Ln===e&&(Ln=null),$t(ft)}var ft=mi(0);function Bd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mx(n)||px(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mi=0,de=null,Be=null,pt=null,Ld=!1,Ea=!1,ro=!1,Pd=0,Sc=0,Da=null,DU=0;function lt(){throw Error(E(321))}function Bx(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function Lx(e,t,n,r,i,o){return Mi=o,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ne.H=e===null||e.memoizedState===null?lT:Qx,ro=!1,o=n(r,i),ro=!1,Ea&&(o=A4(t,n,r,i)),I4(e),o}function I4(e){ne.H=kc;var t=Be!==null&&Be.next!==null;if(Mi=0,pt=Be=de=null,Ld=!1,Sc=0,Da=null,t)throw Error(E(300));e===null||vt||(e=e.dependencies,e!==null&&Rd(e)&&(vt=!0))}function A4(e,t,n,r){de=e;var i=0;do{if(Ea&&(Da=null),Sc=0,Ea=!1,25<=i)throw Error(E(301));if(i+=1,pt=Be=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ne.H=cT,o=t(n,r)}while(Ea);return o}function IU(){var e=ne.H,t=e.useState()[0];return t=typeof t.then=="function"?Oc(t):t,e=e.useState()[0],(Be!==null?Be.memoizedState:null)!==e&&(de.flags|=1024),t}function Px(){var e=Pd!==0;return Pd=0,e}function Vx(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Fx(e){if(Ld){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ld=!1}Mi=0,pt=Be=de=null,Ea=!1,Sc=Pd=0,Da=null}function Jt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?de.memoizedState=pt=e:pt=pt.next=e,pt}function mt(){if(Be===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=pt===null?de.memoizedState:pt.next;if(t!==null)pt=t,Be=e;else{if(e===null)throw de.alternate===null?Error(E(467)):Error(E(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},pt===null?de.memoizedState=pt=e:pt=pt.next=e}return pt}function ff(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Oc(e){var t=Sc;return Sc+=1,Da===null&&(Da=[]),e=w4(Da,e,t),t=de,(pt===null?t.memoizedState:pt.next)===null&&(t=t.alternate,ne.H=t===null||t.memoizedState===null?lT:Qx),e}function mf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Oc(e);if(e.$$typeof===Ii)return At(e)}throw Error(E(438,String(e)))}function qx(e){var t=null,n=de.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=de.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ff(),de.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=gj;return t.index++,n}function Zi(e,t){return typeof t=="function"?t(e):t}function xd(e){var t=mt();return Hx(t,Be,e)}function Hx(e,t,n){var r=e.queue;if(r===null)throw Error(E(311));r.lastRenderedReducer=n;var i=e.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}t.baseQueue=i=o,r.pending=null}if(o=e.baseState,i===null)e.memoizedState=o;else{t=i.next;var l=a=null,c=null,u=t,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(be&m)===m:(Mi&m)===m){var p=u.revertLane;if(p===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===Ua&&(d=!0);else if((Mi&p)===p){u=u.next,p===Ua&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=m,a=o):c=c.next=m,de.lanes|=p,Dr|=p;m=u.action,ro&&n(o,m),o=u.hasEagerState?u.eagerState:n(o,m)}else p={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(l=c=p,a=o):c=c.next=p,de.lanes|=m,Dr|=m;u=u.next}while(u!==null&&u!==t);if(c===null?a=o:c.next=l,!$n(o,e.memoizedState)&&(vt=!0,d&&(n=Ta,n!==null)))throw n;e.memoizedState=o,e.baseState=a,e.baseQueue=c,r.lastRenderedState=o}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ob(e){var t=mt(),n=t.queue;if(n===null)throw Error(E(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);$n(o,t.memoizedState)||(vt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function j4(e,t,n){var r=de,i=mt(),o=_e;if(o){if(n===void 0)throw Error(E(407));n=n()}else n=t();var a=!$n((Be||i).memoizedState,n);if(a&&(i.memoizedState=n,vt=!0),i=i.queue,Gx(N4.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||pt!==null&&pt.memoizedState.tag&1){if(r.flags|=2048,Na(9,{destroy:void 0},O4.bind(null,r,i,n,t),null),Ve===null)throw Error(E(349));o||(Mi&127)!==0||U4(r,t,n)}return n}function U4(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=de.updateQueue,t===null?(t=ff(),de.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function O4(e,t,n,r){t.value=n,t.getSnapshot=r,R4(t)&&M4(e)}function N4(e,t,n){return n(function(){R4(t)&&M4(e)})}function R4(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function M4(e){var t=so(e,2);t!==null&&an(t,e,2)}function Jb(e){var t=Jt();if(typeof e=="function"){var n=e;if(e=n(),ro){mr(!0);try{n()}finally{mr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:e},t}function Z4(e,t,n,r){return e.baseState=n,Hx(e,Be,typeof r=="function"?r:Zi)}function AU(e,t,n,r,i){if(hf(e))throw Error(E(485));if(e=t.action,e!==null){var o={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){o.listeners.push(a)}};ne.T!==null?n(!0):o.isTransition=!1,r(o),n=t.pending,n===null?(o.next=t.pending=o,B4(t,o)):(o.next=n.next,t.pending=n.next=o)}}function B4(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=ne.T,a={};ne.T=a;try{var l=n(i,r),c=ne.S;c!==null&&c(a,l),Zw(e,t,l)}catch(u){Xb(e,t,u)}finally{o!==null&&a.types!==null&&(o.types=a.types),ne.T=o}}else try{o=n(i,r),Zw(e,t,o)}catch(u){Xb(e,t,u)}}function Zw(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Bw(e,t,r)},function(r){return Xb(e,t,r)}):Bw(e,t,n)}function Bw(e,t,n){t.status="fulfilled",t.value=n,L4(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,B4(e,n)))}function Xb(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,L4(t),t=t.next;while(t!==r)}e.action=null}function L4(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function P4(e,t){return t}function Lw(e,t){if(_e){var n=Ve.formState;if(n!==null){e:{var r=de;if(_e){if(Ke){t:{for(var i=Ke,o=Bn;i.nodeType!==8;){if(!o){i=null;break t}if(i=Pn(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Ke=Pn(i.nextSibling),r=i.data==="F!";break e}}Cr(r)}r=!1}r&&(t=n[0])}}return n=Jt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:P4,lastRenderedState:t},n.queue=r,n=rT.bind(null,de,r),r.dispatch=n,r=Jb(!1),o=Kx.bind(null,de,!1,r.queue),r=Jt(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=AU.bind(null,de,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Pw(e){var t=mt();return V4(t,Be,e)}function V4(e,t,n){if(t=Hx(e,t,P4)[0],e=xd(Zi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Oc(t)}catch(a){throw a===qa?df:a}else r=t;t=mt();var i=t.queue,o=i.dispatch;return n!==t.memoizedState&&(de.flags|=2048,Na(9,{destroy:void 0},jU.bind(null,i,n),null)),[r,o,e]}function jU(e,t){e.action=t}function Vw(e){var t=mt(),n=Be;if(n!==null)return V4(t,n,e);mt(),t=t.memoizedState,n=mt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Na(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=de.updateQueue,t===null&&(t=ff(),de.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function F4(){return mt().memoizedState}function Sd(e,t,n,r){var i=Jt();de.flags|=e,i.memoizedState=Na(1|t,{destroy:void 0},n,r===void 0?null:r)}function pf(e,t,n,r){var i=mt();r=r===void 0?null:r;var o=i.memoizedState.inst;Be!==null&&r!==null&&Bx(r,Be.memoizedState.deps)?i.memoizedState=Na(t,o,n,r):(de.flags|=e,i.memoizedState=Na(1|t,o,n,r))}function Fw(e,t){Sd(8390656,8,e,t)}function Gx(e,t){pf(2048,8,e,t)}function UU(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=ff(),de.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function q4(e){var t=mt().memoizedState;return UU({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(E(440));return t.impl.apply(void 0,arguments)}}function H4(e,t){return pf(4,2,e,t)}function G4(e,t){return pf(4,4,e,t)}function Y4(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function J4(e,t,n){n=n!=null?n.concat([e]):null,pf(4,4,Y4.bind(null,t,e),n)}function Yx(){}function X4(e,t){var n=mt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Bx(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function K4(e,t){var n=mt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Bx(t,r[1]))return r[0];if(r=e(),ro){mr(!0);try{e()}finally{mr(!1)}}return n.memoizedState=[r,t],r}function Jx(e,t,n){return n===void 0||(Mi&1073741824)!==0&&(be&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=ZT(),de.lanes|=e,Dr|=e,n)}function Q4(e,t,n,r){return $n(n,t)?n:Oa.current!==null?(e=Jx(e,n,r),$n(e,t)||(vt=!0),e):(Mi&42)===0||(Mi&1073741824)!==0&&(be&261930)===0?(vt=!0,e.memoizedState=n):(e=ZT(),de.lanes|=e,Dr|=e,t)}function W4(e,t,n,r,i){var o=Te.p;Te.p=o!==0&&8>o?o:8;var a=ne.T,l={};ne.T=l,Kx(e,!1,t,n);try{var c=i(),u=ne.S;if(u!==null&&u(l,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=EU(c,r);cc(e,t,d,_n(e))}else cc(e,t,r,_n(e))}catch(m){cc(e,t,{then:function(){},status:"rejected",reason:m},_n())}finally{Te.p=o,a!==null&&l.types!==null&&(a.types=l.types),ne.T=a}}function OU(){}function Kb(e,t,n,r){if(e.tag!==5)throw Error(E(476));var i=eT(e).queue;W4(e,i,t,Xr,n===null?OU:function(){return tT(e),n(r)})}function eT(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Xr,baseState:Xr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:Xr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tT(e){var t=eT(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},_n())}function Xx(){return At(wc)}function nT(){return mt().memoizedState}function iT(){return mt().memoizedState}function NU(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_n();e=xr(n);var r=Sr(t,e,n);r!==null&&(an(r,t,n),oc(r,t,n)),t={cache:Ox()},e.payload=t;return}t=t.return}}function RU(e,t,n){var r=_n();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hf(e)?oT(t,n):(n=Ix(e,t,n,r),n!==null&&(an(n,e,r),aT(n,t,r)))}function rT(e,t,n){var r=_n();cc(e,t,n,r)}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hf(e))oT(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,$n(l,a))return uf(e,t,i,0),Ve===null&&sf(),!1}catch{}if(n=Ix(e,t,i,r),n!==null)return an(n,e,r),aT(n,t,r),!0}return!1}function Kx(e,t,n,r){if(r={lane:2,revertLane:a1(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},hf(e)){if(t)throw Error(E(479))}else t=Ix(e,n,r,2),t!==null&&an(t,e,2)}function hf(e){var t=e.alternate;return e===de||t!==null&&t===de}function oT(e,t){Ea=Ld=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function aT(e,t,n){if((n&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qz(e,n)}}var kc={readContext:At,use:mf,useCallback:lt,useContext:lt,useEffect:lt,useImperativeHandle:lt,useLayoutEffect:lt,useInsertionEffect:lt,useMemo:lt,useReducer:lt,useRef:lt,useState:lt,useDebugValue:lt,useDeferredValue:lt,useTransition:lt,useSyncExternalStore:lt,useId:lt,useHostTransitionStatus:lt,useFormState:lt,useActionState:lt,useOptimistic:lt,useMemoCache:lt,useCacheRefresh:lt};kc.useEffectEvent=lt;var lT={readContext:At,use:mf,useCallback:function(e,t){return Jt().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:Fw,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Sd(4194308,4,Y4.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Sd(4194308,4,e,t)},useInsertionEffect:function(e,t){Sd(4,2,e,t)},useMemo:function(e,t){var n=Jt();t=t===void 0?null:t;var r=e();if(ro){mr(!0);try{e()}finally{mr(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Jt();if(n!==void 0){var i=n(t);if(ro){mr(!0);try{n(t)}finally{mr(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=RU.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Jt();return e={current:e},t.memoizedState=e},useState:function(e){e=Jb(e);var t=e.queue,n=rT.bind(null,de,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Yx,useDeferredValue:function(e,t){var n=Jt();return Jx(n,e,t)},useTransition:function(){var e=Jb(!1);return e=W4.bind(null,de,e.queue,!0,!1),Jt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=de,i=Jt();if(_e){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),Ve===null)throw Error(E(349));(be&127)!==0||U4(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Fw(N4.bind(null,r,o,e),[e]),r.flags|=2048,Na(9,{destroy:void 0},O4.bind(null,r,o,n,t),null),n},useId:function(){var e=Jt(),t=Ve.identifierPrefix;if(_e){var n=ui,r=si;n=(r&~(1<<32-kn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Pd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=DU++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xx,useFormState:Lw,useActionState:Lw,useOptimistic:function(e){var t=Jt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Kx.bind(null,de,!0,n),n.dispatch=t,[e,t]},useMemoCache:qx,useCacheRefresh:function(){return Jt().memoizedState=NU.bind(null,de)},useEffectEvent:function(e){var t=Jt(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(E(440));return n.impl.apply(void 0,arguments)}}},Qx={readContext:At,use:mf,useCallback:X4,useContext:At,useEffect:Gx,useImperativeHandle:J4,useInsertionEffect:H4,useLayoutEffect:G4,useMemo:K4,useReducer:xd,useRef:F4,useState:function(){return xd(Zi)},useDebugValue:Yx,useDeferredValue:function(e,t){var n=mt();return Q4(n,Be.memoizedState,e,t)},useTransition:function(){var e=xd(Zi)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:Oc(e),t]},useSyncExternalStore:j4,useId:nT,useHostTransitionStatus:Xx,useFormState:Pw,useActionState:Pw,useOptimistic:function(e,t){var n=mt();return Z4(n,Be,e,t)},useMemoCache:qx,useCacheRefresh:iT};Qx.useEffectEvent=q4;var cT={readContext:At,use:mf,useCallback:X4,useContext:At,useEffect:Gx,useImperativeHandle:J4,useInsertionEffect:H4,useLayoutEffect:G4,useMemo:K4,useReducer:ob,useRef:F4,useState:function(){return ob(Zi)},useDebugValue:Yx,useDeferredValue:function(e,t){var n=mt();return Be===null?Jx(n,e,t):Q4(n,Be.memoizedState,e,t)},useTransition:function(){var e=ob(Zi)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:Oc(e),t]},useSyncExternalStore:j4,useId:nT,useHostTransitionStatus:Xx,useFormState:Vw,useActionState:Vw,useOptimistic:function(e,t){var n=mt();return Be!==null?Z4(n,Be,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:qx,useCacheRefresh:iT};cT.useEffectEvent=q4;function ab(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Qe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_n(),i=xr(r);i.payload=t,n!=null&&(i.callback=n),t=Sr(e,i,r),t!==null&&(an(t,e,r),oc(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_n(),i=xr(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Sr(e,i,r),t!==null&&(an(t,e,r),oc(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_n(),r=xr(n);r.tag=2,t!=null&&(r.callback=t),t=Sr(e,r,n),t!==null&&(an(t,e,n),oc(t,e,n))}};function qw(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!vc(n,r)||!vc(i,o):!0}function Hw(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Qb.enqueueReplaceState(t,t.state,null)}function oo(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=Qe({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function sT(e){Ud(e)}function uT(e){console.error(e)}function dT(e){Ud(e)}function Vd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Gw(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Wb(e,t,n){return n=xr(n),n.tag=3,n.payload={element:null},n.callback=function(){Vd(e,t)},n}function fT(e){return e=xr(e),e.tag=3,e}function mT(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Gw(t,n,r)}}var a=n.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){Gw(t,n,r),typeof i!="function"&&(kr===null?kr=new Set([this]):kr.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function MU(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Fa(t,n,i,!0),n=wn.current,n!==null){switch(n.tag){case 31:case 13:return Ln===null?Yd():n.alternate===null&&ct===0&&(ct=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Md?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),vb(e,r,i)),!1;case 22:return n.flags|=65536,r===Md?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),vb(e,r,i)),!1}throw Error(E(435,n.tag))}return vb(e,r,i),Yd(),!1}if(_e)return t=wn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Bb&&(e=Error(E(422),{cause:r}),bc(Zn(e,n)))):(r!==Bb&&(t=Error(E(423),{cause:r}),bc(Zn(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Zn(r,n),i=Wb(e.stateNode,r,i),rb(e,i),ct!==4&&(ct=2)),!1;var o=Error(E(520),{cause:r});if(o=Zn(o,n),dc===null?dc=[o]:dc.push(o),ct!==4&&(ct=2),t===null)return!0;r=Zn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Wb(n.stateNode,r,e),rb(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(kr===null||!kr.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=fT(i),mT(i,e,n,r),rb(n,i),!1}n=n.return}while(n!==null);return!1}var Wx=Error(E(461)),vt=!1;function Et(e,t,n,r){t.child=e===null?T4(t,null,n,r):io(t,e.child,n,r)}function Yw(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var l in r)l!=="ref"&&(a[l]=r[l])}else a=r;return no(t),r=Lx(e,t,n,a,o,i),l=Px(),e!==null&&!vt?(Vx(e,t,i),Bi(e,t,i)):(_e&&l&&jx(t),t.flags|=1,Et(e,t,r,i),t.child)}function Jw(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ax(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,pT(e,t,o,r,i)):(e=yd(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!e1(e,i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:vc,n(a,r)&&e.ref===t.ref)return Bi(e,t,i)}return t.flags|=1,e=Ui(o,r),e.ref=t.ref,e.return=t,t.child=e}function pT(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(vc(o,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=o,e1(e,i))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,Bi(e,t,i)}return ex(e,t,n,r,i)}function hT(e,t,n,r){var i=r.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return Xw(e,t,o,n,r)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bd(t,o!==null?o.cachePool:null),o!==null?Mw(t,o):Gb(),D4(t);else return r=t.lanes=536870912,Xw(e,t,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(bd(t,o.cachePool),Mw(t,o),dr(t),t.memoizedState=null):(e!==null&&bd(t,null),Gb(),dr(t));return Et(e,t,i,n),t.child}function Wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xw(e,t,n,r,i){var o=Nx();return o=o===null?null:{parent:gt._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&bd(t,null),Gb(),D4(t),e!==null&&Fa(e,t,r,!0),t.childLanes=i,null}function kd(e,t){return t=Fd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kw(e,t,n){return io(t,e.child,null,n),e=kd(t,t.pendingProps),e.flags|=2,vn(t),t.memoizedState=null,e}function ZU(e,t,n){var r=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(_e){if(r.mode==="hidden")return e=kd(t,r),t.lanes=536870912,Wl(null,e);if(Yb(t),(e=Ke)?(e=l2(e,Bn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tr!==null?{id:si,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},n=x4(e),n.return=t,t.child=n,It=t,Ke=null)):e=null,e===null)throw Cr(t);return t.lanes=536870912,null}return kd(t,r)}var o=e.memoizedState;if(o!==null){var a=o.dehydrated;if(Yb(t),i)if(t.flags&256)t.flags&=-257,t=Kw(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(E(558));else if(vt||Fa(e,t,n,!1),i=(n&e.childLanes)!==0,vt||i){if(r=Ve,r!==null&&(a=Hz(r,n),a!==0&&a!==o.retryLane))throw o.retryLane=a,so(e,a),an(r,e,a),Wx;Yd(),t=Kw(e,t,n)}else e=o.treeContext,Ke=Pn(a.nextSibling),It=t,_e=!0,br=null,Bn=!1,e!==null&&k4(t,e),t=kd(t,r),t.flags|=4096;return t}return e=Ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _d(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(E(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ex(e,t,n,r,i){return no(t),n=Lx(e,t,n,r,void 0,i),r=Px(),e!==null&&!vt?(Vx(e,t,i),Bi(e,t,i)):(_e&&r&&jx(t),t.flags|=1,Et(e,t,n,i),t.child)}function Qw(e,t,n,r,i,o){return no(t),t.updateQueue=null,n=A4(t,r,n,i),I4(e),r=Px(),e!==null&&!vt?(Vx(e,t,o),Bi(e,t,o)):(_e&&r&&jx(t),t.flags|=1,Et(e,t,n,o),t.child)}function Ww(e,t,n,r,i){if(no(t),t.stateNode===null){var o=xa,a=n.contextType;typeof a=="object"&&a!==null&&(o=At(a)),o=new n(r,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=Qb,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=r,o.state=t.memoizedState,o.refs={},Mx(t),a=n.contextType,o.context=typeof a=="object"&&a!==null?At(a):xa,o.state=t.memoizedState,a=n.getDerivedStateFromProps,typeof a=="function"&&(ab(t,n,a,r),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(a=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),a!==o.state&&Qb.enqueueReplaceState(o,o.state,null),lc(t,r,o,i),ac(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,c=oo(n,l);o.props=c;var u=o.context,d=n.contextType;a=xa,typeof d=="object"&&d!==null&&(a=At(d));var m=n.getDerivedStateFromProps;d=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==a)&&Hw(t,o,r,a),cr=!1;var p=t.memoizedState;o.state=p,lc(t,r,o,i),ac(),u=t.memoizedState,l||p!==u||cr?(typeof m=="function"&&(ab(t,n,m,r),u=t.memoizedState),(c=cr||qw(t,n,c,r,p,u,a))?(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"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=c):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,qb(e,t),a=t.memoizedProps,d=oo(n,a),o.props=d,m=t.pendingProps,p=o.context,u=n.contextType,c=xa,typeof u=="object"&&u!==null&&(c=At(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==m||p!==c)&&Hw(t,o,r,c),cr=!1,p=t.memoizedState,o.state=p,lc(t,r,o,i),ac();var f=t.memoizedState;a!==m||p!==f||cr||e!==null&&e.dependencies!==null&&Rd(e.dependencies)?(typeof l=="function"&&(ab(t,n,l,r),f=t.memoizedState),(d=cr||qw(t,n,d,r,p,f,c)||e!==null&&e.dependencies!==null&&Rd(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,f,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,f,c)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=d):(typeof o.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,_d(e,t),r=(t.flags&128)!==0,o||r?(o=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&r?(t.child=io(t,e.child,null,i),t.child=io(t,null,n,i)):Et(e,t,n,i),t.memoizedState=o.state,e=t.child):e=Bi(e,t,i),e}function ez(e,t,n,r){return to(),t.flags|=256,Et(e,t,n,r),t.child}var lb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cb(e){return{baseLanes:e,cachePool:$4()}}function sb(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=bn),e}function gT(e,t,n){var r=t.pendingProps,i=!1,o=(t.flags&128)!==0,a;if((a=o)||(a=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),a&&(i=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(_e){if(i?ur(t):dr(t),(e=Ke)?(e=l2(e,Bn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Tr!==null?{id:si,overflow:ui}:null,retryLane:536870912,hydrationErrors:null},n=x4(e),n.return=t,t.child=n,It=t,Ke=null)):e=null,e===null)throw Cr(t);return px(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,i?(dr(t),i=t.mode,l=Fd({mode:"hidden",children:l},i),r=Kr(r,i,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=cb(n),r.childLanes=sb(e,a,n),t.memoizedState=lb,Wl(null,r)):(ur(t),tx(t,l))}var c=e.memoizedState;if(c!==null&&(l=c.dehydrated,l!==null)){if(o)t.flags&256?(ur(t),t.flags&=-257,t=ub(e,t,n)):t.memoizedState!==null?(dr(t),t.child=e.child,t.flags|=128,t=null):(dr(t),l=r.fallback,i=t.mode,r=Fd({mode:"visible",children:r.children},i),l=Kr(l,i,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,io(t,e.child,null,n),r=t.child,r.memoizedState=cb(n),r.childLanes=sb(e,a,n),t.memoizedState=lb,t=Wl(null,r));else if(ur(t),px(l)){if(a=l.nextSibling&&l.nextSibling.dataset,a)var u=a.dgst;a=u,r=Error(E(419)),r.stack="",r.digest=a,bc({value:r,source:null,stack:null}),t=ub(e,t,n)}else if(vt||Fa(e,t,n,!1),a=(n&e.childLanes)!==0,vt||a){if(a=Ve,a!==null&&(r=Hz(a,n),r!==0&&r!==c.retryLane))throw c.retryLane=r,so(e,r),an(a,e,r),Wx;mx(l)||Yd(),t=ub(e,t,n)}else mx(l)?(t.flags|=192,t.child=e.child,t=null):(e=c.treeContext,Ke=Pn(l.nextSibling),It=t,_e=!0,br=null,Bn=!1,e!==null&&k4(t,e),t=tx(t,r.children),t.flags|=4096);return t}return i?(dr(t),l=r.fallback,i=t.mode,c=e.child,u=c.sibling,r=Ui(c,{mode:"hidden",children:r.children}),r.subtreeFlags=c.subtreeFlags&65011712,u!==null?l=Ui(u,l):(l=Kr(l,i,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Wl(null,r),r=t.child,l=e.child.memoizedState,l===null?l=cb(n):(i=l.cachePool,i!==null?(c=gt._currentValue,i=i.parent!==c?{parent:c,pool:c}:i):i=$4(),l={baseLanes:l.baseLanes|n,cachePool:i}),r.memoizedState=l,r.childLanes=sb(e,a,n),t.memoizedState=lb,Wl(e.child,r)):(ur(t),n=e.child,e=n.sibling,n=Ui(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function tx(e,t){return t=Fd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fd(e,t){return e=yn(22,e,null,t),e.lanes=0,e}function ub(e,t,n){return io(t,e.child,null,n),e=tx(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tz(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Pb(e.return,t,n)}function db(e,t,n,r,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function vT(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=ft.current,l=(a&2)!==0;if(l?(a=a&1|2,t.flags|=128):a&=1,Ge(ft,a),Et(e,t,r,n),r=_e?yc:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tz(e,n,t);else if(e.tag===19)tz(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Bd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),db(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Bd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}db(t,!0,n,null,o,r);break;case"together":db(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Bi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Dr|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Fa(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=Ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function e1(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Rd(e)))}function BU(e,t,n){switch(t.tag){case 3:Dd(t,t.stateNode.containerInfo),sr(t,gt,e.memoizedState.cache),to();break;case 27:case 5:Eb(t);break;case 4:Dd(t,t.stateNode.containerInfo);break;case 10:sr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yb(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ur(t),t.flags|=128,null):(n&t.child.childLanes)!==0?gT(e,t,n):(ur(t),e=Bi(e,t,n),e!==null?e.sibling:null);ur(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Fa(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return vT(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ge(ft,ft.current),r)break;return null;case 22:return t.lanes=0,hT(e,t,n,t.pendingProps);case 24:sr(t,gt,e.memoizedState.cache)}return Bi(e,t,n)}function yT(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!e1(e,n)&&(t.flags&128)===0)return vt=!1,BU(e,t,n);vt=(e.flags&131072)!==0}else vt=!1,_e&&(t.flags&1048576)!==0&&S4(t,yc,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Yr(t.elementType),t.type=e,typeof e=="function")Ax(e)?(r=oo(e,r),t.tag=1,t=Ww(null,t,e,r,n)):(t.tag=0,t=ex(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===yx){t.tag=11,t=Yw(null,t,e,r,n);break e}else if(i===bx){t.tag=14,t=Jw(null,t,e,r,n);break e}}throw t=Tb(e)||e,Error(E(306,t,""))}}return t;case 0:return ex(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=oo(r,t.pendingProps),Ww(e,t,r,i,n);case 3:e:{if(Dd(t,t.stateNode.containerInfo),e===null)throw Error(E(387));r=t.pendingProps;var o=t.memoizedState;i=o.element,qb(e,t),lc(t,r,null,n);var a=t.memoizedState;if(r=a.cache,sr(t,gt,r),r!==o.cache&&Vb(t,[gt],n,!0),ac(),r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=ez(e,t,r,n);break e}else if(r!==i){i=Zn(Error(E(424)),t),bc(i),t=ez(e,t,r,n);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Ke=Pn(e.firstChild),It=t,_e=!0,br=null,Bn=!0,n=T4(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(to(),r===i){t=Bi(e,t,n);break e}Et(e,t,r,n)}t=t.child}return t;case 26:return _d(e,t),e===null?(n=_z(t.type,null,t.pendingProps,null))?t.memoizedState=n:_e||(n=t.type,e=t.pendingProps,r=Qd(yr.current).createElement(n),r[Dt]=t,r[ln]=e,jt(r,n,e),_t(r),t.stateNode=r):t.memoizedState=_z(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Eb(t),e===null&&_e&&(r=t.stateNode=c2(t.type,t.pendingProps,yr.current),It=t,Bn=!0,i=Ke,Ar(t.type)?(hx=i,Ke=Pn(r.firstChild)):Ke=i),Et(e,t,t.pendingProps.children,n),_d(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&_e&&((i=r=Ke)&&(r=pO(r,t.type,t.pendingProps,Bn),r!==null?(t.stateNode=r,It=t,Ke=Pn(r.firstChild),Bn=!1,i=!0):i=!1),i||Cr(t)),Eb(t),i=t.type,o=t.pendingProps,a=e!==null?e.memoizedProps:null,r=o.children,dx(i,o)?r=null:a!==null&&dx(i,a)&&(t.flags|=32),t.memoizedState!==null&&(i=Lx(e,t,IU,null,null,n),wc._currentValue=i),_d(e,t),Et(e,t,r,n),t.child;case 6:return e===null&&_e&&((e=n=Ke)&&(n=hO(n,t.pendingProps,Bn),n!==null?(t.stateNode=n,It=t,Ke=null,e=!0):e=!1),e||Cr(t)),null;case 13:return gT(e,t,n);case 4:return Dd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=io(t,null,r,n):Et(e,t,r,n),t.child;case 11:return Yw(e,t,t.type,t.pendingProps,n);case 7:return Et(e,t,t.pendingProps,n),t.child;case 8:return Et(e,t,t.pendingProps.children,n),t.child;case 12:return Et(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,sr(t,t.type,r.value),Et(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,no(t),i=At(i),r=r(i),t.flags|=1,Et(e,t,r,n),t.child;case 14:return Jw(e,t,t.type,t.pendingProps,n);case 15:return pT(e,t,t.type,t.pendingProps,n);case 19:return vT(e,t,n);case 31:return ZU(e,t,n);case 22:return hT(e,t,n,t.pendingProps);case 24:return no(t),r=At(gt),e===null?(i=Nx(),i===null&&(i=Ve,o=Ox(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),t.memoizedState={parent:r,cache:i},Mx(t),sr(t,gt,i)):((e.lanes&n)!==0&&(qb(e,t),lc(t,null,null,n),ac()),i=e.memoizedState,o=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),sr(t,gt,r)):(r=o.cache,sr(t,gt,r),r!==i.cache&&Vb(t,[gt],n,!0))),Et(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(E(156,t.tag))}function wi(e){e.flags|=4}function fb(e,t,n,r,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(PT())e.flags|=8192;else throw Wr=Md,Rx}else e.flags&=-16777217}function nz(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!d2(t))if(PT())e.flags|=8192;else throw Wr=Md,Rx}function ld(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Vz():536870912,e.lanes|=t,Ra|=t)}function Hl(e,t){if(!_e)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function LU(e,t,n){var r=t.pendingProps;switch(Ux(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Oi(gt),Ia(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ca(t)?wi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ib())),Xe(t),null;case 26:var i=t.type,o=t.memoizedState;return e===null?(wi(t),o!==null?(Xe(t),nz(t,o)):(Xe(t),fb(t,i,null,r,n))):o?o!==e.memoizedState?(wi(t),Xe(t),nz(t,o)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&wi(t),Xe(t),fb(t,i,e,r,n)),null;case 27:if(Id(t),n=yr.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wi(t);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Xe(t),null}e=fi.current,ca(t)?Iw(t,e):(e=c2(i,r,n),t.stateNode=e,wi(t))}return Xe(t),null;case 5:if(Id(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&wi(t);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Xe(t),null}if(o=fi.current,ca(t))Iw(t,o);else{var a=Qd(yr.current);switch(o){case 1:o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=a.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=a.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=a.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?a.createElement("select",{is:r.is}):a.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?a.createElement(i,{is:r.is}):a.createElement(i)}}o[Dt]=t,o[ln]=r;e:for(a=t.child;a!==null;){if(a.tag===5||a.tag===6)o.appendChild(a.stateNode);else if(a.tag!==4&&a.tag!==27&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}t.stateNode=o;e:switch(jt(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&wi(t)}}return Xe(t),fb(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&wi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(E(166));if(e=yr.current,ca(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=It,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Dt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||r2(e.nodeValue,n)),e||Cr(t,!0)}else e=Qd(e).createTextNode(r),e[Dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=ca(t),n!==null){if(e===null){if(!r)throw Error(E(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(E(557));e[Dt]=t}else to(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=ib(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(vn(t),t):(vn(t),null);if((t.flags&128)!==0)throw Error(E(558))}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=ca(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(E(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(E(317));i[Dt]=t}else to(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),i=!1}else i=ib(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(vn(t),t):(vn(t),null)}return vn(t),(t.flags&128)!==0?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ld(t,t.updateQueue),Xe(t),null);case 4:return Ia(),e===null&&l1(t.stateNode.containerInfo),Xe(t),null;case 10:return Oi(t.type),Xe(t),null;case 19:if($t(ft),r=t.memoizedState,r===null)return Xe(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Hl(r,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Bd(e),o!==null){for(t.flags|=128,Hl(r,!1),e=o.updateQueue,t.updateQueue=e,ld(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)b4(n,e),n=n.sibling;return Ge(ft,ft.current&1|2),_e&&Ei(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&xn()>Hd&&(t.flags|=128,i=!0,Hl(r,!1),t.lanes=4194304)}else{if(!i)if(e=Bd(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ld(t,e),Hl(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!_e)return Xe(t),null}else 2*xn()-r.renderingStartTime>Hd&&n!==536870912&&(t.flags|=128,i=!0,Hl(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e!==null?e.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=xn(),e.sibling=null,n=ft.current,Ge(ft,i?n&1|2:n&1),_e&&Ei(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return vn(t),Zx(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(n&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&ld(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&$t(Qr),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Oi(gt),Xe(t),null;case 25:return null;case 30:return null}throw Error(E(156,t.tag))}function PU(e,t){switch(Ux(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Oi(gt),Ia(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Id(t),null;case 31:if(t.memoizedState!==null){if(vn(t),t.alternate===null)throw Error(E(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(ft),null;case 4:return Ia(),null;case 10:return Oi(t.type),null;case 22:case 23:return vn(t),Zx(),e!==null&&$t(Qr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Oi(gt),null;case 25:return null;default:return null}}function bT(e,t){switch(Ux(t),t.tag){case 3:Oi(gt),Ia();break;case 26:case 27:case 5:Id(t);break;case 4:Ia();break;case 31:t.memoizedState!==null&&vn(t);break;case 13:vn(t);break;case 19:$t(ft);break;case 10:Oi(t.type);break;case 22:case 23:vn(t),Zx(),e!==null&&$t(Qr);break;case 24:Oi(gt)}}function Nc(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(l){Ne(t,t.return,l)}}function Er(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,l=a.destroy;if(l!==void 0){a.destroy=void 0,i=t;var c=n,u=l;try{u()}catch(d){Ne(i,c,d)}}}r=r.next}while(r!==o)}}catch(d){Ne(t,t.return,d)}}function xT(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{E4(t,n)}catch(r){Ne(e,e.return,r)}}}function ST(e,t,n){n.props=oo(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ne(e,t,r)}}function sc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){Ne(e,t,i)}}function di(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){Ne(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ne(e,t,i)}else n.current=null}function kT(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){Ne(e,e.return,i)}}function mb(e,t,n){try{var r=e.stateNode;cO(r,e.type,n,t),r[ln]=t}catch(i){Ne(e,e.return,i)}}function _T(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ar(e.type)||e.tag===4}function pb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_T(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Ar(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nx(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ai));else if(r!==4&&(r===27&&Ar(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nx(e,t,n),e=e.sibling;e!==null;)nx(e,t,n),e=e.sibling}function qd(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Ar(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(qd(e,t,n),e=e.sibling;e!==null;)qd(e,t,n),e=e.sibling}function $T(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);jt(t,r,n),t[Dt]=e,t[ln]=n}catch(o){Ne(e,e.return,o)}}var Di=!1,ht=!1,hb=!1,iz=typeof WeakSet=="function"?WeakSet:Set,kt=null;function VU(e,t){if(e=e.containerInfo,sx=nf,e=d4(e),Ex(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,u=0,d=0,m=e,p=null;t:for(;;){for(var f;m!==n||i!==0&&m.nodeType!==3||(l=a+i),m!==o||r!==0&&m.nodeType!==3||(c=a+r),m.nodeType===3&&(a+=m.nodeValue.length),(f=m.firstChild)!==null;)p=m,m=f;for(;;){if(m===e)break t;if(p===n&&++u===i&&(l=a),p===o&&++d===r&&(c=a),(f=m.nextSibling)!==null)break;m=p,p=m.parentNode}m=f}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ux={focusedElem:e,selectionRange:n},nf=!1,kt=t;kt!==null;)if(t=kt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,kt=e;else for(;kt!==null;){switch(t=kt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,n=t,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var x=oo(n.type,i);e=r.getSnapshotBeforeUpdate(x,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(_){Ne(n,n.return,_)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)fx(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":fx(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(E(163))}if(e=t.sibling,e!==null){e.return=t.return,kt=e;break}kt=t.return}}function wT(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ti(e,n),r&4&&Nc(5,n);break;case 1:if(Ti(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(a){Ne(n,n.return,a)}else{var i=oo(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){Ne(n,n.return,a)}}r&64&&xT(n),r&512&&sc(n,n.return);break;case 3:if(Ti(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{E4(e,t)}catch(a){Ne(n,n.return,a)}}break;case 27:t===null&&r&4&&$T(n);case 26:case 5:Ti(e,n),t===null&&r&4&&kT(n),r&512&&sc(n,n.return);break;case 12:Ti(e,n);break;case 31:Ti(e,n),r&4&&CT(e,n);break;case 13:Ti(e,n),r&4&&ET(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=QU.bind(null,n),gO(e,n))));break;case 22:if(r=n.memoizedState!==null||Di,!r){t=t!==null&&t.memoizedState!==null||ht,i=Di;var o=ht;Di=r,(ht=t)&&!o?Ci(e,n,(n.subtreeFlags&8772)!==0):Ti(e,n),Di=i,ht=o}break;case 30:break;default:Ti(e,n)}}function zT(e){var t=e.alternate;t!==null&&(e.alternate=null,zT(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_x(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,rn=!1;function zi(e,t,n){for(n=n.child;n!==null;)TT(e,t,n),n=n.sibling}function TT(e,t,n){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(Ec,n)}catch{}switch(n.tag){case 26:ht||di(n,t),zi(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ht||di(n,t);var r=tt,i=rn;Ar(n.type)&&(tt=n.stateNode,rn=!1),zi(e,t,n),mc(n.stateNode),tt=r,rn=i;break;case 5:ht||di(n,t);case 6:if(r=tt,i=rn,tt=null,zi(e,t,n),tt=r,rn=i,tt!==null)if(rn)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(n.stateNode)}catch(o){Ne(n,t,o)}else try{tt.removeChild(n.stateNode)}catch(o){Ne(n,t,o)}break;case 18:tt!==null&&(rn?(e=tt,yz(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),La(e)):yz(tt,n.stateNode));break;case 4:r=tt,i=rn,tt=n.stateNode.containerInfo,rn=!0,zi(e,t,n),tt=r,rn=i;break;case 0:case 11:case 14:case 15:Er(2,n,t),ht||Er(4,n,t),zi(e,t,n);break;case 1:ht||(di(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&ST(n,t,r)),zi(e,t,n);break;case 21:zi(e,t,n);break;case 22:ht=(r=ht)||n.memoizedState!==null,zi(e,t,n),ht=r;break;default:zi(e,t,n)}}function CT(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{La(e)}catch(n){Ne(t,t.return,n)}}}function ET(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{La(e)}catch(n){Ne(t,t.return,n)}}function FU(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iz),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iz),t;default:throw Error(E(435,e.tag))}}function cd(e,t){var n=FU(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var i=WU.bind(null,e,r);r.then(i,i)}})}function tn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 27:if(Ar(l.type)){tt=l.stateNode,rn=!1;break e}break;case 5:tt=l.stateNode,rn=!1;break e;case 3:case 4:tt=l.stateNode.containerInfo,rn=!0;break e}l=l.return}if(tt===null)throw Error(E(160));TT(o,a,i),tt=null,rn=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)DT(t,e),t=t.sibling}var Yn=null;function DT(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:tn(t,e),nn(e),r&4&&(Er(3,e,e.return),Nc(3,e),Er(5,e,e.return));break;case 1:tn(t,e),nn(e),r&512&&(ht||n===null||di(n,n.return)),r&64&&Di&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Yn;if(tn(t,e),nn(e),r&512&&(ht||n===null||di(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[Ac]||o[Dt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),jt(o,r,n),o[Dt]=e,_t(o),r=o;break e;case"link":var a=wz("link","href",i).get(r+(n.href||""));if(a){for(var l=0;l<a.length;l++)if(o=a[l],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(l,1);break t}}o=i.createElement(r),jt(o,r,n),i.head.appendChild(o);break;case"meta":if(a=wz("meta","content",i).get(r+(n.content||""))){for(l=0;l<a.length;l++)if(o=a[l],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(l,1);break t}}o=i.createElement(r),jt(o,r,n),i.head.appendChild(o);break;default:throw Error(E(468,r))}o[Dt]=e,_t(o),r=o}e.stateNode=r}else zz(i,e.type,e.stateNode);else e.stateNode=$z(i,r,e.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?zz(i,e.type,e.stateNode):$z(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&mb(e,e.memoizedProps,n.memoizedProps)}break;case 27:tn(t,e),nn(e),r&512&&(ht||n===null||di(n,n.return)),n!==null&&r&4&&mb(e,e.memoizedProps,n.memoizedProps);break;case 5:if(tn(t,e),nn(e),r&512&&(ht||n===null||di(n,n.return)),e.flags&32){i=e.stateNode;try{ja(i,"")}catch(x){Ne(e,e.return,x)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,mb(e,i,n!==null?n.memoizedProps:i)),r&1024&&(hb=!0);break;case 6:if(tn(t,e),nn(e),r&4){if(e.stateNode===null)throw Error(E(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(x){Ne(e,e.return,x)}}break;case 3:if(zd=null,i=Yn,Yn=Wd(t.containerInfo),tn(t,e),Yn=i,nn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{La(t.containerInfo)}catch(x){Ne(e,e.return,x)}hb&&(hb=!1,IT(e));break;case 4:r=Yn,Yn=Wd(e.stateNode.containerInfo),tn(t,e),nn(e),Yn=r;break;case 12:tn(t,e),nn(e);break;case 31:tn(t,e),nn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cd(e,r)));break;case 13:tn(t,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(gf=xn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cd(e,r)));break;case 22:i=e.memoizedState!==null;var c=n!==null&&n.memoizedState!==null,u=Di,d=ht;if(Di=u||i,ht=d||c,tn(t,e),ht=d,Di=u,nn(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||c||Di||ht||Jr(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){c=n=t;try{if(o=c.stateNode,i)a=o.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none";else{l=c.stateNode;var m=c.memoizedProps.style,p=m!=null&&m.hasOwnProperty("display")?m.display:null;l.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(x){Ne(c,c.return,x)}}}else if(t.tag===6){if(n===null){c=t;try{c.stateNode.nodeValue=i?"":c.memoizedProps}catch(x){Ne(c,c.return,x)}}}else if(t.tag===18){if(n===null){c=t;try{var f=c.stateNode;i?bz(f,!0):bz(c.stateNode,!1)}catch(x){Ne(c,c.return,x)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,cd(e,n))));break;case 19:tn(t,e),nn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,cd(e,r)));break;case 30:break;case 21:break;default:tn(t,e),nn(e)}}function nn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(_T(r)){n=r;break}r=r.return}if(n==null)throw Error(E(160));switch(n.tag){case 27:var i=n.stateNode,o=pb(e);qd(e,o,i);break;case 5:var a=n.stateNode;n.flags&32&&(ja(a,""),n.flags&=-33);var l=pb(e);qd(e,l,a);break;case 3:case 4:var c=n.stateNode.containerInfo,u=pb(e);nx(e,u,c);break;default:throw Error(E(161))}}catch(d){Ne(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function IT(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;IT(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ti(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)wT(e,t.alternate,t),t=t.sibling}function Jr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Er(4,t,t.return),Jr(t);break;case 1:di(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ST(t,t.return,n),Jr(t);break;case 27:mc(t.stateNode);case 26:case 5:di(t,t.return),Jr(t);break;case 22:t.memoizedState===null&&Jr(t);break;case 30:Jr(t);break;default:Jr(t)}e=e.sibling}}function Ci(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Ci(i,o,n),Nc(4,o);break;case 1:if(Ci(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){Ne(r,r.return,u)}if(r=o,i=r.updateQueue,i!==null){var l=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)C4(c[i],l)}catch(u){Ne(r,r.return,u)}}n&&a&64&&xT(o),sc(o,o.return);break;case 27:$T(o);case 26:case 5:Ci(i,o,n),n&&r===null&&a&4&&kT(o),sc(o,o.return);break;case 12:Ci(i,o,n);break;case 31:Ci(i,o,n),n&&a&4&&CT(i,o);break;case 13:Ci(i,o,n),n&&a&4&&ET(i,o);break;case 22:o.memoizedState===null&&Ci(i,o,n),sc(o,o.return);break;case 30:break;default:Ci(i,o,n)}t=t.sibling}}function t1(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Uc(n))}function n1(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Uc(e))}function Gn(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)AT(e,t,n,r),t=t.sibling}function AT(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Gn(e,t,n,r),i&2048&&Nc(9,t);break;case 1:Gn(e,t,n,r);break;case 3:Gn(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Uc(e)));break;case 12:if(i&2048){Gn(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,l=o.onPostCommit;typeof l=="function"&&l(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(c){Ne(t,t.return,c)}}else Gn(e,t,n,r);break;case 31:Gn(e,t,n,r);break;case 13:Gn(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,t.memoizedState!==null?o._visibility&2?Gn(e,t,n,r):uc(e,t):o._visibility&2?Gn(e,t,n,r):(o._visibility|=2,ua(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),i&2048&&t1(a,t);break;case 24:Gn(e,t,n,r),i&2048&&n1(t.alternate,t);break;default:Gn(e,t,n,r)}}function ua(e,t,n,r,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,a=t,l=n,c=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:ua(o,a,l,c,i),Nc(8,a);break;case 23:break;case 22:var d=a.stateNode;a.memoizedState!==null?d._visibility&2?ua(o,a,l,c,i):uc(o,a):(d._visibility|=2,ua(o,a,l,c,i)),i&&u&2048&&t1(a.alternate,a);break;case 24:ua(o,a,l,c,i),i&&u&2048&&n1(a.alternate,a);break;default:ua(o,a,l,c,i)}t=t.sibling}}function uc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:uc(n,r),i&2048&&t1(r.alternate,r);break;case 24:uc(n,r),i&2048&&n1(r.alternate,r);break;default:uc(n,r)}t=t.sibling}}var ec=8192;function sa(e,t,n){if(e.subtreeFlags&ec)for(e=e.child;e!==null;)jT(e,t,n),e=e.sibling}function jT(e,t,n){switch(e.tag){case 26:sa(e,t,n),e.flags&ec&&e.memoizedState!==null&&CO(n,Yn,e.memoizedState,e.memoizedProps);break;case 5:sa(e,t,n);break;case 3:case 4:var r=Yn;Yn=Wd(e.stateNode.containerInfo),sa(e,t,n),Yn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ec,ec=16777216,sa(e,t,n),ec=r):sa(e,t,n));break;default:sa(e,t,n)}}function UT(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];kt=r,NT(r,e)}UT(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)OT(e),e=e.sibling}function OT(e){switch(e.tag){case 0:case 11:case 15:Gl(e),e.flags&2048&&Er(9,e,e.return);break;case 3:Gl(e);break;case 12:Gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$d(e)):Gl(e);break;default:Gl(e)}}function $d(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];kt=r,NT(r,e)}UT(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Er(8,t,t.return),$d(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,$d(t));break;default:$d(t)}e=e.sibling}}function NT(e,t){for(;kt!==null;){var n=kt;switch(n.tag){case 0:case 11:case 15:Er(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Uc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,kt=r;else e:for(n=e;kt!==null;){r=kt;var i=r.sibling,o=r.return;if(zT(r),r===n){kt=null;break e}if(i!==null){i.return=o,kt=i;break e}kt=o}}}var qU={getCacheForType:function(e){var t=At(gt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return At(gt).controller.signal}},HU=typeof WeakMap=="function"?WeakMap:Map,ze=0,Ve=null,ve=null,be=0,Oe=0,gn=null,hr=!1,Ha=!1,i1=!1,Li=0,ct=0,Dr=0,eo=0,r1=0,bn=0,Ra=0,dc=null,on=null,ix=!1,gf=0,RT=0,Hd=1/0,Gd=null,kr=null,bt=0,_r=null,Ma=null,Ni=0,rx=0,ox=null,MT=null,fc=0,ax=null;function _n(){return(ze&2)!==0&&be!==0?be&-be:ne.T!==null?a1():Gz()}function ZT(){if(bn===0)if((be&536870912)===0||_e){var e=Qu;Qu<<=1,(Qu&3932160)===0&&(Qu=262144),bn=e}else bn=536870912;return e=wn.current,e!==null&&(e.flags|=32),bn}function an(e,t,n){(e===Ve&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(Za(e,0),gr(e,be,bn,!1)),Ic(e,n),((ze&2)===0||e!==Ve)&&(e===Ve&&((ze&2)===0&&(eo|=n),ct===4&&gr(e,be,bn,!1)),pi(e))}function BT(e,t,n){if((ze&6)!==0)throw Error(E(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Dc(e,t),i=r?JU(e,t):gb(e,t,!0),o=r;do{if(i===0){Ha&&!r&&gr(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!GU(n)){i=gb(e,t,!1),o=!1;continue}if(i===2){if(o=t,e.errorRecoveryDisabledLanes&o)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var l=e;i=dc;var c=l.current.memoizedState.isDehydrated;if(c&&(Za(l,a).flags|=256),a=gb(l,a,!1),a!==2){if(i1&&!c){l.errorRecoveryDisabledLanes|=o,eo|=o,i=4;break e}o=on,on=i,o!==null&&(on===null?on=o:on.push.apply(on,o))}i=a}if(o=!1,i!==2)continue}}if(i===1){Za(e,0),gr(e,t,0,!0);break}e:{switch(r=e,o=i,o){case 0:case 1:throw Error(E(345));case 4:if((t&4194048)!==t)break;case 6:gr(r,t,bn,!hr);break e;case 2:on=null;break;case 3:case 5:break;default:throw Error(E(329))}if((t&62914560)===t&&(i=gf+300-xn(),10<i)){if(gr(r,t,bn,!hr),of(r,0,!0)!==0)break e;Ni=t,r.timeoutHandle=a2(rz.bind(null,r,n,on,Gd,ix,t,bn,eo,Ra,hr,o,"Throttled",-0,0),i);break e}rz(r,n,on,Gd,ix,t,bn,eo,Ra,hr,o,null,-0,0)}}break}while(!0);pi(e)}function rz(e,t,n,r,i,o,a,l,c,u,d,m,p,f){if(e.timeoutHandle=-1,m=t.subtreeFlags,m&8192||(m&16785408)===16785408){m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ai},jT(t,o,m);var x=(o&62914560)===o?gf-xn():(o&4194048)===o?RT-xn():0;if(x=EO(m,x),x!==null){Ni=o,e.cancelPendingCommit=x(az.bind(null,e,t,o,n,r,i,a,l,c,d,m,null,p,f)),gr(e,o,a,!u);return}}az(e,t,o,n,r,i,a,l,c)}function GU(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!$n(o(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function gr(e,t,n,r){t&=~r1,t&=~eo,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-kn(i),a=1<<o;r[o]=-1,i&=~a}n!==0&&Fz(e,n,t)}function vf(){return(ze&6)===0?(Rc(0,!1),!1):!0}function o1(){if(ve!==null){if(Oe===0)var e=ve.return;else e=ve,ji=uo=null,Fx(e),Ca=null,xc=0,e=ve;for(;e!==null;)bT(e.alternate,e),e=e.return;ve=null}}function Za(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,dO(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ni=0,o1(),Ve=e,ve=n=Ui(e.current,null),be=t,Oe=0,gn=null,hr=!1,Ha=Dc(e,t),i1=!1,Ra=bn=r1=eo=Dr=ct=0,on=dc=null,ix=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-kn(r),o=1<<i;t|=e[i],r&=~o}return Li=t,sf(),n}function LT(e,t){de=null,ne.H=kc,t===qa||t===df?(t=Nw(),Oe=3):t===Rx?(t=Nw(),Oe=4):Oe=t===Wx?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,ve===null&&(ct=1,Vd(e,Zn(t,e.current)))}function PT(){var e=wn.current;return e===null?!0:(be&4194048)===be?Ln===null:(be&62914560)===be||(be&536870912)!==0?e===Ln:!1}function VT(){var e=ne.H;return ne.H=kc,e===null?kc:e}function FT(){var e=ne.A;return ne.A=qU,e}function Yd(){ct=4,hr||(be&4194048)!==be&&wn.current!==null||(Ha=!0),(Dr&134217727)===0&&(eo&134217727)===0||Ve===null||gr(Ve,be,bn,!1)}function gb(e,t,n){var r=ze;ze|=2;var i=VT(),o=FT();(Ve!==e||be!==t)&&(Gd=null,Za(e,t)),t=!1;var a=ct;e:do try{if(Oe!==0&&ve!==null){var l=ve,c=gn;switch(Oe){case 8:o1(),a=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(t=!0);var u=Oe;if(Oe=0,gn=null,_a(e,l,c,u),n&&Ha){a=0;break e}break;default:u=Oe,Oe=0,gn=null,_a(e,l,c,u)}}YU(),a=ct;break}catch(d){LT(e,d)}while(!0);return t&&e.shellSuspendCounter++,ji=uo=null,ze=r,ne.H=i,ne.A=o,ve===null&&(Ve=null,be=0,sf()),a}function YU(){for(;ve!==null;)qT(ve)}function JU(e,t){var n=ze;ze|=2;var r=VT(),i=FT();Ve!==e||be!==t?(Gd=null,Hd=xn()+500,Za(e,t)):Ha=Dc(e,t);e:do try{if(Oe!==0&&ve!==null){t=ve;var o=gn;t:switch(Oe){case 1:Oe=0,gn=null,_a(e,t,o,1);break;case 2:case 9:if(Ow(o)){Oe=0,gn=null,oz(t);break}t=function(){Oe!==2&&Oe!==9||Ve!==e||(Oe=7),pi(e)},o.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Ow(o)?(Oe=0,gn=null,oz(t)):(Oe=0,gn=null,_a(e,t,o,7));break;case 5:var a=null;switch(ve.tag){case 26:a=ve.memoizedState;case 5:case 27:var l=ve;if(a?d2(a):l.stateNode.complete){Oe=0,gn=null;var c=l.sibling;if(c!==null)ve=c;else{var u=l.return;u!==null?(ve=u,yf(u)):ve=null}break t}}Oe=0,gn=null,_a(e,t,o,5);break;case 6:Oe=0,gn=null,_a(e,t,o,6);break;case 8:o1(),ct=6;break e;default:throw Error(E(462))}}XU();break}catch(d){LT(e,d)}while(!0);return ji=uo=null,ne.H=r,ne.A=i,ze=n,ve!==null?0:(Ve=null,be=0,sf(),ct)}function XU(){for(;ve!==null&&!bj();)qT(ve)}function qT(e){var t=yT(e.alternate,e,Li);e.memoizedProps=e.pendingProps,t===null?yf(e):ve=t}function oz(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Qw(n,t,t.pendingProps,t.type,void 0,be);break;case 11:t=Qw(n,t,t.pendingProps,t.type.render,t.ref,be);break;case 5:Fx(t);default:bT(n,t),t=ve=b4(t,Li),t=yT(n,t,Li)}e.memoizedProps=e.pendingProps,t===null?yf(e):ve=t}function _a(e,t,n,r){ji=uo=null,Fx(t),Ca=null,xc=0;var i=t.return;try{if(MU(e,i,t,n,be)){ct=1,Vd(e,Zn(n,e.current)),ve=null;return}}catch(o){if(i!==null)throw ve=i,o;ct=1,Vd(e,Zn(n,e.current)),ve=null;return}t.flags&32768?(_e||r===1?e=!0:Ha||(be&536870912)!==0?e=!1:(hr=e=!0,(r===2||r===9||r===3||r===6)&&(r=wn.current,r!==null&&r.tag===13&&(r.flags|=16384))),HT(t,e)):yf(t)}function yf(e){var t=e;do{if((t.flags&32768)!==0){HT(t,hr);return}e=t.return;var n=LU(t.alternate,t,Li);if(n!==null){ve=n;return}if(t=t.sibling,t!==null){ve=t;return}ve=t=e}while(t!==null);ct===0&&(ct=5)}function HT(e,t){do{var n=PU(e.alternate,e);if(n!==null){n.flags&=32767,ve=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ve=e;return}ve=e=n}while(e!==null);ct=6,ve=null}function az(e,t,n,r,i,o,a,l,c){e.cancelPendingCommit=null;do bf();while(bt!==0);if((ze&6)!==0)throw Error(E(327));if(t!==null){if(t===e.current)throw Error(E(177));if(o=t.lanes|t.childLanes,o|=Dx,Ej(e,n,o,a,l,c),e===Ve&&(ve=Ve=null,be=0),Ma=t,_r=e,Ni=n,rx=o,ox=i,MT=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,eO(Ad,function(){return KT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=ne.T,ne.T=null,i=Te.p,Te.p=2,a=ze,ze|=4;try{VU(e,t,n)}finally{ze=a,Te.p=i,ne.T=r}}bt=1,GT(),YT(),JT()}}function GT(){if(bt===1){bt=0;var e=_r,t=Ma,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=ne.T,ne.T=null;var r=Te.p;Te.p=2;var i=ze;ze|=4;try{DT(t,e);var o=ux,a=d4(e.containerInfo),l=o.focusedElem,c=o.selectionRange;if(a!==l&&l&&l.ownerDocument&&u4(l.ownerDocument.documentElement,l)){if(c!==null&&Ex(l)){var u=c.start,d=c.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var m=l.ownerDocument||document,p=m&&m.defaultView||window;if(p.getSelection){var f=p.getSelection(),x=l.textContent.length,_=Math.min(c.start,x),O=c.end===void 0?_:Math.min(c.end,x);!f.extend&&_>O&&(a=O,O=_,_=a);var h=Cw(l,_),g=Cw(l,O);if(h&&g&&(f.rangeCount!==1||f.anchorNode!==h.node||f.anchorOffset!==h.offset||f.focusNode!==g.node||f.focusOffset!==g.offset)){var b=m.createRange();b.setStart(h.node,h.offset),f.removeAllRanges(),_>O?(f.addRange(b),f.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),f.addRange(b))}}}}for(m=[],f=l;f=f.parentNode;)f.nodeType===1&&m.push({element:f,left:f.scrollLeft,top:f.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<m.length;l++){var v=m[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}nf=!!sx,ux=sx=null}finally{ze=i,Te.p=r,ne.T=n}}e.current=t,bt=2}}function YT(){if(bt===2){bt=0;var e=_r,t=Ma,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=ne.T,ne.T=null;var r=Te.p;Te.p=2;var i=ze;ze|=4;try{wT(e,t.alternate,t)}finally{ze=i,Te.p=r,ne.T=n}}bt=3}}function JT(){if(bt===4||bt===3){bt=0,xj();var e=_r,t=Ma,n=Ni,r=MT;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,Ma=_r=null,XT(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(kr=null),kx(n),t=t.stateNode,Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(Ec,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ne.T,i=Te.p,Te.p=2,ne.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var l=r[a];o(l.value,{componentStack:l.stack})}}finally{ne.T=t,Te.p=i}}(Ni&3)!==0&&bf(),pi(e),i=e.pendingLanes,(n&261930)!==0&&(i&42)!==0?e===ax?fc++:(fc=0,ax=e):fc=0,Rc(0,!1)}}function XT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Uc(t)))}function bf(){return GT(),YT(),JT(),KT()}function KT(){if(bt!==5)return!1;var e=_r,t=rx;rx=0;var n=kx(Ni),r=ne.T,i=Te.p;try{Te.p=32>n?32:n,ne.T=null,n=ox,ox=null;var o=_r,a=Ni;if(bt=0,Ma=_r=null,Ni=0,(ze&6)!==0)throw Error(E(331));var l=ze;if(ze|=4,OT(o.current),AT(o,o.current,a,n),ze=l,Rc(0,!1),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(Ec,o)}catch{}return!0}finally{Te.p=i,ne.T=r,XT(e,t)}}function lz(e,t,n){t=Zn(n,t),t=Wb(e.stateNode,t,2),e=Sr(e,t,2),e!==null&&(Ic(e,2),pi(e))}function Ne(e,t,n){if(e.tag===3)lz(e,e,n);else for(;t!==null;){if(t.tag===3){lz(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kr===null||!kr.has(r))){e=Zn(n,e),n=fT(2),r=Sr(t,n,2),r!==null&&(mT(n,r,t,e),Ic(r,2),pi(r));break}}t=t.return}}function vb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new HU;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i1=!0,i.add(n),e=KU.bind(null,e,t,n),t.then(e,e))}function KU(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ve===e&&(be&n)===n&&(ct===4||ct===3&&(be&62914560)===be&&300>xn()-gf?(ze&2)===0&&Za(e,0):r1|=n,Ra===be&&(Ra=0)),pi(e)}function QT(e,t){t===0&&(t=Vz()),e=so(e,t),e!==null&&(Ic(e,t),pi(e))}function QU(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),QT(e,n)}function WU(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(E(314))}r!==null&&r.delete(t),QT(e,n)}function eO(e,t){return xx(e,t)}var Jd=null,da=null,lx=!1,Xd=!1,yb=!1,vr=0;function pi(e){e!==da&&e.next===null&&(da===null?Jd=da=e:da=da.next=e),Xd=!0,lx||(lx=!0,nO())}function Rc(e,t){if(!yb&&Xd){yb=!0;do for(var n=!1,r=Jd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var a=r.suspendedLanes,l=r.pingedLanes;o=(1<<31-kn(42|e)+1)-1,o&=i&~(a&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,cz(r,o))}else o=be,o=of(r,r===Ve?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(o&3)===0||Dc(r,o)||(n=!0,cz(r,o));r=r.next}while(n);yb=!1}}function tO(){WT()}function WT(){Xd=lx=!1;var e=0;vr!==0&&uO()&&(e=vr);for(var t=xn(),n=null,r=Jd;r!==null;){var i=r.next,o=e2(r,t);o===0?(r.next=null,n===null?Jd=i:n.next=i,i===null&&(da=n)):(n=r,(e!==0||(o&3)!==0)&&(Xd=!0)),r=i}bt!==0&&bt!==5||Rc(e,!1),vr!==0&&(vr=0)}function e2(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var a=31-kn(o),l=1<<a,c=i[a];c===-1?((l&n)===0||(l&r)!==0)&&(i[a]=Cj(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}if(t=Ve,n=be,n=of(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Gy(r),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Dc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Gy(r),kx(n)){case 2:case 8:n=Lz;break;case 32:n=Ad;break;case 268435456:n=Pz;break;default:n=Ad}return r=t2.bind(null,e),n=xx(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Gy(r),e.callbackPriority=2,e.callbackNode=null,2}function t2(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(bf()&&e.callbackNode!==n)return null;var r=be;return r=of(e,e===Ve?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(BT(e,r,t),e2(e,xn()),e.callbackNode!=null&&e.callbackNode===n?t2.bind(null,e):null)}function cz(e,t){if(bf())return null;BT(e,t,!0)}function nO(){fO(function(){(ze&6)!==0?xx(Bz,tO):WT()})}function a1(){if(vr===0){var e=Ua;e===0&&(e=Ku,Ku<<=1,(Ku&261888)===0&&(Ku=256)),vr=e}return vr}function sz(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:hd(""+e)}function uz(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function iO(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var o=sz((i[ln]||null).action),a=r.submitter;a&&(t=(t=a[ln]||null)?sz(t.formAction):a.getAttribute("formAction"),t!==null&&(o=t,a=null));var l=new af("action","action",null,r,i);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(vr!==0){var c=a?uz(i,a):new FormData(i);Kb(n,{pending:!0,data:c,method:i.method,action:o},null,c)}}else typeof o=="function"&&(l.preventDefault(),c=a?uz(i,a):new FormData(i),Kb(n,{pending:!0,data:c,method:i.method,action:o},o,c))},currentTarget:i}]})}}for(sd=0;sd<Zb.length;sd++)ud=Zb[sd],dz=ud.toLowerCase(),fz=ud[0].toUpperCase()+ud.slice(1),Jn(dz,"on"+fz);var ud,dz,fz,sd;Jn(m4,"onAnimationEnd");Jn(p4,"onAnimationIteration");Jn(h4,"onAnimationStart");Jn("dblclick","onDoubleClick");Jn("focusin","onFocus");Jn("focusout","onBlur");Jn(SU,"onTransitionRun");Jn(kU,"onTransitionStart");Jn(_U,"onTransitionCancel");Jn(g4,"onTransitionEnd");Aa("onMouseEnter",["mouseout","mouseover"]);Aa("onMouseLeave",["mouseout","mouseover"]);Aa("onPointerEnter",["pointerout","pointerover"]);Aa("onPointerLeave",["pointerout","pointerover"]);ao("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ao("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ao("onBeforeInput",["compositionend","keypress","textInput","paste"]);ao("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ao("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ao("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _c="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(" "),rO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_c));function n2(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Ud(d)}i.currentTarget=null,o=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;o=l,i.currentTarget=u;try{o(i)}catch(d){Ud(d)}i.currentTarget=null,o=c}}}}function ge(e,t){var n=t[Ib];n===void 0&&(n=t[Ib]=new Set);var r=e+"__bubble";n.has(r)||(i2(t,e,2,!1),n.add(r))}function bb(e,t,n){var r=0;t&&(r|=4),i2(n,e,r,t)}var dd="_reactListening"+Math.random().toString(36).slice(2);function l1(e){if(!e[dd]){e[dd]=!0,Yz.forEach(function(n){n!=="selectionchange"&&(rO.has(n)||bb(n,!1,e),bb(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[dd]||(t[dd]=!0,bb("selectionchange",!1,t))}}function i2(e,t,n,r){switch(g2(t)){case 2:var i=AO;break;case 8:i=jO;break;default:i=d1}n=i.bind(null,t,n,e),i=void 0,!Nb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function xb(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&a.stateNode.containerInfo===i)return;a=a.return}for(;l!==null;){if(a=pa(l),a===null)return;if(c=a.tag,c===5||c===6||c===26||c===27){r=o=a;continue e}l=l.parentNode}}r=r.return}n4(function(){var u=o,d=wx(n),m=[];e:{var p=v4.get(e);if(p!==void 0){var f=af,x=e;switch(e){case"keypress":if(vd(n)===0)break e;case"keydown":case"keyup":f=Wj;break;case"focusin":x="focus",f=Qy;break;case"focusout":x="blur",f=Qy;break;case"beforeblur":case"afterblur":f=Qy;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=bw;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Lj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=nU;break;case m4:case p4:case h4:f=Fj;break;case g4:f=rU;break;case"scroll":case"scrollend":f=Zj;break;case"wheel":f=aU;break;case"copy":case"cut":case"paste":f=Hj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Sw;break;case"toggle":case"beforetoggle":f=cU}var _=(t&4)!==0,O=!_&&(e==="scroll"||e==="scrollend"),h=_?p!==null?p+"Capture":null:p;_=[];for(var g=u,b;g!==null;){var v=g;if(b=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||b===null||h===null||(v=hc(g,h),v!=null&&_.push($c(g,v,b))),O)break;g=g.return}0<_.length&&(p=new f(p,x,null,n,d),m.push({event:p,listeners:_}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",p&&n!==Ob&&(x=n.relatedTarget||n.fromElement)&&(pa(x)||x[Pa]))break e;if((f||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,f?(x=n.relatedTarget||n.toElement,f=u,x=x?pa(x):null,x!==null&&(O=Cc(x),_=x.tag,x!==O||_!==5&&_!==27&&_!==6)&&(x=null)):(f=null,x=u),f!==x)){if(_=bw,v="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(_=Sw,v="onPointerLeave",h="onPointerEnter",g="pointer"),O=f==null?p:Ql(f),b=x==null?p:Ql(x),p=new _(v,g+"leave",f,n,d),p.target=O,p.relatedTarget=b,v=null,pa(d)===u&&(_=new _(h,g+"enter",x,n,d),_.target=b,_.relatedTarget=O,v=_),O=v,f&&x)t:{for(_=oO,h=f,g=x,b=0,v=h;v;v=_(v))b++;v=0;for(var I=g;I;I=_(I))v++;for(;0<b-v;)h=_(h),b--;for(;0<v-b;)g=_(g),v--;for(;b--;){if(h===g||g!==null&&h===g.alternate){_=h;break t}h=_(h),g=_(g)}_=null}else _=null;f!==null&&mz(m,p,f,_,!1),x!==null&&O!==null&&mz(m,O,x,_,!0)}}e:{if(p=u?Ql(u):window,f=p.nodeName&&p.nodeName.toLowerCase(),f==="select"||f==="input"&&p.type==="file")var J=ww;else if($w(p))if(c4)J=yU;else{J=gU;var L=hU}else f=p.nodeName,!f||f.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&$x(u.elementType)&&(J=ww):J=vU;if(J&&(J=J(e,u))){l4(m,J,n,d);break e}L&&L(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&Ub(p,"number",p.value)}switch(L=u?Ql(u):window,e){case"focusin":($w(L)||L.contentEditable==="true")&&(va=L,Rb=u,ic=null);break;case"focusout":ic=Rb=va=null;break;case"mousedown":Mb=!0;break;case"contextmenu":case"mouseup":case"dragend":Mb=!1,Ew(m,n,d);break;case"selectionchange":if(xU)break;case"keydown":case"keyup":Ew(m,n,d)}var T;if(Cx)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else ga?o4(e,n)&&(w="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(w="onCompositionStart");w&&(r4&&n.locale!=="ko"&&(ga||w!=="onCompositionStart"?w==="onCompositionEnd"&&ga&&(T=i4()):(pr=d,zx="value"in pr?pr.value:pr.textContent,ga=!0)),L=Kd(u,w),0<L.length&&(w=new xw(w,e,null,n,d),m.push({event:w,listeners:L}),T?w.data=T:(T=a4(n),T!==null&&(w.data=T)))),(T=uU?dU(e,n):fU(e,n))&&(w=Kd(u,"onBeforeInput"),0<w.length&&(L=new xw("onBeforeInput","beforeinput",null,n,d),m.push({event:L,listeners:w}),L.data=T)),iO(m,e,u,n,d)}n2(m,t)})}function $c(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Kd(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=hc(e,n),i!=null&&r.unshift($c(e,i,o)),i=hc(e,t),i!=null&&r.push($c(e,i,o))),e.tag===3)return r;e=e.return}return[]}function oO(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function mz(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,u=l.stateNode;if(l=l.tag,c!==null&&c===r)break;l!==5&&l!==26&&l!==27||u===null||(c=u,i?(u=hc(n,o),u!=null&&a.unshift($c(n,u,c))):i||(u=hc(n,o),u!=null&&a.push($c(n,u,c)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var aO=/\r\n?/g,lO=/\u0000|\uFFFD/g;function pz(e){return(typeof e=="string"?e:""+e).replace(aO,`
9
+ `).replace(lO,"")}function r2(e,t){return t=pz(t),pz(e)===t}function Ze(e,t,n,r,i,o){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||ja(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&ja(e,""+r);break;case"className":ed(e,"class",r);break;case"tabIndex":ed(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ed(e,n,r);break;case"style":t4(e,r,o);break;case"data":if(t!=="object"){ed(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=hd(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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"&&(n==="formAction"?(t!=="input"&&Ze(e,t,"name",i.name,i,null),Ze(e,t,"formEncType",i.formEncType,i,null),Ze(e,t,"formMethod",i.formMethod,i,null),Ze(e,t,"formTarget",i.formTarget,i,null)):(Ze(e,t,"encType",i.encType,i,null),Ze(e,t,"method",i.method,i,null),Ze(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=hd(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Ai);break;case"onScroll":r!=null&&ge("scroll",e);break;case"onScrollEnd":r!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(E(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(E(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=hd(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":ge("beforetoggle",e),ge("toggle",e),pd(e,"popover",r);break;case"xlinkActuate":$i(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":$i(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":$i(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":$i(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":$i(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":$i(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":$i(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":$i(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":$i(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":pd(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Rj.get(n)||n,pd(e,n,r))}}function cx(e,t,n,r,i,o){switch(n){case"style":t4(e,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(E(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(E(60));e.innerHTML=n}}break;case"children":typeof r=="string"?ja(e,r):(typeof r=="number"||typeof r=="bigint")&&ja(e,""+r);break;case"onScroll":r!=null&&ge("scroll",e);break;case"onScrollEnd":r!=null&&ge("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jz.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),o=e[ln]||null,o=o!=null?o[n]:null,typeof o=="function"&&e.removeEventListener(t,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):pd(e,n,r)}}}function jt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var a=n[o];if(a!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:Ze(e,t,o,a,n,null)}}i&&Ze(e,t,"srcSet",n.srcSet,n,null),r&&Ze(e,t,"src",n.src,n,null);return;case"input":ge("invalid",e);var l=o=a=i=null,c=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":i=d;break;case"type":a=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":o=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(E(137,t));break;default:Ze(e,t,r,d,n,null)}}Qz(e,o,l,c,u,a,i,!1);return;case"select":ge("invalid",e),r=a=o=null;for(i in n)if(n.hasOwnProperty(i)&&(l=n[i],l!=null))switch(i){case"value":o=l;break;case"defaultValue":a=l;break;case"multiple":r=l;default:Ze(e,t,i,l,n,null)}t=o,n=a,e.multiple=!!r,t!=null?wa(e,!!r,t,!1):n!=null&&wa(e,!!r,n,!0);return;case"textarea":ge("invalid",e),o=i=r=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":r=l;break;case"defaultValue":i=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(E(91));break;default:Ze(e,t,a,l,n,null)}e4(e,r,i,o);return;case"option":for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null)&&(c==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":Ze(e,t,c,r,n,null));return;case"dialog":ge("beforetoggle",e),ge("toggle",e),ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(r=0;r<_c.length;r++)ge(_c[r],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(E(137,t));default:Ze(e,t,u,r,n,null)}return;default:if($x(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&cx(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Ze(e,t,l,r,n,null))}function cO(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,a=null,l=null,c=null,u=null,d=null;for(f in n){var m=n[f];if(n.hasOwnProperty(f)&&m!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":c=m;default:r.hasOwnProperty(f)||Ze(e,t,f,null,r,m)}}for(var p in r){var f=r[p];if(m=n[p],r.hasOwnProperty(p)&&(f!=null||m!=null))switch(p){case"type":o=f;break;case"name":i=f;break;case"checked":u=f;break;case"defaultChecked":d=f;break;case"value":a=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(E(137,t));break;default:f!==m&&Ze(e,t,p,f,r,m)}}jb(e,a,l,c,u,d,o,i);return;case"select":f=a=l=p=null;for(o in n)if(c=n[o],n.hasOwnProperty(o)&&c!=null)switch(o){case"value":break;case"multiple":f=c;default:r.hasOwnProperty(o)||Ze(e,t,o,null,r,c)}for(i in r)if(o=r[i],c=n[i],r.hasOwnProperty(i)&&(o!=null||c!=null))switch(i){case"value":p=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:o!==c&&Ze(e,t,i,o,r,c)}t=l,n=a,r=f,p!=null?wa(e,!!n,p,!1):!!r!=!!n&&(t!=null?wa(e,!!n,t,!0):wa(e,!!n,n?[]:"",!1));return;case"textarea":f=p=null;for(l in n)if(i=n[l],n.hasOwnProperty(l)&&i!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Ze(e,t,l,null,r,i)}for(a in r)if(i=r[a],o=n[a],r.hasOwnProperty(a)&&(i!=null||o!=null))switch(a){case"value":p=i;break;case"defaultValue":f=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(E(91));break;default:i!==o&&Ze(e,t,a,i,r,o)}Wz(e,p,f);return;case"option":for(var x in n)p=n[x],n.hasOwnProperty(x)&&p!=null&&!r.hasOwnProperty(x)&&(x==="selected"?e.selected=!1:Ze(e,t,x,null,r,p));for(c in r)p=r[c],f=n[c],r.hasOwnProperty(c)&&p!==f&&(p!=null||f!=null)&&(c==="selected"?e.selected=p&&typeof p!="function"&&typeof p!="symbol":Ze(e,t,c,p,r,f));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 _ in n)p=n[_],n.hasOwnProperty(_)&&p!=null&&!r.hasOwnProperty(_)&&Ze(e,t,_,null,r,p);for(u in r)if(p=r[u],f=n[u],r.hasOwnProperty(u)&&p!==f&&(p!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(E(137,t));break;default:Ze(e,t,u,p,r,f)}return;default:if($x(t)){for(var O in n)p=n[O],n.hasOwnProperty(O)&&p!==void 0&&!r.hasOwnProperty(O)&&cx(e,t,O,void 0,r,p);for(d in r)p=r[d],f=n[d],!r.hasOwnProperty(d)||p===f||p===void 0&&f===void 0||cx(e,t,d,p,r,f);return}}for(var h in n)p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h)&&Ze(e,t,h,null,r,p);for(m in r)p=r[m],f=n[m],!r.hasOwnProperty(m)||p===f||p==null&&f==null||Ze(e,t,m,p,r,f)}function hz(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sO(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,l=i.duration;if(o&&l&&hz(a)){for(a=0,l=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],u=c.startTime;if(u>l)break;var d=c.transferSize,m=c.initiatorType;d&&hz(m)&&(c=c.responseEnd,a+=d*(c<l?1:(l-u)/(c-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var sx=null,ux=null;function Qd(e){return e.nodeType===9?e:e.ownerDocument}function gz(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function o2(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function dx(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Sb=null;function uO(){var e=window.event;return e&&e.type==="popstate"?e===Sb?!1:(Sb=e,!0):(Sb=null,!1)}var a2=typeof setTimeout=="function"?setTimeout:void 0,dO=typeof clearTimeout=="function"?clearTimeout:void 0,vz=typeof Promise=="function"?Promise:void 0,fO=typeof queueMicrotask=="function"?queueMicrotask:typeof vz<"u"?function(e){return vz.resolve(null).then(e).catch(mO)}:a2;function mO(e){setTimeout(function(){throw e})}function Ar(e){return e==="head"}function yz(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(i),La(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")mc(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,mc(n);for(var o=n.firstChild;o;){var a=o.nextSibling,l=o.nodeName;o[Ac]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=a}}else n==="body"&&mc(e.ownerDocument.body);n=i}while(n);La(t)}function bz(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function fx(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":fx(n),_x(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function pO(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Ac])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=Pn(e.nextSibling),e===null)break}return null}function hO(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pn(e.nextSibling),e===null))return null;return e}function l2(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pn(e.nextSibling),e===null))return null;return e}function mx(e){return e.data==="$?"||e.data==="$~"}function px(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gO(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Pn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var hx=null;function xz(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Sz(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function c2(e,t,n){switch(t=Qd(n),e){case"html":if(e=t.documentElement,!e)throw Error(E(452));return e;case"head":if(e=t.head,!e)throw Error(E(453));return e;case"body":if(e=t.body,!e)throw Error(E(454));return e;default:throw Error(E(451))}}function mc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_x(e)}var Vn=new Map,kz=new Set;function Wd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Pi=Te.d;Te.d={f:vO,r:yO,D:bO,C:xO,L:SO,m:kO,X:$O,S:_O,M:wO};function vO(){var e=Pi.f(),t=vf();return e||t}function yO(e){var t=Va(e);t!==null&&t.tag===5&&t.type==="form"?tT(t):Pi.r(e)}var Ga=typeof document>"u"?null:document;function s2(e,t,n){var r=Ga;if(r&&typeof t=="string"&&t){var i=Mn(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),kz.has(i)||(kz.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),jt(t,"link",e),_t(t),r.head.appendChild(t)))}}function bO(e){Pi.D(e),s2("dns-prefetch",e,null)}function xO(e,t){Pi.C(e,t),s2("preconnect",e,t)}function SO(e,t,n){Pi.L(e,t,n);var r=Ga;if(r&&e&&t){var i='link[rel="preload"][as="'+Mn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Mn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Mn(n.imageSizes)+'"]')):i+='[href="'+Mn(e)+'"]';var o=i;switch(t){case"style":o=Ba(e);break;case"script":o=Ya(e)}Vn.has(o)||(e=Qe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Vn.set(o,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(Mc(o))||t==="script"&&r.querySelector(Zc(o))||(t=r.createElement("link"),jt(t,"link",e),_t(t),r.head.appendChild(t)))}}function kO(e,t){Pi.m(e,t);var n=Ga;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Mn(r)+'"][href="'+Mn(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ya(e)}if(!Vn.has(o)&&(e=Qe({rel:"modulepreload",href:e},t),Vn.set(o,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Zc(o)))return}r=n.createElement("link"),jt(r,"link",e),_t(r),n.head.appendChild(r)}}}function _O(e,t,n){Pi.S(e,t,n);var r=Ga;if(r&&e){var i=$a(r).hoistableStyles,o=Ba(e);t=t||"default";var a=i.get(o);if(!a){var l={loading:0,preload:null};if(a=r.querySelector(Mc(o)))l.loading=5;else{e=Qe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vn.get(o))&&c1(e,n);var c=a=r.createElement("link");_t(c),jt(c,"link",e),c._p=new Promise(function(u,d){c.onload=u,c.onerror=d}),c.addEventListener("load",function(){l.loading|=1}),c.addEventListener("error",function(){l.loading|=2}),l.loading|=4,wd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:l},i.set(o,a)}}}function $O(e,t){Pi.X(e,t);var n=Ga;if(n&&e){var r=$a(n).hoistableScripts,i=Ya(e),o=r.get(i);o||(o=n.querySelector(Zc(i)),o||(e=Qe({src:e,async:!0},t),(t=Vn.get(i))&&s1(e,t),o=n.createElement("script"),_t(o),jt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function wO(e,t){Pi.M(e,t);var n=Ga;if(n&&e){var r=$a(n).hoistableScripts,i=Ya(e),o=r.get(i);o||(o=n.querySelector(Zc(i)),o||(e=Qe({src:e,async:!0,type:"module"},t),(t=Vn.get(i))&&s1(e,t),o=n.createElement("script"),_t(o),jt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function _z(e,t,n,r){var i=(i=yr.current)?Wd(i):null;if(!i)throw Error(E(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Ba(n.href),n=$a(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ba(n.href);var o=$a(i).hoistableStyles,a=o.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,a),(o=i.querySelector(Mc(e)))&&!o._p&&(a.instance=o,a.state.loading=5),Vn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Vn.set(e,n),o||zO(i,e,n,a.state))),t&&r===null)throw Error(E(528,""));return a}if(t&&r!==null)throw Error(E(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ya(n),n=$a(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(E(444,e))}}function Ba(e){return'href="'+Mn(e)+'"'}function Mc(e){return'link[rel="stylesheet"]['+e+"]"}function u2(e){return Qe({},e,{"data-precedence":e.precedence,precedence:null})}function zO(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),jt(t,"link",n),_t(t),e.head.appendChild(t))}function Ya(e){return'[src="'+Mn(e)+'"]'}function Zc(e){return"script[async]"+e}function $z(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Mn(n.href)+'"]');if(r)return t.instance=r,_t(r),r;var i=Qe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),_t(r),jt(r,"style",i),wd(r,n.precedence,e),t.instance=r;case"stylesheet":i=Ba(n.href);var o=e.querySelector(Mc(i));if(o)return t.state.loading|=4,t.instance=o,_t(o),o;r=u2(n),(i=Vn.get(i))&&c1(r,i),o=(e.ownerDocument||e).createElement("link"),_t(o);var a=o;return a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),jt(o,"link",r),t.state.loading|=4,wd(o,n.precedence,e),t.instance=o;case"script":return o=Ya(n.src),(i=e.querySelector(Zc(o)))?(t.instance=i,_t(i),i):(r=n,(i=Vn.get(o))&&(r=Qe({},n),s1(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),_t(i),jt(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(E(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,wd(r,n.precedence,e));return t.instance}function wd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var l=r[a];if(l.dataset.precedence===t)o=l;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function c1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function s1(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var zd=null;function wz(e,t,n){if(zd===null){var r=new Map,i=zd=new Map;i.set(n,r)}else i=zd,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Ac]||o[Dt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var a=o.getAttribute(t)||"";a=e+a;var l=r.get(a);l?l.push(o):r.set(a,[o])}}return r}function zz(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function TO(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function d2(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function CO(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=Ba(r.href),o=t.querySelector(Mc(i));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ef.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,_t(o);return}o=t.ownerDocument||t,r=u2(r),(i=Vn.get(i))&&c1(r,i),o=o.createElement("link"),_t(o);var a=o;a._p=new Promise(function(l,c){a.onload=l,a.onerror=c}),jt(o,"link",r),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ef.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var kb=0;function EO(e,t){return e.stylesheets&&e.count===0&&Td(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Td(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&kb===0&&(kb=62500*sO());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Td(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>kb?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function ef(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Td(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tf=null;function Td(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tf=new Map,t.forEach(DO,e),tf=null,ef.call(e))}function DO(e,t){if(!(t.state.loading&4)){var n=tf.get(e);if(n)var r=n.get(null);else{n=new Map,tf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}i=t.instance,a=i.getAttribute("data-precedence"),o=n.get(a)||r,o===r&&n.set(null,i),n.set(a,i),this.count++,r=ef.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var wc={$$typeof:Ii,Provider:null,Consumer:null,_currentValue:Xr,_currentValue2:Xr,_threadCount:0};function IO(e,t,n,r,i,o,a,l,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Yy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yy(0),this.hiddenUpdates=Yy(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function f2(e,t,n,r,i,o,a,l,c,u,d,m){return e=new IO(e,t,n,a,c,u,d,m,l),t=1,o===!0&&(t|=24),o=yn(3,null,null,t),e.current=o,o.stateNode=e,t=Ox(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:t},Mx(o),e}function m2(e){return e?(e=xa,e):xa}function p2(e,t,n,r,i,o){i=m2(i),r.context===null?r.context=i:r.pendingContext=i,r=xr(t),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=Sr(e,r,t),n!==null&&(an(n,e,t),oc(n,e,t))}function Tz(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function u1(e,t){Tz(e,t),(e=e.alternate)&&Tz(e,t)}function h2(e){if(e.tag===13||e.tag===31){var t=so(e,67108864);t!==null&&an(t,e,67108864),u1(e,67108864)}}function Cz(e){if(e.tag===13||e.tag===31){var t=_n();t=Sx(t);var n=so(e,t);n!==null&&an(n,e,t),u1(e,t)}}var nf=!0;function AO(e,t,n,r){var i=ne.T;ne.T=null;var o=Te.p;try{Te.p=2,d1(e,t,n,r)}finally{Te.p=o,ne.T=i}}function jO(e,t,n,r){var i=ne.T;ne.T=null;var o=Te.p;try{Te.p=8,d1(e,t,n,r)}finally{Te.p=o,ne.T=i}}function d1(e,t,n,r){if(nf){var i=gx(r);if(i===null)xb(e,t,r,rf,n),Ez(e,r);else if(OO(i,e,t,n,r))r.stopPropagation();else if(Ez(e,r),t&4&&-1<UO.indexOf(e)){for(;i!==null;){var o=Va(i);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var a=Gr(o.pendingLanes);if(a!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;a;){var c=1<<31-kn(a);l.entanglements[1]|=c,a&=~c}pi(o),(ze&6)===0&&(Hd=xn()+500,Rc(0,!1))}}break;case 31:case 13:l=so(o,2),l!==null&&an(l,o,2),vf(),u1(o,2)}if(o=gx(r),o===null&&xb(e,t,r,rf,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else xb(e,t,r,null,n)}}function gx(e){return e=wx(e),f1(e)}var rf=null;function f1(e){if(rf=null,e=pa(e),e!==null){var t=Cc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Oz(t),e!==null)return e;e=null}else if(n===31){if(e=Nz(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return rf=e,null}function g2(e){switch(e){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 2;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 8;case"message":switch(Sj()){case Bz:return 2;case Lz:return 8;case Ad:case kj:return 32;case Pz:return 268435456;default:return 32}default:return 32}}var vx=!1,$r=null,wr=null,zr=null,zc=new Map,Tc=new Map,fr=[],UO="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(" ");function Ez(e,t){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":wr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":zc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tc.delete(t.pointerId)}}function Yl(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Va(t),t!==null&&h2(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function OO(e,t,n,r,i){switch(t){case"focusin":return $r=Yl($r,e,t,n,r,i),!0;case"dragenter":return wr=Yl(wr,e,t,n,r,i),!0;case"mouseover":return zr=Yl(zr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return zc.set(o,Yl(zc.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Tc.set(o,Yl(Tc.get(o)||null,e,t,n,r,i)),!0}return!1}function v2(e){var t=pa(e.target);if(t!==null){var n=Cc(t);if(n!==null){if(t=n.tag,t===13){if(t=Oz(n),t!==null){e.blockedOn=t,fw(e.priority,function(){Cz(n)});return}}else if(t===31){if(t=Nz(n),t!==null){e.blockedOn=t,fw(e.priority,function(){Cz(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gx(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ob=r,n.target.dispatchEvent(r),Ob=null}else return t=Va(n),t!==null&&h2(t),e.blockedOn=n,!1;t.shift()}return!0}function Dz(e,t,n){Cd(e)&&n.delete(t)}function NO(){vx=!1,$r!==null&&Cd($r)&&($r=null),wr!==null&&Cd(wr)&&(wr=null),zr!==null&&Cd(zr)&&(zr=null),zc.forEach(Dz),Tc.forEach(Dz)}function fd(e,t){e.blockedOn===t&&(e.blockedOn=null,vx||(vx=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,NO)))}var md=null;function Iz(e){md!==e&&(md=e,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,function(){md===e&&(md=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(f1(r||n)===null)continue;break}var o=Va(n);o!==null&&(e.splice(t,3),t-=3,Kb(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function La(e){function t(c){return fd(c,e)}$r!==null&&fd($r,e),wr!==null&&fd(wr,e),zr!==null&&fd(zr,e),zc.forEach(t),Tc.forEach(t);for(var n=0;n<fr.length;n++){var r=fr[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<fr.length&&(n=fr[0],n.blockedOn===null);)v2(n),n.blockedOn===null&&fr.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[ln]||null;if(typeof o=="function")a||Iz(n);else if(a){var l=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[ln]||null)l=a.formAction;else if(f1(i)!==null)continue}else l=a.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),Iz(n)}}}function y2(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(a){return i=a})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!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 r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function m1(e){this._internalRoot=e}xf.prototype.render=m1.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(E(409));var n=t.current,r=_n();p2(n,r,e,t,null,null)};xf.prototype.unmount=m1.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;p2(e.current,2,null,e,null,null),vf(),t[Pa]=null}};function xf(e){this._internalRoot=e}xf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gz();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fr.length&&t!==0&&t<fr[n].priority;n++);fr.splice(n,0,e),n===0&&v2(e)}};var Az=jz.version;if(Az!=="19.2.8")throw Error(E(527,Az,"19.2.8"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(E(188)):(e=Object.keys(e).join(","),Error(E(268,e)));return e=pj(t),e=e!==null?Rz(e):null,e=e===null?null:e.stateNode,e};var RO={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:ne,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Jl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Jl.isDisabled&&Jl.supportsFiber))try{Ec=Jl.inject(RO),Sn=Jl}catch{}var Jl;Sf.createRoot=function(e,t){if(!Uz(e))throw Error(E(299));var n=!1,r="",i=sT,o=uT,a=dT;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=f2(e,1,!1,null,null,n,r,null,i,o,a,y2),e[Pa]=t.current,l1(e),new m1(t)};Sf.hydrateRoot=function(e,t,n){if(!Uz(e))throw Error(E(299));var r=!1,i="",o=sT,a=uT,l=dT,c=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(a=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=f2(e,1,!0,t,n??null,r,i,c,o,a,l,y2),t.context=m2(null),n=t.current,r=_n(),r=Sx(r),i=xr(r),i.callback=null,Sr(n,i,r),n=r,t.current.lanes=n,Ic(t,n),pi(t),e[Pa]=t.current,l1(e),new xf(t)};Sf.version="19.2.8"});var k2=Xn((yB,S2)=>{"use strict";function x2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(x2)}catch(e){console.error(e)}}x2(),S2.exports=b2()});var Ie=P(ie(),1);var Pc={id:"code",name:"Code",description:"Full access: read, edit, run commands, and use MCP tools.",groups:["read","edit","command","mcp","always"]},J1={id:"ask",name:"Ask",description:"Read-only: inspect the workspace and answer questions. Cannot edit or run commands.",groups:["read","mcp","always"]},PC={id:"junior",name:"Junior",description:"A cheap model does the work and consults Claude for the plan. Requires the expert.",groups:["read","edit","command","mcp","always"],requiresExpert:!0,guidance:["# Junior mode","","You are the junior on this task. A stronger model (Claude) is available through","`ask_expert` and is the one that decides *what* to do; you decide *how* and carry it out.","You are the hands: reading, searching, editing, running commands, checking results.","","## The first consultation is expensive; the rest are cheap","","Consultations in one task continue **one conversation**. The first pays to establish it","and costs roughly twenty times a follow-up; every one after that is cheap and the expert","still remembers everything you have told it.","","Two things follow, and they matter more than any other instruction here:","","1. **Make the first consultation count.** Gather what is needed first and ask one full,",' well-formed question. Do not open with "hello" or a question you could answer yourself \u2014'," you are paying the setup cost either way, so spend it on something real.","2. **Never repeat yourself afterwards.** The expert remembers the code you pasted, the plan",' it gave you and what you have tried. A follow-up is "step 3 failed with this error",'," not the whole story again. Re-explaining throws away the entire saving.","","**Consult once, at the start**, for anything non-trivial. Ask for a concrete plan, the","files involved, and the traps to avoid \u2014 and ask for it **broken into checkpoints**, as","described below.","","**Do not consult for:** a small edit you understand, a syntax question, anything you can","settle by reading a file, or confirming a plan you already have. Trivial requests you","simply do \u2014 asking would waste the user\u2019s money on a question you can answer.","","## Checkpoints: implement, review, continue","","For anything larger than a single edit, ask the expert to split the plan into **checkpoints**.","Then work the loop: implement one checkpoint, go back to the expert with what you actually","did, take its feedback, and move to the next. Keep going until the work is complete.","","**This is a cost measure, not a quality ritual, and the distinction decides how you use it.**","The expensive failure in this arrangement is not a consultation \u2014 it is you building the","wrong thing for twenty turns and then needing the whole approach redone. A review after each","checkpoint costs about as much as one cheap follow-up and caps how far a wrong direction can","run before someone notices. It only pays if you keep it cheap:","","- **A checkpoint is a unit worth reviewing** \u2014 a coherent, working slice, typically a few"," related edits. If a checkpoint is one line, the review costs more than the mistake it"," could catch: fold it into the next one. If it is the entire feature, it is not a"," checkpoint and defeats the point.",'- **Report the delta, never the context.** "Checkpoint 2 done: added `retryWithBackoff` in'," `http.ts`, wired it into `send()`, tests pass. Deviated from the plan by keeping the old",' signature, because three callers depend on it." The expert has the plan and remembers the',"code \u2014 it can open anything it wants to see for itself.","- **Say what surprised you.** The parts worth a review are the deviations, the things that"," did not match the plan, and anything you were unsure about. A checkpoint that went exactly"," as planned needs a sentence, not a report.","- **Skip the review** when a checkpoint was mechanical and everything passed. Say so at the"," next one instead. Two checkpoints in one review is cheaper than two reviews.",'- **Run the tests before you report.** "Tests pass" is worth far more to the reviewer than a'," description of the code, and finding it yourself is free where the expert finding it is not.","","If a budget is set the expert stops being available once it is reached, and you finish the","work alone. Spend the consultations you have on the checkpoints that carry the most risk.","","**Also consult again when:**","- the same step has failed twice and you do not understand why;","- the code contradicts the plan, so following it would be wrong;","- something is ambiguous in a way that changes *what* should be built, not merely how.","","## Gather the context before you ask","","The expert can open files itself, but doing so costs the user far more than it costs you.","So before consulting: find the relevant code, read it, and **include the actual code in","your question** along with what you have already tried and what happened.","","## You are its hands for tools, too","","The expert cannot call any of your tools \u2014 no MCP tool, no Python tool, no searching the","documentation index. It is told what you have, by name, but not the exact parameters. So","if it asks you to look up a tool\u2019s arguments or read a skill, do it and report back in the","same conversation; that round trip is cheap and stops it guessing a signature.","","## Carrying out the plan","","Follow it, but you are not a transcription service. The expert never ran anything and may","be wrong about the real code. If a step does not match what you find, say so and adapt \u2014","and if the mismatch is fundamental, that is one of the reasons to consult again.","","Tell the user which checkpoint you are on and what the expert said about the last one, so","they can see what they paid for and stop you if the direction is wrong. They are the only","reviewer whose approval actually gates anything."].join(`
10
+ `)},Vc=[Pc,J1,PC],Uf=Pc.id;function Of(e){return Vc.find(t=>t.id===e)??Pc}var z={};gi(z,{$brand:()=>Rf,$input:()=>rh,$output:()=>ih,NEVER:()=>Nf,TimePrecision:()=>ch,ZodAny:()=>Kg,ZodArray:()=>tv,ZodBase64:()=>gu,ZodBase64URL:()=>vu,ZodBigInt:()=>Vo,ZodBigIntFormat:()=>xu,ZodBoolean:()=>Po,ZodCIDRv4:()=>pu,ZodCIDRv6:()=>hu,ZodCUID:()=>lu,ZodCUID2:()=>cu,ZodCatch:()=>_v,ZodCodec:()=>Tl,ZodCustom:()=>Cl,ZodCustomStringFormat:()=>Bo,ZodDate:()=>kl,ZodDefault:()=>vv,ZodDiscriminatedUnion:()=>iv,ZodE164:()=>yu,ZodEmail:()=>ru,ZodEmoji:()=>ou,ZodEnum:()=>Mo,ZodError:()=>bI,ZodExactOptional:()=>pv,ZodFile:()=>fv,ZodFirstPartyTypeKind:()=>Nv,ZodFunction:()=>jv,ZodGUID:()=>vl,ZodIPv4:()=>fu,ZodIPv6:()=>mu,ZodISODate:()=>Qs,ZodISODateTime:()=>Ks,ZodISODuration:()=>eu,ZodISOTime:()=>Ws,ZodIntersection:()=>rv,ZodIssueCode:()=>SI,ZodJWT:()=>bu,ZodKSUID:()=>du,ZodLazy:()=>Dv,ZodLiteral:()=>dv,ZodMAC:()=>Fg,ZodMap:()=>sv,ZodNaN:()=>wv,ZodNanoID:()=>au,ZodNever:()=>Wg,ZodNonOptional:()=>zu,ZodNull:()=>Jg,ZodNullable:()=>gv,ZodNumber:()=>Lo,ZodNumberFormat:()=>Lr,ZodObject:()=>$l,ZodOptional:()=>wu,ZodPipe:()=>zl,ZodPrefault:()=>bv,ZodPreprocess:()=>zv,ZodPromise:()=>Av,ZodReadonly:()=>Tv,ZodRealError:()=>Qt,ZodRecord:()=>Ro,ZodSet:()=>uv,ZodString:()=>Zo,ZodStringFormat:()=>Me,ZodSuccess:()=>kv,ZodSymbol:()=>Gg,ZodTemplateLiteral:()=>Ev,ZodTransform:()=>mv,ZodTuple:()=>av,ZodType:()=>se,ZodULID:()=>su,ZodURL:()=>Sl,ZodUUID:()=>ei,ZodUndefined:()=>Yg,ZodUnion:()=>wl,ZodUnknown:()=>Qg,ZodVoid:()=>ev,ZodXID:()=>uu,ZodXor:()=>nv,_ZodString:()=>iu,_default:()=>yv,_function:()=>Rk,any:()=>pk,array:()=>_l,base64:()=>KS,base64url:()=>QS,bigint:()=>sk,boolean:()=>Hg,catch:()=>$v,check:()=>Mk,cidrv4:()=>JS,cidrv6:()=>XS,clone:()=>Zt,codec:()=>jk,coerce:()=>Rv,config:()=>rt,core:()=>bi,cuid:()=>LS,cuid2:()=>PS,custom:()=>Zk,date:()=>gk,decode:()=>Rg,decodeAsync:()=>Zg,describe:()=>Bk,discriminatedUnion:()=>kk,e164:()=>WS,email:()=>IS,emoji:()=>ZS,encode:()=>Ng,encodeAsync:()=>Mg,endsWith:()=>To,enum:()=>_u,exactOptional:()=>hv,file:()=>Ek,flattenError:()=>il,float32:()=>ok,float64:()=>ak,formatError:()=>rl,fromJSONSchema:()=>Gk,function:()=>Rk,getErrorMap:()=>_I,globalRegistry:()=>wt,gt:()=>Qn,gte:()=>Lt,guid:()=>AS,hash:()=>rk,hex:()=>ik,hostname:()=>nk,httpUrl:()=>MS,includes:()=>wo,instanceof:()=>Pk,int:()=>tu,int32:()=>lk,int64:()=>uk,intersection:()=>ov,invertCodec:()=>Uk,ipv4:()=>HS,ipv6:()=>YS,iso:()=>No,json:()=>Fk,jwt:()=>ek,keyof:()=>vk,ksuid:()=>qS,lazy:()=>Iv,length:()=>Zr,literal:()=>Ck,locales:()=>fl,looseObject:()=>xk,looseRecord:()=>$k,lowercase:()=>_o,lt:()=>Kn,lte:()=>dn,mac:()=>GS,map:()=>wk,maxLength:()=>Mr,maxSize:()=>Xi,meta:()=>Lk,mime:()=>Co,minLength:()=>yi,minSize:()=>Wn,multipleOf:()=>Ji,nan:()=>Ak,nanoid:()=>BS,nativeEnum:()=>Tk,negative:()=>Ls,never:()=>Su,nonnegative:()=>Vs,nonoptional:()=>Sv,nonpositive:()=>Ps,normalize:()=>Eo,null:()=>Xg,nullable:()=>bl,nullish:()=>Dk,number:()=>qg,object:()=>yk,optional:()=>yl,overwrite:()=>qn,parse:()=>Ag,parseAsync:()=>jg,partialRecord:()=>_k,pipe:()=>nu,positive:()=>Bs,prefault:()=>xv,preprocess:()=>qk,prettifyError:()=>Xf,promise:()=>Nk,property:()=>Fs,readonly:()=>Cv,record:()=>cv,refine:()=>Uv,regex:()=>ko,regexes:()=>un,registry:()=>bs,safeDecode:()=>Lg,safeDecodeAsync:()=>Vg,safeEncode:()=>Bg,safeEncodeAsync:()=>Pg,safeParse:()=>Ug,safeParseAsync:()=>Og,set:()=>zk,setErrorMap:()=>kI,size:()=>Rr,slugify:()=>jo,startsWith:()=>zo,strictObject:()=>bk,string:()=>gl,stringFormat:()=>tk,stringbool:()=>Vk,success:()=>Ik,superRefine:()=>Ov,symbol:()=>fk,templateLiteral:()=>Ok,toJSONSchema:()=>Ys,toLowerCase:()=>Io,toUpperCase:()=>Ao,transform:()=>$u,treeifyError:()=>Jf,trim:()=>Do,tuple:()=>lv,uint32:()=>ck,uint64:()=>dk,ulid:()=>VS,undefined:()=>mk,union:()=>ku,unknown:()=>Br,uppercase:()=>$o,url:()=>RS,util:()=>N,uuid:()=>jS,uuidv4:()=>US,uuidv6:()=>OS,uuidv7:()=>NS,void:()=>hk,xid:()=>FS,xor:()=>Sk});var bi={};gi(bi,{$ZodAny:()=>wp,$ZodArray:()=>Dp,$ZodAsyncError:()=>Fn,$ZodBase64:()=>hp,$ZodBase64URL:()=>gp,$ZodBigInt:()=>ds,$ZodBigIntFormat:()=>Sp,$ZodBoolean:()=>cl,$ZodCIDRv4:()=>fp,$ZodCIDRv6:()=>mp,$ZodCUID:()=>ep,$ZodCUID2:()=>tp,$ZodCatch:()=>Yp,$ZodCheck:()=>Le,$ZodCheckBigIntFormat:()=>Dm,$ZodCheckEndsWith:()=>Pm,$ZodCheckGreaterThan:()=>os,$ZodCheckIncludes:()=>Bm,$ZodCheckLengthEquals:()=>Nm,$ZodCheckLessThan:()=>rs,$ZodCheckLowerCase:()=>Mm,$ZodCheckMaxLength:()=>Um,$ZodCheckMaxSize:()=>Im,$ZodCheckMimeType:()=>Fm,$ZodCheckMinLength:()=>Om,$ZodCheckMinSize:()=>Am,$ZodCheckMultipleOf:()=>Cm,$ZodCheckNumberFormat:()=>Em,$ZodCheckOverwrite:()=>qm,$ZodCheckProperty:()=>Vm,$ZodCheckRegex:()=>Rm,$ZodCheckSizeEquals:()=>jm,$ZodCheckStartsWith:()=>Lm,$ZodCheckStringFormat:()=>xo,$ZodCheckUpperCase:()=>Zm,$ZodCodec:()=>ul,$ZodCustom:()=>nh,$ZodCustomStringFormat:()=>bp,$ZodDate:()=>Ep,$ZodDefault:()=>Fp,$ZodDiscriminatedUnion:()=>jp,$ZodE164:()=>vp,$ZodEmail:()=>Xm,$ZodEmoji:()=>Qm,$ZodEncodeError:()=>Fi,$ZodEnum:()=>Mp,$ZodError:()=>nl,$ZodExactOptional:()=>Pp,$ZodFile:()=>Bp,$ZodFunction:()=>Wp,$ZodGUID:()=>Ym,$ZodIPv4:()=>sp,$ZodIPv6:()=>up,$ZodISODate:()=>ap,$ZodISODateTime:()=>op,$ZodISODuration:()=>cp,$ZodISOTime:()=>lp,$ZodIntersection:()=>Up,$ZodJWT:()=>yp,$ZodKSUID:()=>rp,$ZodLazy:()=>th,$ZodLiteral:()=>Zp,$ZodMAC:()=>dp,$ZodMap:()=>Np,$ZodNaN:()=>Jp,$ZodNanoID:()=>Wm,$ZodNever:()=>Tp,$ZodNonOptional:()=>Hp,$ZodNull:()=>$p,$ZodNullable:()=>Vp,$ZodNumber:()=>us,$ZodNumberFormat:()=>xp,$ZodObject:()=>z0,$ZodObjectJIT:()=>Ip,$ZodOptional:()=>ms,$ZodPipe:()=>ps,$ZodPrefault:()=>qp,$ZodPreprocess:()=>Xp,$ZodPromise:()=>eh,$ZodReadonly:()=>Kp,$ZodRealError:()=>Kt,$ZodRecord:()=>Op,$ZodRegistry:()=>ys,$ZodSet:()=>Rp,$ZodString:()=>Nr,$ZodStringFormat:()=>Re,$ZodSuccess:()=>Gp,$ZodSymbol:()=>kp,$ZodTemplateLiteral:()=>Qp,$ZodTransform:()=>Lp,$ZodTuple:()=>fs,$ZodType:()=>re,$ZodULID:()=>np,$ZodURL:()=>Km,$ZodUUID:()=>Jm,$ZodUndefined:()=>_p,$ZodUnion:()=>sl,$ZodUnknown:()=>zp,$ZodVoid:()=>Cp,$ZodXID:()=>ip,$ZodXor:()=>Ap,$brand:()=>Rf,$constructor:()=>S,$input:()=>rh,$output:()=>ih,Doc:()=>ll,JSONSchema:()=>CS,JSONSchemaGenerator:()=>Js,NEVER:()=>Nf,TimePrecision:()=>ch,_any:()=>Eh,_array:()=>Nh,_base64:()=>Ns,_base64url:()=>Rs,_bigint:()=>kh,_boolean:()=>xh,_catch:()=>dI,_check:()=>TS,_cidrv4:()=>Us,_cidrv6:()=>Os,_coercedBigint:()=>_h,_coercedBoolean:()=>Sh,_coercedDate:()=>Uh,_coercedNumber:()=>ph,_coercedString:()=>ah,_cuid:()=>Ts,_cuid2:()=>Cs,_custom:()=>Mh,_date:()=>jh,_decode:()=>Jc,_decodeAsync:()=>Kc,_default:()=>cI,_discriminatedUnion:()=>XD,_e164:()=>Ms,_email:()=>xs,_emoji:()=>ws,_encode:()=>Yc,_encodeAsync:()=>Xc,_endsWith:()=>To,_enum:()=>nI,_file:()=>Rh,_float32:()=>gh,_float64:()=>vh,_gt:()=>Qn,_gte:()=>Lt,_guid:()=>ml,_includes:()=>wo,_int:()=>hh,_int32:()=>yh,_int64:()=>$h,_intersection:()=>KD,_ipv4:()=>As,_ipv6:()=>js,_isoDate:()=>uh,_isoDateTime:()=>sh,_isoDuration:()=>fh,_isoTime:()=>dh,_jwt:()=>Zs,_ksuid:()=>Is,_lazy:()=>hI,_length:()=>Zr,_literal:()=>rI,_lowercase:()=>_o,_lt:()=>Kn,_lte:()=>dn,_mac:()=>lh,_map:()=>eI,_max:()=>dn,_maxLength:()=>Mr,_maxSize:()=>Xi,_mime:()=>Co,_min:()=>Lt,_minLength:()=>yi,_minSize:()=>Wn,_multipleOf:()=>Ji,_nan:()=>Oh,_nanoid:()=>zs,_nativeEnum:()=>iI,_negative:()=>Ls,_never:()=>Ih,_nonnegative:()=>Vs,_nonoptional:()=>sI,_nonpositive:()=>Ps,_normalize:()=>Eo,_null:()=>Ch,_nullable:()=>lI,_number:()=>mh,_optional:()=>aI,_overwrite:()=>qn,_parse:()=>go,_parseAsync:()=>vo,_pipe:()=>fI,_positive:()=>Bs,_promise:()=>gI,_property:()=>Fs,_readonly:()=>mI,_record:()=>WD,_refine:()=>Zh,_regex:()=>ko,_safeDecode:()=>Wc,_safeDecodeAsync:()=>ts,_safeEncode:()=>Qc,_safeEncodeAsync:()=>es,_safeParse:()=>yo,_safeParseAsync:()=>bo,_set:()=>tI,_size:()=>Rr,_slugify:()=>jo,_startsWith:()=>zo,_string:()=>oh,_stringFormat:()=>Uo,_stringbool:()=>Vh,_success:()=>uI,_superRefine:()=>Bh,_symbol:()=>zh,_templateLiteral:()=>pI,_toLowerCase:()=>Io,_toUpperCase:()=>Ao,_transform:()=>oI,_trim:()=>Do,_tuple:()=>QD,_uint32:()=>bh,_uint64:()=>wh,_ulid:()=>Es,_undefined:()=>Th,_union:()=>YD,_unknown:()=>Dh,_uppercase:()=>$o,_url:()=>pl,_uuid:()=>Ss,_uuidv4:()=>ks,_uuidv6:()=>_s,_uuidv7:()=>$s,_void:()=>Ah,_xid:()=>Ds,_xor:()=>JD,clone:()=>Zt,config:()=>rt,createStandardJSONSchemaMethod:()=>Oo,createToJSONSchemaMethod:()=>Fh,decode:()=>gE,decodeAsync:()=>yE,describe:()=>Lh,encode:()=>hE,encodeAsync:()=>vE,extractDefs:()=>Qi,finalize:()=>Wi,flattenError:()=>il,formatError:()=>rl,globalConfig:()=>jr,globalRegistry:()=>wt,initializeContext:()=>Ki,isValidBase64:()=>pp,isValidBase64URL:()=>k0,isValidJWT:()=>_0,locales:()=>fl,meta:()=>Ph,parse:()=>Hc,parseAsync:()=>Gc,prettifyError:()=>Xf,process:()=>Ee,regexes:()=>un,registry:()=>bs,safeDecode:()=>xE,safeDecodeAsync:()=>kE,safeEncode:()=>bE,safeEncodeAsync:()=>SE,safeParse:()=>Kf,safeParseAsync:()=>Qf,toDotPath:()=>t0,toJSONSchema:()=>Ys,treeifyError:()=>Jf,util:()=>N,version:()=>Hm});var X1,Nf=Object.freeze({status:"aborted"});function S(e,t,n){function r(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);let u=a.prototype,d=Object.keys(u);for(let m=0;m<d.length;m++){let p=d[m];p in l||(l[p]=u[p].bind(l))}}let i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(l){var c;let u=n?.Parent?new o:this;r(u,l),(c=u._zod).deferred??(c.deferred=[]);for(let d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var Rf=Symbol("zod_brand"),Fn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Fi=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(X1=globalThis).__zod_globalConfig??(X1.__zod_globalConfig={});var jr=globalThis.__zod_globalConfig;function rt(e){return e&&Object.assign(jr,e),jr}var N={};gi(N,{BIGINT_FORMAT_RANGES:()=>Gf,Class:()=>Zf,NUMBER_FORMAT_RANGES:()=>Hf,aborted:()=>Yi,allowsEval:()=>Pf,assert:()=>GC,assertEqual:()=>VC,assertIs:()=>qC,assertNever:()=>HC,assertNotEqual:()=>FC,assignProp:()=>Hi,base64ToUint8Array:()=>Q1,base64urlToUint8Array:()=>uE,cached:()=>po,captureStackTrace:()=>qc,cleanEnum:()=>sE,cleanRegex:()=>Qa,clone:()=>Zt,cloneDef:()=>JC,createTransparentProxy:()=>tE,defineLazy:()=>me,esc:()=>Fc,escapeRegex:()=>Cn,explicitlyAborted:()=>Yf,extend:()=>rE,finalizeIssue:()=>Bt,floatSafeRemainder:()=>Bf,getElementAtPath:()=>XC,getEnumValues:()=>Ka,getLengthableOrigin:()=>tl,getParsedType:()=>eE,getSizableOrigin:()=>el,hexToUint8Array:()=>fE,isObject:()=>Ur,isPlainObject:()=>Gi,issue:()=>ho,joinValues:()=>$,jsonStringifyReplacer:()=>mo,merge:()=>aE,mergeDefs:()=>vi,normalizeParams:()=>M,nullish:()=>qi,numKeys:()=>WC,objectClone:()=>YC,omit:()=>iE,optionalKeys:()=>qf,parsedType:()=>U,partial:()=>lE,pick:()=>nE,prefixIssues:()=>Xt,primitiveTypes:()=>Ff,promiseAllObject:()=>KC,propertyKeyTypes:()=>Wa,randomString:()=>QC,required:()=>cE,safeExtend:()=>oE,shallowClone:()=>Vf,slugify:()=>Lf,stringifyPrimitive:()=>j,uint8ArrayToBase64:()=>W1,uint8ArrayToBase64url:()=>dE,uint8ArrayToHex:()=>mE,unwrapMessage:()=>Xa});function VC(e){return e}function FC(e){return e}function qC(e){}function HC(e){throw new Error("Unexpected value in exhaustive check")}function GC(e){}function Ka(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function $(e,t="|"){return e.map(n=>j(n)).join(t)}function mo(e,t){return typeof t=="bigint"?t.toString():t}function po(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}function qi(e){return e==null}function Qa(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Bf(e,t){let n=e/t,r=Math.round(n),i=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}var K1=Symbol("evaluating");function me(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==K1)return r===void 0&&(r=K1,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function YC(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Hi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function vi(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function JC(e){return vi(e._zod.def)}function XC(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function KC(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let i={};for(let o=0;o<t.length;o++)i[t[o]]=r[o];return i})}function QC(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Fc(e){return JSON.stringify(e)}function Lf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var qc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ur(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Pf=po(()=>{if(jr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Gi(e){if(Ur(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Ur(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Vf(e){return Gi(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function WC(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var eE=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Wa=new Set(["string","number","symbol"]),Ff=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Cn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Zt(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function tE(e){let t;return new Proxy({},{get(n,r,i){return t??(t=e()),Reflect.get(t,r,i)},set(n,r,i,o){return t??(t=e()),Reflect.set(t,r,i,o)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??(t=e()),Reflect.defineProperty(t,r,i)}})}function j(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function qf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Hf={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Gf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function nE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=vi(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=n.shape[l])}return Hi(this,"shape",a),a},checks:[]});return Zt(e,o)}function iE(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=vi(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return Hi(this,"shape",a),a},checks:[]});return Zt(e,o)}function rE(e,t){if(!Gi(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let i=vi(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return Hi(this,"shape",o),o}});return Zt(e,i)}function oE(e,t){if(!Gi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=vi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t};return Hi(this,"shape",r),r}});return Zt(e,n)}function aE(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n=vi(e._zod.def,{get shape(){let r={...e._zod.def.shape,...t._zod.def.shape};return Hi(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Zt(e,n)}function lE(e,t,n){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=vi(t._zod.def,{get shape(){let l=t._zod.def.shape,c={...l};if(n)for(let u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)c[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return Hi(this,"shape",c),c},checks:[]});return Zt(t,a)}function cE(e,t,n){let r=vi(t._zod.def,{get shape(){let i=t._zod.def.shape,o={...i};if(n)for(let a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(o[a]=new e({type:"nonoptional",innerType:i[a]}))}else for(let a in i)o[a]=new e({type:"nonoptional",innerType:i[a]});return Hi(this,"shape",o),o}});return Zt(t,r)}function Yi(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Yf(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function Xt(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Xa(e){return typeof e=="string"?e:e?.message}function Bt(e,t,n){let r=e.message?e.message:Xa(e.inst?._zod.def?.error?.(e))??Xa(t?.error?.(e))??Xa(n.customError?.(e))??Xa(n.localeError?.(e))??"Invalid input",{inst:i,continue:o,input:a,...l}=e;return l.path??(l.path=[]),l.message=r,t?.reportInput&&(l.input=a),l}function el(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function tl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function U(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function ho(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function sE(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Q1(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function W1(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function uE(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return Q1(t+n)}function dE(e){return W1(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function fE(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function mE(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Zf=class{constructor(...t){}};var e0=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,mo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},nl=S("$ZodError",e0),Kt=S("$ZodError",e0,{Parent:Error});function il(e,t=n=>n.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function rl(e,t=n=>n.message){let n={_errors:[]},r=(i,o=[])=>{for(let a of i.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>r({issues:l},[...o,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...o,...a.path]);else{let l=[...o,...a.path];if(l.length===0)n._errors.push(t(a));else{let c=n,u=0;for(;u<l.length;){let d=l[u];u===l.length-1?(c[d]=c[d]||{_errors:[]},c[d]._errors.push(t(a))):c[d]=c[d]||{_errors:[]},c=c[d],u++}}}};return r(e),n}function Jf(e,t=n=>n.message){let n={errors:[]},r=(i,o=[])=>{var a,l;for(let c of i.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>r({issues:u},[...o,...c.path]));else if(c.code==="invalid_key")r({issues:c.issues},[...o,...c.path]);else if(c.code==="invalid_element")r({issues:c.issues},[...o,...c.path]);else{let u=[...o,...c.path];if(u.length===0){n.errors.push(t(c));continue}let d=n,m=0;for(;m<u.length;){let p=u[m],f=m===u.length-1;typeof p=="string"?(d.properties??(d.properties={}),(a=d.properties)[p]??(a[p]={errors:[]}),d=d.properties[p]):(d.items??(d.items=[]),(l=d.items)[p]??(l[p]={errors:[]}),d=d.items[p]),f&&d.errors.push(t(c)),m++}}};return r(e),n}function t0(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function Xf(e){let t=[],n=[...e.issues].sort((r,i)=>(r.path??[]).length-(i.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${t0(r.path)}`);return t.join(`
11
+ `)}var go=e=>(t,n,r,i)=>{let o=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new Fn;if(a.issues.length){let l=new(i?.Err??e)(a.issues.map(c=>Bt(c,o,rt())));throw qc(l,i?.callee),l}return a.value},Hc=go(Kt),vo=e=>async(t,n,r,i)=>{let o=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(i?.Err??e)(a.issues.map(c=>Bt(c,o,rt())));throw qc(l,i?.callee),l}return a.value},Gc=vo(Kt),yo=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Fn;return o.issues.length?{success:!1,error:new(e??nl)(o.issues.map(a=>Bt(a,i,rt())))}:{success:!0,data:o.value}},Kf=yo(Kt),bo=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>Bt(a,i,rt())))}:{success:!0,data:o.value}},Qf=bo(Kt),Yc=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return go(e)(t,n,i)},hE=Yc(Kt),Jc=e=>(t,n,r)=>go(e)(t,n,r),gE=Jc(Kt),Xc=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return vo(e)(t,n,i)},vE=Xc(Kt),Kc=e=>async(t,n,r)=>vo(e)(t,n,r),yE=Kc(Kt),Qc=e=>(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return yo(e)(t,n,i)},bE=Qc(Kt),Wc=e=>(t,n,r)=>yo(e)(t,n,r),xE=Wc(Kt),es=e=>async(t,n,r)=>{let i=r?{...r,direction:"backward"}:{direction:"backward"};return bo(e)(t,n,i)},SE=es(Kt),ts=e=>async(t,n,r)=>bo(e)(t,n,r),kE=ts(Kt);var un={};gi(un,{base64:()=>pm,base64url:()=>ns,bigint:()=>Sm,boolean:()=>_m,browserEmail:()=>DE,cidrv4:()=>fm,cidrv6:()=>mm,cuid:()=>Wf,cuid2:()=>em,date:()=>vm,datetime:()=>bm,domain:()=>jE,duration:()=>om,e164:()=>gm,email:()=>lm,emoji:()=>cm,extendedDuration:()=>_E,guid:()=>am,hex:()=>UE,hostname:()=>AE,html5Email:()=>TE,httpProtocol:()=>hm,idnEmail:()=>EE,integer:()=>km,ipv4:()=>sm,ipv6:()=>um,ksuid:()=>im,lowercase:()=>zm,mac:()=>dm,md5_base64:()=>NE,md5_base64url:()=>RE,md5_hex:()=>OE,nanoid:()=>rm,null:()=>$m,number:()=>is,rfc5322Email:()=>CE,sha1_base64:()=>ZE,sha1_base64url:()=>BE,sha1_hex:()=>ME,sha256_base64:()=>PE,sha256_base64url:()=>VE,sha256_hex:()=>LE,sha384_base64:()=>qE,sha384_base64url:()=>HE,sha384_hex:()=>FE,sha512_base64:()=>YE,sha512_base64url:()=>JE,sha512_hex:()=>GE,string:()=>xm,time:()=>ym,ulid:()=>tm,undefined:()=>wm,unicodeEmail:()=>n0,uppercase:()=>Tm,uuid:()=>Or,uuid4:()=>$E,uuid6:()=>wE,uuid7:()=>zE,xid:()=>nm});var Wf=/^[cC][0-9a-z]{6,}$/,em=/^[0-9a-z]+$/,tm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,nm=/^[0-9a-vA-V]{20}$/,im=/^[A-Za-z0-9]{27}$/,rm=/^[a-zA-Z0-9_-]{21}$/,om=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_E=/^[-+]?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)?)??$/,am=/^([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})$/,Or=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([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|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$E=Or(4),wE=Or(6),zE=Or(7),lm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,TE=/^[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])?)*$/,CE=/^(([^<>()\[\]\\.,;:\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,}))$/,n0=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,EE=n0,DE=/^[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])?)*$/,IE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function cm(){return new RegExp(IE,"u")}var sm=/^(?:(?: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])$/,um=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,dm=e=>{let t=Cn(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},fm=/^((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])$/,mm=/^(([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])$/,pm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ns=/^[A-Za-z0-9_-]*$/,AE=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,jE=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,hm=/^https?$/,gm=/^\+[1-9]\d{6,14}$/,i0="(?:(?:\\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])))",vm=new RegExp(`^${i0}$`);function r0(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ym(e){return new RegExp(`^${r0(e)}$`)}function bm(e){let t=r0({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let r=`${t}(?:${n.join("|")})`;return new RegExp(`^${i0}T(?:${r})$`)}var xm=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Sm=/^-?\d+n?$/,km=/^-?\d+$/,is=/^-?\d+(?:\.\d+)?$/,_m=/^(?:true|false)$/i,$m=/^null$/i;var wm=/^undefined$/i;var zm=/^[^A-Z]*$/,Tm=/^[^a-z]*$/,UE=/^[0-9a-fA-F]*$/;function ol(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function al(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var OE=/^[0-9a-fA-F]{32}$/,NE=ol(22,"=="),RE=al(22),ME=/^[0-9a-fA-F]{40}$/,ZE=ol(27,"="),BE=al(27),LE=/^[0-9a-fA-F]{64}$/,PE=ol(43,"="),VE=al(43),FE=/^[0-9a-fA-F]{96}$/,qE=ol(64,""),HE=al(64),GE=/^[0-9a-fA-F]{128}$/,YE=ol(86,"=="),JE=al(86);var Le=S("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),a0={number:"number",bigint:"bigint",object:"date"},rs=S("$ZodCheckLessThan",(e,t)=>{Le.init(e,t);let n=a0[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),os=S("$ZodCheckGreaterThan",(e,t)=>{Le.init(e,t);let n=a0[typeof t.value];e._zod.onattach.push(r=>{let i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Cm=S("$ZodCheckMultipleOf",(e,t)=>{Le.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Bf(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Em=S("$ZodCheckNumberFormat",(e,t)=>{Le.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Hf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,n&&(l.pattern=km)}),e._zod.check=a=>{let l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Dm=S("$ZodCheckBigIntFormat",(e,t)=>{Le.init(e,t);let[n,r]=Gf[t.format];e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,o.minimum=n,o.maximum=r}),e._zod.check=i=>{let o=i.value;o<n&&i.issues.push({origin:"bigint",input:o,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),o>r&&i.issues.push({origin:"bigint",input:o,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Im=S("$ZodCheckMaxSize",(e,t)=>{var n;Le.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!qi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;i.size<=t.maximum||r.issues.push({origin:el(i),code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Am=S("$ZodCheckMinSize",(e,t)=>{var n;Le.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!qi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;i.size>=t.minimum||r.issues.push({origin:el(i),code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),jm=S("$ZodCheckSizeEquals",(e,t)=>{var n;Le.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!qi(i)&&i.size!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.size,i.maximum=t.size,i.size=t.size}),e._zod.check=r=>{let i=r.value,o=i.size;if(o===t.size)return;let a=o>t.size;r.issues.push({origin:el(i),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Um=S("$ZodCheckMaxLength",(e,t)=>{var n;Le.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!qi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let i=r.value;if(i.length<=t.maximum)return;let a=tl(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Om=S("$ZodCheckMinLength",(e,t)=>{var n;Le.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!qi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let i=r.value;if(i.length>=t.minimum)return;let a=tl(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Nm=S("$ZodCheckLengthEquals",(e,t)=>{var n;Le.init(e,t),(n=e._zod.def).when??(n.when=r=>{let i=r.value;return!qi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{let i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{let i=r.value,o=i.length;if(o===t.length)return;let a=tl(i),l=o>t.length;r.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),xo=S("$ZodCheckStringFormat",(e,t)=>{var n,r;Le.init(e,t),e._zod.onattach.push(i=>{let o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Rm=S("$ZodCheckRegex",(e,t)=>{xo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Mm=S("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=zm),xo.init(e,t)}),Zm=S("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Tm),xo.init(e,t)}),Bm=S("$ZodCheckIncludes",(e,t)=>{Le.init(e,t);let n=Cn(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{let o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),Lm=S("$ZodCheckStartsWith",(e,t)=>{Le.init(e,t);let n=new RegExp(`^${Cn(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Pm=S("$ZodCheckEndsWith",(e,t)=>{Le.init(e,t);let n=new RegExp(`.*${Cn(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{let i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function o0(e,t,n){e.issues.length&&t.issues.push(...Xt(n,e.issues))}var Vm=S("$ZodCheckProperty",(e,t)=>{Le.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(i=>o0(i,n,t.property));o0(r,n,t.property)}}),Fm=S("$ZodCheckMimeType",(e,t)=>{Le.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(r=>{r._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),qm=S("$ZodCheckOverwrite",(e,t)=>{Le.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var ll=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
12
+ `).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(let a of o)this.content.push(a)}compile(){let t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
13
+ `))}};var Hm={major:4,minor:4,patch:3};var re=S("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Hm;let r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(let i of r)for(let o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,l,c)=>{let u=Yi(a),d;for(let m of l){if(m._zod.def.when){if(Yf(a)||!m._zod.def.when(a))continue}else if(u)continue;let p=a.issues.length,f=m._zod.check(a);if(f instanceof Promise&&c?.async===!1)throw new Fn;if(d||f instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await f,a.issues.length!==p&&(u||(u=Yi(a,p)))});else{if(a.issues.length===p)continue;u||(u=Yi(a,p))}}return d?d.then(()=>a):a},o=(a,l,c)=>{if(Yi(a))return a.aborted=!0,a;let u=i(l,r,c);if(u instanceof Promise){if(c.async===!1)throw new Fn;return u.then(d=>e._zod.parse(d,c))}return e._zod.parse(u,c)};e._zod.run=(a,l)=>{if(l.skipChecks)return e._zod.parse(a,l);if(l.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(d=>o(d,a,l)):o(u,a,l)}let c=e._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new Fn;return c.then(u=>i(u,r,l))}return i(c,r,l)}}me(e,"~standard",()=>({validate:i=>{try{let o=Kf(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Qf(e,i).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Nr=S("$ZodString",(e,t)=>{re.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xm(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),Re=S("$ZodStringFormat",(e,t)=>{xo.init(e,t),Nr.init(e,t)}),Ym=S("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=am),Re.init(e,t)}),Jm=S("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Or(r))}else t.pattern??(t.pattern=Or());Re.init(e,t)}),Xm=S("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=lm),Re.init(e,t)}),Km=S("$ZodURL",(e,t)=>{Re.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===hm.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Qm=S("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=cm()),Re.init(e,t)}),Wm=S("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=rm),Re.init(e,t)}),ep=S("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Wf),Re.init(e,t)}),tp=S("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=em),Re.init(e,t)}),np=S("$ZodULID",(e,t)=>{t.pattern??(t.pattern=tm),Re.init(e,t)}),ip=S("$ZodXID",(e,t)=>{t.pattern??(t.pattern=nm),Re.init(e,t)}),rp=S("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=im),Re.init(e,t)}),op=S("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=bm(t)),Re.init(e,t)}),ap=S("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vm),Re.init(e,t)}),lp=S("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ym(t)),Re.init(e,t)}),cp=S("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=om),Re.init(e,t)}),sp=S("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=sm),Re.init(e,t),e._zod.bag.format="ipv4"}),up=S("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=um),Re.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),dp=S("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=dm(t.delimiter)),Re.init(e,t),e._zod.bag.format="mac"}),fp=S("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=fm),Re.init(e,t)}),mp=S("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=mm),Re.init(e,t),e._zod.check=n=>{let r=n.value.split("/");try{if(r.length!==2)throw new Error;let[i,o]=r;if(!o)throw new Error;let a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function pp(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var hp=S("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=pm),Re.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{pp(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function k0(e){if(!ns.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return pp(n)}var gp=S("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ns),Re.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{k0(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),vp=S("$ZodE164",(e,t)=>{t.pattern??(t.pattern=gm),Re.init(e,t)});function _0(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var yp=S("$ZodJWT",(e,t)=>{Re.init(e,t),e._zod.check=n=>{_0(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),bp=S("$ZodCustomStringFormat",(e,t)=>{Re.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),us=S("$ZodNumber",(e,t)=>{re.init(e,t),e._zod.pattern=e._zod.bag.pattern??is,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;let o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),xp=S("$ZodNumberFormat",(e,t)=>{Em.init(e,t),us.init(e,t)}),cl=S("$ZodBoolean",(e,t)=>{re.init(e,t),e._zod.pattern=_m,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),ds=S("$ZodBigInt",(e,t)=>{re.init(e,t),e._zod.pattern=Sm,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),Sp=S("$ZodBigIntFormat",(e,t)=>{Dm.init(e,t),ds.init(e,t)}),kp=S("$ZodSymbol",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),_p=S("$ZodUndefined",(e,t)=>{re.init(e,t),e._zod.pattern=wm,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:e}),n}}),$p=S("$ZodNull",(e,t)=>{re.init(e,t),e._zod.pattern=$m,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),wp=S("$ZodAny",(e,t)=>{re.init(e,t),e._zod.parse=n=>n}),zp=S("$ZodUnknown",(e,t)=>{re.init(e,t),e._zod.parse=n=>n}),Tp=S("$ZodNever",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),Cp=S("$ZodVoid",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return typeof i>"u"||n.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),n}}),Ep=S("$ZodDate",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,o=i instanceof Date;return o&&!Number.isNaN(i.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:i,...o?{received:"Invalid Date"}:{},inst:e}),n}});function c0(e,t,n){e.issues.length&&t.issues.push(...Xt(n,e.issues)),t.value[n]=e.value}var Dp=S("$ZodArray",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);let o=[];for(let a=0;a<i.length;a++){let l=i[a],c=t.element._zod.run({value:l,issues:[]},r);c instanceof Promise?o.push(c.then(u=>c0(u,n,a))):c0(c,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function ss(e,t,n,r,i,o){let a=n in r;if(e.issues.length){if(i&&o&&!a)return;t.issues.push(...Xt(n,e.issues))}if(!a&&!i){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?a&&(t.value[n]=void 0):t.value[n]=e.value}function $0(e){let t=Object.keys(e.shape);for(let r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);let n=qf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function w0(e,t,n,r,i,o){let a=[],l=i.keySet,c=i.catchall._zod,u=c.def.type,d=c.optin==="optional",m=c.optout==="optional";for(let p in t){if(p==="__proto__"||l.has(p))continue;if(u==="never"){a.push(p);continue}let f=c.run({value:t[p],issues:[]},r);f instanceof Promise?e.push(f.then(x=>ss(x,n,p,t,d,m))):ss(f,n,p,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}var z0=S("$ZodObject",(e,t)=>{if(re.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let c={...l};return Object.defineProperty(t,"shape",{value:c}),c}})}let r=po(()=>$0(t));me(e._zod,"propValues",()=>{let l=t.shape,c={};for(let u in l){let d=l[u]._zod;if(d.values){c[u]??(c[u]=new Set);for(let m of d.values)c[u].add(m)}}return c});let i=Ur,o=t.catchall,a;e._zod.parse=(l,c)=>{a??(a=r.value);let u=l.value;if(!i(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let d=[],m=a.shape;for(let p of a.keys){let f=m[p],x=f._zod.optin==="optional",_=f._zod.optout==="optional",O=f._zod.run({value:u[p],issues:[]},c);O instanceof Promise?d.push(O.then(h=>ss(h,l,p,u,x,_))):ss(O,l,p,u,x,_)}return o?w0(d,u,l,c,r.value,e):d.length?Promise.all(d).then(()=>l):l}}),Ip=S("$ZodObjectJIT",(e,t)=>{z0.init(e,t);let n=e._zod.parse,r=po(()=>$0(t)),i=p=>{let f=new ll(["shape","payload","ctx"]),x=r.value,_=b=>{let v=Fc(b);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};f.write("const input = payload.value;");let O=Object.create(null),h=0;for(let b of x.keys)O[b]=`key_${h++}`;f.write("const newResult = {};");for(let b of x.keys){let v=O[b],I=Fc(b),J=p[b],L=J?._zod?.optin==="optional",T=J?._zod?.optout==="optional";f.write(`const ${v} = ${_(b)};`),L&&T?f.write(`
14
+ if (${v}.issues.length) {
15
+ if (${I} in input) {
16
+ payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
16
17
  ...iss,
17
- path: iss.path ? [${j}, ...iss.path] : [${j}]
18
+ path: iss.path ? [${I}, ...iss.path] : [${I}]
18
19
  })));
19
20
  }
20
21
  }
21
22
 
22
- if (${b}.value === undefined) {
23
- if (${j} in input) {
24
- newResult[${j}] = undefined;
23
+ if (${v}.value === undefined) {
24
+ if (${I} in input) {
25
+ newResult[${I}] = undefined;
25
26
  }
26
27
  } else {
27
- newResult[${j}] = ${b}.value;
28
+ newResult[${I}] = ${v}.value;
28
29
  }
29
30
 
30
- `):x?m.write(`
31
- if (${b}.issues.length) {
32
- payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
31
+ `):L?f.write(`
32
+ if (${v}.issues.length) {
33
+ payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
33
34
  ...iss,
34
- path: iss.path ? [${j}, ...iss.path] : [${j}]
35
+ path: iss.path ? [${I}, ...iss.path] : [${I}]
35
36
  })));
36
37
  }
37
38
 
38
- if (${b}.value === undefined) {
39
- if (${j} in input) {
40
- newResult[${j}] = undefined;
39
+ if (${v}.value === undefined) {
40
+ if (${I} in input) {
41
+ newResult[${I}] = undefined;
41
42
  }
42
43
  } else {
43
- newResult[${j}] = ${b}.value;
44
+ newResult[${I}] = ${v}.value;
44
45
  }
45
46
 
46
- `):m.write(`
47
- const ${b}_present = ${j} in input;
48
- if (${b}.issues.length) {
49
- payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
47
+ `):f.write(`
48
+ const ${v}_present = ${I} in input;
49
+ if (${v}.issues.length) {
50
+ payload.issues = payload.issues.concat(${v}.issues.map(iss => ({
50
51
  ...iss,
51
- path: iss.path ? [${j}, ...iss.path] : [${j}]
52
+ path: iss.path ? [${I}, ...iss.path] : [${I}]
52
53
  })));
53
54
  }
54
- if (!${b}_present && !${b}.issues.length) {
55
+ if (!${v}_present && !${v}.issues.length) {
55
56
  payload.issues.push({
56
57
  code: "invalid_type",
57
58
  expected: "nonoptional",
58
59
  input: undefined,
59
- path: [${j}]
60
+ path: [${I}]
60
61
  });
61
62
  }
62
63
 
63
- if (${b}_present) {
64
- if (${b}.value === undefined) {
65
- newResult[${j}] = undefined;
64
+ if (${v}_present) {
65
+ if (${v}.value === undefined) {
66
+ newResult[${I}] = undefined;
66
67
  } else {
67
- newResult[${j}] = ${b}.value;
68
+ newResult[${I}] = ${v}.value;
68
69
  }
69
70
  }
70
71
 
71
- `)}m.write("payload.value = newResult;"),m.write("return payload;");let g=m.compile();return(h,b)=>g(f,h,b)},o,a=Kr,l=!Xr.jitless,c=l&&Ud.value,s=t.catchall,d;e._zod.parse=(f,m)=>{d??(d=i.value);let S=f.value;return a(S)?l&&c&&m?.async===!1&&m.jitless!==!0?(o||(o=r(t.shape)),f=o(f,m),s?Ax([],S,f,m,d,e):f):n(f,m):(f.issues.push({expected:"object",code:"invalid_type",input:S,inst:e}),f)}});function hx(e,t,n,i){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!mr(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>pt(a,i,Ze())))}),t)}var ba=y("$ZodUnion",(e,t)=>{G.init(e,t),W(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),W(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),W(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),W(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${i.map(r=>ua(r.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let l of t.options){let u=l._zod.run({value:i.value,issues:[]},r);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(l=>hx(l,i,e,r)):hx(a,i,e,r)}});function yx(e,t,n,i){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>pt(a,i,Ze())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var _m=y("$ZodXor",(e,t)=>{ba.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(i,r)=>{if(n)return n(i,r);let o=!1,a=[];for(let l of t.options){let u=l._zod.run({value:i.value,issues:[]},r);u instanceof Promise?(a.push(u),o=!0):a.push(u)}return o?Promise.all(a).then(l=>yx(l,i,e,r)):yx(a,i,e,r)}}),Sm=y("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ba.init(e,t);let n=e._zod.parse;W(e._zod,"propValues",()=>{let r={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,u]of Object.entries(a)){r[l]||(r[l]=new Set);for(let c of u)r[l].add(c)}}return r});let i=Ei(()=>{let r=t.options,o=new Map;for(let a of r){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let u of l){if(o.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);o.set(u,a)}}return o});e._zod.parse=(r,o)=>{let a=r.value;if(!Kr(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let l=i.value.get(a?.[t.discriminator]);return l?l._zod.run(r,o):t.unionFallback||o.direction==="backward"?n(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(i.value.keys()),input:a,path:[t.discriminator],inst:e}),r)}}),$m=y("$ZodIntersection",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,o=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,c])=>bx(n,u,c)):bx(n,o,a)}});function If(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fr(e)&&fr(t)){let n=Object.keys(t),i=Object.keys(e).filter(o=>n.indexOf(o)!==-1),r={...e,...t};for(let o of i){let a=If(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r[o]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],o=t[i],a=If(r,o);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function bx(e,t,n){let i=new Map,r;for(let l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(let u of l.keys)i.has(u)||i.set(u,{}),i.get(u).l=!0}else e.issues.push(l);for(let l of n.issues)if(l.code==="unrecognized_keys")for(let u of l.keys)i.has(u)||i.set(u,{}),i.get(u).r=!0;else e.issues.push(l);let o=[...i].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&r&&e.issues.push({...r,keys:o}),mr(e))return e;let a=If(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var hu=y("$ZodTuple",(e,t)=>{G.init(e,t);let n=t.items;e._zod.parse=(i,r)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];let a=[],l=xx(n,"optin"),u=xx(n,"optout");if(!t.rest){if(o.length<l)return i.issues.push({code:"too_small",minimum:l,inclusive:!0,input:o,inst:e,origin:"array"}),i;o.length>n.length&&i.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let c=new Array(n.length);for(let s=0;s<n.length;s++){let d=n[s]._zod.run({value:o[s],issues:[]},r);d instanceof Promise?a.push(d.then(f=>{c[s]=f})):c[s]=d}if(t.rest){let s=n.length-1,d=o.slice(n.length);for(let f of d){s++;let m=t.rest._zod.run({value:f,issues:[]},r);m instanceof Promise?a.push(m.then(S=>_x(S,i,s))):_x(m,i,s)}}return a.length?Promise.all(a).then(()=>Sx(c,i,n,o,u)):Sx(c,i,n,o,u)}});function xx(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function _x(e,t,n){e.issues.length&&t.issues.push(..._t(n,e.issues)),t.value[n]=e.value}function Sx(e,t,n,i,r){for(let o=0;o<n.length;o++){let a=e[o],l=o<i.length;if(a.issues.length){if(!l&&o>=r){t.value.length=o;break}t.issues.push(..._t(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=i.length&&(n[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var km=y("$ZodRecord",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!fr(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let l=new Set;for(let c of a)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){l.add(typeof c=="number"?c.toString():c);let s=t.keyType._zod.run({value:c,issues:[]},i);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(m=>pt(m,i,Ze())),input:c,path:[c],inst:e});continue}let d=s.value,f=t.valueType._zod.run({value:r[c],issues:[]},i);f instanceof Promise?o.push(f.then(m=>{m.issues.length&&n.issues.push(..._t(c,m.issues)),n.value[d]=m.value})):(f.issues.length&&n.issues.push(..._t(c,f.issues)),n.value[d]=f.value)}let u;for(let c in r)l.has(c)||(u=u??[],u.push(c));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(let l of Reflect.ownKeys(r)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(r,l))continue;let u=t.keyType._zod.run({value:l,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&uu.test(l)&&u.issues.length){let d=t.keyType._zod.run({value:Number(l),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){t.mode==="loose"?n.value[l]=r[l]:n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>pt(d,i,Ze())),input:l,path:[l],inst:e});continue}let s=t.valueType._zod.run({value:r[l],issues:[]},i);s instanceof Promise?o.push(s.then(d=>{d.issues.length&&n.issues.push(..._t(l,d.issues)),n.value[u.value]=d.value})):(s.issues.length&&n.issues.push(..._t(l,s.issues)),n.value[u.value]=s.value)}}return o.length?Promise.all(o).then(()=>n):n}}),zm=y("$ZodMap",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let o=[];n.value=new Map;for(let[a,l]of r){let u=t.keyType._zod.run({value:a,issues:[]},i),c=t.valueType._zod.run({value:l,issues:[]},i);u instanceof Promise||c instanceof Promise?o.push(Promise.all([u,c]).then(([s,d])=>{$x(s,d,n,a,r,e,i)})):$x(u,c,n,a,r,e,i)}return o.length?Promise.all(o).then(()=>n):n}});function $x(e,t,n,i,r,o,a){e.issues.length&&(ca.has(typeof i)?n.issues.push(..._t(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(l=>pt(l,a,Ze()))})),t.issues.length&&(ca.has(typeof i)?n.issues.push(..._t(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:i,issues:t.issues.map(l=>pt(l,a,Ze()))})),n.value.set(e.value,t.value)}var wm=y("$ZodSet",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of r){let l=t.valueType._zod.run({value:a,issues:[]},i);l instanceof Promise?o.push(l.then(u=>kx(u,n))):kx(l,n)}return o.length?Promise.all(o).then(()=>n):n}});function kx(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Tm=y("$ZodEnum",(e,t)=>{G.init(e,t);let n=la(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(r=>ca.has(typeof r)).map(r=>typeof r=="string"?Jt(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Dm=y("$ZodLiteral",(e,t)=>{if(G.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(i=>typeof i=="string"?Jt(i):i?Jt(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,r)=>{let o=i.value;return n.has(o)||i.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),i}}),Em=y("$ZodFile",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Um=y("$ZodTransform",(e,t)=>{G.init(e,t),e._zod.optin="optional",e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new cr(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n.fallback=!0,n));if(r instanceof Promise)throw new dn;return n.value=r,n.fallback=!0,n}});function zx(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var yu=y("$ZodOptional",(e,t)=>{G.init(e,t),e._zod.optin="optional",e._zod.optout="optional",W(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),W(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${ua(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=n.value,o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(a=>zx(a,r)):zx(o,r)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),jm=y("$ZodExactOptional",(e,t)=>{yu.init(e,t),W(e._zod,"values",()=>t.innerType._zod.values),W(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,i)=>t.innerType._zod.run(n,i)}),Om=y("$ZodNullable",(e,t)=>{G.init(e,t),W(e._zod,"optin",()=>t.innerType._zod.optin),W(e._zod,"optout",()=>t.innerType._zod.optout),W(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${ua(n.source)}|null)$`):void 0}),W(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),Am=y("$ZodDefault",(e,t)=>{G.init(e,t),e._zod.optin="optional",W(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>wx(o,t)):wx(r,t)}});function wx(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Cm=y("$ZodPrefault",(e,t)=>{G.init(e,t),e._zod.optin="optional",W(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Nm=y("$ZodNonOptional",(e,t)=>{G.init(e,t),W(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>Tx(o,e)):Tx(r,e)}});function Tx(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Im=y("$ZodSuccess",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new cr("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),Zm=y("$ZodCatch",(e,t)=>{G.init(e,t),e._zod.optin="optional",W(e._zod,"optout",()=>t.innerType._zod.optout),W(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>pt(a,i,Ze()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue({...n,error:{issues:r.issues.map(o=>pt(o,i,Ze()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Mm=y("$ZodNaN",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),bu=y("$ZodPipe",(e,t)=>{G.init(e,t),W(e._zod,"values",()=>t.in._zod.values),W(e._zod,"optin",()=>t.in._zod.optin),W(e._zod,"optout",()=>t.out._zod.optout),W(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>du(a,t.in,i)):du(o,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(o=>du(o,t.out,i)):du(r,t.out,i)}});function du(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var xa=y("$ZodCodec",(e,t)=>{G.init(e,t),W(e._zod,"values",()=>t.in._zod.values),W(e._zod,"optin",()=>t.in._zod.optin),W(e._zod,"optout",()=>t.out._zod.optout),W(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let o=t.in._zod.run(n,i);return o instanceof Promise?o.then(a=>fu(a,t,i)):fu(o,t,i)}else{let o=t.out._zod.run(n,i);return o instanceof Promise?o.then(a=>fu(a,t,i)):fu(o,t,i)}}});function fu(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>mu(e,o,t.out,n)):mu(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>mu(e,o,t.in,n)):mu(e,r,t.in,n)}}function mu(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}var Rm=y("$ZodPreprocess",(e,t)=>{bu.init(e,t)}),Bm=y("$ZodReadonly",(e,t)=>{G.init(e,t),W(e._zod,"propValues",()=>t.innerType._zod.propValues),W(e._zod,"values",()=>t.innerType._zod.values),W(e._zod,"optin",()=>t.innerType?._zod?.optin),W(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(Dx):Dx(r)}});function Dx(e){return e.value=Object.freeze(e.value),e}var Lm=y("$ZodTemplateLiteral",(e,t)=>{G.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${i._zod.traits}`);let o=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(o,a))}else if(i===null||Od.has(typeof i))n.push(Jt(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(i,r)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Pm=y("$ZodFunction",(e,t)=>(G.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?Kl(e._def.input,i):i,o=Reflect.apply(n,this,r);return e._def.output?Kl(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Ql(e._def.input,i):i,o=await Reflect.apply(n,this,r);return e._def.output?await Ql(e._def.output,o):o}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new hu({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Vm=y("$ZodPromise",(e,t)=>{G.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),qm=y("$ZodLazy",(e,t)=>{G.init(e,t),W(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),W(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),W(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),W(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),W(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Hm=y("$ZodCustom",(e,t)=>{xe.init(e,t),G.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(o=>Ex(o,n,i,e));Ex(r,n,i,e)}});function Ex(e,t,n,i){if(!e){let r={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(r.params=i._zod.def.params),t.issues.push(Ui(r))}}var Sa={};In(Sa,{ar:()=>Nx,az:()=>Ix,be:()=>Mx,bg:()=>Rx,ca:()=>Bx,cs:()=>Lx,da:()=>Px,de:()=>Vx,el:()=>qx,en:()=>xu,eo:()=>Hx,es:()=>Gx,fa:()=>Jx,fi:()=>Yx,fr:()=>Fx,frCA:()=>Xx,he:()=>Kx,hr:()=>Qx,hu:()=>Wx,hy:()=>t_,id:()=>n_,is:()=>r_,it:()=>i_,ja:()=>o_,ka:()=>a_,kh:()=>l_,km:()=>_u,ko:()=>u_,lt:()=>s_,mk:()=>d_,ms:()=>f_,nl:()=>m_,no:()=>p_,ota:()=>g_,pl:()=>h_,ps:()=>v_,pt:()=>y_,ro:()=>b_,ru:()=>__,sl:()=>S_,sv:()=>$_,ta:()=>k_,th:()=>z_,tr:()=>w_,ua:()=>T_,uk:()=>Su,ur:()=>D_,uz:()=>E_,vi:()=>U_,yo:()=>A_,zhCN:()=>j_,zhTW:()=>O_});var dT=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${w(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${_(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Nx(){return{localeError:dT()}}var fT=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${l}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${w(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Ix(){return{localeError:fT()}}function Zx(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var mT=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},i={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${w(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let l=Number(r.maximum),u=Zx(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let l=Number(r.minimum),u=Zx(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${r.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Mx(){return{localeError:mT()}}var pT=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${w(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Rx(){return{localeError:pT()}}var gT=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${l}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${w(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${_(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",a=t(r.origin);return a?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(r.origin);return a?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function Bx(){return{localeError:gT()}}var vT=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${l}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${w(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${_(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function Lx(){return{localeError:vT()}}var hT=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let n={regex:"input",email:"e-mailadresse",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 klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${l}`:`Ugyldigt input: forventede ${o}, fik ${l}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${w(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),l=i[r.origin]??r.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${o} ${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),l=i[r.origin]??r.origin;return a?`For lille: forventede ${l} ${a.verb} ${o} ${r.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function Px(){return{localeError:hT()}}var yT=()=>{let e={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 t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${l}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${w(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function Vx(){return{localeError:yT()}}var bT=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(r){return e[r]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return typeof r.expected=="string"&&/^[A-Z]/.test(r.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${r.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return r.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${w(r.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${r.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${r.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${r.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${r.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${r.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${r.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${r.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function qx(){return{localeError:bT()}}var xT=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let n={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",mac:"MAC 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"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.values[0])}`:`Invalid option: expected one of ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${a.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return r.options&&Array.isArray(r.options)&&r.options.length>0?`Invalid discriminator value. Expected ${r.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function xu(){return{localeError:xT()}}var _T=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${l}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${w(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function Hx(){return{localeError:_T()}}var ST=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${l}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${w(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),l=i[r.origin]??r.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),l=i[r.origin]??r.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${o}${r.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${i[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${i[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function Gx(){return{localeError:ST()}}var $T=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${w(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${_(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${_(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Jx(){return{localeError:$T()}}var kT=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${l}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${w(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${_(r.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\xF6te"}}};function Yx(){return{localeError:kT()}}var zT=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${l} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${w(r.values[0])} attendu`:`Option invalide : une valeur parmi ${_(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Trop grand : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Trop petit : ${i[r.origin]??"valeur"} doit ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : ${i[r.origin]??"valeur"} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Fx(){return{localeError:zT()}}var wT=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${l}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${w(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",a=t(r.origin);return a?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",a=t(r.origin);return a?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${_(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function Xx(){return{localeError:wT()}}var TT=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=c=>c?e[c]:void 0,i=c=>{let s=n(c);return s?s.label:c??e.unknown.label},r=c=>`\u05D4${i(c)}`,o=c=>(n(c)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=c=>c?t[c]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let s=c.expected,d=u[s??""]??i(s),f=T(c.input),m=u[f]??e[f]?.label??f;return/^[A-Z]/.test(c.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${c.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(c.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${w(c.values[0])}`;let s=c.values.map(m=>w(m));if(c.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${s[0]} \u05D0\u05D5 ${s[1]}`;let d=s[s.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${s.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let s=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${s?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${s?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let S=c.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${c.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${S}`}if(c.origin==="array"||c.origin==="set"){let S=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",$=c.inclusive?`${c.maximum} ${s?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${s?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${S} \u05DC\u05D4\u05DB\u05D9\u05DC ${$}`.trim()}let f=c.inclusive?"<=":"<",m=o(c.origin??"value");return s?.unit?`${s.longLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.maximum.toString()} ${s.unit}`:`${s?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.maximum.toString()}`}case"too_small":{let s=a(c.origin),d=r(c.origin??"value");if(c.origin==="string")return`${s?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${s?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let S=c.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${c.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${c.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${S}`}if(c.origin==="array"||c.origin==="set"){let S=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let C=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${S} \u05DC\u05D4\u05DB\u05D9\u05DC ${C}`}let $=c.inclusive?`${c.minimum} ${s?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${s?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${S} \u05DC\u05D4\u05DB\u05D9\u05DC ${$}`.trim()}let f=c.inclusive?">=":">",m=o(c.origin??"value");return s?.unit?`${s.shortLabel} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.minimum.toString()} ${s.unit}`:`${s?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${m} ${f}${c.minimum.toString()}`}case"invalid_format":{let s=c;if(s.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${s.prefix}"`;if(s.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${s.suffix}"`;if(s.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${s.includes}"`;if(s.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${s.pattern}`;let d=l[s.format],f=d?.label??s.format,S=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${S}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${c.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${c.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${c.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${_(c.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function Kx(){return{localeError:TT()}}var DT=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(r){return e[r]??null}let n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${r.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${l}`}case"invalid_value":return r.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${w(r.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),l=i[r.origin]??r.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${o}${r.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),l=i[r.origin]??r.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${o}${r.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??r.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${r.divisor}`;case"unrecognized_keys":return`Neprepoznat${r.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${i[r.origin]??r.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[r.origin]??r.origin}`;default:return"Neispravan unos"}}};function Qx(){return{localeError:DT()}}var ET=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${w(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function Wx(){return{localeError:ET()}}function e_(e,t,n){return Math.abs(e)===1?t:n}function Ii(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var UT=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},i={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${w(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let l=Number(r.maximum),u=e_(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ii(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ii(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let l=Number(r.minimum),u=e_(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ii(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Ii(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${_(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Ii(r.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Ii(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function t_(){return{localeError:UT()}}var jT=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${o}, diterima ${l}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${w(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function n_(){return{localeError:jT()}}var OT=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(r){return e[r]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${w(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${_(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function r_(){return{localeError:OT()}}var AT=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${l}`:`Input non valido: atteso ${o}, ricevuto ${l}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${w(r.values[0])}`:`Opzione non valida: atteso uno tra ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${n[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${_(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function i_(){return{localeError:AT()}}var CT=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},i={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${w(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${_(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(r.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(r.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${_(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function o_(){return{localeError:CT()}}var NT=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(r){return e[r]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},i={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${w(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${_(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function a_(){return{localeError:NT()}}var IT=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},i={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${w(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${_(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function _u(){return{localeError:IT()}}function l_(){return _u()}var ZT=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${w(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${_(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),u=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${u} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${a}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),u=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${u} ${o}${a}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${_(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function u_(){return{localeError:ZT()}}var _a=e=>e.charAt(0).toUpperCase()+e.slice(1);function c_(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}var MT=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(r,o,a,l){let u=e[r]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[l][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},i={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${w(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${_(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=i[r.origin]??r.origin,a=t(r.origin,c_(Number(r.maximum)),r.inclusive??!1,"smaller");if(a?.verb)return`${_a(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.maximum.toString()} ${a.unit??"element\u0173"}`;let l=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${_a(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${r.maximum.toString()} ${a?.unit}`}case"too_small":{let o=i[r.origin]??r.origin,a=t(r.origin,c_(Number(r.minimum)),r.inclusive??!1,"bigger");if(a?.verb)return`${_a(o??r.origin??"reik\u0161m\u0117")} ${a.verb} ${r.minimum.toString()} ${a.unit??"element\u0173"}`;let l=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${_a(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${r.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${_(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=i[r.origin]??r.origin;return`${_a(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function s_(){return{localeError:MT()}}var RT=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},i={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${w(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function d_(){return{localeError:RT()}}var BT=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${l}`:`Input tidak sah: dijangka ${o}, diterima ${l}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${w(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Terlalu besar: dijangka ${r.origin??"nilai"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Terlalu kecil: dijangka ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${_(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function f_(){return{localeError:BT()}}var LT=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let n={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"},i={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${o}, ontving ${l}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${w(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin),l=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin),l=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function m_(){return{localeError:LT()}}var PT=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let n={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\xE5de",ipv6:"IPv6-omr\xE5de",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"},i={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${l}`:`Ugyldig input: forventet ${o}, fikk ${l}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${w(r.values[0])}`:`Ugyldig valg: forventet en av ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function p_(){return{localeError:PT()}}var VT=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${l}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${w(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function g_(){return{localeError:VT()}}var qT=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},i={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${w(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${_(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${_(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function v_(){return{localeError:qT()}}var HT=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},i={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${l}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${w(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function h_(){return{localeError:HT()}}var GT=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${l}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${w(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${_(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function y_(){return{localeError:GT()}}var JT=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(r){return e[r]??null}let n={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${l}`}case"invalid_value":return r.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${w(r.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${r.origin??"valoarea"} s\u0103 fie ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Prea mic: a\u0219teptat ca ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${r.origin} s\u0103 fie ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??r.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${r.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${_(r.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${r.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${r.origin}`;default:return"Intrare invalid\u0103"}}};function b_(){return{localeError:JT()}}function x_(e,t,n,i){let r=Math.abs(e),o=r%10,a=r%100;return a>=11&&a<=19?i:o===1?t:o>=2&&o<=4?n:i}var YT=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${w(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);if(a){let l=Number(r.maximum),u=x_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);if(a){let l=Number(r.minimum),u=x_(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function __(){return{localeError:YT()}}var FT=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${l}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${w(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${_(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function S_(){return{localeError:FT()}}var XT=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${l}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${w(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${_(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function $_(){return{localeError:XT()}}var KT=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${w(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${_(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function k_(){return{localeError:KT()}}var QT=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},i={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${w(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(r.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${_(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function z_(){return{localeError:QT()}}var WT=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(r){return e[r]??null}let n={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${l}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${w(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function w_(){return{localeError:WT()}}var e2=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},i={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${w(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${_(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function Su(){return{localeError:e2()}}function T_(){return Su()}var t2=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},i={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${w(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${_(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${_(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function D_(){return{localeError:t2()}}var n2=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${l}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${w(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function E_(){return{localeError:n2()}}var r2=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},i={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${w(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${r.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${a.verb} ${o}${r.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${_(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function U_(){return{localeError:r2()}}var i2=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},i={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${w(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${_(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function j_(){return{localeError:i2()}}var o2=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},i={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${w(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${_(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function O_(){return{localeError:o2()}}var a2=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(r){return e[r]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},i={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let o=i[r.expected]??r.expected,a=T(r.input),l=i[a]??a;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${w(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${_(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",a=t(r.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${a.verb} ${o}${r.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",a=t(r.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${a.verb} ${o}${r.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${_(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function A_(){return{localeError:a2()}}var C_,Gm=Symbol("ZodOutput"),Jm=Symbol("ZodInput"),$u=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let i={...this.get(n)??{}};delete i.id;let r={...i,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ku(){return new $u}(C_=globalThis).__zod_globalRegistry??(C_.__zod_globalRegistry=ku());var nt=globalThis.__zod_globalRegistry;function Ym(e,t){return new e({type:"string",...U(t)})}function Fm(e,t){return new e({type:"string",coerce:!0,...U(t)})}function zu(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...U(t)})}function $a(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...U(t)})}function wu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...U(t)})}function Tu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...U(t)})}function Du(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...U(t)})}function Eu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...U(t)})}function ka(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...U(t)})}function Uu(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...U(t)})}function ju(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...U(t)})}function Ou(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...U(t)})}function Au(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...U(t)})}function Cu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...U(t)})}function Nu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...U(t)})}function Iu(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...U(t)})}function Zu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...U(t)})}function Mu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...U(t)})}function Xm(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...U(t)})}function Ru(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...U(t)})}function Bu(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...U(t)})}function Lu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...U(t)})}function Pu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...U(t)})}function Vu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...U(t)})}function qu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...U(t)})}var Km={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Qm(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...U(t)})}function Wm(e,t){return new e({type:"string",format:"date",check:"string_format",...U(t)})}function ep(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...U(t)})}function tp(e,t){return new e({type:"string",format:"duration",check:"string_format",...U(t)})}function np(e,t){return new e({type:"number",checks:[],...U(t)})}function rp(e,t){return new e({type:"number",coerce:!0,checks:[],...U(t)})}function ip(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...U(t)})}function op(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...U(t)})}function ap(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...U(t)})}function lp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...U(t)})}function up(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...U(t)})}function cp(e,t){return new e({type:"boolean",...U(t)})}function sp(e,t){return new e({type:"boolean",coerce:!0,...U(t)})}function dp(e,t){return new e({type:"bigint",...U(t)})}function fp(e,t){return new e({type:"bigint",coerce:!0,...U(t)})}function mp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...U(t)})}function pp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...U(t)})}function gp(e,t){return new e({type:"symbol",...U(t)})}function vp(e,t){return new e({type:"undefined",...U(t)})}function hp(e,t){return new e({type:"null",...U(t)})}function yp(e){return new e({type:"any"})}function bp(e){return new e({type:"unknown"})}function xp(e,t){return new e({type:"never",...U(t)})}function _p(e,t){return new e({type:"void",...U(t)})}function Sp(e,t){return new e({type:"date",...U(t)})}function $p(e,t){return new e({type:"date",coerce:!0,...U(t)})}function kp(e,t){return new e({type:"nan",...U(t)})}function xn(e,t){return new cu({check:"less_than",...U(t),value:e,inclusive:!1})}function Ct(e,t){return new cu({check:"less_than",...U(t),value:e,inclusive:!0})}function _n(e,t){return new su({check:"greater_than",...U(t),value:e,inclusive:!1})}function gt(e,t){return new su({check:"greater_than",...U(t),value:e,inclusive:!0})}function Hu(e){return _n(0,e)}function Gu(e){return xn(0,e)}function Ju(e){return Ct(0,e)}function Yu(e){return gt(0,e)}function pr(e,t){return new hf({check:"multiple_of",...U(t),value:e})}function gr(e,t){return new xf({check:"max_size",...U(t),maximum:e})}function Sn(e,t){return new _f({check:"min_size",...U(t),minimum:e})}function ei(e,t){return new Sf({check:"size_equals",...U(t),size:e})}function ti(e,t){return new $f({check:"max_length",...U(t),maximum:e})}function Mn(e,t){return new kf({check:"min_length",...U(t),minimum:e})}function ni(e,t){return new zf({check:"length_equals",...U(t),length:e})}function Zi(e,t){return new wf({check:"string_format",format:"regex",...U(t),pattern:e})}function Mi(e){return new Tf({check:"string_format",format:"lowercase",...U(e)})}function Ri(e){return new Df({check:"string_format",format:"uppercase",...U(e)})}function Bi(e,t){return new Ef({check:"string_format",format:"includes",...U(t),includes:e})}function Li(e,t){return new Uf({check:"string_format",format:"starts_with",...U(t),prefix:e})}function Pi(e,t){return new jf({check:"string_format",format:"ends_with",...U(t),suffix:e})}function Fu(e,t,n){return new Of({check:"property",property:e,schema:t,...U(n)})}function Vi(e,t){return new Af({check:"mime_type",mime:e,...U(t)})}function fn(e){return new Cf({check:"overwrite",tx:e})}function qi(e){return fn(t=>t.normalize(e))}function Hi(){return fn(e=>e.trim())}function Gi(){return fn(e=>e.toLowerCase())}function Ji(){return fn(e=>e.toUpperCase())}function Yi(){return fn(e=>Ed(e))}function zp(e,t,n){return new e({type:"array",element:t,...U(n)})}function u2(e,t,n){return new e({type:"union",options:t,...U(n)})}function c2(e,t,n){return new e({type:"union",options:t,inclusive:!1,...U(n)})}function s2(e,t,n,i){return new e({type:"union",options:n,discriminator:t,...U(i)})}function d2(e,t,n){return new e({type:"intersection",left:t,right:n})}function f2(e,t,n,i){let r=n instanceof G,o=r?i:n,a=r?n:null;return new e({type:"tuple",items:t,rest:a,...U(o)})}function m2(e,t,n,i){return new e({type:"record",keyType:t,valueType:n,...U(i)})}function p2(e,t,n,i){return new e({type:"map",keyType:t,valueType:n,...U(i)})}function g2(e,t,n){return new e({type:"set",valueType:t,...U(n)})}function v2(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:i,...U(n)})}function h2(e,t,n){return new e({type:"enum",entries:t,...U(n)})}function y2(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...U(n)})}function wp(e,t){return new e({type:"file",...U(t)})}function b2(e,t){return new e({type:"transform",transform:t})}function x2(e,t){return new e({type:"optional",innerType:t})}function _2(e,t){return new e({type:"nullable",innerType:t})}function S2(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():jd(n)}})}function $2(e,t,n){return new e({type:"nonoptional",innerType:t,...U(n)})}function k2(e,t){return new e({type:"success",innerType:t})}function z2(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function w2(e,t,n){return new e({type:"pipe",in:t,out:n})}function T2(e,t){return new e({type:"readonly",innerType:t})}function D2(e,t,n){return new e({type:"template_literal",parts:t,...U(n)})}function E2(e,t){return new e({type:"lazy",getter:t})}function U2(e,t){return new e({type:"promise",innerType:t})}function Tp(e,t,n){let i=U(n);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:t,...i})}function Dp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...U(n)})}function Ep(e,t){let n=N_(i=>(i.addIssue=r=>{if(typeof r=="string")i.issues.push(Ui(r,i.value,n._zod.def));else{let o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),i.issues.push(Ui(o))}},e(i.value,i)),t);return n}function N_(e,t){let n=new xe({check:"custom",...U(t)});return n._zod.check=e,n}function Up(e){let t=new xe({check:"describe"});return t._zod.onattach=[n=>{let i=nt.get(n)??{};nt.add(n,{...i,description:e})}],t._zod.check=()=>{},t}function jp(e){let t=new xe({check:"meta"});return t._zod.onattach=[n=>{let i=nt.get(n)??{};nt.add(n,{...i,...e})}],t._zod.check=()=>{},t}function Op(e,t){let n=U(t),i=n.truthy??["true","1","yes","on","y","enabled"],r=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(m=>typeof m=="string"?m.toLowerCase():m),r=r.map(m=>typeof m=="string"?m.toLowerCase():m));let o=new Set(i),a=new Set(r),l=e.Codec??xa,u=e.Boolean??ya,c=e.String??Wr,s=new c({type:"string",error:n.error}),d=new u({type:"boolean",error:n.error}),f=new l({type:"pipe",in:s,out:d,transform:((m,S)=>{let $=m;return n.case!=="sensitive"&&($=$.toLowerCase()),o.has($)?!0:a.has($)?!1:(S.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:S.value,inst:f,continue:!1}),{})}),reverseTransform:((m,S)=>m===!0?i[0]||"true":r[0]||"false"),error:n.error});return f}function Fi(e,t,n,i={}){let r=U(i),o={...U(i),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:l=>n.test(l),...r};return n instanceof RegExp&&(o.pattern=n),new e(o)}function vr(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??nt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function ce(e,t,n={path:[],schemaPath:[]}){var i;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let s={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,s);else{let f=a.schema,m=t.processors[r.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);m(e,t,f,s)}let d=e._zod.parent;d&&(a.ref||(a.ref=d),ce(d,t,s),t.seen.get(d).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&vt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function hr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let u=i.get(l);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(l,a[0])}}let r=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(a[0])?.id,f=e.external.uri??(S=>S);if(d)return{ref:f(d)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${f("__shared")}#/${l}/${m}`}}if(a[1]===n)return{ref:"#"};let c=`#/${l}/`,s=a[1].schema.id??`__schema${e.counter++}`;return{defId:s,ref:c+s}},o=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:u,defId:c}=r(a);l.def={...l.schema},c&&(l.defId=c);let s=l.schema;for(let d in s)delete s[d];s.$ref=u};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
72
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");let g=f.compile();return(b,v)=>g(p,b,v)},o,a=Ur,l=!jr.jitless,u=l&&Pf.value,d=t.catchall,m;e._zod.parse=(p,f)=>{m??(m=r.value);let x=p.value;return a(x)?l&&u&&f?.async===!1&&f.jitless!==!0?(o||(o=i(t.shape)),p=o(p,f),d?w0([],x,p,f,m,e):p):n(p,f):(p.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),p)}});function s0(e,t,n,r){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let i=e.filter(o=>!Yi(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Bt(a,r,rt())))}),t)}var sl=S("$ZodUnion",(e,t)=>{re.init(e,t),me(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),me(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),me(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),me(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${r.map(i=>Qa(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let l of t.options){let c=l._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(l=>s0(l,r,e,i)):s0(a,r,e,i)}});function u0(e,t,n,r){let i=e.filter(o=>o.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(a=>Bt(a,r,rt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Ap=S("$ZodXor",(e,t)=>{sl.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1,a=[];for(let l of t.options){let c=l._zod.run({value:r.value,issues:[]},i);c instanceof Promise?(a.push(c),o=!0):a.push(c)}return o?Promise.all(a).then(l=>u0(l,r,e,i)):u0(a,r,e,i)}}),jp=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,sl.init(e,t);let n=e._zod.parse;me(e._zod,"propValues",()=>{let i={};for(let o of t.options){let a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,c]of Object.entries(a)){i[l]||(i[l]=new Set);for(let u of c)i[l].add(u)}}return i});let r=po(()=>{let i=t.options,o=new Map;for(let a of i){let l=a._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let c of l){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});e._zod.parse=(i,o)=>{let a=i.value;if(!Ur(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;let l=r.value.get(a?.[t.discriminator]);return l?l._zod.run(i,o):t.unionFallback||o.direction==="backward"?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:a,path:[t.discriminator],inst:e}),i)}}),Up=S("$ZodIntersection",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([c,u])=>d0(n,c,u)):d0(n,o,a)}});function Gm(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Gi(e)&&Gi(t)){let n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(let o of r){let a=Gm(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t[r],a=Gm(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function d0(e,t,n){let r=new Map,i;for(let l of t.issues)if(l.code==="unrecognized_keys"){i??(i=l);for(let c of l.keys)r.has(c)||r.set(c,{}),r.get(c).l=!0}else e.issues.push(l);for(let l of n.issues)if(l.code==="unrecognized_keys")for(let c of l.keys)r.has(c)||r.set(c,{}),r.get(c).r=!0;else e.issues.push(l);let o=[...r].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&i&&e.issues.push({...i,keys:o}),Yi(e))return e;let a=Gm(t.value,n.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var fs=S("$ZodTuple",(e,t)=>{re.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let o=r.value;if(!Array.isArray(o))return r.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let a=[],l=f0(n,"optin"),c=f0(n,"optout");if(!t.rest){if(o.length<l)return r.issues.push({code:"too_small",minimum:l,inclusive:!0,input:o,inst:e,origin:"array"}),r;o.length>n.length&&r.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:o,inst:e,origin:"array"})}let u=new Array(n.length);for(let d=0;d<n.length;d++){let m=n[d]._zod.run({value:o[d],issues:[]},i);m instanceof Promise?a.push(m.then(p=>{u[d]=p})):u[d]=m}if(t.rest){let d=n.length-1,m=o.slice(n.length);for(let p of m){d++;let f=t.rest._zod.run({value:p,issues:[]},i);f instanceof Promise?a.push(f.then(x=>m0(x,r,d))):m0(f,r,d)}}return a.length?Promise.all(a).then(()=>p0(u,r,n,o,c)):p0(u,r,n,o,c)}});function f0(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!=="optional")return n+1;return 0}function m0(e,t,n){e.issues.length&&t.issues.push(...Xt(n,e.issues)),t.value[n]=e.value}function p0(e,t,n,r,i){for(let o=0;o<n.length;o++){let a=e[o],l=o<r.length;if(a.issues.length){if(!l&&o>=i){t.value.length=o;break}t.issues.push(...Xt(o,a.issues))}t.value[o]=a.value}for(let o=t.value.length-1;o>=r.length&&(n[o]._zod.optout==="optional"&&t.value[o]===void 0);o--)t.value.length=o;return t}var Op=S("$ZodRecord",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Gi(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;let o=[],a=t.keyType._zod.values;if(a){n.value={};let l=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let d=t.keyType._zod.run({value:u,issues:[]},r);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(f=>Bt(f,r,rt())),input:u,path:[u],inst:e});continue}let m=d.value,p=t.valueType._zod.run({value:i[u],issues:[]},r);p instanceof Promise?o.push(p.then(f=>{f.issues.length&&n.issues.push(...Xt(u,f.issues)),n.value[m]=f.value})):(p.issues.length&&n.issues.push(...Xt(u,p.issues)),n.value[m]=p.value)}let c;for(let u in i)l.has(u)||(c=c??[],c.push(u));c&&c.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c})}else{n.value={};for(let l of Reflect.ownKeys(i)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,l))continue;let c=t.keyType._zod.run({value:l,issues:[]},r);if(c instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&is.test(l)&&c.issues.length){let m=t.keyType._zod.run({value:Number(l),issues:[]},r);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");m.issues.length===0&&(c=m)}if(c.issues.length){t.mode==="loose"?n.value[l]=i[l]:n.issues.push({code:"invalid_key",origin:"record",issues:c.issues.map(m=>Bt(m,r,rt())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:i[l],issues:[]},r);d instanceof Promise?o.push(d.then(m=>{m.issues.length&&n.issues.push(...Xt(l,m.issues)),n.value[c.value]=m.value})):(d.issues.length&&n.issues.push(...Xt(l,d.issues)),n.value[c.value]=d.value)}}return o.length?Promise.all(o).then(()=>n):n}}),Np=S("$ZodMap",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),n;let o=[];n.value=new Map;for(let[a,l]of i){let c=t.keyType._zod.run({value:a,issues:[]},r),u=t.valueType._zod.run({value:l,issues:[]},r);c instanceof Promise||u instanceof Promise?o.push(Promise.all([c,u]).then(([d,m])=>{h0(d,m,n,a,i,e,r)})):h0(c,u,n,a,i,e,r)}return o.length?Promise.all(o).then(()=>n):n}});function h0(e,t,n,r,i,o,a){e.issues.length&&(Wa.has(typeof r)?n.issues.push(...Xt(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:o,issues:e.issues.map(l=>Bt(l,a,rt()))})),t.issues.length&&(Wa.has(typeof r)?n.issues.push(...Xt(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:o,key:r,issues:t.issues.map(l=>Bt(l,a,rt()))})),n.value.set(e.value,t.value)}var Rp=S("$ZodSet",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),n;let o=[];n.value=new Set;for(let a of i){let l=t.valueType._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(c=>g0(c,n))):g0(l,n)}return o.length?Promise.all(o).then(()=>n):n}});function g0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Mp=S("$ZodEnum",(e,t)=>{re.init(e,t);let n=Ka(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>Wa.has(typeof i)).map(i=>typeof i=="string"?Cn(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{let a=i.value;return r.has(a)||i.issues.push({code:"invalid_value",values:n,input:a,inst:e}),i}}),Zp=S("$ZodLiteral",(e,t)=>{if(re.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?Cn(r):r?Cn(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,i)=>{let o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),r}}),Bp=S("$ZodFile",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;return i instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:i,inst:e}),n}}),Lp=S("$ZodTransform",(e,t)=>{re.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Fi(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n.fallback=!0,n));if(i instanceof Promise)throw new Fn;return n.value=i,n.fallback=!0,n}});function v0(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var ms=S("$ZodOptional",(e,t)=>{re.init(e,t),e._zod.optin="optional",e._zod.optout="optional",me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),me(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Qa(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){let i=n.value,o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(a=>v0(a,i)):v0(o,i)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Pp=S("$ZodExactOptional",(e,t)=>{ms.init(e,t),me(e._zod,"values",()=>t.innerType._zod.values),me(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Vp=S("$ZodNullable",(e,t)=>{re.init(e,t),me(e._zod,"optin",()=>t.innerType._zod.optin),me(e._zod,"optout",()=>t.innerType._zod.optout),me(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp(`^(${Qa(n.source)}|null)$`):void 0}),me(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Fp=S("$ZodDefault",(e,t)=>{re.init(e,t),e._zod.optin="optional",me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>y0(o,t)):y0(i,t)}});function y0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var qp=S("$ZodPrefault",(e,t)=>{re.init(e,t),e._zod.optin="optional",me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Hp=S("$ZodNonOptional",(e,t)=>{re.init(e,t),me(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>b0(o,e)):b0(i,e)}});function b0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Gp=S("$ZodSuccess",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Fi("ZodSuccess");let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.issues.length===0,n)):(n.value=i.issues.length===0,n)}}),Yp=S("$ZodCatch",(e,t)=>{re.init(e,t),e._zod.optin="optional",me(e._zod,"optout",()=>t.innerType._zod.optout),me(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>Bt(a,r,rt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>Bt(o,r,rt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Jp=S("$ZodNaN",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),ps=S("$ZodPipe",(e,t)=>{re.init(e,t),me(e._zod,"values",()=>t.in._zod.values),me(e._zod,"optin",()=>t.in._zod.optin),me(e._zod,"optout",()=>t.out._zod.optout),me(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>as(a,t.in,r)):as(o,t.in,r)}let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>as(o,t.out,r)):as(i,t.out,r)}});function as(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var ul=S("$ZodCodec",(e,t)=>{re.init(e,t),me(e._zod,"values",()=>t.in._zod.values),me(e._zod,"optin",()=>t.in._zod.optin),me(e._zod,"optout",()=>t.out._zod.optout),me(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(a=>ls(a,t,r)):ls(o,t,r)}else{let o=t.out._zod.run(n,r);return o instanceof Promise?o.then(a=>ls(a,t,r)):ls(o,t,r)}}});function ls(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let i=t.transform(e.value,e);return i instanceof Promise?i.then(o=>cs(e,o,t.out,n)):cs(e,i,t.out,n)}else{let i=t.reverseTransform(e.value,e);return i instanceof Promise?i.then(o=>cs(e,o,t.in,n)):cs(e,i,t.in,n)}}function cs(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var Xp=S("$ZodPreprocess",(e,t)=>{ps.init(e,t)}),Kp=S("$ZodReadonly",(e,t)=>{re.init(e,t),me(e._zod,"propValues",()=>t.innerType._zod.propValues),me(e._zod,"values",()=>t.innerType._zod.values),me(e._zod,"optin",()=>t.innerType?._zod?.optin),me(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(x0):x0(i)}});function x0(e){return e.value=Object.freeze(e.value),e}var Qp=S("$ZodTemplateLiteral",(e,t)=>{re.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){if(!r._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);let i=r._zod.pattern instanceof RegExp?r._zod.pattern.source:r._zod.pattern;if(!i)throw new Error(`Invalid template literal part: ${r._zod.traits}`);let o=i.startsWith("^")?1:0,a=i.endsWith("$")?i.length-1:i.length;n.push(i.slice(o,a))}else if(r===null||Ff.has(typeof r))n.push(Cn(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,i)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),Wp=S("$ZodFunction",(e,t)=>(re.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...r){let i=e._def.input?Hc(e._def.input,r):r,o=Reflect.apply(n,this,i);return e._def.output?Hc(e._def.output,o):o}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...r){let i=e._def.input?await Gc(e._def.input,r):r,o=await Reflect.apply(n,this,i);return e._def.output?await Gc(e._def.output,o):o}},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new fs({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),eh=S("$ZodPromise",(e,t)=>{re.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(i=>t.innerType._zod.run({value:i,issues:[]},r))}),th=S("$ZodLazy",(e,t)=>{re.init(e,t),me(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),me(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),me(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),me(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),me(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),nh=S("$ZodCustom",(e,t)=>{Le.init(e,t),re.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>S0(o,n,r,e));S0(i,n,r,e)}});function S0(e,t,n,r){if(!e){let i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ho(i))}}var fl={};gi(fl,{ar:()=>T0,az:()=>C0,be:()=>D0,bg:()=>I0,ca:()=>A0,cs:()=>j0,da:()=>U0,de:()=>O0,el:()=>N0,en:()=>hs,eo:()=>R0,es:()=>M0,fa:()=>Z0,fi:()=>B0,fr:()=>L0,frCA:()=>P0,he:()=>V0,hr:()=>F0,hu:()=>q0,hy:()=>G0,id:()=>Y0,is:()=>J0,it:()=>X0,ja:()=>K0,ka:()=>Q0,kh:()=>W0,km:()=>gs,ko:()=>eS,lt:()=>nS,mk:()=>iS,ms:()=>rS,nl:()=>oS,no:()=>aS,ota:()=>lS,pl:()=>sS,ps:()=>cS,pt:()=>uS,ro:()=>dS,ru:()=>mS,sl:()=>pS,sv:()=>hS,ta:()=>gS,th:()=>vS,tr:()=>yS,ua:()=>bS,uk:()=>vs,ur:()=>xS,uz:()=>SS,vi:()=>kS,yo:()=>wS,zhCN:()=>_S,zhTW:()=>$S});var KE=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(i){return e[i]??null}let n={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${i.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return i.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${j(i.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${i.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${i.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${i.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${n[o.format]??i.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${i.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${i.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${i.keys.length>1?"\u0629":""}: ${$(i.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${i.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function T0(){return{localeError:KE()}}var QE=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let n={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"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${i.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${l}`}case"invalid_value":return i.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${j(i.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${i.origin??"d\u0259y\u0259r"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${n[o.format]??i.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${i.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${i.keys.length>1?"lar":""}: ${$(i.keys,", ")}`;case"invalid_key":return`${i.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${i.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function C0(){return{localeError:QE()}}function E0(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var WE=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(i){return e[i]??null}let n={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},r={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${i.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${j(i.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),c=E0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${i.maximum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),c=E0(l,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${o}${i.minimum.toString()} ${c}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${i.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${i.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${$(i.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${i.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function D0(){return{localeError:WE()}}var eD=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${j(i.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${i.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${i.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${i.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u043E\u0432\u0435":""}: ${$(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function I0(){return{localeError:eD()}}var tD=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(i){return e[i]??null}let n={regex:"entrada",email:"adre\xE7a electr\xF2nica",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\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${i.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${l}`}case"invalid_value":return i.values.length===1?`Valor inv\xE0lid: s'esperava ${j(i.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${$(i.values," o ")}`;case"too_big":{let o=i.inclusive?"com a m\xE0xim":"menys de",a=t(i.origin);return a?`Massa gran: s'esperava que ${i.origin??"el valor"} contingu\xE9s ${o} ${i.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${i.origin??"el valor"} fos ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(i.origin);return a?`Massa petit: s'esperava que ${i.origin} contingu\xE9s ${o} ${i.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${i.origin} fos ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${n[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${i.divisor}`;case"unrecognized_keys":return`Clau${i.keys.length>1?"s":""} no reconeguda${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${i.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${i.origin}`;default:return"Entrada inv\xE0lida"}}};function A0(){return{localeError:tD()}}var nD=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(i){return e[i]??null}let n={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 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 \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},r={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${i.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${l}`}case"invalid_value":return i.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${j(i.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED m\xEDt ${o}${i.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${i.origin??"hodnota"} mus\xED b\xFDt ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${n[o.format]??i.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${i.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${$(i.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${i.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${i.origin}`;default:return"Neplatn\xFD vstup"}}};function j0(){return{localeError:nD()}}var iD=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(i){return e[i]??null}let n={regex:"input",email:"e-mailadresse",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 klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},r={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ugyldigt input: forventede instanceof ${i.expected}, fik ${l}`:`Ugyldigt input: forventede ${o}, fik ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig v\xE6rdi: forventede ${j(i.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${o} ${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`For lille: forventede ${l} ${a.verb} ${o} ${i.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${$(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${i.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${i.origin}`;default:return"Ugyldigt input"}}};function U0(){return{localeError:iD()}}var rD=()=>{let e={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 t(i){return e[i]??null}let n={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"},r={nan:"NaN",number:"Zahl",array:"Array"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${i.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${l}`}case"invalid_value":return i.values.length===1?`Ung\xFCltige Eingabe: erwartet ${j(i.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${i.origin??"Wert"} ${o}${i.maximum.toString()} ist`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${i.origin} ${o}${i.minimum.toString()} ist`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${i.divisor} sein`;case"unrecognized_keys":return`${i.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${$(i.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${i.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${i.origin}`;default:return"Ung\xFCltige Eingabe"}}};function O0(){return{localeError:rD()}}var oD=()=>{let e={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function t(i){return e[i]??null}let n={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 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 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return typeof i.expected=="string"&&/^[A-Z]/.test(i.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${i.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${o}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return i.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${j(i.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${i.maximum.toString()} ${a.unit??"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${o}${i.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${i.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${o.prefix}"`:o.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${o.suffix}"`:o.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${o.includes}"`:o.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${o.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${n[o.format]??i.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${i.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${i.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${i.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${$(i.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${i.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${i.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function N0(){return{localeError:oD()}}var aD=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={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",mac:"MAC 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"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${j(i.values[0])}`:`Invalid option: expected one of ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${o}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${o}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function hs(){return{localeError:aD()}}var lD=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){return e[i]??null}let n={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",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\u016Dro",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"},r={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${i.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${l}`}case"invalid_value":return i.values.length===1?`Nevalida enigo: atendi\u011Dis ${j(i.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${i.origin??"valoro"} havu ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Tro malgranda: atendi\u011Dis ke ${i.origin} havu ${o}${i.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${i.origin} estu ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${n[o.format]??i.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${i.divisor}`;case"unrecognized_keys":return`Nekonata${i.keys.length>1?"j":""} \u015Dlosilo${i.keys.length>1?"j":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${i.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${i.origin}`;default:return"Nevalida enigo"}}};function R0(){return{localeError:lD()}}var cD=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(i){return e[i]??null}let n={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",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\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${i.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: se esperaba ${j(i.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${o}${i.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${n[o.format]??i.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Llave${i.keys.length>1?"s":""} desconocida${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${r[i.origin]??i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${r[i.origin]??i.origin}`;default:return"Entrada inv\xE1lida"}}};function M0(){return{localeError:cD()}}var sD=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(i){return e[i]??null}let n={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${i.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return i.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${j(i.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${$(i.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${i.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${n[o.format]??i.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${i.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${i.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${$(i.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${i.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${i.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function Z0(){return{localeError:sD()}}var uD=()=>{let e={string:{unit:"merkki\xE4",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\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(i){return e[i]??null}let n={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",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\xE4iv\xE4m\xE4\xE4r\xE4",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"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Virheellinen tyyppi: odotettiin instanceof ${i.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${l}`}case"invalid_value":return i.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${j(i.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${o}${i.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${o}${i.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${n[o.format]??i.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${i.divisor} monikerta`;case"unrecognized_keys":return`${i.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${$(i.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\xF6te"}}};function B0(){return{localeError:uD()}}var dD=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},r={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : instanceof ${i.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${l} re\xE7u`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : ${j(i.values[0])} attendu`:`Option invalide : une valeur parmi ${$(i.values,"|")} attendue`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Trop grand : ${r[i.origin]??"valeur"} doit ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r[i.origin]??"valeur"} doit \xEAtre ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Trop petit : ${r[i.origin]??"valeur"} doit ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : ${r[i.origin]??"valeur"} doit \xEAtre ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${$(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function L0(){return{localeError:dD()}}var fD=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(i){return e[i]??null}let n={regex:"entr\xE9e",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\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Entr\xE9e invalide : attendu instanceof ${i.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${l}`}case"invalid_value":return i.values.length===1?`Entr\xE9e invalide : attendu ${j(i.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u2264":"<",a=t(i.origin);return a?`Trop grand : attendu que ${i.origin??"la valeur"} ait ${o}${i.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${i.origin??"la valeur"} soit ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u2265":">",a=t(i.origin);return a?`Trop petit : attendu que ${i.origin} ait ${o}${i.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${i.origin} soit ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${n[o.format]??i.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${i.divisor}`;case"unrecognized_keys":return`Cl\xE9${i.keys.length>1?"s":""} non reconnue${i.keys.length>1?"s":""} : ${$(i.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${i.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${i.origin}`;default:return"Entr\xE9e invalide"}}};function P0(){return{localeError:fD()}}var mD=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},n=u=>u?e[u]:void 0,r=u=>{let d=n(u);return d?d.label:u??e.unknown.label},i=u=>`\u05D4${r(u)}`,o=u=>(n(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},c={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let d=u.expected,m=c[d??""]??r(d),p=U(u.input),f=c[p]??e[p]?.label??p;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${j(u.values[0])}`;let d=u.values.map(f=>j(f));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d[0]} \u05D0\u05D5 ${d[1]}`;let m=d[d.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${d.slice(0,-1).join(", ")} \u05D0\u05D5 ${m}`}case"too_big":{let d=a(u.origin),m=i(u.origin??"value");if(u.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let x=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(u.origin==="array"||u.origin==="set"){let x=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",_=u.inclusive?`${u.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let p=u.inclusive?"<=":"<",f=o(u.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.maximum.toString()}`}case"too_small":{let d=a(u.origin),m=i(u.origin??"value");if(u.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${d?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let x=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(u.origin==="array"||u.origin==="set"){let x=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let O=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${O}`}let _=u.inclusive?`${u.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${m} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${_}`.trim()}let p=u.inclusive?">=":">",f=o(u.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${m} ${f} ${p}${u.minimum.toString()}`}case"invalid_format":{let d=u;if(d.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${d.prefix}"`;if(d.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${d.suffix}"`;if(d.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${d.includes}"`;if(d.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${d.pattern}`;let m=l[d.format],p=m?.label??d.format,x=(m?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${p} \u05DC\u05D0 ${x}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${$(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${i(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function V0(){return{localeError:mD()}}var pD=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(i){return e[i]??null}let n={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},r={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${i.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${o}, a primljeno je ${l}`}case"invalid_value":return i.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${j(i.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${o}${i.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=r[i.origin]??i.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${o}${i.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${n[o.format]??i.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${i.divisor}`;case"unrecognized_keys":return`Neprepoznat${i.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${$(i.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${r[i.origin]??i.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${r[i.origin]??i.origin}`;default:return"Neispravan unos"}}};function F0(){return{localeError:pD()}}var hD=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(i){return e[i]??null}let n={regex:"bemenet",email:"email c\xEDm",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\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},r={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${i.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return i.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${j(i.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`T\xFAl nagy: ${i.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${i.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${i.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} m\xE9rete t\xFAl kicsi ${o}${i.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${i.origin} t\xFAl kicsi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${n[o.format]??i.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${i.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${i.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${i.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function q0(){return{localeError:hD()}}function H0(e,t,n){return Math.abs(e)===1?t:n}function So(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],n=e[e.length-1];return e+(t.includes(n)?"\u0576":"\u0568")}var gD=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(i){return e[i]??null}let n={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},r={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${i.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return i.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${j(i.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),c=H0(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${So(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.maximum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${So(i.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),c=H0(l,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${So(i.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${i.minimum.toString()} ${c}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${So(i.origin)} \u056C\u056B\u0576\u056B ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${n[o.format]??i.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${i.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${i.keys.length>1?"\u0576\u0565\u0580":""}. ${$(i.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${So(i.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${So(i.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function G0(){return{localeError:gD()}}var vD=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(i){return e[i]??null}let n={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"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input tidak valid: diharapkan instanceof ${i.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${o}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak valid: diharapkan ${j(i.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: diharapkan ${i.origin??"value"} memiliki ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${i.origin??"value"} menjadi ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: diharapkan ${i.origin} memiliki ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${i.origin} menjadi ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${n[o.format]??i.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${i.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${i.origin}`;default:return"Input tidak valid"}}};function Y0(){return{localeError:vD()}}var yD=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(i){return e[i]??null}let n={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},r={nan:"NaN",number:"n\xFAmer",array:"fylki"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${i.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return i.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${j(i.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} hafi ${o}${i.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin??"gildi"} s\xE9 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} hafi ${o}${i.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${i.origin} s\xE9 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${n[o.format]??i.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${i.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${i.keys.length>1?"ir lyklar":"ur lykill"}: ${$(i.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${i.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${i.origin}`;default:return"Rangt gildi"}}};function J0(){return{localeError:yD()}}var bD=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(i){return e[i]??null}let n={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"},r={nan:"NaN",number:"numero",array:"vettore"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input non valido: atteso instanceof ${i.expected}, ricevuto ${l}`:`Input non valido: atteso ${o}, ricevuto ${l}`}case"invalid_value":return i.values.length===1?`Input non valido: atteso ${j(i.values[0])}`:`Opzione non valida: atteso uno tra ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Troppo grande: ${i.origin??"valore"} deve avere ${o}${i.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${i.origin??"valore"} deve essere ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Troppo piccolo: ${i.origin} deve avere ${o}${i.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${i.origin} deve essere ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${n[o.format]??i.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${i.divisor}`;case"unrecognized_keys":return`Chiav${i.keys.length>1?"i":"e"} non riconosciut${i.keys.length>1?"e":"a"}: ${$(i.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${i.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${i.origin}`;default:return"Input non valido"}}};function X0(){return{localeError:bD()}}var xD=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(i){return e[i]??null}let n={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},r={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${i.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return i.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${j(i.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${$(i.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=i.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(i.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${a.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${i.origin??"\u5024"}\u306F${i.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=i.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(i.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${a.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${i.origin}\u306F${i.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${n[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${i.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${i.keys.length>1?"\u7FA4":""}: ${$(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${i.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function K0(){return{localeError:xD()}}var SD=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(i){return e[i]??null}let n={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},r={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${i.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return i.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${j(i.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${$(i.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${i.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${$(i.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${i.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${i.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function Q0(){return{localeError:SD()}}var kD=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(i){return e[i]??null}let n={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},r={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${i.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return i.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${j(i.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i.origin} ${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${i.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${$(i.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${i.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function gs(){return{localeError:kD()}}function W0(){return gs()}var _D=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${i.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return i.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${j(i.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${$(i.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=i.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(i.origin),c=l?.unit??"\uC694\uC18C";return l?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()}${c} ${o}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${i.maximum.toString()} ${o}${a}`}case"too_small":{let o=i.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(i.origin),c=l?.unit??"\uC694\uC18C";return l?`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()}${c} ${o}${a}`:`${i.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${i.minimum.toString()} ${o}${a}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${n[o.format]??i.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${i.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${$(i.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${i.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${i.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function eS(){return{localeError:_D()}}var dl=e=>e.charAt(0).toUpperCase()+e.slice(1);function tS(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?"many":n===1?"one":"few"}var $D=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(i,o,a,l){let c=e[i]??null;return c===null?c:{unit:c.unit[o],verb:c.verb[l][a?"inclusive":"notInclusive"]}}let n={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},r={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${i.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${o}`}case"invalid_value":return i.values.length===1?`Privalo b\u016Bti ${j(i.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${$(i.values,"|")} pasirinkim\u0173`;case"too_big":{let o=r[i.origin]??i.origin,a=t(i.origin,tS(Number(i.maximum)),i.inclusive??!1,"smaller");if(a?.verb)return`${dl(o??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.maximum.toString()} ${a.unit??"element\u0173"}`;let l=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${dl(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${i.maximum.toString()} ${a?.unit}`}case"too_small":{let o=r[i.origin]??i.origin,a=t(i.origin,tS(Number(i.minimum)),i.inclusive??!1,"bigger");if(a?.verb)return`${dl(o??i.origin??"reik\u0161m\u0117")} ${a.verb} ${i.minimum.toString()} ${a.unit??"element\u0173"}`;let l=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${dl(o??i.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${i.minimum.toString()} ${a?.unit}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${n[o.format]??i.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${i.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${i.keys.length>1?"i":"as"} rakt${i.keys.length>1?"ai":"as"}: ${$(i.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=r[i.origin]??i.origin;return`${dl(o??i.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function nS(){return{localeError:$D()}}var wD=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(i){return e[i]??null}let n={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},r={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${i.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${j(i.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${i.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${$(i.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${i.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${i.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function iS(){return{localeError:wD()}}var zD=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(i){return e[i]??null}let n={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"},r={nan:"NaN",number:"nombor"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Input tidak sah: dijangka instanceof ${i.expected}, diterima ${l}`:`Input tidak sah: dijangka ${o}, diterima ${l}`}case"invalid_value":return i.values.length===1?`Input tidak sah: dijangka ${j(i.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Terlalu besar: dijangka ${i.origin??"nilai"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${i.origin??"nilai"} adalah ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Terlalu kecil: dijangka ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${i.origin} adalah ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${n[o.format]??i.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${i.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${$(i.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${i.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${i.origin}`;default:return"Input tidak sah"}}};function rS(){return{localeError:zD()}}var TD=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(i){return e[i]??null}let n={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"},r={nan:"NaN",number:"getal"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ongeldige invoer: verwacht instanceof ${i.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${o}, ontving ${l}`}case"invalid_value":return i.values.length===1?`Ongeldige invoer: verwacht ${j(i.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin),l=i.origin==="date"?"laat":i.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${i.origin??"waarde"} ${o}${i.maximum.toString()} is`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin),l=i.origin==="date"?"vroeg":i.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${i.origin} ${o}${i.minimum.toString()} is`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${n[o.format]??i.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${i.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${i.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${i.origin}`;default:return"Ongeldige invoer"}}};function oS(){return{localeError:TD()}}var CD=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(i){return e[i]??null}let n={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\xE5de",ipv6:"IPv6-omr\xE5de",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"},r={nan:"NaN",number:"tall",array:"liste"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ugyldig input: forventet instanceof ${i.expected}, fikk ${l}`:`Ugyldig input: forventet ${o}, fikk ${l}`}case"invalid_value":return i.values.length===1?`Ugyldig verdi: forventet ${j(i.values[0])}`:`Ugyldig valg: forventet en av ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${i.origin??"value"} til \xE5 ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${i.origin} til \xE5 ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${n[o.format]??i.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${$(i.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${i.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${i.origin}`;default:return"Ugyldig input"}}};function aS(){return{localeError:CD()}}var ED=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(i){return e[i]??null}let n={regex:"giren",email:"epostag\xE2h",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\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},r={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`F\xE2sit giren: umulan instanceof ${i.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${l}`}case"invalid_value":return i.values.length===1?`F\xE2sit giren: umulan ${j(i.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${i.origin??"value"}, ${o}${i.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${i.origin}, ${o}${i.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=i;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${n[o.format]??i.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${i.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${i.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function lS(){return{localeError:ED()}}var DD=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(i){return e[i]??null}let n={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},r={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${i.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return i.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${j(i.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${$(i.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${i.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${i.maximum.toString()} \u0648\u064A`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${i.origin} \u0628\u0627\u06CC\u062F ${o}${i.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${n[o.format]??i.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${i.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${i.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${$(i.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${i.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${i.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function cS(){return{localeError:DD()}}var ID=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(i){return e[i]??null}let n={regex:"wyra\u017Cenie",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\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},r={nan:"NaN",number:"liczba",array:"tablica"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${i.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${l}`}case"invalid_value":return i.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${j(i.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${i.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${i.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${n[o.format]??i.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${i.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${i.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${i.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function sS(){return{localeError:ID()}}var AD=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(i){return e[i]??null}let n={regex:"padr\xE3o",email:"endere\xE7o 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\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o 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\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},r={nan:"NaN",number:"n\xFAmero",null:"nulo"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Tipo inv\xE1lido: esperado instanceof ${i.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${l}`}case"invalid_value":return i.values.length===1?`Entrada inv\xE1lida: esperado ${j(i.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Muito grande: esperado que ${i.origin??"valor"} tivesse ${o}${i.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${i.origin??"valor"} fosse ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Muito pequeno: esperado que ${i.origin} tivesse ${o}${i.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${i.origin} fosse ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${n[o.format]??i.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${i.divisor}`;case"unrecognized_keys":return`Chave${i.keys.length>1?"s":""} desconhecida${i.keys.length>1?"s":""}: ${$(i.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${i.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${i.origin}`;default:return"Campo inv\xE1lido"}}};function uS(){return{localeError:AD()}}var jD=()=>{let e={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function t(i){return e[i]??null}let n={regex:"intrare",email:"adres\u0103 de 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:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},r={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${o}, primit ${l}`}case"invalid_value":return i.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${j(i.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Prea mare: a\u0219teptat ca ${i.origin??"valoarea"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${i.origin??"valoarea"} s\u0103 fie ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Prea mic: a\u0219teptat ca ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${i.origin} s\u0103 fie ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${o.prefix}"`:o.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${o.suffix}"`:o.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${o.includes}"`:o.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${o.pattern}`:`Format invalid: ${n[o.format]??i.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${i.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${$(i.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${i.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${i.origin}`;default:return"Intrare invalid\u0103"}}};function dS(){return{localeError:jD()}}function fS(e,t,n,r){let i=Math.abs(e),o=i%10,a=i%100;return a>=11&&a<=19?r:o===1?t:o>=2&&o<=4?n:r}var UD=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${i.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${j(i.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);if(a){let l=Number(i.maximum),c=fS(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.maximum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);if(a){let l=Number(i.minimum),c=fS(l,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${i.minimum.toString()} ${c}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${i.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${i.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0438":""}: ${$(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${i.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function mS(){return{localeError:UD()}}var OD=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(i){return e[i]??null}let n={regex:"vnos",email:"e-po\u0161tni 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 \u010Das",date:"ISO datum",time:"ISO \u010Das",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 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},r={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${i.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${l}`}case"invalid_value":return i.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${j(i.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} imelo ${o}${i.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${i.origin??"vrednost"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${i.origin} imelo ${o}${i.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${n[o.format]??i.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${i.divisor}`;case"unrecognized_keys":return`Neprepoznan${i.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${$(i.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${i.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${i.origin}`;default:return"Neveljaven vnos"}}};function pS(){return{localeError:OD()}}var ND=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(i){return e[i]??null}let n={regex:"regulj\xE4rt 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\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},r={nan:"NaN",number:"antal",array:"lista"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${i.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${l}`}case"invalid_value":return i.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${j(i.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${i.origin??"v\xE4rdet"} att ha ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${i.origin??"v\xE4rdet"} att ha ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${n[o.format]??i.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${i.divisor}`;case"unrecognized_keys":return`${i.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${$(i.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${i.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${i.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function hS(){return{localeError:ND()}}var RD=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(i){return e[i]??null}let n={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",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 \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},r={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${i.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return i.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${j(i.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${$(i.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${i.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${o}${i.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i.origin} ${o}${i.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${i.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${i.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${$(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${i.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function gS(){return{localeError:RD()}}var MD=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(i){return e[i]??null}let n={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},r={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${i.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return i.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${j(i.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(i.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(i.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${i.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${n[o.format]??i.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${i.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${$(i.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${i.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function vS(){return{localeError:MD()}}var ZD=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(i){return e[i]??null}let n={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\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${i.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${l}`}case"invalid_value":return i.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${j(i.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${i.origin??"de\u011Fer"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${n[o.format]??i.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${i.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${i.keys.length>1?"lar":""}: ${$(i.keys,", ")}`;case"invalid_key":return`${i.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${i.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function yS(){return{localeError:ZD()}}var BD=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(i){return e[i]??null}let n={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},r={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${i.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return i.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${j(i.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${i.origin} \u0431\u0443\u0434\u0435 ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${i.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${i.keys.length>1?"\u0456":""}: ${$(i.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${i.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${i.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function vs(){return{localeError:BD()}}function bS(){return vs()}var LD=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(i){return e[i]??null}let n={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},r={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${i.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return i.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${j(i.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${$(i.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${i.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${i.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${i.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u06D2 ${o}${i.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${i.origin} \u06A9\u0627 ${o}${i.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${i.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${i.keys.length>1?"\u0632":""}: ${$(i.keys,"\u060C ")}`;case"invalid_key":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${i.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function xS(){return{localeError:LD()}}var PD=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function t(i){return e[i]??null}let n={regex:"kirish",email:"elektron pochta manzili",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 sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},r={nan:"NaN",number:"raqam",array:"massiv"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${i.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${l}`}case"invalid_value":return i.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${j(i.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${i.origin??"qiymat"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${n[o.format]??i.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${i.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${i.keys.length>1?"lar":""}: ${$(i.keys,", ")}`;case"invalid_key":return`${i.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${i.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function SS(){return{localeError:PD()}}var VD=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(i){return e[i]??null}let n={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 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\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},r={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${i.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return i.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${j(i.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${o}${i.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${i.origin??"gi\xE1 tr\u1ECB"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${a.verb} ${o}${i.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${n[o.format]??i.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${i.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${$(i.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${i.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function kS(){return{localeError:VD()}}var FD=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(i){return e[i]??null}let n={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},r={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${i.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return i.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${j(i.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${i.origin??"\u503C"} ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${i.origin} ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${n[o.format]??i.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${i.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${$(i.keys,", ")}`;case"invalid_key":return`${i.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${i.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function _S(){return{localeError:FD()}}var qD=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(i){return e[i]??null}let n={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",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 \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},r={nan:"NaN"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${i.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return i.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${j(i.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${i.origin??"\u503C"} \u61C9\u70BA ${o}${i.maximum.toString()}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${i.origin} \u61C9\u70BA ${o}${i.minimum.toString()}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${n[o.format]??i.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${i.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${i.keys.length>1?"\u5011":""}\uFF1A${$(i.keys,"\u3001")}`;case"invalid_key":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${i.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function $S(){return{localeError:qD()}}var HD=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(i){return e[i]??null}let n={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",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:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},r={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return i=>{switch(i.code){case"invalid_type":{let o=r[i.expected]??i.expected,a=U(i.input),l=r[a]??a;return/^[A-Z]/.test(i.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${i.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return i.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${j(i.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${$(i.values,"|")}`;case"too_big":{let o=i.inclusive?"<=":"<",a=t(i.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin??"iye"} ${a.verb} ${o}${i.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.maximum}`}case"too_small":{let o=i.inclusive?">=":">",a=t(i.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${i.origin} ${a.verb} ${o}${i.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${i.minimum}`}case"invalid_format":{let o=i;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${n[o.format]??i.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${i.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${$(i.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${i.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function wS(){return{localeError:HD()}}var zS,ih=Symbol("ZodOutput"),rh=Symbol("ZodInput"),ys=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function bs(){return new ys}(zS=globalThis).__zod_globalRegistry??(zS.__zod_globalRegistry=bs());var wt=globalThis.__zod_globalRegistry;function oh(e,t){return new e({type:"string",...M(t)})}function ah(e,t){return new e({type:"string",coerce:!0,...M(t)})}function xs(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function ml(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function Ss(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function ks(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function _s(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function $s(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function pl(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function ws(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function zs(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function Ts(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function Cs(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function Es(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function Ds(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function Is(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function As(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function js(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function lh(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...M(t)})}function Us(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function Os(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function Ns(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function Rs(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function Ms(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function Zs(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}var ch={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function sh(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function uh(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function dh(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function fh(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function mh(e,t){return new e({type:"number",checks:[],...M(t)})}function ph(e,t){return new e({type:"number",coerce:!0,checks:[],...M(t)})}function hh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function gh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...M(t)})}function vh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...M(t)})}function yh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...M(t)})}function bh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...M(t)})}function xh(e,t){return new e({type:"boolean",...M(t)})}function Sh(e,t){return new e({type:"boolean",coerce:!0,...M(t)})}function kh(e,t){return new e({type:"bigint",...M(t)})}function _h(e,t){return new e({type:"bigint",coerce:!0,...M(t)})}function $h(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...M(t)})}function wh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...M(t)})}function zh(e,t){return new e({type:"symbol",...M(t)})}function Th(e,t){return new e({type:"undefined",...M(t)})}function Ch(e,t){return new e({type:"null",...M(t)})}function Eh(e){return new e({type:"any"})}function Dh(e){return new e({type:"unknown"})}function Ih(e,t){return new e({type:"never",...M(t)})}function Ah(e,t){return new e({type:"void",...M(t)})}function jh(e,t){return new e({type:"date",...M(t)})}function Uh(e,t){return new e({type:"date",coerce:!0,...M(t)})}function Oh(e,t){return new e({type:"nan",...M(t)})}function Kn(e,t){return new rs({check:"less_than",...M(t),value:e,inclusive:!1})}function dn(e,t){return new rs({check:"less_than",...M(t),value:e,inclusive:!0})}function Qn(e,t){return new os({check:"greater_than",...M(t),value:e,inclusive:!1})}function Lt(e,t){return new os({check:"greater_than",...M(t),value:e,inclusive:!0})}function Bs(e){return Qn(0,e)}function Ls(e){return Kn(0,e)}function Ps(e){return dn(0,e)}function Vs(e){return Lt(0,e)}function Ji(e,t){return new Cm({check:"multiple_of",...M(t),value:e})}function Xi(e,t){return new Im({check:"max_size",...M(t),maximum:e})}function Wn(e,t){return new Am({check:"min_size",...M(t),minimum:e})}function Rr(e,t){return new jm({check:"size_equals",...M(t),size:e})}function Mr(e,t){return new Um({check:"max_length",...M(t),maximum:e})}function yi(e,t){return new Om({check:"min_length",...M(t),minimum:e})}function Zr(e,t){return new Nm({check:"length_equals",...M(t),length:e})}function ko(e,t){return new Rm({check:"string_format",format:"regex",...M(t),pattern:e})}function _o(e){return new Mm({check:"string_format",format:"lowercase",...M(e)})}function $o(e){return new Zm({check:"string_format",format:"uppercase",...M(e)})}function wo(e,t){return new Bm({check:"string_format",format:"includes",...M(t),includes:e})}function zo(e,t){return new Lm({check:"string_format",format:"starts_with",...M(t),prefix:e})}function To(e,t){return new Pm({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Fs(e,t,n){return new Vm({check:"property",property:e,schema:t,...M(n)})}function Co(e,t){return new Fm({check:"mime_type",mime:e,...M(t)})}function qn(e){return new qm({check:"overwrite",tx:e})}function Eo(e){return qn(t=>t.normalize(e))}function Do(){return qn(e=>e.trim())}function Io(){return qn(e=>e.toLowerCase())}function Ao(){return qn(e=>e.toUpperCase())}function jo(){return qn(e=>Lf(e))}function Nh(e,t,n){return new e({type:"array",element:t,...M(n)})}function YD(e,t,n){return new e({type:"union",options:t,...M(n)})}function JD(e,t,n){return new e({type:"union",options:t,inclusive:!1,...M(n)})}function XD(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...M(r)})}function KD(e,t,n){return new e({type:"intersection",left:t,right:n})}function QD(e,t,n,r){let i=n instanceof re,o=i?r:n,a=i?n:null;return new e({type:"tuple",items:t,rest:a,...M(o)})}function WD(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...M(r)})}function eI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...M(r)})}function tI(e,t,n){return new e({type:"set",valueType:t,...M(n)})}function nI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(i=>[i,i])):t;return new e({type:"enum",entries:r,...M(n)})}function iI(e,t,n){return new e({type:"enum",entries:t,...M(n)})}function rI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...M(n)})}function Rh(e,t){return new e({type:"file",...M(t)})}function oI(e,t){return new e({type:"transform",transform:t})}function aI(e,t){return new e({type:"optional",innerType:t})}function lI(e,t){return new e({type:"nullable",innerType:t})}function cI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Vf(n)}})}function sI(e,t,n){return new e({type:"nonoptional",innerType:t,...M(n)})}function uI(e,t){return new e({type:"success",innerType:t})}function dI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}function fI(e,t,n){return new e({type:"pipe",in:t,out:n})}function mI(e,t){return new e({type:"readonly",innerType:t})}function pI(e,t,n){return new e({type:"template_literal",parts:t,...M(n)})}function hI(e,t){return new e({type:"lazy",getter:t})}function gI(e,t){return new e({type:"promise",innerType:t})}function Mh(e,t,n){let r=M(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function Zh(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Bh(e,t){let n=TS(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(ho(i,r.value,n._zod.def));else{let o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(ho(o))}},e(r.value,r)),t);return n}function TS(e,t){let n=new Le({check:"custom",...M(t)});return n._zod.check=e,n}function Lh(e){let t=new Le({check:"describe"});return t._zod.onattach=[n=>{let r=wt.get(n)??{};wt.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Ph(e){let t=new Le({check:"meta"});return t._zod.onattach=[n=>{let r=wt.get(n)??{};wt.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Vh(e,t){let n=M(t),r=n.truthy??["true","1","yes","on","y","enabled"],i=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),i=i.map(f=>typeof f=="string"?f.toLowerCase():f));let o=new Set(r),a=new Set(i),l=e.Codec??ul,c=e.Boolean??cl,u=e.String??Nr,d=new u({type:"string",error:n.error}),m=new c({type:"boolean",error:n.error}),p=new l({type:"pipe",in:d,out:m,transform:((f,x)=>{let _=f;return n.case!=="sensitive"&&(_=_.toLowerCase()),o.has(_)?!0:a.has(_)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:x.value,inst:p,continue:!1}),{})}),reverseTransform:((f,x)=>f===!0?r[0]||"true":i[0]||"false"),error:n.error});return p}function Uo(e,t,n,r={}){let i=M(r),o={...M(r),check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:l=>n.test(l),...i};return n instanceof RegExp&&(o.pattern=n),new e(o)}function Ki(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??wt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ee(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;let a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let p=a.schema,f=t.processors[i.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);f(e,t,p,d)}let m=e._zod.parent;m&&(a.ref||(a.ref=m),Ee(m,t,d),t.seen.get(m).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(a.schema,c),t.io==="input"&&Pt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function Qi(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let c=r.get(l);if(c&&c!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(l,a[0])}}let i=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let m=e.external.registry.get(a[0])?.id,p=e.external.uri??(x=>x);if(m)return{ref:p(m)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${p("__shared")}#/${l}/${f}`}}if(a[1]===n)return{ref:"#"};let u=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:u+d}},o=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:c,defId:u}=i(a);l.def={...l.schema},u&&(l.defId=u);let d=l.schema;for(let m in d)delete d[m];d.$ref=c};if(e.cycles==="throw")for(let a of e.seen.entries()){let l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
72
73
 
73
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){o(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(l.cycle){o(a);continue}if(l.count>1&&e.reused==="ref"){o(a);continue}}}function yr(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let i=l=>{let u=e.seen.get(l);if(u.ref===null)return;let c=u.def??u.schema,s={...c},d=u.ref;if(u.ref=null,d){i(d);let m=e.seen.get(d),S=m.schema;if(S.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(S)):Object.assign(c,S),Object.assign(c,s),l._zod.parent===d)for(let C in c)C==="$ref"||C==="allOf"||C in s||delete c[C];if(S.$ref&&m.def)for(let C in c)C==="$ref"||C==="allOf"||C in m.def&&JSON.stringify(c[C])===JSON.stringify(m.def[C])&&delete c[C]}let f=l._zod.parent;if(f&&f!==d){i(f);let m=e.seen.get(f);if(m?.schema.$ref&&(c.$ref=m.schema.$ref,m.def))for(let S in c)S==="$ref"||S==="allOf"||S in m.def&&JSON.stringify(c[S])===JSON.stringify(m.def[S])&&delete c[S]}e.override({zodSchema:l,jsonSchema:c,path:u.path??[]})};for(let l of[...e.seen.entries()].reverse())i(l[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(l)}Object.assign(r,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&r.id===o&&delete r.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let u=l[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,a[u.defId]=u.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?r.$defs=a:r.definitions=a);try{let l=JSON.parse(JSON.stringify(r));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xi(t,"input",e.processors),output:Xi(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function vt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return vt(i.element,n);if(i.type==="set")return vt(i.valueType,n);if(i.type==="lazy")return vt(i.getter(),n);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return vt(i.innerType,n);if(i.type==="intersection")return vt(i.left,n)||vt(i.right,n);if(i.type==="record"||i.type==="map")return vt(i.keyType,n)||vt(i.valueType,n);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:vt(i.in,n)||vt(i.out,n);if(i.type==="object"){for(let r in i.shape)if(vt(i.shape[r],n))return!0;return!1}if(i.type==="union"){for(let r of i.options)if(vt(r,n))return!0;return!1}if(i.type==="tuple"){for(let r of i.items)if(vt(r,n))return!0;return!!(i.rest&&vt(i.rest,n))}return!1}var Ap=(e,t={})=>n=>{let i=vr({...n,processors:t});return ce(e,i),hr(i,e),yr(i,e)},Xi=(e,t,n={})=>i=>{let{libraryOptions:r,target:o}=i??{},a=vr({...r??{},target:o,io:t,processors:n});return ce(e,a),hr(a,e),yr(a,e)};var j2={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Cp=(e,t,n,i)=>{let r=n;r.type="string";let{minimum:o,maximum:a,format:l,patterns:u,contentEncoding:c}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof a=="number"&&(r.maxLength=a),l&&(r.format=j2[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),c&&(r.contentEncoding=c),u&&u.size>0){let s=[...u];s.length===1?r.pattern=s[0].source:s.length>1&&(r.allOf=[...s.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Np=(e,t,n,i)=>{let r=n,{minimum:o,maximum:a,format:l,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:s}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number";let d=typeof s=="number"&&s>=(o??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),m=t.target==="draft-04"||t.target==="openapi-3.0";d?m?(r.minimum=s,r.exclusiveMinimum=!0):r.exclusiveMinimum=s:typeof o=="number"&&(r.minimum=o),f?m?(r.maximum=c,r.exclusiveMaximum=!0):r.exclusiveMaximum=c:typeof a=="number"&&(r.maximum=a),typeof u=="number"&&(r.multipleOf=u)},Ip=(e,t,n,i)=>{n.type="boolean"},Zp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Mp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Rp=(e,t,n,i)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Bp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Lp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Pp=(e,t,n,i)=>{n.not={}},Vp=(e,t,n,i)=>{},qp=(e,t,n,i)=>{},Hp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Gp=(e,t,n,i)=>{let r=e._zod.def,o=la(r.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},Jp=(e,t,n,i)=>{let r=e._zod.def,o=[];for(let a of r.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},Yp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Fp=(e,t,n,i)=>{let r=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},Xp=(e,t,n,i)=>{let r=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:u}=e._zod.bag;a!==void 0&&(o.minLength=a),l!==void 0&&(o.maxLength=l),u?u.length===1?(o.contentMediaType=u[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=u.map(c=>({contentMediaType:c}))):Object.assign(r,o)},Kp=(e,t,n,i)=>{n.type="boolean"},Qp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Wp=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},eg=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},tg=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},ng=(e,t,n,i)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},rg=(e,t,n,i)=>{let r=n,o=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(r.minItems=a),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=ce(o.element,t,{...i,path:[...i.path,"items"]})},ig=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object",r.properties={};let a=o.shape;for(let c in a)r.properties[c]=ce(a[c],t,{...i,path:[...i.path,"properties",c]});let l=new Set(Object.keys(a)),u=new Set([...l].filter(c=>{let s=o.shape[c]._zod;return t.io==="input"?s.optin===void 0:s.optout===void 0}));u.size>0&&(r.required=Array.from(u)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=ce(o.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Ku=(e,t,n,i)=>{let r=e._zod.def,o=r.inclusive===!1,a=r.options.map((l,u)=>ce(l,t,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?n.oneOf=a:n.anyOf=a},og=(e,t,n,i)=>{let r=e._zod.def,o=ce(r.left,t,{...i,path:[...i.path,"allOf",0]}),a=ce(r.right,t,{...i,path:[...i.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,u=[...l(o)?o.allOf:[o],...l(a)?a.allOf:[a]];n.allOf=u},ag=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((f,m)=>ce(f,t,{...i,path:[...i.path,a,m]})),c=o.rest?ce(o.rest,t,{...i,path:[...i.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=u,c&&(r.items=c)):t.target==="openapi-3.0"?(r.items={anyOf:u},c&&r.items.anyOf.push(c),r.minItems=u.length,c||(r.maxItems=u.length)):(r.items=u,c&&(r.additionalItems=c));let{minimum:s,maximum:d}=e._zod.bag;typeof s=="number"&&(r.minItems=s),typeof d=="number"&&(r.maxItems=d)},lg=(e,t,n,i)=>{let r=n,o=e._zod.def;r.type="object";let a=o.keyType,u=a._zod.bag?.patterns;if(o.mode==="loose"&&u&&u.size>0){let s=ce(o.valueType,t,{...i,path:[...i.path,"patternProperties","*"]});r.patternProperties={};for(let d of u)r.patternProperties[d.source]=s}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=ce(o.keyType,t,{...i,path:[...i.path,"propertyNames"]})),r.additionalProperties=ce(o.valueType,t,{...i,path:[...i.path,"additionalProperties"]});let c=a._zod.values;if(c){let s=[...c].filter(d=>typeof d=="string"||typeof d=="number");s.length>0&&(r.required=s)}},ug=(e,t,n,i)=>{let r=e._zod.def,o=ce(r.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=r.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},cg=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},sg=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.default=JSON.parse(JSON.stringify(r.defaultValue))},dg=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},fg=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType;let a;try{a=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},mg=(e,t,n,i)=>{let r=e._zod.def,o=r.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?r.out:r.in:r.out;ce(a,t,i);let l=t.seen.get(e);l.ref=a},pg=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType,n.readOnly=!0},gg=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},Qu=(e,t,n,i)=>{let r=e._zod.def;ce(r.innerType,t,i);let o=t.seen.get(e);o.ref=r.innerType},vg=(e,t,n,i)=>{let r=e._zod.innerType;ce(r,t,i);let o=t.seen.get(e);o.ref=r},Xu={string:Cp,number:Np,boolean:Ip,bigint:Zp,symbol:Mp,null:Rp,undefined:Bp,void:Lp,never:Pp,any:Vp,unknown:qp,date:Hp,enum:Gp,literal:Jp,nan:Yp,template_literal:Fp,file:Xp,success:Kp,custom:Qp,function:Wp,transform:eg,map:tg,set:ng,array:rg,object:ig,union:Ku,intersection:og,tuple:ag,record:lg,nullable:ug,nonoptional:cg,default:sg,prefault:dg,catch:fg,pipe:mg,readonly:pg,promise:gg,optional:Qu,lazy:vg};function Wu(e,t){if("_idmap"in e){let i=e,r=vr({...t,processors:Xu}),o={};for(let u of i._idmap.entries()){let[c,s]=u;ce(s,r)}let a={},l={registry:i,uri:t?.uri,defs:o};r.external=l;for(let u of i._idmap.entries()){let[c,s]=u;hr(r,s),a[c]=yr(r,s)}if(Object.keys(o).length>0){let u=r.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}let n=vr({...t,processors:Xu});return ce(e,n),hr(n,e),yr(n,e)}var ec=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=vr({processors:Xu,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return ce(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),hr(this.ctx,t);let i=yr(this.ctx,t),{"~standard":r,...o}=i;return o}};var I_={};var za={};In(za,{ZodAny:()=>Bg,ZodArray:()=>qg,ZodBase64:()=>_c,ZodBase64URL:()=>Sc,ZodBigInt:()=>io,ZodBigIntFormat:()=>zc,ZodBoolean:()=>ro,ZodCIDRv4:()=>bc,ZodCIDRv6:()=>xc,ZodCUID:()=>fc,ZodCUID2:()=>mc,ZodCatch:()=>fv,ZodCodec:()=>Za,ZodCustom:()=>Ma,ZodCustomStringFormat:()=>to,ZodDate:()=>Oa,ZodDefault:()=>av,ZodDiscriminatedUnion:()=>Gg,ZodE164:()=>$c,ZodEmail:()=>cc,ZodEmoji:()=>sc,ZodEnum:()=>Wi,ZodExactOptional:()=>rv,ZodFile:()=>tv,ZodFunction:()=>Sv,ZodGUID:()=>Ta,ZodIPv4:()=>hc,ZodIPv6:()=>yc,ZodIntersection:()=>Jg,ZodJWT:()=>kc,ZodKSUID:()=>vc,ZodLazy:()=>bv,ZodLiteral:()=>ev,ZodMAC:()=>Ag,ZodMap:()=>Qg,ZodNaN:()=>pv,ZodNanoID:()=>dc,ZodNever:()=>Pg,ZodNonOptional:()=>jc,ZodNull:()=>Mg,ZodNullable:()=>ov,ZodNumber:()=>no,ZodNumberFormat:()=>ii,ZodObject:()=>Ca,ZodOptional:()=>Uc,ZodPipe:()=>Ia,ZodPrefault:()=>uv,ZodPreprocess:()=>gv,ZodPromise:()=>_v,ZodReadonly:()=>vv,ZodRecord:()=>Qi,ZodSet:()=>Wg,ZodString:()=>eo,ZodStringFormat:()=>ge,ZodSuccess:()=>dv,ZodSymbol:()=>Ig,ZodTemplateLiteral:()=>yv,ZodTransform:()=>nv,ZodTuple:()=>Fg,ZodType:()=>K,ZodULID:()=>pc,ZodURL:()=>ja,ZodUUID:()=>$n,ZodUndefined:()=>Zg,ZodUnion:()=>Na,ZodUnknown:()=>Lg,ZodVoid:()=>Vg,ZodXID:()=>gc,ZodXor:()=>Hg,_ZodString:()=>uc,_default:()=>lv,_function:()=>HS,any:()=>SS,array:()=>Aa,base64:()=>oS,base64url:()=>aS,bigint:()=>hS,boolean:()=>Ng,catch:()=>mv,check:()=>GS,cidrv4:()=>rS,cidrv6:()=>iS,codec:()=>LS,cuid:()=>F_,cuid2:()=>X_,custom:()=>JS,date:()=>kS,describe:()=>YS,discriminatedUnion:()=>US,e164:()=>lS,email:()=>R_,emoji:()=>J_,enum:()=>Dc,exactOptional:()=>iv,file:()=>ZS,float32:()=>mS,float64:()=>pS,function:()=>HS,guid:()=>B_,hash:()=>fS,hex:()=>dS,hostname:()=>sS,httpUrl:()=>G_,instanceof:()=>XS,int:()=>ac,int32:()=>gS,int64:()=>yS,intersection:()=>Yg,invertCodec:()=>PS,ipv4:()=>eS,ipv6:()=>nS,json:()=>QS,jwt:()=>uS,keyof:()=>zS,ksuid:()=>W_,lazy:()=>xv,literal:()=>IS,looseObject:()=>DS,looseRecord:()=>OS,mac:()=>tS,map:()=>AS,meta:()=>FS,nan:()=>BS,nanoid:()=>Y_,nativeEnum:()=>NS,never:()=>wc,nonoptional:()=>sv,null:()=>Rg,nullable:()=>Ea,nullish:()=>MS,number:()=>Cg,object:()=>wS,optional:()=>Da,partialRecord:()=>jS,pipe:()=>lc,prefault:()=>cv,preprocess:()=>WS,promise:()=>qS,readonly:()=>hv,record:()=>Kg,refine:()=>$v,set:()=>CS,strictObject:()=>TS,string:()=>wa,stringFormat:()=>cS,stringbool:()=>KS,success:()=>RS,superRefine:()=>kv,symbol:()=>xS,templateLiteral:()=>VS,transform:()=>Ec,tuple:()=>Xg,uint32:()=>vS,uint64:()=>bS,ulid:()=>K_,undefined:()=>_S,union:()=>Tc,unknown:()=>ri,url:()=>H_,uuid:()=>L_,uuidv4:()=>P_,uuidv6:()=>V_,uuidv7:()=>q_,void:()=>$S,xid:()=>Q_,xor:()=>ES});var tc={};In(tc,{endsWith:()=>Pi,gt:()=>_n,gte:()=>gt,includes:()=>Bi,length:()=>ni,lowercase:()=>Mi,lt:()=>xn,lte:()=>Ct,maxLength:()=>ti,maxSize:()=>gr,mime:()=>Vi,minLength:()=>Mn,minSize:()=>Sn,multipleOf:()=>pr,negative:()=>Gu,nonnegative:()=>Yu,nonpositive:()=>Ju,normalize:()=>qi,overwrite:()=>fn,positive:()=>Hu,property:()=>Fu,regex:()=>Zi,size:()=>ei,slugify:()=>Yi,startsWith:()=>Li,toLowerCase:()=>Gi,toUpperCase:()=>Ji,trim:()=>Hi,uppercase:()=>Ri});var Ki={};In(Ki,{ZodISODate:()=>rc,ZodISODateTime:()=>nc,ZodISODuration:()=>oc,ZodISOTime:()=>ic,date:()=>yg,datetime:()=>hg,duration:()=>xg,time:()=>bg});var nc=y("ZodISODateTime",(e,t)=>{Yf.init(e,t),ge.init(e,t)});function hg(e){return Qm(nc,e)}var rc=y("ZodISODate",(e,t)=>{Ff.init(e,t),ge.init(e,t)});function yg(e){return Wm(rc,e)}var ic=y("ZodISOTime",(e,t)=>{Xf.init(e,t),ge.init(e,t)});function bg(e){return ep(ic,e)}var oc=y("ZodISODuration",(e,t)=>{Kf.init(e,t),ge.init(e,t)});function xg(e){return tp(oc,e)}var Z_=(e,t)=>{fa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>pa(e,n)},flatten:{value:n=>ma(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Di,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Di,2)}},isEmpty:{get(){return e.issues.length===0}}})},A2=y("ZodError",Z_),$t=y("ZodError",Z_,{Parent:Error});var _g=ji($t),Sg=Oi($t),$g=Ai($t),kg=Ci($t),zg=Wl($t),wg=eu($t),Tg=tu($t),Dg=nu($t),Eg=ru($t),Ug=iu($t),jg=ou($t),Og=au($t);var M_=new WeakMap;function Ua(e,t,n){let i=Object.getPrototypeOf(e),r=M_.get(i);if(r||(r=new Set,M_.set(i,r)),!r.has(t)){r.add(t);for(let o in n){let a=n[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var K=y("ZodType",(e,t)=>(G.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xi(e,"input"),output:Xi(e,"output")}}),e.toJSONSchema=Ap(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,i)=>_g(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>$g(e,n,i),e.parseAsync=async(n,i)=>Sg(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>kg(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>zg(e,n,i),e.decode=(n,i)=>wg(e,n,i),e.encodeAsync=async(n,i)=>Tg(e,n,i),e.decodeAsync=async(n,i)=>Dg(e,n,i),e.safeEncode=(n,i)=>Eg(e,n,i),e.safeDecode=(n,i)=>Ug(e,n,i),e.safeEncodeAsync=async(n,i)=>jg(e,n,i),e.safeDecodeAsync=async(n,i)=>Og(e,n,i),Ua(e,"ZodType",{check(...n){let i=this.def;return this.clone(D.mergeDefs(i,{checks:[...i.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,i){return mt(this,n,i)},brand(){return this},register(n,i){return n.add(this,i),this},refine(n,i){return this.check($v(n,i))},superRefine(n,i){return this.check(kv(n,i))},overwrite(n){return this.check(fn(n))},optional(){return Da(this)},exactOptional(){return iv(this)},nullable(){return Ea(this)},nullish(){return Da(Ea(this))},nonoptional(n){return sv(this,n)},array(){return Aa(this)},or(n){return Tc([this,n])},and(n){return Yg(this,n)},transform(n){return lc(this,Ec(n))},default(n){return lv(this,n)},prefault(n){return cv(this,n)},catch(n){return mv(this,n)},pipe(n){return lc(this,n)},readonly(){return hv(this)},describe(n){let i=this.clone();return nt.add(i,{description:n}),i},meta(...n){if(n.length===0)return nt.get(this);let i=this.clone();return nt.add(i,n[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return nt.get(e)?.description},configurable:!0}),e)),uc=y("_ZodString",(e,t)=>{Wr.init(e,t),K.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Cp(e,i,r,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Ua(e,"_ZodString",{regex(...i){return this.check(Zi(...i))},includes(...i){return this.check(Bi(...i))},startsWith(...i){return this.check(Li(...i))},endsWith(...i){return this.check(Pi(...i))},min(...i){return this.check(Mn(...i))},max(...i){return this.check(ti(...i))},length(...i){return this.check(ni(...i))},nonempty(...i){return this.check(Mn(1,...i))},lowercase(i){return this.check(Mi(i))},uppercase(i){return this.check(Ri(i))},trim(){return this.check(Hi())},normalize(...i){return this.check(qi(...i))},toLowerCase(){return this.check(Gi())},toUpperCase(){return this.check(Ji())},slugify(){return this.check(Yi())}})}),eo=y("ZodString",(e,t)=>{Wr.init(e,t),uc.init(e,t),e.email=n=>e.check(zu(cc,n)),e.url=n=>e.check(ka(ja,n)),e.jwt=n=>e.check(qu(kc,n)),e.emoji=n=>e.check(Uu(sc,n)),e.guid=n=>e.check($a(Ta,n)),e.uuid=n=>e.check(wu($n,n)),e.uuidv4=n=>e.check(Tu($n,n)),e.uuidv6=n=>e.check(Du($n,n)),e.uuidv7=n=>e.check(Eu($n,n)),e.nanoid=n=>e.check(ju(dc,n)),e.guid=n=>e.check($a(Ta,n)),e.cuid=n=>e.check(Ou(fc,n)),e.cuid2=n=>e.check(Au(mc,n)),e.ulid=n=>e.check(Cu(pc,n)),e.base64=n=>e.check(Lu(_c,n)),e.base64url=n=>e.check(Pu(Sc,n)),e.xid=n=>e.check(Nu(gc,n)),e.ksuid=n=>e.check(Iu(vc,n)),e.ipv4=n=>e.check(Zu(hc,n)),e.ipv6=n=>e.check(Mu(yc,n)),e.cidrv4=n=>e.check(Ru(bc,n)),e.cidrv6=n=>e.check(Bu(xc,n)),e.e164=n=>e.check(Vu($c,n)),e.datetime=n=>e.check(hg(n)),e.date=n=>e.check(yg(n)),e.time=n=>e.check(bg(n)),e.duration=n=>e.check(xg(n))});function wa(e){return Ym(eo,e)}var ge=y("ZodStringFormat",(e,t)=>{pe.init(e,t),uc.init(e,t)}),cc=y("ZodEmail",(e,t)=>{Rf.init(e,t),ge.init(e,t)});function R_(e){return zu(cc,e)}var Ta=y("ZodGUID",(e,t)=>{Zf.init(e,t),ge.init(e,t)});function B_(e){return $a(Ta,e)}var $n=y("ZodUUID",(e,t)=>{Mf.init(e,t),ge.init(e,t)});function L_(e){return wu($n,e)}function P_(e){return Tu($n,e)}function V_(e){return Du($n,e)}function q_(e){return Eu($n,e)}var ja=y("ZodURL",(e,t)=>{Bf.init(e,t),ge.init(e,t)});function H_(e){return ka(ja,e)}function G_(e){return ka(ja,{protocol:At.httpProtocol,hostname:At.domain,...D.normalizeParams(e)})}var sc=y("ZodEmoji",(e,t)=>{Lf.init(e,t),ge.init(e,t)});function J_(e){return Uu(sc,e)}var dc=y("ZodNanoID",(e,t)=>{Pf.init(e,t),ge.init(e,t)});function Y_(e){return ju(dc,e)}var fc=y("ZodCUID",(e,t)=>{Vf.init(e,t),ge.init(e,t)});function F_(e){return Ou(fc,e)}var mc=y("ZodCUID2",(e,t)=>{qf.init(e,t),ge.init(e,t)});function X_(e){return Au(mc,e)}var pc=y("ZodULID",(e,t)=>{Hf.init(e,t),ge.init(e,t)});function K_(e){return Cu(pc,e)}var gc=y("ZodXID",(e,t)=>{Gf.init(e,t),ge.init(e,t)});function Q_(e){return Nu(gc,e)}var vc=y("ZodKSUID",(e,t)=>{Jf.init(e,t),ge.init(e,t)});function W_(e){return Iu(vc,e)}var hc=y("ZodIPv4",(e,t)=>{Qf.init(e,t),ge.init(e,t)});function eS(e){return Zu(hc,e)}var Ag=y("ZodMAC",(e,t)=>{em.init(e,t),ge.init(e,t)});function tS(e){return Xm(Ag,e)}var yc=y("ZodIPv6",(e,t)=>{Wf.init(e,t),ge.init(e,t)});function nS(e){return Mu(yc,e)}var bc=y("ZodCIDRv4",(e,t)=>{tm.init(e,t),ge.init(e,t)});function rS(e){return Ru(bc,e)}var xc=y("ZodCIDRv6",(e,t)=>{nm.init(e,t),ge.init(e,t)});function iS(e){return Bu(xc,e)}var _c=y("ZodBase64",(e,t)=>{im.init(e,t),ge.init(e,t)});function oS(e){return Lu(_c,e)}var Sc=y("ZodBase64URL",(e,t)=>{om.init(e,t),ge.init(e,t)});function aS(e){return Pu(Sc,e)}var $c=y("ZodE164",(e,t)=>{am.init(e,t),ge.init(e,t)});function lS(e){return Vu($c,e)}var kc=y("ZodJWT",(e,t)=>{lm.init(e,t),ge.init(e,t)});function uS(e){return qu(kc,e)}var to=y("ZodCustomStringFormat",(e,t)=>{um.init(e,t),ge.init(e,t)});function cS(e,t,n={}){return Fi(to,e,t,n)}function sS(e){return Fi(to,"hostname",At.hostname,e)}function dS(e){return Fi(to,"hex",At.hex,e)}function fS(e,t){let n=t?.enc??"hex",i=`${e}_${n}`,r=At[i];if(!r)throw new Error(`Unrecognized hash format: ${i}`);return Fi(to,i,r,t)}var no=y("ZodNumber",(e,t)=>{gu.init(e,t),K.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Np(e,i,r,o),Ua(e,"ZodNumber",{gt(i,r){return this.check(_n(i,r))},gte(i,r){return this.check(gt(i,r))},min(i,r){return this.check(gt(i,r))},lt(i,r){return this.check(xn(i,r))},lte(i,r){return this.check(Ct(i,r))},max(i,r){return this.check(Ct(i,r))},int(i){return this.check(ac(i))},safe(i){return this.check(ac(i))},positive(i){return this.check(_n(0,i))},nonnegative(i){return this.check(gt(0,i))},negative(i){return this.check(xn(0,i))},nonpositive(i){return this.check(Ct(0,i))},multipleOf(i,r){return this.check(pr(i,r))},step(i,r){return this.check(pr(i,r))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Cg(e){return np(no,e)}var ii=y("ZodNumberFormat",(e,t)=>{cm.init(e,t),no.init(e,t)});function ac(e){return ip(ii,e)}function mS(e){return op(ii,e)}function pS(e){return ap(ii,e)}function gS(e){return lp(ii,e)}function vS(e){return up(ii,e)}var ro=y("ZodBoolean",(e,t)=>{ya.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ip(e,n,i,r)});function Ng(e){return cp(ro,e)}var io=y("ZodBigInt",(e,t)=>{vu.init(e,t),K.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Zp(e,i,r,o),e.gte=(i,r)=>e.check(gt(i,r)),e.min=(i,r)=>e.check(gt(i,r)),e.gt=(i,r)=>e.check(_n(i,r)),e.gte=(i,r)=>e.check(gt(i,r)),e.min=(i,r)=>e.check(gt(i,r)),e.lt=(i,r)=>e.check(xn(i,r)),e.lte=(i,r)=>e.check(Ct(i,r)),e.max=(i,r)=>e.check(Ct(i,r)),e.positive=i=>e.check(_n(BigInt(0),i)),e.negative=i=>e.check(xn(BigInt(0),i)),e.nonpositive=i=>e.check(Ct(BigInt(0),i)),e.nonnegative=i=>e.check(gt(BigInt(0),i)),e.multipleOf=(i,r)=>e.check(pr(i,r));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function hS(e){return dp(io,e)}var zc=y("ZodBigIntFormat",(e,t)=>{sm.init(e,t),io.init(e,t)});function yS(e){return mp(zc,e)}function bS(e){return pp(zc,e)}var Ig=y("ZodSymbol",(e,t)=>{dm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Mp(e,n,i,r)});function xS(e){return gp(Ig,e)}var Zg=y("ZodUndefined",(e,t)=>{fm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Bp(e,n,i,r)});function _S(e){return vp(Zg,e)}var Mg=y("ZodNull",(e,t)=>{mm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Rp(e,n,i,r)});function Rg(e){return hp(Mg,e)}var Bg=y("ZodAny",(e,t)=>{pm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Vp(e,n,i,r)});function SS(){return yp(Bg)}var Lg=y("ZodUnknown",(e,t)=>{gm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>qp(e,n,i,r)});function ri(){return bp(Lg)}var Pg=y("ZodNever",(e,t)=>{vm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Pp(e,n,i,r)});function wc(e){return xp(Pg,e)}var Vg=y("ZodVoid",(e,t)=>{hm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Lp(e,n,i,r)});function $S(e){return _p(Vg,e)}var Oa=y("ZodDate",(e,t)=>{ym.init(e,t),K.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Hp(e,i,r,o),e.min=(i,r)=>e.check(gt(i,r)),e.max=(i,r)=>e.check(Ct(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function kS(e){return Sp(Oa,e)}var qg=y("ZodArray",(e,t)=>{bm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>rg(e,n,i,r),e.element=t.element,Ua(e,"ZodArray",{min(n,i){return this.check(Mn(n,i))},nonempty(n){return this.check(Mn(1,n))},max(n,i){return this.check(ti(n,i))},length(n,i){return this.check(ni(n,i))},unwrap(){return this.element}})});function Aa(e,t){return zp(qg,e,t)}function zS(e){let t=e._zod.def.shape;return Dc(Object.keys(t))}var Ca=y("ZodObject",(e,t)=>{xm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ig(e,n,i,r),D.defineLazy(e,"shape",()=>t.shape),Ua(e,"ZodObject",{keyof(){return Dc(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:ri()})},loose(){return this.clone({...this._zod.def,catchall:ri()})},strict(){return this.clone({...this._zod.def,catchall:wc()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return D.extend(this,n)},safeExtend(n){return D.safeExtend(this,n)},merge(n){return D.merge(this,n)},pick(n){return D.pick(this,n)},omit(n){return D.omit(this,n)},partial(...n){return D.partial(Uc,this,n[0])},required(...n){return D.required(jc,this,n[0])}})});function wS(e,t){let n={type:"object",shape:e??{},...D.normalizeParams(t)};return new Ca(n)}function TS(e,t){return new Ca({type:"object",shape:e,catchall:wc(),...D.normalizeParams(t)})}function DS(e,t){return new Ca({type:"object",shape:e,catchall:ri(),...D.normalizeParams(t)})}var Na=y("ZodUnion",(e,t)=>{ba.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ku(e,n,i,r),e.options=t.options});function Tc(e,t){return new Na({type:"union",options:e,...D.normalizeParams(t)})}var Hg=y("ZodXor",(e,t)=>{Na.init(e,t),_m.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Ku(e,n,i,r),e.options=t.options});function ES(e,t){return new Hg({type:"union",options:e,inclusive:!1,...D.normalizeParams(t)})}var Gg=y("ZodDiscriminatedUnion",(e,t)=>{Na.init(e,t),Sm.init(e,t)});function US(e,t,n){return new Gg({type:"union",options:t,discriminator:e,...D.normalizeParams(n)})}var Jg=y("ZodIntersection",(e,t)=>{$m.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>og(e,n,i,r)});function Yg(e,t){return new Jg({type:"intersection",left:e,right:t})}var Fg=y("ZodTuple",(e,t)=>{hu.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ag(e,n,i,r),e.rest=n=>e.clone({...e._zod.def,rest:n})});function Xg(e,t,n){let i=t instanceof G,r=i?n:t,o=i?t:null;return new Fg({type:"tuple",items:e,rest:o,...D.normalizeParams(r)})}var Qi=y("ZodRecord",(e,t)=>{km.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>lg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType});function Kg(e,t,n){return!t||!t._zod?new Qi({type:"record",keyType:wa(),valueType:e,...D.normalizeParams(t)}):new Qi({type:"record",keyType:e,valueType:t,...D.normalizeParams(n)})}function jS(e,t,n){let i=mt(e);return i._zod.values=void 0,new Qi({type:"record",keyType:i,valueType:t,...D.normalizeParams(n)})}function OS(e,t,n){return new Qi({type:"record",keyType:e,valueType:t,mode:"loose",...D.normalizeParams(n)})}var Qg=y("ZodMap",(e,t)=>{zm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>tg(e,n,i,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Sn(...n)),e.nonempty=n=>e.check(Sn(1,n)),e.max=(...n)=>e.check(gr(...n)),e.size=(...n)=>e.check(ei(...n))});function AS(e,t,n){return new Qg({type:"map",keyType:e,valueType:t,...D.normalizeParams(n)})}var Wg=y("ZodSet",(e,t)=>{wm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ng(e,n,i,r),e.min=(...n)=>e.check(Sn(...n)),e.nonempty=n=>e.check(Sn(1,n)),e.max=(...n)=>e.check(gr(...n)),e.size=(...n)=>e.check(ei(...n))});function CS(e,t){return new Wg({type:"set",valueType:e,...D.normalizeParams(t)})}var Wi=y("ZodEnum",(e,t)=>{Tm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(i,r,o)=>Gp(e,i,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let o={};for(let a of i)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Wi({...t,checks:[],...D.normalizeParams(r),entries:o})},e.exclude=(i,r)=>{let o={...t.entries};for(let a of i)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Wi({...t,checks:[],...D.normalizeParams(r),entries:o})}});function Dc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Wi({type:"enum",entries:n,...D.normalizeParams(t)})}function NS(e,t){return new Wi({type:"enum",entries:e,...D.normalizeParams(t)})}var ev=y("ZodLiteral",(e,t)=>{Dm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Jp(e,n,i,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function IS(e,t){return new ev({type:"literal",values:Array.isArray(e)?e:[e],...D.normalizeParams(t)})}var tv=y("ZodFile",(e,t)=>{Em.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Xp(e,n,i,r),e.min=(n,i)=>e.check(Sn(n,i)),e.max=(n,i)=>e.check(gr(n,i)),e.mime=(n,i)=>e.check(Vi(Array.isArray(n)?n:[n],i))});function ZS(e){return wp(tv,e)}var nv=y("ZodTransform",(e,t)=>{Um.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>eg(e,n,i,r),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new cr(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(D.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(D.issue(a))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=r,n.fallback=!0,n)}});function Ec(e){return new nv({type:"transform",transform:e})}var Uc=y("ZodOptional",(e,t)=>{yu.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qu(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Da(e){return new Uc({type:"optional",innerType:e})}var rv=y("ZodExactOptional",(e,t)=>{jm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qu(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function iv(e){return new rv({type:"optional",innerType:e})}var ov=y("ZodNullable",(e,t)=>{Om.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>ug(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function Ea(e){return new ov({type:"nullable",innerType:e})}function MS(e){return Da(Ea(e))}var av=y("ZodDefault",(e,t)=>{Am.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>sg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function lv(e,t){return new av({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():D.shallowClone(t)}})}var uv=y("ZodPrefault",(e,t)=>{Cm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>dg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function cv(e,t){return new uv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():D.shallowClone(t)}})}var jc=y("ZodNonOptional",(e,t)=>{Nm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>cg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function sv(e,t){return new jc({type:"nonoptional",innerType:e,...D.normalizeParams(t)})}var dv=y("ZodSuccess",(e,t)=>{Im.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Kp(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function RS(e){return new dv({type:"success",innerType:e})}var fv=y("ZodCatch",(e,t)=>{Zm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>fg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function mv(e,t){return new fv({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var pv=y("ZodNaN",(e,t)=>{Mm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Yp(e,n,i,r)});function BS(e){return kp(pv,e)}var Ia=y("ZodPipe",(e,t)=>{bu.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>mg(e,n,i,r),e.in=t.in,e.out=t.out});function lc(e,t){return new Ia({type:"pipe",in:e,out:t})}var Za=y("ZodCodec",(e,t)=>{Ia.init(e,t),xa.init(e,t)});function LS(e,t,n){return new Za({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function PS(e){let t=e._zod.def;return new Za({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var gv=y("ZodPreprocess",(e,t)=>{Ia.init(e,t),Rm.init(e,t)}),vv=y("ZodReadonly",(e,t)=>{Bm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>pg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function hv(e){return new vv({type:"readonly",innerType:e})}var yv=y("ZodTemplateLiteral",(e,t)=>{Lm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Fp(e,n,i,r)});function VS(e,t){return new yv({type:"template_literal",parts:e,...D.normalizeParams(t)})}var bv=y("ZodLazy",(e,t)=>{qm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>vg(e,n,i,r),e.unwrap=()=>e._zod.def.getter()});function xv(e){return new bv({type:"lazy",getter:e})}var _v=y("ZodPromise",(e,t)=>{Vm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>gg(e,n,i,r),e.unwrap=()=>e._zod.def.innerType});function qS(e){return new _v({type:"promise",innerType:e})}var Sv=y("ZodFunction",(e,t)=>{Pm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Wp(e,n,i,r)});function HS(e){return new Sv({type:"function",input:Array.isArray(e?.input)?Xg(e?.input):e?.input??Aa(ri()),output:e?.output??ri()})}var Ma=y("ZodCustom",(e,t)=>{Hm.init(e,t),K.init(e,t),e._zod.processJSONSchema=(n,i,r)=>Qp(e,n,i,r)});function GS(e){let t=new xe({check:"custom"});return t._zod.check=e,t}function JS(e,t){return Tp(Ma,e??(()=>!0),t)}function $v(e,t={}){return Dp(Ma,e,t)}function kv(e,t){return Ep(e,t)}var YS=Up,FS=jp;function XS(e,t={}){let n=new Ma({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...D.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:n,path:[...n._zod.def.path??[]]})},n}var KS=(...e)=>Op({Codec:Za,Boolean:ro,String:eo},...e);function QS(e){let t=xv(()=>Tc([wa(e),Cg(),Ng(),Rg(),Aa(t),Kg(wa(),t)]));return t}function WS(e,t){return new gv({type:"pipe",in:Ec(e),out:t})}var N2={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 I2(e){Ze({customError:e})}function Z2(){return Ze().customError}var zv;zv||(zv={});var I={...za,...tc,iso:Ki},M2=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function R2(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function B2(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let i=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===i){let r=n[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function e0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return I.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return I.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=B2(r,t),a=dt(o,t);return t.refs.set(r,a),t.processing.delete(r),a}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return I.null();if(r.length===0)return I.never();if(r.length===1)return I.literal(r[0]);if(r.every(a=>typeof a=="string"))return I.enum(r);let o=r.map(a=>I.literal(a));return o.length<2?o[0]:I.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return I.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(o=>{let a={...e,type:o};return e0(a,t)});return r.length===0?I.never():r.length===1?r[0]:I.union(r)}if(!n)return I.any();let i;switch(n){case"string":{let r=I.string();if(e.format){let o=e.format;o==="email"?r=r.check(I.email()):o==="uri"||o==="uri-reference"?r=r.check(I.url()):o==="uuid"||o==="guid"?r=r.check(I.uuid()):o==="date-time"?r=r.check(I.iso.datetime()):o==="date"?r=r.check(I.iso.date()):o==="time"?r=r.check(I.iso.time()):o==="duration"?r=r.check(I.iso.duration()):o==="ipv4"?r=r.check(I.ipv4()):o==="ipv6"?r=r.check(I.ipv6()):o==="mac"?r=r.check(I.mac()):o==="cidr"?r=r.check(I.cidrv4()):o==="cidr-v6"?r=r.check(I.cidrv6()):o==="base64"?r=r.check(I.base64()):o==="base64url"?r=r.check(I.base64url()):o==="e164"?r=r.check(I.e164()):o==="jwt"?r=r.check(I.jwt()):o==="emoji"?r=r.check(I.emoji()):o==="nanoid"?r=r.check(I.nanoid()):o==="cuid"?r=r.check(I.cuid()):o==="cuid2"?r=r.check(I.cuid2()):o==="ulid"?r=r.check(I.ulid()):o==="xid"?r=r.check(I.xid()):o==="ksuid"&&(r=r.check(I.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),i=r;break}case"number":case"integer":{let r=n==="integer"?I.number().int():I.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),i=r;break}case"boolean":{i=I.boolean();break}case"null":{i=I.null();break}case"object":{let r={},o=e.properties||{},a=new Set(e.required||[]);for(let[u,c]of Object.entries(o)){let s=dt(c,t);r[u]=a.has(u)?s:s.optional()}if(e.propertyNames){let u=dt(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?dt(e.additionalProperties,t):I.any();if(Object.keys(r).length===0){i=I.record(u,c);break}let s=I.object(r).passthrough(),d=I.looseRecord(u,c);i=I.intersection(s,d);break}if(e.patternProperties){let u=e.patternProperties,c=Object.keys(u),s=[];for(let f of c){let m=dt(u[f],t),S=I.string().regex(new RegExp(f));s.push(I.looseRecord(S,m))}let d=[];if(Object.keys(r).length>0&&d.push(I.object(r).passthrough()),d.push(...s),d.length===0)i=I.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=I.intersection(d[0],d[1]);for(let m=2;m<d.length;m++)f=I.intersection(f,d[m]);i=f}break}let l=I.object(r);e.additionalProperties===!1?i=l.strict():typeof e.additionalProperties=="object"?i=l.catchall(dt(e.additionalProperties,t)):i=l.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let a=r.map(u=>dt(u,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?dt(o,t):void 0;l?i=I.tuple(a).rest(l):i=I.tuple(a),typeof e.minItems=="number"&&(i=i.check(I.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(I.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(u=>dt(u,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?dt(e.additionalItems,t):void 0;l?i=I.tuple(a).rest(l):i=I.tuple(a),typeof e.minItems=="number"&&(i=i.check(I.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(I.maxLength(e.maxItems)))}else if(o!==void 0){let a=dt(o,t),l=I.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),i=l}else i=I.array(I.any());break}default:throw new Error(`Unsupported type: ${n}`)}return i}function dt(e,t){if(typeof e=="boolean")return e?I.any():I.never();let n=e0(e,t),i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>dt(c,t)),u=I.union(l);n=i?I.intersection(n,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>dt(c,t)),u=I.xor(l);n=i?I.intersection(n,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=i?n:I.any();else{let l=i?n:dt(e.allOf[0],t),u=i?0:1;for(let c=u;c<e.allOf.length;c++)l=I.intersection(l,dt(e.allOf[c],t));n=l}e.nullable===!0&&t.version==="openapi-3.0"&&(n=I.nullable(n)),e.readOnly===!0&&(n=I.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of o)l in e&&(r[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(r[l]=e[l]);for(let l of Object.keys(e))M2.has(l)||(r[l]=e[l]);return Object.keys(r).length>0&&t.registry.add(n,r),e.description&&(n=n.describe(e.description)),n}function t0(e,t){if(typeof e=="boolean")return e?I.any():I.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let i=R2(n,t?.defaultTarget),r=n.$defs||n.definitions||{},o={version:i,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??nt};return dt(n,o)}var wv={};In(wv,{bigint:()=>q2,boolean:()=>V2,date:()=>H2,number:()=>P2,string:()=>L2});function L2(e){return Fm(eo,e)}function P2(e){return rp(no,e)}function V2(e){return sp(ro,e)}function q2(e){return fp(io,e)}function H2(e){return $p(Oa,e)}Ze(xu());var G2=A.object({command:A.string().min(1),args:A.array(A.string()).optional(),env:A.record(A.string(),A.string()).optional(),cwd:A.string().optional(),disabled:A.boolean().optional(),disabledTools:A.array(A.string()).optional()}),J2=A.object({url:A.string().min(1).url(),headers:A.record(A.string(),A.string()).optional(),disabled:A.boolean().optional(),disabledTools:A.array(A.string()).optional()}),Y2=A.union([G2,J2]),bC=A.record(A.string(),Y2);function n0(e){return"command"in e}var Ra={kind:"python",venvDir:"",interpreter:"",script:"",packageName:"",command:"",args:[],url:"",headers:{},env:{},cwd:""};function Oc(e,t){let n=e.replace(/[\\/]+$/,"");return t==="win32"?`${n}\\Scripts\\python.exe`:`${n}/bin/python`}function r0(e){let t=e.split(/[\\/]/);return t[t.length-1]??""}function F2(e){let t=e.split(/[\\/]/);if(t.length<3)return;let n=t[t.length-2]?.toLowerCase();if(n!=="scripts"&&n!=="bin")return;let i=e.includes("\\")?"\\":"/";return t.slice(0,-2).join(i)}function X2(e){return/^python(3(\.\d+)?)?(\.exe)?$/i.test(r0(e))}function K2(e){return/^npx(\.cmd|\.exe)?$/i.test(r0(e))}function Tv(e){if(!n0(e))return{...Ra,kind:"http",url:e.url,headers:e.headers??{}};let t={...Ra,kind:"custom",command:e.command,args:e.args??[],env:e.env??{},cwd:e.cwd??""};if(K2(e.command)){let n=[...e.args??[]],i=[];for(;n.length>0&&n[0]?.startsWith("-")===!0;)i.push(n.shift());let r=n.shift();return r!==void 0&&i.every(o=>o==="-y"||o==="--yes")?{...t,kind:"npx",packageName:r,args:n}:t}if(X2(e.command)){let n=[...e.args??[]],i=n.shift();if(i!==void 0)return{...t,kind:"python",interpreter:e.command,venvDir:F2(e.command)??"",script:i,args:n}}return t}function Ac(e,t,n){let i={...n?.disabled!==void 0?{disabled:n.disabled}:{},...n?.disabledTools!==void 0?{disabledTools:n.disabledTools}:{}};if(e.kind==="http")return{url:e.url.trim(),...Object.keys(e.headers).length>0?{headers:e.headers}:{},...i};let r=e.args.filter(l=>l.trim().length>0),o,a;return e.kind==="python"?(o=e.interpreter.trim().length>0?e.interpreter.trim():Oc(e.venvDir.trim(),t),a=[e.script.trim(),...r]):e.kind==="npx"?(o="npx",a=["-y",e.packageName.trim(),...r]):(o=e.command.trim(),a=r),{command:o,...a.length>0?{args:a}:{},...Object.keys(e.env).length>0?{env:e.env}:{},...e.cwd.trim().length>0?{cwd:e.cwd.trim()}:{},...i}}function Dv(e,t){let n={};switch(e.trim().length===0?n.name="Give the server a name.":/[^\w.-]/.test(e.trim())&&(n.name="Use letters, numbers, dots, dashes and underscores \u2014 the name prefixes every tool."),t.kind){case"python":t.interpreter.trim().length===0&&t.venvDir.trim().length===0&&(n.venvDir="Point at the virtualenv folder, or set the interpreter directly."),t.script.trim().length===0&&(n.script="Point at the server script.");break;case"npx":t.packageName.trim().length===0&&(n.packageName="Name the npm package.");break;case"custom":t.command.trim().length===0&&(n.command="Name the executable to run.");break;case"http":if(t.url.trim().length===0)n.url="Enter the server URL.";else try{new URL(t.url.trim())}catch{n.url="Must be a valid URL."}break}return n}var Cc=[{id:"openai",label:"OpenAI",wireFormat:"openai",baseUrl:"https://api.openai.com/v1"},{id:"deepseek",label:"DeepSeek",wireFormat:"openai",baseUrl:"https://api.deepseek.com/v1"},{id:"anthropic",label:"Anthropic",wireFormat:"anthropic",baseUrl:"https://api.anthropic.com/v1"},{id:"gemini",label:"Google Gemini",wireFormat:"gemini",baseUrl:"https://generativelanguage.googleapis.com/v1beta"},{id:"custom",label:"Custom (OpenAI-compatible)",wireFormat:"openai",baseUrl:""},{id:"custom-anthropic",label:"Custom (Anthropic-compatible)",wireFormat:"anthropic",baseUrl:""},{id:"custom-gemini",label:"Custom (Gemini-compatible)",wireFormat:"gemini",baseUrl:""}];var Q2=A.enum(["openai","anthropic","gemini"]),W2=A.object({caFile:A.string().optional(),certFile:A.string().optional(),keyFile:A.string().optional(),pfxFile:A.string().optional(),passphraseRef:A.string().optional(),rejectUnauthorized:A.boolean().optional(),useGlobalClientCertificate:A.boolean().optional()}),eD=A.object({certDir:A.string().min(1).optional(),certFile:A.string().optional(),keyFile:A.string().optional(),pfxFile:A.string().optional(),caFile:A.string().optional(),passphraseRef:A.string().optional()}),tD=A.object({tokenUrl:A.string().url("Must be a valid URL").optional(),grantType:A.string().optional(),clientId:A.string().optional(),clientSecretRef:A.string().optional(),scope:A.string().optional(),extraTokenParams:A.record(A.string(),A.string()).optional(),tokenHeaderName:A.string().optional(),tokenHeaderPrefix:A.string().optional(),tokenPath:A.string().optional(),expiresInPath:A.string().optional(),fallbackExpirySeconds:A.number().int().positive().optional(),refreshSkewSeconds:A.number().int().nonnegative().optional(),extraHeaders:A.record(A.string(),A.string()).optional()}),nD=A.discriminatedUnion("type",[A.object({type:A.literal("none")}),A.object({type:A.literal("apiKey"),apiKeyRef:A.string().min(1)}),A.object({type:A.literal("apigeeMtls"),certs:eD,apigee:tD})]),i0=A.object({id:A.string().min(1),label:A.string().min(1,"Label is required"),wireFormat:Q2,baseUrl:A.string().min(1,"Base URL is required").url("Must be a valid URL"),model:A.string().min(1,"Model is required"),auth:nD,headers:A.record(A.string(),A.string()).optional(),tls:W2.optional(),maxTokens:A.number().int().positive().optional(),modelCapabilities:A.object({contextWindow:A.number().int().positive().optional(),supportsVision:A.boolean().optional(),supportsTools:A.boolean().optional()}).optional()});var rD=i0.pick({label:!0,wireFormat:!0,baseUrl:!0,model:!0});function Ev(e){let t=rD.safeParse(e);return t.success?[]:t.error.issues.map(n=>({path:n.path.join("."),message:n.message}))}var o0={"gpt-4o-mini":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4o":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4.1-mini":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4.1":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4-turbo":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4":{contextWindow:8192,supportsVision:!1,supportsTools:!0},"gpt-3.5-turbo":{contextWindow:16385,supportsVision:!1,supportsTools:!0},o3:{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"o4-mini":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-opus-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-sonnet-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-7-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-haiku":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"gemini-2.5-pro":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.5-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.0-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"deepseek-reasoner":{contextWindow:65536,supportsVision:!1,supportsTools:!1},"deepseek-chat":{contextWindow:65536,supportsVision:!1,supportsTools:!0},"llama-3.3":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},"llama-3.1":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},mistral:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"qwen2.5-coder":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen2.5-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen2.5":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen3-coder":{contextWindow:262144,supportsVision:!1,supportsTools:!0},"qwen3-vl":{contextWindow:262144,supportsVision:!0,supportsTools:!0},qwen3:{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen-max":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-plus":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-turbo":{contextWindow:1e6,supportsVision:!1,supportsTools:!0},qwq:{contextWindow:131072,supportsVision:!1,supportsTools:!0},qwen:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"gemma-3n":{contextWindow:32768,supportsVision:!0,supportsTools:!0},"gemma-3":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"gemma-2":{contextWindow:8192,supportsVision:!1,supportsTools:!0},gemma:{contextWindow:131072,supportsVision:!0,supportsTools:!0}},iD={contextWindow:32768,supportsVision:!1,supportsTools:!0},oD=Object.keys(o0).sort((e,t)=>t.length-e.length);function a0(e){let t=e.toLowerCase();for(let n of oD)if(t.includes(n))return{...o0[n],known:!0};return{...iD,known:!1}}function Uv(e,t){let n=a0(e);return t===void 0?n:{contextWindow:t.contextWindow??n.contextWindow,supportsVision:t.supportsVision??n.supportsVision,supportsTools:t.supportsTools??n.supportsTools,known:n.known||Object.values(t).some(i=>i!==void 0)}}var F=H(Ge(),1);var Ft=H(de(),1);var rt=H(de(),1);var p={background:"var(--vscode-sideBar-background, var(--vscode-editor-background))",foreground:"var(--vscode-foreground)",muted:"var(--vscode-descriptionForeground)",border:"var(--vscode-widget-border, var(--vscode-panel-border))",inputBackground:"var(--vscode-input-background)",inputForeground:"var(--vscode-input-foreground)",inputBorder:"var(--vscode-input-border, var(--vscode-widget-border))",buttonBackground:"var(--vscode-button-background)",buttonForeground:"var(--vscode-button-foreground)",buttonHoverBackground:"var(--vscode-button-hoverBackground)",secondaryButtonBackground:"var(--vscode-button-secondaryBackground, var(--vscode-input-background))",secondaryButtonForeground:"var(--vscode-button-secondaryForeground, var(--vscode-foreground))",secondaryButtonHoverBackground:"var(--vscode-button-secondaryHoverBackground, var(--vscode-toolbar-hoverBackground))",hoverBackground:"var(--vscode-toolbar-hoverBackground)",error:"var(--vscode-errorForeground)",focusBorder:"var(--vscode-focusBorder)",assistantBubble:"var(--vscode-editor-inactiveSelectionBackground, var(--vscode-input-background))"},q="var(--vscode-font-family, sans-serif)";function Me(e){return{background:p.buttonBackground,color:p.buttonForeground,border:"none",borderRadius:2,padding:"4px 12px",cursor:e?"default":"pointer",opacity:e?.6:1,fontFamily:q}}function Re(e,t=!1){let n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:0,borderRadius:4,cursor:t?"default":"pointer",opacity:t?.5:1,flexShrink:0};return e==="primary"?{...n,background:p.buttonBackground,color:p.buttonForeground,border:"none"}:e==="secondary"?{...n,background:p.secondaryButtonBackground,color:p.secondaryButtonForeground,border:`1px solid ${p.border}`}:{...n,background:"transparent",color:p.foreground,border:"none"}}function se(){return{background:p.inputBackground,color:p.inputForeground,border:`1px solid ${p.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:q,fontSize:13,width:"100%",boxSizing:"border-box"}}function Bn(e=!1){return{background:p.inputBackground,color:p.inputForeground,border:`1px solid ${p.inputBorder}`,borderRadius:2,padding:e?"2px 4px":"6px 8px",fontFamily:q,fontSize:e?11:13,cursor:"pointer"}}function Be(){return{background:p.inputBackground,color:p.inputForeground}}function ee(){return{color:p.muted,fontSize:12,display:"block",marginBottom:4}}function J(){return{background:p.secondaryButtonBackground,color:p.secondaryButtonForeground,border:`1px solid ${p.border}`,borderRadius:2,padding:"4px 10px",cursor:"pointer",fontFamily:q,fontSize:12}}function Nt(){return{color:p.error,fontSize:11,display:"block",marginTop:2}}function Ba(e="neutral"){return{display:"inline-block",fontSize:10,padding:"1px 6px",borderRadius:8,border:`1px solid ${p.border}`,color:e==="warning"?p.error:p.muted}}var mn=H(de(),1),x0=H(Ge(),1);function SD(e,t){let n=Array.from({length:e.length+1},()=>new Array(t.length+1).fill(0));for(let i=e.length-1;i>=0;i--)for(let r=t.length-1;r>=0;r--){let o=n[i],a=n[i+1];o[r]=e[i]===t[r]?a[r+1]+1:Math.max(a[r],o[r+1])}return n}function Mv(e,t){let n=e.replace(/\r\n/g,`
74
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let l=a[1];if(t===a[0]){o(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){o(a);continue}}if(e.metadataRegistry.get(a[0])?.id){o(a);continue}if(l.cycle){o(a);continue}if(l.count>1&&e.reused==="ref"){o(a);continue}}}function Wi(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=l=>{let c=e.seen.get(l);if(c.ref===null)return;let u=c.def??c.schema,d={...u},m=c.ref;if(c.ref=null,m){r(m);let f=e.seen.get(m),x=f.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(x)):Object.assign(u,x),Object.assign(u,d),l._zod.parent===m)for(let O in u)O==="$ref"||O==="allOf"||O in d||delete u[O];if(x.$ref&&f.def)for(let O in u)O==="$ref"||O==="allOf"||O in f.def&&JSON.stringify(u[O])===JSON.stringify(f.def[O])&&delete u[O]}let p=l._zod.parent;if(p&&p!==m){r(p);let f=e.seen.get(p);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let x in u)x==="$ref"||x==="allOf"||x in f.def&&JSON.stringify(u[x])===JSON.stringify(f.def[x])&&delete u[x]}e.override({zodSchema:l,jsonSchema:u,path:c.path??[]})};for(let l of[...e.seen.entries()].reverse())r(l[0]);let i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let l=e.external.registry.get(t)?.id;if(!l)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(l)}Object.assign(i,n.def??n.schema);let o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let c=l[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,a[c.defId]=c.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?i.$defs=a:i.definitions=a);try{let l=JSON.parse(JSON.stringify(i));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Oo(t,"input",e.processors),output:Oo(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function Pt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Pt(r.element,n);if(r.type==="set")return Pt(r.valueType,n);if(r.type==="lazy")return Pt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Pt(r.innerType,n);if(r.type==="intersection")return Pt(r.left,n)||Pt(r.right,n);if(r.type==="record"||r.type==="map")return Pt(r.keyType,n)||Pt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Pt(r.in,n)||Pt(r.out,n);if(r.type==="object"){for(let i in r.shape)if(Pt(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(let i of r.options)if(Pt(i,n))return!0;return!1}if(r.type==="tuple"){for(let i of r.items)if(Pt(i,n))return!0;return!!(r.rest&&Pt(r.rest,n))}return!1}var Fh=(e,t={})=>n=>{let r=Ki({...n,processors:t});return Ee(e,r),Qi(r,e),Wi(r,e)},Oo=(e,t,n={})=>r=>{let{libraryOptions:i,target:o}=r??{},a=Ki({...i??{},target:o,io:t,processors:n});return Ee(e,a),Qi(a,e),Wi(a,e)};var vI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},qh=(e,t,n,r)=>{let i=n;i.type="string";let{minimum:o,maximum:a,format:l,patterns:c,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof a=="number"&&(i.maxLength=a),l&&(i.format=vI[l]??l,i.format===""&&delete i.format,l==="time"&&delete i.format),u&&(i.contentEncoding=u),c&&c.size>0){let d=[...c];d.length===1?i.pattern=d[0].source:d.length>1&&(i.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Hh=(e,t,n,r)=>{let i=n,{minimum:o,maximum:a,format:l,multipleOf:c,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?i.type="integer":i.type="number";let m=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),p=typeof u=="number"&&u<=(a??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";m?f?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d:typeof o=="number"&&(i.minimum=o),p?f?(i.maximum=u,i.exclusiveMaximum=!0):i.exclusiveMaximum=u:typeof a=="number"&&(i.maximum=a),typeof c=="number"&&(i.multipleOf=c)},Gh=(e,t,n,r)=>{n.type="boolean"},Yh=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Jh=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Xh=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Kh=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Qh=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Wh=(e,t,n,r)=>{n.not={}},eg=(e,t,n,r)=>{},tg=(e,t,n,r)=>{},ng=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},ig=(e,t,n,r)=>{let i=e._zod.def,o=Ka(i.entries);o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),n.enum=o},rg=(e,t,n,r)=>{let i=e._zod.def,o=[];for(let a of i.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){let a=o[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else o.every(a=>typeof a=="number")&&(n.type="number"),o.every(a=>typeof a=="string")&&(n.type="string"),o.every(a=>typeof a=="boolean")&&(n.type="boolean"),o.every(a=>a===null)&&(n.type="null"),n.enum=o},og=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ag=(e,t,n,r)=>{let i=n,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");i.type="string",i.pattern=o.source},lg=(e,t,n,r)=>{let i=n,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:c}=e._zod.bag;a!==void 0&&(o.minLength=a),l!==void 0&&(o.maxLength=l),c?c.length===1?(o.contentMediaType=c[0],Object.assign(i,o)):(Object.assign(i,o),i.anyOf=c.map(u=>({contentMediaType:u}))):Object.assign(i,o)},cg=(e,t,n,r)=>{n.type="boolean"},sg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},ug=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},dg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},fg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},mg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},pg=(e,t,n,r)=>{let i=n,o=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(i.minItems=a),typeof l=="number"&&(i.maxItems=l),i.type="array",i.items=Ee(o.element,t,{...r,path:[...r.path,"items"]})},hg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object",i.properties={};let a=o.shape;for(let u in a)i.properties[u]=Ee(a[u],t,{...r,path:[...r.path,"properties",u]});let l=new Set(Object.keys(a)),c=new Set([...l].filter(u=>{let d=o.shape[u]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));c.size>0&&(i.required=Array.from(c)),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Ee(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},Hs=(e,t,n,r)=>{let i=e._zod.def,o=i.inclusive===!1,a=i.options.map((l,c)=>Ee(l,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=a:n.anyOf=a},gg=(e,t,n,r)=>{let i=e._zod.def,o=Ee(i.left,t,{...r,path:[...r.path,"allOf",0]}),a=Ee(i.right,t,{...r,path:[...r.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,c=[...l(o)?o.allOf:[o],...l(a)?a.allOf:[a]];n.allOf=c},vg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=o.items.map((p,f)=>Ee(p,t,{...r,path:[...r.path,a,f]})),u=o.rest?Ee(o.rest,t,{...r,path:[...r.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(i.prefixItems=c,u&&(i.items=u)):t.target==="openapi-3.0"?(i.items={anyOf:c},u&&i.items.anyOf.push(u),i.minItems=c.length,u||(i.maxItems=c.length)):(i.items=c,u&&(i.additionalItems=u));let{minimum:d,maximum:m}=e._zod.bag;typeof d=="number"&&(i.minItems=d),typeof m=="number"&&(i.maxItems=m)},yg=(e,t,n,r)=>{let i=n,o=e._zod.def;i.type="object";let a=o.keyType,c=a._zod.bag?.patterns;if(o.mode==="loose"&&c&&c.size>0){let d=Ee(o.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(let m of c)i.patternProperties[m.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(i.propertyNames=Ee(o.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Ee(o.valueType,t,{...r,path:[...r.path,"additionalProperties"]});let u=a._zod.values;if(u){let d=[...u].filter(m=>typeof m=="string"||typeof m=="number");d.length>0&&(i.required=d)}},bg=(e,t,n,r)=>{let i=e._zod.def,o=Ee(i.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},xg=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Sg=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},kg=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},_g=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},$g=(e,t,n,r)=>{let i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?o?i.out:i.in:i.out;Ee(a,t,r);let l=t.seen.get(e);l.ref=a},wg=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},zg=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Gs=(e,t,n,r)=>{let i=e._zod.def;Ee(i.innerType,t,r);let o=t.seen.get(e);o.ref=i.innerType},Tg=(e,t,n,r)=>{let i=e._zod.innerType;Ee(i,t,r);let o=t.seen.get(e);o.ref=i},qs={string:qh,number:Hh,boolean:Gh,bigint:Yh,symbol:Jh,null:Xh,undefined:Kh,void:Qh,never:Wh,any:eg,unknown:tg,date:ng,enum:ig,literal:rg,nan:og,template_literal:ag,file:lg,success:cg,custom:sg,function:ug,transform:dg,map:fg,set:mg,array:pg,object:hg,union:Hs,intersection:gg,tuple:vg,record:yg,nullable:bg,nonoptional:xg,default:Sg,prefault:kg,catch:_g,pipe:$g,readonly:wg,promise:zg,optional:Gs,lazy:Tg};function Ys(e,t){if("_idmap"in e){let r=e,i=Ki({...t,processors:qs}),o={};for(let c of r._idmap.entries()){let[u,d]=c;Ee(d,i)}let a={},l={registry:r,uri:t?.uri,defs:o};i.external=l;for(let c of r._idmap.entries()){let[u,d]=c;Qi(i,d),a[u]=Wi(i,d)}if(Object.keys(o).length>0){let c=i.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[c]:o}}return{schemas:a}}let n=Ki({...t,processors:qs});return Ee(e,n),Qi(n,e),Wi(n,e)}var Js=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Ki({processors:qs,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return Ee(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),Qi(this.ctx,t);let r=Wi(this.ctx,t),{"~standard":i,...o}=r;return o}};var CS={};var hl={};gi(hl,{ZodAny:()=>Kg,ZodArray:()=>tv,ZodBase64:()=>gu,ZodBase64URL:()=>vu,ZodBigInt:()=>Vo,ZodBigIntFormat:()=>xu,ZodBoolean:()=>Po,ZodCIDRv4:()=>pu,ZodCIDRv6:()=>hu,ZodCUID:()=>lu,ZodCUID2:()=>cu,ZodCatch:()=>_v,ZodCodec:()=>Tl,ZodCustom:()=>Cl,ZodCustomStringFormat:()=>Bo,ZodDate:()=>kl,ZodDefault:()=>vv,ZodDiscriminatedUnion:()=>iv,ZodE164:()=>yu,ZodEmail:()=>ru,ZodEmoji:()=>ou,ZodEnum:()=>Mo,ZodExactOptional:()=>pv,ZodFile:()=>fv,ZodFunction:()=>jv,ZodGUID:()=>vl,ZodIPv4:()=>fu,ZodIPv6:()=>mu,ZodIntersection:()=>rv,ZodJWT:()=>bu,ZodKSUID:()=>du,ZodLazy:()=>Dv,ZodLiteral:()=>dv,ZodMAC:()=>Fg,ZodMap:()=>sv,ZodNaN:()=>wv,ZodNanoID:()=>au,ZodNever:()=>Wg,ZodNonOptional:()=>zu,ZodNull:()=>Jg,ZodNullable:()=>gv,ZodNumber:()=>Lo,ZodNumberFormat:()=>Lr,ZodObject:()=>$l,ZodOptional:()=>wu,ZodPipe:()=>zl,ZodPrefault:()=>bv,ZodPreprocess:()=>zv,ZodPromise:()=>Av,ZodReadonly:()=>Tv,ZodRecord:()=>Ro,ZodSet:()=>uv,ZodString:()=>Zo,ZodStringFormat:()=>Me,ZodSuccess:()=>kv,ZodSymbol:()=>Gg,ZodTemplateLiteral:()=>Ev,ZodTransform:()=>mv,ZodTuple:()=>av,ZodType:()=>se,ZodULID:()=>su,ZodURL:()=>Sl,ZodUUID:()=>ei,ZodUndefined:()=>Yg,ZodUnion:()=>wl,ZodUnknown:()=>Qg,ZodVoid:()=>ev,ZodXID:()=>uu,ZodXor:()=>nv,_ZodString:()=>iu,_default:()=>yv,_function:()=>Rk,any:()=>pk,array:()=>_l,base64:()=>KS,base64url:()=>QS,bigint:()=>sk,boolean:()=>Hg,catch:()=>$v,check:()=>Mk,cidrv4:()=>JS,cidrv6:()=>XS,codec:()=>jk,cuid:()=>LS,cuid2:()=>PS,custom:()=>Zk,date:()=>gk,describe:()=>Bk,discriminatedUnion:()=>kk,e164:()=>WS,email:()=>IS,emoji:()=>ZS,enum:()=>_u,exactOptional:()=>hv,file:()=>Ek,float32:()=>ok,float64:()=>ak,function:()=>Rk,guid:()=>AS,hash:()=>rk,hex:()=>ik,hostname:()=>nk,httpUrl:()=>MS,instanceof:()=>Pk,int:()=>tu,int32:()=>lk,int64:()=>uk,intersection:()=>ov,invertCodec:()=>Uk,ipv4:()=>HS,ipv6:()=>YS,json:()=>Fk,jwt:()=>ek,keyof:()=>vk,ksuid:()=>qS,lazy:()=>Iv,literal:()=>Ck,looseObject:()=>xk,looseRecord:()=>$k,mac:()=>GS,map:()=>wk,meta:()=>Lk,nan:()=>Ak,nanoid:()=>BS,nativeEnum:()=>Tk,never:()=>Su,nonoptional:()=>Sv,null:()=>Xg,nullable:()=>bl,nullish:()=>Dk,number:()=>qg,object:()=>yk,optional:()=>yl,partialRecord:()=>_k,pipe:()=>nu,prefault:()=>xv,preprocess:()=>qk,promise:()=>Nk,readonly:()=>Cv,record:()=>cv,refine:()=>Uv,set:()=>zk,strictObject:()=>bk,string:()=>gl,stringFormat:()=>tk,stringbool:()=>Vk,success:()=>Ik,superRefine:()=>Ov,symbol:()=>fk,templateLiteral:()=>Ok,transform:()=>$u,tuple:()=>lv,uint32:()=>ck,uint64:()=>dk,ulid:()=>VS,undefined:()=>mk,union:()=>ku,unknown:()=>Br,url:()=>RS,uuid:()=>jS,uuidv4:()=>US,uuidv6:()=>OS,uuidv7:()=>NS,void:()=>hk,xid:()=>FS,xor:()=>Sk});var Xs={};gi(Xs,{endsWith:()=>To,gt:()=>Qn,gte:()=>Lt,includes:()=>wo,length:()=>Zr,lowercase:()=>_o,lt:()=>Kn,lte:()=>dn,maxLength:()=>Mr,maxSize:()=>Xi,mime:()=>Co,minLength:()=>yi,minSize:()=>Wn,multipleOf:()=>Ji,negative:()=>Ls,nonnegative:()=>Vs,nonpositive:()=>Ps,normalize:()=>Eo,overwrite:()=>qn,positive:()=>Bs,property:()=>Fs,regex:()=>ko,size:()=>Rr,slugify:()=>jo,startsWith:()=>zo,toLowerCase:()=>Io,toUpperCase:()=>Ao,trim:()=>Do,uppercase:()=>$o});var No={};gi(No,{ZodISODate:()=>Qs,ZodISODateTime:()=>Ks,ZodISODuration:()=>eu,ZodISOTime:()=>Ws,date:()=>Eg,datetime:()=>Cg,duration:()=>Ig,time:()=>Dg});var Ks=S("ZodISODateTime",(e,t)=>{op.init(e,t),Me.init(e,t)});function Cg(e){return sh(Ks,e)}var Qs=S("ZodISODate",(e,t)=>{ap.init(e,t),Me.init(e,t)});function Eg(e){return uh(Qs,e)}var Ws=S("ZodISOTime",(e,t)=>{lp.init(e,t),Me.init(e,t)});function Dg(e){return dh(Ws,e)}var eu=S("ZodISODuration",(e,t)=>{cp.init(e,t),Me.init(e,t)});function Ig(e){return fh(eu,e)}var ES=(e,t)=>{nl.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>rl(e,n)},flatten:{value:n=>il(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,mo,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,mo,2)}},isEmpty:{get(){return e.issues.length===0}}})},bI=S("ZodError",ES),Qt=S("ZodError",ES,{Parent:Error});var Ag=go(Qt),jg=vo(Qt),Ug=yo(Qt),Og=bo(Qt),Ng=Yc(Qt),Rg=Jc(Qt),Mg=Xc(Qt),Zg=Kc(Qt),Bg=Qc(Qt),Lg=Wc(Qt),Pg=es(Qt),Vg=ts(Qt);var DS=new WeakMap;function xl(e,t,n){let r=Object.getPrototypeOf(e),i=DS.get(r);if(i||(i=new Set,DS.set(r,i)),!i.has(t)){i.add(t);for(let o in n){let a=n[o];Object.defineProperty(r,o,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var se=S("ZodType",(e,t)=>(re.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Oo(e,"input"),output:Oo(e,"output")}}),e.toJSONSchema=Fh(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>Ag(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>Ug(e,n,r),e.parseAsync=async(n,r)=>jg(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Og(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ng(e,n,r),e.decode=(n,r)=>Rg(e,n,r),e.encodeAsync=async(n,r)=>Mg(e,n,r),e.decodeAsync=async(n,r)=>Zg(e,n,r),e.safeEncode=(n,r)=>Bg(e,n,r),e.safeDecode=(n,r)=>Lg(e,n,r),e.safeEncodeAsync=async(n,r)=>Pg(e,n,r),e.safeDecodeAsync=async(n,r)=>Vg(e,n,r),xl(e,"ZodType",{check(...n){let r=this.def;return this.clone(N.mergeDefs(r,{checks:[...r.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Zt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(Uv(n,r))},superRefine(n,r){return this.check(Ov(n,r))},overwrite(n){return this.check(qn(n))},optional(){return yl(this)},exactOptional(){return hv(this)},nullable(){return bl(this)},nullish(){return yl(bl(this))},nonoptional(n){return Sv(this,n)},array(){return _l(this)},or(n){return ku([this,n])},and(n){return ov(this,n)},transform(n){return nu(this,$u(n))},default(n){return yv(this,n)},prefault(n){return xv(this,n)},catch(n){return $v(this,n)},pipe(n){return nu(this,n)},readonly(){return Cv(this)},describe(n){let r=this.clone();return wt.add(r,{description:n}),r},meta(...n){if(n.length===0)return wt.get(this);let r=this.clone();return wt.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return wt.get(e)?.description},configurable:!0}),e)),iu=S("_ZodString",(e,t)=>{Nr.init(e,t),se.init(e,t),e._zod.processJSONSchema=(r,i,o)=>qh(e,r,i,o);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,xl(e,"_ZodString",{regex(...r){return this.check(ko(...r))},includes(...r){return this.check(wo(...r))},startsWith(...r){return this.check(zo(...r))},endsWith(...r){return this.check(To(...r))},min(...r){return this.check(yi(...r))},max(...r){return this.check(Mr(...r))},length(...r){return this.check(Zr(...r))},nonempty(...r){return this.check(yi(1,...r))},lowercase(r){return this.check(_o(r))},uppercase(r){return this.check($o(r))},trim(){return this.check(Do())},normalize(...r){return this.check(Eo(...r))},toLowerCase(){return this.check(Io())},toUpperCase(){return this.check(Ao())},slugify(){return this.check(jo())}})}),Zo=S("ZodString",(e,t)=>{Nr.init(e,t),iu.init(e,t),e.email=n=>e.check(xs(ru,n)),e.url=n=>e.check(pl(Sl,n)),e.jwt=n=>e.check(Zs(bu,n)),e.emoji=n=>e.check(ws(ou,n)),e.guid=n=>e.check(ml(vl,n)),e.uuid=n=>e.check(Ss(ei,n)),e.uuidv4=n=>e.check(ks(ei,n)),e.uuidv6=n=>e.check(_s(ei,n)),e.uuidv7=n=>e.check($s(ei,n)),e.nanoid=n=>e.check(zs(au,n)),e.guid=n=>e.check(ml(vl,n)),e.cuid=n=>e.check(Ts(lu,n)),e.cuid2=n=>e.check(Cs(cu,n)),e.ulid=n=>e.check(Es(su,n)),e.base64=n=>e.check(Ns(gu,n)),e.base64url=n=>e.check(Rs(vu,n)),e.xid=n=>e.check(Ds(uu,n)),e.ksuid=n=>e.check(Is(du,n)),e.ipv4=n=>e.check(As(fu,n)),e.ipv6=n=>e.check(js(mu,n)),e.cidrv4=n=>e.check(Us(pu,n)),e.cidrv6=n=>e.check(Os(hu,n)),e.e164=n=>e.check(Ms(yu,n)),e.datetime=n=>e.check(Cg(n)),e.date=n=>e.check(Eg(n)),e.time=n=>e.check(Dg(n)),e.duration=n=>e.check(Ig(n))});function gl(e){return oh(Zo,e)}var Me=S("ZodStringFormat",(e,t)=>{Re.init(e,t),iu.init(e,t)}),ru=S("ZodEmail",(e,t)=>{Xm.init(e,t),Me.init(e,t)});function IS(e){return xs(ru,e)}var vl=S("ZodGUID",(e,t)=>{Ym.init(e,t),Me.init(e,t)});function AS(e){return ml(vl,e)}var ei=S("ZodUUID",(e,t)=>{Jm.init(e,t),Me.init(e,t)});function jS(e){return Ss(ei,e)}function US(e){return ks(ei,e)}function OS(e){return _s(ei,e)}function NS(e){return $s(ei,e)}var Sl=S("ZodURL",(e,t)=>{Km.init(e,t),Me.init(e,t)});function RS(e){return pl(Sl,e)}function MS(e){return pl(Sl,{protocol:un.httpProtocol,hostname:un.domain,...N.normalizeParams(e)})}var ou=S("ZodEmoji",(e,t)=>{Qm.init(e,t),Me.init(e,t)});function ZS(e){return ws(ou,e)}var au=S("ZodNanoID",(e,t)=>{Wm.init(e,t),Me.init(e,t)});function BS(e){return zs(au,e)}var lu=S("ZodCUID",(e,t)=>{ep.init(e,t),Me.init(e,t)});function LS(e){return Ts(lu,e)}var cu=S("ZodCUID2",(e,t)=>{tp.init(e,t),Me.init(e,t)});function PS(e){return Cs(cu,e)}var su=S("ZodULID",(e,t)=>{np.init(e,t),Me.init(e,t)});function VS(e){return Es(su,e)}var uu=S("ZodXID",(e,t)=>{ip.init(e,t),Me.init(e,t)});function FS(e){return Ds(uu,e)}var du=S("ZodKSUID",(e,t)=>{rp.init(e,t),Me.init(e,t)});function qS(e){return Is(du,e)}var fu=S("ZodIPv4",(e,t)=>{sp.init(e,t),Me.init(e,t)});function HS(e){return As(fu,e)}var Fg=S("ZodMAC",(e,t)=>{dp.init(e,t),Me.init(e,t)});function GS(e){return lh(Fg,e)}var mu=S("ZodIPv6",(e,t)=>{up.init(e,t),Me.init(e,t)});function YS(e){return js(mu,e)}var pu=S("ZodCIDRv4",(e,t)=>{fp.init(e,t),Me.init(e,t)});function JS(e){return Us(pu,e)}var hu=S("ZodCIDRv6",(e,t)=>{mp.init(e,t),Me.init(e,t)});function XS(e){return Os(hu,e)}var gu=S("ZodBase64",(e,t)=>{hp.init(e,t),Me.init(e,t)});function KS(e){return Ns(gu,e)}var vu=S("ZodBase64URL",(e,t)=>{gp.init(e,t),Me.init(e,t)});function QS(e){return Rs(vu,e)}var yu=S("ZodE164",(e,t)=>{vp.init(e,t),Me.init(e,t)});function WS(e){return Ms(yu,e)}var bu=S("ZodJWT",(e,t)=>{yp.init(e,t),Me.init(e,t)});function ek(e){return Zs(bu,e)}var Bo=S("ZodCustomStringFormat",(e,t)=>{bp.init(e,t),Me.init(e,t)});function tk(e,t,n={}){return Uo(Bo,e,t,n)}function nk(e){return Uo(Bo,"hostname",un.hostname,e)}function ik(e){return Uo(Bo,"hex",un.hex,e)}function rk(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,i=un[r];if(!i)throw new Error(`Unrecognized hash format: ${r}`);return Uo(Bo,r,i,t)}var Lo=S("ZodNumber",(e,t)=>{us.init(e,t),se.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Hh(e,r,i,o),xl(e,"ZodNumber",{gt(r,i){return this.check(Qn(r,i))},gte(r,i){return this.check(Lt(r,i))},min(r,i){return this.check(Lt(r,i))},lt(r,i){return this.check(Kn(r,i))},lte(r,i){return this.check(dn(r,i))},max(r,i){return this.check(dn(r,i))},int(r){return this.check(tu(r))},safe(r){return this.check(tu(r))},positive(r){return this.check(Qn(0,r))},nonnegative(r){return this.check(Lt(0,r))},negative(r){return this.check(Kn(0,r))},nonpositive(r){return this.check(dn(0,r))},multipleOf(r,i){return this.check(Ji(r,i))},step(r,i){return this.check(Ji(r,i))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function qg(e){return mh(Lo,e)}var Lr=S("ZodNumberFormat",(e,t)=>{xp.init(e,t),Lo.init(e,t)});function tu(e){return hh(Lr,e)}function ok(e){return gh(Lr,e)}function ak(e){return vh(Lr,e)}function lk(e){return yh(Lr,e)}function ck(e){return bh(Lr,e)}var Po=S("ZodBoolean",(e,t)=>{cl.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Gh(e,n,r,i)});function Hg(e){return xh(Po,e)}var Vo=S("ZodBigInt",(e,t)=>{ds.init(e,t),se.init(e,t),e._zod.processJSONSchema=(r,i,o)=>Yh(e,r,i,o),e.gte=(r,i)=>e.check(Lt(r,i)),e.min=(r,i)=>e.check(Lt(r,i)),e.gt=(r,i)=>e.check(Qn(r,i)),e.gte=(r,i)=>e.check(Lt(r,i)),e.min=(r,i)=>e.check(Lt(r,i)),e.lt=(r,i)=>e.check(Kn(r,i)),e.lte=(r,i)=>e.check(dn(r,i)),e.max=(r,i)=>e.check(dn(r,i)),e.positive=r=>e.check(Qn(BigInt(0),r)),e.negative=r=>e.check(Kn(BigInt(0),r)),e.nonpositive=r=>e.check(dn(BigInt(0),r)),e.nonnegative=r=>e.check(Lt(BigInt(0),r)),e.multipleOf=(r,i)=>e.check(Ji(r,i));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function sk(e){return kh(Vo,e)}var xu=S("ZodBigIntFormat",(e,t)=>{Sp.init(e,t),Vo.init(e,t)});function uk(e){return $h(xu,e)}function dk(e){return wh(xu,e)}var Gg=S("ZodSymbol",(e,t)=>{kp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Jh(e,n,r,i)});function fk(e){return zh(Gg,e)}var Yg=S("ZodUndefined",(e,t)=>{_p.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Kh(e,n,r,i)});function mk(e){return Th(Yg,e)}var Jg=S("ZodNull",(e,t)=>{$p.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Xh(e,n,r,i)});function Xg(e){return Ch(Jg,e)}var Kg=S("ZodAny",(e,t)=>{wp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>eg(e,n,r,i)});function pk(){return Eh(Kg)}var Qg=S("ZodUnknown",(e,t)=>{zp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tg(e,n,r,i)});function Br(){return Dh(Qg)}var Wg=S("ZodNever",(e,t)=>{Tp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Wh(e,n,r,i)});function Su(e){return Ih(Wg,e)}var ev=S("ZodVoid",(e,t)=>{Cp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Qh(e,n,r,i)});function hk(e){return Ah(ev,e)}var kl=S("ZodDate",(e,t)=>{Ep.init(e,t),se.init(e,t),e._zod.processJSONSchema=(r,i,o)=>ng(e,r,i,o),e.min=(r,i)=>e.check(Lt(r,i)),e.max=(r,i)=>e.check(dn(r,i));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function gk(e){return jh(kl,e)}var tv=S("ZodArray",(e,t)=>{Dp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pg(e,n,r,i),e.element=t.element,xl(e,"ZodArray",{min(n,r){return this.check(yi(n,r))},nonempty(n){return this.check(yi(1,n))},max(n,r){return this.check(Mr(n,r))},length(n,r){return this.check(Zr(n,r))},unwrap(){return this.element}})});function _l(e,t){return Nh(tv,e,t)}function vk(e){let t=e._zod.def.shape;return _u(Object.keys(t))}var $l=S("ZodObject",(e,t)=>{Ip.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hg(e,n,r,i),N.defineLazy(e,"shape",()=>t.shape),xl(e,"ZodObject",{keyof(){return _u(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:Br()})},loose(){return this.clone({...this._zod.def,catchall:Br()})},strict(){return this.clone({...this._zod.def,catchall:Su()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return N.extend(this,n)},safeExtend(n){return N.safeExtend(this,n)},merge(n){return N.merge(this,n)},pick(n){return N.pick(this,n)},omit(n){return N.omit(this,n)},partial(...n){return N.partial(wu,this,n[0])},required(...n){return N.required(zu,this,n[0])}})});function yk(e,t){let n={type:"object",shape:e??{},...N.normalizeParams(t)};return new $l(n)}function bk(e,t){return new $l({type:"object",shape:e,catchall:Su(),...N.normalizeParams(t)})}function xk(e,t){return new $l({type:"object",shape:e,catchall:Br(),...N.normalizeParams(t)})}var wl=S("ZodUnion",(e,t)=>{sl.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Hs(e,n,r,i),e.options=t.options});function ku(e,t){return new wl({type:"union",options:e,...N.normalizeParams(t)})}var nv=S("ZodXor",(e,t)=>{wl.init(e,t),Ap.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Hs(e,n,r,i),e.options=t.options});function Sk(e,t){return new nv({type:"union",options:e,inclusive:!1,...N.normalizeParams(t)})}var iv=S("ZodDiscriminatedUnion",(e,t)=>{wl.init(e,t),jp.init(e,t)});function kk(e,t,n){return new iv({type:"union",options:t,discriminator:e,...N.normalizeParams(n)})}var rv=S("ZodIntersection",(e,t)=>{Up.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gg(e,n,r,i)});function ov(e,t){return new rv({type:"intersection",left:e,right:t})}var av=S("ZodTuple",(e,t)=>{fs.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>vg(e,n,r,i),e.rest=n=>e.clone({...e._zod.def,rest:n})});function lv(e,t,n){let r=t instanceof re,i=r?n:t,o=r?t:null;return new av({type:"tuple",items:e,rest:o,...N.normalizeParams(i)})}var Ro=S("ZodRecord",(e,t)=>{Op.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yg(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType});function cv(e,t,n){return!t||!t._zod?new Ro({type:"record",keyType:gl(),valueType:e,...N.normalizeParams(t)}):new Ro({type:"record",keyType:e,valueType:t,...N.normalizeParams(n)})}function _k(e,t,n){let r=Zt(e);return r._zod.values=void 0,new Ro({type:"record",keyType:r,valueType:t,...N.normalizeParams(n)})}function $k(e,t,n){return new Ro({type:"record",keyType:e,valueType:t,mode:"loose",...N.normalizeParams(n)})}var sv=S("ZodMap",(e,t)=>{Np.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fg(e,n,r,i),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Wn(...n)),e.nonempty=n=>e.check(Wn(1,n)),e.max=(...n)=>e.check(Xi(...n)),e.size=(...n)=>e.check(Rr(...n))});function wk(e,t,n){return new sv({type:"map",keyType:e,valueType:t,...N.normalizeParams(n)})}var uv=S("ZodSet",(e,t)=>{Rp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mg(e,n,r,i),e.min=(...n)=>e.check(Wn(...n)),e.nonempty=n=>e.check(Wn(1,n)),e.max=(...n)=>e.check(Xi(...n)),e.size=(...n)=>e.check(Rr(...n))});function zk(e,t){return new uv({type:"set",valueType:e,...N.normalizeParams(t)})}var Mo=S("ZodEnum",(e,t)=>{Mp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(r,i,o)=>ig(e,r,i,o),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{let o={};for(let a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Mo({...t,checks:[],...N.normalizeParams(i),entries:o})},e.exclude=(r,i)=>{let o={...t.entries};for(let a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Mo({...t,checks:[],...N.normalizeParams(i),entries:o})}});function _u(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Mo({type:"enum",entries:n,...N.normalizeParams(t)})}function Tk(e,t){return new Mo({type:"enum",entries:e,...N.normalizeParams(t)})}var dv=S("ZodLiteral",(e,t)=>{Zp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rg(e,n,r,i),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Ck(e,t){return new dv({type:"literal",values:Array.isArray(e)?e:[e],...N.normalizeParams(t)})}var fv=S("ZodFile",(e,t)=>{Bp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lg(e,n,r,i),e.min=(n,r)=>e.check(Wn(n,r)),e.max=(n,r)=>e.check(Xi(n,r)),e.mime=(n,r)=>e.check(Co(Array.isArray(n)?n:[n],r))});function Ek(e){return Rh(fv,e)}var mv=S("ZodTransform",(e,t)=>{Lp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dg(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Fi(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(N.issue(o,n.value,t));else{let a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(N.issue(a))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function $u(e){return new mv({type:"transform",transform:e})}var wu=S("ZodOptional",(e,t)=>{ms.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Gs(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function yl(e){return new wu({type:"optional",innerType:e})}var pv=S("ZodExactOptional",(e,t)=>{Pp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Gs(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function hv(e){return new pv({type:"optional",innerType:e})}var gv=S("ZodNullable",(e,t)=>{Vp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>bg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function bl(e){return new gv({type:"nullable",innerType:e})}function Dk(e){return yl(bl(e))}var vv=S("ZodDefault",(e,t)=>{Fp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Sg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function yv(e,t){return new vv({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}var bv=S("ZodPrefault",(e,t)=>{qp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>kg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function xv(e,t){return new bv({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():N.shallowClone(t)}})}var zu=S("ZodNonOptional",(e,t)=>{Hp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>xg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Sv(e,t){return new zu({type:"nonoptional",innerType:e,...N.normalizeParams(t)})}var kv=S("ZodSuccess",(e,t)=>{Gp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ik(e){return new kv({type:"success",innerType:e})}var _v=S("ZodCatch",(e,t)=>{Yp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_g(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function $v(e,t){return new _v({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var wv=S("ZodNaN",(e,t)=>{Jp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>og(e,n,r,i)});function Ak(e){return Oh(wv,e)}var zl=S("ZodPipe",(e,t)=>{ps.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>$g(e,n,r,i),e.in=t.in,e.out=t.out});function nu(e,t){return new zl({type:"pipe",in:e,out:t})}var Tl=S("ZodCodec",(e,t)=>{zl.init(e,t),ul.init(e,t)});function jk(e,t,n){return new Tl({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Uk(e){let t=e._zod.def;return new Tl({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var zv=S("ZodPreprocess",(e,t)=>{zl.init(e,t),Xp.init(e,t)}),Tv=S("ZodReadonly",(e,t)=>{Kp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>wg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Cv(e){return new Tv({type:"readonly",innerType:e})}var Ev=S("ZodTemplateLiteral",(e,t)=>{Qp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ag(e,n,r,i)});function Ok(e,t){return new Ev({type:"template_literal",parts:e,...N.normalizeParams(t)})}var Dv=S("ZodLazy",(e,t)=>{th.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Tg(e,n,r,i),e.unwrap=()=>e._zod.def.getter()});function Iv(e){return new Dv({type:"lazy",getter:e})}var Av=S("ZodPromise",(e,t)=>{eh.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>zg(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Nk(e){return new Av({type:"promise",innerType:e})}var jv=S("ZodFunction",(e,t)=>{Wp.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ug(e,n,r,i)});function Rk(e){return new jv({type:"function",input:Array.isArray(e?.input)?lv(e?.input):e?.input??_l(Br()),output:e?.output??Br()})}var Cl=S("ZodCustom",(e,t)=>{nh.init(e,t),se.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sg(e,n,r,i)});function Mk(e){let t=new Le({check:"custom"});return t._zod.check=e,t}function Zk(e,t){return Mh(Cl,e??(()=>!0),t)}function Uv(e,t={}){return Zh(Cl,e,t)}function Ov(e,t){return Bh(e,t)}var Bk=Lh,Lk=Ph;function Pk(e,t={}){let n=new Cl({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...N.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Vk=(...e)=>Vh({Codec:Tl,Boolean:Po,String:Zo},...e);function Fk(e){let t=Iv(()=>ku([gl(e),qg(),Hg(),Xg(),_l(t),cv(gl(),t)]));return t}function qk(e,t){return new zv({type:"pipe",in:$u(e),out:t})}var SI={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 kI(e){rt({customError:e})}function _I(){return rt().customError}var Nv;Nv||(Nv={});var H={...hl,...Xs,iso:No},$I=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function wI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function zI(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let i=n[1];if(!i||!t.defs[i])throw new Error(`Reference not found: ${e}`);return t.defs[i]}throw new Error(`Reference not found: ${e}`)}function Hk(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return H.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let i=e.$ref;if(t.refs.has(i))return t.refs.get(i);if(t.processing.has(i))return H.lazy(()=>{if(!t.refs.has(i))throw new Error(`Circular reference not resolved: ${i}`);return t.refs.get(i)});t.processing.add(i);let o=zI(i,t),a=Ut(o,t);return t.refs.set(i,a),t.processing.delete(i),a}if(e.enum!==void 0){let i=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&i.length===1&&i[0]===null)return H.null();if(i.length===0)return H.never();if(i.length===1)return H.literal(i[0]);if(i.every(a=>typeof a=="string"))return H.enum(i);let o=i.map(a=>H.literal(a));return o.length<2?o[0]:H.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return H.literal(e.const);let n=e.type;if(Array.isArray(n)){let i=n.map(o=>{let a={...e,type:o};return Hk(a,t)});return i.length===0?H.never():i.length===1?i[0]:H.union(i)}if(!n)return H.any();let r;switch(n){case"string":{let i=H.string();if(e.format){let o=e.format;o==="email"?i=i.check(H.email()):o==="uri"||o==="uri-reference"?i=i.check(H.url()):o==="uuid"||o==="guid"?i=i.check(H.uuid()):o==="date-time"?i=i.check(H.iso.datetime()):o==="date"?i=i.check(H.iso.date()):o==="time"?i=i.check(H.iso.time()):o==="duration"?i=i.check(H.iso.duration()):o==="ipv4"?i=i.check(H.ipv4()):o==="ipv6"?i=i.check(H.ipv6()):o==="mac"?i=i.check(H.mac()):o==="cidr"?i=i.check(H.cidrv4()):o==="cidr-v6"?i=i.check(H.cidrv6()):o==="base64"?i=i.check(H.base64()):o==="base64url"?i=i.check(H.base64url()):o==="e164"?i=i.check(H.e164()):o==="jwt"?i=i.check(H.jwt()):o==="emoji"?i=i.check(H.emoji()):o==="nanoid"?i=i.check(H.nanoid()):o==="cuid"?i=i.check(H.cuid()):o==="cuid2"?i=i.check(H.cuid2()):o==="ulid"?i=i.check(H.ulid()):o==="xid"?i=i.check(H.xid()):o==="ksuid"&&(i=i.check(H.ksuid()))}typeof e.minLength=="number"&&(i=i.min(e.minLength)),typeof e.maxLength=="number"&&(i=i.max(e.maxLength)),e.pattern&&(i=i.regex(new RegExp(e.pattern))),r=i;break}case"number":case"integer":{let i=n==="integer"?H.number().int():H.number();typeof e.minimum=="number"&&(i=i.min(e.minimum)),typeof e.maximum=="number"&&(i=i.max(e.maximum)),typeof e.exclusiveMinimum=="number"?i=i.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(i=i.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?i=i.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(i=i.lt(e.maximum)),typeof e.multipleOf=="number"&&(i=i.multipleOf(e.multipleOf)),r=i;break}case"boolean":{r=H.boolean();break}case"null":{r=H.null();break}case"object":{let i={},o=e.properties||{},a=new Set(e.required||[]);for(let[c,u]of Object.entries(o)){let d=Ut(u,t);i[c]=a.has(c)?d:d.optional()}if(e.propertyNames){let c=Ut(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Ut(e.additionalProperties,t):H.any();if(Object.keys(i).length===0){r=H.record(c,u);break}let d=H.object(i).passthrough(),m=H.looseRecord(c,u);r=H.intersection(d,m);break}if(e.patternProperties){let c=e.patternProperties,u=Object.keys(c),d=[];for(let p of u){let f=Ut(c[p],t),x=H.string().regex(new RegExp(p));d.push(H.looseRecord(x,f))}let m=[];if(Object.keys(i).length>0&&m.push(H.object(i).passthrough()),m.push(...d),m.length===0)r=H.object({}).passthrough();else if(m.length===1)r=m[0];else{let p=H.intersection(m[0],m[1]);for(let f=2;f<m.length;f++)p=H.intersection(p,m[f]);r=p}break}let l=H.object(i);e.additionalProperties===!1?r=l.strict():typeof e.additionalProperties=="object"?r=l.catchall(Ut(e.additionalProperties,t)):r=l.passthrough();break}case"array":{let i=e.prefixItems,o=e.items;if(i&&Array.isArray(i)){let a=i.map(c=>Ut(c,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?Ut(o,t):void 0;l?r=H.tuple(a).rest(l):r=H.tuple(a),typeof e.minItems=="number"&&(r=r.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(H.maxLength(e.maxItems)))}else if(Array.isArray(o)){let a=o.map(c=>Ut(c,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?Ut(e.additionalItems,t):void 0;l?r=H.tuple(a).rest(l):r=H.tuple(a),typeof e.minItems=="number"&&(r=r.check(H.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(H.maxLength(e.maxItems)))}else if(o!==void 0){let a=Ut(o,t),l=H.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),r=l}else r=H.array(H.any());break}default:throw new Error(`Unsupported type: ${n}`)}return r}function Ut(e,t){if(typeof e=="boolean")return e?H.any():H.never();let n=Hk(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(u=>Ut(u,t)),c=H.union(l);n=r?H.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(u=>Ut(u,t)),c=H.xor(l);n=r?H.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:H.any();else{let l=r?n:Ut(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)l=H.intersection(l,Ut(e.allOf[u],t));n=l}e.nullable===!0&&t.version==="openapi-3.0"&&(n=H.nullable(n)),e.readOnly===!0&&(n=H.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of o)l in e&&(i[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(i[l]=e[l]);for(let l of Object.keys(e))$I.has(l)||(i[l]=e[l]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Gk(e,t){if(typeof e=="boolean")return e?H.any():H.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=wI(n,t?.defaultTarget),i=n.$defs||n.definitions||{},o={version:r,defs:i,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??wt};return Ut(n,o)}var Rv={};gi(Rv,{bigint:()=>DI,boolean:()=>EI,date:()=>II,number:()=>CI,string:()=>TI});function TI(e){return ah(Zo,e)}function CI(e){return ph(Lo,e)}function EI(e){return Sh(Po,e)}function DI(e){return _h(Vo,e)}function II(e){return Uh(kl,e)}rt(hs());var AI=z.object({command:z.string().min(1),args:z.array(z.string()).optional(),env:z.record(z.string(),z.string()).optional(),cwd:z.string().optional(),disabled:z.boolean().optional(),disabledTools:z.array(z.string()).optional()}),jI=z.object({url:z.string().min(1).url(),headers:z.record(z.string(),z.string()).optional(),disabled:z.boolean().optional(),disabledTools:z.array(z.string()).optional()}),UI=z.union([AI,jI]),MR=z.record(z.string(),UI);function Yk(e){return"command"in e}var El={kind:"python",venvDir:"",interpreter:"",script:"",packageName:"",command:"",args:[],url:"",headers:{},env:{},cwd:""};function Tu(e,t){let n=e.replace(/[\\/]+$/,"");return t==="win32"?`${n}\\Scripts\\python.exe`:`${n}/bin/python`}function Jk(e){let t=e.split(/[\\/]/);return t[t.length-1]??""}function OI(e){let t=e.split(/[\\/]/);if(t.length<3)return;let n=t[t.length-2]?.toLowerCase();if(n!=="scripts"&&n!=="bin")return;let r=e.includes("\\")?"\\":"/";return t.slice(0,-2).join(r)}function NI(e){return/^python(3(\.\d+)?)?(\.exe)?$/i.test(Jk(e))}function RI(e){return/^npx(\.cmd|\.exe)?$/i.test(Jk(e))}function Mv(e){if(!Yk(e))return{...El,kind:"http",url:e.url,headers:e.headers??{}};let t={...El,kind:"custom",command:e.command,args:e.args??[],env:e.env??{},cwd:e.cwd??""};if(RI(e.command)){let n=[...e.args??[]],r=[];for(;n.length>0&&n[0]?.startsWith("-")===!0;)r.push(n.shift());let i=n.shift();return i!==void 0&&r.every(o=>o==="-y"||o==="--yes")?{...t,kind:"npx",packageName:i,args:n}:t}if(NI(e.command)){let n=[...e.args??[]],r=n.shift();if(r!==void 0)return{...t,kind:"python",interpreter:e.command,venvDir:OI(e.command)??"",script:r,args:n}}return t}function Cu(e,t,n){let r={...n?.disabled!==void 0?{disabled:n.disabled}:{},...n?.disabledTools!==void 0?{disabledTools:n.disabledTools}:{}};if(e.kind==="http")return{url:e.url.trim(),...Object.keys(e.headers).length>0?{headers:e.headers}:{},...r};let i=e.args.filter(l=>l.trim().length>0),o,a;return e.kind==="python"?(o=e.interpreter.trim().length>0?e.interpreter.trim():Tu(e.venvDir.trim(),t),a=[e.script.trim(),...i]):e.kind==="npx"?(o="npx",a=["-y",e.packageName.trim(),...i]):(o=e.command.trim(),a=i),{command:o,...a.length>0?{args:a}:{},...Object.keys(e.env).length>0?{env:e.env}:{},...e.cwd.trim().length>0?{cwd:e.cwd.trim()}:{},...r}}function Zv(e,t){let n={};switch(e.trim().length===0?n.name="Give the server a name.":/[^\w.-]/.test(e.trim())&&(n.name="Use letters, numbers, dots, dashes and underscores \u2014 the name prefixes every tool."),t.kind){case"python":t.interpreter.trim().length===0&&t.venvDir.trim().length===0&&(n.venvDir="Point at the virtualenv folder, or set the interpreter directly."),t.script.trim().length===0&&(n.script="Point at the server script.");break;case"npx":t.packageName.trim().length===0&&(n.packageName="Name the npm package.");break;case"custom":t.command.trim().length===0&&(n.command="Name the executable to run.");break;case"http":if(t.url.trim().length===0)n.url="Enter the server URL.";else try{new URL(t.url.trim())}catch{n.url="Must be a valid URL."}break}return n}var Eu=[{id:"openai",label:"OpenAI",wireFormat:"openai",baseUrl:"https://api.openai.com/v1"},{id:"deepseek",label:"DeepSeek",wireFormat:"openai",baseUrl:"https://api.deepseek.com/v1"},{id:"anthropic",label:"Anthropic",wireFormat:"anthropic",baseUrl:"https://api.anthropic.com/v1"},{id:"gemini",label:"Google Gemini",wireFormat:"gemini",baseUrl:"https://generativelanguage.googleapis.com/v1beta"},{id:"custom",label:"Custom (OpenAI-compatible)",wireFormat:"openai",baseUrl:""},{id:"custom-anthropic",label:"Custom (Anthropic-compatible)",wireFormat:"anthropic",baseUrl:""},{id:"custom-gemini",label:"Custom (Gemini-compatible)",wireFormat:"gemini",baseUrl:""}];var MI=z.object({name:z.string().min(1),value:z.string(),description:z.string().optional()}),FR=z.array(MI),ZI=/^[A-Za-z_][A-Za-z0-9_]*$/;function Du(e){return ZI.test(e)}var er=[{id:"orientation",title:"Where everything is",opensPanel:!0,completionEvents:["onCommand:lightCode.openPanel"],altText:"The VS Code window: the Light Code icon in the activity bar, the chat panel, and the new-task, history, settings and guide buttons in its header.",body:["Light Code lives in one sidebar panel. The chat is the whole product; the gear opens eleven settings tabs, and the question mark reopens this guide whenever you want it.","The numbers in the picture are the four things worth knowing before anything else."]},{id:"providers",title:"Providers - point it at a model",tab:"providers",completionEvents:["onContext:lightCode.hasProvider"],altText:"The Providers tab, showing the profile list and the fields for editing one: preset, label, base URL, authentication, API key, model and Test connection.",body:["Nothing ships configured. There are no default endpoints, so a fresh install contacts nothing until you fill this in.","**Preset** prefills a base URL and wire format - OpenAI-compatible, Anthropic, Gemini, DeepSeek - and every field stays editable for a gateway that fronts one differently. **Authentication** is a separate axis: an API key, or Apigee client-certificate mTLS with a token grant. **Model** is fetched from your gateway and always typeable, because many return nothing. Keep one profile per gateway and switch between them from the chat header.","**Test connection** is the field worth using first: it loads certificates, gets a token, lists models, and tells you which of the three failed."]},{id:"network",title:"Network - certificates, once, for everything",tab:"network",completionEvents:["onStepSelected"],altText:"The Network tab, showing certificate directory, CA certificate, client certificate and key, PFX bundle, passphrase, and the verify-TLS toggle.",body:["If your company intercepts TLS or issues client certificates, this is the only place you set that up. It applies to every connection: the gateway, the token endpoint, MCP over HTTP, the vector store and the embedder.","**CA certificate** is added to the public roots rather than replacing them, so trusting your corporate root does not cost you every other host. **Certificate and key** - or a **PFX bundle**, which is what Windows PKI usually issues - identify you. Any single connection can override either.","**Verify TLS certificates** can be turned off, and the panel says plainly what that costs: an interceptor can read and change the traffic, API key included. Add the CA instead."]},{id:"chat",title:"The chat - ask for something real",opensPanel:!0,completionEvents:["onContext:lightCode.hasChatted"],altText:"The chat header, with the mode selector, the expert budget, and the four header buttons labelled; below it, the composer.",body:["Type a request. It reads files, searches, edits and runs commands, one step at a time, and stops when it is done or when it needs you.","**@** names a file directly. Paste a screenshot, or drop a Word, Excel, PDF or HTML file in. Long output is truncated with a handle it can re-read, so a huge log does not eat the window - the bar above the composer shows what has.","**Mode** picks what it may do: Code edits and runs, Ask is read-only, Junior brings the expert in. **History** keeps every past task, and reopening one restores the whole transcript."]},{id:"approvals",title:"Approvals - nothing happens without you",tab:"approvals",completionEvents:["onStepSelected"],altText:"The Approvals tab, showing four auto-approve toggles all off, the always-allowed command and tool lists, extra readable folders, and the maximum-steps setting.",body:["Every tool call is shown before it runs, as ground truth: the real command, the computed diff, the actual source. Never the model's description of what it means to do. **Deny** is a real answer - it goes back as a result and the turn continues.","This tab is where standing permission is granted and, more importantly, taken back. The four toggles skip the prompt by category and **all ship off**. Below them are the grants you made in the chat: always-allowed commands, always-allowed MCP tools, and folders outside the workspace it may read.","Command matching is **exact, byte for byte**. Allowing `npm test` never allows `npm test && rm -rf /`.","Before its first edit to a task it snapshots the workspace, so you can roll the whole thing back."]},{id:"mcp",title:"MCP - connect the servers you already run",tab:"mcp",completionEvents:["onStepSelected"],altText:"The MCP tab, showing two servers with health, per-tool Always/Ask/Never controls, and the JSON configuration box.",body:["Standard `mcpServers` configuration, so a config from another client pastes in unchanged. stdio or HTTP, inferred from whether you gave a command or a URL.","Servers connect when the panel opens and show health, so a mistyped command is visible immediately rather than the first time something needs it. Every tool is namespaced `server__tool`, and each one has its own **Always / Ask / Never** - one server can expose forty.","Secrets go in as `${secret:NAME}` and are resolved from the OS keychain at spawn time, never written into the file."]},{id:"python",title:"Python - let it write its own tools",tab:"python",completionEvents:["onStepSelected"],altText:"The Python tab, showing the enable toggle, uv path, environment choice, tools folder, package index, timeout, and a created tool with its content-hash approval note.",body:["It can write a Python tool mid-conversation and call it from the next message. Dependencies are declared in the file and installed with `uv`; the schema comes from your type hints, so there is no metadata to keep in step.","**Python environment** prefers your project's own venv, because that is where your internal libraries already are. **Package index** can point at an internal mirror, or refuse the network entirely.","This is the sharpest surface in the product, so it is off by default and creating a tool **always** prompts with the full source - no toggle skips it. Approval pins a hash of exactly what you saw; a file edited outside is refused and reported, and tools live in `.lightcode/tools/` so they land in git and get reviewed."]},{id:"skills",title:"Skills - teach it your conventions",tab:"skills",completionEvents:["onStepSelected"],altText:"The Skills tab, showing two skills, a note that they are found by searching rather than listing, the writable skills folder, extra read-only folders, the problems list, and the approval note.",body:["A skill is a markdown file with a name and a description. The body is never in the prompt - it is read with `read_file` when a task actually calls for it, so a skill can be as long as you like.","By default the summaries are not in the prompt either: the assistant searches for a relevant note with `search_docs`, the same way it finds tools. What stays is a count and an instruction to look, so it still knows notes exist - a description nobody sees is a note nobody reads. Switch it off in **Search** if you would rather every summary sat in the prompt.",'This is the answer to "it does not know about our internal libraries". It offers to write one when you explain something durable, and offers to correct one when something contradicts it - a stale skill is worse than a missing one.',"You get a writable folder plus any number of read-only ones, such as a shared team folder, with PATH-style precedence and shadowing reported rather than silently applied. Writing a skill needs approval too: it is prose that steers every future turn."]},{id:"search",title:"Search - find things by meaning",tab:"search",completionEvents:["onStepSelected"],altText:"The Search tab, showing the backend choice, connection fields, embedding profile, the index button, the two look-things-up toggles for tools and skills, index copying, and query limits.",body:["Indexing is optional, ships disabled, and is **the largest thing Light Code ever sends anywhere**: it uploads the contents of your workspace to the embedding endpoint you name. It says so, and where to, before the first upload.","**Qdrant** and **Chroma** run locally if you would rather nothing left the machine; **OpenSearch** is usually the one your company already has. Embeddings reuse a provider profile, so there is no second set of credentials. You can **copy an index between backends**, so changing your mind later does not orphan what you indexed.","**Looking things up rather than listing them is the default.** MCP and Python tool schemas, and skill summaries, stay out of the prompt; the assistant finds them with `search_docs` and calls them through `call_tool`. Nothing is registered when there is nothing to hide, so a workspace with no MCP servers and no skills pays nothing for it. The tab shows how many things it is hiding, and either half can be switched off - models do call a tool listed in the prompt slightly more reliably than one named through a dispatcher."]},{id:"tools",title:"Tools - everything it can call",tab:"tools",completionEvents:["onStepSelected"],altText:"The Tools tab, showing the search box and the catalogue grouped into built-in, MCP and Python tools, with the looked-up badge explained.",body:["One read-only list of every tool available right now: the built-in nine, everything your MCP servers expose, and the Python tools it has written. Search matches descriptions as well as names, so you can look for what you want done rather than what it is called.","A **looked up** badge means the tool is kept out of the system prompt to save space - the default for MCP and Python tools. It is still callable: the assistant searches for it and calls it by name. A shorter prompt is not a shorter tool list; withholding a capability is what Approvals and modes are for."]},{id:"expert",title:"Expert - spend less on the hard parts",tab:"expert",completionEvents:["onStepSelected"],altText:"The Expert tab, showing the enable toggle, command and model, the per-task spend and consultation limits, cost estimate, skill assessment, and the read-only tool restriction.",body:["In **Junior mode** a cheap model does the work and consults Claude, through the Claude CLI, on the parts that need it. The expert plans, sets checkpoints, and reviews each one as the junior finishes it.","It is read-only by construction - Read, Grep and Glob, never edit or execute - so a second agent can never act outside the approval gate. It keeps one session per task, which makes the first consultation the expensive one and every later one about nineteen times cheaper.","**Budget per task** caps both spend and number of consultations, and the same control sits in the chat header so you can raise it mid-task. The expert is told what is left and plans to fit, gives you a cost estimate up front, and can assess how your primary model is doing."]},{id:"schedules",title:"Schedules - let it run on its own",tab:"schedules",completionEvents:["onStepSelected"],altText:"The Schedules tab, showing a schedule name, prompt and interval, the file-permission, tool and skill filters for unattended runs, and the run history.",body:["A prompt on a timer. Runs in the background without touching the chat you are in, and keeps running with the panel closed.","Nobody is present to approve anything, so an unattended run does not inherit your auto-approve settings. Permission is granted **per schedule**: files are read-only unless you say otherwise, and you pick exactly which tools it may call. Creating Python tools or skills is never available to a schedule at all - model-authored code with no one watching is the one thing that stays out of reach.","**A schedule names the skills it needs** rather than searching for them, under *What it should know*. Its tool list may not include `search_docs`, and a run that comes up empty has nobody to notice. All skills are included until you narrow it.","Every run is logged with its full transcript, and `notify` raises a toast when a run has something to say."]},{id:"appearance",title:"Appearance - make it yours",tab:"appearance",completionEvents:["onStepSelected"],altText:"The Appearance tab, showing the accent colour swatches, the expert colour swatches, and the reduced-motion toggle.",body:["The panel follows your editor theme. Two colours are yours to set: the **accent**, used for anything actionable, and the **expert** colour, which marks authorship - text in it is Claude's words rather than your primary model's.","Text on either is computed rather than fixed, so it stays readable whatever you pick. Motion follows your OS reduced-motion setting, and can be turned off here regardless."]},{id:"privacy",title:"What it does not do",completionEvents:["onStepSelected"],altText:"A diagram of what leaves the machine: your gateway and MCP servers, plus the vector store and embedder only if Search is enabled; then the four things Light Code never does, and a warning that nothing is sandboxed.",body:["No telemetry. No update checks. No default endpoints - a fresh install contacts nothing. No remote assets in the panel.","The only hosts it ever reaches are the ones you configured: your gateway, your MCP servers, and - only if you turn Search on - your vector store and embedding endpoint.","Two things are stated plainly rather than glossed. **Indexing is the largest egress in the product**: enabling it sends your workspace to the embedder. And **nothing is sandboxed** - commands, Python tools and MCP servers run as you, with your permissions, and Light Code does not protect you from another process running as the same user. Approval is the real boundary, which is why it is per-invocation and why every toggle ships off.","Source, issues and the full security section: [github.com/chosengenerationdev/light-code](https://github.com/chosengenerationdev/light-code)"]}];var BI=z.enum(["openai","anthropic","gemini"]),LI=z.object({caFile:z.string().optional(),certFile:z.string().optional(),keyFile:z.string().optional(),pfxFile:z.string().optional(),passphraseRef:z.string().optional(),rejectUnauthorized:z.boolean().optional(),useGlobalClientCertificate:z.boolean().optional()}),PI=z.object({certDir:z.string().min(1).optional(),certFile:z.string().optional(),keyFile:z.string().optional(),pfxFile:z.string().optional(),caFile:z.string().optional(),passphraseRef:z.string().optional()}),VI=z.object({tokenUrl:z.string().url("Must be a valid URL").optional(),grantType:z.string().optional(),clientId:z.string().optional(),clientSecretRef:z.string().optional(),scope:z.string().optional(),extraTokenParams:z.record(z.string(),z.string()).optional(),tokenHeaderName:z.string().optional(),tokenHeaderPrefix:z.string().optional(),tokenPath:z.string().optional(),expiresInPath:z.string().optional(),fallbackExpirySeconds:z.number().int().positive().optional(),refreshSkewSeconds:z.number().int().nonnegative().optional(),extraHeaders:z.record(z.string(),z.string()).optional()}),FI=z.discriminatedUnion("type",[z.object({type:z.literal("none")}),z.object({type:z.literal("apiKey"),apiKeyRef:z.string().min(1)}),z.object({type:z.literal("apigeeMtls"),certs:PI,apigee:VI})]),Xk=z.object({id:z.string().min(1),label:z.string().min(1,"Label is required"),wireFormat:BI,baseUrl:z.string().min(1,"Base URL is required").url("Must be a valid URL"),model:z.string().min(1,"Model is required"),auth:FI,headers:z.record(z.string(),z.string()).optional(),tls:LI.optional(),maxTokens:z.number().int().positive().optional(),modelCapabilities:z.object({contextWindow:z.number().int().positive().optional(),supportsVision:z.boolean().optional(),supportsTools:z.boolean().optional()}).optional()});var qI=Xk.pick({label:!0,wireFormat:!0,baseUrl:!0,model:!0});function Bv(e){let t=qI.safeParse(e);return t.success?[]:t.error.issues.map(n=>({path:n.path.join("."),message:n.message}))}var Kk={"gpt-4o-mini":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4o":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4.1-mini":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4.1":{contextWindow:1047576,supportsVision:!0,supportsTools:!0},"gpt-4-turbo":{contextWindow:128e3,supportsVision:!0,supportsTools:!0},"gpt-4":{contextWindow:8192,supportsVision:!1,supportsTools:!0},"gpt-3.5-turbo":{contextWindow:16385,supportsVision:!1,supportsTools:!0},o3:{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"o4-mini":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-opus-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-sonnet-4":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-7-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-sonnet":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"claude-3-5-haiku":{contextWindow:2e5,supportsVision:!0,supportsTools:!0},"gemini-2.5-pro":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.5-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"gemini-2.0-flash":{contextWindow:1048576,supportsVision:!0,supportsTools:!0},"deepseek-reasoner":{contextWindow:65536,supportsVision:!1,supportsTools:!1},"deepseek-chat":{contextWindow:65536,supportsVision:!1,supportsTools:!0},"llama-3.3":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},"llama-3.1":{contextWindow:128e3,supportsVision:!1,supportsTools:!0},mistral:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"qwen2.5-coder":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen2.5-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen2.5":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen3-coder":{contextWindow:262144,supportsVision:!1,supportsTools:!0},"qwen3-vl":{contextWindow:262144,supportsVision:!0,supportsTools:!0},qwen3:{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-vl":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"qwen-max":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-plus":{contextWindow:131072,supportsVision:!1,supportsTools:!0},"qwen-turbo":{contextWindow:1e6,supportsVision:!1,supportsTools:!0},qwq:{contextWindow:131072,supportsVision:!1,supportsTools:!0},qwen:{contextWindow:32768,supportsVision:!1,supportsTools:!0},"gemma-3n":{contextWindow:32768,supportsVision:!0,supportsTools:!0},"gemma-3":{contextWindow:131072,supportsVision:!0,supportsTools:!0},"gemma-2":{contextWindow:8192,supportsVision:!1,supportsTools:!0},gemma:{contextWindow:131072,supportsVision:!0,supportsTools:!0}},HI={contextWindow:32768,supportsVision:!1,supportsTools:!0},GI=Object.keys(Kk).sort((e,t)=>t.length-e.length);function Qk(e){let t=e.toLowerCase();for(let n of GI)if(t.includes(n))return{...Kk[n],known:!0};return{...HI,known:!1}}function Lv(e,t){let n=Qk(e);return t===void 0?n:{contextWindow:t.contextWindow??n.contextWindow,supportsVision:t.supportsVision??n.supportsVision,supportsTools:t.supportsTools??n.supportsTools,known:n.known||Object.values(t).some(r=>r!==void 0)}}var YI=z.discriminatedUnion("kind",[z.object({kind:z.literal("interval"),everyMinutes:z.number().int().min(1).max(1440*7)}),z.object({kind:z.literal("daily"),hour:z.number().int().min(0).max(23),minute:z.number().int().min(0).max(59)}),z.object({kind:z.literal("weekly"),days:z.array(z.number().int().min(0).max(6)).min(1),hour:z.number().int().min(0).max(23),minute:z.number().int().min(0).max(59)})]),JI=z.object({id:z.string().min(1),name:z.string().min(1),prompt:z.string().min(1),trigger:YI,enabled:z.boolean(),allowedTools:z.array(z.string()),allowedSkills:z.array(z.string()).optional(),nextRunAt:z.number().optional(),lastRunAt:z.number().optional(),lastResult:z.enum(["ok","error","cancelled"]).optional(),lastSummary:z.string().optional(),lastTaskId:z.string().optional(),runs:z.array(z.object({at:z.number(),result:z.enum(["ok","error","cancelled"]),durationMs:z.number().optional(),summary:z.string().optional(),taskId:z.string().optional()})).optional()});var WR=z.record(z.string(),JI);function Iu(e,t){let n=new Set(t),r=new Set;for(let i of e)n.has(i.name)&&(i.group==="edit"||i.group==="command"||i.group==="mcp")&&r.add(i.group);return[...r].sort()}function Wk(e,t){let n=e.trigger;return n.kind==="interval"?t+n.everyMinutes*6e4:XI(n,t)}function XI(e,t){let n=new Date(t);n.setHours(e.hour,e.minute,0,0);let r=e.kind==="weekly"?new Set(e.days):void 0;for(let i=0;i<=8;i++){let o=n.getTime()>t,a=r===void 0||r.has(n.getDay());if(o&&a)return n.getTime();n.setDate(n.getDate()+1),n.setHours(e.hour,e.minute,0,0)}return t+1440*6e4}function Pv(e){if(e.kind==="interval"){if(e.everyMinutes%1440===0){let a=e.everyMinutes/1440;return`Every ${a===1?"day":`${String(a)} days`}`}if(e.everyMinutes%60===0){let a=e.everyMinutes/60;return`Every ${a===1?"hour":`${String(a)} hours`}`}return`Every ${String(e.everyMinutes)} minutes`}let t=`${String(e.hour).padStart(2,"0")}:${String(e.minute).padStart(2,"0")}`;if(e.kind==="daily")return`Every day at ${t}`;let n=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=[...e.days].sort((a,l)=>a-l).map(a=>n[a]??"?"),i=[1,2,3,4,5];return`${r.length===5&&i.every(a=>e.days.includes(a))?"Weekdays":r.join(", ")} at ${t}`}function Vv(e,t){if(!e.enabled)return"Paused";let n=e.nextRunAt??Wk(e,t),r=Math.round((n-t)/6e4);return r<1?"Due now":r<60?`In ${String(r)} min`:r<1440?`In ${String(Math.round(r/60))} h`:new Date(n).toLocaleString()}var V=P(he(),1);var Ft=P(ie(),1),Jo=P(he(),1);var ot=P(ie(),1);var A=P(ie(),1);function f_({size:e=16}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M1.5 1.5 L14.5 8 L1.5 14.5 L4 8 Z"})})}function m_({size:e=16}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,A.jsx)("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"})})}function p_({size:e=16}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M10 3 L5 8 L10 13"})})}function h_({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,A.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"7.5",rx:"2"}),(0,A.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"5.5"}),(0,A.jsx)("circle",{cx:"8",cy:"1.6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,A.jsx)("circle",{cx:"6",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"}),(0,A.jsx)("circle",{cx:"10",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"})]})}function ju({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,A.jsx)("circle",{cx:"8",cy:"5",r:"2.6"}),(0,A.jsx)("path",{d:"M2.8 14 a5.2 5.2 0 0 1 10.4 0"})]})}function Wt({size:e=14}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M8 1.6 l1.7 3.6 3.9 .5 -2.9 2.7 .8 3.9 L8 10.4 l-3.5 1.9 .8 -3.9 -2.9 -2.7 3.9 -.5 Z"})})}function ti({size:e=14}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M3 8.5 L6.5 12 L13 4.5"})})}function Ho({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),(0,A.jsx)("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})}function g_({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,A.jsx)("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.25"}),(0,A.jsx)("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5",strokeLinecap:"round"})]})}function zt({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M3 4.5 h10"}),(0,A.jsx)("path",{d:"M6.5 4.5 V3 h3 v1.5"}),(0,A.jsx)("path",{d:"M4.3 4.5 l.6 8.2 h6.2 l.6 -8.2"})]})}function tr({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,A.jsx)("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),(0,A.jsx)("path",{d:"M10.5 5.5 V4 a1.5 1.5 0 0 0 -1.5 -1.5 H4 A1.5 1.5 0 0 0 2.5 4 v5 A1.5 1.5 0 0 0 4 10.5 h1.5"})]})}function v_({size:e=14}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M11.2 2.3 l2.5 2.5 -8 8 -3.2 .7 .7 -3.2 Z"})})}function y_({size:e=16}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M9.5 4 L5 8.5 a2.1 2.1 0 0 0 3 3 L12.5 7 a3.5 3.5 0 0 0-5-5 L3.5 6"})})}function b_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M2.5 8a5.5 5.5 0 1 0 1.7-4"}),(0,A.jsx)("path",{d:"M2 2.5 V5.5 H5"}),(0,A.jsx)("path",{d:"M8 5 V8.4 L10.3 9.8"})]})}function x_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),(0,A.jsx)("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]})}function S_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),(0,A.jsx)("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),(0,A.jsx)("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),(0,A.jsx)("circle",{cx:"6",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),(0,A.jsx)("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),(0,A.jsx)("circle",{cx:"6",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"})]})}function Pr({size:e=12}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M6 3.5 L10.5 8 L6 12.5"})})}function k_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M3 8a5 5 0 1 1 1.6 3.7"}),(0,A.jsx)("path",{d:"M2.5 4.5 L3 8 L6.5 7.6"})]})}function __({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M10.2 4.1a2.6 2.6 0 0 0-4.4 1.7c0 2.6 4.4 1.9 4.4 4.5a2.6 2.6 0 0 1-4.4 1.7",strokeLinecap:"round"}),(0,A.jsx)("path",{d:"M8 1.8v12.4",strokeLinecap:"round"})]})}function $_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M8 1.6a6.4 6.4 0 0 0 0 12.8c1 0 1.4-.7 1.1-1.4-.4-.9.2-1.7 1.2-1.7h1.1A3 3 0 0 0 14.4 8 6.4 6.4 0 0 0 8 1.6Z"}),(0,A.jsx)("circle",{cx:"5.2",cy:"6.4",r:"0.95",fill:"currentColor",stroke:"none"}),(0,A.jsx)("circle",{cx:"8",cy:"4.6",r:"0.95",fill:"currentColor",stroke:"none"}),(0,A.jsx)("circle",{cx:"10.9",cy:"6.2",r:"0.95",fill:"currentColor",stroke:"none"})]})}function w_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M5 2v3M11 2v3"}),(0,A.jsx)("path",{d:"M3.5 5h9v2.5a4.5 4.5 0 0 1-9 0Z",strokeLinejoin:"round"}),(0,A.jsx)("path",{d:"M8 12v2.5"})]})}function Kv({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M8 1.8 13 3.6v4.1c0 3-2.1 5.5-5 6.5-2.9-1-5-3.5-5-6.5V3.6Z"}),(0,A.jsx)("path",{d:"M5.8 8 7.4 9.6 10.4 6.4",strokeLinecap:"round"})]})}function z_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("rect",{x:"2.2",y:"2.2",width:"4.6",height:"4.6",rx:"1"}),(0,A.jsx)("rect",{x:"9.2",y:"9.2",width:"4.6",height:"4.6",rx:"1"}),(0,A.jsx)("path",{d:"M6.8 4.5h3.2a1.5 1.5 0 0 1 1.5 1.5v3.2",strokeLinecap:"round"})]})}function T_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("circle",{cx:"7",cy:"7",r:"4.2"}),(0,A.jsx)("path",{d:"M10.2 10.2 14 14"})]})}function C_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,A.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,A.jsx)("path",{d:"M2 8h12M8 2c1.8 2 1.8 10 0 12M8 2c-1.8 2-1.8 10 0 12"})]})}function E_({size:e=16}){let t="M7.9 1.1c-1 0-1.9.1-2.6.4-.6.2-1 .6-1 1.3v1.6h3.7v.5H2.9c-.8 0-1.5.5-1.8 1.3-.3.9-.3 1.9 0 2.9.3.8.8 1.3 1.5 1.3h1.2V8.6c0-1 .9-1.9 1.9-1.9h3.7c.7 0 1.3-.6 1.3-1.3V2.8c0-.7-.5-1.2-1.3-1.4-.5-.2-1-.3-1.5-.3Zm-2.1 1c.4 0 .7.3.7.7s-.3.7-.7.7-.7-.3-.7-.7.3-.7.7-.7Z";return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:[(0,A.jsx)("path",{d:t}),(0,A.jsx)("path",{d:t,transform:"rotate(180 8 8)"})]})}function D_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("circle",{cx:"8",cy:"8",r:"6.2"}),(0,A.jsx)("path",{d:"M6.2 6.1a1.9 1.9 0 1 1 2.5 1.8c-.5.2-.7.6-.7 1.1v.3"}),(0,A.jsx)("path",{d:"M8 11.6h.01"})]})}function I_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("rect",{x:"1.8",y:"5.4",width:"12.4",height:"7.8",rx:"1.3"}),(0,A.jsx)("path",{d:"M5.8 5.4V4.1c0-.6.5-1.1 1.1-1.1h2.2c.6 0 1.1.5 1.1 1.1v1.3"}),(0,A.jsx)("path",{d:"M1.8 8.6h12.4M6.6 8.6v1.4h2.8V8.6"})]})}function A_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round","aria-hidden":"true",children:[(0,A.jsx)("path",{d:"M2.5 3.2c1.8-.9 3.7-.9 5.5 0v9.6c-1.8-.9-3.7-.9-5.5 0Z"}),(0,A.jsx)("path",{d:"M13.5 3.2c-1.8-.9-3.7-.9-5.5 0v9.6c1.8-.9 3.7-.9 5.5 0Z"})]})}function j_({size:e=16}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round","aria-hidden":"true",children:[(0,A.jsx)("circle",{cx:"8",cy:"8",r:"6"}),(0,A.jsx)("path",{d:"M8 4.4V8l2.4 1.6"})]})}function Qv({size:e=14}){return(0,A.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,A.jsx)("path",{d:"M4.5 2.8 13 8l-8.5 5.2Z"})})}function U_({size:e=14}){return(0,A.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:[(0,A.jsx)("rect",{x:"4",y:"3",width:"3",height:"10",rx:"1"}),(0,A.jsx)("rect",{x:"9",y:"3",width:"3",height:"10",rx:"1"})]})}var s={background:"var(--vscode-sideBar-background, var(--vscode-editor-background))",foreground:"var(--vscode-foreground)",muted:"var(--vscode-descriptionForeground)",border:"var(--vscode-widget-border, var(--vscode-panel-border))",inputBackground:"var(--vscode-input-background)",inputForeground:"var(--vscode-input-foreground)",inputBorder:"var(--vscode-input-border, var(--vscode-widget-border))",buttonBackground:"var(--vscode-button-background)",buttonForeground:"var(--vscode-button-foreground)",buttonHoverBackground:"var(--vscode-button-hoverBackground)",secondaryButtonBackground:"var(--vscode-button-secondaryBackground, var(--vscode-input-background))",secondaryButtonForeground:"var(--vscode-button-secondaryForeground, var(--vscode-foreground))",secondaryButtonHoverBackground:"var(--vscode-button-secondaryHoverBackground, var(--vscode-toolbar-hoverBackground))",hoverBackground:"var(--vscode-toolbar-hoverBackground)",error:"var(--vscode-errorForeground)",warning:"var(--vscode-editorWarning-foreground, var(--vscode-list-warningForeground, var(--vscode-errorForeground)))",focusBorder:"var(--vscode-focusBorder)",assistantBubble:"var(--vscode-editor-inactiveSelectionBackground, var(--vscode-input-background))",accent:"var(--lc-accent, #22C55E)",accentDeep:"var(--lc-accent-deep, #157A3A)",accentContrast:"var(--lc-accent-contrast, #12111a)",accentSoft:"var(--lc-accent-a12, rgba(34, 197, 94, 0.12))",accentRing:"var(--lc-accent-a35, rgba(34, 197, 94, 0.35))",accentGradient:"linear-gradient(135deg, var(--lc-accent-deep, #157A3A), var(--lc-accent, #22C55E))",expert:"var(--lc-expert, #D97757)",expertDeep:"var(--lc-expert-deep, #86492F)",expertContrast:"var(--lc-expert-contrast, #ffffff)",expertSoft:"var(--lc-expert-a12, rgba(217, 119, 87, 0.12))",expertRing:"var(--lc-expert-a35, rgba(217, 119, 87, 0.35))",expertGradient:"linear-gradient(135deg, var(--lc-expert-deep, #86492F), var(--lc-expert, #D97757))"},Z="var(--vscode-font-family, sans-serif)",O_={button:"lc-btn",accentButton:"lc-btn lc-btn-accent",input:"lc-input",scroll:"lc-scroll",panel:"lc-panel",tab:"lc-tab",swatch:"lc-swatch"};function fe(e){return{background:e?s.secondaryButtonBackground:s.accentGradient,color:e?s.muted:s.accentContrast,border:"none",borderRadius:6,padding:"5px 14px",cursor:e?"default":"pointer",opacity:e?.6:1,fontFamily:Z,fontWeight:500}}function pe(e,t=!1){let n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:28,height:28,padding:0,borderRadius:8,cursor:t?"default":"pointer",opacity:t?.5:1,flexShrink:0};return e==="primary"?{...n,background:s.accentGradient,color:s.accentContrast,border:"none"}:e==="secondary"?{...n,background:s.secondaryButtonBackground,color:s.secondaryButtonForeground,border:`1px solid ${s.border}`}:{...n,background:"transparent",color:s.foreground,border:"none"}}function Y(){return{background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:6,padding:"6px 8px",fontFamily:Z,fontSize:13,width:"100%",boxSizing:"border-box"}}function N_(e=!1){return{background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:6,padding:e?"2px 6px":"6px 8px",fontFamily:Z,fontSize:e?11:13,cursor:"pointer"}}function q(){return{color:s.muted,fontSize:12,display:"block",marginBottom:4}}function D(){return{background:s.secondaryButtonBackground,color:s.secondaryButtonForeground,border:`1px solid ${s.border}`,borderRadius:6,padding:"4px 10px",cursor:"pointer",fontFamily:Z,fontSize:12}}function fn(){return{color:s.error,fontSize:11,display:"block",marginTop:2}}function Fe(e="neutral"){return{display:"inline-block",fontSize:10,padding:"1px 6px",borderRadius:8,border:`1px solid ${s.border}`,color:e==="warning"?s.error:s.muted}}var St=P(ie(),1),iy=P(he(),1);var xi=["break","case","catch","class","const","continue","default","delete","do","else","enum","export","extends","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","try","typeof","var","void","while","yield","async","await","true","false","type","readonly","satisfies","as","keyof"],Wv=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","None","nonlocal","not","or","pass","raise","return","True","False","try","while","with","yield","self","match","case"],ey=["if","then","else","elif","fi","for","in","do","done","while","case","esac","function","return","export","local","echo","cd","set","unset","source"],mA=["select","from","where","insert","into","values","update","set","delete","create","table","drop","alter","join","inner","left","right","outer","on","group","by","order","having","limit","union","distinct","as","and","or","not","null","index"],pA=["fn","func","impl","struct","trait","mut","use","pub","match","end","def","module","require"];function yt(e,t={}){return{lineComments:["//"],blockComments:[["/*","*/"]],quotes:['"',"'","`"],tripleQuotes:!1,keywords:new Set(e),...t}}var Go={lineComments:["#"],blockComments:[]},R_={javascript:yt(xi),typescript:yt(xi),java:yt(xi),csharp:yt(xi),cpp:yt(xi),c:yt(xi),go:yt([...xi,"func","defer","chan","go","range","struct","map","nil"]),rust:yt([...xi,"fn","impl","trait","mut","pub","use","match","crate","Some","None"]),json:yt(["true","false","null"],{lineComments:[],blockComments:[],quotes:['"']}),python:yt(Wv,{...Go,tripleQuotes:!0}),shell:yt(ey,Go),powershell:yt([...ey,"param","begin","process"],Go),yaml:yt(["true","false","null"],{...Go,quotes:['"',"'"]}),toml:yt(["true","false"],Go),ruby:yt([...Wv,"end","do","unless","elsif","nil"],Go),sql:yt(mA,{lineComments:["--"],blockComments:[["/*","*/"]],quotes:['"',"'"]}),html:yt([],{lineComments:[],blockComments:[["<!--","-->"]],quotes:['"',"'"]}),css:yt([],{lineComments:[],blockComments:[["/*","*/"]],quotes:['"',"'"]}),default:yt([...xi,...Wv,...ey,...pA],{lineComments:["//","#","--"],blockComments:[["/*","*/"],["<!--","-->"]],tripleQuotes:!0})},hA={js:"javascript",jsx:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",tsx:"typescript",py:"python",py3:"python",python3:"python",sh:"shell",bash:"shell",zsh:"shell",console:"shell",ps1:"powershell",pwsh:"powershell",yml:"yaml",rb:"ruby",rs:"rust",golang:"go","c++":"cpp",cs:"csharp",htm:"html",xml:"html",scss:"css",postgres:"sql",psql:"sql"};function gA(e){let t=(e??"").trim().toLowerCase();return R_[hA[t]??t]??R_.default}var vA=/[A-Za-z_$]/,M_=/[A-Za-z0-9_$]/,yA=/[{}[\]()<>;,.:?!&|+\-*/%=~^@]/;function Dl(e,t){let n=gA(t),r=[],i="",o=()=>{i.length>0&&(r.push({text:i,kind:"plain"}),i="")},a=(c,u)=>{o(),r.push({text:c,kind:u})},l=0;for(;l<e.length;){let c=e.slice(l),u=n.blockComments.find(f=>c.startsWith(f[0]));if(u!==void 0){let f=e.indexOf(u[1],l+u[0].length),x=f===-1?e.length:f+u[1].length;a(e.slice(l,x),"comment"),l=x;continue}if(n.lineComments.find(f=>c.startsWith(f))!==void 0){let f=e.indexOf(`
75
+ `,l),x=f===-1?e.length:f;a(e.slice(l,x),"comment"),l=x;continue}let m=n.quotes.find(f=>c.startsWith(f));if(m!==void 0){let f=n.tripleQuotes&&c.startsWith(m.repeat(3)),x=f?m.repeat(3):m,_=l+x.length;for(;_<e.length;){if(e[_]==="\\"){_+=2;continue}if(e.startsWith(x,_)){_+=x.length;break}if(!f&&e[_]===`
76
+ `)break;_++}a(e.slice(l,Math.min(_,e.length)),"string"),l=Math.min(_,e.length);continue}let p=e[l];if(/[0-9]/.test(p)&&!M_.test(e[l-1]??" ")){let f=l;for(;f<e.length&&/[0-9a-fA-FxXoObB._]/.test(e[f]);)f++;a(e.slice(l,f),"number"),l=f;continue}if(vA.test(p)){let f=l;for(;f<e.length&&M_.test(e[f]);)f++;let x=e.slice(l,f);n.keywords.has(x)||n.keywords.has(x.toLowerCase())?a(x,"keyword"):i+=x,l=f;continue}if(yA.test(p)){a(p,"punctuation"),l++;continue}i+=p,l++}return o(),r}var Il={plain:void 0,comment:"var(--vscode-descriptionForeground)",string:"var(--vscode-debugTokenExpression-string, var(--vscode-charts-orange))",number:"var(--vscode-debugTokenExpression-number, var(--vscode-charts-green))",keyword:"var(--vscode-debugTokenExpression-name, var(--vscode-charts-blue))",punctuation:"var(--vscode-descriptionForeground)"};function bA(e,t){let n=Array.from({length:e.length+1},()=>new Array(t.length+1).fill(0));for(let r=e.length-1;r>=0;r--)for(let i=t.length-1;i>=0;i--){let o=n[r],a=n[r+1];o[i]=e[r]===t[i]?a[i+1]+1:Math.max(a[i],o[i+1])}return n}function Z_(e){return e.length===0?[]:e.replace(/\r\n/g,`
74
77
  `).split(`
75
- `),i=t.replace(/\r\n/g,`
78
+ `)}function ty(e,t){let n=Z_(e),r=Z_(t),i=bA(n,r),o=[],a=0,l=0;for(;a<n.length&&l<r.length;)n[a]===r[l]?(o.push({kind:"context",text:n[a],beforeLine:a+1,afterLine:l+1}),a++,l++):(i[a+1]?.[l]??0)>=(i[a]?.[l+1]??0)?(o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++):(o.push({kind:"added",text:r[l],afterLine:l+1}),l++);for(;a<n.length;)o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++;for(;l<r.length;)o.push({kind:"added",text:r[l],afterLine:l+1}),l++;return o}function ny(e,t=3){let n=new Set;e.forEach((o,a)=>{if(o.kind!=="context")for(let l=a-t;l<=a+t;l++)n.add(l)});let r=[],i=0;return e.forEach((o,a)=>{n.has(a)?(i>0&&(r.push({kind:"gap",count:i}),i=0),r.push(o)):i+=1}),i>0&&r.push({kind:"gap",count:i}),r}var B_="var(--vscode-editor-font-family, monospace)",xA={added:"var(--vscode-diffEditor-insertedTextBackground, rgba(0,160,0,0.18))",removed:"var(--vscode-diffEditor-removedTextBackground, rgba(200,0,0,0.18))",context:"transparent"};function SA(e){return/\.([A-Za-z0-9+]+)$/.exec(e)?.[1]??""}function Al(e){let t=(0,iy.useMemo)(()=>ny(ty(e.before,e.after)),[e.before,e.after]),n=e.before.length===0,r=(0,iy.useMemo)(()=>SA(e.path),[e.path]),i=n?kA(e.after):void 0;return(0,St.jsxs)("div",{children:[(0,St.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:4,fontFamily:B_},children:[e.path,n&&(0,St.jsx)("span",{style:{marginLeft:6},children:"(new file)"})]}),(0,St.jsx)("div",{style:{border:`1px solid ${s.border}`,borderRadius:4,maxHeight:320,overflow:"auto",fontFamily:B_,fontSize:12},children:i!==void 0?i.map((o,a)=>(0,St.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,St.jsx)("span",{style:{color:s.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:a+1}),(0,St.jsx)("span",{style:{flex:1},children:Dl(o,r).map((l,c)=>{let u=Il[l.kind];return u===void 0?(0,St.jsx)("span",{children:l.text},c):(0,St.jsx)("span",{style:{color:u},children:l.text},c)})})]},a)):t.map((o,a)=>o.kind==="gap"?(0,St.jsxs)("div",{style:{padding:"2px 8px",color:s.muted,background:"transparent"},children:["\u22EF ",o.count," unchanged line",o.count===1?"":"s"]},a):(0,St.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",background:xA[o.kind],whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,St.jsx)("span",{style:{color:s.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:o.beforeLine??o.afterLine??""}),(0,St.jsx)("span",{"data-diff-marker":!0,style:{color:s.muted,userSelect:"none"},children:o.kind==="added"?"+":o.kind==="removed"?"-":" "}),(0,St.jsx)("span",{style:{flex:1},children:Dl(o.text,r).map((l,c)=>{let u=Il[l.kind];return u===void 0?(0,St.jsx)("span",{children:l.text},c):(0,St.jsx)("span",{style:{color:u},children:l.text},c)})})]},a))})]})}function kA(e){if(e.length===0)return[];let t=e.replace(/\r\n/g,`
76
79
  `).split(`
77
- `),r=SD(n,i),o=[],a=0,l=0;for(;a<n.length&&l<i.length;)n[a]===i[l]?(o.push({kind:"context",text:n[a],beforeLine:a+1,afterLine:l+1}),a++,l++):(r[a+1]?.[l]??0)>=(r[a]?.[l+1]??0)?(o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++):(o.push({kind:"added",text:i[l],afterLine:l+1}),l++);for(;a<n.length;)o.push({kind:"removed",text:n[a],beforeLine:a+1}),a++;for(;l<i.length;)o.push({kind:"added",text:i[l],afterLine:l+1}),l++;return o}function Rv(e,t=3){let n=new Set;e.forEach((o,a)=>{if(o.kind!=="context")for(let l=a-t;l<=a+t;l++)n.add(l)});let i=[],r=0;return e.forEach((o,a)=>{n.has(a)?(r>0&&(i.push({kind:"gap",count:r}),r=0),i.push(o)):r+=1}),r>0&&i.push({kind:"gap",count:r}),i}var b0="var(--vscode-editor-font-family, monospace)",$D={added:"var(--vscode-diffEditor-insertedTextBackground, rgba(0,160,0,0.18))",removed:"var(--vscode-diffEditor-removedTextBackground, rgba(200,0,0,0.18))",context:"transparent"};function Bv(e){let t=(0,x0.useMemo)(()=>Rv(Mv(e.before,e.after)),[e.before,e.after]),n=e.before.length===0;return(0,mn.jsxs)("div",{children:[(0,mn.jsxs)("div",{style:{color:p.muted,fontSize:11,marginBottom:4,fontFamily:b0},children:[e.path,n&&(0,mn.jsx)("span",{style:{marginLeft:6},children:"(new file)"})]}),(0,mn.jsx)("div",{style:{border:`1px solid ${p.border}`,borderRadius:4,maxHeight:320,overflow:"auto",fontFamily:b0,fontSize:12},children:t.map((i,r)=>i.kind==="gap"?(0,mn.jsxs)("div",{style:{padding:"2px 8px",color:p.muted,background:"transparent"},children:["\u22EF ",i.count," unchanged line",i.count===1?"":"s"]},r):(0,mn.jsxs)("div",{style:{display:"flex",gap:8,padding:"0 8px",background:$D[i.kind],whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,mn.jsx)("span",{style:{color:p.muted,minWidth:28,textAlign:"right",userSelect:"none"},children:i.beforeLine??i.afterLine??""}),(0,mn.jsx)("span",{style:{color:p.muted,userSelect:"none"},children:i.kind==="added"?"+":i.kind==="removed"?"-":" "}),(0,mn.jsx)("span",{style:{flex:1},children:i.text})]},r))})]})}var Lv="var(--vscode-editor-font-family, monospace)";function kD(e){switch(e){case"edit":return"wants to modify a file";case"command":return"wants to run a command";case"read":return"wants to read from the workspace";case"mcp":return"wants to use an external tool";default:return"wants to act"}}function zD(e){let{preview:t}=e;return t.kind==="diff"?(0,rt.jsx)(Bv,{path:t.path,before:t.before,after:t.after}):t.kind==="command"?(0,rt.jsxs)("div",{children:[(0,rt.jsxs)("div",{style:{color:p.muted,fontSize:11,marginBottom:4},children:["in ",t.cwd]}),(0,rt.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${p.border}`,borderRadius:4,fontFamily:Lv,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-all"},children:t.command})]}):(0,rt.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${p.border}`,borderRadius:4,fontFamily:Lv,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.text})}function Pv(e){let{approval:t}=e;return(0,rt.jsxs)("div",{style:{margin:"6px 8px",padding:10,borderRadius:4,border:`1px solid ${p.focusBorder}`,fontFamily:q},children:[(0,rt.jsxs)("div",{style:{marginBottom:8,fontSize:12},children:[(0,rt.jsx)("span",{style:{fontFamily:Lv},children:t.toolName})," ",(0,rt.jsx)("span",{style:{color:p.muted},children:kD(t.group)})]}),(0,rt.jsx)(zD,{preview:t.preview}),(0,rt.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,flexWrap:"wrap"},children:[(0,rt.jsx)("button",{type:"button",style:Me(!1),onClick:()=>e.onDecide(t.id,"approve"),children:"Approve"}),(0,rt.jsx)("button",{type:"button",style:J(),onClick:()=>e.onDecide(t.id,"deny"),children:"Deny"}),t.preview.kind==="command"?(0,rt.jsx)("button",{type:"button",style:J(),title:"Allow this exact command string in this workspace. Anything appended still prompts.",onClick:()=>e.onAlwaysAllow(t.id,"command"),children:"Always allow this command"}):(0,rt.jsxs)("button",{type:"button",style:J(),title:`Always allow ${t.toolName} in this workspace`,onClick:()=>e.onAlwaysAllow(t.id,"tool"),children:["Always allow ",t.toolName]})]})]})}var ae=H(de(),1),Yt=H(Ge(),1);var P=H(de(),1);function _0({size:e=16}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M1.5 1.5 L14.5 8 L1.5 14.5 L4 8 Z"})})}function S0({size:e=16}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:(0,P.jsx)("rect",{x:"3",y:"3",width:"10",height:"10",rx:"1.5"})})}function $0({size:e=16}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M10 3 L5 8 L10 13"})})}function k0({size:e=14}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,P.jsx)("rect",{x:"3",y:"5.5",width:"10",height:"7.5",rx:"2"}),(0,P.jsx)("line",{x1:"8",y1:"2",x2:"8",y2:"5.5"}),(0,P.jsx)("circle",{cx:"8",cy:"1.6",r:"1.1",fill:"currentColor",stroke:"none"}),(0,P.jsx)("circle",{cx:"6",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"}),(0,P.jsx)("circle",{cx:"10",cy:"9",r:"0.9",fill:"currentColor",stroke:"none"})]})}function z0({size:e=14}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,P.jsx)("circle",{cx:"8",cy:"5",r:"2.6"}),(0,P.jsx)("path",{d:"M2.8 14 a5.2 5.2 0 0 1 10.4 0"})]})}function lo({size:e=14}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M8 1.6 l1.7 3.6 3.9 .5 -2.9 2.7 .8 3.9 L8 10.4 l-3.5 1.9 .8 -3.9 -2.9 -2.7 3.9 -.5 Z"})})}function Ic({size:e=14}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M3 8.5 L6.5 12 L13 4.5"})})}function w0({size:e=14}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round","aria-hidden":"true",children:[(0,P.jsx)("line",{x1:"4",y1:"4",x2:"12",y2:"12"}),(0,P.jsx)("line",{x1:"12",y1:"4",x2:"4",y2:"12"})]})}function T0({size:e=14}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.6","aria-hidden":"true",children:[(0,P.jsx)("circle",{cx:"8",cy:"8",r:"5.5",opacity:"0.25"}),(0,P.jsx)("path",{d:"M8 2.5 a5.5 5.5 0 0 1 5.5 5.5",strokeLinecap:"round"})]})}function kn({size:e=14}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinecap:"round","aria-hidden":"true",children:[(0,P.jsx)("path",{d:"M3 4.5 h10"}),(0,P.jsx)("path",{d:"M6.5 4.5 V3 h3 v1.5"}),(0,P.jsx)("path",{d:"M4.3 4.5 l.6 8.2 h6.2 l.6 -8.2"})]})}function D0({size:e=14}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3","aria-hidden":"true",children:[(0,P.jsx)("rect",{x:"5.5",y:"5.5",width:"8",height:"8",rx:"1.5"}),(0,P.jsx)("path",{d:"M10.5 5.5 V4 a1.5 1.5 0 0 0 -1.5 -1.5 H4 A1.5 1.5 0 0 0 2.5 4 v5 A1.5 1.5 0 0 0 4 10.5 h1.5"})]})}function E0({size:e=14}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M11.2 2.3 l2.5 2.5 -8 8 -3.2 .7 .7 -3.2 Z"})})}function U0({size:e=16}){return(0,P.jsx)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,P.jsx)("path",{d:"M9.5 4 L5 8.5 a2.1 2.1 0 0 0 3 3 L12.5 7 a3.5 3.5 0 0 0-5-5 L3.5 6"})})}function j0({size:e=16}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,P.jsx)("path",{d:"M2.5 8a5.5 5.5 0 1 0 1.7-4"}),(0,P.jsx)("path",{d:"M2 2.5 V5.5 H5"}),(0,P.jsx)("path",{d:"M8 5 V8.4 L10.3 9.8"})]})}function O0({size:e=16}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,P.jsx)("line",{x1:"8",y1:"3",x2:"8",y2:"13"}),(0,P.jsx)("line",{x1:"3",y1:"8",x2:"13",y2:"8"})]})}function A0({size:e=16}){return(0,P.jsxs)("svg",{viewBox:"0 0 16 16",width:e,height:e,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round","aria-hidden":"true",children:[(0,P.jsx)("line",{x1:"2",y1:"4",x2:"14",y2:"4"}),(0,P.jsx)("line",{x1:"2",y1:"8",x2:"14",y2:"8"}),(0,P.jsx)("line",{x1:"2",y1:"12",x2:"14",y2:"12"}),(0,P.jsx)("circle",{cx:"6",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),(0,P.jsx)("circle",{cx:"10",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),(0,P.jsx)("circle",{cx:"6",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"})]})}var wD=5*1024*1024,C0=["image/png","image/jpeg","image/webp","image/gif"];async function TD(e){if(!C0.includes(e.type)||e.size>wD)return;let t=await e.arrayBuffer(),n="",i=new Uint8Array(t);for(let r=0;r<i.length;r+=8192)n+=String.fromCharCode(...i.subarray(r,r+8192));return{mediaType:e.type,data:btoa(n),name:e.name||"pasted image"}}function DD(e,t){let n=e.slice(0,t),i=n.lastIndexOf("@");if(i===-1)return;let r=n.slice(i+1);if(!/[\s@]/.test(r))return r}function Vv(e){let[t,n]=(0,Yt.useState)(""),[i,r]=(0,Yt.useState)([]),[o,a]=(0,Yt.useState)(void 0),[l,u]=(0,Yt.useState)(0),[c,s]=(0,Yt.useState)(void 0),d=(0,Yt.useRef)(null),f=x=>{x.style.height="auto",x.style.height=`${Math.min(x.scrollHeight,200)}px`},m=(0,Yt.useRef)(null),S=o!==void 0&&e.mentionCandidates.length>0,$=(0,Yt.useRef)(e.onQueryMentions);$.current=e.onQueryMentions,(0,Yt.useEffect)(()=>{if(o===void 0)return;let x=setTimeout(()=>$.current(o),120);return()=>clearTimeout(x)},[o]);let C=(x,N)=>{let R=DD(x,N);a(R),u(0)},v=async x=>{let N=[],R=0;for(let X of Array.from(x)){let Ve=await TD(X);Ve===void 0?R+=1:N.push(Ve)}N.length>0&&r(X=>[...X,...N]),s(R>0?`${R} file(s) skipped \u2014 images only (PNG, JPEG, WebP, GIF) up to 5MB.`:void 0)},g=x=>{let N=d.current,R=N?.selectionStart??t.length,Ve=t.slice(0,R).lastIndexOf("@");if(Ve===-1)return;let ur=x.includes(" ")?`@"${x}"`:`@${x}`,yn=`${t.slice(0,Ve)}${ur} ${t.slice(R)}`;n(yn),a(void 0);let Fr=Ve+ur.length+1;requestAnimationFrame(()=>{N?.focus(),N?.setSelectionRange(Fr,Fr)})},h=()=>{let x=t.trim();x.length===0&&i.length===0||(e.onSend(x,i),n(""),d.current!==null&&(d.current.style.height="auto"),r([]),a(void 0),s(void 0))},b=t.trim().length>0||i.length>0,j=x=>{let N=Array.from(x.clipboardData.files);N.length!==0&&(x.preventDefault(),v(N))};return(0,ae.jsxs)("div",{onDrop:x=>{x.dataTransfer.files.length!==0&&(x.preventDefault(),v(x.dataTransfer.files))},onDragOver:x=>{e.supportsVision&&x.preventDefault()},style:{borderTop:`1px solid ${p.border}`,flexShrink:0},children:[S&&(0,ae.jsx)("div",{role:"listbox","aria-label":"Workspace files",style:{maxHeight:160,overflowY:"auto",borderBottom:`1px solid ${p.border}`},children:e.mentionCandidates.map((x,N)=>(0,ae.jsx)("button",{type:"button",role:"option","aria-selected":N===l,onMouseDown:R=>{R.preventDefault(),g(x)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 12px",background:N===l?p.assistantBubble:"transparent",border:"none",color:p.foreground,cursor:"pointer",fontFamily:q,fontSize:12},children:x},x))}),e.queued.length>0&&(0,ae.jsx)("div",{style:{padding:"6px 10px 0",display:"flex",flexDirection:"column",gap:4},children:e.queued.map((x,N)=>(0,ae.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:6,fontSize:11,color:p.muted,borderLeft:`2px solid ${p.focusBorder}`,paddingLeft:6},children:[(0,ae.jsx)("span",{style:{flex:1,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:x}),(0,ae.jsx)("button",{type:"button",title:"Remove from the queue","aria-label":"Remove from the queue",onClick:()=>e.onUnqueue(N),style:{background:"transparent",border:"none",color:p.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${N}-${x.slice(0,24)}`))}),i.length>0&&(0,ae.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:i.map((x,N)=>(0,ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 6px",border:`1px solid ${p.border}`,borderRadius:3,fontSize:11,color:p.muted},children:[(0,ae.jsx)("img",{src:`data:${x.mediaType};base64,${x.data}`,alt:"",style:{width:20,height:20,objectFit:"cover",borderRadius:2}}),(0,ae.jsx)("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:x.name}),(0,ae.jsx)("button",{type:"button","aria-label":`Remove ${x.name}`,onClick:()=>r(R=>R.filter((X,Ve)=>Ve!==N)),style:{background:"transparent",border:"none",color:p.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${x.name}-${N}`))}),c!==void 0&&(0,ae.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:p.error},children:c}),i.length>0&&!e.supportsVision&&(0,ae.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:p.error},children:"This model is not known to accept images. If it does, tick \u201CSupports images\u201D in Settings \u2192 Providers \u2192 Edit \u2192 Model capability overrides."}),(0,ae.jsxs)("div",{style:{display:"flex",gap:4,alignItems:"flex-end",margin:8,padding:4,background:p.inputBackground,border:`1px solid ${p.inputBorder}`,borderRadius:4},children:[(0,ae.jsx)("textarea",{ref:d,value:t,rows:2,placeholder:e.isStreaming?"Add a message \u2014 it joins the current turn":"Message Light Code\u2026 @ to attach a file",onChange:x=>{n(x.target.value),C(x.target.value,x.target.selectionStart),f(x.target)},onClick:x=>C(t,x.currentTarget.selectionStart),onBlur:()=>a(void 0),onPaste:j,onKeyDown:x=>{if(S){if(x.key==="ArrowDown"){x.preventDefault(),u(N=>(N+1)%e.mentionCandidates.length);return}if(x.key==="ArrowUp"){x.preventDefault(),u(N=>(N-1+e.mentionCandidates.length)%e.mentionCandidates.length);return}if(x.key==="Enter"||x.key==="Tab"){let N=e.mentionCandidates[l];if(N!==void 0){x.preventDefault(),g(N);return}}if(x.key==="Escape"){x.preventDefault(),a(void 0);return}}x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),h())},style:{flex:1,resize:"none",background:"transparent",color:p.inputForeground,border:"none",outline:"none",padding:"5px 6px",margin:0,fontFamily:q,fontSize:13,lineHeight:1.45,minHeight:44,maxHeight:200,overflowY:"auto"}}),(0,ae.jsx)("input",{ref:m,type:"file",accept:C0.join(","),multiple:!0,hidden:!0,onChange:x=>{x.target.files!==null&&v(x.target.files),x.target.value=""}}),(0,ae.jsx)("button",{type:"button",title:e.supportsVision?"Attach an image":"Attach an image (this model is not known to accept images)","aria-label":"Attach an image",style:Re("secondary",e.isStreaming),disabled:e.isStreaming,onClick:()=>m.current?.click(),children:(0,ae.jsx)(U0,{})}),e.isStreaming?(0,ae.jsx)("button",{type:"button",title:"Cancel","aria-label":"Cancel",style:Re("secondary"),onClick:e.onCancel,children:(0,ae.jsx)(S0,{})}):(0,ae.jsx)("button",{type:"button",title:"Send","aria-label":"Send",style:Re("primary",!b),disabled:!b,onClick:h,children:(0,ae.jsx)(_0,{})})]}),(e.profiles.length>0||e.expertEnabled)&&(0,ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"0 10px 8px"},children:[e.profiles.length>0&&(0,ae.jsx)("select",{"aria-label":"Provider profile",title:"Which provider answers the next message",value:e.activeProfileId??"",disabled:e.isStreaming,onChange:x=>e.onSelectProfile(x.target.value),style:{...Bn(!0),cursor:e.isStreaming?"default":"pointer",maxWidth:"60%"},children:e.profiles.map(x=>(0,ae.jsxs)("option",{value:x.id,style:Be(),children:[x.label," \xB7 ",x.model]},x.id))}),e.searchConnections.length>0&&(0,ae.jsxs)("select",{"aria-label":"OpenSearch connection",title:"Which cluster this conversation may search. Change it between messages.",value:e.activeSearchId??"",disabled:e.isStreaming,onChange:x=>e.onSelectSearch(x.target.value.length>0?x.target.value:void 0),style:{...Bn(!0),cursor:e.isStreaming?"default":"pointer",maxWidth:"38%"},children:[(0,ae.jsx)("option",{value:"",style:Be(),children:"No search"}),e.searchConnections.map(x=>(0,ae.jsxs)("option",{value:x.id,style:Be(),children:["\u{1F50D} ",x.label]},x.id))]}),e.expertEnabled&&(0,ae.jsxs)("span",{title:"Claude is available as an expert. Ask it directly \u2014 say \u201Cask Claude \u2026\u201D.",style:{...Ba(),marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4},children:[(0,ae.jsx)(lo,{size:11}),"expert"]})]})]})}var te=H(de(),1),Hv=H(Ge(),1);function ED(e){let t=e.role==="assistant";return(0,te.jsxs)("div",{style:{padding:"8px 12px",margin:"6px 8px",borderRadius:4,background:t?p.assistantBubble:"transparent",border:t?"none":`1px solid ${p.border}`,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:[(0,te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:5,color:p.muted,marginBottom:4,fontFamily:q},children:[(0,te.jsx)("span",{title:t?"Assistant":"You","aria-label":t?"Assistant":"You",style:{display:"flex"},children:t?(0,te.jsx)(k0,{}):(0,te.jsx)(z0,{})}),e.expertInformed===!0&&(0,te.jsx)("span",{title:"Informed by an expert consultation","aria-label":"Informed by an expert consultation",style:{display:"flex",color:p.focusBorder},children:(0,te.jsx)(lo,{size:12})})]}),e.content]})}var qv="var(--vscode-editor-font-family, monospace)";function UD(e){let[t,n]=(0,Hv.useState)(!1),{toolCall:i}=e,r=i.result===void 0,o=i.name==="ask_expert";return(0,te.jsxs)("div",{style:{margin:"6px 8px",borderRadius:4,border:`1px solid ${i.isError===!0?p.error:p.border}`,overflow:"hidden"},children:[(0,te.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",padding:"6px 10px",background:"transparent",border:"none",color:p.foreground,cursor:"pointer",fontFamily:q,fontSize:12,textAlign:"left"},children:[(0,te.jsx)("span",{style:{color:p.muted},children:t?"\u25BE":"\u25B8"}),o&&(0,te.jsx)("span",{title:"Expert consultation","aria-label":"Expert consultation",style:{display:"flex",color:p.focusBorder},children:(0,te.jsx)(lo,{})}),(0,te.jsx)("span",{style:{fontFamily:qv},children:i.name}),!o&&e.expertInformed===!0&&(0,te.jsx)("span",{title:"Following expert advice","aria-label":"Following expert advice",style:{display:"flex",color:p.focusBorder},children:(0,te.jsx)(lo,{size:12})}),(0,te.jsx)("span",{title:r?"Running":i.isError===!0?"Failed":"Done","aria-label":r?"Running":i.isError===!0?"Failed":"Done",style:{display:"flex",marginLeft:"auto",color:i.isError===!0?p.error:r?p.muted:"var(--vscode-testing-iconPassed, #3fb950)"},children:r?(0,te.jsx)(T0,{}):i.isError===!0?(0,te.jsx)(w0,{}):(0,te.jsx)(Ic,{})})]}),t&&(0,te.jsxs)("div",{style:{padding:"0 10px 8px",fontSize:12,fontFamily:qv},children:[(0,te.jsx)("div",{style:{color:p.muted,marginBottom:2},children:"Arguments"}),(0,te.jsx)("pre",{style:{margin:"0 0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:i.arguments}),i.result!==void 0&&(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)("div",{style:{color:p.muted,marginBottom:2},children:"Result"}),(0,te.jsx)("pre",{style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:300,overflowY:"auto"},children:i.result})]})]})]})}function jD(e){let[t,n]=(0,Hv.useState)(!1);return(0,te.jsxs)("div",{style:{margin:"4px 8px"},children:[(0,te.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,background:"transparent",border:"none",color:p.muted,cursor:"pointer",padding:"2px 0",fontFamily:q,fontSize:11,fontStyle:"italic"},children:[(0,te.jsx)("span",{children:t?"\u25BE":"\u25B8"}),(0,te.jsx)("span",{children:e.pending===!0?"Thinking\u2026":"Thought process"})]}),t&&(0,te.jsx)("pre",{style:{margin:"2px 0 0 14px",padding:8,borderLeft:`2px solid ${p.border}`,color:p.muted,fontFamily:qv,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:320,overflowY:"auto"},children:e.content})]})}function Gv(e){return(0,te.jsxs)("div",{role:"log","aria-live":"polite",children:[e.messages.map((t,n)=>t.kind==="tool"?(0,te.jsx)(UD,{toolCall:t.toolCall,expertInformed:t.expertInformed},n):t.kind==="reasoning"?(0,te.jsx)(jD,{content:t.content,pending:t.pending},n):(0,te.jsx)(ED,{role:t.role,content:t.content,expertInformed:t.expertInformed},n)),e.error!==void 0&&(0,te.jsxs)("div",{role:"alert",style:{padding:"8px 12px",margin:"6px 8px",color:p.error},children:["Error: ",e.error]})]})}var it=H(de(),1),I0=H(Ge(),1);var N0=[{key:"system",label:"System prompt",color:"var(--vscode-charts-blue, #4a90d9)"},{key:"toolDefinitions",label:"Tool definitions",color:"var(--vscode-charts-purple, #b180d7)"},{key:"history",label:"Conversation",color:"var(--vscode-charts-green, #89d185)"},{key:"results",label:"Tool results",color:"var(--vscode-charts-orange, #d18616)"}];function Zc(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function Z0(e){let[t,n]=(0,I0.useState)(!1),{usage:i}=e;if(i===void 0||i.total===0)return null;let r=i.contextWindow>0?i.contextWindow:void 0,o=r!==void 0?i.total/r:void 0,a=o!==void 0&&o>.75;return(0,it.jsxs)("div",{style:{padding:"4px 12px 6px",borderTop:`1px solid ${p.border}`,fontFamily:q,fontSize:11},children:[(0,it.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",background:"transparent",border:"none",color:p.muted,cursor:"pointer",padding:0,fontFamily:q,fontSize:11,textAlign:"left"},children:[(0,it.jsx)("span",{children:t?"\u25BE":"\u25B8"}),(0,it.jsxs)("span",{style:{color:a?p.error:p.muted},children:[Zc(i.total),r!==void 0?` / ${Zc(r)}`:""," tokens",i.estimated?" (est.)":""]}),i.cacheHitRate!==void 0&&(0,it.jsxs)("span",{style:{marginLeft:"auto"},children:["cache ",Math.round(i.cacheHitRate*100),"%"]})]}),(0,it.jsx)("div",{style:{display:"flex",height:4,borderRadius:2,overflow:"hidden",marginTop:4,background:p.border},children:N0.map(l=>{let u=i[l.key],c=i.total>0?u/i.total*100:0;return c<=0?null:(0,it.jsx)("div",{title:`${l.label}: ${Zc(u)}`,style:{width:`${c}%`,background:l.color}},l.key)})}),t&&(0,it.jsxs)("div",{style:{marginTop:6,color:p.muted},children:[N0.map(l=>(0,it.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,it.jsx)("span",{style:{width:8,height:8,borderRadius:2,background:l.color,flexShrink:0}}),(0,it.jsx)("span",{children:l.label}),(0,it.jsx)("span",{style:{marginLeft:"auto"},children:Zc(i[l.key])})]},l.key)),i.supersededCount>0&&(0,it.jsxs)("div",{style:{marginTop:4},children:[i.supersededCount," superseded file read",i.supersededCount===1?"":"s"," dropped"]}),i.compactedCount>0&&(0,it.jsxs)("div",{children:[i.compactedCount," earlier message",i.compactedCount===1?"":"s"," summarised"]}),i.estimated&&(0,it.jsx)("div",{style:{marginTop:4,fontStyle:"italic"},children:"Estimated from text length \u2014 the provider did not report usage."})]})]})}var co=H(de(),1),uo=H(Ge(),1);function M0(e){let[t,n]=(0,uo.useState)(0),[i]=(0,uo.useState)(()=>Date.now()),[r,o]=(0,uo.useState)(0);(0,uo.useEffect)(()=>{let u=setInterval(()=>{n(c=>c+1),o(Math.floor((Date.now()-i)/1e3))},400);return()=>clearInterval(u)},[i]);let a=t%4,l="\u2022".repeat(a).padEnd(3,"\xA0");return(0,co.jsxs)("div",{role:"status","aria-live":"polite","aria-label":e.label??"Working",style:{display:"flex",alignItems:"center",gap:8,padding:"8px 12px",margin:"6px 8px",color:p.muted,fontFamily:q,fontSize:12,fontStyle:"italic"},children:[(0,co.jsx)("span",{style:{letterSpacing:2,minWidth:26},children:l}),(0,co.jsx)("span",{children:e.label??"Thinking"}),r>=3&&(0,co.jsxs)("span",{style:{marginLeft:"auto"},children:[r,"s"]})]})}function Jv(e){let t=(()=>{if(!e.isStreaming||e.pendingApproval!==void 0)return;let n=e.messages[e.messages.length-1];if(n?.kind==="tool"&&n.toolCall.result===void 0)return`Running ${n.toolCall.name}`;if(!(n?.kind==="text"&&n.role==="assistant"&&n.pending===!0)&&!(n?.kind==="reasoning"&&n.pending===!0))return"Thinking"})();return(0,Ft.jsxs)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[(0,Ft.jsxs)("div",{style:{flex:1,minHeight:0,overflowY:"auto"},children:[(0,Ft.jsx)(Gv,{messages:e.messages,error:e.error}),t!==void 0&&(0,Ft.jsx)(M0,{label:t}),e.pendingApproval!==void 0&&(0,Ft.jsx)(Pv,{approval:e.pendingApproval,onDecide:e.onDecideApproval,onAlwaysAllow:e.onAlwaysAllow})]}),e.canRollback&&(0,Ft.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"6px 10px",borderTop:`1px solid ${p.border}`,color:p.muted,fontSize:11,flexShrink:0},children:[(0,Ft.jsx)("span",{children:"Files were changed this task."}),(0,Ft.jsx)("button",{type:"button",style:J(),onClick:e.onRollback,children:"Undo all changes"})]}),(0,Ft.jsx)(Z0,{usage:e.usage}),(0,Ft.jsx)(Vv,{isStreaming:e.isStreaming,onSend:e.onSend,onCancel:e.onCancel,supportsVision:e.supportsVision,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,expertEnabled:e.expertEnabled,queued:e.queued,onUnqueue:e.onUnqueue,searchConnections:e.searchConnections,activeSearchId:e.activeSearchId,onSelectSearch:e.onSelectSearch})]})}var Yv=H(de(),1);function Fv(e){let t=$d(e.modeId);return(0,Yv.jsx)("select",{value:t.id,disabled:e.disabled,title:t.description,onChange:n=>e.onChange(n.target.value),style:{...Bn(!0),cursor:e.disabled?"default":"pointer"},children:Yl.map(n=>(0,Yv.jsx)("option",{value:n.id,style:Be(),children:n.name},n.id))})}var Qt=H(de(),1),e$=H(Ge(),1);var Oe=H(de(),1);var Xv="var(--vscode-editor-font-family, monospace)",OD=[{group:"read",label:"Reading files",description:"read_file, list_files, search_files"},{group:"edit",label:"Editing files",description:"write_to_file, apply_diff"},{group:"command",label:"Running commands",description:"execute_command \u2014 the broadest grant here"},{group:"mcp",label:"MCP tools",description:"Tools provided by external MCP servers"}];function AD(e){return(0,Oe.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginBottom:10,cursor:"pointer"},children:[(0,Oe.jsx)("input",{type:"checkbox",checked:e.checked,onChange:t=>e.onChange(t.target.checked),style:{marginTop:2}}),(0,Oe.jsxs)("span",{children:[(0,Oe.jsx)("span",{style:{display:"block",fontSize:13},children:e.label}),(0,Oe.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11},children:e.description})]})]})}function R0(e){return(0,Oe.jsxs)("div",{style:{marginTop:16},children:[(0,Oe.jsx)("label",{style:ee(),children:e.title}),e.entries.length===0?(0,Oe.jsx)("p",{style:{color:p.muted,fontSize:12,margin:0},children:e.empty}):e.entries.map(t=>(0,Oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 0",borderBottom:`1px solid ${p.border}`},children:[(0,Oe.jsx)("code",{style:{flex:1,fontFamily:Xv,fontSize:12,wordBreak:"break-all"},children:t}),(0,Oe.jsx)("button",{type:"button",title:"Revoke this permission","aria-label":"Revoke this permission",style:{...Re("secondary"),color:p.error},onClick:()=>e.onRevoke(t),children:(0,Oe.jsx)(kn,{})})]},t))]})}function Kv(e){let t=e.approvals.autoApprove??{};return(0,Oe.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:q},children:[(0,Oe.jsx)("h3",{style:{margin:"0 0 4px",color:p.foreground},children:"Approvals"}),(0,Oe.jsx)("p",{style:{color:p.muted,fontSize:11,marginTop:0,marginBottom:12},children:"These apply to this workspace only, and are stored outside it \u2014 a repository cannot grant itself permissions."}),(0,Oe.jsx)("label",{style:ee(),children:"Skip the prompt for\u2026"}),OD.map(n=>(0,Oe.jsx)(AD,{checked:t[n.group]===!0,label:n.label,description:n.description,onChange:i=>e.onSetAutoApprove(n.group,i)},n.group)),(0,Oe.jsx)(R0,{title:"Always-allowed tools",empty:"None. Use \u201CAlways allow\u201D on an approval prompt to add one.",entries:e.approvals.allowedTools??[],onRevoke:e.onRevokeTool}),(0,Oe.jsx)(R0,{title:"Always-allowed commands (exact match)",empty:"None. Use \u201CAlways allow this command\u201D on a command prompt to add one.",entries:e.approvals.allowedCommands??[],onRevoke:e.onRevokeCommand}),(0,Oe.jsxs)("p",{style:{color:p.muted,fontSize:11},children:["A command is matched byte-for-byte. Allowing ",(0,Oe.jsx)("code",{style:{fontFamily:Xv},children:"npm test"})," does not allow ",(0,Oe.jsx)("code",{style:{fontFamily:Xv},children:"npm test && something-else"}),"."]})]})}var B=H(de(),1),pn=H(Ge(),1);var M=H(de(),1);var br=H(Ge(),1);var Ln=H(de(),1);var CD="var(--vscode-editor-font-family, monospace)";function oi(e){let t=e.browse;return(0,Ln.jsxs)("div",{style:{marginBottom:10},children:[(0,Ln.jsx)("label",{htmlFor:e.id,style:ee(),children:e.label}),(0,Ln.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,Ln.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:n=>e.onChange(n.target.value),style:{...se(),fontFamily:CD,...e.error!==void 0?{borderColor:p.error}:{}}}),t!==void 0&&e.onBrowse!==void 0&&(0,Ln.jsx)("button",{type:"button",style:J(),title:t.kind==="folder"?"Choose a folder":"Choose a file",onClick:()=>e.onBrowse?.(t),children:"Browse"}),e.children]}),e.error!==void 0?(0,Ln.jsx)("span",{style:Nt(),children:e.error}):e.hint!==void 0&&(0,Ln.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11},children:e.hint})]})}var La="var(--vscode-editor-font-family, monospace)",B0=[{value:"python",label:"Python (venv)",transport:"stdio",blurb:"A script run by the interpreter inside a virtualenv. Light Code starts the process and talks to it over stdio."},{value:"npx",label:"npm package",transport:"stdio",blurb:"Fetched and run through npx. Light Code starts the process and talks to it over stdio."},{value:"custom",label:"Command",transport:"stdio",blurb:"Any executable, with arguments you supply. Light Code starts the process and talks to it over stdio."},{value:"http",label:"HTTP",transport:"Streamable HTTP",blurb:"A server already running somewhere. Light Code connects to it rather than starting it."}];function Mc(e){return(0,M.jsxs)("div",{style:{marginBottom:10},children:[(0,M.jsx)("label",{htmlFor:e.id,style:ee(),children:e.label}),(0,M.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:t=>e.onChange(t.target.value),style:{...se(),...e.mono===!0?{fontFamily:La}:{},...e.error!==void 0?{borderColor:p.error}:{}}}),e.error!==void 0?(0,M.jsx)("span",{style:Nt(),children:e.error}):e.hint!==void 0&&(0,M.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11},children:e.hint})]})}function L0(e){let[t,n]=(0,br.useState)(()=>Object.entries(e.pairs)),i=r=>{n(r),e.onChange(Object.fromEntries(r.filter(([o])=>o.trim().length>0)))};return(0,M.jsxs)("div",{style:{marginBottom:10},children:[(0,M.jsx)("label",{style:ee(),children:e.label}),t.map(([r,o],a)=>(0,M.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:4},children:[(0,M.jsx)("input",{"aria-label":`${e.label} name ${a+1}`,value:r,spellCheck:!1,placeholder:"NAME",onChange:l=>i(t.map((u,c)=>c===a?[l.target.value,u[1]]:u)),style:{...se(),fontFamily:La,flex:1}}),(0,M.jsx)("input",{"aria-label":`${e.label} value ${a+1}`,value:o,spellCheck:!1,placeholder:"value",onChange:l=>i(t.map((u,c)=>c===a?[u[0],l.target.value]:u)),style:{...se(),fontFamily:La,flex:2}}),(0,M.jsx)("button",{type:"button","aria-label":`Remove ${r.length>0?r:`row ${a+1}`}`,style:Re("ghost"),onClick:()=>i(t.filter((l,u)=>u!==a)),children:(0,M.jsx)(kn,{})})]},a)),(0,M.jsx)("button",{type:"button",style:J(),onClick:()=>n([...t,["",""]]),children:"Add"}),(0,M.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11,marginTop:4},children:e.hint})]})}function P0(e){let[t,n]=(0,br.useState)(e.initialName),[i,r]=(0,br.useState)(()=>e.initialConfig!==void 0?Tv(e.initialConfig):Ra),[o,a]=(0,br.useState)(!1);(0,br.useEffect)(()=>{let $=e.probe?.interpreter;$!==void 0&&r(C=>({...C,interpreter:$,venvDir:e.probe?.venvDir??C.venvDir}))},[e.probe]),(0,br.useEffect)(()=>{let $=e.pickedPath;if($===void 0)return;let C={"mcp.script":"script","mcp.venvDir":"venvDir","mcp.interpreter":"interpreter","mcp.cwd":"cwd"}[$.purpose];C!==void 0&&r(v=>({...v,[C]:$.path}))},[e.pickedPath]);let l=Dv(t,i),u=t.trim()!==e.initialName&&e.existingNames.includes(t.trim())?"A server with this name already exists.":void 0,c=l.name??u,s=Object.keys(l).length>0||u!==void 0,d=$=>o?l[$]:void 0,f=$=>r({...i,...$}),m=B0.find($=>$.value===i.kind),S=(()=>{let $=Ac(i,e.platform);return"url"in $?$.url:[$.command,...$.args??[]].join(" ")})();return(0,M.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:q},children:[(0,M.jsx)("h3",{style:{margin:"0 0 12px",color:p.foreground},children:e.initialName.length===0?"Add MCP server":`Edit ${e.initialName}`}),(0,M.jsx)(Mc,{id:"lc-mcp-name",label:"Name",value:t,placeholder:"filesystem",hint:"Prefixes every tool this server exposes, e.g. filesystem__read_file.",...o&&c!==void 0?{error:c}:{},onChange:n}),(0,M.jsx)("label",{style:ee(),children:"Type"}),(0,M.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:4},children:B0.map($=>{let C=$.value===i.kind;return(0,M.jsx)("button",{type:"button",title:`${$.blurb} Transport: ${$.transport}.`,onClick:()=>f({kind:$.value}),style:{padding:"3px 10px",fontFamily:q,fontSize:11,borderRadius:3,cursor:"pointer",background:C?p.buttonBackground:"transparent",color:C?p.buttonForeground:p.muted,border:`1px solid ${C?p.buttonBackground:p.border}`},children:$.label},$.value)})}),(0,M.jsx)("p",{style:{color:p.muted,fontSize:11,margin:"0 0 12px"},children:m?.blurb}),i.kind==="python"&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(oi,{id:"lc-mcp-script",label:"Server script",value:i.script,placeholder:e.platform==="win32"?"C:\\work\\my-server\\server.py":"/home/me/my-server/server.py",hint:"Your FastMCP entry point. Pick this first \u2014 the virtualenv beside it is found automatically.",browse:{purpose:"mcp.script",kind:"file",extensions:["py"]},onBrowse:e.onBrowse,...d("script")!==void 0?{error:d("script")}:{},onChange:$=>f({script:$})}),(0,M.jsx)(oi,{id:"lc-mcp-venv",label:"Virtualenv folder",value:i.venvDir,placeholder:e.platform==="win32"?"C:\\work\\my-server\\.venv":"/home/me/my-server/.venv",hint:"Leave blank and press Detect to search beside the script.",browse:{purpose:"mcp.venvDir",kind:"folder"},onBrowse:e.onBrowse,...d("venvDir")!==void 0?{error:d("venvDir")}:{},onChange:$=>f({venvDir:$}),children:(0,M.jsx)("button",{type:"button",style:J(),title:"Look on disk for the interpreter, or for a virtualenv beside the script",onClick:()=>e.onDetect(i.venvDir,i.script),children:"Detect"})}),e.probe!==void 0&&(0,M.jsx)("div",{style:{fontSize:11,marginBottom:8,color:e.probe.interpreter!==void 0?p.muted:p.error},children:e.probe.detail}),(0,M.jsx)(oi,{id:"lc-mcp-interpreter",label:"Python interpreter",value:i.interpreter,placeholder:i.venvDir.trim().length>0?Oc(i.venvDir.trim(),e.platform):e.platform==="win32"?"python.exe":"python3",hint:"Filled in by Detect. Override it for a conda environment, a system Python, or any layout detection does not recognise \u2014 this is the executable that actually runs.",browse:{purpose:"mcp.interpreter",kind:"file"},onBrowse:e.onBrowse,onChange:$=>f({interpreter:$})})]}),i.kind==="npx"&&(0,M.jsx)(Mc,{id:"lc-mcp-package",label:"Package",value:i.packageName,mono:!0,placeholder:"@modelcontextprotocol/server-filesystem",hint:"Run with -y so it installs without waiting for a confirmation nobody can answer. It is fetched from the network on first use.",...d("packageName")!==void 0?{error:d("packageName")}:{},onChange:$=>f({packageName:$})}),i.kind==="custom"&&(0,M.jsx)(Mc,{id:"lc-mcp-command",label:"Command",value:i.command,mono:!0,placeholder:"docker",hint:"An executable on PATH, or an absolute path to one.",...d("command")!==void 0?{error:d("command")}:{},onChange:$=>f({command:$})}),i.kind==="http"&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(Mc,{id:"lc-mcp-url",label:"URL",value:i.url,mono:!0,placeholder:"https://mcp.internal/mcp",...d("url")!==void 0?{error:d("url")}:{},onChange:$=>f({url:$})}),(0,M.jsx)(L0,{idPrefix:"lc-mcp-header",label:"Headers",hint:"Use ${secret:NAME} for a token \u2014 it is read from secret storage at connect time and never written to the config file.",pairs:i.headers,onChange:$=>f({headers:$})})]}),i.kind!=="http"&&(0,M.jsxs)(M.Fragment,{children:[(0,M.jsxs)("div",{style:{marginBottom:10},children:[(0,M.jsx)("label",{htmlFor:"lc-mcp-args",style:ee(),children:"Arguments"}),(0,M.jsx)("textarea",{id:"lc-mcp-args",value:i.args.join(`
80
+ `);return t[t.length-1]===""&&t.pop(),t}var ry="var(--vscode-editor-font-family, monospace)";function _A(e){switch(e){case"edit":return"wants to modify a file";case"command":return"wants to run a command";case"read":return"wants to read from the workspace";case"mcp":return"wants to use an external tool";default:return"wants to act"}}function $A(e){let{preview:t}=e;return t.kind==="diff"?(0,ot.jsxs)("div",{children:[t.note!==void 0&&(0,ot.jsx)("div",{style:{color:s.muted,fontSize:11,marginBottom:4},children:t.note}),(0,ot.jsx)(Al,{path:t.path,before:t.before,after:t.after})]}):t.kind==="command"?(0,ot.jsxs)("div",{children:[(0,ot.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:4},children:["in ",t.cwd]}),(0,ot.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${s.border}`,borderRadius:4,fontFamily:ry,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-all"},children:t.command})]}):(0,ot.jsx)("pre",{style:{margin:0,padding:"8px 10px",border:`1px solid ${s.border}`,borderRadius:4,fontFamily:ry,fontSize:12,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.text})}function oy(e){let{approval:t}=e;return(0,ot.jsxs)("div",{className:"lc-fade-up",style:{margin:"6px 10px 6px 40px",padding:10,borderRadius:12,border:`1px solid ${s.accent}`,boxShadow:`0 0 0 3px ${s.accentSoft}`,fontFamily:Z},children:[(0,ot.jsxs)("div",{style:{marginBottom:8,fontSize:12},children:[(0,ot.jsx)("span",{style:{fontFamily:ry},children:t.toolName})," ",(0,ot.jsx)("span",{style:{color:s.muted},children:_A(t.group)})]}),(0,ot.jsx)($A,{preview:t.preview}),(0,ot.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,flexWrap:"wrap"},children:[(0,ot.jsx)("button",{type:"button",className:"lc-btn-accent",title:"Approve \u2014 run this once","aria-label":"Approve, run this once",style:{...pe("primary"),width:34},onClick:()=>e.onDecide(t.id,"approve"),children:(0,ot.jsx)(ti,{size:16})}),(0,ot.jsx)("button",{type:"button",title:"Deny \u2014 do not run this","aria-label":"Deny, do not run this",style:{...pe("secondary"),width:34},onClick:()=>e.onDecide(t.id,"deny"),children:(0,ot.jsx)(Ho,{size:16})}),t.alwaysScope==="folder"?(0,ot.jsx)("button",{type:"button",style:D(),title:"Always allow reads from the folder this file is in. Added to Settings -> Approvals -> Folders, where you can remove it.",onClick:()=>e.onAlwaysAllow(t.id,"folder"),children:"Always allow this folder"}):t.preview.kind==="command"?(0,ot.jsx)("button",{type:"button",style:D(),title:"Allow this exact command string in this workspace. Anything appended still prompts.",onClick:()=>e.onAlwaysAllow(t.id,"command"),children:"Always allow this command"}):(0,ot.jsxs)("button",{type:"button",style:D(),title:`Always allow ${t.toolName} in this workspace`,onClick:()=>e.onAlwaysAllow(t.id,"tool"),children:["Always allow ",t.toolName]})]})]})}var ye=P(ie(),1),mn=P(he(),1);function Uu(e,t){let n=e.slice(0,t),r=n.lastIndexOf("@");if(r===-1)return;let i=n.slice(r+1);if(!/[\s@]/.test(i))return i}function wA(e){return e.includes(" ")?`@"${e}"`:`@${e}`}function Ou(e,t,n){let i=e.slice(0,t).lastIndexOf("@");if(i===-1)return;let o=wA(n);return{text:`${e.slice(0,i)}${o} ${e.slice(t)}`,caret:i+o.length+1}}var Vt=P(ie(),1),En=P(he(),1);var L_=260;function Je(e){let[t,n]=(0,En.useState)(!1),[r,i]=(0,En.useState)(0),[o,a]=(0,En.useState)(void 0),l=(0,En.useRef)(null),c=(0,En.useRef)(null),u=e.options.findIndex(h=>h.value===e.value),d=u>=0?e.options[u]:void 0,m=()=>{let h=l.current;if(h===null)return;let g=h.getBoundingClientRect(),b=window.innerHeight-g.bottom,v=b<Math.min(L_,e.options.length*28+8)&&g.top>b;a({left:g.left,top:v?g.top:g.bottom,width:g.width,above:v})};(0,En.useLayoutEffect)(()=>{t&&m()},[t]),(0,En.useEffect)(()=>{if(!t)return;let h=()=>n(!1),g=v=>{let I=v.target;I!==null&&(l.current?.contains(I)===!0||c.current?.contains(I)===!0)||h()},b=v=>{let I=v.target;I!==null&&c.current?.contains(I)===!0||h()};return window.addEventListener("scroll",b,!0),window.addEventListener("resize",h),document.addEventListener("pointerdown",g,!0),()=>{window.removeEventListener("scroll",b,!0),window.removeEventListener("resize",h),document.removeEventListener("pointerdown",g,!0)}},[t]),(0,En.useEffect)(()=>{t&&c.current?.querySelector(`[data-index="${r}"]`)?.scrollIntoView({block:"nearest"})},[r,t]);let p=()=>{i(u>=0?u:0),n(!0)},f=h=>{let g=e.options[h];g===void 0||g.disabled===!0||(e.onChange(g.value),n(!1),l.current?.focus())},x=h=>{if(e.options.length===0)return;let g=r;for(let b=0;b<e.options.length&&(g=(g+h+e.options.length)%e.options.length,e.options[g]?.disabled===!0);b++);i(g)},_=h=>{if(e.disabled!==!0){if(!t){(h.key==="ArrowDown"||h.key==="ArrowUp"||h.key==="Enter"||h.key===" ")&&(h.preventDefault(),p());return}h.key==="ArrowDown"?(h.preventDefault(),x(1)):h.key==="ArrowUp"?(h.preventDefault(),x(-1)):h.key==="Home"?(h.preventDefault(),i(0)):h.key==="End"?(h.preventDefault(),i(e.options.length-1)):h.key==="Enter"||h.key===" "?(h.preventDefault(),f(r)):(h.key==="Escape"||h.key==="Tab")&&n(!1)}},O=d?.label??e.placeholder??"";return(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsxs)("button",{ref:l,id:e.id,type:"button",role:"combobox","aria-expanded":t,"aria-haspopup":"listbox","aria-label":e.ariaLabel,title:e.title,disabled:e.disabled,onClick:()=>t?n(!1):p(),onKeyDown:_,style:{...N_(e.compact),display:"inline-flex",alignItems:"center",gap:6,textAlign:"left",cursor:e.disabled===!0?"default":"pointer",opacity:e.disabled===!0?.6:1,...e.style},children:[(0,Vt.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:d===void 0?s.muted:s.inputForeground},children:O}),(0,Vt.jsx)("span",{"aria-hidden":"true",style:{display:"flex",flexShrink:0,color:s.muted,transform:t?"rotate(-90deg)":"rotate(90deg)",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,Vt.jsx)(Pr,{size:e.compact===!0?10:12})})]}),t&&o!==void 0&&(0,Vt.jsxs)("div",{ref:c,role:"listbox","aria-label":e.ariaLabel,className:"lc-scroll lc-fade-up",style:{position:"fixed",left:o.left,width:Math.max(o.width,160),...o.above?{bottom:window.innerHeight-o.top+4}:{top:o.top+4},maxHeight:L_,overflowY:"auto",zIndex:1e3,background:s.inputBackground,border:`1px solid ${s.accent}`,borderRadius:8,boxShadow:`0 6px 20px rgba(0, 0, 0, 0.35), 0 0 0 3px ${s.accentSoft}`,padding:3,fontFamily:Z},children:[e.options.length===0&&(0,Vt.jsx)("div",{style:{padding:"6px 8px",color:s.muted,fontSize:12},children:"Nothing to choose from"}),e.options.map((h,g)=>{let b=h.value===e.value,v=g===r;return(0,Vt.jsxs)("div",{role:"option","data-index":g,"aria-selected":b,"aria-disabled":h.disabled===!0,onPointerEnter:()=>h.disabled!==!0&&i(g),onPointerDown:I=>{I.preventDefault(),f(g)},style:{display:"flex",alignItems:"center",gap:8,padding:e.compact===!0?"4px 8px":"6px 8px",borderRadius:6,cursor:h.disabled===!0?"default":"pointer",opacity:h.disabled===!0?.5:1,background:v?s.accent:"transparent",color:v?s.accentContrast:s.inputForeground,fontSize:e.compact===!0?11:13},children:[(0,Vt.jsxs)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:[h.label,h.detail!==void 0&&(0,Vt.jsx)("span",{style:{marginLeft:6,opacity:.7,color:"inherit"},children:h.detail})]}),b&&(0,Vt.jsx)("span",{"aria-hidden":"true",style:{width:5,height:5,borderRadius:"50%",flexShrink:0,background:v?s.accentContrast:s.accent}})]},h.value)})]})]})}var zA=5*1024*1024,P_=["image/png","image/jpeg","image/webp","image/gif"],TA=512*1024;function CA(e){return e.includes("\0")}async function EA(e){if(e.size>TA)return{error:`${e.name} is too large to attach (${Math.round(e.size/1024)}KB). Put it in the workspace and ask me to read it \u2014 read_file can page through any size.`};let t=await e.text();return CA(t)?{error:`${e.name} is not a text file, so there is nothing readable to attach.`}:{name:e.name||"attachment",text:t}}async function DA(e){if(!P_.includes(e.type)||e.size>zA)return;let t=await e.arrayBuffer(),n="",r=new Uint8Array(t);for(let i=0;i<r.length;i+=8192)n+=String.fromCharCode(...r.subarray(i,i+8192));return{mediaType:e.type,data:btoa(n),name:e.name||"pasted image"}}function ay(e){let[t,n]=(0,mn.useState)(""),[r,i]=(0,mn.useState)([]),[o,a]=(0,mn.useState)([]),[l,c]=(0,mn.useState)(void 0),[u,d]=(0,mn.useState)(0),[m,p]=(0,mn.useState)(void 0),f=(0,mn.useRef)(null),x=w=>{w.style.height="auto",w.style.height=`${Math.min(w.scrollHeight,200)}px`},_=(0,mn.useRef)(null),O=l!==void 0&&e.mentionCandidates.length>0,h=(0,mn.useRef)(e.onQueryMentions);h.current=e.onQueryMentions,(0,mn.useEffect)(()=>{if(l===void 0)return;let w=setTimeout(()=>h.current(l),120);return()=>clearTimeout(w)},[l]);let g=(w,F)=>{let $e=Uu(w,F);c($e),d(0)},b=async w=>{let F=[],$e=[],Ce=[];for(let We of Array.from(w)){if(P_.includes(We.type)){let zn=await DA(We);zn===void 0?Ce.push(`${We.name} is larger than 5MB.`):F.push(zn);continue}let sn=await EA(We);"error"in sn?Ce.push(sn.error):$e.push(sn)}F.length>0&&i(We=>[...We,...F]),$e.length>0&&a(We=>[...We,...$e]),p(Ce.length>0?Ce.join(" "):void 0)},v=w=>{let F=f.current,$e=F?.selectionStart??t.length,Ce=Ou(t,$e,w);Ce!==void 0&&(n(Ce.text),c(void 0),requestAnimationFrame(()=>{F?.focus(),F?.setSelectionRange(Ce.caret,Ce.caret)}))},I=()=>{let w=t.trim();if(w.length===0&&r.length===0&&o.length===0)return;let F=o.map(Ce=>`--- ${Ce.name} ---
81
+ \`\`\`
82
+ ${Ce.text}
83
+ \`\`\``).join(`
84
+
85
+ `),$e=F.length>0?`${F}
86
+
87
+ ${w}`:w;e.onSend($e,r),a([]),n(""),f.current!==null&&(f.current.style.height="auto"),i([]),c(void 0),p(void 0)},J=t.trim().length>0||r.length>0||o.length>0,L=w=>{let F=Array.from(w.clipboardData.files);F.length!==0&&(w.preventDefault(),b(F))};return(0,ye.jsxs)("div",{onDrop:w=>{w.dataTransfer.files.length!==0&&(w.preventDefault(),b(w.dataTransfer.files))},onDragOver:w=>{e.supportsVision&&w.preventDefault()},style:{borderTop:`1px solid ${s.border}`,flexShrink:0},children:[O&&(0,ye.jsx)("div",{role:"listbox","aria-label":"Workspace files",className:"lc-scroll lc-fade-up",style:{maxHeight:160,overflowY:"auto",borderBottom:`1px solid ${s.border}`},children:e.mentionCandidates.map((w,F)=>(0,ye.jsx)("button",{type:"button",role:"option","aria-selected":F===u,onMouseDown:$e=>{$e.preventDefault(),v(w)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 12px",background:F===u?s.accent:"transparent",border:"none",color:F===u?s.accentContrast:s.foreground,cursor:"pointer",fontFamily:Z,fontSize:12},children:w},w))}),e.queued.length>0&&(0,ye.jsx)("div",{style:{padding:"6px 10px 0",display:"flex",flexDirection:"column",gap:4},children:e.queued.map((w,F)=>(0,ye.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:6,fontSize:11,color:s.muted,borderLeft:`2px solid ${s.accent}`,paddingLeft:6},children:[(0,ye.jsx)("span",{style:{flex:1,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:w}),(0,ye.jsx)("button",{type:"button",title:"Remove from the queue","aria-label":"Remove from the queue",onClick:()=>e.onUnqueue(F),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${F}-${w.slice(0,24)}`))}),o.length>0&&(0,ye.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:o.map((w,F)=>(0,ye.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 4px 2px 8px",border:`1px solid ${s.border}`,borderRadius:8,fontSize:11,color:s.muted},title:`${w.name} \u2014 ${String(Math.max(1,Math.round(w.text.length/1024)))}KB of text, included in your next message`,children:[(0,ye.jsx)("span",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:w.name}),(0,ye.jsxs)("span",{children:[Math.max(1,Math.round(w.text.length/1024)),"KB"]}),(0,ye.jsx)("button",{type:"button",title:"Remove","aria-label":`Remove ${w.name}`,style:pe("ghost"),onClick:()=>a($e=>$e.filter((Ce,We)=>We!==F)),children:(0,ye.jsx)(Ho,{size:11})})]},`${w.name}-${F}`))}),r.length>0&&(0,ye.jsx)("div",{style:{display:"flex",gap:6,flexWrap:"wrap",padding:"6px 8px 0"},children:r.map((w,F)=>(0,ye.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"2px 6px",border:`1px solid ${s.border}`,borderRadius:3,fontSize:11,color:s.muted},children:[(0,ye.jsx)("img",{src:`data:${w.mediaType};base64,${w.data}`,alt:"",style:{width:20,height:20,objectFit:"cover",borderRadius:2}}),(0,ye.jsx)("span",{style:{maxWidth:120,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:w.name}),(0,ye.jsx)("button",{type:"button","aria-label":`Remove ${w.name}`,onClick:()=>i($e=>$e.filter((Ce,We)=>We!==F)),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0},children:"\xD7"})]},`${w.name}-${F}`))}),m!==void 0&&(0,ye.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:s.error},children:m}),r.length>0&&!e.supportsVision&&(0,ye.jsx)("div",{style:{padding:"4px 10px 0",fontSize:11,color:s.error},children:"This model is not known to accept images. If it does, tick \u201CSupports images\u201D in Settings \u2192 Providers \u2192 Edit \u2192 Model capability overrides."}),(0,ye.jsxs)("div",{className:"lc-input",style:{display:"flex",gap:4,alignItems:"flex-end",margin:8,padding:4,background:s.inputBackground,border:`1px solid ${s.inputBorder}`,borderRadius:12},children:[(0,ye.jsx)("textarea",{ref:f,value:t,rows:2,placeholder:e.isStreaming?"Add a message \u2014 it joins the current turn":"Message Light Code\u2026 @ to attach a file",onChange:w=>{n(w.target.value),g(w.target.value,w.target.selectionStart),x(w.target)},onClick:w=>g(t,w.currentTarget.selectionStart),onBlur:()=>c(void 0),onPaste:L,onKeyDown:w=>{if(O){if(w.key==="ArrowDown"){w.preventDefault(),d(F=>(F+1)%e.mentionCandidates.length);return}if(w.key==="ArrowUp"){w.preventDefault(),d(F=>(F-1+e.mentionCandidates.length)%e.mentionCandidates.length);return}if(w.key==="Enter"||w.key==="Tab"){let F=e.mentionCandidates[u];if(F!==void 0){w.preventDefault(),v(F);return}}if(w.key==="Escape"){w.preventDefault(),c(void 0);return}}w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),I())},style:{flex:1,resize:"none",background:"transparent",color:s.inputForeground,border:"none",outline:"none",padding:"5px 6px",margin:0,fontFamily:Z,fontSize:13,lineHeight:1.45,minHeight:44,maxHeight:200,overflowY:"auto"}}),(0,ye.jsx)("input",{ref:_,type:"file",multiple:!0,hidden:!0,onChange:w=>{w.target.files!==null&&b(w.target.files),w.target.value=""}}),(0,ye.jsx)("button",{type:"button",title:e.supportsVision?"Attach a file \u2014 text is included in the message, images are sent to the model":"Attach a file. Text is included in the message; this model is not known to accept images","aria-label":"Attach a file",style:pe("secondary",e.isStreaming),disabled:e.isStreaming,onClick:()=>_.current?.click(),children:(0,ye.jsx)(y_,{})}),e.isStreaming?(0,ye.jsx)("button",{type:"button",title:"Cancel","aria-label":"Cancel",style:pe("secondary"),onClick:e.onCancel,children:(0,ye.jsx)(m_,{})}):(0,ye.jsx)("button",{type:"button",className:"lc-btn-accent",title:"Send","aria-label":"Send",style:pe("primary",!J),disabled:!J,onClick:I,children:(0,ye.jsx)(f_,{})})]}),(e.profiles.length>0||e.expertEnabled)&&(0,ye.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"0 10px 8px"},children:[e.profiles.length>0&&(0,ye.jsx)(Je,{compact:!0,ariaLabel:"Provider profile",title:"Which provider answers the next message",value:e.activeProfileId??"",disabled:e.isStreaming,onChange:e.onSelectProfile,style:{maxWidth:"60%"},options:e.profiles.map(w=>({value:w.id,label:w.label,detail:w.model}))}),e.searchConnections.length>0&&(0,ye.jsx)(Je,{compact:!0,ariaLabel:"OpenSearch connection",title:"Which cluster this conversation may search. Change it between messages.",value:e.activeSearchId??"",disabled:e.isStreaming,onChange:w=>e.onSelectSearch(w.length>0?w:void 0),style:{maxWidth:"38%"},options:[{value:"",label:"No search"},...e.searchConnections.map(w=>({value:w.id,label:w.label}))]}),e.expertEnabled&&(0,ye.jsxs)("span",{title:"Claude is available as an expert. Ask it directly \u2014 say \u201Cask Claude \u2026\u201D.",style:{...Fe(),marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4},children:[(0,ye.jsx)(Wt,{size:11}),"expert"]})]})]})}var ue=P(ie(),1),py=P(he(),1);var xe=P(ie(),1),G_=P(he(),1);var IA=/^(https?:|mailto:)/i;function AA(e){let t=e.trim();return/^[a-z][a-z0-9+.-]*:/i.test(t)?IA.test(t):!0}var ly=/^ {0,3}(`{3,}|~{3,})\s*(\S+)?\s*$/,V_=/^ {0,3}(#{1,6})\s+(.*)$/,F_=/^ {0,3}([-*_])(\s*\1){2,}\s*$/,cy=/^ {0,3}[-*+]\s+(.*)$/,sy=/^ {0,3}\d+[.)]\s+(.*)$/,uy=/^ {0,3}>\s?(.*)$/,dy=/^ {0,3}\|?(.*\|.*?)\|?\s*$/,q_=/^ {0,3}\|?\s*:?-{1,}:?\s*(\|\s*:?-{1,}:?\s*)*\|?\s*$/;function H_(e){let t=e.replace(/\r\n/g,`
88
+ `).split(`
89
+ `),n=[],r=0;for(;r<t.length;){let i=t[r]??"",o=ly.exec(i);if(o!==null){let d=o[1]??"```",m=[];for(r+=1;r<t.length;){let p=t[r]??"",f=ly.exec(p);if(f!==null&&(f[1]??"").length>=d.length&&(f[2]??"")==="")break;m.push(p),r+=1}r+=1,n.push({kind:"code",text:m.join(`
90
+ `),...o[2]!==void 0?{language:o[2]}:{}});continue}if(i.trim().length===0){r+=1;continue}if(F_.test(i)){n.push({kind:"rule"}),r+=1;continue}let a=V_.exec(i);if(a!==null){n.push({kind:"heading",level:(a[1]??"#").length,content:ni(a[2]??"")}),r+=1;continue}let l=t[r+1];if(dy.test(i)&&l!==void 0&&q_.test(l)){let d=x=>x.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(_=>_.trim()),m=d(i).map(x=>ni(x)),p=d(l).map(x=>{let _=x.startsWith(":"),O=x.endsWith(":");if(_&&O)return"center";if(O)return"right";if(_)return"left"});r+=2;let f=[];for(;r<t.length;){let x=t[r]??"";if(x.trim().length===0||!dy.test(x))break;f.push(d(x).map(_=>ni(_))),r+=1}n.push({kind:"table",head:m,rows:f,align:p});continue}if(uy.test(i)){let d=[];for(;r<t.length;){let m=uy.exec(t[r]??"");if(m===null)break;d.push(m[1]??""),r+=1}n.push({kind:"quote",content:ni(d.join(`
91
+ `))});continue}let c=sy.test(i);if(c||cy.test(i)){let d=[];for(;r<t.length;){let m=t[r]??"",p=(c?sy:cy).exec(m);if(p===null)break;d.push(ni(p[1]??"")),r+=1}n.push({kind:"list",ordered:c,items:d});continue}let u=[];for(;r<t.length;){let d=t[r]??"";if(d.trim().length===0||ly.test(d)||V_.test(d)||F_.test(d)||uy.test(d)||cy.test(d)||sy.test(d)||dy.test(d)&&q_.test(t[r+1]??""))break;u.push(d),r+=1}n.push({kind:"paragraph",content:ni(u.join(`
92
+ `))})}return n}var fy=String.raw`\S(?:[\s\S]*?\S)?`,jA=String.raw`[^()\s]*(?:\([^()\s]*\)[^()\s]*)*`,UA=new RegExp([String.raw`(`+"`"+String.raw`+)([\s\S]*?)\1`,String.raw`\[([^\]]*)\]\((`+jA+String.raw`)\)`,String.raw`(\*\*|__)(`+fy+String.raw`)\5`,String.raw`(~~)(`+fy+String.raw`)\7`,String.raw`(\*|_)(`+fy+String.raw`)\9`].join("|"));function ni(e){let t=[],n=e;for(;n.length>0;){let r=UA.exec(n);if(r===null||r.index===void 0)break;if(r.index>0&&t.push({kind:"text",text:n.slice(0,r.index)}),r[1]!==void 0)t.push({kind:"code",text:(r[2]??"").replace(/^ (.*) $/,"$1")});else if(r[4]!==void 0){let i=r[4],o=ni(r[3]??"");t.push(AA(i)?{kind:"link",href:i,children:o}:{kind:"text",text:r[0]})}else r[5]!==void 0?t.push({kind:"strong",children:ni(r[6]??"")}):r[7]!==void 0?t.push({kind:"strike",children:ni(r[8]??"")}):r[9]!==void 0&&t.push({kind:"em",children:ni(r[10]??"")});n=n.slice(r.index+r[0].length)}return n.length>0&&t.push({kind:"text",text:n}),t}var Y_="var(--vscode-editor-font-family, monospace)";function ii(e,t=""){return e.map((n,r)=>{let i=`${t}${String(r)}`;return n.kind==="text"?(0,xe.jsx)("span",{children:n.text},i):n.kind==="code"?(0,xe.jsx)("code",{style:{fontFamily:Y_,fontSize:"0.92em",padding:"1px 4px",borderRadius:4,background:s.accentSoft,wordBreak:"break-word"},children:n.text},i):n.kind==="strong"?(0,xe.jsx)("strong",{children:ii(n.children,`${i}-`)},i):n.kind==="em"?(0,xe.jsx)("em",{children:ii(n.children,`${i}-`)},i):n.kind==="strike"?(0,xe.jsx)("span",{style:{textDecoration:"line-through",opacity:.75},children:ii(n.children,`${i}-`)},i):(0,xe.jsx)("a",{href:n.href,rel:"noopener noreferrer",title:n.href,style:{color:s.accent,textDecoration:"underline"},children:ii(n.children,`${i}-`)},i)})}function OA(e){let[t,n]=(0,G_.useState)(!1),r=()=>{navigator.clipboard?.writeText(e.text).then(()=>{n(!0),setTimeout(()=>n(!1),1500)})};return(0,xe.jsxs)("div",{style:{position:"relative",margin:"6px 0",border:`1px solid ${s.border}`,borderRadius:8,background:s.inputBackground},children:[(0,xe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 6px 3px 10px",borderBottom:`1px solid ${s.border}`,color:s.muted,fontFamily:Z,fontSize:10},children:[(0,xe.jsx)("span",{children:e.language??"code"}),(0,xe.jsx)("button",{type:"button",title:t?"Copied":"Copy","aria-label":t?"Copied":"Copy code",onClick:r,style:{marginLeft:"auto",display:"inline-flex",alignItems:"center",gap:4,padding:"2px 6px",border:"none",borderRadius:6,background:"transparent",color:t?s.accent:s.muted,cursor:"pointer",fontSize:10},children:t?(0,xe.jsx)(ti,{size:11}):(0,xe.jsx)(tr,{size:11})})]}),(0,xe.jsx)("pre",{className:"lc-scroll",style:{margin:0,padding:"8px 10px",overflowX:"auto",fontFamily:Y_,fontSize:11,lineHeight:1.5},children:Dl(e.text,e.language).map((i,o)=>{let a=Il[i.kind];return a===void 0?(0,xe.jsx)("span",{children:i.text},o):(0,xe.jsx)("span",{style:{color:a},children:i.text},o)})})]})}function NA(e,t){if(e.kind==="code")return(0,xe.jsx)(OA,{text:e.text,language:e.language},t);if(e.kind==="rule")return(0,xe.jsx)("hr",{style:{border:"none",borderTop:`1px solid ${s.border}`,margin:"10px 0"}},t);if(e.kind==="heading"){let n=[15,14,13,12.5,12,12][e.level-1]??12;return(0,xe.jsx)("div",{style:{fontSize:n,fontWeight:600,margin:"10px 0 4px"},children:ii(e.content,`${t}-`)},t)}if(e.kind==="quote")return(0,xe.jsx)("div",{style:{margin:"6px 0",paddingLeft:10,borderLeft:`2px solid ${s.accent}`,color:s.muted,whiteSpace:"pre-wrap"},children:ii(e.content,`${t}-`)},t);if(e.kind==="list"){let n=e.ordered?"ol":"ul";return(0,xe.jsx)(n,{style:{margin:"6px 0",paddingLeft:20},children:e.items.map((r,i)=>(0,xe.jsx)("li",{style:{margin:"2px 0"},children:ii(r,`${t}-${String(i)}-`)},`${t}-${String(i)}`))},t)}if(e.kind==="table"){let n=r=>({textAlign:e.align[r]??"left"});return(0,xe.jsx)("div",{className:"lc-scroll",style:{overflowX:"auto",margin:"6px 0"},children:(0,xe.jsxs)("table",{style:{borderCollapse:"collapse",fontSize:11,width:"100%"},children:[(0,xe.jsx)("thead",{children:(0,xe.jsx)("tr",{children:e.head.map((r,i)=>(0,xe.jsx)("th",{style:{...n(i),padding:"4px 8px",borderBottom:`1px solid ${s.accent}`,color:s.foreground,fontWeight:600,whiteSpace:"nowrap"},children:ii(r,`${t}-h${String(i)}-`)},`${t}-h${String(i)}`))})}),(0,xe.jsx)("tbody",{children:e.rows.map((r,i)=>(0,xe.jsx)("tr",{children:r.map((o,a)=>(0,xe.jsx)("td",{style:{...n(a),padding:"4px 8px",borderBottom:`1px solid ${s.border}`,verticalAlign:"top"},children:ii(o,`${t}-r${String(i)}c${String(a)}-`)},`${t}-r${String(i)}c${String(a)}`))},`${t}-r${String(i)}`))})]})},t)}return(0,xe.jsx)("div",{style:{margin:"4px 0",whiteSpace:"pre-wrap"},children:ii(e.content,`${t}-`)},t)}function Nu(e){return(0,xe.jsx)(xe.Fragment,{children:H_(e.text).map((t,n)=>NA(t,String(n)))})}function RA(e){let t=e.role==="assistant",n=(0,ue.jsx)("span",{title:t?"Assistant":"You","aria-label":t?"Assistant":"You",style:{display:"flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:"50%",flexShrink:0,marginTop:2,background:t?s.accentGradient:s.secondaryButtonBackground,color:t?s.accentContrast:s.muted,border:t?"none":`1px solid ${s.border}`},children:t?(0,ue.jsx)(h_,{size:12}):(0,ue.jsx)(ju,{size:12})});return(0,ue.jsxs)("div",{className:t?"lc-in-left":"lc-in-right",...e.isLatestPrompt===!0?{"data-lc-latest-prompt":"true"}:{},style:{display:"flex",gap:8,margin:"8px 10px",flexDirection:t?"row":"row-reverse",alignItems:"flex-start"},children:[n,(0,ue.jsxs)("div",{className:"lc-bubble",style:{maxWidth:"85%",padding:"8px 12px",background:t?s.assistantBubble:s.accentGradient,color:t?s.foreground:s.accentContrast,borderRadius:t?"14px 14px 14px 4px":"14px 14px 4px 14px",boxShadow:t?"none":`0 1px 8px ${s.accentRing}`,...t?{}:{whiteSpace:"pre-wrap"},wordBreak:"break-word",fontFamily:Z},children:[e.expertInformed===!0&&(0,ue.jsxs)("span",{title:"Written after consulting the expert. These are not Claude's words \u2014 expand the ask_expert block above for those.",style:{display:"inline-flex",alignItems:"center",gap:4,marginBottom:5,fontSize:10,letterSpacing:.2,padding:"1px 6px 1px 4px",borderRadius:8,background:t?s.expertSoft:"rgba(255, 255, 255, 0.18)",color:t?s.expert:s.accentContrast},children:[(0,ue.jsx)(Wt,{size:11}),"informed by expert"]}),t?(0,ue.jsx)(Nu,{text:e.content}):e.content]})]})}var my="var(--vscode-editor-font-family, monospace)";function MA(e){let[t,n]=(0,py.useState)(!1),{toolCall:r}=e,i=r.result===void 0,o=r.name==="ask_expert",a=r.isError===!0?s.error:o?s.expert:s.border;return(0,ue.jsxs)("div",{className:"lc-in-left",style:{margin:"6px 10px 6px 40px",borderRadius:10,border:`1px solid ${a}`,background:o?s.expertSoft:i?s.accentSoft:"transparent",...o?{boxShadow:`0 0 0 3px ${s.expertSoft}`}:{},overflow:"hidden",transition:"background-color 190ms ease"},children:[(0,ue.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":t,title:t?"Hide details":"Show details",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",padding:"6px 10px",background:"transparent",border:"none",color:s.foreground,cursor:"pointer",fontFamily:Z,fontSize:12,textAlign:"left"},children:[(0,ue.jsx)("span",{style:{display:"flex",color:s.muted,transform:t?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,ue.jsx)(Pr,{})}),o&&(0,ue.jsx)("span",{title:"Expert consultation \u2014 answered by Claude","aria-label":"Expert consultation, answered by Claude",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,borderRadius:"50%",flexShrink:0,background:s.expertGradient,color:s.expertContrast},children:(0,ue.jsx)(Wt,{size:11})}),(0,ue.jsx)("span",{style:{fontFamily:my,color:o?s.expert:void 0},children:r.name}),!o&&e.expertInformed===!0&&(0,ue.jsx)("span",{title:"Following expert advice","aria-label":"Following expert advice",style:{display:"flex",color:s.expert},children:(0,ue.jsx)(Wt,{size:12})}),(0,ue.jsx)("span",{title:i?"Running":r.isError===!0?"Failed":"Done","aria-label":i?"Running":r.isError===!0?"Failed":"Done",style:{display:"flex",marginLeft:"auto",color:r.isError===!0?s.error:i?s.muted:"var(--vscode-testing-iconPassed, #3fb950)"},children:i?(0,ue.jsx)(g_,{}):r.isError===!0?(0,ue.jsx)(Ho,{}):(0,ue.jsx)(ti,{})})]}),t&&(0,ue.jsxs)("div",{style:{padding:"0 10px 8px",fontSize:12,fontFamily:my},children:[(0,ue.jsx)("div",{style:{color:s.muted,marginBottom:2},children:"Arguments"}),(0,ue.jsx)("pre",{style:{margin:"0 0 8px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:r.arguments}),r.result!==void 0&&(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsx)("div",{style:{color:o?s.expert:s.muted,marginBottom:2},children:o?"Claude's answer":"Result"}),(0,ue.jsx)("pre",{className:o?"lc-scroll":void 0,style:{margin:0,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:300,overflowY:"auto",...o?{borderLeft:`2px solid ${s.expert}`,paddingLeft:8,fontFamily:Z,fontSize:12}:{}},children:r.result})]})]})]})}function ZA(e){let[t,n]=(0,py.useState)(!1);return(0,ue.jsxs)("div",{className:"lc-in-left",style:{margin:"4px 10px 4px 40px"},children:[(0,ue.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":t,title:t?"Hide the reasoning":"Show the reasoning",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,background:"transparent",border:"none",borderRadius:6,color:s.muted,cursor:"pointer",padding:"2px 6px 2px 2px",fontFamily:Z,fontSize:11,fontStyle:"italic"},children:[(0,ue.jsx)("span",{style:{display:"flex",transform:t?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,ue.jsx)(Pr,{})}),(0,ue.jsx)("span",{children:e.pending===!0?"Thinking\u2026":"Thought process"})]}),t&&(0,ue.jsx)("pre",{style:{margin:"2px 0 0 14px",padding:8,borderLeft:`2px solid ${s.border}`,color:s.muted,fontFamily:my,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word",maxHeight:320,overflowY:"auto"},children:e.content})]})}function hy(e){let t=-1;for(let n=e.messages.length-1;n>=0;n--){let r=e.messages[n];if(r?.kind==="text"&&r.role==="user"){t=n;break}}return(0,ue.jsxs)("div",{role:"log","aria-live":"polite",children:[e.messages.map((n,r)=>n.kind==="tool"?(0,ue.jsx)(MA,{toolCall:n.toolCall,expertInformed:n.expertInformed},r):n.kind==="reasoning"?(0,ue.jsx)(ZA,{content:n.content,pending:n.pending},r):(0,ue.jsx)(RA,{role:n.role,content:n.content,expertInformed:n.expertInformed,isLatestPrompt:r===t},r)),e.error!==void 0&&(0,ue.jsx)("div",{role:"alert",className:"lc-fade-up",style:{padding:"8px 12px",margin:"6px 10px 6px 40px",borderRadius:10,border:`1px solid ${s.error}`,color:s.error,fontFamily:Z,fontSize:12},children:e.error})]})}var Yo=P(ie(),1);function J_(e){return(0,Yo.jsxs)("button",{type:"button",onClick:e.onReveal,title:"Scroll back to this message","aria-label":`Your message: ${e.text}. Scroll back to it.`,className:"lc-fade-up",style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%",textAlign:"left",padding:"6px 10px",border:"none",borderBottom:`1px solid ${s.border}`,background:s.background,color:s.muted,cursor:"pointer",fontFamily:Z,fontSize:11,flexShrink:0},children:[(0,Yo.jsx)("span",{"aria-hidden":"true",style:{display:"flex",alignItems:"center",justifyContent:"center",width:16,height:16,borderRadius:"50%",flexShrink:0,marginTop:1,background:s.accentSoft,color:s.accent},children:(0,Yo.jsx)(ju,{size:10})}),(0,Yo.jsx)("span",{style:{flex:1,minWidth:0,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.text})]})}var ri=P(ie(),1);function X_(e){if(e.consultations===0)return null;let t=e.consultations===1?"consultation":"consultations",n=e.unpriced>0?` ${String(e.unpriced)} of them reported no cost, so the total is at least this much.`:"",r=e.usage!==void 0&&e.usage>=.8,i=e.exhausted===!0?s.error:r?s.warning:s.expert;return(0,ri.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"3px 12px",borderTop:`1px solid ${s.border}`,color:s.muted,fontFamily:Z,fontSize:11,flexShrink:0},title:`${String(e.consultations)} expert ${t} in this chat.${n}${e.exhausted===!0?" The budget for this chat has been reached \u2014 raise it from the header, or start a new chat.":""} Starting a new chat resets the spend and any override.`,children:[(0,ri.jsx)("span",{style:{display:"flex",color:s.expert},children:(0,ri.jsx)(Wt,{size:11})}),(0,ri.jsxs)("span",{children:["Expert:"," ",(0,ri.jsxs)("span",{style:{color:s.foreground,fontVariantNumeric:"tabular-nums"},children:["$",e.usd.toFixed(4)]})," ","this chat"]}),e.usage!==void 0&&(0,ri.jsx)("span",{"aria-hidden":!0,style:{width:46,height:3,borderRadius:2,background:s.border,overflow:"hidden",flexShrink:0},children:(0,ri.jsx)("span",{style:{display:"block",height:"100%",width:`${String(Math.round(e.usage*100))}%`,background:i,transition:"width 240ms ease"}})}),(0,ri.jsxs)("span",{style:{marginLeft:"auto",color:e.exhausted===!0?s.error:void 0},children:[e.exhausted===!0?"budget reached":`${String(e.consultations)} ${t}`,e.unpriced>0?" *":""]})]})}var Tt=P(ie(),1),Q_=P(he(),1);var K_=[{key:"system",label:"System prompt",color:"var(--vscode-charts-blue, #4a90d9)"},{key:"toolDefinitions",label:"Tool definitions",color:"var(--vscode-charts-purple, #b180d7)"},{key:"history",label:"Conversation",color:"var(--vscode-charts-green, #89d185)"},{key:"results",label:"Tool results",color:"var(--vscode-charts-orange, #d18616)"}];function Ru(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function W_(e){let[t,n]=(0,Q_.useState)(!1),{usage:r}=e;if(r===void 0||r.total===0)return null;let i=r.contextWindow>0?r.contextWindow:void 0,o=i!==void 0?r.total/i:void 0,a=o!==void 0&&o>.75;return(0,Tt.jsxs)("div",{style:{padding:"4px 12px 6px",borderTop:`1px solid ${s.border}`,fontFamily:Z,fontSize:11},children:[(0,Tt.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{display:"flex",alignItems:"center",gap:6,width:"100%",background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0,fontFamily:Z,fontSize:11,textAlign:"left"},children:[(0,Tt.jsx)("span",{children:t?"\u25BE":"\u25B8"}),(0,Tt.jsxs)("span",{style:{color:a?s.error:s.muted},children:[Ru(r.total),i!==void 0?` / ${Ru(i)}`:""," tokens",r.estimated?" (est.)":""]}),r.cacheHitRate!==void 0&&(0,Tt.jsxs)("span",{style:{marginLeft:"auto"},children:["cache ",Math.round(r.cacheHitRate*100),"%"]})]}),(0,Tt.jsx)("div",{style:{display:"flex",height:4,borderRadius:2,overflow:"hidden",marginTop:4,background:s.border},children:K_.map(l=>{let c=r[l.key],u=r.total>0?c/r.total*100:0;return u<=0?null:(0,Tt.jsx)("div",{title:`${l.label}: ${Ru(c)}`,style:{width:`${u}%`,background:l.color}},l.key)})}),t&&(0,Tt.jsxs)("div",{style:{marginTop:6,color:s.muted},children:[K_.map(l=>(0,Tt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Tt.jsx)("span",{style:{width:8,height:8,borderRadius:2,background:l.color,flexShrink:0}}),(0,Tt.jsx)("span",{children:l.label}),(0,Tt.jsx)("span",{style:{marginLeft:"auto"},children:Ru(r[l.key])})]},l.key)),r.supersededCount>0&&(0,Tt.jsxs)("div",{style:{marginTop:4},children:[r.supersededCount," superseded file read",r.supersededCount===1?"":"s"," dropped"]}),r.compactedCount>0&&(0,Tt.jsxs)("div",{children:[r.compactedCount," earlier message",r.compactedCount===1?"":"s"," summarised"]}),r.estimated&&(0,Tt.jsx)("div",{style:{marginTop:4,fontStyle:"italic"},children:"Estimated from text length \u2014 the provider did not report usage."})]})]})}var Vr=P(ie(),1),jl=P(he(),1);function e$(e){let[t]=(0,jl.useState)(()=>Date.now()),[n,r]=(0,jl.useState)(0);return(0,jl.useEffect)(()=>{let i=setInterval(()=>r(Math.floor((Date.now()-t)/1e3)),1e3);return()=>clearInterval(i)},[t]),(0,Vr.jsxs)("div",{role:"status","aria-live":"polite","aria-label":e.label??"Working",className:"lc-fade-up",style:{display:"flex",alignItems:"center",gap:8,padding:"2px 12px",margin:"4px 10px 4px 40px",color:s.muted,fontFamily:Z,fontSize:12},children:[(0,Vr.jsx)("span",{"aria-hidden":"true",style:{display:"inline-flex",alignItems:"center",gap:3,padding:"6px 9px",borderRadius:"12px 12px 12px 4px",background:s.assistantBubble},children:[0,1,2].map(i=>(0,Vr.jsx)("span",{className:"lc-dot",style:{width:5,height:5,borderRadius:"50%",background:e.variant==="expert"?s.expert:s.accent,display:"block"}},i))}),(0,Vr.jsx)("span",{style:{fontStyle:"italic"},children:e.label??"Thinking"}),n>=3&&(0,Vr.jsxs)("span",{style:{marginLeft:"auto",fontVariantNumeric:"tabular-nums"},children:[n,"s"]})]})}function gy(e){let t=(0,Jo.useRef)(null),[n,r]=(0,Jo.useState)(!1),i=(()=>{for(let u=e.messages.length-1;u>=0;u--){let d=e.messages[u];if(d?.kind==="text"&&d.role==="user")return d.content}})();(0,Jo.useEffect)(()=>{let u=t.current,d=u?.querySelector("[data-lc-latest-prompt]");if(u===null||d===null||d===void 0){r(!1);return}if(typeof IntersectionObserver>"u")return;let m=new IntersectionObserver(p=>{let f=p[0];f!==void 0&&r(!f.isIntersecting)},{root:u,threshold:0});return m.observe(d),()=>m.disconnect()},[e.messages]);let o=()=>{t.current?.querySelector("[data-lc-latest-prompt]")?.scrollIntoView({block:"start",behavior:"smooth"})},a=e.messages[e.messages.length-1],l=a?.kind==="tool"&&a.toolCall.name==="ask_expert"&&a.toolCall.result===void 0,c=(()=>{if(!e.isStreaming||e.pendingApproval!==void 0)return;let u=e.messages[e.messages.length-1];if(u?.kind==="tool"&&u.toolCall.result===void 0)return l?"Consulting the expert":`Running ${u.toolCall.name}`;if(!(u?.kind==="text"&&u.role==="assistant"&&u.pending===!0)&&!(u?.kind==="reasoning"&&u.pending===!0))return"Thinking"})();return(0,Ft.jsxs)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[n&&i!==void 0&&(0,Ft.jsx)(J_,{text:i,onReveal:o}),(0,Ft.jsxs)("div",{ref:t,className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",scrollBehavior:"smooth"},children:[(0,Ft.jsx)(hy,{messages:e.messages,error:e.error}),c!==void 0&&(0,Ft.jsx)(e$,{label:c,variant:l?"expert":"default"}),e.pendingApproval!==void 0&&(0,Ft.jsx)(oy,{approval:e.pendingApproval,onDecide:e.onDecideApproval,onAlwaysAllow:e.onAlwaysAllow})]}),e.canRollback&&(0,Ft.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"6px 10px",borderTop:`1px solid ${s.border}`,color:s.muted,fontSize:11,flexShrink:0},children:[(0,Ft.jsx)("span",{children:"Files were changed this task."}),(0,Ft.jsx)("button",{type:"button",className:O_.button,title:"Undo all changes made during this task","aria-label":"Undo all changes made during this task",style:pe("secondary"),onClick:e.onRollback,children:(0,Ft.jsx)(k_,{size:14})})]}),(0,Ft.jsx)(X_,{...e.expertSpend}),(0,Ft.jsx)(W_,{usage:e.usage}),(0,Ft.jsx)(ay,{isStreaming:e.isStreaming,onSend:e.onSend,onCancel:e.onCancel,supportsVision:e.supportsVision,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,profiles:e.profiles,activeProfileId:e.activeProfileId,onSelectProfile:e.onSelectProfile,expertEnabled:e.expertEnabled,queued:e.queued,onUnqueue:e.onUnqueue,searchConnections:e.searchConnections,activeSearchId:e.activeSearchId,onSelectSearch:e.onSelectSearch})]})}var Pe=P(ie(),1),Si=P(he(),1);function t$(e){let[t,n]=(0,Si.useState)(!1),[r,i]=(0,Si.useState)(String(e.maxSpendUsd)),[o,a]=(0,Si.useState)(String(e.maxConsultations)),l=(0,Si.useRef)(null);if((0,Si.useEffect)(()=>{i(String(e.maxSpendUsd)),a(String(e.maxConsultations))},[e.maxSpendUsd,e.maxConsultations]),(0,Si.useEffect)(()=>{if(!t)return;let x=O=>{l.current?.contains(O.target)!==!0&&n(!1)},_=O=>{O.key==="Escape"&&n(!1)};return document.addEventListener("mousedown",x),document.addEventListener("keydown",_),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",_)}},[t]),!e.enabled||e.modeId!=="junior"&&e.consultations===0)return null;let c=x=>{let _=Number(x.trim());return Number.isFinite(_)&&_>0?_:0},u=()=>{e.onSetLimits({maxSpendUsd:c(r),maxConsultations:Math.round(c(o))}),n(!1)},d=e.maxSpendUsd>0||e.maxConsultations>0,m=e.exhausted===!0?"Raise budget":d?[e.maxSpendUsd>0?`$${e.maxSpendUsd.toFixed(2)}`:void 0,e.maxConsultations>0?`${String(e.maxConsultations)}\xD7`:void 0].filter(x=>x!==void 0).join(" / "):"Budget",p=e.usage!==void 0&&e.usage>=.8,f=e.exhausted===!0?s.error:p?s.warning:void 0;return(0,Pe.jsxs)("div",{ref:l,style:{position:"relative",display:"flex",fontFamily:Z},children:[(0,Pe.jsxs)("button",{type:"button","aria-haspopup":"dialog","aria-expanded":t,style:{...D(),display:"flex",alignItems:"center",gap:4,fontSize:11,padding:"2px 7px",...f!==void 0?{borderColor:f,color:f}:{}},title:e.exhausted===!0?"The expert budget for this chat is spent. Raise it here and the next consultation goes ahead \u2014 no need to start a new chat.":`Expert budget for this chat${e.overridden?" (overriding Settings)":""}. Spent so far: $${e.usd.toFixed(4)} over ${String(e.consultations)} consultation${e.consultations===1?"":"s"}.`,onClick:()=>n(x=>!x),children:[(0,Pe.jsx)("span",{style:{display:"flex",color:f??s.expert},children:(0,Pe.jsx)(Wt,{size:11})}),(0,Pe.jsx)("span",{children:m}),e.overridden&&e.exhausted!==!0&&(0,Pe.jsx)("span",{"aria-hidden":!0,children:"\u2022"})]}),t&&(0,Pe.jsxs)("div",{role:"dialog","aria-label":"Expert budget for this chat",style:{position:"absolute",top:"calc(100% + 4px)",left:0,zIndex:40,width:236,padding:8,borderRadius:4,border:`1px solid ${s.border}`,background:s.inputBackground,boxShadow:"0 4px 14px rgba(0, 0, 0, 0.32)",color:s.foreground,fontSize:11,display:"flex",flexDirection:"column",gap:6},children:[(0,Pe.jsx)("strong",{style:{fontSize:11},children:"Expert budget \u2014 this chat"}),(0,Pe.jsxs)("span",{style:{color:s.muted},children:["Spent $",e.usd.toFixed(4)," over ",e.consultations," ",e.consultations===1?"consultation":"consultations","."]}),e.estimate!==void 0&&(0,Pe.jsxs)("div",{style:{padding:"4px 6px",borderRadius:3,border:`1px solid ${s.border}`,display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,Pe.jsx)("span",{style:{color:s.expert},children:"Expert estimates"}),(0,Pe.jsx)("span",{style:{color:s.foreground},children:[e.estimate.usd===void 0?void 0:`$${e.estimate.usd.toFixed(2)}`,e.estimate.consultations===void 0?void 0:`${String(e.estimate.consultations)} consultations`].filter(x=>x!==void 0).join(" over ")}),(0,Pe.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Fill the fields below with the estimate. A little headroom is added, because an estimate that is exactly right still stops you at the last review.",onClick:()=>{e.estimate?.usd!==void 0&&i((e.estimate.usd*1.25).toFixed(2)),e.estimate?.consultations!==void 0&&a(String(Math.ceil(e.estimate.consultations*1.25)))},children:"Use it"})]}),(0,Pe.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Pe.jsx)("span",{style:{width:66,color:s.muted},children:"Stop after"}),(0,Pe.jsx)("input",{type:"number",min:"0",step:"0.25",value:r,"aria-label":"Maximum spend for this chat, in dollars",onChange:x=>i(x.target.value),style:{...Y(),flex:1,fontSize:11,padding:"2px 4px"}}),(0,Pe.jsx)("span",{style:{color:s.muted},children:"dollars"})]}),(0,Pe.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,Pe.jsx)("span",{style:{width:66,color:s.muted},children:"or after"}),(0,Pe.jsx)("input",{type:"number",min:"0",step:"1",value:o,"aria-label":"Maximum consultations for this chat",onChange:x=>a(x.target.value),style:{...Y(),flex:1,fontSize:11,padding:"2px 4px"}}),(0,Pe.jsx)("span",{style:{color:s.muted},children:"calls"})]}),(0,Pe.jsx)("span",{style:{color:s.muted},children:"0 means no limit. Applies to the next consultation \u2014 a new chat goes back to the default from Settings."}),(0,Pe.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,Pe.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"2px 8px"},onClick:u,children:"Apply"}),e.overridden&&(0,Pe.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"2px 8px"},title:"Go back to the limit configured in Settings \u2192 Expert",onClick:()=>{e.onSetLimits({}),n(!1)},children:"Use the default"})]})]})]})}var n$=P(ie(),1);function vy(e){let t=Of(e.modeId);return(0,n$.jsx)(Je,{compact:!0,value:t.id,disabled:e.disabled,title:t.description,ariaLabel:"Mode",onChange:e.onChange,options:Vc.map(n=>({value:n.id,label:n.name,...n.requiresExpert===!0&&!e.expertAvailable?{disabled:!0,detail:"needs the expert"}:{}}))})}var ut=P(ie(),1);var i$=P(he(),1);function r$(e){let[t,n]=(0,i$.useState)(0),r=er[t]??er[0],i=t===0,o=t===er.length-1;return(0,ut.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%",minHeight:0,fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,ut.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,ut.jsx)("strong",{style:{fontSize:13},children:r.title}),(0,ut.jsxs)("span",{style:{marginLeft:"auto",color:s.muted,fontSize:11},children:[t+1," of ",er.length]}),(0,ut.jsx)("button",{type:"button",style:{...D(),fontSize:11},onClick:e.onClose,children:"Close"})]}),(0,ut.jsxs)("div",{className:"lc-scroll",style:{flex:1,minHeight:0,overflowY:"auto",padding:12},children:[e.mediaBase!==void 0&&(0,ut.jsxs)("picture",{children:[(0,ut.jsx)("source",{media:"(prefers-color-scheme: dark)",srcSet:`${e.mediaBase}/${r.id}-dark.svg`}),(0,ut.jsx)("img",{src:`${e.mediaBase}/${r.id}-light.svg`,alt:r.altText,style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",borderRadius:6,border:`1px solid ${s.border}`,marginBottom:12}})]}),r.body.map((a,l)=>(0,ut.jsx)("div",{style:{marginBottom:10,lineHeight:1.5},children:(0,ut.jsx)(Nu,{text:a})},l)),r.tab!==void 0&&(0,ut.jsxs)("button",{type:"button",style:{...fe(!1),marginTop:4},onClick:()=>e.onOpenTab(r.tab),children:["Open the ",r.tab[0]?.toUpperCase(),r.tab.slice(1)," tab"]}),r.tab===void 0&&r.opensPanel===!0&&(0,ut.jsx)("button",{type:"button",style:{...D(),marginTop:4},onClick:e.onClose,children:"Back to the chat"})]}),(0,ut.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",borderTop:`1px solid ${s.border}`,flexShrink:0},children:[(0,ut.jsx)("button",{type:"button",style:D(),disabled:i,onClick:()=>n(a=>Math.max(0,a-1)),children:"Back"}),(0,ut.jsx)("div",{style:{display:"flex",gap:4,flex:1,justifyContent:"center",flexWrap:"wrap"},children:er.map((a,l)=>(0,ut.jsx)("button",{type:"button","aria-label":a.title,title:a.title,onClick:()=>n(l),style:{width:7,height:7,padding:0,borderRadius:"50%",border:"none",cursor:"pointer",background:l===t?s.accent:s.border}},a.id))}),o?(0,ut.jsx)("button",{type:"button",style:fe(!1),onClick:e.onClose,children:"Done"}):(0,ut.jsx)("button",{type:"button",style:fe(!1),onClick:()=>n(a=>Math.min(er.length-1,a+1)),children:"Next"})]})]})}var at=P(ie(),1),qu=P(he(),1);var oe=P(ie(),1);var Xo=P(he(),1);var yy="var(--vscode-editor-font-family, monospace)",BA=[{group:"read",label:"Reading files",description:"read_file, list_files, search_files"},{group:"edit",label:"Editing files",description:"write_to_file, apply_diff"},{group:"command",label:"Running commands",description:"execute_command \u2014 the broadest grant here"},{group:"mcp",label:"MCP tools",description:"Tools provided by external MCP servers"}];function LA(e){return(0,oe.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",marginBottom:10,cursor:"pointer"},children:[(0,oe.jsx)("input",{type:"checkbox",checked:e.checked,onChange:t=>e.onChange(t.target.checked),style:{marginTop:2}}),(0,oe.jsxs)("span",{children:[(0,oe.jsx)("span",{style:{display:"block",fontSize:13},children:e.label}),(0,oe.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:e.description})]})]})}function o$(e){return(0,oe.jsxs)("div",{style:{marginTop:16},children:[(0,oe.jsx)("label",{style:q(),children:e.title}),e.entries.length===0?(0,oe.jsx)("p",{style:{color:s.muted,fontSize:12,margin:0},children:e.empty}):e.entries.map(t=>(0,oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"4px 0",borderBottom:`1px solid ${s.border}`},children:[(0,oe.jsx)("code",{style:{flex:1,fontFamily:yy,fontSize:12,wordBreak:"break-all"},children:t}),(0,oe.jsx)("button",{type:"button",title:"Revoke this permission","aria-label":"Revoke this permission",style:{...pe("secondary"),color:s.error},onClick:()=>e.onRevoke(t),children:(0,oe.jsx)(zt,{})})]},t))]})}function by(e){let t=e.approvals.autoApprove??{},[n,r]=(0,Xo.useState)(String(e.maxIterations));(0,Xo.useEffect)(()=>r(String(e.maxIterations)),[e.maxIterations]);let i=Number.parseInt(n,10),o=Number.isFinite(i)&&i>=1&&i<=500;return(0,oe.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z},children:[(0,oe.jsx)("h3",{style:{margin:"0 0 4px",color:s.foreground},children:"Approvals"}),(0,oe.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0,marginBottom:12},children:"These apply to this workspace only, and are stored outside it \u2014 a repository cannot grant itself permissions."}),(0,oe.jsxs)("div",{style:{marginBottom:16,paddingBottom:12,borderBottom:`1px solid ${s.border}`},children:[(0,oe.jsx)("label",{htmlFor:"lc-max-steps",style:q(),children:"Maximum steps per message"}),(0,oe.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,oe.jsx)("input",{id:"lc-max-steps",type:"number",min:1,max:500,value:n,onChange:a=>r(a.target.value),style:{...Y(),width:110,flex:"none"}}),(0,oe.jsx)("button",{type:"button",style:D(),disabled:!o||i===e.maxIterations,onClick:()=>e.onSetMaxIterations(i),children:"Save"}),!o&&(0,oe.jsx)("span",{style:{fontSize:11,color:s.error},children:"Must be between 1 and 500."})]}),(0,oe.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:4},children:"How many tool calls the assistant may make in reply to one message. The limit exists so a model looping on a failing edit stops costing money \u2014 not to cut short real work. Hitting it loses nothing: send another message and it carries on. Raise it for long refactors; lower it if you want to stay closer to what it is doing."})]}),(0,oe.jsx)("label",{style:q(),children:"Skip the prompt for\u2026"}),BA.map(a=>(0,oe.jsx)(LA,{checked:t[a.group]===!0,label:a.label,description:a.description,onChange:l=>e.onSetAutoApprove(a.group,l)},a.group)),(0,oe.jsx)(o$,{title:"Always-allowed tools",empty:"None. Use \u201CAlways allow\u201D on an approval prompt to add one.",entries:e.approvals.allowedTools??[],onRevoke:e.onRevokeTool}),(0,oe.jsx)(o$,{title:"Always-allowed commands (exact match)",empty:"None. Use \u201CAlways allow this command\u201D on a command prompt to add one.",entries:e.approvals.allowedCommands??[],onRevoke:e.onRevokeCommand}),(0,oe.jsxs)("p",{style:{color:s.muted,fontSize:11},children:["A command is matched byte-for-byte. Allowing ",(0,oe.jsx)("code",{style:{fontFamily:yy},children:"npm test"})," does not allow ",(0,oe.jsx)("code",{style:{fontFamily:yy},children:"npm test && something-else"}),"."]}),(0,oe.jsx)(PA,{roots:e.readRoots,onSave:e.onSetReadRoots})]})}function PA(e){let[t,n]=(0,Xo.useState)(e.roots);(0,Xo.useEffect)(()=>n(e.roots),[e.roots]);let r=t.join("\0")!==e.roots.join("\0");return(0,oe.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,oe.jsx)("span",{style:q(),children:"Folders it may read"}),(0,oe.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["Everything is confined to this workspace by default. Add a folder here to let the assistant read files elsewhere \u2014 a log directory, or a network share such as"," ",(0,oe.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:String.raw`\server\logs`}),". It can ",(0,oe.jsx)("strong",{children:"read"})," these, never write to them: edits stay in the workspace, where a checkpoint can undo them."]}),t.map((i,o)=>(0,oe.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:6},children:[(0,oe.jsx)("input",{type:"text",value:i,spellCheck:!1,"aria-label":`Readable folder ${o+1}`,placeholder:String.raw`\server\share\logs`,onChange:a=>n(l=>l.map((c,u)=>u===o?a.target.value:c)),style:{...Y(),fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,oe.jsx)("button",{type:"button",title:"Remove this folder","aria-label":"Remove this folder",style:pe("secondary"),onClick:()=>n(a=>a.filter((l,c)=>c!==o)),children:(0,oe.jsx)(zt,{})})]},o)),(0,oe.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,oe.jsx)("button",{type:"button",style:D(),onClick:()=>n(i=>[...i,""]),children:"Add a folder"}),(0,oe.jsx)("button",{type:"button",style:D(),disabled:!r,onClick:()=>e.onSave(t.map(i=>i.trim()).filter(i=>i.length>0)),children:r?"Save folders":"Saved"})]})]})}var X=P(ie(),1),Hn=P(he(),1);var K=P(ie(),1);var nr=P(he(),1);var ki=P(ie(),1);var VA="var(--vscode-editor-font-family, monospace)";function pn(e){let t=e.browse;return(0,ki.jsxs)("div",{style:{marginBottom:10},children:[(0,ki.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ki.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,ki.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:n=>e.onChange(n.target.value),style:{...Y(),fontFamily:VA,...e.error!==void 0?{borderColor:s.error}:{}}}),t!==void 0&&e.onBrowse!==void 0&&(0,ki.jsx)("button",{type:"button",style:D(),title:t.kind==="folder"?"Choose a folder":"Choose a file",onClick:()=>e.onBrowse?.(t),children:"Browse"}),e.children]}),e.error!==void 0?(0,ki.jsx)("span",{style:fn(),children:e.error}):e.hint!==void 0&&(0,ki.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:e.hint})]})}var Ul="var(--vscode-editor-font-family, monospace)",a$=[{value:"python",label:"Python (venv)",transport:"stdio",blurb:"A script run by the interpreter inside a virtualenv. Light Code starts the process and talks to it over stdio."},{value:"npx",label:"npm package",transport:"stdio",blurb:"Fetched and run through npx. Light Code starts the process and talks to it over stdio."},{value:"custom",label:"Command",transport:"stdio",blurb:"Any executable, with arguments you supply. Light Code starts the process and talks to it over stdio."},{value:"http",label:"HTTP",transport:"Streamable HTTP",blurb:"A server already running somewhere. Light Code connects to it rather than starting it."}];function Mu(e){return(0,K.jsxs)("div",{style:{marginBottom:10},children:[(0,K.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,K.jsx)("input",{id:e.id,type:"text",value:e.value,spellCheck:!1,placeholder:e.placeholder??"",onChange:t=>e.onChange(t.target.value),style:{...Y(),...e.mono===!0?{fontFamily:Ul}:{},...e.error!==void 0?{borderColor:s.error}:{}}}),e.error!==void 0?(0,K.jsx)("span",{style:fn(),children:e.error}):e.hint!==void 0&&(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:e.hint})]})}function l$(e){let[t,n]=(0,nr.useState)(()=>Object.entries(e.pairs)),r=i=>{n(i),e.onChange(Object.fromEntries(i.filter(([o])=>o.trim().length>0)))};return(0,K.jsxs)("div",{style:{marginBottom:10},children:[(0,K.jsx)("label",{style:q(),children:e.label}),t.map(([i,o],a)=>(0,K.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:4},children:[(0,K.jsx)("input",{"aria-label":`${e.label} name ${a+1}`,value:i,spellCheck:!1,placeholder:"NAME",onChange:l=>r(t.map((c,u)=>u===a?[l.target.value,c[1]]:c)),style:{...Y(),fontFamily:Ul,flex:1}}),(0,K.jsx)("input",{"aria-label":`${e.label} value ${a+1}`,value:o,spellCheck:!1,placeholder:"value",onChange:l=>r(t.map((c,u)=>u===a?[c[0],l.target.value]:c)),style:{...Y(),fontFamily:Ul,flex:2}}),(0,K.jsx)("button",{type:"button","aria-label":`Remove ${i.length>0?i:`row ${a+1}`}`,style:pe("ghost"),onClick:()=>r(t.filter((l,c)=>c!==a)),children:(0,K.jsx)(zt,{})})]},a)),(0,K.jsx)("button",{type:"button",style:D(),onClick:()=>n([...t,["",""]]),children:"Add"}),(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:4},children:e.hint})]})}function c$(e){let[t,n]=(0,nr.useState)(e.initialName),[r,i]=(0,nr.useState)(()=>e.initialConfig!==void 0?Mv(e.initialConfig):El),[o,a]=(0,nr.useState)(!1);(0,nr.useEffect)(()=>{let _=e.probe?.interpreter;_!==void 0&&i(O=>({...O,interpreter:_,venvDir:e.probe?.venvDir??O.venvDir}))},[e.probe]),(0,nr.useEffect)(()=>{let _=e.pickedPath;if(_===void 0)return;let O={"mcp.script":"script","mcp.venvDir":"venvDir","mcp.interpreter":"interpreter","mcp.cwd":"cwd"}[_.purpose];O!==void 0&&i(h=>({...h,[O]:_.path}))},[e.pickedPath]);let l=Zv(t,r),c=t.trim()!==e.initialName&&e.existingNames.includes(t.trim())?"A server with this name already exists.":void 0,u=l.name??c,d=Object.keys(l).length>0||c!==void 0,m=_=>o?l[_]:void 0,p=_=>i({...r,..._}),f=a$.find(_=>_.value===r.kind),x=(()=>{let _=Cu(r,e.platform);return"url"in _?_.url:[_.command,..._.args??[]].join(" ")})();return(0,K.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z},children:[(0,K.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:e.initialName.length===0?"Add MCP server":`Edit ${e.initialName}`}),(0,K.jsx)(Mu,{id:"lc-mcp-name",label:"Name",value:t,placeholder:"filesystem",hint:"Prefixes every tool this server exposes, e.g. filesystem__read_file.",...o&&u!==void 0?{error:u}:{},onChange:n}),(0,K.jsx)("label",{style:q(),children:"Type"}),(0,K.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginBottom:4},children:a$.map(_=>{let O=_.value===r.kind;return(0,K.jsx)("button",{type:"button",title:`${_.blurb} Transport: ${_.transport}.`,onClick:()=>p({kind:_.value}),style:{padding:"3px 10px",fontFamily:Z,fontSize:11,borderRadius:3,cursor:"pointer",background:O?s.accent:"transparent",color:O?s.buttonForeground:s.muted,border:`1px solid ${O?s.accent:s.border}`},children:_.label},_.value)})}),(0,K.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 12px"},children:f?.blurb}),r.kind==="python"&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(pn,{id:"lc-mcp-script",label:"Server script",value:r.script,placeholder:e.platform==="win32"?"C:\\work\\my-server\\server.py":"/home/me/my-server/server.py",hint:"Your FastMCP entry point. Pick this first \u2014 the virtualenv beside it is found automatically.",browse:{purpose:"mcp.script",kind:"file",extensions:["py"]},onBrowse:e.onBrowse,...m("script")!==void 0?{error:m("script")}:{},onChange:_=>p({script:_})}),(0,K.jsx)(pn,{id:"lc-mcp-venv",label:"Virtualenv folder",value:r.venvDir,placeholder:e.platform==="win32"?"C:\\work\\my-server\\.venv":"/home/me/my-server/.venv",hint:"Leave blank and press Detect to search beside the script.",browse:{purpose:"mcp.venvDir",kind:"folder"},onBrowse:e.onBrowse,...m("venvDir")!==void 0?{error:m("venvDir")}:{},onChange:_=>p({venvDir:_}),children:(0,K.jsx)("button",{type:"button",style:D(),title:"Look on disk for the interpreter, or for a virtualenv beside the script",onClick:()=>e.onDetect(r.venvDir,r.script),children:"Detect"})}),e.probe!==void 0&&(0,K.jsx)("div",{style:{fontSize:11,marginBottom:8,color:e.probe.interpreter!==void 0?s.muted:s.error},children:e.probe.detail}),(0,K.jsx)(pn,{id:"lc-mcp-interpreter",label:"Python interpreter",value:r.interpreter,placeholder:r.venvDir.trim().length>0?Tu(r.venvDir.trim(),e.platform):e.platform==="win32"?"python.exe":"python3",hint:"Filled in by Detect. Override it for a conda environment, a system Python, or any layout detection does not recognise \u2014 this is the executable that actually runs.",browse:{purpose:"mcp.interpreter",kind:"file"},onBrowse:e.onBrowse,onChange:_=>p({interpreter:_})})]}),r.kind==="npx"&&(0,K.jsx)(Mu,{id:"lc-mcp-package",label:"Package",value:r.packageName,mono:!0,placeholder:"@modelcontextprotocol/server-filesystem",hint:"Run with -y so it installs without waiting for a confirmation nobody can answer. It is fetched from the network on first use.",...m("packageName")!==void 0?{error:m("packageName")}:{},onChange:_=>p({packageName:_})}),r.kind==="custom"&&(0,K.jsx)(Mu,{id:"lc-mcp-command",label:"Command",value:r.command,mono:!0,placeholder:"docker",hint:"An executable on PATH, or an absolute path to one.",...m("command")!==void 0?{error:m("command")}:{},onChange:_=>p({command:_})}),r.kind==="http"&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Mu,{id:"lc-mcp-url",label:"URL",value:r.url,mono:!0,placeholder:"https://mcp.internal/mcp",...m("url")!==void 0?{error:m("url")}:{},onChange:_=>p({url:_})}),(0,K.jsx)(l$,{idPrefix:"lc-mcp-header",label:"Headers",hint:"Use ${secret:NAME} for a token \u2014 it is read from secret storage at connect time and never written to the config file.",pairs:r.headers,onChange:_=>p({headers:_})})]}),r.kind!=="http"&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)("div",{style:{marginBottom:10},children:[(0,K.jsx)("label",{htmlFor:"lc-mcp-args",style:q(),children:"Arguments"}),(0,K.jsx)("textarea",{id:"lc-mcp-args",value:r.args.join(`
78
93
  `),spellCheck:!1,rows:3,placeholder:`--root
79
- /data`,onChange:$=>f({args:$.target.value.split(`
80
- `)}),style:{width:"100%",boxSizing:"border-box",background:p.inputBackground,color:p.inputForeground,border:`1px solid ${p.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:La,fontSize:12,resize:"vertical"}}),(0,M.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11},children:"One per line \u2014 not a command line, so nothing is split on spaces and quoting is never needed. A path containing a space goes on its own line as-is."})]}),(0,M.jsx)(oi,{id:"lc-mcp-cwd",label:"Working directory",value:i.cwd,placeholder:"Optional",hint:"Where the process starts. Set it if your server reads files by relative path.",browse:{purpose:"mcp.cwd",kind:"folder"},onBrowse:e.onBrowse,onChange:$=>f({cwd:$})}),(0,M.jsx)(L0,{idPrefix:"lc-mcp-env",label:"Environment variables",hint:"Use ${secret:NAME} for a credential \u2014 it is read from secret storage at launch and never written to the config file. Provider API keys are never passed through.",pairs:i.env,onChange:$=>f({env:$})})]}),(0,M.jsxs)("div",{style:{marginBottom:12},children:[(0,M.jsxs)("label",{style:ee(),children:[i.kind==="http"?"Connects to":"Will run",(0,M.jsx)("span",{style:{marginLeft:6,fontWeight:"normal",textTransform:"none",opacity:.7},children:m?.transport})]}),(0,M.jsx)("div",{style:{fontFamily:La,fontSize:11,color:p.muted,background:p.inputBackground,border:`1px solid ${p.border}`,borderRadius:2,padding:"6px 8px",wordBreak:"break-all"},children:S.trim().length>0?S:"\u2014"})]}),(0,M.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,M.jsx)("button",{type:"button",style:Me(!1),onClick:()=>{a(!0),!s&&e.onSave(t.trim(),e.initialName.length>0?e.initialName:void 0,Ac(i,e.platform,e.initialConfig))},children:"Save"}),(0,M.jsx)("button",{type:"button",style:J(),onClick:e.onCancel,children:"Cancel"}),e.saving&&(0,M.jsx)("span",{style:{fontSize:11,color:p.muted},children:"Saving\u2026"}),o&&s&&(0,M.jsx)("span",{style:{fontSize:11,color:p.error},children:"Fix the fields above."})]})]})}var so="var(--vscode-editor-font-family, monospace)",ND={ready:"var(--vscode-testing-iconPassed, #3fb950)",connecting:"var(--vscode-descriptionForeground)",idle:"var(--vscode-descriptionForeground)",disabled:"var(--vscode-descriptionForeground)",failed:"var(--vscode-errorForeground)"},Qv=[{value:"always",label:"Always",title:"Run without asking, in this workspace"},{value:"ask",label:"Ask",title:"Ask for approval every time"},{value:"never",label:"Never",title:"Hide this tool from the model entirely"}];function ID(e){return(0,B.jsx)("div",{style:{display:"flex",flexShrink:0},children:Qv.map((t,n)=>{let i=t.value===e.value;return(0,B.jsx)("button",{type:"button",title:t.title,onClick:()=>e.onChange(t.value),style:{padding:"1px 7px",fontFamily:q,fontSize:10,cursor:"pointer",background:i?p.buttonBackground:"transparent",color:i?p.buttonForeground:p.muted,border:`1px solid ${i?p.buttonBackground:p.border}`,borderLeftWidth:n===0?1:0,borderTopLeftRadius:n===0?3:0,borderBottomLeftRadius:n===0?3:0,borderTopRightRadius:n===Qv.length-1?3:0,borderBottomRightRadius:n===Qv.length-1?3:0},children:t.label},t.value)})})}var ZD={ready:"ready",connecting:"starting\u2026",idle:"not started",disabled:"disabled",failed:"failed"};function MD(e){let{server:t}=e,[n,i]=(0,pn.useState)(!1),[r,o]=(0,pn.useState)(!1),a=t.status==="ready"||t.status==="connecting";return(0,B.jsxs)("div",{style:{borderBottom:`1px solid ${p.border}`,padding:"6px 0"},children:[(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,B.jsx)("button",{type:"button",onClick:()=>i(!n),style:{background:"transparent",border:"none",color:p.muted,cursor:"pointer",padding:0,width:14},"aria-label":n?"Collapse":"Expand",children:n?"\u25BE":"\u25B8"}),(0,B.jsx)("span",{style:{color:ND[t.status],fontSize:10},children:"\u25CF"}),(0,B.jsx)("strong",{style:{fontFamily:so,fontSize:12},children:t.name}),(0,B.jsxs)("span",{style:{color:p.muted,fontSize:11},children:[e.transport," \xB7 ",ZD[t.status],t.status==="ready"&&` \xB7 ${t.tools.length} tool${t.tools.length===1?"":"s"}`]}),(0,B.jsxs)("label",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4,fontSize:11,cursor:"pointer"},title:"Disabling removes this server's tools from the model entirely",children:[(0,B.jsx)("input",{type:"checkbox",checked:t.enabled,onChange:l=>e.onSetServerEnabled(t.name,l.target.checked)}),"Enabled"]}),t.enabled&&!a&&(0,B.jsx)("button",{type:"button",style:J(),onClick:()=>e.onConnect(t.name),children:"Connect"}),a&&(0,B.jsx)("button",{type:"button",style:J(),onClick:()=>e.onRestart(t.name),children:"Restart"}),(0,B.jsx)("button",{type:"button",style:J(),onClick:()=>e.onEdit(t.name),children:"Edit"}),(0,B.jsx)("button",{type:"button","aria-label":`Delete ${t.name}`,title:"Remove this server",style:Re("ghost"),onClick:()=>e.onDelete(t.name),children:(0,B.jsx)(kn,{})})]}),t.error!==void 0&&(0,B.jsx)("div",{style:Nt(),children:t.error}),e.warnings.map(l=>(0,B.jsxs)("div",{style:{color:p.muted,fontSize:11,marginTop:4},children:["\u26A0 ",l]},l)),t.logs.length>0&&(0,B.jsxs)("div",{style:{marginTop:4,paddingLeft:22},children:[(0,B.jsxs)("button",{type:"button",onClick:()=>o(!r),style:{background:"transparent",border:"none",color:p.muted,cursor:"pointer",padding:0,fontFamily:q,fontSize:11},children:[r?"\u25BE":"\u25B8"," Log (",t.logs.length,")"]}),r&&(0,B.jsx)("pre",{style:{margin:"4px 0 0",padding:6,maxHeight:160,overflow:"auto",background:p.inputBackground,border:`1px solid ${p.border}`,borderRadius:3,fontFamily:so,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.logs.join(`
81
- `)})]}),n&&(0,B.jsx)("div",{style:{marginTop:6,paddingLeft:22},children:t.tools.length===0?(0,B.jsx)("p",{style:{color:p.muted,fontSize:11,margin:0},children:t.enabled?"No tools discovered yet \u2014 press Connect, or they load on first use.":"Enable this server to see its tools."}):t.tools.map(l=>(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 0"},children:[(0,B.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,B.jsx)("span",{style:{fontFamily:so,fontSize:12},children:l.name}),l.description.length>0&&(0,B.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:l.description,children:l.description})]}),(0,B.jsx)(ID,{value:l.permission,onChange:u=>e.onSetToolPermission(t.name,l.name,u)})]},l.name))})]})}function Wv(e){let[t,n]=(0,pn.useState)(e.json),[i,r]=(0,pn.useState)(!1),[o,a]=(0,pn.useState)(void 0),[l,u]=(0,pn.useState)(void 0),[c,s]=(0,pn.useState)(!1);return(0,pn.useEffect)(()=>{n(e.json)},[e.json]),(0,pn.useEffect)(()=>{c&&(s(!1),a(void 0))},[e.savedTick]),o!==void 0?(0,B.jsx)(P0,{initialName:o,initialConfig:e.configs[o],existingNames:e.servers.map(d=>d.name),platform:e.platform,saving:c,probe:e.pythonProbe,onDetect:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSave:(d,f,m)=>{s(!0),e.onSaveServer(d,f,m)},onCancel:()=>a(void 0)}):(0,B.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:q},children:[(0,B.jsx)("h3",{style:{margin:"0 0 4px",color:p.foreground},children:"MCP Servers"}),(0,B.jsxs)("p",{style:{color:p.muted,fontSize:11,marginTop:0},children:["Uses the standard ",(0,B.jsx)("code",{style:{fontFamily:so},children:"mcpServers"})," shape, so a config from another MCP client can be pasted in unchanged."]}),e.servers.length===0?(0,B.jsx)("p",{style:{color:p.muted,fontSize:12},children:"No servers configured yet."}):e.servers.map(d=>(0,B.jsxs)("div",{children:[(0,B.jsx)(MD,{server:d,transport:e.configs[d.name]!==void 0&&"url"in e.configs[d.name]?"HTTP":"stdio",warnings:e.warnings[d.name]??[],onRestart:e.onRestart,onConnect:e.onConnect,onSetServerEnabled:e.onSetServerEnabled,onSetToolPermission:e.onSetToolPermission,onEdit:a,onDelete:u}),l===d.name&&(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 0 6px 22px",fontSize:12},children:[(0,B.jsxs)("span",{children:["Remove ",d.name,"?"]}),(0,B.jsx)("button",{type:"button",style:J(),onClick:()=>{e.onDeleteServer(d.name),u(void 0)},children:"Remove"}),(0,B.jsx)("button",{type:"button",style:J(),onClick:()=>u(void 0),children:"Keep"})]})]},d.name)),(0,B.jsxs)("div",{style:{display:"flex",gap:8,marginTop:16},children:[(0,B.jsx)("button",{type:"button",style:Me(!1),onClick:()=>a(""),children:"Add server"}),(0,B.jsx)("button",{type:"button",style:J(),title:"Edit every server as raw JSON \u2014 for pasting a config from another client",onClick:()=>r(!i),children:i?"Hide JSON":"Edit as JSON"})]}),i&&(0,B.jsxs)("div",{style:{marginTop:10},children:[(0,B.jsx)("label",{htmlFor:"lc-mcp-json",style:ee(),children:"Configuration"}),(0,B.jsx)("textarea",{id:"lc-mcp-json",value:t,spellCheck:!1,rows:14,onChange:d=>n(d.target.value),style:{width:"100%",boxSizing:"border-box",background:p.inputBackground,color:p.inputForeground,border:`1px solid ${e.saveError!==void 0?p.error:p.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:so,fontSize:12,resize:"vertical"}}),e.saveError!==void 0&&(0,B.jsx)("span",{style:Nt(),children:e.saveError}),(0,B.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,B.jsx)("button",{type:"button",style:Me(!1),onClick:()=>e.onSave(t),children:"Save"}),(0,B.jsx)("button",{type:"button",style:J(),onClick:()=>n(e.json),children:"Revert"})]}),(0,B.jsxs)("p",{style:{color:p.muted,fontSize:11,marginTop:12},children:["Secrets: use ",(0,B.jsx)("code",{style:{fontFamily:so},children:"${secret:NAME}"})," in an env value or header. The value is read from secret storage at launch and never written to the config file."]})]})]})}var ve=H(de(),1),fo=H(Ge(),1);var eh=H(de(),1);function xr(e){return e.ignored===!0?(0,eh.jsx)("span",{style:Ba("warning"),children:"Ignored (user-scope only)"}):(0,eh.jsx)("span",{style:Ba("neutral"),children:e.scope==="user"?"User":"Workspace"})}var th="__custom__",nh=[{value:"",label:"The CLI's own default"},{value:"opus",label:"Opus \u2014 strongest, most expensive"},{value:"sonnet",label:"Sonnet \u2014 balanced"},{value:"haiku",label:"Haiku \u2014 fastest and cheapest"}];function V0(e){let[t,n]=(0,fo.useState)(e.expert?.enabled??!1),[i,r]=(0,fo.useState)(e.expert?.path??"claude"),[o,a]=(0,fo.useState)(e.expert?.model??"");(0,fo.useEffect)(()=>{e.expert!==void 0&&(n(e.expert.enabled),r(e.expert.path),a(e.expert.model??""))},[e.expert]);let l=e.expert?.available===!0;return(0,ve.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,ve.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,ve.jsx)("h3",{style:{margin:0,color:p.foreground},children:"Expert"}),(0,ve.jsx)(xr,{scope:"user"})]}),(0,ve.jsx)("p",{style:{color:p.muted,fontSize:12,fontFamily:q,margin:"0 0 12px"},children:"Lets your everyday model consult Claude on hard problems \u2014 planning a change across several files, diagnosing a bug it has already failed to fix, or weighing two designs. It decides when the question is worth it, and each consultation appears in the transcript with what it cost."}),(0,ve.jsxs)("div",{style:{padding:8,marginBottom:12,borderRadius:3,border:`1px solid ${l?p.border:p.error}`},children:[(0,ve.jsx)("div",{style:{fontSize:12,color:l?p.foreground:p.error},children:e.expert===void 0?"Checking\u2026":l?`Found: ${e.expert.version??e.expert.path}`:"Claude CLI not found"}),e.expert!==void 0&&!l&&(0,ve.jsx)("div",{style:{fontSize:11,color:p.muted,marginTop:4},children:e.expert.reason??"Install it with: npm install -g @anthropic-ai/claude-code"})]}),(0,ve.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:12,fontSize:12},children:[(0,ve.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:t,onChange:u=>n(u.target.checked)}),(0,ve.jsxs)("span",{style:{color:p.foreground},children:["Enable Claude as the expert",(0,ve.jsx)("span",{style:{display:"block",color:p.muted,fontSize:11,marginTop:2},children:"Consultations are billed to your Claude account at its usual rates. Off by default; nothing runs and nothing is spent until you turn this on."})]})]}),(0,ve.jsxs)("div",{style:{marginBottom:12},children:[(0,ve.jsx)("label",{htmlFor:"lc-expert-path",style:ee(),children:"Command"}),(0,ve.jsx)("input",{id:"lc-expert-path",type:"text",value:i,placeholder:"claude",onChange:u=>r(u.target.value),style:se()}),(0,ve.jsx)("span",{style:{color:p.muted,fontSize:11},children:"Found on PATH by default. Use an absolute path for a non-standard install."})]}),(0,ve.jsxs)("div",{style:{marginBottom:16},children:[(0,ve.jsx)("label",{htmlFor:"lc-expert-model",style:ee(),children:"Model (optional)"}),(0,ve.jsxs)("select",{id:"lc-expert-model",value:nh.some(u=>u.value===o)?o:th,onChange:u=>a(u.target.value===th?"":u.target.value),style:{...Bn(),width:"100%",marginBottom:6},children:[nh.map(u=>(0,ve.jsx)("option",{value:u.value,style:Be(),children:u.label},u.value)),(0,ve.jsx)("option",{value:th,style:Be(),children:"Something else\u2026"})]}),!nh.some(u=>u.value===o)&&(0,ve.jsx)("input",{type:"text",value:o,placeholder:"e.g. claude-sonnet-4-5-20250929",onChange:u=>a(u.target.value),style:se()}),(0,ve.jsx)("span",{style:{color:p.muted,fontSize:11},children:"Aliases track the newest release of that tier. A smaller model makes consultations cheaper, at some cost to their quality."})]}),(0,ve.jsxs)("div",{style:{padding:8,marginBottom:16,borderRadius:3,border:`1px solid ${p.border}`,color:p.muted,fontSize:11},children:[(0,ve.jsx)("strong",{style:{color:p.foreground},children:"What the expert may do:"})," read and search this workspace, so it can gather its own context. It cannot edit files or run commands. Every change still goes through Light Code\u2019s own tools and your approval, so nothing reaches your repository without passing the usual prompt."]}),(0,ve.jsx)("button",{type:"button",style:Me(!1),onClick:()=>e.onSave(t,i.trim(),o.trim()),children:"Save"})]})}var Z=H(de(),1),kt=H(Ge(),1);var Xt=H(de(),1),q0=H(Ge(),1);function zn(e){let[t,n]=(0,q0.useState)(!e.hasValue);return t?(0,Xt.jsxs)("div",{style:{marginBottom:16},children:[(0,Xt.jsx)("label",{htmlFor:e.id,style:ee(),children:e.label}),(0,Xt.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,Xt.jsx)("input",{id:e.id,type:"password",value:e.value,placeholder:e.placeholder??"sk-...",onChange:i=>e.onChange(i.target.value),style:se()}),e.hasValue&&(0,Xt.jsx)("button",{type:"button",style:J(),onClick:()=>{e.onChange(""),n(!1)},children:"Cancel"})]})]}):(0,Xt.jsxs)("div",{style:{marginBottom:16},children:[(0,Xt.jsx)("label",{style:ee(),children:e.label}),(0,Xt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Xt.jsx)("span",{children:"Set"}),(0,Xt.jsx)("button",{type:"button",style:J(),onClick:()=>n(!0),children:"Replace"})]})]})}var H0={id:"",label:"",url:"",hasUsername:!1,hasPassword:!1};function mo(e){let t=e.value!==void 0&&(e.value<e.min||e.max!==void 0&&e.value>e.max);return(0,Z.jsxs)("div",{style:{marginBottom:8},title:e.tooltip,children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Z.jsxs)("label",{htmlFor:e.id,style:{...ee(),marginBottom:0,flex:1},children:[e.label,(0,Z.jsx)("span",{"aria-hidden":"true",style:{marginLeft:4,opacity:.6,cursor:"help",fontSize:10,border:`1px solid ${p.border}`,borderRadius:"50%",padding:"0 4px"},children:"?"}),(0,Z.jsxs)("span",{style:{display:"block",fontSize:10,opacity:.8},children:[e.hint!==void 0?`${e.hint} `:"",e.max!==void 0?`Allowed: ${e.min}\u2013${e.max}.`:`Minimum ${e.min}.`]})]}),(0,Z.jsx)("input",{id:e.id,type:"number",min:e.min,...e.max!==void 0?{max:e.max}:{},value:e.value??"",placeholder:e.placeholder,onChange:n=>{let i=Number.parseInt(n.target.value,10);e.onChange(Number.isNaN(i)?void 0:i)},style:{...se(),width:110,flex:"none",...t?{borderColor:"var(--vscode-inputValidation-errorBorder, red)"}:{}}})]}),t&&(0,Z.jsx)("div",{style:{fontSize:11,color:"var(--vscode-errorForeground, red)",textAlign:"right"},children:e.max!==void 0?`Must be between ${e.min} and ${e.max}.`:`Must be at least ${e.min}.`})]})}var po={maxHits:{min:1,max:100},timeoutSeconds:{min:1,max:120},terminateAfter:{min:0},maxIndexes:{min:0},defaultLookbackHours:{min:0},maxFieldChars:{min:50,max:2e4}};function G0(e){let[t,n]=(0,kt.useState)(void 0),[i,r]=(0,kt.useState)(""),[o,a]=(0,kt.useState)(""),[l,u]=(0,kt.useState)(""),[c,s]=(0,kt.useState)(""),[d,f]=(0,kt.useState)(!1),[m,S]=(0,kt.useState)(""),[$,C]=(0,kt.useState)(""),[v,g]=(0,kt.useState)({}),[h,b]=(0,kt.useState)(!1);(0,kt.useEffect)(()=>{h&&(b(!1),n(void 0))},[e.savedTick]),(0,kt.useEffect)(()=>{let E=t??H0;r(E.label),a(E.url),u(E.defaultIndex??""),s(E.caFile??""),f(E.rejectUnauthorized===!1),S(""),C(""),g(E.limits??{})},[t]);let j=()=>({...t!==void 0&&t.id.length>0?{id:t.id}:{},label:i,url:o,defaultIndex:l,caFile:c,...d?{rejectUnauthorized:!1}:{},...m.length>0?{username:m}:{},...$.length>0?{password:$}:{},...Object.keys(v).length>0?{limits:v}:{}});return t!==void 0?(0,Z.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Z.jsx)("h3",{style:{margin:"0 0 12px",color:p.foreground},children:t.id.length===0?"Add OpenSearch connection":"Edit connection"}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-label",style:ee(),children:"Name"}),(0,Z.jsx)("input",{id:"lc-os-label",type:"text",value:i,placeholder:"Production",onChange:E=>r(E.target.value),style:se()})]}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-url",style:ee(),children:"Cluster URL"}),(0,Z.jsx)("input",{id:"lc-os-url",type:"text",value:o,placeholder:"https://opensearch.internal:9200",onChange:E=>a(E.target.value),style:se()})]}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-user",style:ee(),children:"Username"}),(0,Z.jsx)("input",{id:"lc-os-user",type:"text",value:m,placeholder:t.hasUsername?"Set \u2014 type to replace":"",onChange:E=>S(E.target.value),style:se()})]}),(0,Z.jsx)(zn,{id:"lc-os-password",label:"Password",hasValue:t.hasPassword,value:$,onChange:C,placeholder:"Stored in the OS keychain"}),(0,Z.jsxs)("div",{style:{marginBottom:12},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-index",style:ee(),children:"Default index"}),(0,Z.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,Z.jsx)("input",{id:"lc-os-index",type:"text",value:l,placeholder:"Used when the model names no index",onChange:E=>u(E.target.value),style:se()}),(0,Z.jsx)("button",{type:"button",style:J(),onClick:()=>e.onListIndexes(j()),children:"List"})]}),e.indexes.length>0&&(0,Z.jsxs)("select",{"aria-label":"Available indexes",value:e.indexes.some(E=>E.name===l)?l:"",onChange:E=>{E.target.value.length>0&&u(E.target.value)},style:{...Bn(),width:"100%"},children:[(0,Z.jsxs)("option",{value:"",style:Be(),children:["Choose from ",e.indexes.length," index(es)\u2026"]}),e.indexes.map(E=>(0,Z.jsxs)("option",{value:E.name,style:Be(),children:[E.name,E.docsCount!==void 0?` \u2014 ${E.docsCount.toLocaleString()} docs`:"",E.storeSize!==void 0?`, ${E.storeSize}`:""]},E.name))]}),e.indexesWarning!==void 0&&e.indexes.length===0&&(0,Z.jsxs)("span",{style:{color:p.muted,fontSize:11,display:"block",marginTop:4},children:["Could not list indexes (",e.indexesWarning,"). Type the name instead."]})]}),(0,Z.jsx)("div",{style:{paddingTop:12,borderTop:`1px solid ${p.border}`,marginBottom:12},children:(0,Z.jsx)("strong",{style:{fontSize:12,color:p.foreground},children:"Connection security"})}),(0,Z.jsxs)("div",{style:{marginBottom:10},children:[(0,Z.jsx)("label",{htmlFor:"lc-os-ca",style:ee(),children:"Additional CA certificate"}),(0,Z.jsx)("input",{id:"lc-os-ca",type:"text",value:c,placeholder:"corp-root.pem",onChange:E=>s(E.target.value),style:se()}),(0,Z.jsx)("span",{style:{color:p.muted,fontSize:11},children:"Usually blank \u2014 the CA in Settings \u2192 Network already covers this cluster. Anything set here is added to it."})]}),(0,Z.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,Z.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:d,onChange:E=>f(E.target.checked)}),(0,Z.jsx)("span",{style:{color:p.foreground},children:"Skip certificate verification"})]}),d&&(0,Z.jsx)("p",{style:{color:p.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can read and modify it, including the password. The CA file above is the safe fix."}),(0,Z.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${p.border}`,marginBottom:8},children:[(0,Z.jsx)("strong",{style:{fontSize:12,color:p.foreground},children:"Query limits"}),(0,Z.jsx)("p",{style:{color:p.muted,fontSize:11,margin:"4px 0 8px"},children:"Guard rails on the queries the model writes. It cannot change anything in the cluster \u2014 but a read can still be expensive, so these keep one bounded. Defaults are chosen to be safe on a large cluster; raise them if you know yours can take it."})]}),(0,Z.jsx)(mo,{id:"lc-os-hits",...po.maxHits,label:"Maximum results",hint:"Documents returned per search.",tooltip:`How many documents one search returns.
94
+ /data`,onChange:_=>p({args:_.target.value.split(`
95
+ `)}),style:{width:"100%",boxSizing:"border-box",background:s.inputBackground,color:s.inputForeground,border:`1px solid ${s.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:Ul,fontSize:12,resize:"vertical"}}),(0,K.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"One per line \u2014 not a command line, so nothing is split on spaces and quoting is never needed. A path containing a space goes on its own line as-is."})]}),(0,K.jsx)(pn,{id:"lc-mcp-cwd",label:"Working directory",value:r.cwd,placeholder:"Optional",hint:"Where the process starts. Set it if your server reads files by relative path.",browse:{purpose:"mcp.cwd",kind:"folder"},onBrowse:e.onBrowse,onChange:_=>p({cwd:_})}),(0,K.jsx)(l$,{idPrefix:"lc-mcp-env",label:"Environment variables",hint:"Use ${secret:NAME} for a credential \u2014 it is read from secret storage at launch and never written to the config file. Provider API keys are never passed through.",pairs:r.env,onChange:_=>p({env:_})})]}),(0,K.jsxs)("div",{style:{marginBottom:12},children:[(0,K.jsxs)("label",{style:q(),children:[r.kind==="http"?"Connects to":"Will run",(0,K.jsx)("span",{style:{marginLeft:6,fontWeight:"normal",textTransform:"none",opacity:.7},children:f?.transport})]}),(0,K.jsx)("div",{style:{fontFamily:Ul,fontSize:11,color:s.muted,background:s.inputBackground,border:`1px solid ${s.border}`,borderRadius:2,padding:"6px 8px",wordBreak:"break-all"},children:x.trim().length>0?x:"\u2014"})]}),(0,K.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,K.jsx)("button",{type:"button",style:fe(!1),onClick:()=>{a(!0),!d&&e.onSave(t.trim(),e.initialName.length>0?e.initialName:void 0,Cu(r,e.platform,e.initialConfig))},children:"Save"}),(0,K.jsx)("button",{type:"button",style:D(),onClick:e.onCancel,children:"Cancel"}),e.saving&&(0,K.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saving\u2026"}),o&&d&&(0,K.jsx)("span",{style:{fontSize:11,color:s.error},children:"Fix the fields above."})]})]})}var Ko="var(--vscode-editor-font-family, monospace)",FA={ready:"var(--vscode-testing-iconPassed, #3fb950)",connecting:"var(--vscode-descriptionForeground)",idle:"var(--vscode-descriptionForeground)",disabled:"var(--vscode-descriptionForeground)",failed:"var(--vscode-errorForeground)"},xy=[{value:"always",label:"Always",title:"Run without asking, in this workspace"},{value:"ask",label:"Ask",title:"Ask for approval every time"},{value:"never",label:"Never",title:"Hide this tool from the model entirely"}];function qA(e){return(0,X.jsx)("div",{style:{display:"flex",flexShrink:0},children:xy.map((t,n)=>{let r=t.value===e.value;return(0,X.jsx)("button",{type:"button",title:t.title,onClick:()=>e.onChange(t.value),style:{padding:"1px 7px",fontFamily:Z,fontSize:10,cursor:"pointer",background:r?s.accent:"transparent",color:r?s.buttonForeground:s.muted,border:`1px solid ${r?s.accent:s.border}`,borderLeftWidth:n===0?1:0,borderTopLeftRadius:n===0?3:0,borderBottomLeftRadius:n===0?3:0,borderTopRightRadius:n===xy.length-1?3:0,borderBottomRightRadius:n===xy.length-1?3:0},children:t.label},t.value)})})}var HA={ready:"ready",connecting:"starting\u2026",idle:"not started",disabled:"disabled",failed:"failed"};function GA(e){let{server:t}=e,[n,r]=(0,Hn.useState)(!1),[i,o]=(0,Hn.useState)(!1),a=t.status==="ready"||t.status==="connecting";return(0,X.jsxs)("div",{style:{borderBottom:`1px solid ${s.border}`,padding:"6px 0"},children:[(0,X.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,X.jsx)("button",{type:"button",onClick:()=>r(!n),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0,width:14},"aria-label":n?"Collapse":"Expand",children:n?"\u25BE":"\u25B8"}),(0,X.jsx)("span",{style:{color:FA[t.status],fontSize:10},children:"\u25CF"}),(0,X.jsx)("strong",{style:{fontFamily:Ko,fontSize:12},children:t.name}),(0,X.jsxs)("span",{style:{color:s.muted,fontSize:11},children:[e.transport," \xB7 ",HA[t.status],t.status==="ready"&&` \xB7 ${t.tools.length} tool${t.tools.length===1?"":"s"}`]}),(0,X.jsxs)("label",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4,fontSize:11,cursor:"pointer"},title:"Disabling removes this server's tools from the model entirely",children:[(0,X.jsx)("input",{type:"checkbox",checked:t.enabled,onChange:l=>e.onSetServerEnabled(t.name,l.target.checked)}),"Enabled"]}),t.enabled&&!a&&(0,X.jsx)("button",{type:"button",style:D(),onClick:()=>e.onConnect(t.name),children:"Connect"}),a&&(0,X.jsx)("button",{type:"button",style:D(),onClick:()=>e.onRestart(t.name),children:"Restart"}),(0,X.jsx)("button",{type:"button",style:D(),onClick:()=>e.onEdit(t.name),children:"Edit"}),(0,X.jsx)("button",{type:"button","aria-label":`Duplicate ${t.name}`,title:"Duplicate this server. The copy starts disabled so you can edit it first.",style:pe("ghost"),onClick:()=>e.onDuplicate(t.name),children:(0,X.jsx)(tr,{})}),(0,X.jsx)("button",{type:"button","aria-label":`Delete ${t.name}`,title:"Remove this server",style:pe("ghost"),onClick:()=>e.onDelete(t.name),children:(0,X.jsx)(zt,{})})]}),t.error!==void 0&&(0,X.jsx)("div",{style:fn(),children:t.error}),e.warnings.map(l=>(0,X.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["\u26A0 ",l]},l)),t.logs.length>0&&(0,X.jsxs)("div",{style:{marginTop:4,paddingLeft:22},children:[(0,X.jsxs)("button",{type:"button",onClick:()=>o(!i),style:{background:"transparent",border:"none",color:s.muted,cursor:"pointer",padding:0,fontFamily:Z,fontSize:11},children:[i?"\u25BE":"\u25B8"," Log (",t.logs.length,")"]}),i&&(0,X.jsx)("pre",{style:{margin:"4px 0 0",padding:6,maxHeight:160,overflow:"auto",background:s.inputBackground,border:`1px solid ${s.border}`,borderRadius:3,fontFamily:Ko,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:t.logs.join(`
96
+ `)})]}),n&&(0,X.jsx)("div",{style:{marginTop:6,paddingLeft:22},children:t.tools.length===0?(0,X.jsx)("p",{style:{color:s.muted,fontSize:11,margin:0},children:t.enabled?"No tools discovered yet \u2014 press Connect, or they load on first use.":"Enable this server to see its tools."}):t.tools.map(l=>(0,X.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"3px 0"},children:[(0,X.jsxs)("span",{style:{flex:1,minWidth:0},children:[(0,X.jsx)("span",{style:{fontFamily:Ko,fontSize:12},children:l.name}),l.description.length>0&&(0,X.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:l.description,children:l.description})]}),(0,X.jsx)(qA,{value:l.permission,onChange:c=>e.onSetToolPermission(t.name,l.name,c)})]},l.name))})]})}function Sy(e){let[t,n]=(0,Hn.useState)(e.json),[r,i]=(0,Hn.useState)(!1),[o,a]=(0,Hn.useState)(void 0),[l,c]=(0,Hn.useState)(void 0),[u,d]=(0,Hn.useState)(!1);return(0,Hn.useEffect)(()=>{n(e.json)},[e.json]),(0,Hn.useEffect)(()=>{u&&(d(!1),a(void 0))},[e.savedTick]),o!==void 0?(0,X.jsx)(c$,{initialName:o,initialConfig:e.configs[o],existingNames:e.servers.map(m=>m.name),platform:e.platform,saving:u,probe:e.pythonProbe,onDetect:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSave:(m,p,f)=>{d(!0),e.onSaveServer(m,p,f)},onCancel:()=>a(void 0)}):(0,X.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z},children:[(0,X.jsx)("h3",{style:{margin:"0 0 4px",color:s.foreground},children:"MCP Servers"}),(0,X.jsxs)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:["Uses the standard ",(0,X.jsx)("code",{style:{fontFamily:Ko},children:"mcpServers"})," shape, so a config from another MCP client can be pasted in unchanged."]}),e.servers.length===0?(0,X.jsx)("p",{style:{color:s.muted,fontSize:12},children:"No servers configured yet."}):e.servers.map(m=>(0,X.jsxs)("div",{children:[(0,X.jsx)(GA,{server:m,transport:e.configs[m.name]!==void 0&&"url"in e.configs[m.name]?"HTTP":"stdio",warnings:e.warnings[m.name]??[],onRestart:e.onRestart,onConnect:e.onConnect,onSetServerEnabled:e.onSetServerEnabled,onSetToolPermission:e.onSetToolPermission,onEdit:a,onDelete:c,onDuplicate:e.onDuplicateServer}),l===m.name&&(0,X.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"6px 0 6px 22px",fontSize:12},children:[(0,X.jsxs)("span",{children:["Remove ",m.name,"?"]}),(0,X.jsx)("button",{type:"button",style:D(),onClick:()=>{e.onDeleteServer(m.name),c(void 0)},children:"Remove"}),(0,X.jsx)("button",{type:"button",style:D(),onClick:()=>c(void 0),children:"Keep"})]})]},m.name)),(0,X.jsxs)("div",{style:{display:"flex",gap:8,marginTop:16},children:[(0,X.jsx)("button",{type:"button",style:fe(!1),onClick:()=>a(""),children:"Add server"}),(0,X.jsx)("button",{type:"button",style:D(),title:"Edit every server as raw JSON \u2014 for pasting a config from another client",onClick:()=>i(!r),children:r?"Hide JSON":"Edit as JSON"})]}),r&&(0,X.jsxs)("div",{style:{marginTop:10},children:[(0,X.jsx)("label",{htmlFor:"lc-mcp-json",style:q(),children:"Configuration"}),(0,X.jsx)("textarea",{id:"lc-mcp-json",value:t,spellCheck:!1,rows:14,onChange:m=>n(m.target.value),style:{width:"100%",boxSizing:"border-box",background:s.inputBackground,color:s.inputForeground,border:`1px solid ${e.saveError!==void 0?s.error:s.inputBorder}`,borderRadius:2,padding:"6px 8px",fontFamily:Ko,fontSize:12,resize:"vertical"}}),e.saveError!==void 0&&(0,X.jsx)("span",{style:fn(),children:e.saveError}),(0,X.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8},children:[(0,X.jsx)("button",{type:"button",style:fe(!1),onClick:()=>e.onSave(t),children:"Save"}),(0,X.jsx)("button",{type:"button",style:D(),onClick:()=>n(e.json),children:"Revert"})]}),(0,X.jsxs)("p",{style:{color:s.muted,fontSize:11,marginTop:12},children:["Secrets: use ",(0,X.jsx)("code",{style:{fontFamily:Ko},children:"${secret:NAME}"})," in an env value or header. The value is read from secret storage at launch and never written to the config file."]})]})]})}var Q=P(ie(),1),oi=P(he(),1);var ky=P(ie(),1);function ir(e){return e.ignored===!0?(0,ky.jsx)("span",{style:Fe("warning"),children:"Ignored (user-scope only)"}):(0,ky.jsx)("span",{style:Fe("neutral"),children:e.scope==="user"?"User":"Workspace"})}var s$="var(--vscode-editor-font-family, monospace)",_y="__custom__",$y=[{value:"",label:"The CLI's own default"},{value:"opus",label:"Opus \u2014 strongest, most expensive"},{value:"sonnet",label:"Sonnet \u2014 balanced"},{value:"haiku",label:"Haiku \u2014 fastest and cheapest"}];function u$(e){let[t,n]=(0,oi.useState)(e.expert?.enabled??!1),[r,i]=(0,oi.useState)(e.expert?.path??"claude"),[o,a]=(0,oi.useState)(e.expert?.model??""),[l,c]=(0,oi.useState)(String(e.expert?.maxSpendUsd??0)),[u,d]=(0,oi.useState)(String(e.expert?.maxConsultations??0));(0,oi.useEffect)(()=>{e.expert!==void 0&&(n(e.expert.enabled),i(e.expert.path),a(e.expert.model??""),c(String(e.expert.maxSpendUsd)),d(String(e.expert.maxConsultations)))},[e.expert]),(0,oi.useEffect)(()=>{e.pickedPath?.purpose==="expert.path"&&i(e.pickedPath.path)},[e.pickedPath]);let m=f=>{let x=Number(f.trim());return Number.isFinite(x)&&x>0?x:0},p=e.expert?.available===!0;return(0,Q.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,Q.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Expert"}),(0,Q.jsx)(ir,{scope:"user"})]}),(0,Q.jsx)("p",{style:{color:s.muted,fontSize:12,fontFamily:Z,margin:"0 0 12px"},children:"Lets your everyday model consult Claude on hard problems \u2014 planning a change across several files, diagnosing a bug it has already failed to fix, or weighing two designs. It decides when the question is worth it, and each consultation appears in the transcript with what it cost."}),(0,Q.jsxs)("div",{style:{padding:8,marginBottom:12,borderRadius:3,border:`1px solid ${p?s.border:s.error}`},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Q.jsx)("div",{style:{fontSize:12,color:p?s.foreground:s.error},children:e.expert===void 0?"Checking\u2026":p?`Found: ${e.expert.version??e.expert.path}`:"Claude CLI not found"}),(0,Q.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Look for the Claude CLI again",onClick:e.onRecheck,children:"Re-check"})]}),e.expert!==void 0&&!p&&(0,Q.jsx)("div",{style:{fontSize:11,color:s.muted,marginTop:4},children:e.expert.reason??"Install it with: npm install -g @anthropic-ai/claude-code"})]}),(0,Q.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:12,fontSize:12},children:[(0,Q.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:t,onChange:f=>n(f.target.checked)}),(0,Q.jsxs)("span",{style:{color:s.foreground},children:["Enable Claude as the expert",(0,Q.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginTop:2},children:"Consultations are billed to your Claude account at its usual rates. Off by default; nothing runs and nothing is spent until you turn this on."})]})]}),(0,Q.jsx)(pn,{id:"lc-expert-path",label:"Command",value:r,placeholder:"claude",hint:"Found on PATH by default. If detection cannot find it, browse to the executable \u2014 on Windows that is usually claude.cmd in %APPDATA%\\npm.",browse:{purpose:"expert.path",kind:"file"},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:i}),(0,Q.jsxs)("div",{style:{marginBottom:16},children:[(0,Q.jsx)("label",{htmlFor:"lc-expert-model",style:q(),children:"Model (optional)"}),(0,Q.jsx)(Je,{id:"lc-expert-model",value:$y.some(f=>f.value===o)?o:_y,onChange:f=>a(f===_y?"":f),style:{width:"100%",marginBottom:6},options:[...$y.map(f=>({value:f.value,label:f.label})),{value:_y,label:"Something else\u2026"}]}),!$y.some(f=>f.value===o)&&(0,Q.jsx)("input",{type:"text",value:o,placeholder:"e.g. claude-sonnet-4-5-20250929",onChange:f=>a(f.target.value),style:Y()}),(0,Q.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Aliases track the newest release of that tier. A smaller model makes consultations cheaper, at some cost to their quality."})]}),(0,Q.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,marginBottom:16},children:[(0,Q.jsx)("label",{style:q(),children:"Budget per task"}),(0,Q.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,Q.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Stop after"}),(0,Q.jsx)("input",{type:"number",min:"0",step:"0.25",value:l,onChange:f=>c(f.target.value),"aria-label":"Maximum spend per task in dollars",style:{...Y(),width:90}}),(0,Q.jsx)("span",{style:{color:s.muted,fontSize:11},children:"dollars, or"}),(0,Q.jsx)("input",{type:"number",min:"0",step:"1",value:u,onChange:f=>d(f.target.value),"aria-label":"Maximum consultations per task",style:{...Y(),width:70}}),(0,Q.jsx)("span",{style:{color:s.muted,fontSize:11},children:"consultations \u2014 whichever comes first."})]}),(0,Q.jsx)("span",{style:{color:s.muted,fontSize:11},children:"0 means no limit. When a limit is reached the expert stops being offered for that task and the assistant carries on alone; starting a new task resets it. A count limit is worth setting even if you set a spend limit, because the CLI does not always report a price and an unpriced consultation still costs money."})]}),(0,Q.jsxs)("div",{style:{padding:8,marginBottom:16,borderRadius:3,border:`1px solid ${s.border}`,color:s.muted,fontSize:11},children:[(0,Q.jsx)("strong",{style:{color:s.foreground},children:"What the expert may do:"})," read and search this workspace, so it can gather its own context. It cannot edit files or run commands. Every change still goes through Light Code\u2019s own tools and your approval, so nothing reaches your repository without passing the usual prompt."]}),(0,Q.jsxs)("div",{style:{marginBottom:16,border:`1px solid ${s.border}`,borderRadius:3,padding:8},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Q.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"How good is the junior?"}),(0,Q.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,Q.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},disabled:e.expert?.assessing===!0||!p,title:p?"Ask the junior five short questions, then have the expert grade the answers. Costs one consultation.":"Needs the Claude CLI \u2014 the assessment is the expert\u2019s judgement.",onClick:e.onAssess,children:e.expert?.assessment===void 0?"Assess it":"Assess again"}),e.expert?.assessment!==void 0&&(0,Q.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},onClick:e.onClearAssessment,children:"Clear"})]})]}),(0,Q.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"6px 0 0"},children:"The junior answers five short probes and the expert grades the actual answers \u2014 not the model\u2019s name, which would be a recollection rather than a measurement. The verdict is given back to the expert on later tasks so it sizes its plans to what this model can really do."}),e.expert?.assessing===!0&&(0,Q.jsx)("p",{style:{color:s.muted,fontSize:11,marginBottom:0},children:e.expert.assessmentStep??"Working\u2026"}),e.expert?.assessment!==void 0&&(0,Q.jsx)(YA,{assessment:e.expert.assessment,currentModel:e.expert.model??o})]}),(0,Q.jsx)("button",{type:"button",style:fe(!1),onClick:()=>e.onSave(t,r.trim(),o.trim(),{maxSpendUsd:m(l),maxConsultations:Math.round(m(u))}),children:"Save"})]})}function YA(e){let[t,n]=(0,oi.useState)(!1),{assessment:r}=e,i=r.model!==e.currentModel&&e.currentModel.length>0;return(0,Q.jsxs)("div",{style:{marginTop:8},children:[(0,Q.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap",fontSize:11},children:[(0,Q.jsx)("span",{style:{fontFamily:s$,color:s.foreground},children:r.model}),(0,Q.jsxs)("span",{style:{color:s.muted},children:["via ",r.profileLabel," \xB7 ",new Date(r.assessedAt).toLocaleDateString(),r.costUsd!==void 0?` \xB7 $${r.costUsd.toFixed(4)}`:""]}),i&&(0,Q.jsx)("span",{style:{...Fe("warning"),fontSize:9},title:"Assessed for a different model than the one now active",children:"different model"})]}),(0,Q.jsx)("div",{style:{whiteSpace:"pre-wrap",fontSize:11,color:s.foreground,marginTop:6,paddingLeft:8,borderLeft:`2px solid ${s.expert}`},children:r.verdict}),(0,Q.jsxs)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginTop:6},onClick:()=>n(o=>!o),children:[t?"Hide":"Show"," what it answered (",r.probes.length,")"]}),t&&r.probes.map(o=>(0,Q.jsxs)("div",{style:{marginTop:8,fontSize:11},children:[(0,Q.jsx)("div",{style:{color:s.foreground},children:o.measures}),(0,Q.jsx)("pre",{style:{margin:"3px 0 0",padding:6,whiteSpace:"pre-wrap",fontFamily:s$,fontSize:10,color:o.error!==void 0?s.error:s.muted,background:s.inputBackground,borderRadius:3},children:o.error!==void 0?`No answer \u2014 ${o.error}`:o.answer.trim()||"(empty)"})]},o.id))]})}var B=P(ie(),1),qt=P(he(),1);var W=P(ie(),1),Dn=P(he(),1);var JA=[384,768,1024,1536,3072];function d$(e){let[t,n]=(0,Dn.useState)(""),[r,i]=(0,Dn.useState)(""),[o,a]=(0,Dn.useState)(""),[l,c]=(0,Dn.useState)(""),[u,d]=(0,Dn.useState)(""),[m,p]=(0,Dn.useState)(!1),[f,x]=(0,Dn.useState)(!1);(0,Dn.useEffect)(()=>{n(e.embedder?.profileId??""),i(e.embedder?.model??""),a(e.embedder?.dimensions!==void 0?String(e.embedder.dimensions):""),c(e.embedder?.indexNameIsCustom===!0?e.embedder.indexName??"":""),d(e.embedder?.indexPrefix??"")},[e.embedder]),(0,Dn.useEffect)(()=>{t.length>0&&e.onRequestModels(t)},[t]),(0,Dn.useEffect)(()=>{if(e.savedTick===0)return;x(!0);let v=setTimeout(()=>x(!1),3e3);return()=>clearTimeout(v)},[e.savedTick]);let _=e.progress!==void 0&&e.progress.phase!=="done",O=Number.parseInt(o,10),h=t.length>0&&r.trim().length>0&&Number.isFinite(O)&&O>0,g=e.profiles.find(v=>v.id===t),b=h&&e.connectionLabel!==void 0&&e.embedder?.indexName!==void 0;return(0,W.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginTop:12},children:[(0,W.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Codebase indexing"}),(0,W.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 10px"},children:"Lets the model search this workspace by meaning rather than by exact text \u2014 useful when you do not know what something is called. Optional, and off until you index."}),(0,W.jsxs)("div",{style:{marginBottom:10},children:[(0,W.jsx)("label",{htmlFor:"lc-emb-profile",style:q(),children:"Embedding provider"}),(0,W.jsx)(Je,{id:"lc-emb-profile",value:t,onChange:n,style:{width:"100%"},options:[{value:"",label:"Choose a provider profile\u2026"},...e.profiles.map(v=>({value:v.id,label:v.label}))]}),(0,W.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Reuses an existing profile's URL, credentials and certificates \u2014 one place to get mutual TLS right instead of two.",g!==void 0&&` Requests go to ${g.baseUrl}.`]})]}),(0,W.jsxs)("div",{style:{marginBottom:10},children:[(0,W.jsx)("label",{htmlFor:"lc-emb-model",style:q(),children:"Embedding model"}),e.models.length>0&&(0,W.jsx)(Je,{ariaLabel:"Available models",value:e.models.includes(r)?r:"",onChange:v=>{v.length>0&&i(v)},style:{width:"100%",marginBottom:4},options:[{value:"",label:`Choose from ${e.models.length} model(s)\u2026`},...e.models.map(v=>({value:v,label:v}))]}),(0,W.jsx)("input",{id:"lc-emb-model",type:"text",value:r,spellCheck:!1,placeholder:"text-embedding-3-small",onChange:v=>i(v.target.value),style:Y()}),(0,W.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:[t.length===0?"Choose a provider above to see what it offers.":e.modelsLoading?"Fetching the model list\u2026":e.models.length===0?`No catalogue from this provider${e.modelsWarning!==void 0?` (${e.modelsWarning})`:""} \u2014 type the model name.`:"Pick one, or type a name the list does not include."," ","An embedding model, not a chat model."]})]}),(0,W.jsxs)("div",{style:{marginBottom:10},children:[(0,W.jsx)("label",{htmlFor:"lc-emb-dims",style:q(),children:"Vector width"}),(0,W.jsx)("input",{id:"lc-emb-dims",type:"number",list:"lc-emb-dims-common",value:o,placeholder:"1536",onChange:v=>a(v.target.value),style:{...Y(),width:160}}),(0,W.jsx)("datalist",{id:"lc-emb-dims-common",children:JA.map(v=>(0,W.jsx)("option",{value:v},v))}),(0,W.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Must match what the model actually returns \u2014 OpenSearch fixes this when the index is created. Getting it wrong fails on the first batch with the real width in the message."})]}),(0,W.jsxs)("div",{style:{marginBottom:10},children:[(0,W.jsx)("label",{htmlFor:"lc-emb-prefix",style:q(),children:"Index name prefix"}),(0,W.jsx)("input",{id:"lc-emb-prefix",type:"text",value:u,spellCheck:!1,placeholder:e.embedder?.defaultIndexPrefix??"light-code",onChange:v=>d(v.target.value),style:Y()}),(0,W.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Front of both derived names \u2014 the codebase index and the ",(0,W.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"-docs"})," ","one \u2014 so a shared cluster shows at a glance whose collections are whose. Lowercase letters, digits, dot, dash and underscore. Changing it points at ",(0,W.jsx)("em",{children:"new"}),", empty collections; the old ones keep their data until you delete them in OpenSearch."]})]}),(0,W.jsxs)("div",{style:{marginBottom:10},children:[(0,W.jsx)("label",{htmlFor:"lc-emb-index",style:q(),children:"Index name"}),(0,W.jsx)("input",{id:"lc-emb-index",type:"text",value:l,spellCheck:!1,placeholder:e.embedder?.indexName??"derived from the workspace path",onChange:v=>c(v.target.value),style:Y()}),(0,W.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Leave blank and one is derived from this folder's path \u2014 collision-free, but nobody looking at the cluster can tell whose it is. Name it if you share a cluster. Also how you move to a new index after changing the embedding model: a vector field's width is fixed when the index is created, so a different width needs a different index."})]}),(0,W.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:12},children:[(0,W.jsx)("button",{type:"button",style:D(),disabled:!h,onClick:()=>e.onSaveEmbedder(t,r.trim(),O,l.trim(),u.trim()),children:"Save embedder"}),!h&&(0,W.jsx)("span",{style:{fontSize:11,color:s.muted},children:t.length===0?"Choose a provider first.":r.trim().length===0?"Enter or pick an embedding model.":"Enter the vector width."}),h&&f&&(0,W.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saved."}),e.embedder?.indexedFiles!==void 0&&e.embedder.indexedFiles>0&&(0,W.jsxs)("span",{style:{fontSize:11,color:s.muted},children:[e.embedder.indexedFiles," file(s) indexed"]})]}),b&&!_&&(0,W.jsxs)("div",{style:{fontSize:11,color:s.muted,border:`1px solid ${s.border}`,borderRadius:3,padding:"8px 10px",marginBottom:8},children:["Indexing reads every source file in this workspace, sends it to"," ",(0,W.jsx)("strong",{style:{color:s.foreground},children:g?.baseUrl??"the embedding endpoint"})," to be embedded, and stores the result in"," ",(0,W.jsx)("strong",{style:{color:s.foreground},children:e.embedder?.indexName})," on"," ",(0,W.jsx)("strong",{style:{color:s.foreground},children:e.connectionLabel}),". Files that are gitignored, deny-listed or binary are never sent."]}),_?(0,W.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,W.jsx)("button",{type:"button",style:D(),onClick:e.onCancelIndexing,children:"Stop"}),(0,W.jsxs)("span",{style:{fontSize:11,color:s.muted},children:[e.progress?.phase," \u2014 ",e.progress?.filesIndexed," indexed, ",e.progress?.filesSkipped," skipped",e.progress?.current!==void 0&&` \xB7 ${e.progress.current}`]})]}):m?(0,W.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,W.jsx)("span",{style:{fontSize:12},children:"Send this workspace to be embedded?"}),(0,W.jsx)("button",{type:"button",style:fe(!1),onClick:()=>{p(!1),e.onStartIndexing()},children:"Index now"}),(0,W.jsx)("button",{type:"button",style:D(),onClick:()=>p(!1),children:"Cancel"})]}):(0,W.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,W.jsx)("button",{type:"button",style:fe(!b),disabled:!b,onClick:()=>p(!0),children:e.embedder!==void 0&&e.embedder.indexedFiles>0?"Reindex workspace":"Index workspace"}),!b&&(0,W.jsx)("span",{style:{fontSize:11,color:s.muted},children:e.connectionLabel===void 0?"Choose an active connection above first.":e.embedder?.indexName===void 0?"Open a folder to index.":"Save an embedder first."})]}),e.lastResult?.error!==void 0&&(0,W.jsx)("div",{style:{fontSize:11,color:s.error,marginTop:8},children:e.lastResult.error}),e.lastResult?.result!==void 0&&!_&&(0,W.jsxs)("div",{style:{fontSize:11,color:s.muted,marginTop:8},children:["Indexed ",e.lastResult.result.filesIndexed," file(s), ",e.lastResult.result.chunksWritten," chunk(s)",e.lastResult.result.filesRemoved>0&&`, removed ${e.lastResult.result.filesRemoved}`,".",Object.keys(e.lastResult.result.skipReasons).length>0&&(0,W.jsxs)("span",{children:[" ","Skipped:"," ",Object.entries(e.lastResult.result.skipReasons).map(([v,I])=>`${I} ${v}`).join(", "),"."]})]})]})}var Se=P(ie(),1);function f$(e){let t=e.hiddenTools>=15;return(0,Se.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,Se.jsx)("span",{style:q(),children:"Tool documentation index"}),(0,Se.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"6px 0 8px",cursor:"pointer"},children:[(0,Se.jsx)("input",{type:"checkbox",checked:e.enabled,onChange:n=>e.onToggle(n.target.checked),style:{marginTop:2}}),(0,Se.jsxs)("span",{children:[(0,Se.jsx)("span",{style:{display:"block",fontSize:13},children:"Keep tool schemas out of the prompt"}),(0,Se.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["MCP and Python tools stop being listed in every request. The model finds them with"," ",(0,Se.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"search_docs"})," and runs them through ",(0,Se.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:"call_tool"}),". You still approve everything exactly as before."]})]})]}),(0,Se.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 10px"},children:e.hiddenTools===0?(0,Se.jsx)(Se.Fragment,{children:"No MCP or Python tools to hide, so nothing is registered for this and it costs nothing."}):(0,Se.jsxs)(Se.Fragment,{children:[e.enabled?"Hiding":"Would hide"," ",(0,Se.jsx)("strong",{style:{color:s.foreground},children:e.hiddenTools})," ",e.hiddenTools===1?"tool":"tools","."," ",t?(0,Se.jsx)(Se.Fragment,{children:"That is enough to be worth it."}):(0,Se.jsx)(Se.Fragment,{children:"With this few, leaving it off is probably better \u2014 models call a listed tool more reliably than one named through a dispatcher."})]})}),(0,Se.jsxs)("label",{style:{display:"flex",gap:8,alignItems:"flex-start",margin:"0 0 8px",cursor:e.enabled?"pointer":"not-allowed",opacity:e.enabled?1:.55},children:[(0,Se.jsx)("input",{type:"checkbox",checked:e.skills&&e.enabled,disabled:!e.enabled,onChange:n=>e.onToggleSkills(n.target.checked),style:{marginTop:2}}),(0,Se.jsxs)("span",{children:[(0,Se.jsx)("span",{style:{display:"block",fontSize:13},children:"Look up skills the same way"}),(0,Se.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11},children:["Skill summaries stop being listed in every request. A count and an instruction to search stay, so the assistant still knows notes exist and looks for one before working on something unfamiliar."," ",e.hiddenSkills===0?"No skills recorded yet, so this changes nothing today.":`${String(e.hiddenSkills)} ${e.hiddenSkills===1?"skill":"skills"} affected.`,!e.enabled&&" Needs the setting above, which is what finds them."]})]})]}),(0,Se.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,Se.jsx)("button",{type:"button",style:D(),disabled:e.indexing||!e.retrievalReady,title:e.retrievalReady?"Embed the tool and skill documentation so search_docs can match by meaning":"Needs a search connection and an embedding model. Without them search_docs still works, matching names and descriptions.",onClick:e.onIndexDocs,children:e.indexing?"Indexing\u2026":"Index documentation"}),(0,Se.jsx)("button",{type:"button",style:D(),disabled:e.indexing||!e.retrievalReady,title:"Remove every indexed tool and skill document. search_docs falls back to matching names and descriptions until you index again.",onClick:e.onClearDocsIndex,children:"Clear index"}),e.docsIndex!==void 0&&(0,Se.jsx)("span",{style:{color:s.muted,fontSize:11,fontFamily:"var(--vscode-editor-font-family, monospace)"},children:e.docsIndex})]}),!e.retrievalReady&&(0,Se.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"8px 0 0"},children:["No embedding model configured, so ",(0,Se.jsx)("code",{children:"search_docs"})," matches on names and descriptions instead of by meaning. Tools remain findable either way."]}),e.result?.error!==void 0&&(0,Se.jsx)("p",{style:{color:s.error,fontSize:11,margin:"8px 0 0"},children:e.result.error}),e.result?.indexed!==void 0&&e.result.error===void 0&&(0,Se.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"8px 0 0",fontFamily:Z},children:["Indexed ",e.result.indexed," ",e.result.indexed===1?"entry":"entries",e.result.index!==void 0?` into ${e.result.index}`:"","."]})]})}var Ae=P(ie(),1),zy=P(he(),1);var wy="var(--vscode-editor-font-family, monospace)";function m$(e){let[t,n]=(0,zy.useState)(""),[r,i]=(0,zy.useState)("docs"),o=()=>{t.trim().length>0&&e.onProbe(t.trim(),r)};return(0,Ae.jsxs)("section",{style:{marginTop:18,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,Ae.jsx)("span",{style:q(),children:"Try a query"}),(0,Ae.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:"Runs through the same path the model uses, so what you see here is what it would have been given. Nothing is sent to the model."}),(0,Ae.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,Ae.jsx)(Je,{compact:!0,value:r,ariaLabel:"What to search",onChange:a=>i(a),options:[{value:"docs",label:"Tools & skills"},{value:"codebase",label:"Codebase"}]}),(0,Ae.jsx)("input",{type:"text",value:t,spellCheck:!1,"aria-label":"Query",placeholder:"e.g. where do we upload a report",onKeyDown:a=>{a.key==="Enter"&&o()},onChange:a=>n(a.target.value),style:{...Y(),flex:1,minWidth:160}}),(0,Ae.jsx)("button",{type:"button",style:D(),disabled:e.probeRunning,onClick:o,children:e.probeRunning?"Searching\u2026":"Search"})]}),e.probe!==void 0&&(0,Ae.jsxs)("div",{style:{marginBottom:12},children:[(0,Ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[(0,Ae.jsxs)("span",{style:{color:s.muted,fontSize:11},children:["Result for \u201C",e.probe.query,"\u201D"]}),(0,Ae.jsx)("button",{type:"button",style:{...D(),marginLeft:"auto",fontSize:10,padding:"1px 6px"},title:"Dismiss this result. The query stays in the log below.",onClick:e.onClearProbe,children:"Clear result"})]}),e.probe.error!==void 0&&(0,Ae.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 4px"},children:e.probe.error}),e.probe.text.length>0&&(0,Ae.jsx)("pre",{className:"lc-scroll",style:{margin:0,padding:8,maxHeight:260,overflow:"auto",background:s.inputBackground,border:`1px solid ${s.border}`,borderRadius:8,fontFamily:wy,fontSize:11,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.probe.text})]}),(0,Ae.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:6},children:[(0,Ae.jsx)("span",{style:q(),children:"Recent searches"}),e.entries.length>0&&(0,Ae.jsx)("button",{type:"button",style:{...D(),marginLeft:"auto",fontSize:11},onClick:e.onClear,children:"Clear"})]}),e.entries.length===0?(0,Ae.jsx)("p",{style:{color:s.muted,fontSize:11,margin:0},children:"Nothing yet. Searches the model runs \u2014 and any you try above \u2014 appear here."}):(0,Ae.jsx)("div",{className:"lc-scroll",style:{maxHeight:280,overflowY:"auto"},children:e.entries.map((a,l)=>(0,Ae.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`,fontSize:11},children:[(0,Ae.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,Ae.jsx)("span",{style:{fontFamily:wy,color:s.accent},children:a.source}),a.via!==void 0&&(0,Ae.jsx)("span",{style:{...Fe(a.via==="lexical"?"warning":"neutral"),fontSize:9},title:a.via==="index"?"Matched by meaning, using the vector index":"Matched on names and descriptions \u2014 the index was not used",children:a.via==="index"?"semantic":"lexical"}),(0,Ae.jsxs)("span",{style:{marginLeft:"auto",color:s.muted,fontVariantNumeric:"tabular-nums"},children:[a.hits," ",a.hits===1?"hit":"hits"," \xB7 ",a.elapsedMs,"ms"]})]}),(0,Ae.jsx)("div",{style:{marginTop:2,wordBreak:"break-word"},children:a.query}),a.collection!==void 0&&(0,Ae.jsx)("div",{style:{color:s.muted,fontSize:10,fontFamily:wy},children:a.collection}),a.error!==void 0&&(0,Ae.jsx)("div",{style:{color:s.error,fontSize:10,marginTop:2},children:a.error})]},`${String(a.at)}-${String(l)}`))}),(0,Ae.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10,marginTop:6,fontFamily:Z},children:"Kept in memory for this session only \u2014 this is a diagnostic view, not the audit log."})]})}var In=P(ie(),1),p$=P(he(),1);function ai(e){let[t,n]=(0,p$.useState)(!e.hasValue);return t?(0,In.jsxs)("div",{style:{marginBottom:16},children:[(0,In.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,In.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,In.jsx)("input",{id:e.id,type:"password",value:e.value,placeholder:e.placeholder??"sk-...",onChange:r=>e.onChange(r.target.value),style:Y()}),e.hasValue&&(0,In.jsx)("button",{type:"button",style:D(),onClick:()=>{e.onChange(""),n(!1)},children:"Cancel"})]})]}):(0,In.jsxs)("div",{style:{marginBottom:16},children:[(0,In.jsx)("label",{style:q(),children:e.label}),(0,In.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,In.jsx)("span",{children:"Set"}),(0,In.jsx)("button",{type:"button",style:D(),onClick:()=>n(!0),children:"Replace"})]})]})}var h$={id:"",label:"",kind:"qdrant",url:"",hasUsername:!1,hasPassword:!1},Qo=[{kind:"qdrant",label:"Qdrant \u2014 local",url:"http://127.0.0.1:6333",hint:"A single container, nothing leaves your machine. The usual choice for indexing code privately.",run:"docker run -p 6333:6333 qdrant/qdrant"},{kind:"chroma",label:"Chroma \u2014 local",url:"http://127.0.0.1:8000",hint:"Also local. Needs Chroma 1.0 or newer \u2014 the v1 API it replaced is not supported.",run:"docker run -p 8000:8000 chromadb/chroma"},{kind:"opensearch",label:"OpenSearch \u2014 a cluster you already run",url:"https://opensearch.internal:9200",hint:"The only backend that can also query indexes your organisation already has, with raw DSL."}];function Wo(e){let t=e.value!==void 0&&(e.value<e.min||e.max!==void 0&&e.value>e.max);return(0,B.jsxs)("div",{style:{marginBottom:8},title:e.tooltip,children:[(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,B.jsxs)("label",{htmlFor:e.id,style:{...q(),marginBottom:0,flex:1},children:[e.label,(0,B.jsx)("span",{"aria-hidden":"true",style:{marginLeft:4,opacity:.6,cursor:"help",fontSize:10,border:`1px solid ${s.border}`,borderRadius:"50%",padding:"0 4px"},children:"?"}),(0,B.jsxs)("span",{style:{display:"block",fontSize:10,opacity:.8},children:[e.hint!==void 0?`${e.hint} `:"",e.max!==void 0?`Allowed: ${e.min}\u2013${e.max}.`:`Minimum ${e.min}.`]})]}),(0,B.jsx)("input",{id:e.id,type:"number",min:e.min,...e.max!==void 0?{max:e.max}:{},value:e.value??"",placeholder:e.placeholder,onChange:n=>{let r=Number.parseInt(n.target.value,10);e.onChange(Number.isNaN(r)?void 0:r)},style:{...Y(),width:110,flex:"none",...t?{borderColor:"var(--vscode-inputValidation-errorBorder, red)"}:{}}})]}),t&&(0,B.jsx)("div",{style:{fontSize:11,color:"var(--vscode-errorForeground, red)",textAlign:"right"},children:e.max!==void 0?`Must be between ${e.min} and ${e.max}.`:`Must be at least ${e.min}.`})]})}var ea={maxHits:{min:1,max:100},timeoutSeconds:{min:1,max:120},terminateAfter:{min:0},maxIndexes:{min:0},defaultLookbackHours:{min:0},maxFieldChars:{min:50,max:2e4}};function g$(e){let[t,n]=(0,qt.useState)(void 0),[r,i]=(0,qt.useState)(""),[o,a]=(0,qt.useState)(""),[l,c]=(0,qt.useState)("qdrant"),[u,d]=(0,qt.useState)(""),[m,p]=(0,qt.useState)(""),[f,x]=(0,qt.useState)(!1),[_,O]=(0,qt.useState)(""),[h,g]=(0,qt.useState)(""),[b,v]=(0,qt.useState)({}),[I,J]=(0,qt.useState)(!1);(0,qt.useEffect)(()=>{I&&(J(!1),n(void 0))},[e.savedTick]),(0,qt.useEffect)(()=>{let T=t??h$;i(T.label),a(T.url),c(T.kind),d(T.defaultIndex??""),p(T.caFile??""),x(T.rejectUnauthorized===!1),O(""),g(""),v(T.limits??{})},[t]);let L=()=>({...t!==void 0&&t.id.length>0?{id:t.id}:{},label:r,url:o,kind:l,defaultIndex:u,caFile:m,...f?{rejectUnauthorized:!1}:{},..._.length>0?{username:_}:{},...h.length>0?{password:h}:{},...Object.keys(b).length>0?{limits:b}:{}});return t!==void 0?(0,B.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,B.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:t.id.length===0?"Add a vector store":"Edit connection"}),(0,B.jsxs)("div",{style:{marginBottom:12},children:[(0,B.jsx)("label",{htmlFor:"lc-os-kind",style:q(),children:"Backend"}),(0,B.jsx)(Je,{id:"lc-os-kind",value:l,onChange:T=>{let w=Qo.find($e=>$e.kind===T);c(T);let F=Qo.map($e=>$e.url);w!==void 0&&(o.trim().length===0||F.includes(o.trim()))&&a(w.url)},options:Qo.map(T=>({value:T.kind,label:T.label}))}),(0,B.jsx)("span",{style:{color:s.muted,fontSize:11},children:Qo.find(T=>T.kind===l)?.hint}),(()=>{let T=Qo.find(w=>w.kind===l)?.run;return T===void 0?null:(0,B.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["Not running one yet?"," ",(0,B.jsx)("code",{style:{fontFamily:"var(--vscode-editor-font-family, monospace)"},children:T})]})})()]}),(0,B.jsxs)("div",{style:{marginBottom:12},children:[(0,B.jsx)("label",{htmlFor:"lc-os-label",style:q(),children:"Name"}),(0,B.jsx)("input",{id:"lc-os-label",type:"text",value:r,placeholder:"Production",onChange:T=>i(T.target.value),style:Y()})]}),(0,B.jsxs)("div",{style:{marginBottom:12},children:[(0,B.jsx)("label",{htmlFor:"lc-os-url",style:q(),children:l==="opensearch"?"Cluster URL":"Server URL"}),(0,B.jsx)("input",{id:"lc-os-url",type:"text",value:o,placeholder:Qo.find(T=>T.kind===l)?.url??"",onChange:T=>a(T.target.value),style:Y()})]}),(0,B.jsxs)("div",{style:{marginBottom:12},children:[(0,B.jsx)("label",{htmlFor:"lc-os-user",style:q(),children:"Username"}),(0,B.jsx)("input",{id:"lc-os-user",type:"text",value:_,placeholder:t.hasUsername?"Set \u2014 type to replace":"",onChange:T=>O(T.target.value),style:Y()})]}),(0,B.jsx)(ai,{id:"lc-os-password",label:"Password",hasValue:t.hasPassword,value:h,onChange:g,placeholder:"Stored in the OS keychain"}),(0,B.jsxs)("div",{style:{marginBottom:12},children:[(0,B.jsx)("label",{htmlFor:"lc-os-index",style:q(),children:"Default index"}),(0,B.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,B.jsx)("input",{id:"lc-os-index",type:"text",value:u,placeholder:"Used when the model names no index",onChange:T=>d(T.target.value),style:Y()}),(0,B.jsx)("button",{type:"button",style:D(),onClick:()=>e.onListIndexes(L()),children:"List"})]}),e.indexes.length>0&&(0,B.jsx)(Je,{ariaLabel:"Available indexes",value:e.indexes.some(T=>T.name===u)?u:"",onChange:T=>{T.length>0&&d(T)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.indexes.length} index(es)\u2026`},...e.indexes.map(T=>({value:T.name,label:T.name,detail:[T.docsCount!==void 0?`${T.docsCount.toLocaleString()} docs`:void 0,T.storeSize].filter(w=>w!==void 0).join(", ")}))]}),e.indexesWarning!==void 0&&e.indexes.length===0&&(0,B.jsxs)("span",{style:{color:s.muted,fontSize:11,display:"block",marginTop:4},children:["Could not list indexes (",e.indexesWarning,"). Type the name instead."]})]}),(0,B.jsx)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginBottom:12},children:(0,B.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Connection security"})}),(0,B.jsxs)("div",{style:{marginBottom:10},children:[(0,B.jsx)("label",{htmlFor:"lc-os-ca",style:q(),children:"Additional CA certificate"}),(0,B.jsx)("input",{id:"lc-os-ca",type:"text",value:m,placeholder:"corp-root.pem",onChange:T=>p(T.target.value),style:Y()}),(0,B.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Usually blank \u2014 the CA in Settings \u2192 Network already covers this cluster. Anything set here is added to it."})]}),(0,B.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,B.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:f,onChange:T=>x(T.target.checked)}),(0,B.jsx)("span",{style:{color:s.foreground},children:"Skip certificate verification"})]}),f&&(0,B.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can read and modify it, including the password. The CA file above is the safe fix."}),(0,B.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginBottom:8},children:[(0,B.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Query limits"}),(0,B.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Guard rails on the queries the model writes. It cannot change anything in the cluster \u2014 but a read can still be expensive, so these keep one bounded. Defaults are chosen to be safe on a large cluster; raise them if you know yours can take it."})]}),(0,B.jsx)(Wo,{id:"lc-os-hits",...ea.maxHits,label:"Maximum results",hint:"Documents returned per search.",tooltip:`How many documents one search returns.
82
97
 
83
98
  The tool caps the model here no matter how many it asks for. Every hit spends context, so a high value crowds out the rest of the conversation and can push the result past the overall size cap, after which the model has to re-read it in pieces.
84
99
 
85
100
  Raise it when the model keeps saying it found too few matches to judge. Lower it when replies are slow or the context bar fills up quickly.
86
101
 
87
- Default 10.`,placeholder:"10",value:v.maxHits,onChange:E=>g({...v,maxHits:E})}),(0,Z.jsx)(mo,{id:"lc-os-lookback",...po.defaultLookbackHours,label:"Default lookback (hours)",hint:"Time window used when the model asks for none.",tooltip:`A time window applied automatically when the model gives no date range and the index has a date field.
102
+ Default 10.`,placeholder:"10",value:b.maxHits,onChange:T=>v({...b,maxHits:T})}),(0,B.jsx)(Wo,{id:"lc-os-lookback",...ea.defaultLookbackHours,label:"Default lookback (hours)",hint:"Time window used when the model asks for none.",tooltip:`A time window applied automatically when the model gives no date range and the index has a date field.
88
103
 
89
104
  This is the single most effective protection for a log index: on years of data, the difference between searching a day and searching everything is the difference between instant and a cluster in trouble. The model is always told the window was applied, so it can ask for a wider one deliberately.
90
105
 
91
106
  Set 0 to allow unbounded scans \u2014 only sensible on a small index.
92
107
 
93
- Default 24 hours.`,placeholder:"24",value:v.defaultLookbackHours,onChange:E=>g({...v,defaultLookbackHours:E})}),(0,Z.jsx)(mo,{id:"lc-os-fieldchars",...po.maxFieldChars,label:"Longest field value",hint:"Characters kept from one field of one document.",tooltip:`How much of a single field is kept before it is cut short.
108
+ Default 24 hours.`,placeholder:"24",value:b.defaultLookbackHours,onChange:T=>v({...b,defaultLookbackHours:T})}),(0,B.jsx)(Wo,{id:"lc-os-fieldchars",...ea.maxFieldChars,label:"Longest field value",hint:"Characters kept from one field of one document.",tooltip:`How much of a single field is kept before it is cut short.
94
109
 
95
110
  This is the limit to raise if the model keeps reporting that log messages are truncated. A stack trace runs to several thousand characters and the default keeps 500 of them.
96
111
 
97
112
  Unlike the overall result cap, this cut cannot be undone \u2014 the text never leaves the tool, so there is nothing to re-read. It is reported in the result rather than hidden, so a clipped trace never reads as a short one.
98
113
 
99
- Default 500 characters.`,placeholder:"500",value:v.maxFieldChars,onChange:E=>g({...v,maxFieldChars:E})}),(0,Z.jsx)(mo,{id:"lc-os-timeout",...po.timeoutSeconds,label:"Query timeout (seconds)",hint:"Per-shard time budget sent with the query.",tooltip:`How long each shard may spend on one search, sent to OpenSearch as the query's own timeout.
114
+ Default 500 characters.`,placeholder:"500",value:b.maxFieldChars,onChange:T=>v({...b,maxFieldChars:T})}),(0,B.jsx)(Wo,{id:"lc-os-timeout",...ea.timeoutSeconds,label:"Query timeout (seconds)",hint:"Per-shard time budget sent with the query.",tooltip:`How long each shard may spend on one search, sent to OpenSearch as the query's own timeout.
100
115
 
101
116
  On expiry the cluster returns whatever it has found so far rather than failing, so a slow query degrades into a partial answer instead of hanging the conversation.
102
117
 
103
118
  Raise it for a large or heavily loaded cluster where legitimate searches are genuinely slow.
104
119
 
105
- Default 10 seconds.`,placeholder:"10",value:v.timeoutSeconds,onChange:E=>g({...v,timeoutSeconds:E})}),(0,Z.jsx)(mo,{id:"lc-os-terminate",...po.terminateAfter,label:"Documents examined per shard",hint:"Stops a query early instead of walking the whole index.",tooltip:`How many documents each shard may inspect before it stops looking.
120
+ Default 10 seconds.`,placeholder:"10",value:b.timeoutSeconds,onChange:T=>v({...b,timeoutSeconds:T})}),(0,B.jsx)(Wo,{id:"lc-os-terminate",...ea.terminateAfter,label:"Documents examined per shard",hint:"Stops a query early instead of walking the whole index.",tooltip:`How many documents each shard may inspect before it stops looking.
106
121
 
107
122
  A timeout limits how long a query runs; this limits how much work it does. It is what stops a badly-targeted search from walking an entire index and evicting everything else from the cluster cache.
108
123
 
109
124
  The trade-off: a rare match sitting past this point will not be found, and the result will honestly say the count is capped rather than claim there were none.
110
125
 
111
- Set 0 to disable. Default 10,000.`,placeholder:"10000",value:v.terminateAfter,onChange:E=>g({...v,terminateAfter:E})}),(0,Z.jsx)(mo,{id:"lc-os-maxindexes",...po.maxIndexes,label:"Maximum indexes per query",hint:"Refuses a wildcard that fans out wider than this.",tooltip:`How many indexes one search may span.
126
+ Set 0 to disable. Default 10,000.`,placeholder:"10000",value:b.terminateAfter,onChange:T=>v({...b,terminateAfter:T})}),(0,B.jsx)(Wo,{id:"lc-os-maxindexes",...ea.maxIndexes,label:"Maximum indexes per query",hint:"Refuses a wildcard that fans out wider than this.",tooltip:`How many indexes one search may span.
112
127
 
113
128
  A pattern like \`logs-*\` can resolve to hundreds of daily indexes, and querying them together is one of the easiest ways to overload a cluster by accident. A pattern matching more than this is refused before it is sent, and the model is told to narrow it.
114
129
 
115
130
  Raise it if you routinely search a wide date range of daily indexes. Set 0 to disable the check.
116
131
 
117
- Default 5.`,placeholder:"5",value:v.maxIndexes,onChange:E=>g({...v,maxIndexes:E})}),(0,Z.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${p.border}`,marginBottom:12},children:[(0,Z.jsx)("button",{type:"button",style:J(),onClick:()=>e.onTest(j()),children:"Test Connection"}),e.testResult!==void 0&&(0,Z.jsx)("div",{style:{marginTop:8,fontSize:12,color:e.testResult.ok?"var(--vscode-testing-iconPassed, #3fb950)":p.error},children:e.testResult.detail})]}),(0,Z.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,Z.jsx)("button",{type:"button",style:Me(!1),onClick:()=>{b(!0),e.onSave(j())},children:"Save"}),(0,Z.jsx)("button",{type:"button",style:J(),onClick:()=>n(void 0),children:"Cancel"}),h&&(0,Z.jsx)("span",{style:{fontSize:11,color:p.muted},children:"Saving\u2026"})]})]}):(0,Z.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,Z.jsx)("h3",{style:{margin:0,color:p.foreground},children:"Search"}),(0,Z.jsx)(xr,{scope:"user"})]}),(0,Z.jsx)("p",{style:{color:p.muted,fontSize:12,fontFamily:q,margin:"0 0 12px"},children:"Lets the model search OpenSearch indexes your organisation already runs \u2014 logs, tickets, documentation. It can only read: nothing here can create, change or delete anything in a cluster."}),e.connections.length===0&&(0,Z.jsx)("p",{style:{color:p.muted,fontFamily:q},children:"No connections yet."}),e.connections.map(E=>{let x=E.id===e.activeConnectionId;return(0,Z.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${x?p.focusBorder:p.border}`,background:x?p.assistantBubble:"transparent"},children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,Z.jsx)("strong",{children:E.label}),x&&(0,Z.jsx)("span",{style:{color:p.muted,fontSize:11},children:"\xB7 active"})]}),(0,Z.jsxs)("div",{style:{color:p.muted,fontSize:12,marginBottom:8},children:[E.url,E.defaultIndex!==void 0?` \u2014 ${E.defaultIndex}`:" \u2014 no default index"]}),(0,Z.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,Z.jsx)("button",{type:"button",style:J(),onClick:()=>e.onSetActive(x?void 0:E.id),children:x?"Turn off":"Use in chat"}),(0,Z.jsx)("button",{type:"button",style:J(),onClick:()=>n(E),children:"Edit"}),(0,Z.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...Re("secondary"),color:p.error},onClick:()=>e.onDelete(E.id),children:(0,Z.jsx)(kn,{})})]})]},E.id)}),(0,Z.jsx)("button",{type:"button",style:Me(!1),onClick:()=>n({...H0}),children:"Add connection"}),(0,Z.jsx)("p",{style:{color:p.muted,fontSize:11,marginTop:16},children:"Search tools are offered only while a connection is active. Switching starts a fresh prompt, so change it between messages rather than mid-reply."})]})}var $e=H(de(),1),Kt=H(Ge(),1);var Rc={fontFamily:q,fontSize:11,color:p.muted,marginTop:-12,marginBottom:16,lineHeight:1.5};function Pa(e){return(0,$e.jsxs)("div",{style:{marginBottom:e.hint!==void 0?0:16},children:[(0,$e.jsx)(oi,{id:e.id,label:e.label,value:e.value,placeholder:e.placeholder,...e.browse!==void 0?{browse:e.browse}:{},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:e.onChange}),e.hint!==void 0&&(0,$e.jsx)("div",{style:Rc,children:e.hint})]})}function J0(e){let t=e.settings,[n,i]=(0,Kt.useState)(""),[r,o]=(0,Kt.useState)(""),[a,l]=(0,Kt.useState)(""),[u,c]=(0,Kt.useState)(""),[s,d]=(0,Kt.useState)(""),[f,m]=(0,Kt.useState)(""),[S,$]=(0,Kt.useState)(!0),[C,v]=(0,Kt.useState)(!1);(0,Kt.useEffect)(()=>{t!==void 0&&(i(t.certDir??""),o(t.tls.caFile??""),l(t.tls.certFile??""),c(t.tls.keyFile??""),d(t.tls.pfxFile??""),$(t.tls.rejectUnauthorized!==!1),m(""),v(!1))},[t]),(0,Kt.useEffect)(()=>{let b=e.pickedPath;if(b===void 0)return;let j={"net.certDir":i,"net.caFile":o,"net.certFile":l,"net.keyFile":c,"net.pfxFile":d}[b.purpose];j?.(b.path)},[e.pickedPath]);let g=s.trim().length>0;function h(){e.onSave({certDir:n,tls:{caFile:r,certFile:g?"":a,keyFile:g?"":u,pfxFile:s,...S?{}:{rejectUnauthorized:!1}},...f.length>0?{passphrase:f}:{}}),v(!0)}return(0,$e.jsxs)("div",{style:{padding:16,fontFamily:q,fontSize:13,color:p.foreground},children:[(0,$e.jsx)("p",{style:{...Rc,marginTop:0,marginBottom:20},children:"Applies to every connection Light Code makes. A provider profile or search cluster can still set its own \u2014 an extra CA there is added to this one, and its own client certificate replaces this one for that connection only."}),(0,$e.jsx)(Pa,{id:"net-certdir",browse:{purpose:"net.certDir",kind:"folder"},onBrowse:e.onBrowse,label:"Certificate directory",value:n,placeholder:"C:\\Users\\you\\certs",hint:"Filenames below resolve against this. Absolute paths ignore it. Must be outside the workspace, and everything it holds is hidden from file-reading tools.",onChange:i}),(0,$e.jsx)("h3",{style:{fontSize:12,textTransform:"uppercase",color:p.muted,margin:"24px 0 12px"},children:"Trust"}),(0,$e.jsx)(Pa,{id:"net-ca",browse:{purpose:"net.caFile",kind:"file",extensions:["pem","crt","cer","ca-bundle"]},onBrowse:e.onBrowse,label:"CA certificate",value:r,placeholder:"corporate-root.pem",hint:"Added to the built-in roots, not a replacement for them \u2014 public sites keep working.",onChange:o}),(0,$e.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:4,cursor:"pointer"},children:[(0,$e.jsx)("input",{type:"checkbox",checked:S,onChange:b=>$(b.target.checked),style:{marginTop:2}}),(0,$e.jsx)("span",{children:"Verify server certificates"})]}),!S&&(0,$e.jsx)("div",{style:{...Rc,color:"var(--vscode-editorWarning-foreground, inherit)",marginTop:4},children:"Off means any certificate is accepted, so an interception cannot be distinguished from the real server. Use it to confirm a diagnosis, then add the CA above instead."}),(0,$e.jsx)("h3",{style:{fontSize:12,textTransform:"uppercase",color:p.muted,margin:"24px 0 12px"},children:"Client certificate"}),(0,$e.jsx)("p",{style:{...Rc,marginTop:0},children:"Presented to every connection that does not supply its own. A certificate identifies you, so it goes to each host you have configured \u2014 set it on the individual profile instead if that is not what you want."}),(0,$e.jsx)(Pa,{id:"net-pfx",browse:{purpose:"net.pfxFile",kind:"file",extensions:["pfx","p12"]},onBrowse:e.onBrowse,label:"PFX bundle",value:s,placeholder:"client.pfx",hint:"Windows PKI usually issues one of these. Supplied instead of a certificate and key.",onChange:d}),!g&&(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)(Pa,{id:"net-cert",browse:{purpose:"net.certFile",kind:"file",extensions:["crt","pem","cer"]},onBrowse:e.onBrowse,label:"Certificate",value:a,placeholder:"client.crt",onChange:l}),(0,$e.jsx)(Pa,{id:"net-key",browse:{purpose:"net.keyFile",kind:"file",extensions:["key","pem"]},onBrowse:e.onBrowse,label:"Private key",value:u,placeholder:"client.key",onChange:c})]}),(0,$e.jsx)(zn,{id:"net-passphrase",label:"Key passphrase",hasValue:t?.hasPassphrase??!1,value:f,onChange:m,placeholder:"Leave blank if the key is not encrypted"}),(0,$e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,$e.jsx)("button",{type:"button",style:Me(!1),onClick:h,children:"Save"}),C&&(0,$e.jsx)("span",{style:{fontSize:12,color:p.muted},children:"Saved."})]})]})}var he=H(de(),1),W0=H(Ge(),1);var Te=H(de(),1);var ht=H(Ge(),1);var L=H(de(),1),F0=H(Ge(),1);function zt(e){return(0,L.jsxs)("div",{style:{marginBottom:10},children:[(0,L.jsx)("label",{htmlFor:e.id,style:ee(),children:e.label}),(0,L.jsx)("input",{id:e.id,type:"text",value:e.value??"",placeholder:e.placeholder,onChange:t=>e.onChange(t.target.value),style:se()}),e.hint!==void 0&&(0,L.jsx)("span",{style:{color:p.muted,fontSize:11,display:"block",marginTop:2},children:e.hint})]})}function Y0(e){return(0,L.jsxs)("div",{style:{marginBottom:10},children:[(0,L.jsx)("label",{htmlFor:e.id,style:ee(),children:e.label}),(0,L.jsx)("input",{id:e.id,type:"number",value:e.value??"",placeholder:e.placeholder,onChange:t=>{let n=Number.parseInt(t.target.value,10);e.onChange(Number.isNaN(n)?void 0:n)},style:se()})]})}function RD(e){let[t,n]=(0,F0.useState)(!1);return(0,L.jsxs)("div",{style:{marginBottom:12},children:[(0,L.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{background:"transparent",border:"none",color:p.foreground,fontFamily:q,fontSize:12,padding:0,cursor:"pointer"},children:[t?"\u25BE":"\u25B8"," ",e.title]}),t&&(0,L.jsx)("div",{style:{marginTop:8,paddingLeft:12},children:e.children})]})}function X0(e){let t=i=>e.onApigeeChange({...e.apigee,...i}),n=i=>e.onCertsChange({...e.certs,...i});return(0,L.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${p.border}`},children:[(0,L.jsxs)("div",{style:{marginBottom:12},children:[(0,L.jsx)("label",{htmlFor:"lc-auth-type",style:ee(),children:"Authentication"}),(0,L.jsxs)("select",{id:"lc-auth-type",value:e.authType,onChange:i=>e.onAuthTypeChange(i.target.value),style:se(),children:[(0,L.jsx)("option",{value:"apiKey",style:Be(),children:"API key"}),(0,L.jsx)("option",{value:"apigeeMtls",style:Be(),children:"Mutual TLS + OAuth (Apigee)"}),(0,L.jsx)("option",{value:"none",style:Be(),children:"None"})]})]}),e.authType==="apigeeMtls"&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{style:{marginBottom:12},children:[(0,L.jsx)("strong",{style:{fontSize:12,color:p.foreground},children:"Client certificate"}),(0,L.jsx)("p",{style:{color:p.muted,fontSize:11,margin:"4px 0 8px"},children:"Must live outside the workspace \u2014 a repository must not be able to read or replace your key material. Filenames resolve against the directory; absolute paths override it."})]}),(0,L.jsx)(zt,{id:"lc-cert-dir",label:"Certificate directory",value:e.certs.certDir,placeholder:"C:\\\\Users\\\\you\\\\certs",hint:"Leave blank to use the global certDir from config.",onChange:i=>n({certDir:i})}),(0,L.jsx)(zt,{id:"lc-cert-file",label:"Certificate file",value:e.certs.certFile,placeholder:"client.crt",onChange:i=>n({certFile:i})}),(0,L.jsx)(zt,{id:"lc-key-file",label:"Private key file",value:e.certs.keyFile,placeholder:"client.key",onChange:i=>n({keyFile:i})}),(0,L.jsx)(zt,{id:"lc-pfx-file",label:"PFX bundle (instead of certificate + key)",value:e.certs.pfxFile,placeholder:"client.pfx",hint:"Corporate Windows PKI usually issues a .pfx.",onChange:i=>n({pfxFile:i})}),(0,L.jsx)(zt,{id:"lc-ca-file",label:"Extra CA bundle",value:e.certs.caFile,placeholder:"corp-root.pem",hint:"Needed when your network intercepts TLS. NODE_EXTRA_CA_CERTS also works.",onChange:i=>n({caFile:i})}),(0,L.jsx)(zn,{id:"lc-cert-passphrase",label:"Key / PFX passphrase",hasValue:e.hasCertPassphrase,value:e.certPassphrase,onChange:e.onCertPassphraseChange,placeholder:"Leave blank if the key is not encrypted"}),(0,L.jsx)("div",{style:{marginBottom:12},children:(0,L.jsx)("strong",{style:{fontSize:12,color:p.foreground},children:"Token endpoint"})}),(0,L.jsx)(zt,{id:"lc-token-url",label:"Token URL",value:e.apigee.tokenUrl,placeholder:"https://gateway.example.com/oauth/token",hint:"Defaults to the base URL's origin + /oauth/token.",onChange:i=>t({tokenUrl:i})}),(0,L.jsx)(zt,{id:"lc-client-id",label:"Client ID",value:e.apigee.clientId,onChange:i=>t({clientId:i})}),(0,L.jsx)(zn,{id:"lc-client-secret",label:"Client secret",hasValue:e.hasClientSecret,value:e.clientSecret,onChange:e.onClientSecretChange,placeholder:"Stored in the OS keychain"}),(0,L.jsx)(zt,{id:"lc-scope",label:"Scope",value:e.apigee.scope,placeholder:"(optional)",onChange:i=>t({scope:i})}),(0,L.jsxs)(RD,{title:"Token response and header mapping",children:[(0,L.jsx)(zt,{id:"lc-grant-type",label:"Grant type",value:e.apigee.grantType,placeholder:"client_credentials",onChange:i=>t({grantType:i})}),(0,L.jsx)(zt,{id:"lc-token-path",label:"Token path in response",value:e.apigee.tokenPath,placeholder:"access_token",hint:"Dotted path, e.g. data.jwt if your gateway nests it.",onChange:i=>t({tokenPath:i})}),(0,L.jsx)(zt,{id:"lc-expires-path",label:"Expiry path in response",value:e.apigee.expiresInPath,placeholder:"expires_in",onChange:i=>t({expiresInPath:i})}),(0,L.jsx)(zt,{id:"lc-token-header",label:"Header name",value:e.apigee.tokenHeaderName,placeholder:"Authorization",onChange:i=>t({tokenHeaderName:i})}),(0,L.jsx)(zt,{id:"lc-token-prefix",label:"Header prefix",value:e.apigee.tokenHeaderPrefix,placeholder:"Bearer ",onChange:i=>t({tokenHeaderPrefix:i})}),(0,L.jsx)(Y0,{id:"lc-fallback-expiry",label:"Fallback expiry (seconds)",value:e.apigee.fallbackExpirySeconds,placeholder:"3600",onChange:i=>t({...i!==void 0?{fallbackExpirySeconds:i}:{}})}),(0,L.jsx)(Y0,{id:"lc-refresh-skew",label:"Refresh skew (seconds)",value:e.apigee.refreshSkewSeconds,placeholder:"60",onChange:i=>t({...i!==void 0?{refreshSkewSeconds:i}:{}})})]})]}),(0,L.jsxs)("div",{style:{marginBottom:12,paddingTop:12,borderTop:`1px solid ${p.border}`},children:[(0,L.jsx)("strong",{style:{fontSize:12,color:p.foreground},children:"Connection security"}),(0,L.jsx)("p",{style:{color:p.muted,fontSize:11,margin:"4px 0 8px"},children:"Needed when your network intercepts TLS, which is common on a corporate gateway. This is separate from the client certificate above: it decides whether you trust the server, not how the server identifies you."})]}),(0,L.jsx)(zt,{id:"lc-connection-ca",label:"Additional CA certificate",value:e.connectionTls.caFile,placeholder:"C:\\\\certs\\\\corp-root.pem",hint:"Only needed if this gateway uses a different root from the one in Settings \u2192 Network. Added to that one and to the built-in roots, never replacing either.",onChange:i=>e.onConnectionTlsChange({...e.connectionTls,caFile:i})}),(0,L.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,L.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:e.connectionTls.rejectUnauthorized===!1,onChange:i=>e.onConnectionTlsChange({...e.connectionTls,...i.target.checked?{rejectUnauthorized:!1}:{rejectUnauthorized:void 0}})}),(0,L.jsx)("span",{style:{color:p.foreground},children:"Skip certificate verification for this profile"})]}),e.connectionTls.rejectUnauthorized===!1&&(0,L.jsx)("p",{style:{color:p.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can now read and modify it, including your API key, and nothing will detect it. Supplying the CA file above is the safe fix and solves the same problem."})]})}var Ie=H(de(),1);function K0(e){let t=e.value.trim(),n=t.length>0?Uv(t,e.capabilities):void 0,i=o=>e.onCapabilitiesChange({...e.capabilities,...o}),r=()=>{let o={...e.capabilities};delete o.contextWindow,e.onCapabilitiesChange(o)};return(0,Ie.jsxs)("div",{style:{marginBottom:12},children:[(0,Ie.jsx)("label",{htmlFor:"lc-model",style:ee(),children:"Model"}),(0,Ie.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,Ie.jsx)("input",{id:"lc-model",type:"text",value:e.value,placeholder:"gpt-4o-mini",onChange:o=>e.onChange(o.target.value),style:se()}),(0,Ie.jsx)("button",{type:"button",style:J(),onClick:e.onRefresh,disabled:e.loading,children:e.loading?"Loading\u2026":"Refresh"})]}),e.models.length>0&&(0,Ie.jsxs)("select",{"aria-label":"Choose from the gateway's catalogue",value:e.models.includes(e.value)?e.value:"",onChange:o=>{o.target.value.length>0&&e.onChange(o.target.value)},style:se(),children:[(0,Ie.jsxs)("option",{value:"",style:Be(),children:["Choose from ",e.models.length," available model(s)\u2026"]}),e.models.map(o=>(0,Ie.jsx)("option",{value:o,style:Be(),children:o},o))]}),e.warning!==void 0&&e.models.length===0&&(0,Ie.jsx)("span",{style:{...Nt(),color:p.muted},children:e.warning}),e.error!==void 0&&(0,Ie.jsx)("span",{style:Nt(),children:e.error}),n!==void 0&&(0,Ie.jsxs)("div",{style:{marginTop:6,padding:8,border:`1px solid ${p.border}`,borderRadius:3},children:[(0,Ie.jsx)("div",{style:{color:p.muted,fontSize:11,marginBottom:6},children:n.known?"Capabilities for this model. Edit any of them if your deployment differs.":"Unrecognised model id \u2014 these are conservative guesses. Correct them here."}),(0,Ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[(0,Ie.jsx)("label",{htmlFor:"lc-context-window",style:{...ee(),marginBottom:0,flex:1},children:"Context window (tokens)"}),(0,Ie.jsx)("input",{id:"lc-context-window",type:"number",min:1,value:e.capabilities.contextWindow??n.contextWindow,onChange:o=>{let a=Number.parseInt(o.target.value,10);Number.isNaN(a)||a<=0?r():i({contextWindow:a})},style:{...se(),width:130,flex:"none"}}),e.capabilities.contextWindow!==void 0&&(0,Ie.jsx)("button",{type:"button",style:J(),onClick:r,title:"Use the built-in value",children:"Reset"})]}),(0,Ie.jsxs)("div",{style:{display:"flex",gap:16},children:[(0,Ie.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:p.foreground},children:[(0,Ie.jsx)("input",{type:"checkbox",checked:n.supportsVision,onChange:o=>i({supportsVision:o.target.checked})}),"Accepts images"]}),(0,Ie.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:p.foreground},children:[(0,Ie.jsx)("input",{type:"checkbox",checked:n.supportsTools,onChange:o=>i({supportsTools:o.target.checked})}),"Supports tool calling"]})]})]})]})}var wn=H(de(),1);var BD={certificates:"Load certificates",token:"Acquire credential",models:"List models"};function LD(e){return e==="ok"?{glyph:"\u2713",color:"var(--vscode-testing-iconPassed, #3fb950)"}:e==="failed"?{glyph:"\u2715",color:p.error}:{glyph:"\u2013",color:p.muted}}function Q0(e){return(0,wn.jsxs)("div",{style:{marginBottom:16,paddingTop:12,borderTop:`1px solid ${p.border}`},children:[(0,wn.jsx)("button",{type:"button",style:J(),onClick:e.onRun,disabled:e.running,children:e.running?"Testing\u2026":"Test Connection"}),e.result!==void 0&&(0,wn.jsx)("div",{style:{marginTop:8,fontFamily:q,fontSize:12},children:e.result.steps.map(t=>{let n=LD(t.status);return(0,wn.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:4},children:[(0,wn.jsx)("span",{style:{color:n.color,width:12,flexShrink:0},children:n.glyph}),(0,wn.jsxs)("div",{children:[(0,wn.jsx)("div",{style:{color:p.foreground},children:BD[t.step]}),(0,wn.jsx)("div",{style:{color:t.status==="failed"?p.error:p.muted,fontSize:11},children:t.detail})]})]},t.step)})})]})}function rh(e){let[t,n]=(0,ht.useState)(e.initial.label),[i,r]=(0,ht.useState)(e.initial.wireFormat),[o,a]=(0,ht.useState)(e.initial.baseUrl),[l,u]=(0,ht.useState)(e.initial.model),[c,s]=(0,ht.useState)(""),[d,f]=(0,ht.useState)(e.initial.authType),[m,S]=(0,ht.useState)(e.initial.apigee??{}),[$,C]=(0,ht.useState)(""),[v,g]=(0,ht.useState)(e.initial.certs??{}),[h,b]=(0,ht.useState)(""),[j,E]=(0,ht.useState)(e.initial.modelCapabilities??{}),[x,N]=(0,ht.useState)(e.initial.connectionTls??{}),[R,X]=(0,ht.useState)([]),[Ve,ur]=(0,ht.useState)(void 0),yn=Ne=>R.find(Cn=>Cn.path===Ne)?.message,Fr=Ne=>{let Cn=Cc.find(Ti=>Ti.id===Ne);Cn!==void 0&&(r(Cn.wireFormat),a(Cn.baseUrl),t.trim().length===0&&n(Cn.label))},wi=()=>({...e.initial.id!==void 0?{id:e.initial.id}:{},label:t,wireFormat:i,baseUrl:o,model:l,authType:d,apiKey:c,...d==="apigeeMtls"?{apigee:m,clientSecret:$,certs:v,certPassphrase:h}:{},...Object.keys(j).length>0?{modelCapabilities:j}:{},...x.caFile!==void 0||x.rejectUnauthorized!==void 0?{connectionTls:x}:{}}),Hl=()=>{let Ne=o.trim();if(Ne===Ve||Ne.length===0)return;try{let Ti=new URL(Ne);if(Ti.protocol!=="https:"&&Ti.protocol!=="http:")return}catch{return}(d==="none"||c.trim().length>0||e.initial.hasApiKey||d==="apigeeMtls")&&(ur(Ne),e.onRequestModels(wi()))},vd=()=>{let Ne=Ev({label:t,wireFormat:i,baseUrl:o,model:l});X(Ne),!(Ne.length>0)&&e.onSave(wi())};return(0,Te.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Te.jsx)("h3",{style:{margin:"0 0 12px",color:p.foreground},children:e.initial.id===void 0?"Add Provider":"Edit Provider"}),(0,Te.jsxs)("div",{style:{marginBottom:12},children:[(0,Te.jsx)("label",{htmlFor:"lc-preset",style:ee(),children:"Preset"}),(0,Te.jsxs)("select",{id:"lc-preset",defaultValue:"",onChange:Ne=>Fr(Ne.target.value),style:se(),children:[(0,Te.jsx)("option",{value:"",disabled:!0,style:Be(),children:"Choose a preset\u2026"}),Cc.map(Ne=>(0,Te.jsx)("option",{value:Ne.id,style:Be(),children:Ne.label},Ne.id))]})]}),(0,Te.jsxs)("div",{style:{marginBottom:12},children:[(0,Te.jsx)("label",{htmlFor:"lc-label",style:ee(),children:"Label"}),(0,Te.jsx)("input",{id:"lc-label",type:"text",value:t,onChange:Ne=>n(Ne.target.value),style:se()}),yn("label")!==void 0&&(0,Te.jsx)("span",{style:Nt(),children:yn("label")})]}),(0,Te.jsxs)("div",{style:{marginBottom:12},children:[(0,Te.jsx)("label",{htmlFor:"lc-base-url",style:ee(),children:"Base URL"}),(0,Te.jsx)("input",{id:"lc-base-url",type:"text",value:o,placeholder:"https://api.openai.com/v1",onChange:Ne=>a(Ne.target.value),onBlur:Hl,style:se()}),yn("baseUrl")!==void 0&&(0,Te.jsx)("span",{style:Nt(),children:yn("baseUrl")})]}),(0,Te.jsx)(K0,{value:l,onChange:u,models:e.models,...e.modelsWarning!==void 0?{warning:e.modelsWarning}:{},loading:e.modelsLoading,onRefresh:()=>e.onRequestModels(wi()),...yn("model")!==void 0?{error:yn("model")}:{},capabilities:j,onCapabilitiesChange:E}),d==="apiKey"&&(0,Te.jsx)("div",{onBlur:Hl,children:(0,Te.jsx)(zn,{id:"lc-api-key",label:"API key",hasValue:e.initial.hasApiKey,value:c,onChange:s})}),(0,Te.jsx)(X0,{authType:d,onAuthTypeChange:f,apigee:m,onApigeeChange:S,clientSecret:$,onClientSecretChange:C,hasClientSecret:e.initial.hasClientSecret,certs:v,onCertsChange:g,certPassphrase:h,onCertPassphraseChange:b,hasCertPassphrase:e.initial.hasCertPassphrase,connectionTls:x,onConnectionTlsChange:N}),(0,Te.jsx)(Q0,{running:e.testRunning,...e.testResult!==void 0?{result:e.testResult}:{result:void 0},onRun:()=>e.onTestConnection(wi())}),(0,Te.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,Te.jsx)("button",{type:"button",style:Me(!1),onClick:vd,children:"Save"}),(0,Te.jsx)("button",{type:"button",style:J(),onClick:e.onCancel,children:"Cancel"})]})]})}function ih(e){let[t,n]=(0,W0.useState)({mode:"closed"}),i=r=>{e.onEditingChange(),n(r)};if(t.mode!=="closed"){let r=t.mode==="edit"?{id:t.profile.id,label:t.profile.label,wireFormat:t.profile.wireFormat,baseUrl:t.profile.baseUrl,model:t.profile.model,authType:t.profile.authType,hasApiKey:t.profile.hasApiKey,hasClientSecret:t.profile.hasClientSecret,hasCertPassphrase:t.profile.hasCertPassphrase,...t.profile.apigee!==void 0?{apigee:t.profile.apigee}:{},...t.profile.certs!==void 0?{certs:t.profile.certs}:{},...t.profile.modelCapabilities!==void 0?{modelCapabilities:t.profile.modelCapabilities}:{},...t.profile.connectionTls!==void 0?{connectionTls:t.profile.connectionTls}:{}}:{label:"",wireFormat:"openai",baseUrl:"",model:"",authType:"apiKey",hasApiKey:!1,hasClientSecret:!1,hasCertPassphrase:!1};return(0,he.jsx)(rh,{initial:r,onSave:o=>{e.onSave(o),n({mode:"closed"})},onCancel:()=>n({mode:"closed"}),onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}})}return(0,he.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,he.jsx)("h3",{style:{margin:0,color:p.foreground},children:"Providers"}),(0,he.jsx)(xr,{scope:"user"})]}),e.profiles.length===0&&(0,he.jsx)("p",{style:{color:p.muted,fontFamily:q},children:"No providers configured yet. Add one to start chatting."}),e.profiles.map(r=>{let o=r.id===e.activeProfileId;return(0,he.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${p.border}`,background:o?p.assistantBubble:"transparent"},children:[(0,he.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,he.jsx)("strong",{children:r.label}),o&&(0,he.jsx)(xr,{scope:"user"})]}),(0,he.jsxs)("div",{style:{color:p.muted,fontSize:12,marginBottom:8},children:[r.baseUrl," \u2014 ",r.model]}),(0,he.jsxs)("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[!o&&(0,he.jsx)("button",{type:"button",title:"Use this profile","aria-label":"Use this profile",style:Re("secondary"),onClick:()=>e.onSetActive(r.id),children:(0,he.jsx)(Ic,{})}),(0,he.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:Re("secondary"),onClick:()=>i({mode:"edit",profile:r}),children:(0,he.jsx)(E0,{})}),(0,he.jsx)("button",{type:"button",title:"Duplicate","aria-label":"Duplicate",style:Re("secondary"),onClick:()=>e.onDuplicate(r.id),children:(0,he.jsx)(D0,{})}),(0,he.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...Re("secondary"),color:p.error},onClick:()=>e.onDelete(r.id),children:(0,he.jsx)(kn,{})})]})]},r.id)}),(0,he.jsx)("button",{type:"button",style:Me(!1),onClick:()=>i({mode:"create"}),children:"Add Provider"}),(0,he.jsxs)("div",{style:{marginTop:20,paddingTop:12,borderTop:`1px solid ${p.border}`},children:[(0,he.jsx)("label",{style:ee(),children:"Config file"}),(0,he.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,he.jsx)("button",{type:"button",style:J(),onClick:e.onExport,children:"Export"}),(0,he.jsx)("button",{type:"button",style:J(),onClick:e.onImport,children:"Import"})]})]})]})}var PD=[{id:"providers",label:"Providers"},{id:"approvals",label:"Approvals"},{id:"mcp",label:"MCP"},{id:"search",label:"Search"},{id:"expert",label:"Expert"},{id:"network",label:"Network"}];function oh(e){let[t,n]=(0,e$.useState)("providers");return(0,Qt.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,Qt.jsx)("div",{style:{display:"flex",borderBottom:`1px solid ${p.border}`,flexShrink:0},children:PD.map(i=>(0,Qt.jsx)("button",{type:"button",onClick:()=>n(i.id),style:{padding:"8px 12px",fontFamily:q,fontSize:12,background:"transparent",color:t===i.id?p.foreground:p.muted,border:"none",borderBottom:`2px solid ${t===i.id?p.buttonBackground:"transparent"}`,cursor:"pointer"},children:i.label},i.id))}),(0,Qt.jsx)("div",{style:{flex:1,minHeight:0,overflowY:"auto"},children:t==="providers"?(0,Qt.jsx)(ih,{profiles:e.profiles,activeProfileId:e.activeProfileId,onSave:e.onSave,onDuplicate:e.onDuplicate,onDelete:e.onDelete,onSetActive:e.onSetActive,onExport:e.onExport,onImport:e.onImport,onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,onEditingChange:e.onEditingChange,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}}):t==="approvals"?(0,Qt.jsx)(Kv,{approvals:e.approvals,onSetAutoApprove:e.onSetAutoApprove,onRevokeTool:e.onRevokeTool,onRevokeCommand:e.onRevokeCommand}):t==="search"?(0,Qt.jsx)(G0,{...e.search}):t==="network"?(0,Qt.jsx)(J0,{...e.network,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):t==="expert"?(0,Qt.jsx)(V0,{expert:e.expert,onSave:e.onSaveExpert}):(0,Qt.jsx)(Wv,{servers:e.mcpServers,json:e.mcpJson,warnings:e.mcpWarnings,saveError:e.mcpSaveError,configs:e.mcpConfigs,platform:e.mcpPlatform,savedTick:e.mcpSavedTick,pythonProbe:e.mcpPythonProbe,onDetectPython:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSaveServer:e.onSaveMcpServer,onDeleteServer:e.onDeleteMcpServer,onSave:e.onSaveMcp,onRestart:e.onRestartMcp,onSetServerEnabled:e.onSetMcpServerEnabled,onSetToolPermission:e.onSetMcpToolPermission,onConnect:e.onConnectMcp})})]})}var ot=H(de(),1),t$=H(Ge(),1);function VD(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return"just now";let i=Math.round(n/60);if(i<60)return`${i}m ago`;let r=Math.round(i/60);if(r<24)return`${r}h ago`;let o=Math.round(r/24);return o<=7?`${o}d ago`:new Date(e).toLocaleDateString()}function n$(e){let[t,n]=(0,t$.useState)(void 0);return(0,ot.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,ot.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,ot.jsx)("h3",{style:{margin:0,color:p.foreground},children:"History"}),(0,ot.jsx)("button",{type:"button",style:{...Me(!1),marginLeft:"auto"},onClick:e.onNew,children:"New task"})]}),e.tasks.length===0&&(0,ot.jsx)("p",{style:{color:p.muted,fontFamily:q},children:"No past tasks in this workspace yet. Conversations are saved automatically as you go."}),e.tasks.map(i=>{let r=i.id===e.activeTaskId,o=i.id===t;return(0,ot.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${r?p.focusBorder:p.border}`,background:r?p.assistantBubble:"transparent"},children:[(0,ot.jsx)("div",{style:{color:p.foreground,marginBottom:4,wordBreak:"break-word"},children:i.title}),(0,ot.jsxs)("div",{style:{color:p.muted,fontSize:11,marginBottom:8},children:[VD(i.updatedAt)," \xB7 ",i.messageCount," message",i.messageCount===1?"":"s",r?" \xB7 current":""]}),o?(0,ot.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,ot.jsx)("span",{style:{color:p.muted,fontSize:11},children:"Delete this task and its saved output?"}),(0,ot.jsx)("button",{type:"button",style:{...J(),color:p.error},onClick:()=>{n(void 0),e.onDelete(i.id)},children:"Delete"}),(0,ot.jsx)("button",{type:"button",style:J(),onClick:()=>n(void 0),children:"Cancel"})]}):(0,ot.jsxs)("div",{style:{display:"flex",gap:6},children:[!r&&(0,ot.jsx)("button",{type:"button",style:J(),onClick:()=>e.onOpen(i.id),children:"Open"}),(0,ot.jsx)("button",{type:"button",style:J(),onClick:()=>n(i.id),children:"Delete"})]})]},i.id)})]})}function Va(e){let t=e.map(i=>i.kind==="reasoning"&&i.pending===!0?{kind:"reasoning",content:i.content}:i),n=t[t.length-1];return n===void 0||n.kind!=="text"||!n.pending?t:[...t.slice(0,-1),{kind:"text",role:n.role,content:n.content,...n.expertInformed===!0?{expertInformed:!0}:{}}]}function ah(e){let[t,n]=(0,F.useState)("chat"),[i,r]=(0,F.useState)([]),[o,a]=(0,F.useState)(!1),[l,u]=(0,F.useState)(void 0),[c,s]=(0,F.useState)([]),[d,f]=(0,F.useState)(void 0),[m,S]=(0,F.useState)(!1),[$,C]=(0,F.useState)(void 0),[v,g]=(0,F.useState)(!1),[h,b]=(0,F.useState)(Sd),[j,E]=(0,F.useState)({}),[x,N]=(0,F.useState)([]),[R,X]=(0,F.useState)(`{
132
+ Default 5.`,placeholder:"5",value:b.maxIndexes,onChange:T=>v({...b,maxIndexes:T})}),(0,B.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`,marginBottom:12},children:[(0,B.jsx)("button",{type:"button",style:D(),onClick:()=>e.onTest(L()),children:"Test Connection"}),e.testResult!==void 0&&(0,B.jsx)("div",{style:{marginTop:8,fontSize:12,color:e.testResult.ok?"var(--vscode-testing-iconPassed, #3fb950)":s.error},children:e.testResult.detail})]}),(0,B.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center"},children:[(0,B.jsx)("button",{type:"button",style:fe(!1),onClick:()=>{J(!0),e.onSave(L())},children:"Save"}),(0,B.jsx)("button",{type:"button",style:D(),onClick:()=>n(void 0),children:"Cancel"}),I&&(0,B.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saving\u2026"})]})]}):(0,B.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[(0,B.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Search"}),(0,B.jsx)(ir,{scope:"user"})]}),(0,B.jsx)("p",{style:{color:s.muted,fontSize:12,fontFamily:Z,margin:"0 0 12px"},children:"Lets the model search OpenSearch indexes your organisation already runs \u2014 logs, tickets, documentation. It can only read: nothing here can create, change or delete anything in a cluster."}),e.connections.length===0&&(0,B.jsx)("p",{style:{color:s.muted,fontFamily:Z},children:"No connections yet."}),e.activeConnectionId!==void 0&&e.connections.length>1&&(0,B.jsxs)("div",{style:{padding:10,marginBottom:12,borderRadius:4,border:`1px solid ${s.border}`,fontFamily:Z,fontSize:12},children:[(0,B.jsx)("strong",{style:{color:s.foreground,fontSize:12},children:"Copy an existing index here"}),(0,B.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Moves this workspace\u2019s vectors into the active store without re-embedding. Only possible when both were indexed with the same embedding model \u2014 otherwise the copy is refused, because mixing embeddings makes every search quietly wrong rather than visibly broken."}),(0,B.jsx)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:e.connections.filter(T=>T.id!==e.activeConnectionId).map(T=>(0,B.jsxs)("button",{type:"button",style:D(),disabled:e.sync?.running===!0,title:`Copy this workspace's index from ${T.label} into the active store`,onClick:()=>e.onSyncFrom(T.id),children:["From ",T.label]},T.id))}),e.sync!==void 0&&(0,B.jsx)("p",{style:{color:e.sync.error!==void 0?s.error:s.muted,fontSize:11,margin:"6px 0 0"},children:e.sync.error??(e.sync.running?`Copying from ${e.sync.fromLabel??"the other store"}\u2026 ${String(e.sync.copied??0)} so far.`:`Copied ${String(e.sync.copied??0)} entries from ${e.sync.fromLabel??"the other store"}.`)})]}),e.connections.map(T=>{let w=T.id===e.activeConnectionId;return(0,B.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${w?s.accent:s.border}`,background:w?s.assistantBubble:"transparent"},children:[(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,B.jsx)("strong",{children:T.label}),w&&(0,B.jsx)("span",{style:{color:s.muted,fontSize:11},children:"\xB7 active"})]}),(0,B.jsxs)("div",{style:{color:s.muted,fontSize:12,marginBottom:8},children:[T.url,T.defaultIndex!==void 0?` \u2014 ${T.defaultIndex}`:" \u2014 no default index"]}),(0,B.jsxs)("div",{style:{display:"flex",gap:6,flexWrap:"wrap"},children:[(0,B.jsx)("button",{type:"button",style:D(),onClick:()=>e.onSetActive(w?void 0:T.id),children:w?"Turn off":"Use in chat"}),(0,B.jsx)("button",{type:"button",style:D(),onClick:()=>n(T),children:"Edit"}),(0,B.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...pe("secondary"),color:s.error},onClick:()=>e.onDelete(T.id),children:(0,B.jsx)(zt,{})})]})]},T.id)}),(0,B.jsx)("button",{type:"button",style:fe(!1),onClick:()=>n({...h$}),children:"Add connection"}),(0,B.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:16},children:"Search tools are offered only while a connection is active. Switching starts a fresh prompt, so change it between messages rather than mid-reply."}),(0,B.jsx)(d$,{...e.indexing}),(0,B.jsx)(f$,{...e.dispatcher}),(0,B.jsx)(m$,{...e.activity})]})}var qe=P(ie(),1),An=P(he(),1);var Zu={fontFamily:Z,fontSize:11,color:s.muted,marginTop:-12,marginBottom:16,lineHeight:1.5};function Ol(e){return(0,qe.jsxs)("div",{style:{marginBottom:e.hint!==void 0?0:16},children:[(0,qe.jsx)(pn,{id:e.id,label:e.label,value:e.value,placeholder:e.placeholder,...e.browse!==void 0?{browse:e.browse}:{},...e.onBrowse!==void 0?{onBrowse:e.onBrowse}:{},onChange:e.onChange}),e.hint!==void 0&&(0,qe.jsx)("div",{style:Zu,children:e.hint})]})}function v$(e){let t=e.settings,[n,r]=(0,An.useState)(""),[i,o]=(0,An.useState)(""),[a,l]=(0,An.useState)(""),[c,u]=(0,An.useState)(""),[d,m]=(0,An.useState)(""),[p,f]=(0,An.useState)(""),[x,_]=(0,An.useState)(!0),[O,h]=(0,An.useState)(!1);(0,An.useEffect)(()=>{t!==void 0&&(r(t.certDir??""),o(t.tls.caFile??""),l(t.tls.certFile??""),u(t.tls.keyFile??""),m(t.tls.pfxFile??""),_(t.tls.rejectUnauthorized!==!1),f(""),h(!1))},[t]),(0,An.useEffect)(()=>{let v=e.pickedPath;if(v===void 0)return;let I={"net.certDir":r,"net.caFile":o,"net.certFile":l,"net.keyFile":u,"net.pfxFile":m}[v.purpose];I?.(v.path)},[e.pickedPath]);let g=d.trim().length>0;function b(){e.onSave({certDir:n,tls:{caFile:i,certFile:g?"":a,keyFile:g?"":c,pfxFile:d,...x?{}:{rejectUnauthorized:!1}},...p.length>0?{passphrase:p}:{}}),h(!0)}return(0,qe.jsxs)("div",{style:{padding:16,fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,qe.jsx)("p",{style:{...Zu,marginTop:0,marginBottom:20},children:"Applies to every connection Light Code makes. A provider profile or search cluster can still set its own \u2014 an extra CA there is added to this one, and its own client certificate replaces this one for that connection only."}),(0,qe.jsx)(Ol,{id:"net-certdir",browse:{purpose:"net.certDir",kind:"folder"},onBrowse:e.onBrowse,label:"Certificate directory",value:n,placeholder:"C:\\Users\\you\\certs",hint:"Filenames below resolve against this. Absolute paths ignore it. Must be outside the workspace, and everything it holds is hidden from file-reading tools.",onChange:r}),(0,qe.jsx)("h3",{style:{fontSize:12,textTransform:"uppercase",color:s.muted,margin:"24px 0 12px"},children:"Trust"}),(0,qe.jsx)(Ol,{id:"net-ca",browse:{purpose:"net.caFile",kind:"file",extensions:["pem","crt","cer","ca-bundle"]},onBrowse:e.onBrowse,label:"CA certificate",value:i,placeholder:"corporate-root.pem",hint:"Added to the built-in roots, not a replacement for them \u2014 public sites keep working.",onChange:o}),(0,qe.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:8,marginBottom:4,cursor:"pointer"},children:[(0,qe.jsx)("input",{type:"checkbox",checked:x,onChange:v=>_(v.target.checked),style:{marginTop:2}}),(0,qe.jsx)("span",{children:"Verify server certificates"})]}),!x&&(0,qe.jsx)("div",{style:{...Zu,color:"var(--vscode-editorWarning-foreground, inherit)",marginTop:4},children:"Off means any certificate is accepted, so an interception cannot be distinguished from the real server. Use it to confirm a diagnosis, then add the CA above instead."}),(0,qe.jsx)("h3",{style:{fontSize:12,textTransform:"uppercase",color:s.muted,margin:"24px 0 12px"},children:"Client certificate"}),(0,qe.jsx)("p",{style:{...Zu,marginTop:0},children:"Presented to every connection that does not supply its own. A certificate identifies you, so it goes to each host you have configured \u2014 set it on the individual profile instead if that is not what you want."}),(0,qe.jsx)(Ol,{id:"net-pfx",browse:{purpose:"net.pfxFile",kind:"file",extensions:["pfx","p12"]},onBrowse:e.onBrowse,label:"PFX bundle",value:d,placeholder:"client.pfx",hint:"Windows PKI usually issues one of these. Supplied instead of a certificate and key.",onChange:m}),!g&&(0,qe.jsxs)(qe.Fragment,{children:[(0,qe.jsx)(Ol,{id:"net-cert",browse:{purpose:"net.certFile",kind:"file",extensions:["crt","pem","cer"]},onBrowse:e.onBrowse,label:"Certificate",value:a,placeholder:"client.crt",onChange:l}),(0,qe.jsx)(Ol,{id:"net-key",browse:{purpose:"net.keyFile",kind:"file",extensions:["key","pem"]},onBrowse:e.onBrowse,label:"Private key",value:c,placeholder:"client.key",onChange:u})]}),(0,qe.jsx)(ai,{id:"net-passphrase",label:"Key passphrase",hasValue:t?.hasPassphrase??!1,value:p,onChange:f,placeholder:"Leave blank if the key is not encrypted"}),(0,qe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12},children:[(0,qe.jsx)("button",{type:"button",style:fe(!1),onClick:b,children:"Save"}),O&&(0,qe.jsx)("span",{style:{fontSize:12,color:s.muted},children:"Saved."})]})]})}var G=P(ie(),1),hn=P(he(),1);var Bu="var(--vscode-editor-font-family, monospace)";function y$(e){let t=e.status,[n,r]=(0,hn.useState)(void 0),[i,o]=(0,hn.useState)(""),[a,l]=(0,hn.useState)(!1),[c,u]=(0,hn.useState)(""),[d,m]=(0,hn.useState)(""),[p,f]=(0,hn.useState)("30"),[x,_]=(0,hn.useState)(""),[O,h]=(0,hn.useState)(!1),[g,b]=(0,hn.useState)(!1);return(0,hn.useEffect)(()=>{e.pickedPath?.purpose==="python.uvPath"&&u(e.pickedPath.path),e.pickedPath?.purpose==="python.toolsDir"&&m(e.pickedPath.path),e.pickedPath?.purpose==="python.venvPath"&&o(e.pickedPath.path)},[e.pickedPath]),(0,hn.useEffect)(()=>{let v=e.settings;v!==void 0&&(l(v.dynamicTools==="on"),u(v.uvPath??""),m(v.toolsDir??""),o(v.venvPath??""),_(v.indexUrl??""),h(v.offline===!0),f(String(v.timeoutSeconds??30)),b(!1))},[e.settings]),(0,G.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,G.jsx)("h3",{style:{margin:"0 0 4px"},children:"Python tools"}),(0,G.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Lets the model write small Python tools and call them in the same conversation \u2014 useful for parsing, data wrangling, or anything needing a library that a shell command handles badly."}),(0,G.jsxs)("div",{style:{fontSize:11,color:s.muted,border:`1px solid ${s.border}`,borderRadius:3,padding:"8px 10px",margin:"10px 0",lineHeight:1.5},children:["This is the sharpest feature in Light Code. Elsewhere you approve a tool ",(0,G.jsx)("em",{children:"call"}),"; here you approve a tool's ",(0,G.jsx)("strong",{children:"source code"}),", which then runs whenever the model uses it. Every create and update shows you the full diff first, and a file changed afterwards \u2014 by anything \u2014 is refused rather than loaded. Tools live in your workspace so they land in git and get reviewed like any other code. There is no sandbox: a tool runs with your privileges."]}),(0,G.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12,cursor:"pointer"},children:[(0,G.jsx)("input",{type:"checkbox",checked:a,onChange:v=>l(v.target.checked)}),(0,G.jsx)("span",{children:"Let the model create and run Python tools"})]}),a&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(pn,{id:"lc-py-uv",label:"Path to uv",value:c,placeholder:t?.uv?.path??"uv (found on PATH)",hint:"Leave blank to use uv from PATH. uv is used because it reads a tool's inline dependency block natively, so the tool file is the only place its dependencies are declared.",browse:{purpose:"python.uvPath",kind:"file"},onBrowse:e.onBrowse,onChange:u}),(0,G.jsx)(pn,{id:"lc-py-tools",label:"Where tools are kept",value:d,placeholder:t?.toolsDir??".lightcode/tools",hint:"Leave blank for .lightcode/tools in the workspace, which is the safer default: a tool is code the model wrote, and keeping it in the repository means every change lands in git and gets reviewed. One folder only \u2014 each tool's approved content hash is recorded alongside it.",browse:{purpose:"python.toolsDir",kind:"folder"},onBrowse:e.onBrowse,onChange:m}),(0,G.jsx)(pn,{id:"lc-py-venv",label:"Python environment",value:i,placeholder:t?.venvPath??"the project's .venv, or one created for you",hint:"Leave blank to prefer the project's own .venv \u2014 that is where its internal libraries already are. Give a venv folder, or a python.exe directly, to override.",browse:{purpose:"python.venvPath",kind:"folder"},onBrowse:e.onBrowse,onChange:o}),e.programming!==void 0&&e.programming.profiles.length>0&&(0,G.jsxs)("div",{style:{marginBottom:10},children:[(0,G.jsx)("label",{htmlFor:"lc-py-writer",style:q(),children:"Which model writes the code"}),(0,G.jsx)(Je,{id:"lc-py-writer",value:e.programming.selectedId??"",onChange:e.programming.onSelect,options:[{value:"",label:"The model you are chatting with"},...e.programming.profiles.map(v=>({value:v.id,label:v.label}))]}),(0,G.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 0"},children:e.programming.selectedId===void 0||e.programming.selectedId===""?(0,G.jsx)(G.Fragment,{children:"The assistant writes the Python itself. Pick a different profile and it will describe the tool instead, leaving the file to a model chosen for code."}):(0,G.jsx)(G.Fragment,{children:"The assistant describes what the tool must do and this profile writes the file. You still approve the source before anything is saved, and the prompt says which model produced it."})})]}),(0,G.jsxs)("div",{style:{marginBottom:10},children:[(0,G.jsx)("label",{htmlFor:"lc-py-index",style:q(),children:"Package index"}),(0,G.jsx)("input",{id:"lc-py-index",type:"text",value:x,spellCheck:!1,placeholder:"https://artifactory.corp/api/pypi/pypi/simple",onChange:v=>_(v.target.value),style:{...Y(),fontFamily:Bu}}),(0,G.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"Where a tool's declared dependencies are fetched from. Point this at your internal mirror to make company packages installable \u2014 and to avoid reaching public PyPI at all."})]}),(0,G.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:10,cursor:"pointer"},children:[(0,G.jsx)("input",{type:"checkbox",checked:O,onChange:v=>h(v.target.checked)}),(0,G.jsx)("span",{style:{fontSize:12},children:"Offline \u2014 never fetch a package, use only what is already installed"})]}),(0,G.jsxs)("div",{style:{marginBottom:12},children:[(0,G.jsx)("label",{htmlFor:"lc-py-timeout",style:q(),children:"Timeout per call (seconds)"}),(0,G.jsx)("input",{id:"lc-py-timeout",type:"number",min:1,max:600,value:p,onChange:v=>f(v.target.value),style:{...Y(),width:120}}),(0,G.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:"A tool that exceeds this is stopped and its whole process tree killed, so a hang cannot hold up the conversation."})]})]}),(0,G.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginBottom:12},children:[(0,G.jsx)("button",{type:"button",style:fe(!1),onClick:()=>{let v=Number.parseInt(p,10);e.onSave({dynamicTools:a?"on":"off",uvPath:c.trim(),toolsDir:d.trim(),venvPath:i.trim(),timeoutSeconds:Number.isFinite(v)?v:30,indexUrl:x.trim(),offline:O}),b(!0)},children:"Save"}),g&&(0,G.jsx)("span",{style:{fontSize:11,color:s.muted},children:"Saved."})]}),t!==void 0&&(0,G.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,G.jsx)("strong",{style:{fontSize:12},children:"Status"}),(0,G.jsx)("div",{style:{fontSize:11,marginTop:4,color:t.ready?s.muted:t.enabled?s.error:s.muted},children:t.detail}),t.enabled&&(0,G.jsxs)("div",{style:{fontSize:11,color:s.muted,marginTop:6,fontFamily:Bu},children:[(0,G.jsxs)("div",{children:["tools: ",t.toolsDir||"\u2014"]}),(0,G.jsxs)("div",{children:["venv: ",t.venvPath||"\u2014"," ",t.venvSource==="workspace"?`(this project's${t.venvIsUvManaged?", uv-managed":""})`:t.venvSource==="configured"?"(configured)":t.venvSource==="created"?"(created by Light Code)":""]})]}),t.issues.length>0&&(0,G.jsxs)("div",{style:{marginTop:10},children:[(0,G.jsx)("strong",{style:{fontSize:12,color:s.error},children:"Not loaded"}),t.issues.map(v=>(0,G.jsxs)("div",{style:{marginTop:4},children:[(0,G.jsxs)("div",{style:{fontSize:11,color:s.error},children:["\u26A0 ",v.detail]}),(0,G.jsxs)("div",{style:{display:"flex",gap:6,marginTop:3},children:[(0,G.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},onClick:()=>e.onOpenFile(v.filePath),children:"Open"}),v.recoverable&&(0,G.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},title:"Trust this file as it stands now. Read it first \u2014 a change you did not make is exactly what the check is for.",onClick:()=>e.onApproveTool(v.name),children:"Approve this version"}),(0,G.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},onClick:()=>r(v.name),children:"Delete"})]})]},v.filePath))]}),(0,G.jsxs)("div",{style:{marginTop:10},children:[(0,G.jsx)("strong",{style:{fontSize:12},children:"Registered tools"}),t.tools.length===0?(0,G.jsx)("p",{style:{fontSize:11,color:s.muted,margin:"4px 0 0"},children:t.ready?"None yet. Ask the model to write one \u2014 it will show you the source before anything is saved.":"None."}):t.tools.map(v=>(0,G.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`},children:[(0,G.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,G.jsxs)("span",{style:{fontFamily:Bu,fontSize:12},children:["py__",v.name]}),(0,G.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,G.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},title:"Open the source in an editor tab",onClick:()=>e.onOpenFile(v.filePath),children:"Open"}),(0,G.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px"},onClick:()=>r(v.name),children:"Delete"})]})]}),v.description.length>0&&(0,G.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11},children:v.description}),(0,G.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10,fontFamily:Bu},children:v.filePath}),n===v.name&&(0,G.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:6,fontSize:12},children:[(0,G.jsx)("span",{children:"Delete this tool and its approval?"}),(0,G.jsx)("button",{type:"button",style:fe(!1),onClick:()=>{e.onDeleteTool(v.name),r(void 0)},children:"Delete"}),(0,G.jsx)("button",{type:"button",style:D(),onClick:()=>r(void 0),children:"Cancel"})]})]},v.name))]})]})]})}var nt=P(ie(),1),Nl=P(he(),1);var XA="var(--vscode-editor-font-family, monospace)",KA={"built-in":"Built in",mcp:"MCP servers",python:"Python tools"},QA={read:"reads",edit:"edits",command:"runs commands",mcp:"mcp",always:"always available"};function b$(e){let[t,n]=(0,Nl.useState)(""),r=(0,Nl.useMemo)(()=>{let a=t.trim().toLowerCase();return a.length===0?e.tools:e.tools.filter(l=>l.name.toLowerCase().includes(a)||l.description.toLowerCase().includes(a))},[e.tools,t]),i=(0,Nl.useMemo)(()=>{let a=new Map;for(let l of r){let c=a.get(l.source);c===void 0?a.set(l.source,[l]):c.push(l)}return a},[r]),o=e.tools.filter(a=>!a.advertised).length;return(0,nt.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,nt.jsx)("h3",{style:{margin:"0 0 4px"},children:"Tools"}),(0,nt.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Everything the assistant can call right now \u2014 built in, from your MCP servers, and your own Python tools. Read-only: each is configured where it comes from."}),e.dispatcher&&(0,nt.jsxs)("p",{style:{color:s.muted,fontSize:11},children:[o," of these are kept out of the system prompt to save space. They are still callable \u2014 the assistant looks them up when it needs one. Turn that off in"," ",(0,nt.jsx)("strong",{children:"Search"})," if you would rather it saw them all."]}),(0,nt.jsxs)("div",{style:{margin:"10px 0"},children:[(0,nt.jsx)("label",{htmlFor:"lc-tools-search",style:q(),children:"Search"}),(0,nt.jsx)("input",{id:"lc-tools-search",type:"search",value:t,placeholder:"e.g. read a spreadsheet",onChange:a=>n(a.target.value),style:Y()})]}),(0,nt.jsxs)("p",{style:{color:s.muted,fontSize:11},children:[r.length," of ",e.tools.length," ",e.tools.length===1?"tool":"tools"]}),e.tools.length===0&&(0,nt.jsx)("p",{style:{color:s.muted,fontSize:12},children:"Nothing yet. Open a folder and configure a provider \u2014 the built-in tools appear once a session can start."}),[...i.entries()].map(([a,l])=>(0,nt.jsxs)("div",{style:{marginTop:14},children:[(0,nt.jsxs)("strong",{style:{fontSize:12},children:[KA[a]," ",(0,nt.jsxs)("span",{style:{color:s.muted},children:["(",l.length,")"]})]}),l.map(c=>(0,nt.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`},children:[(0,nt.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,nt.jsx)("span",{style:{fontFamily:XA,fontSize:12},children:c.name}),(0,nt.jsx)("span",{style:{...Fe(),fontSize:9},children:QA[c.group]??c.group}),c.server!==void 0&&(0,nt.jsx)("span",{style:{...Fe(),fontSize:9},title:`From the ${c.server} server`,children:c.server}),!c.advertised&&(0,nt.jsx)("span",{style:{...Fe(),fontSize:9},title:"Registered but kept out of the system prompt. Still callable \u2014 the assistant looks it up first.",children:"looked up"})]}),(0,nt.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:c.description})]},c.name))]},a)),e.tools.length>0&&r.length===0&&(0,nt.jsxs)("p",{style:{color:s.muted,fontSize:12,marginTop:12},children:["Nothing matches \u201C",t.trim(),"\u201D."]})]})}var je=P(ie(),1),Ty=P(he(),1);function x$(e){let t=e.items.filter(r=>r.status==="pending"),n=e.items.filter(r=>r.status!=="pending");return(0,je.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,je.jsx)("h3",{style:{margin:"0 0 4px"},children:"Review queue"}),(0,je.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:e.canDecide?"Python tools and skills written by other people. Nothing here can run until you approve it.":"What you have submitted. An administrator has to approve it before it can run."}),t.length===0&&(0,je.jsx)("p",{style:{color:s.muted,fontSize:12,marginTop:14},children:"Nothing waiting."}),t.map(r=>(0,je.jsx)(WA,{item:r,canDecide:e.canDecide,onDecide:e.onDecide},r.id)),n.length>0&&(0,je.jsxs)("section",{style:{marginTop:22,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,je.jsx)("span",{style:q(),children:"Decided"}),n.map(r=>(0,je.jsxs)("div",{style:{padding:"6px 0",borderBottom:`1px solid ${s.border}`,fontSize:12},children:[(0,je.jsx)("span",{style:{...Fe(),fontSize:9,marginRight:6},children:r.status}),(0,je.jsx)("strong",{children:r.name})," ",(0,je.jsxs)("span",{style:{color:s.muted},children:["by ",r.authorName,r.decidedBy!==void 0?`, decided by ${r.decidedBy}`:""]}),r.reason!==void 0&&(0,je.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:r.reason})]},r.id))]})]})}function WA(e){let{item:t}=e,[n,r]=(0,Ty.useState)(!1),[i,o]=(0,Ty.useState)("");return(0,je.jsxs)("div",{style:{border:`1px solid ${s.border}`,borderRadius:5,padding:10,marginBottom:10},children:[(0,je.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,flexWrap:"wrap"},children:[(0,je.jsx)("span",{style:{...Fe(),fontSize:9},children:t.kind==="python-tool"?"tool":"skill"}),(0,je.jsx)("strong",{style:{fontSize:13},children:t.name}),(0,je.jsxs)("span",{style:{color:s.muted,fontSize:11},children:["from ",t.authorName," \xB7 ",new Date(t.submittedAt).toLocaleString()]})]}),t.producedBy!==void 0&&(0,je.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:4},children:["Written by ",t.producedBy]}),(0,je.jsx)("button",{type:"button",style:{...D(),fontSize:11,marginTop:8},"aria-expanded":n,onClick:()=>r(!n),children:n?"Hide the source":"Read the source"}),n&&(0,je.jsx)("div",{style:{marginTop:8},children:(0,je.jsx)(Al,{path:t.name,before:t.existingContent,after:t.content})}),e.canDecide?(0,je.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10,alignItems:"center",flexWrap:"wrap"},children:[(0,je.jsx)("button",{type:"button",style:fe(!n),disabled:!n,title:n?void 0:"Read the source first",onClick:()=>e.onDecide(t.id,!0),children:"Approve"}),(0,je.jsx)("button",{type:"button",style:{...D(),color:s.error},onClick:()=>e.onDecide(t.id,!1,i.trim().length>0?i.trim():void 0),children:"Reject"}),(0,je.jsx)("input",{type:"text","aria-label":"Reason for rejecting",placeholder:"Why? The author sees this.",value:i,onChange:a=>o(a.target.value),style:{...Y(),flex:1,minWidth:140}}),!n&&(0,je.jsx)("span",{style:{color:s.muted,fontSize:11,flexBasis:"100%"},children:"Open the source before approving it."})]}):(0,je.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:8},children:"Waiting for an administrator."})]})}var ke=P(ie(),1);var rr=P(he(),1);var Rl="var(--vscode-editor-font-family, monospace)";function k$(e){return(0,ke.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,ke.jsx)("h3",{style:{margin:"0 0 4px"},children:"Variables"}),(0,ke.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Set as environment variables for everything a session runs \u2014 shell commands and Python tools."}),(0,ke.jsxs)("p",{style:{color:s.error,fontSize:11,border:`1px solid ${s.error}`,borderRadius:8,padding:8,margin:"0 0 12px"},children:[(0,ke.jsx)("strong",{children:"Not secret."})," Everything a session runs does so as the server\u2019s own account, so another user can have their assistant read these. Put an API key in"," ",(0,ke.jsx)("strong",{children:"Providers"}),", which stores it separately and never sends it back to a page."]}),(0,ke.jsx)(S$,{title:"Yours",hint:"Only your sessions see these.",variables:e.user,resolved:e.resolved,scope:"user",onSave:e.onSaveUser,editable:!0}),(0,ke.jsx)(S$,{title:"Everyone's",hint:e.canEditAdmin?"Applied to every user, and these win where a name collides with someone\u2019s own.":"Set by an administrator. These win where a name collides with your own.",variables:e.admin,resolved:e.resolved,scope:"admin",onSave:e.onSaveAdmin,editable:e.canEditAdmin}),e.canEditAdmin&&(0,ke.jsx)(ej,{ids:e.adminIds,onSave:e.onSaveAdminIds})]})}function S$(e){let[t,n]=(0,rr.useState)(e.variables),[r,i]=(0,rr.useState)(!1);(0,rr.useEffect)(()=>{r||n(e.variables)},[e.variables,r]);let o=(c,u)=>{i(!0),n(d=>d.map((m,p)=>p===c?{...m,...u}:m))},a=t.filter(c=>c.name.length>0&&!Du(c.name)),l=t.some(c=>c.name.trim().length===0);return(0,ke.jsxs)("section",{style:{marginTop:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,ke.jsx)("span",{style:q(),children:e.title}),(0,ke.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.hint}),t.length===0&&(0,ke.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:"None set."}),t.map((c,u)=>{let d=e.resolved.find(f=>f.name===c.name),m=e.scope==="user"&&d!==void 0&&d.scope==="admin",p=c.name.length>0&&!Du(c.name);return(0,ke.jsxs)("div",{style:{marginBottom:8},children:[(0,ke.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,ke.jsx)("input",{type:"text","aria-label":"Variable name",value:c.name,spellCheck:!1,disabled:!e.editable,placeholder:"NAME",onChange:f=>o(u,{name:f.target.value}),style:{...Y(),width:170,fontFamily:Rl,...p?{borderColor:s.error}:{}}}),(0,ke.jsx)("input",{type:"text","aria-label":"Variable value",value:c.value,spellCheck:!1,disabled:!e.editable,placeholder:"value",onChange:f=>o(u,{value:f.target.value}),style:{...Y(),flex:1,minWidth:140,fontFamily:Rl}}),e.editable&&(0,ke.jsx)("button",{type:"button","aria-label":`Remove ${c.name}`,title:"Remove",style:D(),onClick:()=>{i(!0),n(f=>f.filter((x,_)=>_!==u))},children:(0,ke.jsx)(zt,{})})]}),p&&(0,ke.jsx)("div",{style:{color:s.error,fontSize:10,marginTop:2},children:"Letters, digits and underscore only, not starting with a digit \u2014 anything else cannot be set as an environment variable."}),m&&(0,ke.jsxs)("div",{style:{color:s.muted,fontSize:10,marginTop:2},children:[(0,ke.jsx)("span",{style:{...Fe(),fontSize:9,marginRight:4},children:"overridden"}),"An administrator set ",c.name," for everyone, so sessions use"," ",(0,ke.jsx)("code",{style:{fontFamily:Rl},children:d.value})," and not yours."]})]},u)}),e.editable&&(0,ke.jsxs)("div",{style:{display:"flex",gap:8,marginTop:8,alignItems:"center",flexWrap:"wrap"},children:[(0,ke.jsx)("button",{type:"button",style:D(),onClick:()=>{i(!0),n(c=>[...c,{name:"",value:""}])},children:"Add"}),(0,ke.jsx)("button",{type:"button",style:fe(!r||a.length>0||l),disabled:!r||a.length>0||l,onClick:()=>{e.onSave(t.map(c=>({...c,name:c.name.trim()}))),i(!1)},children:"Save"}),l&&(0,ke.jsx)("span",{style:{color:s.muted,fontSize:11},children:"A name is required."})]})]})}function ej(e){let[t,n]=(0,rr.useState)(e.ids.join(`
133
+ `)),[r,i]=(0,rr.useState)(!1);return(0,rr.useEffect)(()=>{r||n(e.ids.join(`
134
+ `))},[e.ids,r]),(0,ke.jsxs)("section",{style:{marginTop:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,ke.jsx)("span",{style:q(),children:"Administrators"}),(0,ke.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["One identity id per line \u2014 the immutable id your directory issues, not a username, which gets reassigned when someone leaves. Removing yourself is allowed; the way back is"," ",(0,ke.jsx)("code",{style:{fontFamily:Rl},children:"--admin-id"})," on the command line."]}),(0,ke.jsx)("textarea",{"aria-label":"Administrator ids",value:t,spellCheck:!1,rows:4,onChange:o=>{i(!0),n(o.target.value)},style:{...Y(),width:"100%",fontFamily:Rl,resize:"vertical"}}),(0,ke.jsx)("button",{type:"button",style:{...fe(!r),marginTop:8},disabled:!r,onClick:()=>{e.onSave(t.split(`
135
+ `).map(o=>o.trim()).filter(o=>o.length>0)),i(!1)},children:"Save"})]})}var Ue=P(ie(),1),T$=P(he(),1);var Ot=P(ie(),1),ta=P(he(),1);var _$="var(--vscode-editor-font-family, monospace)";function $$(e){let[t,n]=(0,ta.useState)(e.primary),[r,i]=(0,ta.useState)(e.extras);(0,ta.useEffect)(()=>n(e.primary),[e.primary]),(0,ta.useEffect)(()=>i(e.extras),[e.extras]);let o=t!==e.primary||r.join("\0")!==e.extras.join("\0"),a=(l,c)=>i(u=>u.map((d,m)=>m===l?c:d));return(0,Ot.jsxs)("section",{style:{marginTop:16,paddingTop:14,borderTop:`1px solid ${s.border}`},children:[(0,Ot.jsx)("label",{style:q(),htmlFor:"lc-folder-primary",children:e.primaryLabel}),(0,Ot.jsx)("input",{id:"lc-folder-primary",type:"text",value:t,spellCheck:!1,placeholder:e.primaryPlaceholder,onChange:l=>n(l.target.value),style:{...Y(),fontFamily:_$}}),(0,Ot.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,margin:"4px 0 12px"},children:e.primaryHint}),(0,Ot.jsx)("span",{style:q(),children:e.extrasLabel}),(0,Ot.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.extrasHint}),r.map((l,c)=>(0,Ot.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:6},children:[(0,Ot.jsx)("input",{type:"text",value:l,spellCheck:!1,"aria-label":`Folder ${c+1}`,onChange:u=>a(c,u.target.value),style:{...Y(),fontFamily:_$}}),(0,Ot.jsx)("button",{type:"button",title:"Remove this folder","aria-label":"Remove this folder",style:pe("secondary"),onClick:()=>i(u=>u.filter((d,m)=>m!==c)),children:(0,Ot.jsx)(zt,{})})]},c)),(0,Ot.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:8,flexWrap:"wrap"},children:[(0,Ot.jsx)("button",{type:"button",style:D(),onClick:()=>i(l=>[...l,""]),children:"Add a folder"}),(0,Ot.jsx)("button",{type:"button",style:D(),disabled:!o,onClick:()=>e.onSave(t.trim(),r.map(l=>l.trim()).filter(l=>l.length>0)),children:o?"Save folders":"Saved"}),(0,Ot.jsx)("span",{style:{color:s.muted,fontSize:11,fontFamily:Z},children:"Relative paths resolve against the workspace."})]})]})}var Fr=P(ie(),1),w$=P(he(),1);function z$(e){let[t,n]=(0,w$.useState)(void 0),r=e.problems.join("\0");return e.problems.length===0?(t!==void 0&&n(void 0),null):t===r?null:(0,Fr.jsxs)("div",{style:{marginTop:12},children:[(0,Fr.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Fr.jsx)("strong",{style:{fontSize:12,color:s.error},children:e.title}),(0,Fr.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Hide these until something changes. The files themselves are untouched \u2014 fix them and they stop being listed.",onClick:()=>n(r),children:"Dismiss"})]}),e.problems.map(i=>(0,Fr.jsxs)("div",{style:{fontSize:11,color:s.error,marginTop:4},children:["\u26A0 ",i]},i))]})}var Cy="var(--vscode-editor-font-family, monospace)";function C$(e){let[t,n]=(0,T$.useState)(void 0);return(0,Ue.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,Ue.jsx)("h3",{style:{margin:"0 0 4px"},children:"Skills"}),(0,Ue.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"Notes the assistant keeps about this workspace \u2014 internal libraries, conventions, anything you would otherwise explain again each time. Tell it something durable and it will offer to record one; you approve the text before it is written."}),(0,Ue.jsxs)("p",{style:{color:s.muted,fontSize:11},children:["Only each ",(0,Ue.jsx)("strong",{children:"description"})," below is loaded into every conversation. The bodies are read on demand, so a long skill costs nothing until it is relevant.",e.skillsDir!==void 0&&(0,Ue.jsxs)(Ue.Fragment,{children:[" ","They are plain markdown in ",(0,Ue.jsx)("code",{style:{fontFamily:Cy},children:e.skillsDir}),", so they land in git and can be reviewed like any other file."]})]}),(0,Ue.jsx)(z$,{title:"Not loaded",problems:e.issues.map(r=>`${r.filePath} \u2014 ${r.detail}`)}),(0,Ue.jsx)("div",{style:{marginTop:14},children:e.skills.length===0?(0,Ue.jsx)("p",{style:{color:s.muted,fontSize:12},children:e.skillsDir===void 0?"Open a folder \u2014 skills belong to a workspace.":"None yet. Explain something about this codebase and the assistant will offer to record it."}):e.skills.map(r=>(0,Ue.jsxs)("div",{style:{padding:"8px 0",borderBottom:`1px solid ${s.border}`},children:[(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:8},children:[(0,Ue.jsx)("strong",{style:{fontFamily:Cy,fontSize:12},children:r.name}),r.sourceDir!==void 0&&e.skillsDir!==void 0&&r.sourceDir!==e.skillsDir&&(0,Ue.jsx)("span",{style:{...Fe(),fontSize:9},title:`Read-only, from ${r.sourceDir}`,children:"shared"}),(0,Ue.jsxs)("span",{style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:4},children:[(0,Ue.jsx)("button",{type:"button",style:D(),title:"Open this skill in an editor tab",onClick:()=>e.onOpenFile(r.filePath),children:"Open"}),r.sourceDir===void 0||e.skillsDir===void 0||r.sourceDir===e.skillsDir?(0,Ue.jsx)("button",{type:"button",style:D(),onClick:()=>n(r.name),children:"Remove"}):(0,Ue.jsx)("span",{style:{color:s.muted,fontSize:10},children:"read-only"})]})]}),(0,Ue.jsx)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:r.description}),(0,Ue.jsx)("div",{style:{color:s.muted,fontSize:10,fontFamily:Cy,marginTop:2},children:r.filePath}),t===r.name&&(0,Ue.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginTop:6,fontSize:12},children:[(0,Ue.jsx)("span",{children:"Delete this skill file?"}),(0,Ue.jsx)("button",{type:"button",style:fe(!1),onClick:()=>{e.onDelete(r.name),n(void 0)},children:"Delete"}),(0,Ue.jsx)("button",{type:"button",style:D(),onClick:()=>n(void 0),children:"Keep"})]})]},r.name))}),(0,Ue.jsx)($$,{primary:e.configuredDir,primaryPlaceholder:e.skillsDir??".lightcode/skills",primaryLabel:"Where new skills are saved",primaryHint:"Leave blank for .lightcode/skills in the workspace. Creating, editing and deleting all happen here.",extras:e.extraDirs,extrasLabel:"Also read skills from",extrasHint:"Shared or reference folders, searched in order after the one above. Never written to, so a folder shared with colleagues stays safe. A name defined twice is taken from the first folder that has it.",onSave:e.onSaveDirs})]})}var C=P(ie(),1);var Nt=P(he(),1);var na="var(--vscode-editor-font-family, monospace)",tj={read:"Reading",edit:"Editing files",command:"Running commands",mcp:"MCP servers",always:"Always available"};function nj(){return{id:"",name:"",prompt:"",trigger:{kind:"daily",hour:9,minute:0},enabled:!0,allowedTools:[]}}function E$(e){let[t,n]=(0,Nt.useState)(void 0),[r,i]=(0,Nt.useState)(Date.now()),[o,a]=(0,Nt.useState)(void 0);return(0,Nt.useEffect)(()=>{let l=setInterval(()=>i(Date.now()),3e4);return()=>clearInterval(l)},[]),t!==void 0?(0,C.jsx)(ij,{schedule:t,tools:e.tools,skills:e.skills,mentionCandidates:e.mentionCandidates,onQueryMentions:e.onQueryMentions,onCancel:()=>n(void 0),onSave:l=>{e.onSave(l),n(void 0)}}):(0,C.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,C.jsx)("h3",{style:{margin:"0 0 4px"},children:"Schedules"}),(0,C.jsx)("p",{style:{color:s.muted,fontSize:11,marginTop:0},children:"A prompt that runs on its own and leaves a normal task you can read afterwards. Each one can use only the tools you tick \u2014 nobody is present to approve anything while it runs."}),(0,C.jsx)("p",{style:{color:s.muted,fontSize:11},children:"Schedules only fire while VS Code is open. One that came due while it was closed runs shortly after you next open it, once \u2014 not repeatedly to catch up."}),(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",padding:"6px 8px",borderRadius:6,fontSize:11,border:`1px solid ${e.scheduler?.running===!1?s.error:s.border}`,color:e.scheduler?.running===!1?s.error:s.muted},children:[(0,C.jsx)("span",{children:e.scheduler?.running===!1?"The scheduler is not running \u2014 nothing will fire.":`Scheduler running${e.scheduler?.lastTickAt===void 0?" \u2014 first check within a minute":`, last checked ${new Date(e.scheduler.lastTickAt).toLocaleTimeString()}`}`}),(0,C.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Stop and start the timer. Safe at any time; a run already in progress is unaffected.",onClick:e.onRestartScheduler,children:"Restart"})]}),e.schedules.length===0?(0,C.jsx)("p",{style:{color:s.muted,fontSize:12,marginTop:14},children:"None yet."}):(0,C.jsx)("div",{style:{marginTop:12},children:e.schedules.map(l=>(0,C.jsxs)("div",{style:{padding:"8px 0",borderBottom:`1px solid ${s.border}`},children:[(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[(0,C.jsx)("strong",{style:{fontSize:12},children:l.name}),l.allowedTools.length===0?(0,C.jsx)("span",{style:{...Fe(),fontSize:9},title:"Can answer, but cannot use any tool",children:"no tools"}):(0,C.jsxs)("span",{style:{...Fe(),fontSize:9},children:[l.allowedTools.length," ",l.allowedTools.length===1?"tool":"tools"]}),Iu(e.tools,l.allowedTools).length>0&&(0,C.jsx)("span",{style:{...Fe("warning"),fontSize:9},title:"This schedule can change things without anyone watching",children:"can act"}),(0,C.jsxs)("span",{style:{marginLeft:"auto",display:"flex",gap:4},children:[(0,C.jsx)("button",{type:"button",title:e.runningId===l.id?"Running now":"Run now","aria-label":"Run now",disabled:e.runningId===l.id,style:pe("ghost",e.runningId===l.id),onClick:()=>e.onRunNow(l.id),children:(0,C.jsx)(Qv,{})}),(0,C.jsx)("button",{type:"button",title:l.enabled?"Pause \u2014 keeps its history":"Resume","aria-label":l.enabled?"Pause":"Resume",style:pe("ghost"),onClick:()=>e.onToggle(l.id,!l.enabled),children:l.enabled?(0,C.jsx)(U_,{}):(0,C.jsx)(Qv,{})}),(0,C.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:D(),onClick:()=>n(l),children:"Edit"}),(0,C.jsx)("button",{type:"button",title:"Duplicate this schedule. The copy is paused so you can edit it first.","aria-label":"Duplicate",style:pe("ghost"),onClick:()=>e.onDuplicate(l.id),children:(0,C.jsx)(tr,{})}),(0,C.jsx)("button",{type:"button",title:"Delete this schedule","aria-label":"Delete this schedule",style:pe("ghost"),onClick:()=>e.onDelete(l.id),children:(0,C.jsx)(zt,{})})]})]}),(0,C.jsxs)("div",{style:{color:s.muted,fontSize:11,marginTop:2},children:[Pv(l.trigger)," \xB7 ",Vv(l,r)]}),(l.runs??[]).length>0&&(0,C.jsxs)("button",{type:"button",className:"lc-btn","aria-expanded":o===l.id,onClick:()=>a(o===l.id?void 0:l.id),style:{display:"flex",alignItems:"center",gap:5,marginTop:4,padding:"2px 4px 2px 0",background:"transparent",border:"none",borderRadius:6,color:s.muted,cursor:"pointer",fontFamily:Z,fontSize:11},children:[(0,C.jsx)("span",{style:{display:"flex",transform:o===l.id?"rotate(90deg)":"none",transition:"transform 190ms cubic-bezier(0.22, 0.85, 0.28, 1)"},children:(0,C.jsx)(Pr,{})}),(l.runs??[]).length," run",(l.runs??[]).length===1?"":"s"]}),o===l.id&&(l.runs??[]).length>0&&(0,C.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginLeft:18},title:"Forget this schedule's runs. The transcripts themselves stay in History.",onClick:()=>e.onClearRuns(l.id),children:"Clear these runs"}),o===l.id&&(l.runs??[]).map((c,u)=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6,padding:"3px 0 3px 18px",fontSize:11,color:s.muted},children:[(0,C.jsx)("span",{title:c.result,style:{color:c.result==="error"?s.error:s.accent,flexShrink:0},children:c.result==="error"?"\u2717":"\u2713"}),(0,C.jsx)("span",{style:{flexShrink:0},children:new Date(c.at).toLocaleString()}),c.durationMs!==void 0&&(0,C.jsxs)("span",{style:{flexShrink:0},children:[(c.durationMs/1e3).toFixed(1),"s"]}),c.summary!==void 0&&(0,C.jsx)("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},title:c.summary,children:c.summary}),c.taskId!==void 0&&(0,C.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",marginLeft:"auto"},title:"Open this run's full transcript in an editor tab",onClick:()=>e.onOpenRun(c.taskId,`${l.name} \u2014 ${new Date(c.at).toLocaleString()}`),children:"Log"}),(0,C.jsx)("button",{type:"button",style:{...D(),fontSize:10,padding:"1px 6px",...c.taskId===void 0?{marginLeft:"auto"}:{}},title:"Remove this run from the log","aria-label":"Delete this run",onClick:()=>e.onDeleteRun(l.id,c.at),children:"\u2715"})]},`${String(c.at)}-${String(u)}`))]},l.id))}),(0,C.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:14},children:[(0,C.jsx)("button",{type:"button",style:fe(!1),onClick:()=>n(nj()),children:"New schedule"}),e.schedules.some(l=>(l.runs??[]).length>0)&&(0,C.jsx)("button",{type:"button",style:D(),title:"Forget every schedule's run history. The transcripts stay in History and are deleted from there.",onClick:()=>e.onClearRuns(),children:"Clear all run logs"})]})]})}function ij(e){let[t,n]=(0,Nt.useState)(e.schedule),[r,i]=(0,Nt.useState)(""),[o,a]=(0,Nt.useState)(""),[l,c]=(0,Nt.useState)(!1),[u,d]=(0,Nt.useState)(void 0),[m,p]=(0,Nt.useState)(0),f=(0,Nt.useRef)(null),x=u!==void 0&&e.mentionCandidates.length>0,_=(0,Nt.useRef)(e.onQueryMentions);_.current=e.onQueryMentions,(0,Nt.useEffect)(()=>{if(u===void 0)return;let R=setTimeout(()=>_.current(u),120);return()=>clearTimeout(R)},[u]);let O=(R,te)=>{d(Uu(R,te)),p(0)},h=R=>{let te=f.current,le=te?.selectionStart??t.prompt.length,st=Ou(t.prompt,le,R);st!==void 0&&(J({prompt:st.text}),d(void 0),requestAnimationFrame(()=>{te?.focus(),te?.setSelectionRange(st.caret,st.caret)}))},g=o.trim().toLowerCase(),b=e.skills.filter(R=>g.length===0||R.name.toLowerCase().includes(g)||R.description.toLowerCase().includes(g)),v=()=>t.allowedSkills??e.skills.map(R=>R.name),I=v().length,J=R=>n(te=>({...te,...R})),L=R=>n(te=>({...te,trigger:{...te.trigger,...R}})),T=Iu(e.tools,t.allowedTools),w=t.name.trim().length>0&&t.prompt.trim().length>0,F=r.trim().toLowerCase(),$e=R=>{let te=t.allowedTools.includes(R.name);if(l&&!te)return!1;if(F.length===0||te)return!0;let le=`${R.name} ${R.name.replace(/[_-]+/g," ")} ${R.description}`.toLowerCase();return F.split(/\s+/).every(st=>le.includes(st))},Ce=new Map;for(let R of e.tools){if(R.group==="always"||!$e(R))continue;let te=Ce.get(R.group)??[];te.push(R),Ce.set(R.group,te)}let We=[...Ce.values()].flat(),sn=We.filter(R=>!t.allowedTools.includes(R.name)),zn=R=>J({allowedTools:t.allowedTools.includes(R)?t.allowedTools.filter(te=>te!==R):[...t.allowedTools,R]});return(0,C.jsxs)("div",{style:{padding:12,overflowY:"auto",fontFamily:Z,fontSize:13,color:s.foreground},children:[(0,C.jsx)("h3",{style:{margin:"0 0 12px"},children:e.schedule.id===""?"New schedule":"Edit schedule"}),(0,C.jsx)("label",{style:q(),htmlFor:"lc-sched-name",children:"Name"}),(0,C.jsx)("input",{id:"lc-sched-name",type:"text",value:t.name,placeholder:"Morning build check",onChange:R=>J({name:R.target.value}),style:{...Y(),marginBottom:12}}),(0,C.jsx)("label",{style:q(),htmlFor:"lc-sched-prompt",children:"Prompt"}),(0,C.jsx)("textarea",{id:"lc-sched-prompt",ref:f,value:t.prompt,rows:4,placeholder:"Read @src/app.ts and tell me if anything looks wrong.",onChange:R=>{J({prompt:R.target.value}),O(R.target.value,R.target.selectionStart)},onKeyDown:R=>{if(x)if(R.key==="ArrowDown")R.preventDefault(),p(te=>(te+1)%e.mentionCandidates.length);else if(R.key==="ArrowUp")R.preventDefault(),p(te=>(te-1+e.mentionCandidates.length)%e.mentionCandidates.length);else if(R.key==="Enter"||R.key==="Tab"){R.preventDefault();let te=e.mentionCandidates[m];te!==void 0&&h(te)}else R.key==="Escape"&&d(void 0)},style:{...Y(),marginBottom:4,resize:"vertical",fontFamily:Z}}),x&&(0,C.jsx)("div",{role:"listbox","aria-label":"Workspace files",className:"lc-scroll",style:{maxHeight:150,overflowY:"auto",border:`1px solid ${s.accent}`,borderRadius:8,marginBottom:6},children:e.mentionCandidates.map((R,te)=>(0,C.jsx)("button",{type:"button",role:"option","aria-selected":te===m,onMouseDown:le=>{le.preventDefault(),h(R)},style:{display:"block",width:"100%",textAlign:"left",padding:"4px 10px",background:te===m?s.accent:"transparent",border:"none",color:te===m?s.accentContrast:s.foreground,cursor:"pointer",fontFamily:na,fontSize:11},children:R},R))}),(0,C.jsxs)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:12},children:["Sent exactly as if you had typed it, including ",(0,C.jsx)("code",{style:{fontFamily:na},children:"@"})," file mentions \u2014 their contents are attached when the schedule runs, not now. Nobody can answer a follow-up question, so ask for something it can finish alone."]}),(0,C.jsx)("span",{style:q(),children:"When"}),(0,C.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:12,flexWrap:"wrap"},children:[(0,C.jsx)(Je,{compact:!0,value:t.trigger.kind,ariaLabel:"How often",onChange:R=>J({trigger:R==="interval"?{kind:"interval",everyMinutes:60}:R==="daily"?{kind:"daily",hour:9,minute:0}:{kind:"weekly",days:[1,2,3,4,5],hour:9,minute:0}}),options:[{value:"interval",label:"Every\u2026"},{value:"daily",label:"Daily at\u2026"},{value:"weekly",label:"On days\u2026"}]}),t.trigger.kind==="interval"?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("input",{type:"number",min:1,value:t.trigger.everyMinutes,"aria-label":"Minutes between runs",onChange:R=>L({everyMinutes:Math.max(1,Number(R.target.value)||1)}),style:{...Y(),width:80}}),(0,C.jsx)("span",{style:{color:s.muted,fontSize:11},children:"minutes"})]}):(0,C.jsx)("input",{type:"time","aria-label":"Time of day",value:`${String(t.trigger.hour).padStart(2,"0")}:${String(t.trigger.minute).padStart(2,"0")}`,onChange:R=>{let[te,le]=R.target.value.split(":").map(Number);L({hour:te??9,minute:le??0})},style:{...Y(),width:110}})]}),t.trigger.kind==="weekly"&&(0,C.jsx)("div",{style:{display:"flex",gap:4,marginBottom:12,flexWrap:"wrap"},children:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"].map((R,te)=>{let le=t.trigger.kind==="weekly"&&t.trigger.days.includes(te);return(0,C.jsx)("button",{type:"button","aria-pressed":le,onClick:()=>{if(t.trigger.kind!=="weekly")return;let st=le?t.trigger.days.filter(Vi=>Vi!==te):[...t.trigger.days,te];st.length>0&&L({days:st})},style:{...D(),fontSize:11,padding:"3px 8px",background:le?s.accent:s.secondaryButtonBackground,color:le?s.accentContrast:s.secondaryButtonForeground},children:R},R)})}),(0,C.jsx)("span",{style:q(),children:"What it may use"}),(0,C.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:"Nothing is ticked to begin with. A tool you do not tick is not offered to the run at all, so a server added later never widens an existing schedule."}),(0,C.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,C.jsx)("input",{type:"text",value:r,spellCheck:!1,"aria-label":"Filter tools",placeholder:"Filter by name or description\u2026",onChange:R=>i(R.target.value),style:{...Y(),flex:1,minWidth:140}}),(0,C.jsxs)("button",{type:"button","aria-pressed":l,title:"Show only what this schedule may use",onClick:()=>c(!l),style:{...D(),fontSize:11,background:l?s.accent:s.secondaryButtonBackground,color:l?s.accentContrast:s.secondaryButtonForeground},children:[t.allowedTools.length," selected"]})]}),F.length>0&&sn.length>0&&(0,C.jsxs)("button",{type:"button",style:{...D(),fontSize:11,marginBottom:8},onClick:()=>J({allowedTools:[...t.allowedTools,...sn.map(R=>R.name)]}),children:["Select the ",sn.length," shown"]}),(0,C.jsxs)("div",{style:{marginBottom:10},children:[(0,C.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:4},children:"Always available"}),e.tools.filter(R=>R.group==="always").map(R=>(0,C.jsxs)("label",{title:"Always available to every schedule \u2014 it performs no work on the workspace.",style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,opacity:.75},children:[(0,C.jsx)("input",{type:"checkbox",checked:!0,disabled:!0,style:{marginTop:3}}),(0,C.jsxs)("span",{children:[(0,C.jsx)("span",{style:{display:"block",fontFamily:na,fontSize:11},children:R.name}),(0,C.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10},children:R.description})]})]},R.name))]}),We.length===0&&(0,C.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 10px"},children:l?"Nothing selected yet.":`No tool matches "${r.trim()}".`}),[...Ce.entries()].map(([R,te])=>(0,C.jsxs)("div",{style:{marginBottom:10},children:[(0,C.jsx)("span",{style:{display:"block",color:s.muted,fontSize:11,marginBottom:4},children:tj[R]??R}),te.map(le=>(0,C.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,cursor:"pointer"},children:[(0,C.jsx)("input",{type:"checkbox",checked:t.allowedTools.includes(le.name),onChange:()=>zn(le.name),style:{marginTop:3}}),(0,C.jsxs)("span",{children:[(0,C.jsx)("span",{style:{display:"block",fontFamily:na,fontSize:11},children:le.name}),(0,C.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10},children:le.description})]})]},le.name))]},R)),(0,C.jsxs)("div",{style:{marginBottom:12},children:[(0,C.jsx)("span",{style:q(),children:"What it should know"}),e.skills.length===0?(0,C.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["No skills recorded yet. Once there are some \u2014 markdown notes in"," ",(0,C.jsx)("code",{style:{fontFamily:na},children:".lightcode/skills/"}),", written from the chat or by hand \u2014 you can pick which of them this run is told about."]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:t.allowedSkills===void 0?(0,C.jsxs)(C.Fragment,{children:["All ",e.skills.length," ",e.skills.length===1?"skill is":"skills are"," ","included. Tick a few to narrow it \u2014 useful when a run only touches one area and the rest is prompt it pays for every time."]}):(0,C.jsxs)(C.Fragment,{children:["Only the ticked skills are put in this run\u2019s prompt. Unlike the chat, a schedule does not search for them \u2014 it may not have ",(0,C.jsx)("code",{children:"search_docs"}),", and nobody is watching if it comes up empty."]})}),(0,C.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",marginBottom:8,flexWrap:"wrap"},children:[(0,C.jsx)("input",{type:"search",value:o,spellCheck:!1,"aria-label":"Filter skills",placeholder:"Filter by name or description\u2026",onChange:R=>a(R.target.value),style:{...Y(),flex:1,minWidth:140}}),(0,C.jsxs)("span",{style:{color:s.muted,fontSize:11},children:[I," of ",e.skills.length," selected"]})]}),(0,C.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:8,flexWrap:"wrap"},children:[t.allowedSkills!==void 0&&(0,C.jsx)("button",{type:"button",style:{...D(),fontSize:11},onClick:()=>{let R={...t};delete R.allowedSkills,n(R)},children:"Include all of them again"}),g.length>0&&b.length>0&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("button",{type:"button",style:{...D(),fontSize:11},onClick:()=>J({allowedSkills:[...new Set([...v(),...b.map(R=>R.name)])]}),children:["Tick the ",b.length," shown"]}),(0,C.jsxs)("button",{type:"button",style:{...D(),fontSize:11},onClick:()=>{let R=new Set(b.map(te=>te.name));J({allowedSkills:v().filter(te=>!R.has(te))})},children:["Untick the ",b.length," shown"]})]})]}),b.length===0&&(0,C.jsxs)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:["No skill matches \u201C",o.trim(),"\u201D."]}),b.map(R=>{let te=t.allowedSkills===void 0||t.allowedSkills.includes(R.name);return(0,C.jsxs)("label",{style:{display:"flex",gap:6,alignItems:"flex-start",marginBottom:4,cursor:"pointer"},children:[(0,C.jsx)("input",{type:"checkbox","data-skill":R.name,checked:te,onChange:()=>{let le=v();J({allowedSkills:te?le.filter(st=>st!==R.name):[...le,R.name]})},style:{marginTop:3}}),(0,C.jsxs)("span",{children:[(0,C.jsx)("span",{style:{display:"block",fontFamily:na,fontSize:11},children:R.name}),(0,C.jsx)("span",{style:{display:"block",color:s.muted,fontSize:10},children:R.description})]})]},R.name)})]})]}),T.length>0&&(0,C.jsxs)("p",{style:{color:s.error,fontSize:11,border:`1px solid ${s.error}`,borderRadius:8,padding:8,margin:"4px 0 12px"},children:["This schedule can act on its own \u2014 you have allowed ",T.join(" and "),". If anything it reads contains instructions, it may follow them with nobody watching. Grant this only for content you trust."]}),(0,C.jsxs)("div",{style:{display:"flex",gap:8,marginTop:10},children:[(0,C.jsx)("button",{type:"button",style:fe(!w),disabled:!w,onClick:()=>e.onSave({...t,name:t.name.trim(),prompt:t.prompt.trim()}),children:"Save"}),(0,C.jsx)("button",{type:"button",style:D(),onClick:e.onCancel,children:"Cancel"})]})]})}var De=P(ie(),1),O$=P(he(),1);var it=P(ie(),1);var Ht=P(he(),1);var ee=P(ie(),1),I$=P(he(),1);function en(e){return(0,ee.jsxs)("div",{style:{marginBottom:10},children:[(0,ee.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ee.jsx)("input",{id:e.id,type:"text",value:e.value??"",placeholder:e.placeholder,onChange:t=>e.onChange(t.target.value),style:Y()}),e.hint!==void 0&&(0,ee.jsx)("span",{style:{color:s.muted,fontSize:11,display:"block",marginTop:2},children:e.hint})]})}function D$(e){return(0,ee.jsxs)("div",{style:{marginBottom:10},children:[(0,ee.jsx)("label",{htmlFor:e.id,style:q(),children:e.label}),(0,ee.jsx)("input",{id:e.id,type:"number",value:e.value??"",placeholder:e.placeholder,onChange:t=>{let n=Number.parseInt(t.target.value,10);e.onChange(Number.isNaN(n)?void 0:n)},style:Y()})]})}function rj(e){let[t,n]=(0,I$.useState)(!1);return(0,ee.jsxs)("div",{style:{marginBottom:12},children:[(0,ee.jsxs)("button",{type:"button",onClick:()=>n(!t),style:{background:"transparent",border:"none",color:s.foreground,fontFamily:Z,fontSize:12,padding:0,cursor:"pointer"},children:[t?"\u25BE":"\u25B8"," ",e.title]}),t&&(0,ee.jsx)("div",{style:{marginTop:8,paddingLeft:12},children:e.children})]})}function A$(e){let t=r=>e.onApigeeChange({...e.apigee,...r}),n=r=>e.onCertsChange({...e.certs,...r});return(0,ee.jsxs)("div",{style:{paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,ee.jsxs)("div",{style:{marginBottom:12},children:[(0,ee.jsx)("label",{htmlFor:"lc-auth-type",style:q(),children:"Authentication"}),(0,ee.jsx)(Je,{id:"lc-auth-type",value:e.authType,onChange:r=>e.onAuthTypeChange(r),style:{width:"100%"},options:[{value:"apiKey",label:"API key"},{value:"apigeeMtls",label:"Mutual TLS + OAuth (Apigee)"},{value:"none",label:"None"}]})]}),e.authType==="apigeeMtls"&&(0,ee.jsxs)(ee.Fragment,{children:[(0,ee.jsxs)("div",{style:{marginBottom:12},children:[(0,ee.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Client certificate"}),(0,ee.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Must live outside the workspace \u2014 a repository must not be able to read or replace your key material. Filenames resolve against the directory; absolute paths override it."})]}),(0,ee.jsx)(en,{id:"lc-cert-dir",label:"Certificate directory",value:e.certs.certDir,placeholder:"C:\\\\Users\\\\you\\\\certs",hint:"Leave blank to use the global certDir from config.",onChange:r=>n({certDir:r})}),(0,ee.jsx)(en,{id:"lc-cert-file",label:"Certificate file",value:e.certs.certFile,placeholder:"client.crt",onChange:r=>n({certFile:r})}),(0,ee.jsx)(en,{id:"lc-key-file",label:"Private key file",value:e.certs.keyFile,placeholder:"client.key",onChange:r=>n({keyFile:r})}),(0,ee.jsx)(en,{id:"lc-pfx-file",label:"PFX bundle (instead of certificate + key)",value:e.certs.pfxFile,placeholder:"client.pfx",hint:"Corporate Windows PKI usually issues a .pfx.",onChange:r=>n({pfxFile:r})}),(0,ee.jsx)(en,{id:"lc-ca-file",label:"Extra CA bundle",value:e.certs.caFile,placeholder:"corp-root.pem",hint:"Needed when your network intercepts TLS. NODE_EXTRA_CA_CERTS also works.",onChange:r=>n({caFile:r})}),(0,ee.jsx)(ai,{id:"lc-cert-passphrase",label:"Key / PFX passphrase",hasValue:e.hasCertPassphrase,value:e.certPassphrase,onChange:e.onCertPassphraseChange,placeholder:"Leave blank if the key is not encrypted"}),(0,ee.jsx)("div",{style:{marginBottom:12},children:(0,ee.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Token endpoint"})}),(0,ee.jsx)(en,{id:"lc-token-url",label:"Token URL",value:e.apigee.tokenUrl,placeholder:"https://gateway.example.com/oauth/token",hint:"Defaults to the base URL's origin + /oauth/token.",onChange:r=>t({tokenUrl:r})}),(0,ee.jsx)(en,{id:"lc-client-id",label:"Client ID",value:e.apigee.clientId,onChange:r=>t({clientId:r})}),(0,ee.jsx)(ai,{id:"lc-client-secret",label:"Client secret",hasValue:e.hasClientSecret,value:e.clientSecret,onChange:e.onClientSecretChange,placeholder:"Stored in the OS keychain"}),(0,ee.jsx)(en,{id:"lc-scope",label:"Scope",value:e.apigee.scope,placeholder:"(optional)",onChange:r=>t({scope:r})}),(0,ee.jsxs)(rj,{title:"Token response and header mapping",children:[(0,ee.jsx)(en,{id:"lc-grant-type",label:"Grant type",value:e.apigee.grantType,placeholder:"client_credentials",onChange:r=>t({grantType:r})}),(0,ee.jsx)(en,{id:"lc-token-path",label:"Token path in response",value:e.apigee.tokenPath,placeholder:"access_token",hint:"Dotted path, e.g. data.jwt if your gateway nests it.",onChange:r=>t({tokenPath:r})}),(0,ee.jsx)(en,{id:"lc-expires-path",label:"Expiry path in response",value:e.apigee.expiresInPath,placeholder:"expires_in",onChange:r=>t({expiresInPath:r})}),(0,ee.jsx)(en,{id:"lc-token-header",label:"Header name",value:e.apigee.tokenHeaderName,placeholder:"Authorization",onChange:r=>t({tokenHeaderName:r})}),(0,ee.jsx)(en,{id:"lc-token-prefix",label:"Header prefix",value:e.apigee.tokenHeaderPrefix,placeholder:"Bearer ",onChange:r=>t({tokenHeaderPrefix:r})}),(0,ee.jsx)(D$,{id:"lc-fallback-expiry",label:"Fallback expiry (seconds)",value:e.apigee.fallbackExpirySeconds,placeholder:"3600",onChange:r=>t({...r!==void 0?{fallbackExpirySeconds:r}:{}})}),(0,ee.jsx)(D$,{id:"lc-refresh-skew",label:"Refresh skew (seconds)",value:e.apigee.refreshSkewSeconds,placeholder:"60",onChange:r=>t({...r!==void 0?{refreshSkewSeconds:r}:{}})})]})]}),(0,ee.jsxs)("div",{style:{marginBottom:12,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,ee.jsx)("strong",{style:{fontSize:12,color:s.foreground},children:"Connection security"}),(0,ee.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"4px 0 8px"},children:"Needed when your network intercepts TLS, which is common on a corporate gateway. This is separate from the client certificate above: it decides whether you trust the server, not how the server identifies you."})]}),(0,ee.jsx)(en,{id:"lc-connection-ca",label:"Additional CA certificate",value:e.connectionTls.caFile,placeholder:"C:\\\\certs\\\\corp-root.pem",hint:"Only needed if this gateway uses a different root from the one in Settings \u2192 Network. Added to that one and to the built-in roots, never replacing either.",onChange:r=>e.onConnectionTlsChange({...e.connectionTls,caFile:r})}),(0,ee.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:6,marginBottom:6,fontSize:12},children:[(0,ee.jsx)("input",{type:"checkbox",style:{marginTop:2},checked:e.connectionTls.rejectUnauthorized===!1,onChange:r=>e.onConnectionTlsChange({...e.connectionTls,...r.target.checked?{rejectUnauthorized:!1}:{rejectUnauthorized:void 0}})}),(0,ee.jsx)("span",{style:{color:s.foreground},children:"Skip certificate verification for this profile"})]}),e.connectionTls.rejectUnauthorized===!1&&(0,ee.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 12px",paddingLeft:22},children:"Anyone able to intercept this connection can now read and modify it, including your API key, and nothing will detect it. Supplying the CA file above is the safe fix and solves the same problem."})]})}var dt=P(ie(),1);function j$(e){let t=e.value.trim(),n=t.length>0?Lv(t,e.capabilities):void 0,r=o=>e.onCapabilitiesChange({...e.capabilities,...o}),i=()=>{let o={...e.capabilities};delete o.contextWindow,e.onCapabilitiesChange(o)};return(0,dt.jsxs)("div",{style:{marginBottom:12},children:[(0,dt.jsx)("label",{htmlFor:"lc-model",style:q(),children:"Model"}),(0,dt.jsxs)("div",{style:{display:"flex",gap:6,marginBottom:6},children:[(0,dt.jsx)("input",{id:"lc-model",type:"text",value:e.value,placeholder:"gpt-4o-mini",onChange:o=>e.onChange(o.target.value),style:Y()}),(0,dt.jsx)("button",{type:"button",style:D(),onClick:e.onRefresh,disabled:e.loading,children:e.loading?"Loading\u2026":"Refresh"})]}),e.models.length>0&&(0,dt.jsx)(Je,{ariaLabel:"Choose from the gateway's catalogue",value:e.models.includes(e.value)?e.value:"",onChange:o=>{o.length>0&&e.onChange(o)},style:{width:"100%"},options:[{value:"",label:`Choose from ${e.models.length} available model(s)\u2026`},...e.models.map(o=>({value:o,label:o}))]}),e.warning!==void 0&&e.models.length===0&&(0,dt.jsx)("span",{style:{...fn(),color:s.muted},children:e.warning}),e.error!==void 0&&(0,dt.jsx)("span",{style:fn(),children:e.error}),n!==void 0&&(0,dt.jsxs)("div",{style:{marginTop:6,padding:8,border:`1px solid ${s.border}`,borderRadius:3},children:[(0,dt.jsx)("div",{style:{color:s.muted,fontSize:11,marginBottom:6},children:n.known?"Capabilities for this model. Edit any of them if your deployment differs.":"Unrecognised model id \u2014 these are conservative guesses. Correct them here."}),(0,dt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:6},children:[(0,dt.jsx)("label",{htmlFor:"lc-context-window",style:{...q(),marginBottom:0,flex:1},children:"Context window (tokens)"}),(0,dt.jsx)("input",{id:"lc-context-window",type:"number",min:1,value:e.capabilities.contextWindow??n.contextWindow,onChange:o=>{let a=Number.parseInt(o.target.value,10);Number.isNaN(a)||a<=0?i():r({contextWindow:a})},style:{...Y(),width:130,flex:"none"}}),e.capabilities.contextWindow!==void 0&&(0,dt.jsx)("button",{type:"button",style:D(),onClick:i,title:"Use the built-in value",children:"Reset"})]}),(0,dt.jsxs)("div",{style:{display:"flex",gap:16},children:[(0,dt.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:s.foreground},children:[(0,dt.jsx)("input",{type:"checkbox",checked:n.supportsVision,onChange:o=>r({supportsVision:o.target.checked})}),"Accepts images"]}),(0,dt.jsxs)("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,color:s.foreground},children:[(0,dt.jsx)("input",{type:"checkbox",checked:n.supportsTools,onChange:o=>r({supportsTools:o.target.checked})}),"Supports tool calling"]})]})]})]})}var li=P(ie(),1);var oj={certificates:"Load certificates",token:"Acquire credential",models:"List models"};function aj(e){return e==="ok"?{glyph:"\u2713",color:"var(--vscode-testing-iconPassed, #3fb950)"}:e==="failed"?{glyph:"\u2715",color:s.error}:{glyph:"\u2013",color:s.muted}}function U$(e){return(0,li.jsxs)("div",{style:{marginBottom:16,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,li.jsx)("button",{type:"button",style:D(),onClick:e.onRun,disabled:e.running,children:e.running?"Testing\u2026":"Test Connection"}),e.result!==void 0&&(0,li.jsx)("div",{style:{marginTop:8,fontFamily:Z,fontSize:12},children:e.result.steps.map(t=>{let n=aj(t.status);return(0,li.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:4},children:[(0,li.jsx)("span",{style:{color:n.color,width:12,flexShrink:0},children:n.glyph}),(0,li.jsxs)("div",{children:[(0,li.jsx)("div",{style:{color:s.foreground},children:oj[t.step]}),(0,li.jsx)("div",{style:{color:t.status==="failed"?s.error:s.muted,fontSize:11},children:t.detail})]})]},t.step)})})]})}function Ey(e){let[t,n]=(0,Ht.useState)(e.initial.label),[r,i]=(0,Ht.useState)(e.initial.wireFormat),[o,a]=(0,Ht.useState)(e.initial.baseUrl),[l,c]=(0,Ht.useState)(e.initial.model),[u,d]=(0,Ht.useState)(""),[m,p]=(0,Ht.useState)(e.initial.authType),[f,x]=(0,Ht.useState)(e.initial.apigee??{}),[_,O]=(0,Ht.useState)(""),[h,g]=(0,Ht.useState)(e.initial.certs??{}),[b,v]=(0,Ht.useState)(""),[I,J]=(0,Ht.useState)(e.initial.modelCapabilities??{}),[L,T]=(0,Ht.useState)(e.initial.connectionTls??{}),[w,F]=(0,Ht.useState)([]),[$e,Ce]=(0,Ht.useState)(void 0),We=le=>w.find(st=>st.path===le)?.message,sn=le=>{let st=Eu.find(Vi=>Vi.id===le);st!==void 0&&(i(st.wireFormat),a(st.baseUrl),t.trim().length===0&&n(st.label))},zn=()=>({...e.initial.id!==void 0?{id:e.initial.id}:{},label:t,wireFormat:r,baseUrl:o,model:l,authType:m,apiKey:u,...m==="apigeeMtls"?{apigee:f,clientSecret:_,certs:h,certPassphrase:b}:{},...Object.keys(I).length>0?{modelCapabilities:I}:{},...L.caFile!==void 0||L.rejectUnauthorized!==void 0?{connectionTls:L}:{}}),R=()=>{let le=o.trim();if(le===$e||le.length===0)return;try{let Vi=new URL(le);if(Vi.protocol!=="https:"&&Vi.protocol!=="http:")return}catch{return}(m==="none"||u.trim().length>0||e.initial.hasApiKey||m==="apigeeMtls")&&(Ce(le),e.onRequestModels(zn()))},te=()=>{let le=Bv({label:t,wireFormat:r,baseUrl:o,model:l});F(le),!(le.length>0)&&e.onSave(zn())};return(0,it.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,it.jsx)("h3",{style:{margin:"0 0 12px",color:s.foreground},children:e.initial.id===void 0?"Add Provider":"Edit Provider"}),(0,it.jsxs)("div",{style:{marginBottom:12},children:[(0,it.jsx)("label",{htmlFor:"lc-preset",style:q(),children:"Preset"}),(0,it.jsx)(Je,{id:"lc-preset",value:"",placeholder:"Choose a preset\u2026",onChange:sn,style:{width:"100%"},options:Eu.map(le=>({value:le.id,label:le.label}))})]}),(0,it.jsxs)("div",{style:{marginBottom:12},children:[(0,it.jsx)("label",{htmlFor:"lc-label",style:q(),children:"Label"}),(0,it.jsx)("input",{id:"lc-label",type:"text",value:t,onChange:le=>n(le.target.value),style:Y()}),We("label")!==void 0&&(0,it.jsx)("span",{style:fn(),children:We("label")})]}),(0,it.jsxs)("div",{style:{marginBottom:12},children:[(0,it.jsx)("label",{htmlFor:"lc-base-url",style:q(),children:"Base URL"}),(0,it.jsx)("input",{id:"lc-base-url",type:"text",value:o,placeholder:"https://api.openai.com/v1",onChange:le=>a(le.target.value),onBlur:R,style:Y()}),We("baseUrl")!==void 0&&(0,it.jsx)("span",{style:fn(),children:We("baseUrl")})]}),(0,it.jsx)(j$,{value:l,onChange:c,models:e.models,...e.modelsWarning!==void 0?{warning:e.modelsWarning}:{},loading:e.modelsLoading,onRefresh:()=>e.onRequestModels(zn()),...We("model")!==void 0?{error:We("model")}:{},capabilities:I,onCapabilitiesChange:J}),m==="apiKey"&&(0,it.jsx)("div",{onBlur:R,children:(0,it.jsx)(ai,{id:"lc-api-key",label:"API key",hasValue:e.initial.hasApiKey,value:u,onChange:d})}),(0,it.jsx)(A$,{authType:m,onAuthTypeChange:p,apigee:f,onApigeeChange:x,clientSecret:_,onClientSecretChange:O,hasClientSecret:e.initial.hasClientSecret,certs:h,onCertsChange:g,certPassphrase:b,onCertPassphraseChange:v,hasCertPassphrase:e.initial.hasCertPassphrase,connectionTls:L,onConnectionTlsChange:T}),(0,it.jsx)(U$,{running:e.testRunning,...e.testResult!==void 0?{result:e.testResult}:{result:void 0},onRun:()=>e.onTestConnection(zn())}),(0,it.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,it.jsx)("button",{type:"button",style:fe(!1),onClick:te,children:"Save"}),(0,it.jsx)("button",{type:"button",style:D(),onClick:e.onCancel,children:"Cancel"})]})]})}function Dy(e){let[t,n]=(0,O$.useState)({mode:"closed"}),r=i=>{e.onEditingChange(),n(i)};if(t.mode!=="closed"){let i=t.mode==="edit"?{id:t.profile.id,label:t.profile.label,wireFormat:t.profile.wireFormat,baseUrl:t.profile.baseUrl,model:t.profile.model,authType:t.profile.authType,hasApiKey:t.profile.hasApiKey,hasClientSecret:t.profile.hasClientSecret,hasCertPassphrase:t.profile.hasCertPassphrase,...t.profile.apigee!==void 0?{apigee:t.profile.apigee}:{},...t.profile.certs!==void 0?{certs:t.profile.certs}:{},...t.profile.modelCapabilities!==void 0?{modelCapabilities:t.profile.modelCapabilities}:{},...t.profile.connectionTls!==void 0?{connectionTls:t.profile.connectionTls}:{}}:{label:"",wireFormat:"openai",baseUrl:"",model:"",authType:"apiKey",hasApiKey:!1,hasClientSecret:!1,hasCertPassphrase:!1};return(0,De.jsx)(Ey,{initial:i,onSave:o=>{e.onSave(o),n({mode:"closed"})},onCancel:()=>n({mode:"closed"}),onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}})}return(0,De.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,De.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,De.jsx)("h3",{style:{margin:0,color:s.foreground},children:"Providers"}),(0,De.jsx)(ir,{scope:"user"})]}),e.profiles.length===0&&(0,De.jsx)("p",{style:{color:s.muted,fontFamily:Z},children:"No providers configured yet. Add one to start chatting."}),e.profiles.map(i=>{let o=i.id===e.activeProfileId,a=e.sharedProfileIds?.includes(i.id)===!0;return(0,De.jsxs)("div",{"data-profile":i.id,style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${s.border}`,background:o?s.assistantBubble:"transparent"},children:[(0,De.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6,marginBottom:4},children:[(0,De.jsx)("strong",{children:i.label}),o&&(0,De.jsx)(ir,{scope:"user"})]}),(0,De.jsxs)("div",{style:{color:s.muted,fontSize:12,marginBottom:8},children:[i.baseUrl," \u2014 ",i.model]}),a&&(0,De.jsxs)("div",{style:{color:s.muted,fontSize:10,marginBottom:6},children:[(0,De.jsx)("span",{style:{...Fe(),fontSize:9,marginRight:5},children:"provided"}),"Set up by an administrator for everyone. Duplicate it to make a copy you can edit with your own key."]}),(0,De.jsxs)("div",{style:{display:"flex",gap:4,flexWrap:"wrap"},children:[!o&&(0,De.jsx)("button",{type:"button",title:"Use this profile","aria-label":"Use this profile",style:pe("secondary"),onClick:()=>e.onSetActive(i.id),children:(0,De.jsx)(ti,{})}),!a&&(0,De.jsx)("button",{type:"button",title:"Edit","aria-label":"Edit",style:pe("secondary"),onClick:()=>r({mode:"edit",profile:i}),children:(0,De.jsx)(v_,{})}),(0,De.jsx)("button",{type:"button",title:a?"Copy this into a profile of your own":"Duplicate","aria-label":"Duplicate",style:pe("secondary"),onClick:()=>e.onDuplicate(i.id),children:(0,De.jsx)(tr,{})}),!a&&(0,De.jsx)("button",{type:"button",title:"Delete","aria-label":"Delete",style:{...pe("secondary"),color:s.error},onClick:()=>e.onDelete(i.id),children:(0,De.jsx)(zt,{})})]})]},i.id)}),(0,De.jsx)("button",{type:"button",style:fe(!1),onClick:()=>r({mode:"create"}),children:"Add Provider"}),(0,De.jsxs)("div",{style:{marginTop:20,paddingTop:12,borderTop:`1px solid ${s.border}`},children:[(0,De.jsx)("label",{style:q(),children:"Config file"}),(0,De.jsxs)("div",{style:{display:"flex",gap:6},children:[(0,De.jsx)("button",{type:"button",style:D(),onClick:e.onExport,children:"Export"}),(0,De.jsx)("button",{type:"button",style:D(),onClick:e.onImport,children:"Import"})]})]})]})}var He=P(ie(),1),Fu=P(he(),1);var ia="#22C55E",R$=[{id:"green",label:"Green",value:ia},{id:"purple",label:"Purple",value:"#A855F7"},{id:"indigo",label:"Indigo",value:"#6366F1"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"graphite",label:"Graphite",value:"#64748B"}],ra="#D97757",M$=[{id:"coral",label:"Coral",value:ra},{id:"orange",label:"Orange",value:"#F97316"},{id:"amber",label:"Amber",value:"#F59E0B"},{id:"rose",label:"Rose",value:"#F43F5E"},{id:"purple",label:"Purple",value:"#A855F7"},{id:"blue",label:"Blue",value:"#3B82F6"},{id:"teal",label:"Teal",value:"#14B8A6"},{id:"graphite",label:"Graphite",value:"#64748B"}];function Lu(e){let t=e.trim().replace(/^#/,""),n=t.length===3?t.replace(/./g,r=>r+r):t;if(/^[0-9a-fA-F]{6}$/.test(n))return{r:Number.parseInt(n.slice(0,2),16),g:Number.parseInt(n.slice(2,4),16),b:Number.parseInt(n.slice(4,6),16)}}function Pu(e){return Lu(e)!==void 0}function Iy({r:e,g:t,b:n}){let r=i=>Math.max(0,Math.min(255,Math.round(i))).toString(16).padStart(2,"0");return`#${r(e)}${r(t)}${r(n)}`}function N$(e,t){return t<=1?{r:e.r*t,g:e.g*t,b:e.b*t}:{r:e.r+(255-e.r)*(t-1),g:e.g+(255-e.g)*(t-1),b:e.b+(255-e.b)*(t-1)}}function lj({r:e,g:t,b:n}){let r=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function Vu(e){let t=Lu(e);return t===void 0?"#ffffff":lj(t)>.35?"#12111a":"#ffffff"}function Z$(e,t,n){let r=Lu(t)??Lu(n);if(r===void 0)return;let i=document.documentElement.style,o=Iy(r);i.setProperty(`--lc-${e}`,o),i.setProperty(`--lc-${e}-deep`,Iy(N$(r,.62))),i.setProperty(`--lc-${e}-bright`,Iy(N$(r,1.22))),i.setProperty(`--lc-${e}-contrast`,Vu(o)),i.setProperty(`--lc-${e}-a12`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.12)`),i.setProperty(`--lc-${e}-a20`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.20)`),i.setProperty(`--lc-${e}-a35`,`rgba(${r.r}, ${r.g}, ${r.b}, 0.35)`)}function Ay(e){Z$("accent",e,ia)}function jy(e){Z$("expert",e,ra)}function B$(e){let[t,n]=(0,Fu.useState)(e.value);(0,Fu.useEffect)(()=>n(e.value),[e.value]);let r=o=>{n(o),Pu(o)&&e.onChange(o)},i=e.value.toLowerCase();return(0,He.jsxs)("div",{style:{marginBottom:22},children:[(0,He.jsx)("span",{style:q(),children:e.label}),(0,He.jsx)("p",{style:{color:s.muted,fontSize:11,margin:"0 0 8px"},children:e.description}),(0,He.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginBottom:10},children:e.presets.map(o=>{let a=o.value.toLowerCase()===i;return(0,He.jsx)("button",{type:"button",className:"lc-swatch",title:o.label,"aria-label":o.label,"aria-pressed":a,onClick:()=>r(o.value),style:{width:26,height:26,borderRadius:"50%",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",justifyContent:"center",background:o.value,color:Vu(o.value)},children:a&&(0,He.jsx)(ti,{size:13})},o.id)})}),(0,He.jsx)("label",{style:{...q(),marginBottom:4},htmlFor:e.inputId,children:"Or a custom hex colour"}),(0,He.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,He.jsx)("input",{id:e.inputId,type:"text",value:t,spellCheck:!1,placeholder:e.fallback,onChange:o=>r(o.target.value),style:{...Y(),width:130,fontFamily:"var(--vscode-editor-font-family, monospace)"}}),(0,He.jsx)("span",{"aria-hidden":"true",style:{width:26,height:26,borderRadius:8,flexShrink:0,background:Pu(t)?t:"transparent",border:`1px solid ${s.border}`}}),!Pu(t)&&(0,He.jsxs)("span",{style:{color:s.error,fontSize:11,fontFamily:Z},children:["Needs a hex colour, e.g. ",e.fallback]})]})]})}function L$(e){let t=e.accentColor.toLowerCase()===e.expertColor.toLowerCase();return(0,He.jsxs)("section",{children:[(0,He.jsx)(B$,{label:"Accent colour",description:"Buttons, your messages, selections and focus rings.",value:e.accentColor,presets:R$,fallback:ia,inputId:"lc-accent-hex",onChange:e.onChangeAccent}),(0,He.jsx)(B$,{label:"Expert colour",description:"Marks answers that came from Claude rather than from your own model. Kept separate from the accent so the two are told apart at a glance.",value:e.expertColor,presets:M$,fallback:ra,inputId:"lc-expert-hex",onChange:e.onChangeExpert}),t&&(0,He.jsx)("p",{style:{color:s.error,fontSize:11,margin:"0 0 14px"},children:"These are the same colour, so expert answers will not stand out. Only the expert mark will tell them apart."}),(0,He.jsxs)("div",{style:{borderTop:`1px solid ${s.border}`,paddingTop:12},children:[(0,He.jsx)("span",{style:q(),children:"Preview"}),(0,He.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,marginTop:6},children:[(0,He.jsx)("div",{style:{display:"flex",justifyContent:"flex-end"},children:(0,He.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 4px 14px",background:`linear-gradient(135deg, ${e.accentColor}, ${e.accentColor})`,color:Vu(e.accentColor),fontSize:12,fontFamily:Z},children:"Your message"})}),(0,He.jsx)("div",{style:{display:"flex"},children:(0,He.jsx)("span",{style:{padding:"7px 12px",borderRadius:"14px 14px 14px 4px",background:s.assistantBubble,color:s.foreground,fontSize:12,fontFamily:Z},children:"The assistant's reply"})}),(0,He.jsxs)("div",{style:{display:"inline-flex",alignItems:"center",gap:6,alignSelf:"flex-start",padding:"6px 10px",borderRadius:10,border:`1px solid ${e.expertColor}`,background:s.expertSoft,color:e.expertColor,fontSize:12,fontFamily:Z},children:[(0,He.jsx)(Wt,{size:12}),"Answered by the expert"]})]})]})]})}var P$=[{id:"providers",label:"Providers",Icon:w_},{id:"approvals",label:"Approvals",Icon:Kv},{id:"mcp",label:"MCP",Icon:z_},{id:"search",label:"Search",Icon:T_},{id:"expert",label:"Expert",Icon:Wt},{id:"schedules",label:"Schedules",Icon:j_},{id:"python",label:"Python",Icon:E_},{id:"tools",label:"Tools",Icon:I_},{id:"skills",label:"Skills",Icon:A_},{id:"network",label:"Network",Icon:C_},{id:"reviews",label:"Review",Icon:Kv},{id:"variables",label:"Variables",Icon:__},{id:"appearance",label:"Appearance",Icon:$_}];function Uy(e){let[t,n]=(0,qu.useState)("providers"),r={variables:e.variables!==void 0,reviews:e.reviews!==void 0},i=P$.filter(l=>r[l.id]??!0),o=i.some(l=>l.id===t)?t:"providers",a=e.requestedTab;return(0,qu.useEffect)(()=>{a!==void 0&&P$.some(l=>l.id===a.tab)&&n(a.tab)},[a]),(0,at.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[(0,at.jsx)("div",{role:"tablist",className:"lc-scroll",style:{display:"flex",borderBottom:`1px solid ${s.border}`,flexShrink:0,overflowX:"auto"},children:i.map(l=>{let c=o===l.id;return(0,at.jsxs)("button",{type:"button",role:"tab","aria-selected":c,className:"lc-tab",title:l.label,"aria-label":l.label,onClick:()=>n(l.id),style:{display:"inline-flex",alignItems:"center",gap:5,padding:c?"8px 10px":"8px 8px",fontFamily:Z,fontSize:12,background:"transparent",color:c?s.accent:s.muted,border:"none",cursor:"pointer",whiteSpace:"nowrap",flexShrink:0},children:[(0,at.jsx)(l.Icon,{size:15}),c&&(0,at.jsx)("span",{children:l.label})]},l.id)})}),(0,at.jsx)("div",{className:"lc-scroll lc-panel",style:{flex:1,minHeight:0,overflowY:"auto"},children:o==="reviews"&&e.reviews!==void 0?(0,at.jsx)(x$,{...e.reviews}):o==="variables"&&e.variables!==void 0?(0,at.jsx)(k$,{...e.variables}):o==="appearance"?(0,at.jsx)("div",{style:{padding:12},children:(0,at.jsx)(L$,{accentColor:e.accentColor,onChangeAccent:e.onSetAccentColor,expertColor:e.expertColor,onChangeExpert:e.onSetExpertColor})}):o==="providers"?(0,at.jsx)(Dy,{...e.sharedProfileIds!==void 0?{sharedProfileIds:e.sharedProfileIds}:{},profiles:e.profiles,activeProfileId:e.activeProfileId,onSave:e.onSave,onDuplicate:e.onDuplicate,onDelete:e.onDelete,onSetActive:e.onSetActive,onExport:e.onExport,onImport:e.onImport,onRequestModels:e.onRequestModels,onTestConnection:e.onTestConnection,onEditingChange:e.onEditingChange,models:e.models,...e.modelsWarning!==void 0?{modelsWarning:e.modelsWarning}:{},modelsLoading:e.modelsLoading,testRunning:e.testRunning,...e.testResult!==void 0?{testResult:e.testResult}:{}}):o==="approvals"?(0,at.jsx)(by,{approvals:e.approvals,onSetAutoApprove:e.onSetAutoApprove,onRevokeTool:e.onRevokeTool,onRevokeCommand:e.onRevokeCommand,maxIterations:e.maxIterations,onSetMaxIterations:e.onSetMaxIterations,readRoots:e.readRoots,onSetReadRoots:e.onSetReadRoots}):o==="search"?(0,at.jsx)(g$,{...e.search}):o==="schedules"?(0,at.jsx)(E$,{...e.schedules}):o==="skills"?(0,at.jsx)(C$,{...e.skills}):o==="tools"?(0,at.jsx)(b$,{...e.tools}):o==="python"?(0,at.jsx)(y$,{...e.python}):o==="network"?(0,at.jsx)(v$,{...e.network,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):o==="expert"?(0,at.jsx)(u$,{expert:e.expert,onSave:e.onSaveExpert,onRecheck:e.onRecheckExpert,onAssess:e.onAssessJunior,onClearAssessment:e.onClearAssessment,onBrowse:e.onBrowse,pickedPath:e.pickedPath}):(0,at.jsx)(Sy,{servers:e.mcpServers,json:e.mcpJson,warnings:e.mcpWarnings,saveError:e.mcpSaveError,configs:e.mcpConfigs,platform:e.mcpPlatform,savedTick:e.mcpSavedTick,pythonProbe:e.mcpPythonProbe,onDetectPython:e.onDetectPython,onBrowse:e.onBrowse,pickedPath:e.pickedPath,onSaveServer:e.onSaveMcpServer,onDeleteServer:e.onDeleteMcpServer,onDuplicateServer:e.onDuplicateMcpServer,onSave:e.onSaveMcp,onRestart:e.onRestartMcp,onSetServerEnabled:e.onSetMcpServerEnabled,onSetToolPermission:e.onSetMcpToolPermission,onConnect:e.onConnectMcp})},o)]})}var Ct=P(ie(),1),V$=P(he(),1);function cj(e,t=Date.now()){let n=Math.max(0,Math.round((t-e)/1e3));if(n<60)return"just now";let r=Math.round(n/60);if(r<60)return`${r}m ago`;let i=Math.round(r/60);if(i<24)return`${i}h ago`;let o=Math.round(i/24);return o<=7?`${o}d ago`:new Date(e).toLocaleDateString()}function F$(e){let[t,n]=(0,V$.useState)(void 0);return(0,Ct.jsxs)("div",{style:{padding:12,overflowY:"auto"},children:[(0,Ct.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,Ct.jsx)("h3",{style:{margin:0,color:s.foreground},children:"History"}),(0,Ct.jsx)("button",{type:"button",style:{...fe(!1),marginLeft:"auto"},onClick:e.onNew,children:"New task"})]}),e.tasks.length===0&&(0,Ct.jsx)("p",{style:{color:s.muted,fontFamily:Z},children:"No past tasks in this workspace yet. Conversations are saved automatically as you go."}),e.tasks.map(r=>{let i=r.id===e.activeTaskId,o=r.id===t;return(0,Ct.jsxs)("div",{style:{padding:10,marginBottom:8,borderRadius:4,border:`1px solid ${i?s.accent:s.border}`,background:i?s.assistantBubble:"transparent"},children:[(0,Ct.jsx)("div",{style:{color:s.foreground,marginBottom:4,wordBreak:"break-word"},children:r.title}),(0,Ct.jsxs)("div",{style:{color:s.muted,fontSize:11,marginBottom:8},children:[cj(r.updatedAt)," \xB7 ",r.messageCount," message",r.messageCount===1?"":"s",i?" \xB7 current":""]}),o?(0,Ct.jsxs)("div",{style:{display:"flex",gap:6,alignItems:"center",flexWrap:"wrap"},children:[(0,Ct.jsx)("span",{style:{color:s.muted,fontSize:11},children:"Delete this task and its saved output?"}),(0,Ct.jsx)("button",{type:"button",style:{...D(),color:s.error},onClick:()=>{n(void 0),e.onDelete(r.id)},children:"Delete"}),(0,Ct.jsx)("button",{type:"button",style:D(),onClick:()=>n(void 0),children:"Cancel"})]}):(0,Ct.jsxs)("div",{style:{display:"flex",gap:6},children:[!i&&(0,Ct.jsx)("button",{type:"button",style:D(),onClick:()=>e.onOpen(r.id),children:"Open"}),(0,Ct.jsx)("button",{type:"button",style:D(),onClick:()=>n(r.id),children:"Delete"})]})]},r.id)})]})}function Ml(e){let t=e.map(r=>r.kind==="reasoning"&&r.pending===!0?{kind:"reasoning",content:r.content}:r),n=t[t.length-1];return n===void 0||n.kind!=="text"||!n.pending?t:[...t.slice(0,-1),{kind:"text",role:n.role,content:n.content,...n.expertInformed===!0?{expertInformed:!0}:{}}]}function Oy(e){let[t,n]=(0,V.useState)("chat"),[r,i]=(0,V.useState)(),[o,a]=(0,V.useState)({native:!0}),[l,c]=(0,V.useState)(),[u,d]=(0,V.useState)(),[m,p]=(0,V.useState)(),[f,x]=(0,V.useState)(),[_,O]=(0,V.useState)([]),[h,g]=(0,V.useState)(!1),[b,v]=(0,V.useState)(void 0),[I,J]=(0,V.useState)([]),[L,T]=(0,V.useState)(void 0),[w,F]=(0,V.useState)(!1),[$e,Ce]=(0,V.useState)(void 0),[We,sn]=(0,V.useState)(!1),[zn,R]=(0,V.useState)(Uf),[te,le]=(0,V.useState)({}),[st,Vi]=(0,V.useState)(25),[C2,h1]=(0,V.useState)(ia),[E2,D2]=(0,V.useState)([]),[I2,g1]=(0,V.useState)(ra),[Tn,A2]=(0,V.useState)({usd:0,consultations:0,unpriced:0,maxSpendUsd:0,maxConsultations:0,overridden:!1}),[fo,_f]=(0,V.useState)({enabled:!0,hiddenTools:0,skills:!0,hiddenSkills:0}),[j2,$f]=(0,V.useState)(!1),[U2,O2]=(0,V.useState)([]),[N2,wf]=(0,V.useState)(void 0),[R2,v1]=(0,V.useState)(!1),[y1,zf]=(0,V.useState)(void 0),[M2,Z2]=(0,V.useState)([]),[B2,L2]=(0,V.useState)(`{
118
136
  "mcpServers": {}
119
- }`),[Ve,ur]=(0,F.useState)({}),[yn,Fr]=(0,F.useState)(void 0),[wi,Hl]=(0,F.useState)({}),[vd,Ne]=(0,F.useState)("posix"),[Cn,Ti]=(0,F.useState)(0),[B4,Bb]=(0,F.useState)(void 0),[L4,P4]=(0,F.useState)(void 0),[V4,Lb]=(0,F.useState)([]),[Pb,hd]=(0,F.useState)(void 0),[q4,yd]=(0,F.useState)(!1),[H4,bd]=(0,F.useState)(!1),[Vb,xd]=(0,F.useState)(void 0),[G4,J4]=(0,F.useState)([]),[Y4,qb]=(0,F.useState)(void 0),[F4,X4]=(0,F.useState)(void 0),[K4,Q4]=(0,F.useState)(!1),[W4,ew]=(0,F.useState)(!1),[tw,nw]=(0,F.useState)(void 0),[Hb,rw]=(0,F.useState)(void 0),[iw,ow]=(0,F.useState)([]),[aw,lw]=(0,F.useState)([]),[Gb,uw]=(0,F.useState)([]),[Jb,cw]=(0,F.useState)(void 0),[sw,dw]=(0,F.useState)([]),[Yb,fw]=(0,F.useState)(void 0),[Fb,Xb]=(0,F.useState)(void 0),[mw,pw]=(0,F.useState)(0);(0,F.useEffect)(()=>{let O=e.transport.onMessage(je=>{let z=je;z.type==="textChunk"?r(Se=>{let Gt=Se[Se.length-1],Nn={kind:"text",role:"assistant",content:z.text,pending:!0,...z.expertInformed===!0?{expertInformed:!0}:{}};return Gt?.kind==="text"&&Gt.role==="assistant"&&Gt.pending?[...Se.slice(0,-1),Nn]:[...Se,Nn]}):z.type==="reasoningChunk"?r(Se=>{let Gt=Se.findIndex(oa=>oa.kind==="reasoning"&&oa.pending===!0),Nn={kind:"reasoning",content:z.text,pending:!0};return Gt===-1?[...Se,Nn]:[...Se.slice(0,Gt),Nn,...Se.slice(Gt+1)]}):z.type==="toolCall"?r(Se=>[...Va(Se),{kind:"tool",toolCall:z.toolCall,...z.expertInformed===!0?{expertInformed:!0}:{}}]):z.type==="toolResult"?r(Se=>{let Gt={kind:"tool",toolCall:z.toolCall,...z.expertInformed===!0?{expertInformed:!0}:{}},Nn=Se.findIndex(oa=>oa.kind==="tool"&&oa.toolCall.id===z.toolCall.id);return Nn===-1?[...Se,Gt]:[...Se.slice(0,Nn),Gt,...Se.slice(Nn+1)]}):z.type==="approvalRequest"?(r(Va),C({id:z.id,toolName:z.toolName,group:z.group,preview:z.preview})):z.type==="settings"?(b(z.modeId),E(z.approvals)):z.type==="mcp"?(N(z.servers),X(z.json),ur(z.warnings),Hl(z.configs),Ne(z.platform),Fr(void 0)):z.type==="mcpSaveError"?Fr(z.message):z.type==="checkpointAvailable"?g(!0):z.type==="rolledBack"?g(!1):z.type==="done"?(r(Va),C(void 0),a(!1)):z.type==="error"?(r(Va),C(void 0),u(z.message),a(!1)):z.type==="profiles"?(s(z.profiles),f(z.activeProfileId),S(!0)):z.type==="profileSaved"?n("chat"):z.type==="models"?(Lb(z.models),hd(z.warning),yd(!1)):z.type==="testConnectionResult"?(xd({ok:z.ok,steps:z.steps}),bd(!1)):z.type==="contextUsage"?X4(z.usage):z.type==="compacted"?r(Se=>[...Se,{kind:"text",role:"assistant",content:`[${z.summarisedCount} earlier messages were summarised to stay within the context window. The full transcript is still saved.]`}]):z.type==="search"?(uw(z.connections),cw(z.activeConnectionId)):z.type==="searchIndexes"?(dw(z.indexes),fw(z.warning)):z.type==="searchTestResult"?Xb({ok:z.ok,detail:z.detail}):z.type==="queued"?lw(z.messages):z.type==="queuedMessageConsumed"?r(Se=>[...Va(Se),{kind:"text",role:"user",content:z.text}]):z.type==="mentionCandidates"?ow(z.paths):z.type==="capabilities"?Q4(z.supportsVision):z.type==="pathPicked"?Bb({purpose:z.purpose,path:z.path}):z.type==="pythonEnvProbe"?P4({...z.interpreter!==void 0?{interpreter:z.interpreter}:{},...z.venvDir!==void 0?{venvDir:z.venvDir}:{},detail:z.detail}):z.type==="mcpServerSaved"?Ti(Se=>Se+1):z.type==="searchConnectionSaved"?pw(Se=>Se+1):z.type==="network"?rw(z.settings):z.type==="expert"?(nw({enabled:z.enabled,available:z.available,path:z.path,...z.version!==void 0?{version:z.version}:{},...z.reason!==void 0?{reason:z.reason}:{},...z.model!==void 0?{model:z.model}:{}}),ew(z.enabled&&z.available)):z.type==="tasks"?(J4(z.tasks),qb(z.activeTaskId)):z.type==="taskRestored"&&(r(z.entries),qb(z.taskId),u(void 0),C(void 0),a(!1),g(!1))});return e.transport.post({type:"requestProfiles"}),e.transport.post({type:"requestSettings"}),e.transport.post({type:"requestMcp"}),e.transport.post({type:"requestExpert"}),e.transport.post({type:"requestSearch"}),e.transport.post({type:"requestNetwork"}),O},[e.transport]);let Kb=()=>{let O={type:"requestProfiles"};e.transport.post(O),n("settings")},gw=(O,je)=>{if(o){e.transport.post({type:"queueMessage",text:O});return}u(void 0);let z=je.length>0?`${O}${O.length>0?`
120
- `:""}[${je.length} image(s) attached]`:O;r(Gt=>[...Gt,{kind:"text",role:"user",content:z}]),a(!0);let Se=je.length>0?{type:"sendMessage",text:O,images:je}:{type:"sendMessage",text:O};e.transport.post(Se)},vw=O=>{e.transport.post({type:"unqueueMessage",index:O})},hw=O=>{e.transport.post({type:"requestMentionCandidates",query:O})},yw=()=>{let O={type:"cancel"};e.transport.post(O)},bw=(O,je)=>{C(void 0),e.transport.post({type:"approvalResponse",id:O,decision:je})},xw=(O,je)=>{C(void 0),e.transport.post({type:"approvalResponseAlways",id:O,scope:je})},_w=O=>{b(O),e.transport.post({type:"setMode",modeId:O})},Sw=(O,je)=>{e.transport.post({type:"setAutoApprove",group:O,enabled:je})},$w=O=>{e.transport.post({type:"revokeAllowedTool",toolName:O})},kw=O=>{e.transport.post({type:"revokeAllowedCommand",command:O})},zw=()=>{e.transport.post({type:"requestTasks"}),n("history")},ww=O=>{e.transport.post({type:"openTask",id:O}),n("chat")},Qb=()=>{e.transport.post({type:"newTask"}),n("chat")},Tw=O=>{e.transport.post({type:"deleteTask",id:O})},Dw=O=>{yd(!0),hd(void 0),e.transport.post({type:"requestModels",profile:O})},Ew=O=>{bd(!0),xd(void 0),e.transport.post({type:"testConnection",profile:O})},Uw=()=>{Lb([]),hd(void 0),yd(!1),xd(void 0),bd(!1)},jw={connections:Gb,activeConnectionId:Jb,indexes:sw,...Yb!==void 0?{indexesWarning:Yb}:{},...Fb!==void 0?{testResult:Fb}:{},savedTick:mw,onSave:O=>{u(void 0),e.transport.post({type:"saveSearchConnection",connection:O})},onDelete:O=>e.transport.post({type:"deleteSearchConnection",id:O}),onSetActive:O=>e.transport.post({type:"setActiveSearchConnection",id:O}),onListIndexes:O=>e.transport.post({type:"requestSearchIndexes",connection:O}),onTest:O=>{Xb(void 0),e.transport.post({type:"testSearchConnection",connection:O})}},Ow=(O,je,z)=>{e.transport.post({type:"setExpert",enabled:O,...je.length>0?{path:je}:{},...z.length>0?{model:z}:{}})},Aw=(O,je,z)=>{u(void 0),e.transport.post({type:"saveMcpServer",name:O,...je!==void 0?{previousName:je}:{},config:z})},Cw=O=>{Bb(void 0),e.transport.post({type:"browseForPath",...O})},Nw=(O,je)=>{e.transport.post({type:"probePythonEnv",venvDir:O,script:je})},Iw=O=>{e.transport.post({type:"deleteMcpServer",name:O})},Zw=O=>{e.transport.post({type:"saveMcpServers",json:O})},Mw=O=>{e.transport.post({type:"restartMcpServer",name:O})},Rw=(O,je)=>{e.transport.post({type:"setMcpServerEnabled",name:O,enabled:je})},Bw=O=>{e.transport.post({type:"connectMcpServer",name:O})},Lw=(O,je,z)=>{e.transport.post({type:"setMcpToolPermission",server:O,tool:je,permission:z})},Pw=()=>{e.transport.post({type:"rollback"})},Vw=O=>{e.transport.post({type:"saveProfile",profile:O})},qw=O=>{e.transport.post({type:"duplicateProfile",id:O})},Hw=O=>{e.transport.post({type:"deleteProfile",id:O})},Wb=O=>{e.transport.post({type:"setActiveProfile",id:O})},Gw=()=>{e.transport.post({type:"exportConfig"})},Jw=()=>{e.transport.post({type:"importConfig"})},Yw=m&&c.length===0;return(0,ke.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",boxSizing:"border-box",background:p.background,color:p.foreground,fontFamily:q,fontSize:13},children:[(0,ke.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",borderBottom:`1px solid ${p.border}`,flexShrink:0},children:[(0,ke.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,ke.jsx)("strong",{children:"Light Code"}),t==="chat"&&(0,ke.jsx)(Fv,{modeId:h,disabled:o,onChange:_w})]}),t==="chat"?(0,ke.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2},children:[(0,ke.jsx)("button",{type:"button","aria-label":"New task",title:"New task",style:Re("ghost",o),disabled:o,onClick:Qb,children:(0,ke.jsx)(O0,{})}),(0,ke.jsx)("button",{type:"button","aria-label":"History",title:"History",style:Re("ghost"),onClick:zw,children:(0,ke.jsx)(j0,{})}),(0,ke.jsx)("button",{type:"button","aria-label":"Settings",title:"Settings",style:Re("ghost"),onClick:Kb,children:(0,ke.jsx)(A0,{})})]}):(0,ke.jsx)("button",{type:"button","aria-label":"Back",title:"Back",style:Re("ghost"),onClick:()=>n("chat"),children:(0,ke.jsx)($0,{})})]}),l!==void 0&&t!=="chat"&&(0,ke.jsxs)("div",{role:"alert",style:{margin:"8px 12px 0",padding:"8px 10px",fontSize:12,borderRadius:4,display:"flex",alignItems:"flex-start",gap:8,color:"var(--vscode-inputValidation-errorForeground, var(--vscode-foreground))",background:"var(--vscode-inputValidation-errorBackground, transparent)",border:"1px solid var(--vscode-inputValidation-errorBorder, var(--vscode-errorForeground))"},children:[(0,ke.jsx)("span",{style:{flex:1},children:l}),(0,ke.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>u(void 0),style:{background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"\u2715"})]}),(0,ke.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t==="settings"?(0,ke.jsx)(oh,{profiles:c,activeProfileId:d,onSave:Vw,onDuplicate:qw,onDelete:Hw,onSetActive:Wb,onExport:Gw,onImport:Jw,onRequestModels:Dw,onTestConnection:Ew,onEditingChange:Uw,models:V4,...Pb!==void 0?{modelsWarning:Pb}:{},modelsLoading:q4,testRunning:H4,...Vb!==void 0?{testResult:Vb}:{},approvals:j,onSetAutoApprove:Sw,onRevokeTool:$w,onRevokeCommand:kw,mcpServers:x,mcpJson:R,mcpWarnings:Ve,mcpSaveError:yn,mcpConfigs:wi,mcpPlatform:vd,mcpSavedTick:Cn,mcpPythonProbe:L4,onDetectPython:Nw,onBrowse:Cw,pickedPath:B4,onSaveMcpServer:Aw,onDeleteMcpServer:Iw,onSaveMcp:Zw,onRestartMcp:Mw,onSetMcpServerEnabled:Rw,onSetMcpToolPermission:Lw,onConnectMcp:Bw,expert:tw,onSaveExpert:Ow,search:jw,network:{...Hb!==void 0?{settings:Hb}:{settings:void 0},onSave:O=>e.transport.post({type:"saveNetwork",settings:O})}}):t==="history"?(0,ke.jsx)(n$,{tasks:G4,activeTaskId:Y4,onOpen:ww,onDelete:Tw,onNew:Qb}):Yw?(0,ke.jsxs)("div",{style:{padding:20,textAlign:"center"},children:[(0,ke.jsx)("p",{style:{color:p.muted},children:"No provider configured yet."}),(0,ke.jsx)("button",{type:"button",style:Me(!1),onClick:Kb,children:"Configure a Provider"})]}):(0,ke.jsx)(Jv,{messages:i,isStreaming:o,error:l,pendingApproval:$,canRollback:v,onSend:gw,onCancel:yw,onDecideApproval:bw,onAlwaysAllow:xw,onRollback:Pw,usage:F4,supportsVision:K4,mentionCandidates:iw,onQueryMentions:hw,profiles:c,activeProfileId:d,onSelectProfile:Wb,expertEnabled:W4,queued:aw,onUnqueue:vw,searchConnections:Gb.map(O=>({id:O.id,label:O.label})),activeSearchId:Jb,onSelectSearch:O=>e.transport.post({type:"setActiveSearchConnection",id:O})})})]})}var I4=H(C4(),1);var gd=class{constructor(t){this.onStatus=t}onStatus;listeners=new Set;token;async connect(){let t=new URLSearchParams(window.location.hash.slice(1)).get("t");if(t!==null){window.history.replaceState(null,"",window.location.pathname);let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handoff:t})});if(!n.ok)throw new Error(await n.text());this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token)}else this.token=sessionStorage.getItem("lightCodeToken")??void 0;if(this.token===void 0)throw new Error("No session. Restart light-code and open the printed URL.");this.listen()}async listen(){for(;;){try{let t=await fetch("/api/events",{headers:{Authorization:`Bearer ${this.token??""}`}});if(!t.ok||t.body===null)throw new Error(`stream failed: ${t.status}`);this.onStatus("connected");let n=t.body.getReader(),i=new TextDecoder,r="";for(;;){let{done:o,value:a}=await n.read();if(o)break;r+=i.decode(a,{stream:!0});let l=r.indexOf(`
137
+ }`),[P2,V2]=(0,V.useState)({}),[F2,b1]=(0,V.useState)(void 0),[q2,H2]=(0,V.useState)({}),[G2,Y2]=(0,V.useState)("posix"),[J2,X2]=(0,V.useState)(0),[x1,S1]=(0,V.useState)(void 0),[K2,Q2]=(0,V.useState)(void 0),[W2,k1]=(0,V.useState)([]),[_1,Tf]=(0,V.useState)(void 0),[e6,Cf]=(0,V.useState)(!1),[t6,Ef]=(0,V.useState)(!1),[$1,Df]=(0,V.useState)(void 0),[n6,i6]=(0,V.useState)([]),[r6,w1]=(0,V.useState)(void 0),[o6,a6]=(0,V.useState)(void 0),[l6,c6]=(0,V.useState)(!1),[If,s6]=(0,V.useState)(!1),[u6,z1]=(0,V.useState)(void 0),[T1,d6]=(0,V.useState)(void 0),[C1,f6]=(0,V.useState)([]),[m6,p6]=(0,V.useState)([]),[Af,h6]=(0,V.useState)([]),[Bc,g6]=(0,V.useState)(void 0),[v6,y6]=(0,V.useState)([]),[E1,b6]=(0,V.useState)(void 0),[D1,I1]=(0,V.useState)(void 0),[x6,S6]=(0,V.useState)(0),[A1,j1]=(0,V.useState)(void 0),[U1,k6]=(0,V.useState)(void 0),[_6,O1]=(0,V.useState)(void 0),[$6,N1]=(0,V.useState)(void 0),[w6,R1]=(0,V.useState)([]),[z6,M1]=(0,V.useState)(void 0),[T6,Z1]=(0,V.useState)(!1),[C6,E6]=(0,V.useState)(0),[D6,I6]=(0,V.useState)(void 0),[A6,j6]=(0,V.useState)(void 0),[U6,O6]=(0,V.useState)([]),[N6,R6]=(0,V.useState)([]),[M6,Z6]=(0,V.useState)(void 0),[B6,L6]=(0,V.useState)([]),[P6,V6]=(0,V.useState)([]),[F6,q6]=(0,V.useState)([]),[H6,G6]=(0,V.useState)({tools:[],dispatcher:!1}),[Y6,J6]=(0,V.useState)(void 0),[X6,K6]=(0,V.useState)(void 0),[Q6,W6]=(0,V.useState)([]),[eC,tC]=(0,V.useState)("");(0,V.useEffect)(()=>{let k=e.transport.onMessage(ce=>{let y=ce;y.type==="textChunk"?O(we=>{let Mt=we[we.length-1],hi={kind:"text",role:"assistant",content:y.text,pending:!0,...y.expertInformed===!0?{expertInformed:!0}:{}};return Mt?.kind==="text"&&Mt.role==="assistant"&&Mt.pending?[...we.slice(0,-1),hi]:[...we,hi]}):y.type==="reasoningChunk"?O(we=>{let Mt=we.findIndex(Ja=>Ja.kind==="reasoning"&&Ja.pending===!0),hi={kind:"reasoning",content:y.text,pending:!0};return Mt===-1?[...we,hi]:[...we.slice(0,Mt),hi,...we.slice(Mt+1)]}):y.type==="toolCall"?O(we=>[...Ml(we),{kind:"tool",toolCall:y.toolCall,...y.expertInformed===!0?{expertInformed:!0}:{}}]):y.type==="toolResult"?O(we=>{let Mt={kind:"tool",toolCall:y.toolCall,...y.expertInformed===!0?{expertInformed:!0}:{}},hi=we.findIndex(Ja=>Ja.kind==="tool"&&Ja.toolCall.id===y.toolCall.id);return hi===-1?[...we,Mt]:[...we.slice(0,hi),Mt,...we.slice(hi+1)]}):y.type==="approvalRequest"?(O(Ml),Ce({id:y.id,toolName:y.toolName,group:y.group,preview:y.preview,...y.alwaysScope===void 0?{}:{alwaysScope:y.alwaysScope}})):y.type==="openSettings"?(e.transport.post({type:"requestProfiles"}),i({tab:y.tab,nonce:Date.now()}),n("settings")):y.type==="hostRole"?x({role:y.role,shared:y.shared,displayName:y.displayName,sharedProfileIds:y.sharedProfileIds}):y.type==="reviews"?d({items:y.items,canDecide:y.canDecide}):y.type==="variables"?c({user:y.user,admin:y.admin,resolved:y.resolved,adminIds:y.adminIds,canEditAdmin:y.canEditAdmin}):y.type==="settings"?(R(y.modeId),p(y.programmingProfileId),a({native:y.nativeGuide,...y.guideMediaBase!==void 0?{mediaBase:y.guideMediaBase}:{}}),le(y.approvals),Vi(y.maxIterations),h1(y.accentColor),D2(y.readRoots),g1(y.expertColor),Ay(y.accentColor),jy(y.expertColor)):y.type==="mcp"?(Z2(y.servers),L2(y.json),V2(y.warnings),H2(y.configs),Y2(y.platform),b1(void 0)):y.type==="mcpSaveError"?b1(y.message):y.type==="checkpointAvailable"?sn(!0):y.type==="rolledBack"?sn(!1):y.type==="done"?(O(Ml),Ce(void 0),g(!1)):y.type==="error"?(O(Ml),Ce(void 0),v(y.message),g(!1)):y.type==="profiles"?(J(y.profiles),T(y.activeProfileId),F(!0)):y.type==="profileSaved"?n("chat"):y.type==="models"?(k1(y.models),Tf(y.warning),Cf(!1)):y.type==="testConnectionResult"?(Df({ok:y.ok,steps:y.steps}),Ef(!1)):y.type==="contextUsage"?a6(y.usage):y.type==="compacted"?O(we=>[...we,{kind:"text",role:"assistant",content:`[${y.summarisedCount} earlier messages were summarised to stay within the context window. The full transcript is still saved.]`}]):y.type==="search"?(h6(y.connections),g6(y.activeConnectionId)):y.type==="searchIndexes"?(y6(y.indexes),b6(y.warning)):y.type==="searchTestResult"?I1({ok:y.ok,detail:y.detail}):y.type==="queued"?p6(y.messages):y.type==="queuedMessageConsumed"?O(we=>[...Ml(we),{kind:"text",role:"user",content:y.text}]):y.type==="mentionCandidates"?f6(y.paths):y.type==="capabilities"?c6(y.supportsVision):y.type==="pathPicked"?S1({purpose:y.purpose,path:y.path}):y.type==="pythonEnvProbe"?Q2({...y.interpreter!==void 0?{interpreter:y.interpreter}:{},...y.venvDir!==void 0?{venvDir:y.venvDir}:{},detail:y.detail}):y.type==="tools"?G6({tools:y.tools,dispatcher:y.dispatcher}):y.type==="schedules"?(q6(y.skills),L6(y.schedules),V6(y.tools),K6(y.runningId),J6(y.scheduler)):y.type==="searchLog"?O2(y.entries):y.type==="searchProbe"?(v1(!1),wf({query:y.query,text:y.text,...y.error!==void 0?{error:y.error}:{}})):y.type==="dispatcher"?_f({enabled:y.enabled,hiddenTools:y.hiddenTools,skills:y.skills,hiddenSkills:y.hiddenSkills,...y.docsIndex!==void 0?{docsIndex:y.docsIndex}:{}}):y.type==="docsIndexed"?($f(!1),zf({...y.indexed!==void 0?{indexed:y.indexed}:{},...y.index!==void 0?{index:y.index}:{},...y.error!==void 0?{error:y.error}:{}})):y.type==="expertSpend"?A2({usd:y.usd,consultations:y.consultations,unpriced:y.unpriced,...y.usage!==void 0?{usage:y.usage}:{},...y.exhausted!==void 0?{exhausted:y.exhausted}:{},maxSpendUsd:y.maxSpendUsd,maxConsultations:y.maxConsultations,overridden:y.overridden,...y.estimate!==void 0?{estimate:y.estimate}:{}}):y.type==="mcpServerSaved"?X2(we=>we+1):y.type==="embedder"?k6({...y.profileId!==void 0?{profileId:y.profileId}:{},...y.model!==void 0?{model:y.model}:{},...y.dimensions!==void 0?{dimensions:y.dimensions}:{},...y.indexName!==void 0?{indexName:y.indexName}:{},...y.indexNameIsCustom!==void 0?{indexNameIsCustom:y.indexNameIsCustom}:{},...y.indexPrefix!==void 0?{indexPrefix:y.indexPrefix}:{},defaultIndexPrefix:y.defaultIndexPrefix,indexedFiles:y.indexedFiles}):y.type==="skills"?(O6(y.skills),R6(y.issues),Z6(y.skillsDir),W6(y.extraDirs)):y.type==="python"?(I6(y.status),j6(y.settings)):y.type==="embedderModels"?(R1(y.models),M1(y.warning),Z1(!1)):y.type==="embedderSaved"?E6(we=>we+1):y.type==="indexProgress"?O1(y.progress):y.type==="indexResult"?(O1(void 0),N1({...y.result!==void 0?{result:y.result}:{},...y.error!==void 0?{error:y.error}:{}})):y.type==="storeSync"?j1({running:y.running,...y.copied!==void 0?{copied:y.copied}:{},...y.error!==void 0?{error:y.error}:{},...y.fromLabel!==void 0?{fromLabel:y.fromLabel}:{}}):y.type==="searchConnectionSaved"?S6(we=>we+1):y.type==="network"?d6(y.settings):y.type==="expert"?(z1({enabled:y.enabled,available:y.available,path:y.path,...y.version!==void 0?{version:y.version}:{},...y.reason!==void 0?{reason:y.reason}:{},...y.model!==void 0?{model:y.model}:{},maxSpendUsd:y.maxSpendUsd,maxConsultations:y.maxConsultations,...y.assessment!==void 0?{assessment:y.assessment}:{},...y.assessing!==void 0?{assessing:y.assessing}:{},...y.assessmentStep!==void 0?{assessmentStep:y.assessmentStep}:{}}),s6(y.enabled&&y.available)):y.type==="tasks"?(i6(y.tasks),w1(y.activeTaskId)):y.type==="taskRestored"&&(O(y.entries),w1(y.taskId),v(void 0),Ce(void 0),g(!1),sn(!1))});return e.transport.post({type:"requestProfiles"}),e.transport.post({type:"requestSettings"}),e.transport.post({type:"requestMcp"}),e.transport.post({type:"requestExpert"}),e.transport.post({type:"requestSearch"}),e.transport.post({type:"requestNetwork"}),e.transport.post({type:"requestPython"}),e.transport.post({type:"requestSkills"}),e.transport.post({type:"requestSchedules"}),e.transport.post({type:"requestTools"}),e.transport.post({type:"requestVariables"}),e.transport.post({type:"requestReviews"}),k},[e.transport]);let B1=()=>{let k={type:"requestProfiles"};e.transport.post(k),n("settings")},nC=(k,ce)=>{if(h){e.transport.post({type:"queueMessage",text:k});return}v(void 0);let y=ce.length>0?`${k}${k.length>0?`
138
+ `:""}[${ce.length} image(s) attached]`:k;O(Mt=>[...Mt,{kind:"text",role:"user",content:y}]),g(!0);let we=ce.length>0?{type:"sendMessage",text:k,images:ce}:{type:"sendMessage",text:k};e.transport.post(we)},iC=k=>{e.transport.post({type:"unqueueMessage",index:k})},L1=k=>{e.transport.post({type:"requestMentionCandidates",query:k})},rC=()=>{let k={type:"cancel"};e.transport.post(k)},oC=(k,ce)=>{Ce(void 0),e.transport.post({type:"approvalResponse",id:k,decision:ce})},aC=(k,ce)=>{Ce(void 0),e.transport.post({type:"approvalResponseAlways",id:k,scope:ce})},lC=k=>{R(k),e.transport.post({type:"setMode",modeId:k})},cC=(k,ce)=>{e.transport.post({type:"setAutoApprove",group:k,enabled:ce})},sC=k=>{e.transport.post({type:"revokeAllowedTool",toolName:k})},uC=k=>{e.transport.post({type:"revokeAllowedCommand",command:k})},dC=()=>{e.transport.post({type:"requestTasks"}),n("history")},fC=k=>{e.transport.post({type:"openTask",id:k}),n("chat")},P1=()=>{e.transport.post({type:"newTask"}),n("chat")},mC=k=>{e.transport.post({type:"deleteTask",id:k})},pC=k=>{Cf(!0),Tf(void 0),e.transport.post({type:"requestModels",profile:k})},hC=k=>{Ef(!0),Df(void 0),e.transport.post({type:"testConnection",profile:k})},gC=()=>{k1([]),Tf(void 0),Cf(!1),Df(void 0),Ef(!1)},vC={connections:Af,activeConnectionId:Bc,indexes:v6,...E1!==void 0?{indexesWarning:E1}:{},...D1!==void 0?{testResult:D1}:{},savedTick:x6,onSave:k=>{v(void 0),e.transport.post({type:"saveSearchConnection",connection:k})},onDelete:k=>e.transport.post({type:"deleteSearchConnection",id:k}),onSyncFrom:k=>{j1({running:!0}),e.transport.post({type:"syncVectorStore",fromId:k})},...A1!==void 0?{sync:A1}:{},onSetActive:k=>e.transport.post({type:"setActiveSearchConnection",id:k}),onListIndexes:k=>e.transport.post({type:"requestSearchIndexes",connection:k}),onTest:k=>{I1(void 0),e.transport.post({type:"testSearchConnection",connection:k})},indexing:{embedder:U1,profiles:I,connectionLabel:Af.find(k=>k.id===Bc)?.label,progress:_6,lastResult:$6,models:w6,modelsWarning:z6,modelsLoading:T6,savedTick:C6,onRequestModels:k=>{R1([]),M1(void 0),Z1(!0),e.transport.post({type:"requestEmbedderModels",profileId:k})},onSaveEmbedder:(k,ce,y,we,Mt)=>{v(void 0),e.transport.post({type:"saveEmbedder",profileId:k,model:ce,dimensions:y,...we.length>0?{indexName:we}:{},...Mt.length>0?{indexPrefix:Mt}:{}})},onStartIndexing:()=>{N1(void 0),e.transport.post({type:"startIndexing"})},onCancelIndexing:()=>e.transport.post({type:"cancelIndexing"})},dispatcher:{enabled:fo.enabled,hiddenTools:fo.hiddenTools,skills:fo.skills,hiddenSkills:fo.hiddenSkills,...fo.docsIndex!==void 0?{docsIndex:fo.docsIndex}:{},indexing:j2,...y1!==void 0?{result:y1}:{},retrievalReady:Bc!==void 0&&U1?.model!==void 0,onToggle:k=>{_f(ce=>({...ce,enabled:k})),e.transport.post({type:"setDispatcher",enabled:k})},onToggleSkills:k=>{_f(ce=>({...ce,skills:k})),e.transport.post({type:"setSkillRetrieval",enabled:k})},onIndexDocs:()=>{zf(void 0),$f(!0),e.transport.post({type:"indexDocs"})},onClearDocsIndex:()=>{zf(void 0),$f(!0),e.transport.post({type:"clearDocsIndex"})}},activity:{entries:U2,probe:N2,probeRunning:R2,onProbe:(k,ce)=>{wf(void 0),v1(!0),e.transport.post({type:"runSearchProbe",query:k,target:ce})},onClear:()=>e.transport.post({type:"clearSearchLog"}),onClearProbe:()=>wf(void 0)}},yC=(k,ce,y,we)=>{e.transport.post({type:"setExpert",enabled:k,...ce.length>0?{path:ce}:{},...y.length>0?{model:y}:{},maxSpendUsd:we.maxSpendUsd,maxConsultations:we.maxConsultations})},bC=(k,ce,y)=>{v(void 0),e.transport.post({type:"saveMcpServer",name:k,...ce!==void 0?{previousName:ce}:{},config:y})},V1=k=>{e.transport.post({type:"openManagedFile",path:k})},F1=k=>{S1(void 0),e.transport.post({type:"browseForPath",...k})},xC=(k,ce)=>{e.transport.post({type:"probePythonEnv",venvDir:k,script:ce})},SC=k=>{e.transport.post({type:"deleteMcpServer",name:k})},kC=k=>{e.transport.post({type:"saveMcpServers",json:k})},_C=k=>{e.transport.post({type:"restartMcpServer",name:k})},$C=(k,ce)=>{e.transport.post({type:"setMcpServerEnabled",name:k,enabled:ce})},wC=k=>{e.transport.post({type:"connectMcpServer",name:k})},zC=(k,ce,y)=>{e.transport.post({type:"setMcpToolPermission",server:k,tool:ce,permission:y})},TC=()=>{e.transport.post({type:"rollback"})},CC=k=>{e.transport.post({type:"saveProfile",profile:k})},EC=k=>{e.transport.post({type:"duplicateProfile",id:k})},DC=k=>{e.transport.post({type:"deleteProfile",id:k})},q1=k=>{e.transport.post({type:"setActiveProfile",id:k})},IC=()=>{e.transport.post({type:"exportConfig"})},AC=()=>{e.transport.post({type:"importConfig"})},jC=w&&I.length===0;return(0,Ie.jsxs)("div",{style:{display:"flex",flexDirection:"column",height:"100vh",boxSizing:"border-box",background:s.background,color:s.foreground,fontFamily:Z,fontSize:13},children:[(0,Ie.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 12px",borderBottom:`1px solid ${s.border}`,flexShrink:0},children:[(0,Ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Ie.jsx)("strong",{children:"Light Code"}),t==="chat"&&(0,Ie.jsx)(vy,{modeId:zn,disabled:h,onChange:lC,expertAvailable:If}),t==="chat"&&(0,Ie.jsx)(t$,{enabled:If,modeId:zn,usd:Tn.usd,consultations:Tn.consultations,maxSpendUsd:Tn.maxSpendUsd,maxConsultations:Tn.maxConsultations,overridden:Tn.overridden,...Tn.estimate!==void 0?{estimate:Tn.estimate}:{},...Tn.usage!==void 0?{usage:Tn.usage}:{},...Tn.exhausted!==void 0?{exhausted:Tn.exhausted}:{},onSetLimits:k=>e.transport.post({type:"setTaskExpertLimits",...k})})]}),t==="chat"?(0,Ie.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:2},children:[(0,Ie.jsx)("button",{type:"button","aria-label":"New task",title:"New task",style:pe("ghost",h),disabled:h,onClick:P1,children:(0,Ie.jsx)(x_,{})}),(0,Ie.jsx)("button",{type:"button","aria-label":"History",title:"History",style:pe("ghost"),onClick:dC,children:(0,Ie.jsx)(b_,{})}),(0,Ie.jsx)("button",{type:"button","aria-label":"Settings",title:"Settings",style:pe("ghost"),onClick:B1,children:(0,Ie.jsx)(S_,{})}),(0,Ie.jsx)("button",{type:"button","aria-label":"Guide",title:"Open the guide",style:pe("ghost"),onClick:()=>{if(o.native){e.transport.post({type:"openWalkthrough"});return}n("guide")},children:(0,Ie.jsx)(D_,{})})]}):(0,Ie.jsx)("button",{type:"button","aria-label":"Back",title:"Back",style:pe("ghost"),onClick:()=>n("chat"),children:(0,Ie.jsx)(p_,{})})]}),b!==void 0&&t!=="chat"&&(0,Ie.jsxs)("div",{role:"alert",style:{margin:"8px 12px 0",padding:"8px 10px",fontSize:12,borderRadius:4,display:"flex",alignItems:"flex-start",gap:8,color:"var(--vscode-inputValidation-errorForeground, var(--vscode-foreground))",background:"var(--vscode-inputValidation-errorBackground, transparent)",border:"1px solid var(--vscode-inputValidation-errorBorder, var(--vscode-errorForeground))"},children:[(0,Ie.jsx)("span",{style:{flex:1},children:b}),(0,Ie.jsx)("button",{type:"button","aria-label":"Dismiss",onClick:()=>v(void 0),style:{background:"transparent",border:"none",color:"inherit",cursor:"pointer",padding:0},children:"\u2715"})]}),(0,Ie.jsx)("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:t==="guide"?(0,Ie.jsx)(r$,{...o.mediaBase!==void 0?{mediaBase:o.mediaBase}:{},onClose:()=>n("chat"),onOpenTab:k=>{e.transport.post({type:"requestProfiles"}),i({tab:k,nonce:Date.now()}),n("settings")}}):t==="settings"?(0,Ie.jsx)(Uy,{...r!==void 0?{requestedTab:r}:{},profiles:I,activeProfileId:L,onSave:CC,onDuplicate:EC,onDelete:DC,onSetActive:q1,onExport:IC,onImport:AC,...f!==void 0?{sharedProfileIds:f.sharedProfileIds}:{},onRequestModels:pC,onTestConnection:hC,onEditingChange:gC,models:W2,..._1!==void 0?{modelsWarning:_1}:{},modelsLoading:e6,testRunning:t6,...$1!==void 0?{testResult:$1}:{},approvals:te,onSetAutoApprove:cC,onRevokeTool:sC,onRevokeCommand:uC,maxIterations:st,readRoots:E2,onSetReadRoots:k=>e.transport.post({type:"setReadRoots",roots:k}),accentColor:C2,onSetAccentColor:k=>{h1(k),Ay(k),e.transport.post({type:"setAccentColor",value:k})},expertColor:I2,onSetExpertColor:k=>{g1(k),jy(k),e.transport.post({type:"setExpertColor",value:k})},onSetMaxIterations:k=>e.transport.post({type:"setMaxIterations",value:k}),mcpServers:M2,mcpJson:B2,mcpWarnings:P2,mcpSaveError:F2,mcpConfigs:q2,mcpPlatform:G2,mcpSavedTick:J2,mcpPythonProbe:K2,onDetectPython:xC,onBrowse:F1,pickedPath:x1,onSaveMcpServer:bC,onDeleteMcpServer:SC,onDuplicateMcpServer:k=>e.transport.post({type:"duplicateMcpServer",name:k}),onSaveMcp:kC,onRestartMcp:_C,onSetMcpServerEnabled:$C,onSetMcpToolPermission:zC,onConnectMcp:wC,expert:u6,onSaveExpert:yC,onAssessJunior:()=>e.transport.post({type:"assessJunior"}),onClearAssessment:()=>e.transport.post({type:"clearAssessment"}),onRecheckExpert:()=>{z1(void 0),e.transport.post({type:"requestExpert"})},search:vC,skills:{skills:U6,issues:N6,skillsDir:M6,extraDirs:Q6,configuredDir:eC,onOpenFile:V1,onDelete:k=>e.transport.post({type:"deleteSkillFile",name:k}),onSaveDirs:(k,ce)=>{tC(k),e.transport.post({type:"saveSkillDirs",dir:k,paths:ce})}},schedules:{schedules:B6,tools:P6,skills:F6,runningId:X6,onSave:k=>e.transport.post({type:"saveSchedule",schedule:k}),onDelete:k=>e.transport.post({type:"deleteSchedule",id:k}),onDuplicate:k=>e.transport.post({type:"duplicateSchedule",id:k}),onToggle:(k,ce)=>e.transport.post({type:"setScheduleEnabled",id:k,enabled:ce}),onRunNow:k=>e.transport.post({type:"runScheduleNow",id:k}),mentionCandidates:C1,onQueryMentions:L1,onOpenRun:(k,ce)=>e.transport.post({type:"openScheduleRun",taskId:k,title:ce}),scheduler:Y6,onRestartScheduler:()=>e.transport.post({type:"restartScheduler"}),onDeleteRun:(k,ce)=>e.transport.post({type:"deleteScheduleRun",id:k,at:ce}),onClearRuns:k=>e.transport.post({type:"clearScheduleRuns",...k===void 0?{}:{id:k}})},tools:H6,...u!==void 0?{reviews:{...u,onDecide:(k,ce,y)=>e.transport.post({type:"decideReview",id:k,approved:ce,...y!==void 0?{reason:y}:{}})}}:{},...l!==void 0?{variables:{...l,onSaveUser:k=>e.transport.post({type:"saveUserVariables",variables:k}),onSaveAdmin:k=>e.transport.post({type:"saveAdminVariables",variables:k}),onSaveAdminIds:k=>e.transport.post({type:"saveAdminIds",ids:k})}}:{},python:{programming:{profiles:I.map(k=>({id:k.id,label:k.label})),selectedId:m,onSelect:k=>e.transport.post({type:"setProgrammingProfile",id:k})},status:D6,settings:A6,onBrowse:F1,pickedPath:x1,onOpenFile:V1,onDeleteTool:k=>e.transport.post({type:"deletePythonTool",name:k}),onApproveTool:k=>e.transport.post({type:"approvePythonTool",name:k}),onSave:k=>e.transport.post({type:"setPython",dynamicTools:k.dynamicTools,...k.uvPath.length>0?{uvPath:k.uvPath}:{},...k.toolsDir.length>0?{toolsDir:k.toolsDir}:{},timeoutSeconds:k.timeoutSeconds,...k.indexUrl.length>0?{indexUrl:k.indexUrl}:{},offline:k.offline})},network:{...T1!==void 0?{settings:T1}:{settings:void 0},onSave:k=>e.transport.post({type:"saveNetwork",settings:k})}}):t==="history"?(0,Ie.jsx)(F$,{tasks:n6,activeTaskId:r6,onOpen:fC,onDelete:mC,onNew:P1}):jC?(0,Ie.jsxs)("div",{style:{padding:20,textAlign:"center"},children:[(0,Ie.jsx)("p",{style:{color:s.muted},children:"No provider configured yet."}),(0,Ie.jsx)("button",{type:"button",style:fe(!1),onClick:B1,children:"Configure a Provider"})]}):(0,Ie.jsx)(gy,{messages:_,isStreaming:h,error:b,pendingApproval:$e,canRollback:We,onSend:nC,onCancel:rC,onDecideApproval:oC,onAlwaysAllow:aC,onRollback:TC,usage:o6,expertSpend:Tn,supportsVision:l6,mentionCandidates:C1,onQueryMentions:L1,profiles:I,activeProfileId:L,onSelectProfile:q1,expertEnabled:If,queued:m6,onUnqueue:iC,searchConnections:Af.map(k=>({id:k.id,label:k.label})),activeSearchId:Bc,onSelectSearch:k=>e.transport.post({type:"setActiveSearchConnection",id:k})})})]})}var $2=P(k2(),1);var kf=class{constructor(t){this.onStatus=t}onStatus;listeners=new Set;token;async connect(){let t=new URLSearchParams(window.location.hash.slice(1)).get("t");if(t!==null){window.history.replaceState(null,"",window.location.pathname);let n=await fetch("/api/session",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handoff:t})});if(!n.ok)throw new Error(await n.text());this.token=(await n.json()).token,sessionStorage.setItem("lightCodeToken",this.token)}else this.token=sessionStorage.getItem("lightCodeToken")??void 0;if(this.token===void 0)throw new Error("No session. Restart light-code and open the printed URL.");this.listen()}async listen(){for(;;){try{let t=window.location.pathname.startsWith("/admin")?"?view=admin":"",n=await fetch(`/api/events${t}`,{headers:{Authorization:`Bearer ${this.token??""}`}});if(!n.ok||n.body===null)throw new Error(`stream failed: ${n.status}`);this.onStatus("connected");let r=n.body.getReader(),i=new TextDecoder,o="";for(;;){let{done:a,value:l}=await r.read();if(a)break;o+=i.decode(l,{stream:!0});let c=o.indexOf(`
121
139
 
122
- `);for(;l!==-1;){let u=r.slice(0,l);if(r=r.slice(l+2),u.startsWith("data: ")){let c=JSON.parse(u.slice(6));for(let s of this.listeners)s(c)}l=r.indexOf(`
140
+ `);for(;c!==-1;){let u=o.slice(0,c);if(o=o.slice(c+2),u.startsWith("data: ")){let d=JSON.parse(u.slice(6));for(let m of this.listeners)m(d)}c=o.indexOf(`
123
141
 
124
- `)}}}catch(t){this.onStatus(`disconnected \u2014 retrying (${t instanceof Error?t.message:String(t)})`)}await new Promise(t=>setTimeout(t,1e3))}}post(t){fetch("/api/message",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token??""}`},body:JSON.stringify(t)}).catch(()=>this.onStatus("send failed \u2014 is the server still running?"))}onMessage(t){return this.listeners.add(t),()=>this.listeners.delete(t)}};var R4=H(de(),1),Z4=document.getElementById("root");if(Z4===null)throw new Error("Light Code: no #root element to mount into.");var Rb=document.getElementById("status"),M4=e=>{Rb!==null&&(Rb.textContent=e==="connected"?"":e,Rb.style.display=e==="connected"?"none":"block")},N4=new gd(M4);N4.connect().then(()=>(0,I4.createRoot)(Z4).render((0,R4.jsx)(ah,{transport:N4}))).catch(e=>{M4(e instanceof Error?e.message:String(e))});})();
142
+ `)}}}catch(t){this.onStatus(`disconnected \u2014 retrying (${t instanceof Error?t.message:String(t)})`)}await new Promise(t=>setTimeout(t,1e3))}}post(t){fetch("/api/message",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.token??""}`},body:JSON.stringify(t)}).catch(()=>this.onStatus("send failed \u2014 is the server still running?"))}onMessage(t){return this.listeners.add(t),()=>this.listeners.delete(t)}};var T2=P(ie(),1),w2=document.getElementById("root");if(w2===null)throw new Error("Light Code: no #root element to mount into.");var p1=document.getElementById("status"),z2=e=>{p1!==null&&(p1.textContent=e==="connected"?"":e,p1.style.display=e==="connected"?"none":"block")},_2=new kf(z2);_2.connect().then(()=>(0,$2.createRoot)(w2).render((0,T2.jsx)(Oy,{transport:_2}))).catch(e=>{z2(e instanceof Error?e.message:String(e))});})();
125
143
  /*! Bundled license information:
126
144
 
127
145
  react/cjs/react-jsx-runtime.production.js: