@legioncodeinc/honeycomb 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/bundle/cli.js +87 -2
- package/daemon/dashboard-app.js +10 -10
- package/daemon/index.js +1139 -52
- package/embeddings/embed-daemon.js +1 -1
- package/harnesses/claude-code/.claude-plugin/plugin.json +1 -1
- package/harnesses/claude-code/bundle/capture.js +56 -3
- package/harnesses/claude-code/bundle/index.js +56 -3
- package/harnesses/claude-code/bundle/pre-tool-use.js +56 -3
- package/harnesses/claude-code/bundle/session-end.js +56 -3
- package/harnesses/claude-code/bundle/session-start.js +56 -3
- package/harnesses/codex/bundle/capture.js +22 -2
- package/harnesses/codex/bundle/index.js +22 -2
- package/harnesses/codex/bundle/pre-tool-use.js +22 -2
- package/harnesses/codex/bundle/session-start.js +22 -2
- package/harnesses/codex/package.json +1 -1
- package/harnesses/cursor/bundle/capture.js +22 -2
- package/harnesses/cursor/bundle/index.js +22 -2
- package/harnesses/cursor/bundle/pre-tool-use.js +22 -2
- package/harnesses/cursor/bundle/session-end.js +22 -2
- package/harnesses/cursor/bundle/session-start.js +22 -2
- package/harnesses/openclaw/dist/index.js +1 -1
- package/harnesses/openclaw/openclaw.plugin.json +1 -1
- package/harnesses/openclaw/package.json +1 -1
- package/mcp/bundle/server.js +1 -1
- package/package.json +1 -1
package/daemon/dashboard-app.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var kw=Object.create;var Cu=Object.defineProperty;var _w=Object.getOwnPropertyDescriptor;var $w=Object.getOwnPropertyNames;var ww=Object.getPrototypeOf,zw=Object.prototype.hasOwnProperty;var $n=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},wn=(e,t)=>{for(var r in t)Cu(e,r,{get:t[r],enumerable:!0})},Iw=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $w(t))!zw.call(e,n)&&n!==r&&Cu(e,n,{get:()=>t[n],enumerable:!(o=_w(t,n))||o.enumerable});return e};var M=(e,t,r)=>(r=e!=null?kw(ww(e)):{},Iw(t||!e||!e.__esModule?Cu(r,"default",{value:e,enumerable:!0}):r,e));var Wh=$n(le=>{"use strict";var vi=Symbol.for("react.element"),Pw=Symbol.for("react.portal"),Ew=Symbol.for("react.fragment"),Rw=Symbol.for("react.strict_mode"),Cw=Symbol.for("react.profiler"),jw=Symbol.for("react.provider"),Tw=Symbol.for("react.context"),Ow=Symbol.for("react.forward_ref"),Nw=Symbol.for("react.suspense"),Dw=Symbol.for("react.memo"),Lw=Symbol.for("react.lazy"),Rh=Symbol.iterator;function Uw(e){return e===null||typeof e!="object"?null:(e=Rh&&e[Rh]||e["@@iterator"],typeof e=="function"?e:null)}var Th={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Oh=Object.assign,Nh={};function qr(e,t,r){this.props=e,this.context=t,this.refs=Nh,this.updater=r||Th}qr.prototype.isReactComponent={};qr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};qr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Dh(){}Dh.prototype=qr.prototype;function Tu(e,t,r){this.props=e,this.context=t,this.refs=Nh,this.updater=r||Th}var Ou=Tu.prototype=new Dh;Ou.constructor=Tu;Oh(Ou,qr.prototype);Ou.isPureReactComponent=!0;var Ch=Array.isArray,Lh=Object.prototype.hasOwnProperty,Nu={current:null},Uh={key:!0,ref:!0,__self:!0,__source:!0};function Ah(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)Lh.call(t,o)&&!Uh.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)n[o]===void 0&&(n[o]=l[o]);return{$$typeof:vi,type:e,key:i,ref:a,props:n,_owner:Nu.current}}function Aw(e,t){return{$$typeof:vi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Du(e){return typeof e=="object"&&e!==null&&e.$$typeof===vi}function Fw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var jh=/\/+/g;function ju(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Fw(""+e.key):t.toString(36)}function qa(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case vi:case Pw:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+ju(a,0):o,Ch(n)?(r="",e!=null&&(r=e.replace(jh,"$&/")+"/"),qa(n,t,r,"",function(c){return c})):n!=null&&(Du(n)&&(n=Aw(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(jh,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",Ch(e))for(var l=0;l<e.length;l++){i=e[l];var s=o+ju(i,l);a+=qa(i,t,r,s,n)}else if(s=Uw(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=o+ju(i,l++),a+=qa(i,t,r,s,n);else if(i==="object")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 Qa(e,t,r){if(e==null)return e;var o=[],n=0;return qa(e,o,"","",function(i){return t.call(r,i,n++)}),o}function Ww(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var dt={current:null},el={transition:null},Mw={ReactCurrentDispatcher:dt,ReactCurrentBatchConfig:el,ReactCurrentOwner:Nu};function Fh(){throw Error("act(...) is not supported in production builds of React.")}le.Children={map:Qa,forEach:function(e,t,r){Qa(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Qa(e,function(){t++}),t},toArray:function(e){return Qa(e,function(t){return t})||[]},only:function(e){if(!Du(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};le.Component=qr;le.Fragment=Ew;le.Profiler=Cw;le.PureComponent=Tu;le.StrictMode=Rw;le.Suspense=Nw;le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Mw;le.act=Fh;le.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=Oh({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Nu.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)Lh.call(t,s)&&!Uh.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:vi,type:e.type,key:n,ref:i,props:o,_owner:a}};le.createContext=function(e){return e={$$typeof:Tw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:jw,_context:e},e.Consumer=e};le.createElement=Ah;le.createFactory=function(e){var t=Ah.bind(null,e);return t.type=e,t};le.createRef=function(){return{current:null}};le.forwardRef=function(e){return{$$typeof:Ow,render:e}};le.isValidElement=Du;le.lazy=function(e){return{$$typeof:Lw,_payload:{_status:-1,_result:e},_init:Ww}};le.memo=function(e,t){return{$$typeof:Dw,type:e,compare:t===void 0?null:t}};le.startTransition=function(e){var t=el.transition;el.transition={};try{e()}finally{el.transition=t}};le.unstable_act=Fh;le.useCallback=function(e,t){return dt.current.useCallback(e,t)};le.useContext=function(e){return dt.current.useContext(e)};le.useDebugValue=function(){};le.useDeferredValue=function(e){return dt.current.useDeferredValue(e)};le.useEffect=function(e,t){return dt.current.useEffect(e,t)};le.useId=function(){return dt.current.useId()};le.useImperativeHandle=function(e,t,r){return dt.current.useImperativeHandle(e,t,r)};le.useInsertionEffect=function(e,t){return dt.current.useInsertionEffect(e,t)};le.useLayoutEffect=function(e,t){return dt.current.useLayoutEffect(e,t)};le.useMemo=function(e,t){return dt.current.useMemo(e,t)};le.useReducer=function(e,t,r){return dt.current.useReducer(e,t,r)};le.useRef=function(e){return dt.current.useRef(e)};le.useState=function(e){return dt.current.useState(e)};le.useSyncExternalStore=function(e,t,r){return dt.current.useSyncExternalStore(e,t,r)};le.useTransition=function(){return dt.current.useTransition()};le.version="18.3.1"});var Ie=$n((Cj,Mh)=>{"use strict";Mh.exports=Wh()});var Qh=$n(Se=>{"use strict";function Fu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<tl(n,t))e[o]=t,e[r]=n,r=o;else break e}}function Yt(e){return e.length===0?null:e[0]}function rl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,l=e[a],s=a+1,c=e[s];if(0>tl(l,r))s<n&&0>tl(c,l)?(e[o]=c,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(s<n&&0>tl(c,r))e[o]=c,e[s]=r,o=s;else break e}}return t}function tl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Zh=performance,Se.unstable_now=function(){return Zh.now()}):(Lu=Date,Bh=Lu.now(),Se.unstable_now=function(){return Lu.now()-Bh});var Zh,Lu,Bh,fn=[],Bn=[],Zw=1,Mt=null,nt=3,ol=!1,Ir=!1,hi=!1,Jh=typeof setTimeout=="function"?setTimeout:null,Gh=typeof clearTimeout=="function"?clearTimeout:null,Vh=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Wu(e){for(var t=Yt(Bn);t!==null;){if(t.callback===null)rl(Bn);else if(t.startTime<=e)rl(Bn),t.sortIndex=t.expirationTime,Fu(fn,t);else break;t=Yt(Bn)}}function Mu(e){if(hi=!1,Wu(e),!Ir)if(Yt(fn)!==null)Ir=!0,Bu(Zu);else{var t=Yt(Bn);t!==null&&Vu(Mu,t.startTime-e)}}function Zu(e,t){Ir=!1,hi&&(hi=!1,Gh(xi),xi=-1),ol=!0;var r=nt;try{for(Wu(t),Mt=Yt(fn);Mt!==null&&(!(Mt.expirationTime>t)||e&&!Yh());){var o=Mt.callback;if(typeof o=="function"){Mt.callback=null,nt=Mt.priorityLevel;var n=o(Mt.expirationTime<=t);t=Se.unstable_now(),typeof n=="function"?Mt.callback=n:Mt===Yt(fn)&&rl(fn),Wu(t)}else rl(fn);Mt=Yt(fn)}if(Mt!==null)var i=!0;else{var a=Yt(Bn);a!==null&&Vu(Mu,a.startTime-t),i=!1}return i}finally{Mt=null,nt=r,ol=!1}}var il=!1,nl=null,xi=-1,Xh=5,Kh=-1;function Yh(){return!(Se.unstable_now()-Kh<Xh)}function Uu(){if(nl!==null){var e=Se.unstable_now();Kh=e;var t=!0;try{t=nl(!0,e)}finally{t?yi():(il=!1,nl=null)}}else il=!1}var yi;typeof Vh=="function"?yi=function(){Vh(Uu)}:typeof MessageChannel<"u"?(Au=new MessageChannel,Hh=Au.port2,Au.port1.onmessage=Uu,yi=function(){Hh.postMessage(null)}):yi=function(){Jh(Uu,0)};var Au,Hh;function Bu(e){nl=e,il||(il=!0,yi())}function Vu(e,t){xi=Jh(function(){e(Se.unstable_now())},t)}Se.unstable_IdlePriority=5;Se.unstable_ImmediatePriority=1;Se.unstable_LowPriority=4;Se.unstable_NormalPriority=3;Se.unstable_Profiling=null;Se.unstable_UserBlockingPriority=2;Se.unstable_cancelCallback=function(e){e.callback=null};Se.unstable_continueExecution=function(){Ir||ol||(Ir=!0,Bu(Zu))};Se.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"):Xh=0<e?Math.floor(1e3/e):5};Se.unstable_getCurrentPriorityLevel=function(){return nt};Se.unstable_getFirstCallbackNode=function(){return Yt(fn)};Se.unstable_next=function(e){switch(nt){case 1:case 2:case 3:var t=3;break;default:t=nt}var r=nt;nt=t;try{return e()}finally{nt=r}};Se.unstable_pauseExecution=function(){};Se.unstable_requestPaint=function(){};Se.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=nt;nt=e;try{return t()}finally{nt=r}};Se.unstable_scheduleCallback=function(e,t,r){var o=Se.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:Zw++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,Fu(Bn,e),Yt(fn)===null&&e===Yt(Bn)&&(hi?(Gh(xi),xi=-1):hi=!0,Vu(Mu,r-o))):(e.sortIndex=n,Fu(fn,e),Ir||ol||(Ir=!0,Bu(Zu))),e};Se.unstable_shouldYield=Yh;Se.unstable_wrapCallback=function(e){var t=nt;return function(){var r=nt;nt=t;try{return e.apply(this,arguments)}finally{nt=r}}}});var ex=$n((Tj,qh)=>{"use strict";qh.exports=Qh()});var ok=$n(Ot=>{"use strict";var Bw=Ie(),jt=ex();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var lS=new Set,Wi={};function Fr(e,t){bo(e,t),bo(e+"Capture",t)}function bo(e,t){for(Wi[e]=t,e=0;e<t.length;e++)lS.add(t[e])}var Cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),md=Object.prototype.hasOwnProperty,Vw=/^[: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]*$/,tx={},nx={};function Hw(e){return md.call(nx,e)?!0:md.call(tx,e)?!1:Vw.test(e)?nx[e]=!0:(tx[e]=!0,!1)}function Jw(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gw(e,t,r,o){if(t===null||typeof t>"u"||Jw(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function mt(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){qe[e]=new mt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];qe[t]=new mt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){qe[e]=new mt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){qe[e]=new mt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){qe[e]=new mt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){qe[e]=new mt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){qe[e]=new mt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){qe[e]=new mt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){qe[e]=new mt(e,5,!1,e.toLowerCase(),null,!1,!1)});var ap=/[\-:]([a-z])/g;function lp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ap,lp);qe[t]=new mt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ap,lp);qe[t]=new mt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ap,lp);qe[t]=new mt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){qe[e]=new mt(e,1,!1,e.toLowerCase(),null,!1,!1)});qe.xlinkHref=new mt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){qe[e]=new mt(e,1,!1,e.toLowerCase(),null,!0,!0)});function sp(e,t,r,o){var n=qe.hasOwnProperty(t)?qe[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Gw(t,r,n,o)&&(r=null),o||n===null?Hw(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Nn=Bw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,al=Symbol.for("react.element"),no=Symbol.for("react.portal"),ro=Symbol.for("react.fragment"),cp=Symbol.for("react.strict_mode"),gd=Symbol.for("react.profiler"),sS=Symbol.for("react.provider"),cS=Symbol.for("react.context"),up=Symbol.for("react.forward_ref"),vd=Symbol.for("react.suspense"),yd=Symbol.for("react.suspense_list"),dp=Symbol.for("react.memo"),Hn=Symbol.for("react.lazy"),uS=Symbol.for("react.offscreen"),rx=Symbol.iterator;function Si(e){return e===null||typeof e!="object"?null:(e=rx&&e[rx]||e["@@iterator"],typeof e=="function"?e:null)}var je=Object.assign,Hu;function Pi(e){if(Hu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
var Jw=Object.create;var Bu=Object.defineProperty;var Gw=Object.getOwnPropertyDescriptor;var Xw=Object.getOwnPropertyNames;var Kw=Object.getPrototypeOf,Yw=Object.prototype.hasOwnProperty;var Cn=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},Tn=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},Qw=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Xw(t))!Yw.call(e,n)&&n!==r&&Bu(e,n,{get:()=>t[n],enumerable:!(o=Gw(t,n))||o.enumerable});return e};var A=(e,t,r)=>(r=e!=null?Jw(Kw(e)):{},Qw(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e));var rx=Cn(ce=>{"use strict";var zi=Symbol.for("react.element"),qw=Symbol.for("react.portal"),e1=Symbol.for("react.fragment"),t1=Symbol.for("react.strict_mode"),n1=Symbol.for("react.profiler"),r1=Symbol.for("react.provider"),o1=Symbol.for("react.context"),i1=Symbol.for("react.forward_ref"),a1=Symbol.for("react.suspense"),l1=Symbol.for("react.memo"),s1=Symbol.for("react.lazy"),Hh=Symbol.iterator;function c1(e){return e===null||typeof e!="object"?null:(e=Hh&&e[Hh]||e["@@iterator"],typeof e=="function"?e:null)}var Xh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Kh=Object.assign,Yh={};function io(e,t,r){this.props=e,this.context=t,this.refs=Yh,this.updater=r||Xh}io.prototype.isReactComponent={};io.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): 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")};io.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Qh(){}Qh.prototype=io.prototype;function Hu(e,t,r){this.props=e,this.context=t,this.refs=Yh,this.updater=r||Xh}var Ju=Hu.prototype=new Qh;Ju.constructor=Hu;Kh(Ju,io.prototype);Ju.isPureReactComponent=!0;var Jh=Array.isArray,qh=Object.prototype.hasOwnProperty,Gu={current:null},ex={key:!0,ref:!0,__self:!0,__source:!0};function tx(e,t,r){var o,n={},i=null,a=null;if(t!=null)for(o in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)qh.call(t,o)&&!ex.hasOwnProperty(o)&&(n[o]=t[o]);var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}if(e&&e.defaultProps)for(o in l=e.defaultProps,l)n[o]===void 0&&(n[o]=l[o]);return{$$typeof:zi,type:e,key:i,ref:a,props:n,_owner:Gu.current}}function u1(e,t){return{$$typeof:zi,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xu(e){return typeof e=="object"&&e!==null&&e.$$typeof===zi}function d1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Gh=/\/+/g;function Vu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?d1(""+e.key):t.toString(36)}function cl(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case zi:case qw:a=!0}}if(a)return a=e,n=n(a),e=o===""?"."+Vu(a,0):o,Jh(n)?(r="",e!=null&&(r=e.replace(Gh,"$&/")+"/"),cl(n,t,r,"",function(c){return c})):n!=null&&(Xu(n)&&(n=u1(n,r+(!n.key||a&&a.key===n.key?"":(""+n.key).replace(Gh,"$&/")+"/")+e)),t.push(n)),1;if(a=0,o=o===""?".":o+":",Jh(e))for(var l=0;l<e.length;l++){i=e[l];var s=o+Vu(i,l);a+=cl(i,t,r,s,n)}else if(s=c1(e),typeof s=="function")for(e=s.call(e),l=0;!(i=e.next()).done;)i=i.value,s=o+Vu(i,l++),a+=cl(i,t,r,s,n);else if(i==="object")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 sl(e,t,r){if(e==null)return e;var o=[],n=0;return cl(e,o,"","",function(i){return t.call(r,i,n++)}),o}function p1(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var pt={current:null},ul={transition:null},f1={ReactCurrentDispatcher:pt,ReactCurrentBatchConfig:ul,ReactCurrentOwner:Gu};function nx(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:sl,forEach:function(e,t,r){sl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return sl(e,function(){t++}),t},toArray:function(e){return sl(e,function(t){return t})||[]},only:function(e){if(!Xu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=io;ce.Fragment=e1;ce.Profiler=n1;ce.PureComponent=Hu;ce.StrictMode=t1;ce.Suspense=a1;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f1;ce.act=nx;ce.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=Kh({},e.props),n=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Gu.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)qh.call(t,s)&&!ex.hasOwnProperty(s)&&(o[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}return{$$typeof:zi,type:e.type,key:n,ref:i,props:o,_owner:a}};ce.createContext=function(e){return e={$$typeof:o1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r1,_context:e},e.Consumer=e};ce.createElement=tx;ce.createFactory=function(e){var t=tx.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:i1,render:e}};ce.isValidElement=Xu;ce.lazy=function(e){return{$$typeof:s1,_payload:{_status:-1,_result:e},_init:p1}};ce.memo=function(e,t){return{$$typeof:l1,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=ul.transition;ul.transition={};try{e()}finally{ul.transition=t}};ce.unstable_act=nx;ce.useCallback=function(e,t){return pt.current.useCallback(e,t)};ce.useContext=function(e){return pt.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return pt.current.useDeferredValue(e)};ce.useEffect=function(e,t){return pt.current.useEffect(e,t)};ce.useId=function(){return pt.current.useId()};ce.useImperativeHandle=function(e,t,r){return pt.current.useImperativeHandle(e,t,r)};ce.useInsertionEffect=function(e,t){return pt.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return pt.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return pt.current.useMemo(e,t)};ce.useReducer=function(e,t,r){return pt.current.useReducer(e,t,r)};ce.useRef=function(e){return pt.current.useRef(e)};ce.useState=function(e){return pt.current.useState(e)};ce.useSyncExternalStore=function(e,t,r){return pt.current.useSyncExternalStore(e,t,r)};ce.useTransition=function(){return pt.current.useTransition()};ce.version="18.3.1"});var ke=Cn((Nj,ox)=>{"use strict";ox.exports=rx()});var mx=Cn(_e=>{"use strict";function qu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<dl(n,t))e[o]=t,e[r]=n,r=o;else break e}}function qt(e){return e.length===0?null:e[0]}function fl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,l=e[a],s=a+1,c=e[s];if(0>dl(l,r))s<n&&0>dl(c,l)?(e[o]=c,e[s]=r,o=s):(e[o]=l,e[a]=r,o=a);else if(s<n&&0>dl(c,r))e[o]=c,e[s]=r,o=s;else break e}}return t}function dl(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ix=performance,_e.unstable_now=function(){return ix.now()}):(Ku=Date,ax=Ku.now(),_e.unstable_now=function(){return Ku.now()-ax});var ix,Ku,ax,yn=[],Yn=[],m1=1,Zt=null,ot=3,ml=!1,jr=!1,Pi=!1,cx=typeof setTimeout=="function"?setTimeout:null,ux=typeof clearTimeout=="function"?clearTimeout:null,lx=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ed(e){for(var t=qt(Yn);t!==null;){if(t.callback===null)fl(Yn);else if(t.startTime<=e)fl(Yn),t.sortIndex=t.expirationTime,qu(yn,t);else break;t=qt(Yn)}}function td(e){if(Pi=!1,ed(e),!jr)if(qt(yn)!==null)jr=!0,rd(nd);else{var t=qt(Yn);t!==null&&od(td,t.startTime-e)}}function nd(e,t){jr=!1,Pi&&(Pi=!1,ux(Ei),Ei=-1),ml=!0;var r=ot;try{for(ed(t),Zt=qt(yn);Zt!==null&&(!(Zt.expirationTime>t)||e&&!fx());){var o=Zt.callback;if(typeof o=="function"){Zt.callback=null,ot=Zt.priorityLevel;var n=o(Zt.expirationTime<=t);t=_e.unstable_now(),typeof n=="function"?Zt.callback=n:Zt===qt(yn)&&fl(yn),ed(t)}else fl(yn);Zt=qt(yn)}if(Zt!==null)var i=!0;else{var a=qt(Yn);a!==null&&od(td,a.startTime-t),i=!1}return i}finally{Zt=null,ot=r,ml=!1}}var gl=!1,pl=null,Ei=-1,dx=5,px=-1;function fx(){return!(_e.unstable_now()-px<dx)}function Yu(){if(pl!==null){var e=_e.unstable_now();px=e;var t=!0;try{t=pl(!0,e)}finally{t?Ii():(gl=!1,pl=null)}}else gl=!1}var Ii;typeof lx=="function"?Ii=function(){lx(Yu)}:typeof MessageChannel<"u"?(Qu=new MessageChannel,sx=Qu.port2,Qu.port1.onmessage=Yu,Ii=function(){sx.postMessage(null)}):Ii=function(){cx(Yu,0)};var Qu,sx;function rd(e){pl=e,gl||(gl=!0,Ii())}function od(e,t){Ei=cx(function(){e(_e.unstable_now())},t)}_e.unstable_IdlePriority=5;_e.unstable_ImmediatePriority=1;_e.unstable_LowPriority=4;_e.unstable_NormalPriority=3;_e.unstable_Profiling=null;_e.unstable_UserBlockingPriority=2;_e.unstable_cancelCallback=function(e){e.callback=null};_e.unstable_continueExecution=function(){jr||ml||(jr=!0,rd(nd))};_e.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"):dx=0<e?Math.floor(1e3/e):5};_e.unstable_getCurrentPriorityLevel=function(){return ot};_e.unstable_getFirstCallbackNode=function(){return qt(yn)};_e.unstable_next=function(e){switch(ot){case 1:case 2:case 3:var t=3;break;default:t=ot}var r=ot;ot=t;try{return e()}finally{ot=r}};_e.unstable_pauseExecution=function(){};_e.unstable_requestPaint=function(){};_e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=ot;ot=e;try{return t()}finally{ot=r}};_e.unstable_scheduleCallback=function(e,t,r){var o=_e.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:m1++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,qu(Yn,e),qt(yn)===null&&e===qt(Yn)&&(Pi?(ux(Ei),Ei=-1):Pi=!0,od(td,r-o))):(e.sortIndex=n,qu(yn,e),jr||ml||(jr=!0,rd(nd))),e};_e.unstable_shouldYield=fx;_e.unstable_wrapCallback=function(e){var t=ot;return function(){var r=ot;ot=t;try{return e.apply(this,arguments)}finally{ot=r}}}});var vx=Cn((Uj,gx)=>{"use strict";gx.exports=mx()});var bk=Cn(Dt=>{"use strict";var g1=ke(),jt=vx();function R(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}var _b=new Set,Yi={};function Hr(e,t){Io(e,t),Io(e+"Capture",t)}function Io(e,t){for(Yi[e]=t,e=0;e<t.length;e++)_b.add(t[e])}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Id=Object.prototype.hasOwnProperty,v1=/^[: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]*$/,yx={},hx={};function y1(e){return Id.call(hx,e)?!0:Id.call(yx,e)?!1:v1.test(e)?hx[e]=!0:(yx[e]=!0,!1)}function h1(e,t,r,o){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return o?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x1(e,t,r,o){if(t===null||typeof t>"u"||h1(e,t,r,o))return!0;if(o)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function gt(e,t,r,o,n,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=o,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){tt[e]=new gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];tt[t]=new gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){tt[e]=new gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){tt[e]=new gt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){tt[e]=new gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){tt[e]=new gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){tt[e]=new gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){tt[e]=new gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){tt[e]=new gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xp=/[\-:]([a-z])/g;function bp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xp,bp);tt[t]=new gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!1,!1)});tt.xlinkHref=new gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){tt[e]=new gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Sp(e,t,r,o){var n=tt.hasOwnProperty(t)?tt[t]:null;(n!==null?n.type!==0:o||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(x1(t,r,n,o)&&(r=null),o||n===null?y1(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,o=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,o?e.setAttributeNS(o,t,r):e.setAttribute(t,r))))}var Mn=g1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vl=Symbol.for("react.element"),so=Symbol.for("react.portal"),co=Symbol.for("react.fragment"),kp=Symbol.for("react.strict_mode"),Pd=Symbol.for("react.profiler"),$b=Symbol.for("react.provider"),wb=Symbol.for("react.context"),_p=Symbol.for("react.forward_ref"),Ed=Symbol.for("react.suspense"),Rd=Symbol.for("react.suspense_list"),$p=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),zb=Symbol.for("react.offscreen"),xx=Symbol.iterator;function Ri(e){return e===null||typeof e!="object"?null:(e=xx&&e[xx]||e["@@iterator"],typeof e=="function"?e:null)}var je=Object.assign,id;function Ui(e){if(id===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);id=t&&t[1]||""}return`
|
|
2
|
+
`+id+e}var ad=!1;function ld(e,t){if(!e||ad)return"";ad=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var o=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){o=c}e.call(t.prototype)}else{try{throw Error()}catch(c){o=c}e()}}catch(c){if(c&&o&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
3
3
|
`),i=o.stack.split(`
|
|
4
4
|
`),a=n.length-1,l=i.length-1;1<=a&&0<=l&&n[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(n[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||n[a]!==i[l]){var s=`
|
|
5
|
-
`+n[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Ju=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Pi(e):""}function Xw(e){switch(e.tag){case 5:return Pi(e.type);case 16:return Pi("Lazy");case 13:return Pi("Suspense");case 19:return Pi("SuspenseList");case 0:case 2:case 15:return e=Gu(e.type,!1),e;case 11:return e=Gu(e.type.render,!1),e;case 1:return e=Gu(e.type,!0),e;default:return""}}function hd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ro:return"Fragment";case no:return"Portal";case gd:return"Profiler";case cp:return"StrictMode";case vd:return"Suspense";case yd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cS:return(e.displayName||"Context")+".Consumer";case sS:return(e._context.displayName||"Context")+".Provider";case up:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case dp:return t=e.displayName||null,t!==null?t:hd(e.type)||"Memo";case Hn:t=e._payload,e=e._init;try{return hd(e(t))}catch{}}return null}function Kw(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hd(t);case 8:return t===cp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ar(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yw(e){var t=dS(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ll(e){e._valueTracker||(e._valueTracker=Yw(e))}function pS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=dS(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Nl(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}}function xd(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ox(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=ar(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fS(e,t){t=t.checked,t!=null&&sp(e,"checked",t,!1)}function Sd(e,t){fS(e,t);var r=ar(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?bd(e,t.type,r):t.hasOwnProperty("defaultValue")&&bd(e,t.type,ar(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ix(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function bd(e,t,r){(t!=="number"||Nl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ei=Array.isArray;function go(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ar(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function kd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ax(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Ei(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ar(r)}}function mS(e,t){var r=ar(t.value),o=ar(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function lx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function gS(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _d(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?gS(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var sl,vS=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(sl=sl||document.createElement("div"),sl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=sl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ji={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qw=["Webkit","ms","Moz","O"];Object.keys(ji).forEach(function(e){Qw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ji[t]=ji[e]})});function yS(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ji.hasOwnProperty(e)&&ji[e]?(""+t).trim():t+"px"}function hS(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=yS(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var qw=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $d(e,t){if(t){if(qw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function wd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 zd=null;function pp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Id=null,vo=null,yo=null;function sx(e){if(e=aa(e)){if(typeof Id!="function")throw Error(R(280));var t=e.stateNode;t&&(t=cs(t),Id(e.stateNode,e.type,t))}}function xS(e){vo?yo?yo.push(e):yo=[e]:vo=e}function SS(){if(vo){var e=vo,t=yo;if(yo=vo=null,sx(e),t)for(e=0;e<t.length;e++)sx(t[e])}}function bS(e,t){return e(t)}function kS(){}var Xu=!1;function _S(e,t,r){if(Xu)return e(t,r);Xu=!0;try{return bS(e,t,r)}finally{Xu=!1,(vo!==null||yo!==null)&&(kS(),SS())}}function Zi(e,t){var r=e.stateNode;if(r===null)return null;var o=cs(r);if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var Pd=!1;if(Cn)try{eo={},Object.defineProperty(eo,"passive",{get:function(){Pd=!0}}),window.addEventListener("test",eo,eo),window.removeEventListener("test",eo,eo)}catch{Pd=!1}var eo;function e1(e,t,r,o,n,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var Ti=!1,Dl=null,Ll=!1,Ed=null,t1={onError:function(e){Ti=!0,Dl=e}};function n1(e,t,r,o,n,i,a,l,s){Ti=!1,Dl=null,e1.apply(t1,arguments)}function r1(e,t,r,o,n,i,a,l,s){if(n1.apply(this,arguments),Ti){if(Ti){var c=Dl;Ti=!1,Dl=null}else throw Error(R(198));Ll||(Ll=!0,Ed=c)}}function Wr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function $S(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 cx(e){if(Wr(e)!==e)throw Error(R(188))}function o1(e){var t=e.alternate;if(!t){if(t=Wr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return cx(n),e;if(i===o)return cx(n),t;i=i.sibling}throw Error(R(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,l=n.child;l;){if(l===r){a=!0,r=n,o=i;break}if(l===o){a=!0,o=n,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,o=n;break}if(l===o){a=!0,o=i,r=n;break}l=l.sibling}if(!a)throw Error(R(189))}}if(r.alternate!==o)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function wS(e){return e=o1(e),e!==null?zS(e):null}function zS(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=zS(e);if(t!==null)return t;e=e.sibling}return null}var IS=jt.unstable_scheduleCallback,ux=jt.unstable_cancelCallback,i1=jt.unstable_shouldYield,a1=jt.unstable_requestPaint,Ue=jt.unstable_now,l1=jt.unstable_getCurrentPriorityLevel,fp=jt.unstable_ImmediatePriority,PS=jt.unstable_UserBlockingPriority,Ul=jt.unstable_NormalPriority,s1=jt.unstable_LowPriority,ES=jt.unstable_IdlePriority,is=null,yn=null;function c1(e){if(yn&&typeof yn.onCommitFiberRoot=="function")try{yn.onCommitFiberRoot(is,e,void 0,(e.current.flags&128)===128)}catch{}}var nn=Math.clz32?Math.clz32:p1,u1=Math.log,d1=Math.LN2;function p1(e){return e>>>=0,e===0?32:31-(u1(e)/d1|0)|0}var cl=64,ul=4194304;function Ri(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Al(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~n;l!==0?o=Ri(l):(i&=a,i!==0&&(o=Ri(i)))}else a=r&~n,a!==0?o=Ri(a):i!==0&&(o=Ri(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-nn(t),n=1<<r,o|=e[r],t&=~n;return o}function f1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function m1(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-nn(i),l=1<<a,s=n[a];s===-1?((l&r)===0||(l&o)!==0)&&(n[a]=f1(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Rd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function RS(){var e=cl;return cl<<=1,(cl&4194240)===0&&(cl=64),e}function Ku(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function oa(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nn(t),e[t]=r}function g1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-nn(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function mp(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-nn(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var me=0;function CS(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var jS,gp,TS,OS,NS,Cd=!1,dl=[],Qn=null,qn=null,er=null,Bi=new Map,Vi=new Map,Gn=[],v1="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 submit".split(" ");function dx(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":Bi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(t.pointerId)}}function bi(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=aa(t),t!==null&&gp(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function y1(e,t,r,o,n){switch(t){case"focusin":return Qn=bi(Qn,e,t,r,o,n),!0;case"dragenter":return qn=bi(qn,e,t,r,o,n),!0;case"mouseover":return er=bi(er,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return Bi.set(i,bi(Bi.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,Vi.set(i,bi(Vi.get(i)||null,e,t,r,o,n)),!0}return!1}function DS(e){var t=Rr(e.target);if(t!==null){var r=Wr(t);if(r!==null){if(t=r.tag,t===13){if(t=$S(r),t!==null){e.blockedOn=t,NS(e.priority,function(){TS(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=jd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);zd=o,r.target.dispatchEvent(o),zd=null}else return t=aa(r),t!==null&&gp(t),e.blockedOn=r,!1;t.shift()}return!0}function px(e,t,r){wl(e)&&r.delete(t)}function h1(){Cd=!1,Qn!==null&&wl(Qn)&&(Qn=null),qn!==null&&wl(qn)&&(qn=null),er!==null&&wl(er)&&(er=null),Bi.forEach(px),Vi.forEach(px)}function ki(e,t){e.blockedOn===t&&(e.blockedOn=null,Cd||(Cd=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,h1)))}function Hi(e){function t(n){return ki(n,e)}if(0<dl.length){ki(dl[0],e);for(var r=1;r<dl.length;r++){var o=dl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(Qn!==null&&ki(Qn,e),qn!==null&&ki(qn,e),er!==null&&ki(er,e),Bi.forEach(t),Vi.forEach(t),r=0;r<Gn.length;r++)o=Gn[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<Gn.length&&(r=Gn[0],r.blockedOn===null);)DS(r),r.blockedOn===null&&Gn.shift()}var ho=Nn.ReactCurrentBatchConfig,Fl=!0;function x1(e,t,r,o){var n=me,i=ho.transition;ho.transition=null;try{me=1,vp(e,t,r,o)}finally{me=n,ho.transition=i}}function S1(e,t,r,o){var n=me,i=ho.transition;ho.transition=null;try{me=4,vp(e,t,r,o)}finally{me=n,ho.transition=i}}function vp(e,t,r,o){if(Fl){var n=jd(e,t,r,o);if(n===null)rd(e,t,o,Wl,r),dx(e,o);else if(y1(n,e,t,r,o))o.stopPropagation();else if(dx(e,o),t&4&&-1<v1.indexOf(e)){for(;n!==null;){var i=aa(n);if(i!==null&&jS(i),i=jd(e,t,r,o),i===null&&rd(e,t,o,Wl,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else rd(e,t,o,null,r)}}var Wl=null;function jd(e,t,r,o){if(Wl=null,e=pp(o),e=Rr(e),e!==null)if(t=Wr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=$S(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wl=e,null}function LS(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(l1()){case fp:return 1;case PS:return 4;case Ul:case s1:return 16;case ES:return 536870912;default:return 16}default:return 16}}var Kn=null,yp=null,zl=null;function US(){if(zl)return zl;var e,t=yp,r=t.length,o,n="value"in Kn?Kn.value:Kn.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return zl=n.slice(e,1<o?1-o:void 0)}function Il(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 pl(){return!0}function fx(){return!1}function Tt(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?pl:fx,this.isPropagationStopped=fx,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=pl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=pl)},persist:function(){},isPersistent:pl}),t}var Po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=Tt(Po),ia=je({},Po,{view:0,detail:0}),b1=Tt(ia),Yu,Qu,_i,as=je({},ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xp,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!==_i&&(_i&&e.type==="mousemove"?(Yu=e.screenX-_i.screenX,Qu=e.screenY-_i.screenY):Qu=Yu=0,_i=e),Yu)},movementY:function(e){return"movementY"in e?e.movementY:Qu}}),mx=Tt(as),k1=je({},as,{dataTransfer:0}),_1=Tt(k1),$1=je({},ia,{relatedTarget:0}),qu=Tt($1),w1=je({},Po,{animationName:0,elapsedTime:0,pseudoElement:0}),z1=Tt(w1),I1=je({},Po,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),P1=Tt(I1),E1=je({},Po,{data:0}),gx=Tt(E1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C1={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"},j1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function T1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j1[e])?!!t[e]:!1}function xp(){return T1}var O1=je({},ia,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xp,charCode:function(e){return e.type==="keypress"?Il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),N1=Tt(O1),D1=je({},as,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vx=Tt(D1),L1=je({},ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xp}),U1=Tt(L1),A1=je({},Po,{propertyName:0,elapsedTime:0,pseudoElement:0}),F1=Tt(A1),W1=je({},as,{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}),M1=Tt(W1),Z1=[9,13,27,32],Sp=Cn&&"CompositionEvent"in window,Oi=null;Cn&&"documentMode"in document&&(Oi=document.documentMode);var B1=Cn&&"TextEvent"in window&&!Oi,AS=Cn&&(!Sp||Oi&&8<Oi&&11>=Oi),yx=" ",hx=!1;function FS(e,t){switch(e){case"keyup":return Z1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var oo=!1;function V1(e,t){switch(e){case"compositionend":return WS(t);case"keypress":return t.which!==32?null:(hx=!0,yx);case"textInput":return e=t.data,e===yx&&hx?null:e;default:return null}}function H1(e,t){if(oo)return e==="compositionend"||!Sp&&FS(e,t)?(e=US(),zl=yp=Kn=null,oo=!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 AS&&t.locale!=="ko"?null:t.data;default:return null}}var J1={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 xx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!J1[e.type]:t==="textarea"}function MS(e,t,r,o){xS(o),t=Ml(t,"onChange"),0<t.length&&(r=new hp("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Ni=null,Ji=null;function G1(e){qS(e,0)}function ls(e){var t=lo(e);if(pS(t))return e}function X1(e,t){if(e==="change")return t}var ZS=!1;Cn&&(Cn?(ml="oninput"in document,ml||(ed=document.createElement("div"),ed.setAttribute("oninput","return;"),ml=typeof ed.oninput=="function"),fl=ml):fl=!1,ZS=fl&&(!document.documentMode||9<document.documentMode));var fl,ml,ed;function Sx(){Ni&&(Ni.detachEvent("onpropertychange",BS),Ji=Ni=null)}function BS(e){if(e.propertyName==="value"&&ls(Ji)){var t=[];MS(t,Ji,e,pp(e)),_S(G1,t)}}function K1(e,t,r){e==="focusin"?(Sx(),Ni=t,Ji=r,Ni.attachEvent("onpropertychange",BS)):e==="focusout"&&Sx()}function Y1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ls(Ji)}function Q1(e,t){if(e==="click")return ls(t)}function q1(e,t){if(e==="input"||e==="change")return ls(t)}function ez(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var on=typeof Object.is=="function"?Object.is:ez;function Gi(e,t){if(on(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!md.call(t,n)||!on(e[n],t[n]))return!1}return!0}function bx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function kx(e,t){var r=bx(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=bx(r)}}function VS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?VS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function HS(){for(var e=window,t=Nl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Nl(e.document)}return t}function bp(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")}function tz(e){var t=HS(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&VS(r.ownerDocument.documentElement,r)){if(o!==null&&bp(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=kx(r,i);var a=kx(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var nz=Cn&&"documentMode"in document&&11>=document.documentMode,io=null,Td=null,Di=null,Od=!1;function _x(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Od||io==null||io!==Nl(o)||(o=io,"selectionStart"in o&&bp(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Di&&Gi(Di,o)||(Di=o,o=Ml(Td,"onSelect"),0<o.length&&(t=new hp("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=io)))}function gl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ao={animationend:gl("Animation","AnimationEnd"),animationiteration:gl("Animation","AnimationIteration"),animationstart:gl("Animation","AnimationStart"),transitionend:gl("Transition","TransitionEnd")},td={},JS={};Cn&&(JS=document.createElement("div").style,"AnimationEvent"in window||(delete ao.animationend.animation,delete ao.animationiteration.animation,delete ao.animationstart.animation),"TransitionEvent"in window||delete ao.transitionend.transition);function ss(e){if(td[e])return td[e];if(!ao[e])return e;var t=ao[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in JS)return td[e]=t[r];return e}var GS=ss("animationend"),XS=ss("animationiteration"),KS=ss("animationstart"),YS=ss("transitionend"),QS=new Map,$x="abort auxClick 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(" ");function sr(e,t){QS.set(e,t),Fr(t,[e])}for(vl=0;vl<$x.length;vl++)yl=$x[vl],wx=yl.toLowerCase(),zx=yl[0].toUpperCase()+yl.slice(1),sr(wx,"on"+zx);var yl,wx,zx,vl;sr(GS,"onAnimationEnd");sr(XS,"onAnimationIteration");sr(KS,"onAnimationStart");sr("dblclick","onDoubleClick");sr("focusin","onFocus");sr("focusout","onBlur");sr(YS,"onTransitionEnd");bo("onMouseEnter",["mouseout","mouseover"]);bo("onMouseLeave",["mouseout","mouseover"]);bo("onPointerEnter",["pointerout","pointerover"]);bo("onPointerLeave",["pointerout","pointerover"]);Fr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Fr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Fr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Fr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Fr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Fr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ci="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(" "),rz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ci));function Ix(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,r1(o,t,void 0,e),e.currentTarget=null}function qS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;Ix(n,l,c),i=s}else for(a=0;a<o.length;a++){if(l=o[a],s=l.instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;Ix(n,l,c),i=s}}}if(Ll)throw e=Ed,Ll=!1,Ed=null,e}function _e(e,t){var r=t[Ad];r===void 0&&(r=t[Ad]=new Set);var o=e+"__bubble";r.has(o)||(eb(t,e,2,!1),r.add(o))}function nd(e,t,r){var o=0;t&&(o|=4),eb(r,e,o,t)}var hl="_reactListening"+Math.random().toString(36).slice(2);function Xi(e){if(!e[hl]){e[hl]=!0,lS.forEach(function(r){r!=="selectionchange"&&(rz.has(r)||nd(r,!1,e),nd(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hl]||(t[hl]=!0,nd("selectionchange",!1,t))}}function eb(e,t,r,o){switch(LS(t)){case 1:var n=x1;break;case 4:n=S1;break;default:n=vp}r=n.bind(null,t,r,e),n=void 0,!Pd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function rd(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var l=o.stateNode.containerInfo;if(l===n||l.nodeType===8&&l.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===n||s.nodeType===8&&s.parentNode===n))return;a=a.return}for(;l!==null;){if(a=Rr(l),a===null)return;if(s=a.tag,s===5||s===6){o=i=a;continue e}l=l.parentNode}}o=o.return}_S(function(){var c=i,u=pp(r),p=[];e:{var f=QS.get(e);if(f!==void 0){var g=hp,x=e;switch(e){case"keypress":if(Il(r)===0)break e;case"keydown":case"keyup":g=N1;break;case"focusin":x="focus",g=qu;break;case"focusout":x="blur",g=qu;break;case"beforeblur":case"afterblur":g=qu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=mx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=_1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=U1;break;case GS:case XS:case KS:g=z1;break;case YS:g=F1;break;case"scroll":g=b1;break;case"wheel":g=M1;break;case"copy":case"cut":case"paste":g=P1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=vx}var b=(t&4)!==0,w=!b&&e==="scroll",v=b?f!==null?f+"Capture":null:f;b=[];for(var m=c,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=Zi(m,v),S!=null&&b.push(Ki(m,S,y)))),w)break;m=m.return}0<b.length&&(f=new g(f,x,null,r,u),p.push({event:f,listeners:b}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&r!==zd&&(x=r.relatedTarget||r.fromElement)&&(Rr(x)||x[jn]))break e;if((g||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,g?(x=r.relatedTarget||r.toElement,g=c,x=x?Rr(x):null,x!==null&&(w=Wr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=c),g!==x)){if(b=mx,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=vx,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=g==null?f:lo(g),y=x==null?f:lo(x),f=new b(S,m+"leave",g,r,u),f.target=w,f.relatedTarget=y,S=null,Rr(u)===c&&(b=new b(v,m+"enter",x,r,u),b.target=y,b.relatedTarget=w,S=b),w=S,g&&x)t:{for(b=g,v=x,m=0,y=b;y;y=to(y))m++;for(y=0,S=v;S;S=to(S))y++;for(;0<m-y;)b=to(b),m--;for(;0<y-m;)v=to(v),y--;for(;m--;){if(b===v||v!==null&&b===v.alternate)break t;b=to(b),v=to(v)}b=null}else b=null;g!==null&&Px(p,f,g,b,!1),x!==null&&w!==null&&Px(p,w,x,b,!0)}}e:{if(f=c?lo(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var _=X1;else if(xx(f))if(ZS)_=q1;else{_=Y1;var E=K1}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=Q1);if(_&&(_=_(e,c))){MS(p,_,r,u);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&bd(f,"number",f.value)}switch(E=c?lo(c):window,e){case"focusin":(xx(E)||E.contentEditable==="true")&&(io=E,Td=c,Di=null);break;case"focusout":Di=Td=io=null;break;case"mousedown":Od=!0;break;case"contextmenu":case"mouseup":case"dragend":Od=!1,_x(p,r,u);break;case"selectionchange":if(nz)break;case"keydown":case"keyup":_x(p,r,u)}var T;if(Sp)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else oo?FS(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(AS&&r.locale!=="ko"&&(oo||A!=="onCompositionStart"?A==="onCompositionEnd"&&oo&&(T=US()):(Kn=u,yp="value"in Kn?Kn.value:Kn.textContent,oo=!0)),E=Ml(c,A),0<E.length&&(A=new gx(A,e,null,r,u),p.push({event:A,listeners:E}),T?A.data=T:(T=WS(r),T!==null&&(A.data=T)))),(T=B1?V1(e,r):H1(e,r))&&(c=Ml(c,"onBeforeInput"),0<c.length&&(u=new gx("onBeforeInput","beforeinput",null,r,u),p.push({event:u,listeners:c}),u.data=T))}qS(p,t)})}function Ki(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ml(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=Zi(e,r),i!=null&&o.unshift(Ki(e,i,n)),i=Zi(e,t),i!=null&&o.push(Ki(e,i,n))),e=e.return}return o}function to(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Px(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===o)break;l.tag===5&&c!==null&&(l=c,n?(s=Zi(r,i),s!=null&&a.unshift(Ki(r,s,l))):n||(s=Zi(r,i),s!=null&&a.push(Ki(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var oz=/\r\n?/g,iz=/\u0000|\uFFFD/g;function Ex(e){return(typeof e=="string"?e:""+e).replace(oz,`
|
|
6
|
-
`).replace(iz,"")}function xl(e,t,r){if(t=Ex(t),Ex(e)!==t&&r)throw Error(R(425))}function Zl(){}var Nd=null,Dd=null;function Ld(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ud=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,Rx=typeof Promise=="function"?Promise:void 0,lz=typeof queueMicrotask=="function"?queueMicrotask:typeof Rx<"u"?function(e){return Rx.resolve(null).then(e).catch(sz)}:Ud;function sz(e){setTimeout(function(){throw e})}function od(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),Hi(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);Hi(t)}function tr(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==="$?")break;if(t==="/$")return null}}return e}function Cx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Eo=Math.random().toString(36).slice(2),vn="__reactFiber$"+Eo,Yi="__reactProps$"+Eo,jn="__reactContainer$"+Eo,Ad="__reactEvents$"+Eo,cz="__reactListeners$"+Eo,uz="__reactHandles$"+Eo;function Rr(e){var t=e[vn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[jn]||r[vn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Cx(e);e!==null;){if(r=e[vn])return r;e=Cx(e)}return t}e=r,r=e.parentNode}return null}function aa(e){return e=e[vn]||e[jn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function cs(e){return e[Yi]||null}var Fd=[],so=-1;function cr(e){return{current:e}}function $e(e){0>so||(e.current=Fd[so],Fd[so]=null,so--)}function be(e,t){so++,Fd[so]=e.current,e.current=t}var lr={},at=cr(lr),kt=cr(!1),Nr=lr;function ko(e,t){var r=e.type.contextTypes;if(!r)return lr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function _t(e){return e=e.childContextTypes,e!=null}function Bl(){$e(kt),$e(at)}function jx(e,t,r){if(at.current!==lr)throw Error(R(168));be(at,t),be(kt,r)}function tb(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(R(108,Kw(e)||"Unknown",n));return je({},r,o)}function Vl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||lr,Nr=at.current,be(at,e),be(kt,kt.current),!0}function Tx(e,t,r){var o=e.stateNode;if(!o)throw Error(R(169));r?(e=tb(e,t,Nr),o.__reactInternalMemoizedMergedChildContext=e,$e(kt),$e(at),be(at,e)):$e(kt),be(kt,r)}var In=null,us=!1,id=!1;function nb(e){In===null?In=[e]:In.push(e)}function dz(e){us=!0,nb(e)}function ur(){if(!id&&In!==null){id=!0;var e=0,t=me;try{var r=In;for(me=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}In=null,us=!1}catch(n){throw In!==null&&(In=In.slice(e+1)),IS(fp,ur),n}finally{me=t,id=!1}}return null}var co=[],uo=0,Hl=null,Jl=0,Zt=[],Bt=0,Dr=null,Pn=1,En="";function Pr(e,t){co[uo++]=Jl,co[uo++]=Hl,Hl=e,Jl=t}function rb(e,t,r){Zt[Bt++]=Pn,Zt[Bt++]=En,Zt[Bt++]=Dr,Dr=e;var o=Pn;e=En;var n=32-nn(o)-1;o&=~(1<<n),r+=1;var i=32-nn(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Pn=1<<32-nn(t)+n|r<<n|o,En=i+e}else Pn=1<<i|r<<n|o,En=e}function kp(e){e.return!==null&&(Pr(e,1),rb(e,1,0))}function _p(e){for(;e===Hl;)Hl=co[--uo],co[uo]=null,Jl=co[--uo],co[uo]=null;for(;e===Dr;)Dr=Zt[--Bt],Zt[Bt]=null,En=Zt[--Bt],Zt[Bt]=null,Pn=Zt[--Bt],Zt[Bt]=null}var Ct=null,Rt=null,Pe=!1,tn=null;function ob(e,t){var r=Vt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Ox(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ct=e,Rt=tr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ct=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Dr!==null?{id:Pn,overflow:En}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Vt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Ct=e,Rt=null,!0):!1;default:return!1}}function Wd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Md(e){if(Pe){var t=Rt;if(t){var r=t;if(!Ox(e,t)){if(Wd(e))throw Error(R(418));t=tr(r.nextSibling);var o=Ct;t&&Ox(e,t)?ob(o,r):(e.flags=e.flags&-4097|2,Pe=!1,Ct=e)}}else{if(Wd(e))throw Error(R(418));e.flags=e.flags&-4097|2,Pe=!1,Ct=e}}}function Nx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ct=e}function Sl(e){if(e!==Ct)return!1;if(!Pe)return Nx(e),Pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ld(e.type,e.memoizedProps)),t&&(t=Rt)){if(Wd(e))throw ib(),Error(R(418));for(;t;)ob(e,t),t=tr(t.nextSibling)}if(Nx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Rt=tr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=Ct?tr(e.stateNode.nextSibling):null;return!0}function ib(){for(var e=Rt;e;)e=tr(e.nextSibling)}function _o(){Rt=Ct=null,Pe=!1}function $p(e){tn===null?tn=[e]:tn.push(e)}var pz=Nn.ReactCurrentBatchConfig;function $i(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var o=r.stateNode}if(!o)throw Error(R(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=n.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function bl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Dx(e){var t=e._init;return t(e._payload)}function ab(e){function t(v,m){if(e){var y=v.deletions;y===null?(v.deletions=[m],v.flags|=16):y.push(m)}}function r(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function o(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function n(v,m){return v=ir(v,m),v.index=0,v.sibling=null,v}function i(v,m,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<m?(v.flags|=2,m):y):(v.flags|=2,m)):(v.flags|=1048576,m)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,y,S){return m===null||m.tag!==6?(m=pd(y,v.mode,S),m.return=v,m):(m=n(m,y),m.return=v,m)}function s(v,m,y,S){var _=y.type;return _===ro?u(v,m,y.props.children,S,y.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Hn&&Dx(_)===m.type)?(S=n(m,y.props),S.ref=$i(v,m,y),S.return=v,S):(S=Ol(y.type,y.key,y.props,null,v.mode,S),S.ref=$i(v,m,y),S.return=v,S)}function c(v,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=fd(y,v.mode,S),m.return=v,m):(m=n(m,y.children||[]),m.return=v,m)}function u(v,m,y,S,_){return m===null||m.tag!==7?(m=Or(y,v.mode,S,_),m.return=v,m):(m=n(m,y),m.return=v,m)}function p(v,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=pd(""+m,v.mode,y),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case al:return y=Ol(m.type,m.key,m.props,null,v.mode,y),y.ref=$i(v,null,m),y.return=v,y;case no:return m=fd(m,v.mode,y),m.return=v,m;case Hn:var S=m._init;return p(v,S(m._payload),y)}if(Ei(m)||Si(m))return m=Or(m,v.mode,y,null),m.return=v,m;bl(v,m)}return null}function f(v,m,y,S){var _=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:l(v,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case al:return y.key===_?s(v,m,y,S):null;case no:return y.key===_?c(v,m,y,S):null;case Hn:return _=y._init,f(v,m,_(y._payload),S)}if(Ei(y)||Si(y))return _!==null?null:u(v,m,y,S,null);bl(v,y)}return null}function g(v,m,y,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,l(m,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case al:return v=v.get(S.key===null?y:S.key)||null,s(m,v,S,_);case no:return v=v.get(S.key===null?y:S.key)||null,c(m,v,S,_);case Hn:var E=S._init;return g(v,m,y,E(S._payload),_)}if(Ei(S)||Si(S))return v=v.get(y)||null,u(m,v,S,_,null);bl(m,S)}return null}function x(v,m,y,S){for(var _=null,E=null,T=m,A=m=0,J=null;T!==null&&A<y.length;A++){T.index>A?(J=T,T=null):J=T.sibling;var W=f(v,T,y[A],S);if(W===null){T===null&&(T=J);break}e&&T&&W.alternate===null&&t(v,T),m=i(W,m,A),E===null?_=W:E.sibling=W,E=W,T=J}if(A===y.length)return r(v,T),Pe&&Pr(v,A),_;if(T===null){for(;A<y.length;A++)T=p(v,y[A],S),T!==null&&(m=i(T,m,A),E===null?_=T:E.sibling=T,E=T);return Pe&&Pr(v,A),_}for(T=o(v,T);A<y.length;A++)J=g(T,v,A,y[A],S),J!==null&&(e&&J.alternate!==null&&T.delete(J.key===null?A:J.key),m=i(J,m,A),E===null?_=J:E.sibling=J,E=J);return e&&T.forEach(function(Me){return t(v,Me)}),Pe&&Pr(v,A),_}function b(v,m,y,S){var _=Si(y);if(typeof _!="function")throw Error(R(150));if(y=_.call(y),y==null)throw Error(R(151));for(var E=_=null,T=m,A=m=0,J=null,W=y.next();T!==null&&!W.done;A++,W=y.next()){T.index>A?(J=T,T=null):J=T.sibling;var Me=f(v,T,W.value,S);if(Me===null){T===null&&(T=J);break}e&&T&&Me.alternate===null&&t(v,T),m=i(Me,m,A),E===null?_=Me:E.sibling=Me,E=Me,T=J}if(W.done)return r(v,T),Pe&&Pr(v,A),_;if(T===null){for(;!W.done;A++,W=y.next())W=p(v,W.value,S),W!==null&&(m=i(W,m,A),E===null?_=W:E.sibling=W,E=W);return Pe&&Pr(v,A),_}for(T=o(v,T);!W.done;A++,W=y.next())W=g(T,v,A,W.value,S),W!==null&&(e&&W.alternate!==null&&T.delete(W.key===null?A:W.key),m=i(W,m,A),E===null?_=W:E.sibling=W,E=W);return e&&T.forEach(function(xt){return t(v,xt)}),Pe&&Pr(v,A),_}function w(v,m,y,S){if(typeof y=="object"&&y!==null&&y.type===ro&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case al:e:{for(var _=y.key,E=m;E!==null;){if(E.key===_){if(_=y.type,_===ro){if(E.tag===7){r(v,E.sibling),m=n(E,y.props.children),m.return=v,v=m;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Hn&&Dx(_)===E.type){r(v,E.sibling),m=n(E,y.props),m.ref=$i(v,E,y),m.return=v,v=m;break e}r(v,E);break}else t(v,E);E=E.sibling}y.type===ro?(m=Or(y.props.children,v.mode,S,y.key),m.return=v,v=m):(S=Ol(y.type,y.key,y.props,null,v.mode,S),S.ref=$i(v,m,y),S.return=v,v=S)}return a(v);case no:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=n(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=fd(y,v.mode,S),m.return=v,v=m}return a(v);case Hn:return E=y._init,w(v,m,E(y._payload),S)}if(Ei(y))return x(v,m,y,S);if(Si(y))return b(v,m,y,S);bl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,y),m.return=v,v=m):(r(v,m),m=pd(y,v.mode,S),m.return=v,v=m),a(v)):r(v,m)}return w}var $o=ab(!0),lb=ab(!1),Gl=cr(null),Xl=null,po=null,wp=null;function zp(){wp=po=Xl=null}function Ip(e){var t=Gl.current;$e(Gl),e._currentValue=t}function Zd(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function xo(e,t){Xl=e,wp=po=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(bt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(wp!==e)if(e={context:e,memoizedValue:t,next:null},po===null){if(Xl===null)throw Error(R(308));po=e,Xl.dependencies={lanes:0,firstContext:e}}else po=po.next=e;return t}var Cr=null;function Pp(e){Cr===null?Cr=[e]:Cr.push(e)}function sb(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Pp(t)):(r.next=n.next,n.next=r),t.interleaved=r,Tn(e,o)}function Tn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Jn=!1;function Ep(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cb(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Rn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(se&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Tn(e,r)}return n=o.interleaved,n===null?(t.next=t,Pp(o)):(t.next=n.next,n.next=t),o.interleaved=t,Tn(e,r)}function Pl(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,mp(e,r)}}function Lx(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Kl(e,t,r,o){var n=e.updateQueue;Jn=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,l=n.shared.pending;if(l!==null){n.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(i!==null){var p=n.baseState;a=0,u=c=s=null,l=i;do{var f=l.lane,g=l.eventTime;if((o&f)===f){u!==null&&(u=u.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(f=t,g=r,b.tag){case 1:if(x=b.payload,typeof x=="function"){p=x.call(g,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,f=typeof x=="function"?x.call(g,p,f):x,f==null)break e;p=je({},p,f);break e;case 2:Jn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(c=u=g,s=p):u=u.next=g,a|=f;if(l=l.next,l===null){if(l=n.shared.pending,l===null)break;f=l,l=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(u===null&&(s=p),n.baseState=s,n.firstBaseUpdate=c,n.lastBaseUpdate=u,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Ur|=a,e.lanes=a,e.memoizedState=p}}function Ux(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(R(191,n));n.call(o)}}}var la={},hn=cr(la),Qi=cr(la),qi=cr(la);function jr(e){if(e===la)throw Error(R(174));return e}function Rp(e,t){switch(be(qi,t),be(Qi,e),be(hn,la),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_d(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=_d(t,e)}$e(hn),be(hn,t)}function wo(){$e(hn),$e(Qi),$e(qi)}function ub(e){jr(qi.current);var t=jr(hn.current),r=_d(t,e.type);t!==r&&(be(Qi,e),be(hn,r))}function Cp(e){Qi.current===e&&($e(hn),$e(Qi))}var Re=cr(0);function Yl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 ad=[];function jp(){for(var e=0;e<ad.length;e++)ad[e]._workInProgressVersionPrimary=null;ad.length=0}var El=Nn.ReactCurrentDispatcher,ld=Nn.ReactCurrentBatchConfig,Lr=0,Ce=null,Be=null,Xe=null,Ql=!1,Li=!1,ea=0,fz=0;function rt(){throw Error(R(321))}function Tp(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!on(e[r],t[r]))return!1;return!0}function Op(e,t,r,o,n,i){if(Lr=i,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,El.current=e===null||e.memoizedState===null?yz:hz,e=r(o,n),Li){i=0;do{if(Li=!1,ea=0,25<=i)throw Error(R(301));i+=1,Xe=Be=null,t.updateQueue=null,El.current=xz,e=r(o,n)}while(Li)}if(El.current=ql,t=Be!==null&&Be.next!==null,Lr=0,Xe=Be=Ce=null,Ql=!1,t)throw Error(R(300));return e}function Np(){var e=ea!==0;return ea=0,e}function gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?Ce.memoizedState=Xe=e:Xe=Xe.next=e,Xe}function Gt(){if(Be===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=Xe===null?Ce.memoizedState:Xe.next;if(t!==null)Xe=t,Be=e;else{if(e===null)throw Error(R(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Xe===null?Ce.memoizedState=Xe=e:Xe=Xe.next=e}return Xe}function ta(e,t){return typeof t=="function"?t(e):t}function sd(e){var t=Gt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=Be,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var l=a=null,s=null,c=i;do{var u=c.lane;if((Lr&u)===u)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,Ce.lanes|=u,Ur|=u}c=c.next}while(c!==null&&c!==i);s===null?a=o:s.next=l,on(o,t.memoizedState)||(bt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=s,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Ce.lanes|=i,Ur|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function cd(e){var t=Gt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);on(i,t.memoizedState)||(bt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function db(){}function pb(e,t){var r=Ce,o=Gt(),n=t(),i=!on(o.memoizedState,n);if(i&&(o.memoizedState=n,bt=!0),o=o.queue,Dp(gb.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Xe!==null&&Xe.memoizedState.tag&1){if(r.flags|=2048,na(9,mb.bind(null,r,o,n,t),void 0,null),Ke===null)throw Error(R(349));(Lr&30)!==0||fb(r,t,n)}return n}function fb(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function mb(e,t,r,o){t.value=r,t.getSnapshot=o,vb(t)&&yb(e)}function gb(e,t,r){return r(function(){vb(t)&&yb(e)})}function vb(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!on(e,r)}catch{return!0}}function yb(e){var t=Tn(e,1);t!==null&&rn(t,e,1,-1)}function Ax(e){var t=gn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ta,lastRenderedState:e},t.queue=e,e=e.dispatch=vz.bind(null,Ce,e),[t.memoizedState,e]}function na(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Ce.updateQueue,t===null?(t={lastEffect:null,stores:null},Ce.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function hb(){return Gt().memoizedState}function Rl(e,t,r,o){var n=gn();Ce.flags|=e,n.memoizedState=na(1|t,r,void 0,o===void 0?null:o)}function ds(e,t,r,o){var n=Gt();o=o===void 0?null:o;var i=void 0;if(Be!==null){var a=Be.memoizedState;if(i=a.destroy,o!==null&&Tp(o,a.deps)){n.memoizedState=na(t,r,i,o);return}}Ce.flags|=e,n.memoizedState=na(1|t,r,i,o)}function Fx(e,t){return Rl(8390656,8,e,t)}function Dp(e,t){return ds(2048,8,e,t)}function xb(e,t){return ds(4,2,e,t)}function Sb(e,t){return ds(4,4,e,t)}function bb(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kb(e,t,r){return r=r!=null?r.concat([e]):null,ds(4,4,bb.bind(null,t,e),r)}function Lp(){}function _b(e,t){var r=Gt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Tp(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function $b(e,t){var r=Gt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Tp(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function wb(e,t,r){return(Lr&21)===0?(e.baseState&&(e.baseState=!1,bt=!0),e.memoizedState=r):(on(r,t)||(r=RS(),Ce.lanes|=r,Ur|=r,e.baseState=!0),t)}function mz(e,t){var r=me;me=r!==0&&4>r?r:4,e(!0);var o=ld.transition;ld.transition={};try{e(!1),t()}finally{me=r,ld.transition=o}}function zb(){return Gt().memoizedState}function gz(e,t,r){var o=or(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},Ib(e))Pb(t,r);else if(r=sb(e,t,r,o),r!==null){var n=ft();rn(r,e,o,n),Eb(r,t,o)}}function vz(e,t,r){var o=or(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ib(e))Pb(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(n.hasEagerState=!0,n.eagerState=l,on(l,a)){var s=t.interleaved;s===null?(n.next=n,Pp(t)):(n.next=s.next,s.next=n),t.interleaved=n;return}}catch{}r=sb(e,t,n,o),r!==null&&(n=ft(),rn(r,e,o,n),Eb(r,t,o))}}function Ib(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Pb(e,t){Li=Ql=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Eb(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,mp(e,r)}}var ql={readContext:Jt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},yz={readContext:Jt,useCallback:function(e,t){return gn().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Fx,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rl(4194308,4,bb.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var r=gn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=gn();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=gz.bind(null,Ce,e),[o.memoizedState,e]},useRef:function(e){var t=gn();return e={current:e},t.memoizedState=e},useState:Ax,useDebugValue:Lp,useDeferredValue:function(e){return gn().memoizedState=e},useTransition:function(){var e=Ax(!1),t=e[0];return e=mz.bind(null,e[1]),gn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Ce,n=gn();if(Pe){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ke===null)throw Error(R(349));(Lr&30)!==0||fb(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,Fx(gb.bind(null,o,i,e),[e]),o.flags|=2048,na(9,mb.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=gn(),t=Ke.identifierPrefix;if(Pe){var r=En,o=Pn;r=(o&~(1<<32-nn(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=ea++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=fz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hz={readContext:Jt,useCallback:_b,useContext:Jt,useEffect:Dp,useImperativeHandle:kb,useInsertionEffect:xb,useLayoutEffect:Sb,useMemo:$b,useReducer:sd,useRef:hb,useState:function(){return sd(ta)},useDebugValue:Lp,useDeferredValue:function(e){var t=Gt();return wb(t,Be.memoizedState,e)},useTransition:function(){var e=sd(ta)[0],t=Gt().memoizedState;return[e,t]},useMutableSource:db,useSyncExternalStore:pb,useId:zb,unstable_isNewReconciler:!1},xz={readContext:Jt,useCallback:_b,useContext:Jt,useEffect:Dp,useImperativeHandle:kb,useInsertionEffect:xb,useLayoutEffect:Sb,useMemo:$b,useReducer:cd,useRef:hb,useState:function(){return cd(ta)},useDebugValue:Lp,useDeferredValue:function(e){var t=Gt();return Be===null?t.memoizedState=e:wb(t,Be.memoizedState,e)},useTransition:function(){var e=cd(ta)[0],t=Gt().memoizedState;return[e,t]},useMutableSource:db,useSyncExternalStore:pb,useId:zb,unstable_isNewReconciler:!1};function qt(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Bd(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ps={isMounted:function(e){return(e=e._reactInternals)?Wr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=ft(),n=or(e),i=Rn(o,n);i.payload=t,r!=null&&(i.callback=r),t=nr(e,i,n),t!==null&&(rn(t,e,n,o),Pl(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=ft(),n=or(e),i=Rn(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=nr(e,i,n),t!==null&&(rn(t,e,n,o),Pl(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ft(),o=or(e),n=Rn(r,o);n.tag=2,t!=null&&(n.callback=t),t=nr(e,n,o),t!==null&&(rn(t,e,o,r),Pl(t,e,o))}};function Wx(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!Gi(r,o)||!Gi(n,i):!0}function Rb(e,t,r){var o=!1,n=lr,i=t.contextType;return typeof i=="object"&&i!==null?i=Jt(i):(n=_t(t)?Nr:at.current,o=t.contextTypes,i=(o=o!=null)?ko(e,n):lr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ps,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function Mx(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&ps.enqueueReplaceState(t,t.state,null)}function Vd(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Ep(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Jt(i):(i=_t(t)?Nr:at.current,n.context=ko(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Bd(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&ps.enqueueReplaceState(n,n.state,null),Kl(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function zo(e,t){try{var r="",o=t;do r+=Xw(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
5
|
+
`+n[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{ad=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ui(e):""}function b1(e){switch(e.tag){case 5:return Ui(e.type);case 16:return Ui("Lazy");case 13:return Ui("Suspense");case 19:return Ui("SuspenseList");case 0:case 2:case 15:return e=ld(e.type,!1),e;case 11:return e=ld(e.type.render,!1),e;case 1:return e=ld(e.type,!0),e;default:return""}}function Cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case co:return"Fragment";case so:return"Portal";case Pd:return"Profiler";case kp:return"StrictMode";case Ed:return"Suspense";case Rd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case wb:return(e.displayName||"Context")+".Consumer";case $b:return(e._context.displayName||"Context")+".Provider";case _p:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $p:return t=e.displayName||null,t!==null?t:Cd(e.type)||"Memo";case qn:t=e._payload,e=e._init;try{return Cd(e(t))}catch{}}return null}function S1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cd(t);case 8:return t===kp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ib(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k1(e){var t=Ib(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yl(e){e._valueTracker||(e._valueTracker=k1(e))}function Pb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=Ib(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function Vl(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}}function Td(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function bx(e,t){var r=t.defaultValue==null?"":t.defaultValue,o=t.checked!=null?t.checked:t.defaultChecked;r=fr(t.value!=null?t.value:r),e._wrapperState={initialChecked:o,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Eb(e,t){t=t.checked,t!=null&&Sp(e,"checked",t,!1)}function jd(e,t){Eb(e,t);var r=fr(t.value),o=t.type;if(r!=null)o==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(o==="submit"||o==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Od(e,t.type,r):t.hasOwnProperty("defaultValue")&&Od(e,t.type,fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sx(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!(o!=="submit"&&o!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Od(e,t,r){(t!=="number"||Vl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ai=Array.isArray;function So(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+fr(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Dd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(R(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function kx(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(R(92));if(Ai(r)){if(1<r.length)throw Error(R(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:fr(r)}}function Rb(e,t){var r=fr(t.value),o=fr(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),o!=null&&(e.defaultValue=""+o)}function _x(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Cb(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Nd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Cb(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var hl,Tb=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,o,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,o,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(hl=hl||document.createElement("div"),hl.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=hl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qi(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Mi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_1=["Webkit","ms","Moz","O"];Object.keys(Mi).forEach(function(e){_1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Mi[t]=Mi[e]})});function jb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Mi.hasOwnProperty(e)&&Mi[e]?(""+t).trim():t+"px"}function Ob(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var o=r.indexOf("--")===0,n=jb(r,t[r],o);r==="float"&&(r="cssFloat"),o?e.setProperty(r,n):e[r]=n}}var $1=je({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ld(e,t){if(t){if($1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(R(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(R(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(R(61))}if(t.style!=null&&typeof t.style!="object")throw Error(R(62))}}function Ud(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Ad=null;function wp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fd=null,ko=null,_o=null;function $x(e){if(e=va(e)){if(typeof Fd!="function")throw Error(R(280));var t=e.stateNode;t&&(t=xs(t),Fd(e.stateNode,e.type,t))}}function Db(e){ko?_o?_o.push(e):_o=[e]:ko=e}function Nb(){if(ko){var e=ko,t=_o;if(_o=ko=null,$x(e),t)for(e=0;e<t.length;e++)$x(t[e])}}function Lb(e,t){return e(t)}function Ub(){}var sd=!1;function Ab(e,t,r){if(sd)return e(t,r);sd=!0;try{return Lb(e,t,r)}finally{sd=!1,(ko!==null||_o!==null)&&(Ub(),Nb())}}function qi(e,t){var r=e.stateNode;if(r===null)return null;var o=xs(r);if(o===null)return null;r=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(R(231,t,typeof r));return r}var Wd=!1;if(Un)try{ao={},Object.defineProperty(ao,"passive",{get:function(){Wd=!0}}),window.addEventListener("test",ao,ao),window.removeEventListener("test",ao,ao)}catch{Wd=!1}var ao;function w1(e,t,r,o,n,i,a,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var Zi=!1,Hl=null,Jl=!1,Md=null,z1={onError:function(e){Zi=!0,Hl=e}};function I1(e,t,r,o,n,i,a,l,s){Zi=!1,Hl=null,w1.apply(z1,arguments)}function P1(e,t,r,o,n,i,a,l,s){if(I1.apply(this,arguments),Zi){if(Zi){var c=Hl;Zi=!1,Hl=null}else throw Error(R(198));Jl||(Jl=!0,Md=c)}}function Jr(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Fb(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 wx(e){if(Jr(e)!==e)throw Error(R(188))}function E1(e){var t=e.alternate;if(!t){if(t=Jr(e),t===null)throw Error(R(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return wx(n),e;if(i===o)return wx(n),t;i=i.sibling}throw Error(R(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,l=n.child;l;){if(l===r){a=!0,r=n,o=i;break}if(l===o){a=!0,o=n,r=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===r){a=!0,r=i,o=n;break}if(l===o){a=!0,o=i,r=n;break}l=l.sibling}if(!a)throw Error(R(189))}}if(r.alternate!==o)throw Error(R(190))}if(r.tag!==3)throw Error(R(188));return r.stateNode.current===r?e:t}function Wb(e){return e=E1(e),e!==null?Mb(e):null}function Mb(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Mb(e);if(t!==null)return t;e=e.sibling}return null}var Zb=jt.unstable_scheduleCallback,zx=jt.unstable_cancelCallback,R1=jt.unstable_shouldYield,C1=jt.unstable_requestPaint,Ae=jt.unstable_now,T1=jt.unstable_getCurrentPriorityLevel,zp=jt.unstable_ImmediatePriority,Bb=jt.unstable_UserBlockingPriority,Gl=jt.unstable_NormalPriority,j1=jt.unstable_LowPriority,Vb=jt.unstable_IdlePriority,gs=null,Sn=null;function O1(e){if(Sn&&typeof Sn.onCommitFiberRoot=="function")try{Sn.onCommitFiberRoot(gs,e,void 0,(e.current.flags&128)===128)}catch{}}var on=Math.clz32?Math.clz32:L1,D1=Math.log,N1=Math.LN2;function L1(e){return e>>>=0,e===0?32:31-(D1(e)/N1|0)|0}var xl=64,bl=4194304;function Fi(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xl(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var l=a&~n;l!==0?o=Fi(l):(i&=a,i!==0&&(o=Fi(i)))}else a=r&~n,a!==0?o=Fi(a):i!==0&&(o=Fi(i));if(o===0)return 0;if(t!==0&&t!==o&&(t&n)===0&&(n=o&-o,i=t&-t,n>=i||n===16&&(i&4194240)!==0))return t;if((o&4)!==0&&(o|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=o;0<t;)r=31-on(t),n=1<<r,o|=e[r],t&=~n;return o}function U1(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function A1(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-on(i),l=1<<a,s=n[a];s===-1?((l&r)===0||(l&o)!==0)&&(n[a]=U1(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}function Zd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Hb(){var e=xl;return xl<<=1,(xl&4194240)===0&&(xl=64),e}function cd(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ma(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-on(t),e[t]=r}function F1(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var o=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-on(r),i=1<<n;t[n]=0,o[n]=-1,e[n]=-1,r&=~i}}function Ip(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-on(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}var ge=0;function Jb(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Gb,Pp,Xb,Kb,Yb,Bd=!1,Sl=[],ir=null,ar=null,lr=null,ea=new Map,ta=new Map,tr=[],W1="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 submit".split(" ");function Ix(e,t){switch(e){case"focusin":case"focusout":ir=null;break;case"dragenter":case"dragleave":ar=null;break;case"mouseover":case"mouseout":lr=null;break;case"pointerover":case"pointerout":ea.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ta.delete(t.pointerId)}}function Ci(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=va(t),t!==null&&Pp(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function M1(e,t,r,o,n){switch(t){case"focusin":return ir=Ci(ir,e,t,r,o,n),!0;case"dragenter":return ar=Ci(ar,e,t,r,o,n),!0;case"mouseover":return lr=Ci(lr,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return ea.set(i,Ci(ea.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,ta.set(i,Ci(ta.get(i)||null,e,t,r,o,n)),!0}return!1}function Qb(e){var t=Nr(e.target);if(t!==null){var r=Jr(t);if(r!==null){if(t=r.tag,t===13){if(t=Fb(r),t!==null){e.blockedOn=t,Yb(e.priority,function(){Xb(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Vd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Ad=o,r.target.dispatchEvent(o),Ad=null}else return t=va(r),t!==null&&Pp(t),e.blockedOn=r,!1;t.shift()}return!0}function Px(e,t,r){Dl(e)&&r.delete(t)}function Z1(){Bd=!1,ir!==null&&Dl(ir)&&(ir=null),ar!==null&&Dl(ar)&&(ar=null),lr!==null&&Dl(lr)&&(lr=null),ea.forEach(Px),ta.forEach(Px)}function Ti(e,t){e.blockedOn===t&&(e.blockedOn=null,Bd||(Bd=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,Z1)))}function na(e){function t(n){return Ti(n,e)}if(0<Sl.length){Ti(Sl[0],e);for(var r=1;r<Sl.length;r++){var o=Sl[r];o.blockedOn===e&&(o.blockedOn=null)}}for(ir!==null&&Ti(ir,e),ar!==null&&Ti(ar,e),lr!==null&&Ti(lr,e),ea.forEach(t),ta.forEach(t),r=0;r<tr.length;r++)o=tr[r],o.blockedOn===e&&(o.blockedOn=null);for(;0<tr.length&&(r=tr[0],r.blockedOn===null);)Qb(r),r.blockedOn===null&&tr.shift()}var $o=Mn.ReactCurrentBatchConfig,Kl=!0;function B1(e,t,r,o){var n=ge,i=$o.transition;$o.transition=null;try{ge=1,Ep(e,t,r,o)}finally{ge=n,$o.transition=i}}function V1(e,t,r,o){var n=ge,i=$o.transition;$o.transition=null;try{ge=4,Ep(e,t,r,o)}finally{ge=n,$o.transition=i}}function Ep(e,t,r,o){if(Kl){var n=Vd(e,t,r,o);if(n===null)vd(e,t,o,Yl,r),Ix(e,o);else if(M1(n,e,t,r,o))o.stopPropagation();else if(Ix(e,o),t&4&&-1<W1.indexOf(e)){for(;n!==null;){var i=va(n);if(i!==null&&Gb(i),i=Vd(e,t,r,o),i===null&&vd(e,t,o,Yl,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else vd(e,t,o,null,r)}}var Yl=null;function Vd(e,t,r,o){if(Yl=null,e=wp(o),e=Nr(e),e!==null)if(t=Jr(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Fb(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yl=e,null}function qb(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(T1()){case zp:return 1;case Bb:return 4;case Gl:case j1:return 16;case Vb:return 536870912;default:return 16}default:return 16}}var rr=null,Rp=null,Nl=null;function eS(){if(Nl)return Nl;var e,t=Rp,r=t.length,o,n="value"in rr?rr.value:rr.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return Nl=n.slice(e,1<o?1-o:void 0)}function Ll(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 kl(){return!0}function Ex(){return!1}function Ot(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?kl:Ex,this.isPropagationStopped=Ex,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=kl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=kl)},persist:function(){},isPersistent:kl}),t}var Oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Cp=Ot(Oo),ga=je({},Oo,{view:0,detail:0}),H1=Ot(ga),ud,dd,ji,vs=je({},ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tp,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!==ji&&(ji&&e.type==="mousemove"?(ud=e.screenX-ji.screenX,dd=e.screenY-ji.screenY):dd=ud=0,ji=e),ud)},movementY:function(e){return"movementY"in e?e.movementY:dd}}),Rx=Ot(vs),J1=je({},vs,{dataTransfer:0}),G1=Ot(J1),X1=je({},ga,{relatedTarget:0}),pd=Ot(X1),K1=je({},Oo,{animationName:0,elapsedTime:0,pseudoElement:0}),Y1=Ot(K1),Q1=je({},Oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q1=Ot(Q1),ez=je({},Oo,{data:0}),Cx=Ot(ez),tz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nz={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"},rz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rz[e])?!!t[e]:!1}function Tp(){return oz}var iz=je({},ga,{key:function(e){if(e.key){var t=tz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ll(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tp,charCode:function(e){return e.type==="keypress"?Ll(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ll(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),az=Ot(iz),lz=je({},vs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tx=Ot(lz),sz=je({},ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tp}),cz=Ot(sz),uz=je({},Oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),dz=Ot(uz),pz=je({},vs,{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}),fz=Ot(pz),mz=[9,13,27,32],jp=Un&&"CompositionEvent"in window,Bi=null;Un&&"documentMode"in document&&(Bi=document.documentMode);var gz=Un&&"TextEvent"in window&&!Bi,tS=Un&&(!jp||Bi&&8<Bi&&11>=Bi),jx=" ",Ox=!1;function nS(e,t){switch(e){case"keyup":return mz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var uo=!1;function vz(e,t){switch(e){case"compositionend":return rS(t);case"keypress":return t.which!==32?null:(Ox=!0,jx);case"textInput":return e=t.data,e===jx&&Ox?null:e;default:return null}}function yz(e,t){if(uo)return e==="compositionend"||!jp&&nS(e,t)?(e=eS(),Nl=Rp=rr=null,uo=!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 tS&&t.locale!=="ko"?null:t.data;default:return null}}var hz={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 Dx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hz[e.type]:t==="textarea"}function oS(e,t,r,o){Db(o),t=Ql(t,"onChange"),0<t.length&&(r=new Cp("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Vi=null,ra=null;function xz(e){gS(e,0)}function ys(e){var t=mo(e);if(Pb(t))return e}function bz(e,t){if(e==="change")return t}var iS=!1;Un&&(Un?($l="oninput"in document,$l||(fd=document.createElement("div"),fd.setAttribute("oninput","return;"),$l=typeof fd.oninput=="function"),_l=$l):_l=!1,iS=_l&&(!document.documentMode||9<document.documentMode));var _l,$l,fd;function Nx(){Vi&&(Vi.detachEvent("onpropertychange",aS),ra=Vi=null)}function aS(e){if(e.propertyName==="value"&&ys(ra)){var t=[];oS(t,ra,e,wp(e)),Ab(xz,t)}}function Sz(e,t,r){e==="focusin"?(Nx(),Vi=t,ra=r,Vi.attachEvent("onpropertychange",aS)):e==="focusout"&&Nx()}function kz(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ys(ra)}function _z(e,t){if(e==="click")return ys(t)}function $z(e,t){if(e==="input"||e==="change")return ys(t)}function wz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ln=typeof Object.is=="function"?Object.is:wz;function oa(e,t){if(ln(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!Id.call(t,n)||!ln(e[n],t[n]))return!1}return!0}function Lx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ux(e,t){var r=Lx(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lx(r)}}function lS(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?lS(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function sS(){for(var e=window,t=Vl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Vl(e.document)}return t}function Op(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")}function zz(e){var t=sS(),r=e.focusedElem,o=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&lS(r.ownerDocument.documentElement,r)){if(o!==null&&Op(r)){if(t=o.start,e=o.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!e.extend&&i>o&&(n=o,o=i,i=n),n=Ux(r,i);var a=Ux(r,o);n&&a&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),i>o?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Iz=Un&&"documentMode"in document&&11>=document.documentMode,po=null,Hd=null,Hi=null,Jd=!1;function Ax(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Jd||po==null||po!==Vl(o)||(o=po,"selectionStart"in o&&Op(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Hi&&oa(Hi,o)||(Hi=o,o=Ql(Hd,"onSelect"),0<o.length&&(t=new Cp("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=po)))}function wl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var fo={animationend:wl("Animation","AnimationEnd"),animationiteration:wl("Animation","AnimationIteration"),animationstart:wl("Animation","AnimationStart"),transitionend:wl("Transition","TransitionEnd")},md={},cS={};Un&&(cS=document.createElement("div").style,"AnimationEvent"in window||(delete fo.animationend.animation,delete fo.animationiteration.animation,delete fo.animationstart.animation),"TransitionEvent"in window||delete fo.transitionend.transition);function hs(e){if(md[e])return md[e];if(!fo[e])return e;var t=fo[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in cS)return md[e]=t[r];return e}var uS=hs("animationend"),dS=hs("animationiteration"),pS=hs("animationstart"),fS=hs("transitionend"),mS=new Map,Fx="abort auxClick 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(" ");function gr(e,t){mS.set(e,t),Hr(t,[e])}for(zl=0;zl<Fx.length;zl++)Il=Fx[zl],Wx=Il.toLowerCase(),Mx=Il[0].toUpperCase()+Il.slice(1),gr(Wx,"on"+Mx);var Il,Wx,Mx,zl;gr(uS,"onAnimationEnd");gr(dS,"onAnimationIteration");gr(pS,"onAnimationStart");gr("dblclick","onDoubleClick");gr("focusin","onFocus");gr("focusout","onBlur");gr(fS,"onTransitionEnd");Io("onMouseEnter",["mouseout","mouseover"]);Io("onMouseLeave",["mouseout","mouseover"]);Io("onPointerEnter",["pointerout","pointerover"]);Io("onPointerLeave",["pointerout","pointerover"]);Hr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wi="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(" "),Pz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Wi));function Zx(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,P1(o,t,void 0,e),e.currentTarget=null}function gS(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var l=o[a],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==i&&n.isPropagationStopped())break e;Zx(n,l,c),i=s}else for(a=0;a<o.length;a++){if(l=o[a],s=l.instance,c=l.currentTarget,l=l.listener,s!==i&&n.isPropagationStopped())break e;Zx(n,l,c),i=s}}}if(Jl)throw e=Md,Jl=!1,Md=null,e}function we(e,t){var r=t[Qd];r===void 0&&(r=t[Qd]=new Set);var o=e+"__bubble";r.has(o)||(vS(t,e,2,!1),r.add(o))}function gd(e,t,r){var o=0;t&&(o|=4),vS(r,e,o,t)}var Pl="_reactListening"+Math.random().toString(36).slice(2);function ia(e){if(!e[Pl]){e[Pl]=!0,_b.forEach(function(r){r!=="selectionchange"&&(Pz.has(r)||gd(r,!1,e),gd(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pl]||(t[Pl]=!0,gd("selectionchange",!1,t))}}function vS(e,t,r,o){switch(qb(t)){case 1:var n=B1;break;case 4:n=V1;break;default:n=Ep}r=n.bind(null,t,r,e),n=void 0,!Wd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function vd(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var l=o.stateNode.containerInfo;if(l===n||l.nodeType===8&&l.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===n||s.nodeType===8&&s.parentNode===n))return;a=a.return}for(;l!==null;){if(a=Nr(l),a===null)return;if(s=a.tag,s===5||s===6){o=i=a;continue e}l=l.parentNode}}o=o.return}Ab(function(){var c=i,d=wp(r),p=[];e:{var f=mS.get(e);if(f!==void 0){var g=Cp,x=e;switch(e){case"keypress":if(Ll(r)===0)break e;case"keydown":case"keyup":g=az;break;case"focusin":x="focus",g=pd;break;case"focusout":x="blur",g=pd;break;case"beforeblur":case"afterblur":g=pd;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Rx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=G1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=cz;break;case uS:case dS:case pS:g=Y1;break;case fS:g=dz;break;case"scroll":g=H1;break;case"wheel":g=fz;break;case"copy":case"cut":case"paste":g=q1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Tx}var b=(t&4)!==0,w=!b&&e==="scroll",v=b?f!==null?f+"Capture":null:f;b=[];for(var m=c,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=qi(m,v),S!=null&&b.push(aa(m,S,y)))),w)break;m=m.return}0<b.length&&(f=new g(f,x,null,r,d),p.push({event:f,listeners:b}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&r!==Ad&&(x=r.relatedTarget||r.fromElement)&&(Nr(x)||x[An]))break e;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(x=r.relatedTarget||r.toElement,g=c,x=x?Nr(x):null,x!==null&&(w=Jr(x),x!==w||x.tag!==5&&x.tag!==6)&&(x=null)):(g=null,x=c),g!==x)){if(b=Rx,S="onMouseLeave",v="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=Tx,S="onPointerLeave",v="onPointerEnter",m="pointer"),w=g==null?f:mo(g),y=x==null?f:mo(x),f=new b(S,m+"leave",g,r,d),f.target=w,f.relatedTarget=y,S=null,Nr(d)===c&&(b=new b(v,m+"enter",x,r,d),b.target=y,b.relatedTarget=w,S=b),w=S,g&&x)t:{for(b=g,v=x,m=0,y=b;y;y=lo(y))m++;for(y=0,S=v;S;S=lo(S))y++;for(;0<m-y;)b=lo(b),m--;for(;0<y-m;)v=lo(v),y--;for(;m--;){if(b===v||v!==null&&b===v.alternate)break t;b=lo(b),v=lo(v)}b=null}else b=null;g!==null&&Bx(p,f,g,b,!1),x!==null&&w!==null&&Bx(p,w,x,b,!0)}}e:{if(f=c?mo(c):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var _=bz;else if(Dx(f))if(iS)_=$z;else{_=kz;var E=Sz}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(_=_z);if(_&&(_=_(e,c))){oS(p,_,r,d);break e}E&&E(e,f,c),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&Od(f,"number",f.value)}switch(E=c?mo(c):window,e){case"focusin":(Dx(E)||E.contentEditable==="true")&&(po=E,Hd=c,Hi=null);break;case"focusout":Hi=Hd=po=null;break;case"mousedown":Jd=!0;break;case"contextmenu":case"mouseup":case"dragend":Jd=!1,Ax(p,r,d);break;case"selectionchange":if(Iz)break;case"keydown":case"keyup":Ax(p,r,d)}var O;if(jp)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 uo?nS(e,r)&&(W="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(W="onCompositionStart");W&&(tS&&r.locale!=="ko"&&(uo||W!=="onCompositionStart"?W==="onCompositionEnd"&&uo&&(O=eS()):(rr=d,Rp="value"in rr?rr.value:rr.textContent,uo=!0)),E=Ql(c,W),0<E.length&&(W=new Cx(W,e,null,r,d),p.push({event:W,listeners:E}),O?W.data=O:(O=rS(r),O!==null&&(W.data=O)))),(O=gz?vz(e,r):yz(e,r))&&(c=Ql(c,"onBeforeInput"),0<c.length&&(d=new Cx("onBeforeInput","beforeinput",null,r,d),p.push({event:d,listeners:c}),d.data=O))}gS(p,t)})}function aa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Ql(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n.tag===5&&i!==null&&(n=i,i=qi(e,r),i!=null&&o.unshift(aa(e,i,n)),i=qi(e,t),i!=null&&o.push(aa(e,i,n))),e=e.return}return o}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Bx(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var l=r,s=l.alternate,c=l.stateNode;if(s!==null&&s===o)break;l.tag===5&&c!==null&&(l=c,n?(s=qi(r,i),s!=null&&a.unshift(aa(r,s,l))):n||(s=qi(r,i),s!=null&&a.push(aa(r,s,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var Ez=/\r\n?/g,Rz=/\u0000|\uFFFD/g;function Vx(e){return(typeof e=="string"?e:""+e).replace(Ez,`
|
|
6
|
+
`).replace(Rz,"")}function El(e,t,r){if(t=Vx(t),Vx(e)!==t&&r)throw Error(R(425))}function ql(){}var Gd=null,Xd=null;function Kd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Yd=typeof setTimeout=="function"?setTimeout:void 0,Cz=typeof clearTimeout=="function"?clearTimeout:void 0,Hx=typeof Promise=="function"?Promise:void 0,Tz=typeof queueMicrotask=="function"?queueMicrotask:typeof Hx<"u"?function(e){return Hx.resolve(null).then(e).catch(jz)}:Yd;function jz(e){setTimeout(function(){throw e})}function yd(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),na(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);na(t)}function sr(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==="$?")break;if(t==="/$")return null}}return e}function Jx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Do=Math.random().toString(36).slice(2),bn="__reactFiber$"+Do,la="__reactProps$"+Do,An="__reactContainer$"+Do,Qd="__reactEvents$"+Do,Oz="__reactListeners$"+Do,Dz="__reactHandles$"+Do;function Nr(e){var t=e[bn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[An]||r[bn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Jx(e);e!==null;){if(r=e[bn])return r;e=Jx(e)}return t}e=r,r=e.parentNode}return null}function va(e){return e=e[bn]||e[An],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(R(33))}function xs(e){return e[la]||null}var qd=[],go=-1;function vr(e){return{current:e}}function ze(e){0>go||(e.current=qd[go],qd[go]=null,go--)}function $e(e,t){go++,qd[go]=e.current,e.current=t}var mr={},st=vr(mr),_t=vr(!1),Wr=mr;function Po(e,t){var r=e.type.contextTypes;if(!r)return mr;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var n={},i;for(i in r)n[i]=t[i];return o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function $t(e){return e=e.childContextTypes,e!=null}function es(){ze(_t),ze(st)}function Gx(e,t,r){if(st.current!==mr)throw Error(R(168));$e(st,t),$e(_t,r)}function yS(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,typeof o.getChildContext!="function")return r;o=o.getChildContext();for(var n in o)if(!(n in t))throw Error(R(108,S1(e)||"Unknown",n));return je({},r,o)}function ts(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||mr,Wr=st.current,$e(st,e),$e(_t,_t.current),!0}function Xx(e,t,r){var o=e.stateNode;if(!o)throw Error(R(169));r?(e=yS(e,t,Wr),o.__reactInternalMemoizedMergedChildContext=e,ze(_t),ze(st),$e(st,e)):ze(_t),$e(_t,r)}var On=null,bs=!1,hd=!1;function hS(e){On===null?On=[e]:On.push(e)}function Nz(e){bs=!0,hS(e)}function yr(){if(!hd&&On!==null){hd=!0;var e=0,t=ge;try{var r=On;for(ge=1;e<r.length;e++){var o=r[e];do o=o(!0);while(o!==null)}On=null,bs=!1}catch(n){throw On!==null&&(On=On.slice(e+1)),Zb(zp,yr),n}finally{ge=t,hd=!1}}return null}var vo=[],yo=0,ns=null,rs=0,Bt=[],Vt=0,Mr=null,Dn=1,Nn="";function Or(e,t){vo[yo++]=rs,vo[yo++]=ns,ns=e,rs=t}function xS(e,t,r){Bt[Vt++]=Dn,Bt[Vt++]=Nn,Bt[Vt++]=Mr,Mr=e;var o=Dn;e=Nn;var n=32-on(o)-1;o&=~(1<<n),r+=1;var i=32-on(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,Dn=1<<32-on(t)+n|r<<n|o,Nn=i+e}else Dn=1<<i|r<<n|o,Nn=e}function Dp(e){e.return!==null&&(Or(e,1),xS(e,1,0))}function Np(e){for(;e===ns;)ns=vo[--yo],vo[yo]=null,rs=vo[--yo],vo[yo]=null;for(;e===Mr;)Mr=Bt[--Vt],Bt[Vt]=null,Nn=Bt[--Vt],Bt[Vt]=null,Dn=Bt[--Vt],Bt[Vt]=null}var Tt=null,Ct=null,Ee=!1,rn=null;function bS(e,t){var r=Ht(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Kx(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Tt=e,Ct=sr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Tt=e,Ct=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Mr!==null?{id:Dn,overflow:Nn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Ht(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Tt=e,Ct=null,!0):!1;default:return!1}}function ep(e){return(e.mode&1)!==0&&(e.flags&128)===0}function tp(e){if(Ee){var t=Ct;if(t){var r=t;if(!Kx(e,t)){if(ep(e))throw Error(R(418));t=sr(r.nextSibling);var o=Tt;t&&Kx(e,t)?bS(o,r):(e.flags=e.flags&-4097|2,Ee=!1,Tt=e)}}else{if(ep(e))throw Error(R(418));e.flags=e.flags&-4097|2,Ee=!1,Tt=e}}}function Yx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Tt=e}function Rl(e){if(e!==Tt)return!1;if(!Ee)return Yx(e),Ee=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Kd(e.type,e.memoizedProps)),t&&(t=Ct)){if(ep(e))throw SS(),Error(R(418));for(;t;)bS(e,t),t=sr(t.nextSibling)}if(Yx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ct=sr(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ct=null}}else Ct=Tt?sr(e.stateNode.nextSibling):null;return!0}function SS(){for(var e=Ct;e;)e=sr(e.nextSibling)}function Eo(){Ct=Tt=null,Ee=!1}function Lp(e){rn===null?rn=[e]:rn.push(e)}var Lz=Mn.ReactCurrentBatchConfig;function Oi(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(R(309));var o=r.stateNode}if(!o)throw Error(R(147,e));var n=o,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=n.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(R(284));if(!r._owner)throw Error(R(290,e))}return e}function Cl(e,t){throw e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qx(e){var t=e._init;return t(e._payload)}function kS(e){function t(v,m){if(e){var y=v.deletions;y===null?(v.deletions=[m],v.flags|=16):y.push(m)}}function r(v,m){if(!e)return null;for(;m!==null;)t(v,m),m=m.sibling;return null}function o(v,m){for(v=new Map;m!==null;)m.key!==null?v.set(m.key,m):v.set(m.index,m),m=m.sibling;return v}function n(v,m){return v=pr(v,m),v.index=0,v.sibling=null,v}function i(v,m,y){return v.index=y,e?(y=v.alternate,y!==null?(y=y.index,y<m?(v.flags|=2,m):y):(v.flags|=2,m)):(v.flags|=1048576,m)}function a(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,m,y,S){return m===null||m.tag!==6?(m=wd(y,v.mode,S),m.return=v,m):(m=n(m,y),m.return=v,m)}function s(v,m,y,S){var _=y.type;return _===co?d(v,m,y.props.children,S,y.key):m!==null&&(m.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&Qx(_)===m.type)?(S=n(m,y.props),S.ref=Oi(v,m,y),S.return=v,S):(S=Bl(y.type,y.key,y.props,null,v.mode,S),S.ref=Oi(v,m,y),S.return=v,S)}function c(v,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=zd(y,v.mode,S),m.return=v,m):(m=n(m,y.children||[]),m.return=v,m)}function d(v,m,y,S,_){return m===null||m.tag!==7?(m=Fr(y,v.mode,S,_),m.return=v,m):(m=n(m,y),m.return=v,m)}function p(v,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=wd(""+m,v.mode,y),m.return=v,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case vl:return y=Bl(m.type,m.key,m.props,null,v.mode,y),y.ref=Oi(v,null,m),y.return=v,y;case so:return m=zd(m,v.mode,y),m.return=v,m;case qn:var S=m._init;return p(v,S(m._payload),y)}if(Ai(m)||Ri(m))return m=Fr(m,v.mode,y,null),m.return=v,m;Cl(v,m)}return null}function f(v,m,y,S){var _=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return _!==null?null:l(v,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case vl:return y.key===_?s(v,m,y,S):null;case so:return y.key===_?c(v,m,y,S):null;case qn:return _=y._init,f(v,m,_(y._payload),S)}if(Ai(y)||Ri(y))return _!==null?null:d(v,m,y,S,null);Cl(v,y)}return null}function g(v,m,y,S,_){if(typeof S=="string"&&S!==""||typeof S=="number")return v=v.get(y)||null,l(m,v,""+S,_);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case vl:return v=v.get(S.key===null?y:S.key)||null,s(m,v,S,_);case so:return v=v.get(S.key===null?y:S.key)||null,c(m,v,S,_);case qn:var E=S._init;return g(v,m,y,E(S._payload),_)}if(Ai(S)||Ri(S))return v=v.get(y)||null,d(m,v,S,_,null);Cl(m,S)}return null}function x(v,m,y,S){for(var _=null,E=null,O=m,W=m=0,G=null;O!==null&&W<y.length;W++){O.index>W?(G=O,O=null):G=O.sibling;var Z=f(v,O,y[W],S);if(Z===null){O===null&&(O=G);break}e&&O&&Z.alternate===null&&t(v,O),m=i(Z,m,W),E===null?_=Z:E.sibling=Z,E=Z,O=G}if(W===y.length)return r(v,O),Ee&&Or(v,W),_;if(O===null){for(;W<y.length;W++)O=p(v,y[W],S),O!==null&&(m=i(O,m,W),E===null?_=O:E.sibling=O,E=O);return Ee&&Or(v,W),_}for(O=o(v,O);W<y.length;W++)G=g(O,v,W,y[W],S),G!==null&&(e&&G.alternate!==null&&O.delete(G.key===null?W:G.key),m=i(G,m,W),E===null?_=G:E.sibling=G,E=G);return e&&O.forEach(function(Ze){return t(v,Ze)}),Ee&&Or(v,W),_}function b(v,m,y,S){var _=Ri(y);if(typeof _!="function")throw Error(R(150));if(y=_.call(y),y==null)throw Error(R(151));for(var E=_=null,O=m,W=m=0,G=null,Z=y.next();O!==null&&!Z.done;W++,Z=y.next()){O.index>W?(G=O,O=null):G=O.sibling;var Ze=f(v,O,Z.value,S);if(Ze===null){O===null&&(O=G);break}e&&O&&Ze.alternate===null&&t(v,O),m=i(Ze,m,W),E===null?_=Ze:E.sibling=Ze,E=Ze,O=G}if(Z.done)return r(v,O),Ee&&Or(v,W),_;if(O===null){for(;!Z.done;W++,Z=y.next())Z=p(v,Z.value,S),Z!==null&&(m=i(Z,m,W),E===null?_=Z:E.sibling=Z,E=Z);return Ee&&Or(v,W),_}for(O=o(v,O);!Z.done;W++,Z=y.next())Z=g(O,v,W,Z.value,S),Z!==null&&(e&&Z.alternate!==null&&O.delete(Z.key===null?W:Z.key),m=i(Z,m,W),E===null?_=Z:E.sibling=Z,E=Z);return e&&O.forEach(function(bt){return t(v,bt)}),Ee&&Or(v,W),_}function w(v,m,y,S){if(typeof y=="object"&&y!==null&&y.type===co&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case vl:e:{for(var _=y.key,E=m;E!==null;){if(E.key===_){if(_=y.type,_===co){if(E.tag===7){r(v,E.sibling),m=n(E,y.props.children),m.return=v,v=m;break e}}else if(E.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===qn&&Qx(_)===E.type){r(v,E.sibling),m=n(E,y.props),m.ref=Oi(v,E,y),m.return=v,v=m;break e}r(v,E);break}else t(v,E);E=E.sibling}y.type===co?(m=Fr(y.props.children,v.mode,S,y.key),m.return=v,v=m):(S=Bl(y.type,y.key,y.props,null,v.mode,S),S.ref=Oi(v,m,y),S.return=v,v=S)}return a(v);case so:e:{for(E=y.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){r(v,m.sibling),m=n(m,y.children||[]),m.return=v,v=m;break e}else{r(v,m);break}else t(v,m);m=m.sibling}m=zd(y,v.mode,S),m.return=v,v=m}return a(v);case qn:return E=y._init,w(v,m,E(y._payload),S)}if(Ai(y))return x(v,m,y,S);if(Ri(y))return b(v,m,y,S);Cl(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(r(v,m.sibling),m=n(m,y),m.return=v,v=m):(r(v,m),m=wd(y,v.mode,S),m.return=v,v=m),a(v)):r(v,m)}return w}var Ro=kS(!0),_S=kS(!1),os=vr(null),is=null,ho=null,Up=null;function Ap(){Up=ho=is=null}function Fp(e){var t=os.current;ze(os),e._currentValue=t}function np(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function wo(e,t){is=e,Up=ho=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(kt=!0),e.firstContext=null)}function Gt(e){var t=e._currentValue;if(Up!==e)if(e={context:e,memoizedValue:t,next:null},ho===null){if(is===null)throw Error(R(308));ho=e,is.dependencies={lanes:0,firstContext:e}}else ho=ho.next=e;return t}var Lr=null;function Wp(e){Lr===null?Lr=[e]:Lr.push(e)}function $S(e,t,r,o){var n=t.interleaved;return n===null?(r.next=r,Wp(t)):(r.next=n.next,n.next=r),t.interleaved=r,Fn(e,o)}function Fn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var er=!1;function Mp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function wS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ln(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cr(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(de&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,Fn(e,r)}return n=o.interleaved,n===null?(t.next=t,Wp(o)):(t.next=n.next,n.next=t),o.interleaved=t,Fn(e,r)}function Ul(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ip(e,r)}}function qx(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,effects:o.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function as(e,t,r,o){var n=e.updateQueue;er=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,l=n.shared.pending;if(l!==null){n.shared.pending=null;var s=l,c=s.next;s.next=null,a===null?i=c:a.next=c,a=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==a&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(i!==null){var p=n.baseState;a=0,d=c=s=null,l=i;do{var f=l.lane,g=l.eventTime;if((o&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var x=e,b=l;switch(f=t,g=r,b.tag){case 1:if(x=b.payload,typeof x=="function"){p=x.call(g,p,f);break e}p=x;break e;case 3:x.flags=x.flags&-65537|128;case 0:if(x=b.payload,f=typeof x=="function"?x.call(g,p,f):x,f==null)break e;p=je({},p,f);break e;case 2:er=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=n.effects,f===null?n.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=p):d=d.next=g,a|=f;if(l=l.next,l===null){if(l=n.shared.pending,l===null)break;f=l,l=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);if(d===null&&(s=p),n.baseState=s,n.firstBaseUpdate=c,n.lastBaseUpdate=d,t=n.shared.interleaved,t!==null){n=t;do a|=n.lane,n=n.next;while(n!==t)}else i===null&&(n.shared.lanes=0);Br|=a,e.lanes=a,e.memoizedState=p}}function eb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var o=e[t],n=o.callback;if(n!==null){if(o.callback=null,o=r,typeof n!="function")throw Error(R(191,n));n.call(o)}}}var ya={},kn=vr(ya),sa=vr(ya),ca=vr(ya);function Ur(e){if(e===ya)throw Error(R(174));return e}function Zp(e,t){switch($e(ca,t),$e(sa,e),$e(kn,ya),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Nd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Nd(t,e)}ze(kn),$e(kn,t)}function Co(){ze(kn),ze(sa),ze(ca)}function zS(e){Ur(ca.current);var t=Ur(kn.current),r=Nd(t,e.type);t!==r&&($e(sa,e),$e(kn,r))}function Bp(e){sa.current===e&&(ze(kn),ze(sa))}var Ce=vr(0);function ls(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 xd=[];function Vp(){for(var e=0;e<xd.length;e++)xd[e]._workInProgressVersionPrimary=null;xd.length=0}var Al=Mn.ReactCurrentDispatcher,bd=Mn.ReactCurrentBatchConfig,Zr=0,Te=null,Ve=null,Ke=null,ss=!1,Ji=!1,ua=0,Uz=0;function it(){throw Error(R(321))}function Hp(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function Jp(e,t,r,o,n,i){if(Zr=i,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Al.current=e===null||e.memoizedState===null?Mz:Zz,e=r(o,n),Ji){i=0;do{if(Ji=!1,ua=0,25<=i)throw Error(R(301));i+=1,Ke=Ve=null,t.updateQueue=null,Al.current=Bz,e=r(o,n)}while(Ji)}if(Al.current=cs,t=Ve!==null&&Ve.next!==null,Zr=0,Ke=Ve=Te=null,ss=!1,t)throw Error(R(300));return e}function Gp(){var e=ua!==0;return ua=0,e}function xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Te.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Xt(){if(Ve===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ve.next;var t=Ke===null?Te.memoizedState:Ke.next;if(t!==null)Ke=t,Ve=e;else{if(e===null)throw Error(R(310));Ve=e,e={memoizedState:Ve.memoizedState,baseState:Ve.baseState,baseQueue:Ve.baseQueue,queue:Ve.queue,next:null},Ke===null?Te.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function da(e,t){return typeof t=="function"?t(e):t}function Sd(e){var t=Xt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=Ve,n=o.baseQueue,i=r.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}o.baseQueue=n=i,r.pending=null}if(n!==null){i=n.next,o=o.baseState;var l=a=null,s=null,c=i;do{var d=c.lane;if((Zr&d)===d)s!==null&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),o=c.hasEagerState?c.eagerState:e(o,c.action);else{var p={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};s===null?(l=s=p,a=o):s=s.next=p,Te.lanes|=d,Br|=d}c=c.next}while(c!==null&&c!==i);s===null?a=o:s.next=l,ln(o,t.memoizedState)||(kt=!0),t.memoizedState=o,t.baseState=a,t.baseQueue=s,r.lastRenderedState=o}if(e=r.interleaved,e!==null){n=e;do i=n.lane,Te.lanes|=i,Br|=i,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function kd(e){var t=Xt(),r=t.queue;if(r===null)throw Error(R(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);ln(i,t.memoizedState)||(kt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function IS(){}function PS(e,t){var r=Te,o=Xt(),n=t(),i=!ln(o.memoizedState,n);if(i&&(o.memoizedState=n,kt=!0),o=o.queue,Xp(CS.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||Ke!==null&&Ke.memoizedState.tag&1){if(r.flags|=2048,pa(9,RS.bind(null,r,o,n,t),void 0,null),Ye===null)throw Error(R(349));(Zr&30)!==0||ES(r,t,n)}return n}function ES(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function RS(e,t,r,o){t.value=r,t.getSnapshot=o,TS(t)&&jS(e)}function CS(e,t,r){return r(function(){TS(t)&&jS(e)})}function TS(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch{return!0}}function jS(e){var t=Fn(e,1);t!==null&&an(t,e,1,-1)}function tb(e){var t=xn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t.queue=e,e=e.dispatch=Wz.bind(null,Te,e),[t.memoizedState,e]}function pa(e,t,r,o){return e={tag:e,create:t,destroy:r,deps:o,next:null},t=Te.updateQueue,t===null?(t={lastEffect:null,stores:null},Te.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e)),e}function OS(){return Xt().memoizedState}function Fl(e,t,r,o){var n=xn();Te.flags|=e,n.memoizedState=pa(1|t,r,void 0,o===void 0?null:o)}function Ss(e,t,r,o){var n=Xt();o=o===void 0?null:o;var i=void 0;if(Ve!==null){var a=Ve.memoizedState;if(i=a.destroy,o!==null&&Hp(o,a.deps)){n.memoizedState=pa(t,r,i,o);return}}Te.flags|=e,n.memoizedState=pa(1|t,r,i,o)}function nb(e,t){return Fl(8390656,8,e,t)}function Xp(e,t){return Ss(2048,8,e,t)}function DS(e,t){return Ss(4,2,e,t)}function NS(e,t){return Ss(4,4,e,t)}function LS(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function US(e,t,r){return r=r!=null?r.concat([e]):null,Ss(4,4,LS.bind(null,t,e),r)}function Kp(){}function AS(e,t){var r=Xt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Hp(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function FS(e,t){var r=Xt();t=t===void 0?null:t;var o=r.memoizedState;return o!==null&&t!==null&&Hp(t,o[1])?o[0]:(e=e(),r.memoizedState=[e,t],e)}function WS(e,t,r){return(Zr&21)===0?(e.baseState&&(e.baseState=!1,kt=!0),e.memoizedState=r):(ln(r,t)||(r=Hb(),Te.lanes|=r,Br|=r,e.baseState=!0),t)}function Az(e,t){var r=ge;ge=r!==0&&4>r?r:4,e(!0);var o=bd.transition;bd.transition={};try{e(!1),t()}finally{ge=r,bd.transition=o}}function MS(){return Xt().memoizedState}function Fz(e,t,r){var o=dr(e);if(r={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null},ZS(e))BS(t,r);else if(r=$S(e,t,r,o),r!==null){var n=mt();an(r,e,o,n),VS(r,t,o)}}function Wz(e,t,r){var o=dr(e),n={lane:o,action:r,hasEagerState:!1,eagerState:null,next:null};if(ZS(e))BS(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,r);if(n.hasEagerState=!0,n.eagerState=l,ln(l,a)){var s=t.interleaved;s===null?(n.next=n,Wp(t)):(n.next=s.next,s.next=n),t.interleaved=n;return}}catch{}r=$S(e,t,n,o),r!==null&&(n=mt(),an(r,e,o,n),VS(r,t,o))}}function ZS(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function BS(e,t){Ji=ss=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function VS(e,t,r){if((r&4194240)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,Ip(e,r)}}var cs={readContext:Gt,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},Mz={readContext:Gt,useCallback:function(e,t){return xn().memoizedState=[e,t===void 0?null:t],e},useContext:Gt,useEffect:nb,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Fl(4194308,4,LS.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fl(4,2,e,t)},useMemo:function(e,t){var r=xn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var o=xn();return t=r!==void 0?r(t):t,o.memoizedState=o.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},o.queue=e,e=e.dispatch=Fz.bind(null,Te,e),[o.memoizedState,e]},useRef:function(e){var t=xn();return e={current:e},t.memoizedState=e},useState:tb,useDebugValue:Kp,useDeferredValue:function(e){return xn().memoizedState=e},useTransition:function(){var e=tb(!1),t=e[0];return e=Az.bind(null,e[1]),xn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=Te,n=xn();if(Ee){if(r===void 0)throw Error(R(407));r=r()}else{if(r=t(),Ye===null)throw Error(R(349));(Zr&30)!==0||ES(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,nb(CS.bind(null,o,i,e),[e]),o.flags|=2048,pa(9,RS.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=xn(),t=Ye.identifierPrefix;if(Ee){var r=Nn,o=Dn;r=(o&~(1<<32-on(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=ua++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Uz++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zz={readContext:Gt,useCallback:AS,useContext:Gt,useEffect:Xp,useImperativeHandle:US,useInsertionEffect:DS,useLayoutEffect:NS,useMemo:FS,useReducer:Sd,useRef:OS,useState:function(){return Sd(da)},useDebugValue:Kp,useDeferredValue:function(e){var t=Xt();return WS(t,Ve.memoizedState,e)},useTransition:function(){var e=Sd(da)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:IS,useSyncExternalStore:PS,useId:MS,unstable_isNewReconciler:!1},Bz={readContext:Gt,useCallback:AS,useContext:Gt,useEffect:Xp,useImperativeHandle:US,useInsertionEffect:DS,useLayoutEffect:NS,useMemo:FS,useReducer:kd,useRef:OS,useState:function(){return kd(da)},useDebugValue:Kp,useDeferredValue:function(e){var t=Xt();return Ve===null?t.memoizedState=e:WS(t,Ve.memoizedState,e)},useTransition:function(){var e=kd(da)[0],t=Xt().memoizedState;return[e,t]},useMutableSource:IS,useSyncExternalStore:PS,useId:MS,unstable_isNewReconciler:!1};function tn(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function rp(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ks={isMounted:function(e){return(e=e._reactInternals)?Jr(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=mt(),n=dr(e),i=Ln(o,n);i.payload=t,r!=null&&(i.callback=r),t=cr(e,i,n),t!==null&&(an(t,e,n,o),Ul(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=mt(),n=dr(e),i=Ln(o,n);i.tag=1,i.payload=t,r!=null&&(i.callback=r),t=cr(e,i,n),t!==null&&(an(t,e,n,o),Ul(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=mt(),o=dr(e),n=Ln(r,o);n.tag=2,t!=null&&(n.callback=t),t=cr(e,n,o),t!==null&&(an(t,e,o,r),Ul(t,e,o))}};function rb(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!oa(r,o)||!oa(n,i):!0}function HS(e,t,r){var o=!1,n=mr,i=t.contextType;return typeof i=="object"&&i!==null?i=Gt(i):(n=$t(t)?Wr:st.current,o=t.contextTypes,i=(o=o!=null)?Po(e,n):mr),t=new t(r,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ks,e.stateNode=t,t._reactInternals=e,o&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),t}function ob(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&ks.enqueueReplaceState(t,t.state,null)}function op(e,t,r,o){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},Mp(e);var i=t.contextType;typeof i=="object"&&i!==null?n.context=Gt(i):(i=$t(t)?Wr:st.current,n.context=Po(e,i)),n.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(rp(e,t,i,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&ks.enqueueReplaceState(n,n.state,null),as(e,r,n,o),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function To(e,t){try{var r="",o=t;do r+=b1(o),o=o.return;while(o);var n=r}catch(i){n=`
|
|
7
7
|
Error generating stack: `+i.message+`
|
|
8
|
-
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function ud(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Hd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Sz=typeof WeakMap=="function"?WeakMap:Map;function Cb(e,t,r){r=Rn(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){ts||(ts=!0,np=o),Hd(e,t)},r}function jb(e,t,r){r=Rn(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){Hd(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Hd(e,t),typeof o!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function Zx(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Sz;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=Oz.bind(null,e,t,r),t.then(e,e))}function Bx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Vx(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Rn(-1,1),t.tag=2,nr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var bz=Nn.ReactCurrentOwner,bt=!1;function pt(e,t,r,o){t.child=e===null?lb(t,null,r,o):$o(t,e.child,r,o)}function Hx(e,t,r,o,n){r=r.render;var i=t.ref;return xo(t,n),o=Op(e,t,r,o,i,n),r=Np(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,On(e,t,n)):(Pe&&r&&kp(t),t.flags|=1,pt(e,t,o,n),t.child)}function Jx(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!Vp(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,Tb(e,t,i,o,n)):(e=Ol(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&n)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Gi,r(a,o)&&e.ref===t.ref)return On(e,t,n)}return t.flags|=1,e=ir(i,o),e.ref=t.ref,e.return=t,t.child=e}function Tb(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(Gi(i,o)&&e.ref===t.ref)if(bt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,On(e,t,n)}return Jd(e,t,r,o,n)}function Ob(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},be(mo,Et),Et|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,be(mo,Et),Et|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,be(mo,Et),Et|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,be(mo,Et),Et|=o;return pt(e,t,n,r),t.child}function Nb(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Jd(e,t,r,o,n){var i=_t(r)?Nr:at.current;return i=ko(t,i),xo(t,n),r=Op(e,t,r,o,i,n),o=Np(),e!==null&&!bt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,On(e,t,n)):(Pe&&o&&kp(t),t.flags|=1,pt(e,t,r,n),t.child)}function Gx(e,t,r,o,n){if(_t(r)){var i=!0;Vl(t)}else i=!1;if(xo(t,n),t.stateNode===null)Cl(e,t),Rb(t,r,o),Vd(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Jt(c):(c=_t(r)?Nr:at.current,c=ko(t,c));var u=r.getDerivedStateFromProps,p=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||s!==c)&&Mx(t,a,o,c),Jn=!1;var f=t.memoizedState;a.state=f,Kl(t,o,a,n),s=t.memoizedState,l!==o||f!==s||kt.current||Jn?(typeof u=="function"&&(Bd(t,r,u,o),s=t.memoizedState),(l=Jn||Wx(t,r,l,o,f,s,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,cb(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:qt(t.type,l),a.props=c,p=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=Jt(s):(s=_t(r)?Nr:at.current,s=ko(t,s));var g=r.getDerivedStateFromProps;(u=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||f!==s)&&Mx(t,a,o,s),Jn=!1,f=t.memoizedState,a.state=f,Kl(t,o,a,n);var x=t.memoizedState;l!==p||f!==x||kt.current||Jn?(typeof g=="function"&&(Bd(t,r,g,o),x=t.memoizedState),(c=Jn||Wx(t,r,c,o,f,x,s)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=s,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return Gd(e,t,r,o,i,n)}function Gd(e,t,r,o,n,i){Nb(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&Tx(t,r,!1),On(e,t,i);o=t.stateNode,bz.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=$o(t,e.child,null,i),t.child=$o(t,null,l,i)):pt(e,t,l,i),t.memoizedState=o.state,n&&Tx(t,r,!0),t.child}function Db(e){var t=e.stateNode;t.pendingContext?jx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jx(e,t.context,!1),Rp(e,t.containerInfo)}function Xx(e,t,r,o,n){return _o(),$p(n),t.flags|=256,pt(e,t,r,o),t.child}var Xd={dehydrated:null,treeContext:null,retryLane:0};function Kd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lb(e,t,r){var o=t.pendingProps,n=Re.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(n&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),be(Re,n&1),e===null)return Md(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=gs(a,o,0,null),e=Or(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Kd(r),t.memoizedState=Xd,e):Up(t,a));if(n=e.memoizedState,n!==null&&(l=n.dehydrated,l!==null))return kz(e,t,a,o,l,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,l=n.sibling;var s={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=s,t.deletions=null):(o=ir(n,s),o.subtreeFlags=n.subtreeFlags&14680064),l!==null?i=ir(l,i):(i=Or(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?Kd(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=Xd,o}return i=e.child,e=i.sibling,o=ir(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Up(e,t){return t=gs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function kl(e,t,r,o){return o!==null&&$p(o),$o(t,e.child,null,r),e=Up(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kz(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=ud(Error(R(422))),kl(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=gs({mode:"visible",children:o.children},n,0,null),i=Or(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&$o(t,e.child,null,a),t.child.memoizedState=Kd(a),t.memoizedState=Xd,i);if((t.mode&1)===0)return kl(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(R(419)),o=ud(i,o,void 0),kl(e,t,a,o)}if(l=(a&e.childLanes)!==0,bt||l){if(o=Ke,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Tn(e,n),rn(o,e,n,-1))}return Bp(),o=ud(Error(R(421))),kl(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=Nz.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Rt=tr(n.nextSibling),Ct=t,Pe=!0,tn=null,e!==null&&(Zt[Bt++]=Pn,Zt[Bt++]=En,Zt[Bt++]=Dr,Pn=e.id,En=e.overflow,Dr=t),t=Up(t,o.children),t.flags|=4096,t)}function Kx(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Zd(e.return,t,r)}function dd(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function Ub(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(pt(e,t,o.children,r),o=Re.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Kx(e,r,t);else if(e.tag===19)Kx(e,r,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}o&=1}if(be(Re,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Yl(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),dd(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Yl(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}dd(t,!0,r,null,i);break;case"together":dd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Cl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function On(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Ur|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=ir(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ir(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function _z(e,t,r){switch(t.tag){case 3:Db(t),_o();break;case 5:ub(t);break;case 1:_t(t.type)&&Vl(t);break;case 4:Rp(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;be(Gl,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?(be(Re,Re.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Lb(e,t,r):(be(Re,Re.current&1),e=On(e,t,r),e!==null?e.sibling:null);be(Re,Re.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return Ub(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),be(Re,Re.current),o)break;return null;case 22:case 23:return t.lanes=0,Ob(e,t,r)}return On(e,t,r)}var Ab,Yd,Fb,Wb;Ab=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Yd=function(){};Fb=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,jr(hn.current);var i=null;switch(r){case"input":n=xd(e,n),o=xd(e,o),i=[];break;case"select":n=je({},n,{value:void 0}),o=je({},o,{value:void 0}),i=[];break;case"textarea":n=kd(e,n),o=kd(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=Zl)}$d(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var l=n[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Wi.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var s=o[c];if(l=n?.[c],o.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Wi.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&_e("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};Wb=function(e,t,r,o){r!==o&&(t.flags|=4)};function wi(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function $z(e,t,r){var o=t.pendingProps;switch(_p(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return _t(t.type)&&Bl(),ot(t),null;case 3:return o=t.stateNode,wo(),$e(kt),$e(at),jp(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Sl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,tn!==null&&(ip(tn),tn=null))),Yd(e,t),ot(t),null;case 5:Cp(t);var n=jr(qi.current);if(r=t.type,e!==null&&t.stateNode!=null)Fb(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(R(166));return ot(t),null}if(e=jr(hn.current),Sl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[vn]=t,o[Yi]=i,e=(t.mode&1)!==0,r){case"dialog":_e("cancel",o),_e("close",o);break;case"iframe":case"object":case"embed":_e("load",o);break;case"video":case"audio":for(n=0;n<Ci.length;n++)_e(Ci[n],o);break;case"source":_e("error",o);break;case"img":case"image":case"link":_e("error",o),_e("load",o);break;case"details":_e("toggle",o);break;case"input":ox(o,i),_e("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},_e("invalid",o);break;case"textarea":ax(o,i),_e("invalid",o)}$d(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?o.textContent!==l&&(i.suppressHydrationWarning!==!0&&xl(o.textContent,l,e),n=["children",l]):typeof l=="number"&&o.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&xl(o.textContent,l,e),n=["children",""+l]):Wi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&_e("scroll",o)}switch(r){case"input":ll(o),ix(o,i,!0);break;case"textarea":ll(o),lx(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Zl)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=gS(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[vn]=t,e[Yi]=o,Ab(e,t,!1,!1),t.stateNode=e;e:{switch(a=wd(r,o),r){case"dialog":_e("cancel",e),_e("close",e),n=o;break;case"iframe":case"object":case"embed":_e("load",e),n=o;break;case"video":case"audio":for(n=0;n<Ci.length;n++)_e(Ci[n],e);n=o;break;case"source":_e("error",e),n=o;break;case"img":case"image":case"link":_e("error",e),_e("load",e),n=o;break;case"details":_e("toggle",e),n=o;break;case"input":ox(e,o),n=xd(e,o),_e("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=je({},o,{value:void 0}),_e("invalid",e);break;case"textarea":ax(e,o),n=kd(e,o),_e("invalid",e);break;default:n=o}$d(r,n),l=n;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?hS(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&vS(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Mi(e,s):typeof s=="number"&&Mi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Wi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&_e("scroll",e):s!=null&&sp(e,i,s,a))}switch(r){case"input":ll(e),ix(e,o,!1);break;case"textarea":ll(e),lx(e);break;case"option":o.value!=null&&e.setAttribute("value",""+ar(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?go(e,!!o.multiple,i,!1):o.defaultValue!=null&&go(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Zl)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ot(t),null;case 6:if(e&&t.stateNode!=null)Wb(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(R(166));if(r=jr(qi.current),jr(hn.current),Sl(t)){if(o=t.stateNode,r=t.memoizedProps,o[vn]=t,(i=o.nodeValue!==r)&&(e=Ct,e!==null))switch(e.tag){case 3:xl(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&xl(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[vn]=t,t.stateNode=o}return ot(t),null;case 13:if($e(Re),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pe&&Rt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)ib(),_o(),t.flags|=98560,i=!1;else if(i=Sl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[vn]=t}else _o(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),i=!1}else tn!==null&&(ip(tn),tn=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Re.current&1)!==0?Ve===0&&(Ve=3):Bp())),t.updateQueue!==null&&(t.flags|=4),ot(t),null);case 4:return wo(),Yd(e,t),e===null&&Xi(t.stateNode.containerInfo),ot(t),null;case 10:return Ip(t.type._context),ot(t),null;case 17:return _t(t.type)&&Bl(),ot(t),null;case 19:if($e(Re),i=t.memoizedState,i===null)return ot(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)wi(i,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=Yl(e),a!==null){for(t.flags|=128,wi(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return be(Re,Re.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ue()>Io&&(t.flags|=128,o=!0,wi(i,!1),t.lanes=4194304)}else{if(!o)if(e=Yl(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Pe)return ot(t),null}else 2*Ue()-i.renderingStartTime>Io&&r!==1073741824&&(t.flags|=128,o=!0,wi(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ue(),t.sibling=null,r=Re.current,be(Re,o?r&1|2:r&1),t):(ot(t),null);case 22:case 23:return Zp(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Et&1073741824)!==0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function wz(e,t){switch(_p(t),t.tag){case 1:return _t(t.type)&&Bl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wo(),$e(kt),$e(at),jp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Cp(t),null;case 13:if($e(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));_o()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $e(Re),null;case 4:return wo(),null;case 10:return Ip(t.type._context),null;case 22:case 23:return Zp(),null;case 24:return null;default:return null}}var _l=!1,it=!1,zz=typeof WeakSet=="function"?WeakSet:Set,Z=null;function fo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ne(e,t,o)}else r.current=null}function Qd(e,t,r){try{r()}catch(o){Ne(e,t,o)}}var Yx=!1;function Iz(e,t){if(Nd=Fl,e=HS(),bp(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,c=0,u=0,p=e,f=null;t:for(;;){for(var g;p!==r||n!==0&&p.nodeType!==3||(l=a+n),p!==i||o!==0&&p.nodeType!==3||(s=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===r&&++c===n&&(l=a),f===i&&++u===o&&(s=a),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dd={focusedElem:e,selectionRange:r},Fl=!1,Z=t;Z!==null;)if(t=Z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Z=e;else for(;Z!==null;){t=Z;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,w=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:qt(t.type,b),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){Ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Z=e;break}Z=t.return}return x=Yx,Yx=!1,x}function Ui(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&Qd(t,r,i)}n=n.next}while(n!==o)}}function fs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function qd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Mb(e){var t=e.alternate;t!==null&&(e.alternate=null,Mb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[vn],delete t[Yi],delete t[Ad],delete t[cz],delete t[uz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zb(e){return e.tag===5||e.tag===3||e.tag===4}function Qx(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zb(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.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 ep(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Zl));else if(o!==4&&(e=e.child,e!==null))for(ep(e,t,r),e=e.sibling;e!==null;)ep(e,t,r),e=e.sibling}function tp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(tp(e,t,r),e=e.sibling;e!==null;)tp(e,t,r),e=e.sibling}var Ye=null,en=!1;function Vn(e,t,r){for(r=r.child;r!==null;)Bb(e,t,r),r=r.sibling}function Bb(e,t,r){if(yn&&typeof yn.onCommitFiberUnmount=="function")try{yn.onCommitFiberUnmount(is,r)}catch{}switch(r.tag){case 5:it||fo(r,t);case 6:var o=Ye,n=en;Ye=null,Vn(e,t,r),Ye=o,en=n,Ye!==null&&(en?(e=Ye,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ye.removeChild(r.stateNode));break;case 18:Ye!==null&&(en?(e=Ye,r=r.stateNode,e.nodeType===8?od(e.parentNode,r):e.nodeType===1&&od(e,r),Hi(e)):od(Ye,r.stateNode));break;case 4:o=Ye,n=en,Ye=r.stateNode.containerInfo,en=!0,Vn(e,t,r),Ye=o,en=n;break;case 0:case 11:case 14:case 15:if(!it&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&Qd(r,t,a),n=n.next}while(n!==o)}Vn(e,t,r);break;case 1:if(!it&&(fo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(l){Ne(r,t,l)}Vn(e,t,r);break;case 21:Vn(e,t,r);break;case 22:r.mode&1?(it=(o=it)||r.memoizedState!==null,Vn(e,t,r),it=o):Vn(e,t,r);break;default:Vn(e,t,r)}}function qx(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new zz),t.forEach(function(o){var n=Dz.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function Qt(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Ye=l.stateNode,en=!1;break e;case 3:Ye=l.stateNode.containerInfo,en=!0;break e;case 4:Ye=l.stateNode.containerInfo,en=!0;break e}l=l.return}if(Ye===null)throw Error(R(160));Bb(i,a,n),Ye=null,en=!1;var s=n.alternate;s!==null&&(s.return=null),n.return=null}catch(c){Ne(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vb(t,e),t=t.sibling}function Vb(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Qt(t,e),mn(e),o&4){try{Ui(3,e,e.return),fs(3,e)}catch(b){Ne(e,e.return,b)}try{Ui(5,e,e.return)}catch(b){Ne(e,e.return,b)}}break;case 1:Qt(t,e),mn(e),o&512&&r!==null&&fo(r,r.return);break;case 5:if(Qt(t,e),mn(e),o&512&&r!==null&&fo(r,r.return),e.flags&32){var n=e.stateNode;try{Mi(n,"")}catch(b){Ne(e,e.return,b)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&fS(n,i),wd(l,a);var c=wd(l,i);for(a=0;a<s.length;a+=2){var u=s[a],p=s[a+1];u==="style"?hS(n,p):u==="dangerouslySetInnerHTML"?vS(n,p):u==="children"?Mi(n,p):sp(n,u,p,c)}switch(l){case"input":Sd(n,i);break;case"textarea":mS(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?go(n,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?go(n,!!i.multiple,i.defaultValue,!0):go(n,!!i.multiple,i.multiple?[]:"",!1))}n[Yi]=i}catch(b){Ne(e,e.return,b)}}break;case 6:if(Qt(t,e),mn(e),o&4){if(e.stateNode===null)throw Error(R(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(b){Ne(e,e.return,b)}}break;case 3:if(Qt(t,e),mn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{Hi(t.containerInfo)}catch(b){Ne(e,e.return,b)}break;case 4:Qt(t,e),mn(e);break;case 13:Qt(t,e),mn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(Wp=Ue())),o&4&&qx(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(it=(c=it)||u,Qt(t,e),it=c):Qt(t,e),mn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&(e.mode&1)!==0)for(Z=e,u=e.child;u!==null;){for(p=Z=u;Z!==null;){switch(f=Z,g=f.child,f.tag){case 0:case 11:case 14:case 15:Ui(4,f,f.return);break;case 1:fo(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){o=f,r=f.return;try{t=o,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Ne(o,r,b)}}break;case 5:fo(f,f.return);break;case 22:if(f.memoizedState!==null){tS(p);continue}}g!==null?(g.return=f,Z=g):tS(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{n=p.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,s=p.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=yS("display",a))}catch(b){Ne(e,e.return,b)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(b){Ne(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:Qt(t,e),mn(e),o&4&&qx(e);break;case 21:break;default:Qt(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Zb(r)){var o=r;break e}r=r.return}throw Error(R(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(Mi(n,""),o.flags&=-33);var i=Qx(e);tp(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,l=Qx(e);ep(e,l,a);break;default:throw Error(R(161))}}catch(s){Ne(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Pz(e,t,r){Z=e,Hb(e,t,r)}function Hb(e,t,r){for(var o=(e.mode&1)!==0;Z!==null;){var n=Z,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||_l;if(!a){var l=n.alternate,s=l!==null&&l.memoizedState!==null||it;l=_l;var c=it;if(_l=a,(it=s)&&!c)for(Z=n;Z!==null;)a=Z,s=a.child,a.tag===22&&a.memoizedState!==null?nS(n):s!==null?(s.return=a,Z=s):nS(n);for(;i!==null;)Z=i,Hb(i,t,r),i=i.sibling;Z=n,_l=l,it=c}eS(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,Z=i):eS(e,t,r)}}function eS(e){for(;Z!==null;){var t=Z;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:it||fs(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!it)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:qt(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ux(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ux(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&Hi(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}it||t.flags&512&&qd(t)}catch(f){Ne(t,t.return,f)}}if(t===e){Z=null;break}if(r=t.sibling,r!==null){r.return=t.return,Z=r;break}Z=t.return}}function tS(e){for(;Z!==null;){var t=Z;if(t===e){Z=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Z=r;break}Z=t.return}}function nS(e){for(;Z!==null;){var t=Z;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{fs(4,t)}catch(s){Ne(t,r,s)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(s){Ne(t,n,s)}}var i=t.return;try{qd(t)}catch(s){Ne(t,i,s)}break;case 5:var a=t.return;try{qd(t)}catch(s){Ne(t,a,s)}}}catch(s){Ne(t,t.return,s)}if(t===e){Z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Z=l;break}Z=t.return}}var Ez=Math.ceil,es=Nn.ReactCurrentDispatcher,Ap=Nn.ReactCurrentOwner,Ht=Nn.ReactCurrentBatchConfig,se=0,Ke=null,Ae=null,Qe=0,Et=0,mo=cr(0),Ve=0,ra=null,Ur=0,ms=0,Fp=0,Ai=null,St=null,Wp=0,Io=1/0,zn=null,ts=!1,np=null,rr=null,$l=!1,Yn=null,ns=0,Fi=0,rp=null,jl=-1,Tl=0;function ft(){return(se&6)!==0?Ue():jl!==-1?jl:jl=Ue()}function or(e){return(e.mode&1)===0?1:(se&2)!==0&&Qe!==0?Qe&-Qe:pz.transition!==null?(Tl===0&&(Tl=RS()),Tl):(e=me,e!==0||(e=window.event,e=e===void 0?16:LS(e.type)),e)}function rn(e,t,r,o){if(50<Fi)throw Fi=0,rp=null,Error(R(185));oa(e,r,o),((se&2)===0||e!==Ke)&&(e===Ke&&((se&2)===0&&(ms|=r),Ve===4&&Xn(e,Qe)),$t(e,o),r===1&&se===0&&(t.mode&1)===0&&(Io=Ue()+500,us&&ur()))}function $t(e,t){var r=e.callbackNode;m1(e,t);var o=Al(e,e===Ke?Qe:0);if(o===0)r!==null&&ux(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&ux(r),t===1)e.tag===0?dz(rS.bind(null,e)):nb(rS.bind(null,e)),lz(function(){(se&6)===0&&ur()}),r=null;else{switch(CS(o)){case 1:r=fp;break;case 4:r=PS;break;case 16:r=Ul;break;case 536870912:r=ES;break;default:r=Ul}r=ek(r,Jb.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Jb(e,t){if(jl=-1,Tl=0,(se&6)!==0)throw Error(R(327));var r=e.callbackNode;if(So()&&e.callbackNode!==r)return null;var o=Al(e,e===Ke?Qe:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=rs(e,o);else{t=o;var n=se;se|=2;var i=Xb();(Ke!==e||Qe!==t)&&(zn=null,Io=Ue()+500,Tr(e,t));do try{jz();break}catch(l){Gb(e,l)}while(!0);zp(),es.current=i,se=n,Ae!==null?t=0:(Ke=null,Qe=0,t=Ve)}if(t!==0){if(t===2&&(n=Rd(e),n!==0&&(o=n,t=op(e,n))),t===1)throw r=ra,Tr(e,0),Xn(e,o),$t(e,Ue()),r;if(t===6)Xn(e,o);else{if(n=e.current.alternate,(o&30)===0&&!Rz(n)&&(t=rs(e,o),t===2&&(i=Rd(e),i!==0&&(o=i,t=op(e,i))),t===1))throw r=ra,Tr(e,0),Xn(e,o),$t(e,Ue()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(R(345));case 2:Er(e,St,zn);break;case 3:if(Xn(e,o),(o&130023424)===o&&(t=Wp+500-Ue(),10<t)){if(Al(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){ft(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Ud(Er.bind(null,e,St,zn),t);break}Er(e,St,zn);break;case 4:if(Xn(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-nn(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Ue()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*Ez(o/1960))-o,10<o){e.timeoutHandle=Ud(Er.bind(null,e,St,zn),o);break}Er(e,St,zn);break;case 5:Er(e,St,zn);break;default:throw Error(R(329))}}}return $t(e,Ue()),e.callbackNode===r?Jb.bind(null,e):null}function op(e,t){var r=Ai;return e.current.memoizedState.isDehydrated&&(Tr(e,t).flags|=256),e=rs(e,t),e!==2&&(t=St,St=r,t!==null&&ip(t)),e}function ip(e){St===null?St=e:St.push.apply(St,e)}function Rz(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!on(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Xn(e,t){for(t&=~Fp,t&=~ms,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-nn(t),o=1<<r;e[r]=-1,t&=~o}}function rS(e){if((se&6)!==0)throw Error(R(327));So();var t=Al(e,0);if((t&1)===0)return $t(e,Ue()),null;var r=rs(e,t);if(e.tag!==0&&r===2){var o=Rd(e);o!==0&&(t=o,r=op(e,o))}if(r===1)throw r=ra,Tr(e,0),Xn(e,t),$t(e,Ue()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Er(e,St,zn),$t(e,Ue()),null}function Mp(e,t){var r=se;se|=1;try{return e(t)}finally{se=r,se===0&&(Io=Ue()+500,us&&ur())}}function Ar(e){Yn!==null&&Yn.tag===0&&(se&6)===0&&So();var t=se;se|=1;var r=Ht.transition,o=me;try{if(Ht.transition=null,me=1,e)return e()}finally{me=o,Ht.transition=r,se=t,(se&6)===0&&ur()}}function Zp(){Et=mo.current,$e(mo)}function Tr(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,az(r)),Ae!==null)for(r=Ae.return;r!==null;){var o=r;switch(_p(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&Bl();break;case 3:wo(),$e(kt),$e(at),jp();break;case 5:Cp(o);break;case 4:wo();break;case 13:$e(Re);break;case 19:$e(Re);break;case 10:Ip(o.type._context);break;case 22:case 23:Zp()}r=r.return}if(Ke=e,Ae=e=ir(e.current,null),Qe=Et=t,Ve=0,ra=null,Fp=ms=Ur=0,St=Ai=null,Cr!==null){for(t=0;t<Cr.length;t++)if(r=Cr[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}Cr=null}return e}function Gb(e,t){do{var r=Ae;try{if(zp(),El.current=ql,Ql){for(var o=Ce.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}Ql=!1}if(Lr=0,Xe=Be=Ce=null,Li=!1,ea=0,Ap.current=null,r===null||r.return===null){Ve=1,ra=t,Ae=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=Qe,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,u=l,p=u.tag;if((u.mode&1)===0&&(p===0||p===11||p===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var g=Bx(a);if(g!==null){g.flags&=-257,Vx(g,a,l,i,t),g.mode&1&&Zx(i,c,t),t=g,s=c;var x=t.updateQueue;if(x===null){var b=new Set;b.add(s),t.updateQueue=b}else x.add(s);break e}else{if((t&1)===0){Zx(i,c,t),Bp();break e}s=Error(R(426))}}else if(Pe&&l.mode&1){var w=Bx(a);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),Vx(w,a,l,i,t),$p(zo(s,l));break e}}i=s=zo(s,l),Ve!==4&&(Ve=2),Ai===null?Ai=[i]:Ai.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=Cb(i,s,t);Lx(i,v);break e;case 1:l=s;var m=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(rr===null||!rr.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=jb(i,l,t);Lx(i,S);break e}}i=i.return}while(i!==null)}Yb(r)}catch(_){t=_,Ae===r&&r!==null&&(Ae=r=r.return);continue}break}while(!0)}function Xb(){var e=es.current;return es.current=ql,e===null?ql:e}function Bp(){(Ve===0||Ve===3||Ve===2)&&(Ve=4),Ke===null||(Ur&268435455)===0&&(ms&268435455)===0||Xn(Ke,Qe)}function rs(e,t){var r=se;se|=2;var o=Xb();(Ke!==e||Qe!==t)&&(zn=null,Tr(e,t));do try{Cz();break}catch(n){Gb(e,n)}while(!0);if(zp(),se=r,es.current=o,Ae!==null)throw Error(R(261));return Ke=null,Qe=0,Ve}function Cz(){for(;Ae!==null;)Kb(Ae)}function jz(){for(;Ae!==null&&!i1();)Kb(Ae)}function Kb(e){var t=qb(e.alternate,e,Et);e.memoizedProps=e.pendingProps,t===null?Yb(e):Ae=t,Ap.current=null}function Yb(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=$z(r,t,Et),r!==null){Ae=r;return}}else{if(r=wz(r,t),r!==null){r.flags&=32767,Ae=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ve=6,Ae=null;return}}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);Ve===0&&(Ve=5)}function Er(e,t,r){var o=me,n=Ht.transition;try{Ht.transition=null,me=1,Tz(e,t,r,o)}finally{Ht.transition=n,me=o}return null}function Tz(e,t,r,o){do So();while(Yn!==null);if((se&6)!==0)throw Error(R(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(g1(e,i),e===Ke&&(Ae=Ke=null,Qe=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||$l||($l=!0,ek(Ul,function(){return So(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Ht.transition,Ht.transition=null;var a=me;me=1;var l=se;se|=4,Ap.current=null,Iz(e,r),Vb(r,e),tz(Dd),Fl=!!Nd,Dd=Nd=null,e.current=r,Pz(r,e,n),a1(),se=l,me=a,Ht.transition=i}else e.current=r;if($l&&($l=!1,Yn=e,ns=n),i=e.pendingLanes,i===0&&(rr=null),c1(r.stateNode,o),$t(e,Ue()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(ts)throw ts=!1,e=np,np=null,e;return(ns&1)!==0&&e.tag!==0&&So(),i=e.pendingLanes,(i&1)!==0?e===rp?Fi++:(Fi=0,rp=e):Fi=0,ur(),null}function So(){if(Yn!==null){var e=CS(ns),t=Ht.transition,r=me;try{if(Ht.transition=null,me=16>e?16:e,Yn===null)var o=!1;else{if(e=Yn,Yn=null,ns=0,(se&6)!==0)throw Error(R(331));var n=se;for(se|=4,Z=e.current;Z!==null;){var i=Z,a=i.child;if((Z.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(Z=c;Z!==null;){var u=Z;switch(u.tag){case 0:case 11:case 15:Ui(8,u,i)}var p=u.child;if(p!==null)p.return=u,Z=p;else for(;Z!==null;){u=Z;var f=u.sibling,g=u.return;if(Mb(u),u===c){Z=null;break}if(f!==null){f.return=g,Z=f;break}Z=g}}}var x=i.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}Z=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,Z=a;else e:for(;Z!==null;){if(i=Z,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Ui(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,Z=v;break e}Z=i.return}}var m=e.current;for(Z=m;Z!==null;){a=Z;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,Z=y;else e:for(a=m;Z!==null;){if(l=Z,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:fs(9,l)}}catch(_){Ne(l,l.return,_)}if(l===a){Z=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,Z=S;break e}Z=l.return}}if(se=n,ur(),yn&&typeof yn.onPostCommitFiberRoot=="function")try{yn.onPostCommitFiberRoot(is,e)}catch{}o=!0}return o}finally{me=r,Ht.transition=t}}return!1}function oS(e,t,r){t=zo(r,t),t=Cb(e,t,1),e=nr(e,t,1),t=ft(),e!==null&&(oa(e,1,t),$t(e,t))}function Ne(e,t,r){if(e.tag===3)oS(e,e,r);else for(;t!==null;){if(t.tag===3){oS(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(rr===null||!rr.has(o))){e=zo(r,e),e=jb(t,e,1),t=nr(t,e,1),e=ft(),t!==null&&(oa(t,1,e),$t(t,e));break}}t=t.return}}function Oz(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=ft(),e.pingedLanes|=e.suspendedLanes&r,Ke===e&&(Qe&r)===r&&(Ve===4||Ve===3&&(Qe&130023424)===Qe&&500>Ue()-Wp?Tr(e,0):Fp|=r),$t(e,t)}function Qb(e,t){t===0&&((e.mode&1)===0?t=1:(t=ul,ul<<=1,(ul&130023424)===0&&(ul=4194304)));var r=ft();e=Tn(e,t),e!==null&&(oa(e,t,r),$t(e,r))}function Nz(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Qb(e,r)}function Dz(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(R(314))}o!==null&&o.delete(t),Qb(e,r)}var qb;qb=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||kt.current)bt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return bt=!1,_z(e,t,r);bt=(e.flags&131072)!==0}else bt=!1,Pe&&(t.flags&1048576)!==0&&rb(t,Jl,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Cl(e,t),e=t.pendingProps;var n=ko(t,at.current);xo(t,r),n=Op(null,t,o,e,n,r);var i=Np();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_t(o)?(i=!0,Vl(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Ep(t),n.updater=ps,t.stateNode=n,n._reactInternals=t,Vd(t,o,e,r),t=Gd(null,t,o,!0,i,r)):(t.tag=0,Pe&&i&&kp(t),pt(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Cl(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=Uz(o),e=qt(o,e),n){case 0:t=Jd(null,t,o,e,r);break e;case 1:t=Gx(null,t,o,e,r);break e;case 11:t=Hx(null,t,o,e,r);break e;case 14:t=Jx(null,t,o,qt(o.type,e),r);break e}throw Error(R(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:qt(o,n),Jd(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:qt(o,n),Gx(e,t,o,n,r);case 3:e:{if(Db(t),e===null)throw Error(R(387));o=t.pendingProps,i=t.memoizedState,n=i.element,cb(e,t),Kl(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=zo(Error(R(423)),t),t=Xx(e,t,o,r,n);break e}else if(o!==n){n=zo(Error(R(424)),t),t=Xx(e,t,o,r,n);break e}else for(Rt=tr(t.stateNode.containerInfo.firstChild),Ct=t,Pe=!0,tn=null,r=lb(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(_o(),o===n){t=On(e,t,r);break e}pt(e,t,o,r)}t=t.child}return t;case 5:return ub(t),e===null&&Md(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,Ld(o,n)?a=null:i!==null&&Ld(o,i)&&(t.flags|=32),Nb(e,t),pt(e,t,a,r),t.child;case 6:return e===null&&Md(t),null;case 13:return Lb(e,t,r);case 4:return Rp(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=$o(t,null,o,r):pt(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:qt(o,n),Hx(e,t,o,n,r);case 7:return pt(e,t,t.pendingProps,r),t.child;case 8:return pt(e,t,t.pendingProps.children,r),t.child;case 12:return pt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,be(Gl,o._currentValue),o._currentValue=a,i!==null)if(on(i.value,a)){if(i.children===n.children&&!kt.current){t=On(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(i.tag===1){s=Rn(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Zd(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(R(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Zd(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}pt(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,xo(t,r),n=Jt(n),o=o(n),t.flags|=1,pt(e,t,o,r),t.child;case 14:return o=t.type,n=qt(o,t.pendingProps),n=qt(o.type,n),Jx(e,t,o,n,r);case 15:return Tb(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:qt(o,n),Cl(e,t),t.tag=1,_t(o)?(e=!0,Vl(t)):e=!1,xo(t,r),Rb(t,o,n),Vd(t,o,n,r),Gd(null,t,o,!0,e,r);case 19:return Ub(e,t,r);case 22:return Ob(e,t,r)}throw Error(R(156,t.tag))};function ek(e,t){return IS(e,t)}function Lz(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vt(e,t,r,o){return new Lz(e,t,r,o)}function Vp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uz(e){if(typeof e=="function")return Vp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===up)return 11;if(e===dp)return 14}return 2}function ir(e,t){var r=e.alternate;return r===null?(r=Vt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ol(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")Vp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ro:return Or(r.children,n,i,t);case cp:a=8,n|=8;break;case gd:return e=Vt(12,r,t,n|2),e.elementType=gd,e.lanes=i,e;case vd:return e=Vt(13,r,t,n),e.elementType=vd,e.lanes=i,e;case yd:return e=Vt(19,r,t,n),e.elementType=yd,e.lanes=i,e;case uS:return gs(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case sS:a=10;break e;case cS:a=9;break e;case up:a=11;break e;case dp:a=14;break e;case Hn:a=16,o=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Vt(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Or(e,t,r,o){return e=Vt(7,e,o,t),e.lanes=r,e}function gs(e,t,r,o){return e=Vt(22,e,o,t),e.elementType=uS,e.lanes=r,e.stateNode={isHidden:!1},e}function pd(e,t,r){return e=Vt(6,e,null,t),e.lanes=r,e}function fd(e,t,r){return t=Vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Az(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ku(0),this.expirationTimes=Ku(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ku(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Hp(e,t,r,o,n,i,a,l,s){return e=new Az(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Vt(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ep(i),e}function Fz(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:no,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function tk(e){if(!e)return lr;e=e._reactInternals;e:{if(Wr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(_t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if(_t(r))return tb(e,r,t)}return t}function nk(e,t,r,o,n,i,a,l,s){return e=Hp(r,o,!0,e,n,i,a,l,s),e.context=tk(null),r=e.current,o=ft(),n=or(r),i=Rn(o,n),i.callback=t??null,nr(r,i,n),e.current.lanes=n,oa(e,n,o),$t(e,o),e}function vs(e,t,r,o){var n=t.current,i=ft(),a=or(n);return r=tk(r),t.context===null?t.context=r:t.pendingContext=r,t=Rn(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=nr(n,t,a),e!==null&&(rn(e,n,a,i),Pl(e,n,a)),a}function os(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function iS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Jp(e,t){iS(e,t),(e=e.alternate)&&iS(e,t)}function Wz(){return null}var rk=typeof reportError=="function"?reportError:function(e){console.error(e)};function Gp(e){this._internalRoot=e}ys.prototype.render=Gp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));vs(e,t,null,null)};ys.prototype.unmount=Gp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ar(function(){vs(null,e,null,null)}),t[jn]=null}};function ys(e){this._internalRoot=e}ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=OS();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Gn.length&&t!==0&&t<Gn[r].priority;r++);Gn.splice(r,0,e),r===0&&DS(e)}};function Xp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function aS(){}function Mz(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=os(a);i.call(c)}}var a=nk(t,o,e,0,null,!1,!1,"",aS);return e._reactRootContainer=a,e[jn]=a.current,Xi(e.nodeType===8?e.parentNode:e),Ar(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var l=o;o=function(){var c=os(s);l.call(c)}}var s=Hp(e,0,!1,null,null,!1,!1,"",aS);return e._reactRootContainer=s,e[jn]=s.current,Xi(e.nodeType===8?e.parentNode:e),Ar(function(){vs(t,s,r,o)}),s}function xs(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var l=n;n=function(){var s=os(a);l.call(s)}}vs(t,a,e,n)}else a=Mz(r,t,e,n,o);return os(a)}jS=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ri(t.pendingLanes);r!==0&&(mp(t,r|1),$t(t,Ue()),(se&6)===0&&(Io=Ue()+500,ur()))}break;case 13:Ar(function(){var o=Tn(e,1);if(o!==null){var n=ft();rn(o,e,1,n)}}),Jp(e,1)}};gp=function(e){if(e.tag===13){var t=Tn(e,134217728);if(t!==null){var r=ft();rn(t,e,134217728,r)}Jp(e,134217728)}};TS=function(e){if(e.tag===13){var t=or(e),r=Tn(e,t);if(r!==null){var o=ft();rn(r,e,t,o)}Jp(e,t)}};OS=function(){return me};NS=function(e,t){var r=me;try{return me=e,t()}finally{me=r}};Id=function(e,t,r){switch(t){case"input":if(Sd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=cs(o);if(!n)throw Error(R(90));pS(o),Sd(o,n)}}}break;case"textarea":mS(e,r);break;case"select":t=r.value,t!=null&&go(e,!!r.multiple,t,!1)}};bS=Mp;kS=Ar;var Zz={usingClientEntryPoint:!1,Events:[aa,lo,cs,xS,SS,Mp]},zi={findFiberByHostInstance:Rr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Bz={bundleType:zi.bundleType,version:zi.version,rendererPackageName:zi.rendererPackageName,rendererConfig:zi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=wS(e),e===null?null:e.stateNode},findFiberByHostInstance:zi.findFiberByHostInstance||Wz,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ii.isDisabled&&Ii.supportsFiber))try{is=Ii.inject(Bz),yn=Ii}catch{}var Ii;Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zz;Ot.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Xp(t))throw Error(R(200));return Fz(e,t,null,r)};Ot.createRoot=function(e,t){if(!Xp(e))throw Error(R(299));var r=!1,o="",n=rk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=Hp(e,1,!1,null,null,r,!1,o,n),e[jn]=t.current,Xi(e.nodeType===8?e.parentNode:e),new Gp(t)};Ot.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=wS(t),e=e===null?null:e.stateNode,e};Ot.flushSync=function(e){return Ar(e)};Ot.hydrate=function(e,t,r){if(!hs(t))throw Error(R(200));return xs(null,e,t,!0,r)};Ot.hydrateRoot=function(e,t,r){if(!Xp(e))throw Error(R(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=rk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=nk(t,null,e,1,r??null,n,!1,i,a),e[jn]=t.current,Xi(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new ys(t)};Ot.render=function(e,t,r){if(!hs(t))throw Error(R(200));return xs(null,e,t,!1,r)};Ot.unmountComponentAtNode=function(e){if(!hs(e))throw Error(R(40));return e._reactRootContainer?(Ar(function(){xs(null,null,e,!1,function(){e._reactRootContainer=null,e[jn]=null})}),!0):!1};Ot.unstable_batchedUpdates=Mp;Ot.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!hs(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return xs(e,t,r,!1,o)};Ot.version="18.3.1-next-f1338f8080-20240426"});var lk=$n((Nj,ak)=>{"use strict";function ik(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ik)}catch(e){console.error(e)}}ik(),ak.exports=ok()});var ck=$n(Kp=>{"use strict";var sk=lk();Kp.createRoot=sk.createRoot,Kp.hydrateRoot=sk.hydrateRoot;var Dj});var dk=$n(Ss=>{"use strict";var Vz=Ie(),Hz=Symbol.for("react.element"),Jz=Symbol.for("react.fragment"),Gz=Object.prototype.hasOwnProperty,Xz=Vz.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Kz={key:!0,ref:!0,__self:!0,__source:!0};function uk(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)Gz.call(t,o)&&!Kz.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:Hz,type:e,key:i,ref:a,props:n,_owner:Xz.current}}Ss.Fragment=Jz;Ss.jsx=uk;Ss.jsxs=uk});var Q=$n((Aj,pk)=>{"use strict";pk.exports=dk()});var Sw=M(Ie(),1),bw=M(ck(),1);var Je=M(Ie(),1);var fk=M(Ie(),1),de=M(Q(),1);function U({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:l="button",style:s,...c}){let u={sm:{height:32,padding:"0 12px",font:"var(--text-sm)",gap:6},md:{height:40,padding:"0 16px",font:"var(--text-sm)",gap:8},lg:{height:48,padding:"0 22px",font:"var(--text-base)",gap:8}},p=u[r]??u.md,f={primary:{background:"var(--honey)",color:"var(--honey-on)",border:"1px solid transparent"},secondary:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-strong)"},ghost:{background:"transparent",color:"var(--text-secondary)",border:"1px solid transparent"},pollinate:{background:"var(--pollinate)",color:"#FFFFFF",border:"1px solid transparent"},danger:{background:"var(--severity-critical-bg)",color:"var(--severity-critical)",border:"1px solid var(--severity-critical)"}},g=f[t]??f.primary,x={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:p.gap,height:p.height,padding:p.padding,fontFamily:"var(--font-sans)",fontSize:p.font,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,borderRadius:"var(--radius-md)",cursor:o?"not-allowed":"pointer",opacity:o?.45:1,transition:"background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out)",whiteSpace:"nowrap",userSelect:"none",...g,...s},b={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,de.jsxs)("button",{type:l,disabled:o,onClick:a,style:x,onMouseEnter:S=>{o||(S.currentTarget.style.background=b[t]??b.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(g.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function ne({children:e,tone:t="neutral",mono:r=!1,dot:o=!1,style:n}){let i={neutral:{bg:"var(--bg-subtle)",fg:"var(--text-secondary)",bd:"var(--border-strong)"},honey:{bg:"var(--honey-subtle)",fg:"var(--honey)",bd:"var(--honey-border)"},verified:{bg:"var(--severity-success-bg)",fg:"var(--verified)",bd:"var(--verified)"},pollinate:{bg:"var(--pollinate-subtle)",fg:"var(--pollinate)",bd:"var(--pollinate-border)"},info:{bg:"var(--severity-info-bg)",fg:"var(--severity-info)",bd:"var(--severity-info)"},warning:{bg:"var(--severity-warning-bg)",fg:"var(--severity-warning)",bd:"var(--severity-warning)"},critical:{bg:"var(--severity-critical-bg)",fg:"var(--severity-critical)",bd:"var(--severity-critical)"}},a=i[t]??i.neutral;return(0,de.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 9px",background:a.bg,color:a.fg,border:`1px solid ${a.bd}`,borderRadius:"var(--radius-full)",fontFamily:r?"var(--font-mono)":"var(--font-sans)",fontSize:"var(--text-xs)",fontWeight:600,letterSpacing:r?"0.02em":"0",lineHeight:1,whiteSpace:"nowrap",...n},children:[o&&(0,de.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function an({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:l,type:s="text",style:c,...u}){let[p,f]=fk.default.useState(!1),x={sm:32,md:40,lg:48}[i]??40;return(0,de.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,height:x,padding:"0 12px",background:"var(--bg-surface)",border:`1px solid ${p?"var(--honey)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",boxShadow:p?"0 0 0 3px var(--honey-subtle)":"none",transition:"border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)",opacity:a?.5:1,...c},children:[l&&(0,de.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:l}),(0,de.jsx)("input",{type:s,value:e,defaultValue:t,onChange:r,placeholder:o,disabled:a,onFocus:()=>f(!0),onBlur:()=>f(!1),style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text-primary)",fontFamily:n?"var(--font-mono)":"var(--font-sans)",fontSize:n?"var(--text-sm)":"var(--text-base)",letterSpacing:n?"0.01em":"0"},...u})]})}function Xt({label:e,value:t,unit:r,delta:o,accent:n="honey",style:i}){let a={honey:"var(--honey)",pollinate:"var(--pollinate)",verified:"var(--verified)",neutral:"var(--text-primary)"},l=a[n]??a.honey,s=typeof o=="number"?o>=0:null;return(0,de.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",...i},children:[(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,de.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:l,letterSpacing:"-0.01em"},children:t}),r&&(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,de.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:s?"var(--verified)":"var(--severity-critical)"},children:[s?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function bs({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:l,secondary:s=!1,style:c}){let u=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,de.jsxs)("div",{style:{display:"flex",gap:14,padding:16,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",transition:"border-color var(--dur-base) var(--ease-out)",opacity:s?.72:1,...c},children:[(0,de.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,de.jsx)("div",{style:{width:34,height:38,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:u,opacity:a?.9:1,animation:a?"hc-pollinate-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}})}),(0,de.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,de.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",fontWeight:600,color:u,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e}),i&&!a&&(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(s||l==="session")&&!a&&(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,de.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,de.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,de.jsx)("span",{style:{flex:1}}),(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,de.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,de.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var ut=M(Ie(),1);var pu=M(Ie(),1);var Mr=M(Ie(),1);var sa=M(Q(),1);function Yp({wire:e,onBuilt:t}){let[r,o]=Mr.default.useState(!1),[n,i]=Mr.default.useState(!1),a=Mr.default.useRef(!1),l=Mr.default.useRef(!0);Mr.default.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]);let s=Mr.default.useCallback(async()=>{if(a.current)return;a.current=!0,o(!0),i(!1);let c=!1;try{let u=await e.buildGraph();c=u.built,u.built&&await t()}catch{}finally{a.current=!1,l.current&&(o(!1),i(!c))}},[e,t]);return(0,sa.jsxs)("div",{"data-testid":"build-graph",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,sa.jsx)(U,{variant:"primary",onClick:()=>{s()},disabled:r,"data-testid":"build-graph-button",children:r?"Building\u2026":"Build graph"}),n&&(0,sa.jsx)("span",{"data-testid":"build-graph-error",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Build failed \u2014 the daemon could not build the graph. Try again."})]})}function Yz(e,t){let r=new Map,o=e.length,n=Math.ceil(Math.sqrt(o)),i=Math.ceil(o/n),a=Math.max(1,t.width-56),l=Math.max(1,t.height-56),s=n>1?a/(n-1):0,c=i>1?l/(i-1):0;for(let u=0;u<o;u++){let p=e[u];if(p===void 0)continue;let f=u%n,g=Math.floor(u/n);r.set(p.id,{x:n>1?28+f*s:t.width/2,y:i>1?28+g*c:t.height/2})}return r}function ks(e,t,r){let o=new Map,n=e.length;if(n===0)return o;let i=r.width/2,a=r.height/2;if(n===1){let c=e[0];return c!==void 0&&o.set(c.id,{x:i,y:a}),o}if(n>36)return Yz(e,r);let l=Math.max(0,Math.min(i,a)-28),s=n-1;for(let c=0;c<n;c++){let u=e[c];if(u===void 0)continue;if(c===0){o.set(u.id,{x:i,y:a});continue}let p=-Math.PI/2+2*Math.PI*(c-1)/s;o.set(u.id,{x:i+l*Math.cos(p),y:a+l*Math.sin(p)})}return o}function mk(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],l=[];for(let s of t){if(s.from===e&&s.to!==e){let c=`${s.kind}\0${s.to}`;n.has(c)||(n.add(c),r.has(s.kind)||(r.set(s.kind,[]),a.push(s.kind)),r.get(s.kind)?.push(s.to))}if(s.to===e&&s.from!==e){let c=`${s.kind}\0${s.from}`;i.has(c)||(i.add(c),o.has(s.kind)||(o.set(s.kind,[]),l.push(s.kind)),o.get(s.kind)?.push(s.from))}}return{outgoing:a.map(s=>({kind:s,ids:r.get(s)??[]})),incoming:l.map(s=>({kind:s,ids:o.get(s)??[]}))}}var d={};wn(d,{$brand:()=>qp,$input:()=>bg,$output:()=>Sg,NEVER:()=>Qp,TimePrecision:()=>wg,ZodAny:()=>my,ZodArray:()=>hy,ZodBase64:()=>Xc,ZodBase64URL:()=>Kc,ZodBigInt:()=>ai,ZodBigIntFormat:()=>qc,ZodBoolean:()=>ii,ZodCIDRv4:()=>Jc,ZodCIDRv6:()=>Gc,ZodCUID:()=>Fc,ZodCUID2:()=>Wc,ZodCatch:()=>Fy,ZodCodec:()=>Fa,ZodCustom:()=>Wa,ZodCustomStringFormat:()=>ri,ZodDate:()=>Na,ZodDefault:()=>Oy,ZodDiscriminatedUnion:()=>Sy,ZodE164:()=>Yc,ZodEmail:()=>Lc,ZodEmoji:()=>Uc,ZodEnum:()=>ti,ZodError:()=>PE,ZodExactOptional:()=>Cy,ZodFile:()=>Ey,ZodFirstPartyTypeKind:()=>qy,ZodFunction:()=>Ky,ZodGUID:()=>Ra,ZodIPv4:()=>Vc,ZodIPv6:()=>Hc,ZodISODate:()=>Cc,ZodISODateTime:()=>Rc,ZodISODuration:()=>Tc,ZodISOTime:()=>jc,ZodIntersection:()=>by,ZodIssueCode:()=>RE,ZodJWT:()=>Qc,ZodKSUID:()=>Bc,ZodLazy:()=>Jy,ZodLiteral:()=>Py,ZodMAC:()=>ly,ZodMap:()=>zy,ZodNaN:()=>My,ZodNanoID:()=>Ac,ZodNever:()=>vy,ZodNonOptional:()=>iu,ZodNull:()=>py,ZodNullable:()=>Ty,ZodNumber:()=>oi,ZodNumberFormat:()=>Yr,ZodObject:()=>La,ZodOptional:()=>ou,ZodPipe:()=>Aa,ZodPrefault:()=>Dy,ZodPreprocess:()=>Zy,ZodPromise:()=>Xy,ZodReadonly:()=>By,ZodRealError:()=>It,ZodRecord:()=>ei,ZodSet:()=>Iy,ZodString:()=>ni,ZodStringFormat:()=>ye,ZodSuccess:()=>Ay,ZodSymbol:()=>uy,ZodTemplateLiteral:()=>Hy,ZodTransform:()=>Ry,ZodTuple:()=>_y,ZodType:()=>ee,ZodULID:()=>Mc,ZodURL:()=>Oa,ZodUUID:()=>kn,ZodUndefined:()=>dy,ZodUnion:()=>Ua,ZodUnknown:()=>gy,ZodVoid:()=>yy,ZodXID:()=>Zc,ZodXor:()=>xy,_ZodString:()=>Dc,_default:()=>Ny,_function:()=>n0,any:()=>T$,array:()=>Da,base64:()=>v$,base64url:()=>y$,bigint:()=>P$,boolean:()=>cy,catch:()=>Wy,check:()=>r0,cidrv4:()=>m$,cidrv6:()=>g$,clone:()=>gt,codec:()=>Q$,coerce:()=>eh,config:()=>De,core:()=>Un,cuid:()=>a$,cuid2:()=>l$,custom:()=>o0,date:()=>N$,decode:()=>ey,decodeAsync:()=>ny,describe:()=>i0,discriminatedUnion:()=>W$,e164:()=>h$,email:()=>K_,emoji:()=>o$,encode:()=>qv,encodeAsync:()=>ty,endsWith:()=>Bo,enum:()=>nu,exactOptional:()=>jy,file:()=>G$,flattenError:()=>va,float32:()=>$$,float64:()=>w$,formatError:()=>ya,fromJSONSchema:()=>p0,function:()=>n0,getErrorMap:()=>jE,globalRegistry:()=>et,gt:()=>Sn,gte:()=>yt,guid:()=>Y_,hash:()=>_$,hex:()=>k$,hostname:()=>b$,httpUrl:()=>r$,includes:()=>Mo,instanceof:()=>l0,int:()=>Oc,int32:()=>z$,int64:()=>E$,intersection:()=>ky,invertCodec:()=>q$,ipv4:()=>d$,ipv6:()=>f$,iso:()=>qo,json:()=>c0,jwt:()=>x$,keyof:()=>D$,ksuid:()=>u$,lazy:()=>Gy,length:()=>Xr,literal:()=>J$,locales:()=>wa,looseObject:()=>A$,looseRecord:()=>Z$,lowercase:()=>Fo,lt:()=>xn,lte:()=>Dt,mac:()=>p$,map:()=>B$,maxLength:()=>Gr,maxSize:()=>yr,meta:()=>a0,mime:()=>Vo,minLength:()=>Ln,minSize:()=>bn,multipleOf:()=>vr,nan:()=>Y$,nanoid:()=>i$,nativeEnum:()=>H$,negative:()=>Sc,never:()=>eu,nonnegative:()=>kc,nonoptional:()=>Uy,nonpositive:()=>bc,normalize:()=>Ho,null:()=>fy,nullable:()=>ja,nullish:()=>X$,number:()=>sy,object:()=>L$,optional:()=>Ca,overwrite:()=>sn,parse:()=>Xv,parseAsync:()=>Kv,partialRecord:()=>M$,pipe:()=>Nc,positive:()=>xc,prefault:()=>Ly,preprocess:()=>u0,prettifyError:()=>ff,promise:()=>t0,property:()=>_c,readonly:()=>Vy,record:()=>wy,refine:()=>Yy,regex:()=>Ao,regexes:()=>Nt,registry:()=>Qs,safeDecode:()=>oy,safeDecodeAsync:()=>ay,safeEncode:()=>ry,safeEncodeAsync:()=>iy,safeParse:()=>Yv,safeParseAsync:()=>Qv,set:()=>V$,setErrorMap:()=>CE,size:()=>Jr,slugify:()=>Ko,startsWith:()=>Zo,strictObject:()=>U$,string:()=>Ea,stringFormat:()=>S$,stringbool:()=>s0,success:()=>K$,superRefine:()=>Qy,symbol:()=>C$,templateLiteral:()=>e0,toJSONSchema:()=>Ic,toLowerCase:()=>Go,toUpperCase:()=>Xo,transform:()=>ru,treeifyError:()=>pf,trim:()=>Jo,tuple:()=>$y,uint32:()=>I$,uint64:()=>R$,ulid:()=>s$,undefined:()=>j$,union:()=>tu,unknown:()=>Kr,uppercase:()=>Wo,url:()=>n$,util:()=>P,uuid:()=>Q_,uuidv4:()=>q_,uuidv6:()=>e$,uuidv7:()=>t$,void:()=>O$,xid:()=>c$,xor:()=>F$});var Un={};wn(Un,{$ZodAny:()=>Mm,$ZodArray:()=>Jm,$ZodAsyncError:()=>ln,$ZodBase64:()=>jm,$ZodBase64URL:()=>Tm,$ZodBigInt:()=>Bs,$ZodBigIntFormat:()=>Um,$ZodBoolean:()=>ba,$ZodCIDRv4:()=>Em,$ZodCIDRv6:()=>Rm,$ZodCUID:()=>ym,$ZodCUID2:()=>hm,$ZodCatch:()=>dg,$ZodCheck:()=>he,$ZodCheckBigIntFormat:()=>Jf,$ZodCheckEndsWith:()=>im,$ZodCheckGreaterThan:()=>Us,$ZodCheckIncludes:()=>rm,$ZodCheckLengthEquals:()=>qf,$ZodCheckLessThan:()=>Ls,$ZodCheckLowerCase:()=>tm,$ZodCheckMaxLength:()=>Yf,$ZodCheckMaxSize:()=>Gf,$ZodCheckMimeType:()=>lm,$ZodCheckMinLength:()=>Qf,$ZodCheckMinSize:()=>Xf,$ZodCheckMultipleOf:()=>Vf,$ZodCheckNumberFormat:()=>Hf,$ZodCheckOverwrite:()=>sm,$ZodCheckProperty:()=>am,$ZodCheckRegex:()=>em,$ZodCheckSizeEquals:()=>Kf,$ZodCheckStartsWith:()=>om,$ZodCheckStringFormat:()=>Lo,$ZodCheckUpperCase:()=>nm,$ZodCodec:()=>_a,$ZodCustom:()=>xg,$ZodCustomStringFormat:()=>Dm,$ZodDate:()=>Hm,$ZodDefault:()=>lg,$ZodDiscriminatedUnion:()=>Km,$ZodE164:()=>Om,$ZodEmail:()=>fm,$ZodEmoji:()=>gm,$ZodEncodeError:()=>dr,$ZodEnum:()=>tg,$ZodError:()=>ga,$ZodExactOptional:()=>ig,$ZodFile:()=>rg,$ZodFunction:()=>vg,$ZodGUID:()=>dm,$ZodIPv4:()=>zm,$ZodIPv6:()=>Im,$ZodISODate:()=>_m,$ZodISODateTime:()=>km,$ZodISODuration:()=>wm,$ZodISOTime:()=>$m,$ZodIntersection:()=>Ym,$ZodJWT:()=>Nm,$ZodKSUID:()=>bm,$ZodLazy:()=>hg,$ZodLiteral:()=>ng,$ZodMAC:()=>Pm,$ZodMap:()=>qm,$ZodNaN:()=>pg,$ZodNanoID:()=>vm,$ZodNever:()=>Bm,$ZodNonOptional:()=>cg,$ZodNull:()=>Wm,$ZodNullable:()=>ag,$ZodNumber:()=>Zs,$ZodNumberFormat:()=>Lm,$ZodObject:()=>Vk,$ZodObjectJIT:()=>Gm,$ZodOptional:()=>Hs,$ZodPipe:()=>Js,$ZodPrefault:()=>sg,$ZodPreprocess:()=>fg,$ZodPromise:()=>yg,$ZodReadonly:()=>mg,$ZodRealError:()=>zt,$ZodRecord:()=>Qm,$ZodRegistry:()=>Ys,$ZodSet:()=>eg,$ZodString:()=>Hr,$ZodStringFormat:()=>ve,$ZodSuccess:()=>ug,$ZodSymbol:()=>Am,$ZodTemplateLiteral:()=>gg,$ZodTransform:()=>og,$ZodTuple:()=>Vs,$ZodType:()=>Y,$ZodULID:()=>xm,$ZodURL:()=>mm,$ZodUUID:()=>pm,$ZodUndefined:()=>Fm,$ZodUnion:()=>ka,$ZodUnknown:()=>Zm,$ZodVoid:()=>Vm,$ZodXID:()=>Sm,$ZodXor:()=>Xm,$brand:()=>qp,$constructor:()=>h,$input:()=>bg,$output:()=>Sg,Doc:()=>Sa,JSONSchema:()=>J_,JSONSchemaGenerator:()=>Pc,NEVER:()=>Qp,TimePrecision:()=>wg,_any:()=>Hg,_array:()=>qg,_base64:()=>gc,_base64url:()=>vc,_bigint:()=>Ag,_boolean:()=>Lg,_catch:()=>SE,_check:()=>H_,_cidrv4:()=>fc,_cidrv6:()=>mc,_coercedBigint:()=>Fg,_coercedBoolean:()=>Ug,_coercedDate:()=>Yg,_coercedNumber:()=>Cg,_coercedString:()=>_g,_cuid:()=>ac,_cuid2:()=>lc,_custom:()=>tv,_date:()=>Kg,_decode:()=>Ps,_decodeAsync:()=>Rs,_default:()=>yE,_discriminatedUnion:()=>iE,_e164:()=>yc,_email:()=>qs,_emoji:()=>oc,_encode:()=>Is,_encodeAsync:()=>Es,_endsWith:()=>Bo,_enum:()=>dE,_file:()=>ev,_float32:()=>Tg,_float64:()=>Og,_gt:()=>Sn,_gte:()=>yt,_guid:()=>za,_includes:()=>Mo,_int:()=>jg,_int32:()=>Ng,_int64:()=>Wg,_intersection:()=>aE,_ipv4:()=>dc,_ipv6:()=>pc,_isoDate:()=>Ig,_isoDateTime:()=>zg,_isoDuration:()=>Eg,_isoTime:()=>Pg,_jwt:()=>hc,_ksuid:()=>uc,_lazy:()=>$E,_length:()=>Xr,_literal:()=>fE,_lowercase:()=>Fo,_lt:()=>xn,_lte:()=>Dt,_mac:()=>$g,_map:()=>cE,_max:()=>Dt,_maxLength:()=>Gr,_maxSize:()=>yr,_mime:()=>Vo,_min:()=>yt,_minLength:()=>Ln,_minSize:()=>bn,_multipleOf:()=>vr,_nan:()=>Qg,_nanoid:()=>ic,_nativeEnum:()=>pE,_negative:()=>Sc,_never:()=>Gg,_nonnegative:()=>kc,_nonoptional:()=>hE,_nonpositive:()=>bc,_normalize:()=>Ho,_null:()=>Vg,_nullable:()=>vE,_number:()=>Rg,_optional:()=>gE,_overwrite:()=>sn,_parse:()=>To,_parseAsync:()=>Oo,_pipe:()=>bE,_positive:()=>xc,_promise:()=>wE,_property:()=>_c,_readonly:()=>kE,_record:()=>sE,_refine:()=>nv,_regex:()=>Ao,_safeDecode:()=>js,_safeDecodeAsync:()=>Os,_safeEncode:()=>Cs,_safeEncodeAsync:()=>Ts,_safeParse:()=>No,_safeParseAsync:()=>Do,_set:()=>uE,_size:()=>Jr,_slugify:()=>Ko,_startsWith:()=>Zo,_string:()=>kg,_stringFormat:()=>Yo,_stringbool:()=>av,_success:()=>xE,_superRefine:()=>rv,_symbol:()=>Zg,_templateLiteral:()=>_E,_toLowerCase:()=>Go,_toUpperCase:()=>Xo,_transform:()=>mE,_trim:()=>Jo,_tuple:()=>lE,_uint32:()=>Dg,_uint64:()=>Mg,_ulid:()=>sc,_undefined:()=>Bg,_union:()=>rE,_unknown:()=>Jg,_uppercase:()=>Wo,_url:()=>Ia,_uuid:()=>ec,_uuidv4:()=>tc,_uuidv6:()=>nc,_uuidv7:()=>rc,_void:()=>Xg,_xid:()=>cc,_xor:()=>oE,clone:()=>gt,config:()=>De,createStandardJSONSchemaMethod:()=>Qo,createToJSONSchemaMethod:()=>lv,decode:()=>wI,decodeAsync:()=>II,describe:()=>ov,encode:()=>$I,encodeAsync:()=>zI,extractDefs:()=>xr,finalize:()=>Sr,flattenError:()=>va,formatError:()=>ya,globalConfig:()=>Zr,globalRegistry:()=>et,initializeContext:()=>hr,isValidBase64:()=>Cm,isValidBase64URL:()=>Wk,isValidJWT:()=>Mk,locales:()=>wa,meta:()=>iv,parse:()=>ws,parseAsync:()=>zs,prettifyError:()=>ff,process:()=>pe,regexes:()=>Nt,registry:()=>Qs,safeDecode:()=>EI,safeDecodeAsync:()=>CI,safeEncode:()=>PI,safeEncodeAsync:()=>RI,safeParse:()=>mf,safeParseAsync:()=>gf,toDotPath:()=>Sk,toJSONSchema:()=>Ic,treeifyError:()=>pf,util:()=>P,version:()=>cm});var gk,Qp=Object.freeze({status:"aborted"});function h(e,t,r){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let c=a.prototype,u=Object.keys(c);for(let p=0;p<u.length;p++){let f=u[p];f in l||(l[f]=c[f].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let c=r?.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(let u of c._zod.deferred)u();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var qp=Symbol("zod_brand"),ln=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},dr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(gk=globalThis).__zod_globalConfig??(gk.__zod_globalConfig={});var Zr=globalThis.__zod_globalConfig;function De(e){return e&&Object.assign(Zr,e),Zr}var P={};wn(P,{BIGINT_FORMAT_RANGES:()=>uf,Class:()=>tf,NUMBER_FORMAT_RANGES:()=>cf,aborted:()=>gr,allowsEval:()=>of,assert:()=>nI,assertEqual:()=>Qz,assertIs:()=>eI,assertNever:()=>tI,assertNotEqual:()=>qz,assignProp:()=>fr,base64ToUint8Array:()=>yk,base64urlToUint8Array:()=>xI,cached:()=>Co,captureStackTrace:()=>$s,cleanEnum:()=>hI,cleanRegex:()=>da,clone:()=>gt,cloneDef:()=>oI,createTransparentProxy:()=>uI,defineLazy:()=>ie,esc:()=>_s,escapeRegex:()=>Kt,explicitlyAborted:()=>df,extend:()=>fI,finalizeIssue:()=>vt,floatSafeRemainder:()=>nf,getElementAtPath:()=>iI,getEnumValues:()=>ua,getLengthableOrigin:()=>ma,getParsedType:()=>cI,getSizableOrigin:()=>fa,hexToUint8Array:()=>bI,isObject:()=>Br,isPlainObject:()=>mr,issue:()=>jo,joinValues:()=>k,jsonStringifyReplacer:()=>Ro,merge:()=>gI,mergeDefs:()=>Dn,normalizeParams:()=>C,nullish:()=>pr,numKeys:()=>sI,objectClone:()=>rI,omit:()=>pI,optionalKeys:()=>sf,parsedType:()=>I,partial:()=>vI,pick:()=>dI,prefixIssues:()=>wt,primitiveTypes:()=>lf,promiseAllObject:()=>aI,propertyKeyTypes:()=>pa,randomString:()=>lI,required:()=>yI,safeExtend:()=>mI,shallowClone:()=>af,slugify:()=>rf,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>hk,uint8ArrayToBase64url:()=>SI,uint8ArrayToHex:()=>kI,unwrapMessage:()=>ca});function Qz(e){return e}function qz(e){return e}function eI(e){}function tI(e){throw new Error("Unexpected value in exhaustive check")}function nI(e){}function ua(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function k(e,t="|"){return e.map(r=>z(r)).join(t)}function Ro(e,t){return typeof t=="bigint"?t.toString():t}function Co(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function pr(e){return e==null}function da(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function nf(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var vk=Symbol("evaluating");function ie(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==vk)return o===void 0&&(o=vk,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function rI(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function fr(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Dn(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function oI(e){return Dn(e._zod.def)}function iI(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function aI(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function lI(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function _s(e){return JSON.stringify(e)}function rf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var $s="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Br(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var of=Co(()=>{if(Zr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function mr(e){if(Br(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Br(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function af(e){return mr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function sI(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var cI=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}`)}},pa=new Set(["string","number","symbol"]),lf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Kt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function gt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function C(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 uI(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function sf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var cf={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]},uf={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function dI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Dn(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return fr(this,"shape",a),a},checks:[]});return gt(e,i)}function pI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Dn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return fr(this,"shape",a),a},checks:[]});return gt(e,i)}function fI(e,t){if(!mr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Dn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return fr(this,"shape",i),i}});return gt(e,n)}function mI(e,t){if(!mr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Dn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return fr(this,"shape",o),o}});return gt(e,r)}function gI(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Dn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return fr(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return gt(e,r)}function vI(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=Dn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(r)for(let c in r){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return fr(this,"shape",s),s},checks:[]});return gt(t,a)}function yI(e,t,r){let o=Dn(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return fr(this,"shape",i),i}});return gt(t,o)}function gr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function df(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function wt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function ca(e){return typeof e=="string"?e:e?.message}function vt(e,t,r){let o=e.message?e.message:ca(e.inst?._zod.def?.error?.(e))??ca(t?.error?.(e))??ca(r.customError?.(e))??ca(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t?.reportInput&&(l.input=a),l}function fa(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ma(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function I(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 r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function jo(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function hI(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function yk(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function hk(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function xI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return yk(t+r)}function SI(e){return hk(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function bI(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function kI(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var tf=class{constructor(...t){}};var xk=(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,Ro,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ga=h("$ZodError",xk),zt=h("$ZodError",xk,{Parent:Error});function va(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function ya(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let l=[...i,...a.path];if(l.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<l.length;){let u=l[c];c===l.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(t(a))):s[u]=s[u]||{_errors:[]},s=s[u],c++}}}};return o(e),r}function pf(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){r.errors.push(t(s));continue}let u=r,p=0;for(;p<c.length;){let f=c[p],g=p===c.length-1;typeof f=="string"?(u.properties??(u.properties={}),(a=u.properties)[f]??(a[f]={errors:[]}),u=u.properties[f]):(u.items??(u.items=[]),(l=u.items)[f]??(l[f]={errors:[]}),u=u.items[f]),g&&u.errors.push(t(s)),p++}}};return o(e),r}function Sk(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function ff(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Sk(o.path)}`);return t.join(`
|
|
9
|
-
`)}var To=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new ln;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>vt(s,i,De())));throw $s(l,n?.callee),l}return a.value},ws=To(zt),Oo=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>vt(s,i,De())));throw $s(l,n?.callee),l}return a.value},zs=Oo(zt),No=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new ln;return i.issues.length?{success:!1,error:new(e??ga)(i.issues.map(a=>vt(a,n,De())))}:{success:!0,data:i.value}},mf=No(zt),Do=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>vt(a,n,De())))}:{success:!0,data:i.value}},gf=Do(zt),Is=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return To(e)(t,r,n)},$I=Is(zt),Ps=e=>(t,r,o)=>To(e)(t,r,o),wI=Ps(zt),Es=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Oo(e)(t,r,n)},zI=Es(zt),Rs=e=>async(t,r,o)=>Oo(e)(t,r,o),II=Rs(zt),Cs=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return No(e)(t,r,n)},PI=Cs(zt),js=e=>(t,r,o)=>No(e)(t,r,o),EI=js(zt),Ts=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Do(e)(t,r,n)},RI=Ts(zt),Os=e=>async(t,r,o)=>Do(e)(t,r,o),CI=Os(zt);var Nt={};wn(Nt,{base64:()=>Cf,base64url:()=>Ns,bigint:()=>Uf,boolean:()=>Ff,browserEmail:()=>AI,cidrv4:()=>Ef,cidrv6:()=>Rf,cuid:()=>vf,cuid2:()=>yf,date:()=>Of,datetime:()=>Df,domain:()=>MI,duration:()=>kf,e164:()=>Tf,email:()=>$f,emoji:()=>wf,extendedDuration:()=>jI,guid:()=>_f,hex:()=>ZI,hostname:()=>WI,html5Email:()=>DI,httpProtocol:()=>jf,idnEmail:()=>UI,integer:()=>Af,ipv4:()=>zf,ipv6:()=>If,ksuid:()=>Sf,lowercase:()=>Zf,mac:()=>Pf,md5_base64:()=>VI,md5_base64url:()=>HI,md5_hex:()=>BI,nanoid:()=>bf,null:()=>Wf,number:()=>Ds,rfc5322Email:()=>LI,sha1_base64:()=>GI,sha1_base64url:()=>XI,sha1_hex:()=>JI,sha256_base64:()=>YI,sha256_base64url:()=>QI,sha256_hex:()=>KI,sha384_base64:()=>eP,sha384_base64url:()=>tP,sha384_hex:()=>qI,sha512_base64:()=>rP,sha512_base64url:()=>oP,sha512_hex:()=>nP,string:()=>Lf,time:()=>Nf,ulid:()=>hf,undefined:()=>Mf,unicodeEmail:()=>bk,uppercase:()=>Bf,uuid:()=>Vr,uuid4:()=>TI,uuid6:()=>OI,uuid7:()=>NI,xid:()=>xf});var vf=/^[cC][0-9a-z]{6,}$/,yf=/^[0-9a-z]+$/,hf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xf=/^[0-9a-vA-V]{20}$/,Sf=/^[A-Za-z0-9]{27}$/,bf=/^[a-zA-Z0-9_-]{21}$/,kf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jI=/^[-+]?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)?)??$/,_f=/^([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})$/,Vr=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)$/,TI=Vr(4),OI=Vr(6),NI=Vr(7),$f=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,DI=/^[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])?)*$/,LI=/^(([^<>()\[\]\\.,;:\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,}))$/,bk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,UI=bk,AI=/^[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])?)*$/,FI="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function wf(){return new RegExp(FI,"u")}var zf=/^(?:(?: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])$/,If=/^(([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}|:))$/,Pf=e=>{let t=Kt(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])$/,Rf=/^(([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])$/,Cf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ns=/^[A-Za-z0-9_-]*$/,WI=/^(?=.{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])?)*\.?$/,MI=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jf=/^https?$/,Tf=/^\+[1-9]\d{6,14}$/,kk="(?:(?:\\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])))",Of=new RegExp(`^${kk}$`);function _k(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 Nf(e){return new RegExp(`^${_k(e)}$`)}function Df(e){let t=_k({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${kk}T(?:${o})$`)}var Lf=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Uf=/^-?\d+n?$/,Af=/^-?\d+$/,Ds=/^-?\d+(?:\.\d+)?$/,Ff=/^(?:true|false)$/i,Wf=/^null$/i;var Mf=/^undefined$/i;var Zf=/^[^A-Z]*$/,Bf=/^[^a-z]*$/,ZI=/^[0-9a-fA-F]*$/;function ha(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function xa(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var BI=/^[0-9a-fA-F]{32}$/,VI=ha(22,"=="),HI=xa(22),JI=/^[0-9a-fA-F]{40}$/,GI=ha(27,"="),XI=xa(27),KI=/^[0-9a-fA-F]{64}$/,YI=ha(43,"="),QI=xa(43),qI=/^[0-9a-fA-F]{96}$/,eP=ha(64,""),tP=xa(64),nP=/^[0-9a-fA-F]{128}$/,rP=ha(86,"=="),oP=xa(86);var he=h("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),wk={number:"number",bigint:"bigint",object:"date"},Ls=h("$ZodCheckLessThan",(e,t)=>{he.init(e,t);let r=wk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Us=h("$ZodCheckGreaterThan",(e,t)=>{he.init(e,t);let r=wk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Vf=h("$ZodCheckMultipleOf",(e,t)=>{he.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):nf(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),Hf=h("$ZodCheckNumberFormat",(e,t)=>{he.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=cf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=Af)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,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:o,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:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Jf=h("$ZodCheckBigIntFormat",(e,t)=>{he.init(e,t);let[r,o]=uf[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Gf=h("$ZodCheckMaxSize",(e,t)=>{var r;he.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:fa(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Xf=h("$ZodCheckMinSize",(e,t)=>{var r;he.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:fa(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Kf=h("$ZodCheckSizeEquals",(e,t)=>{var r;he.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:fa(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Yf=h("$ZodCheckMaxLength",(e,t)=>{var r;he.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=ma(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Qf=h("$ZodCheckMinLength",(e,t)=>{var r;he.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=ma(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),qf=h("$ZodCheckLengthEquals",(e,t)=>{var r;he.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=ma(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Lo=h("$ZodCheckStringFormat",(e,t)=>{var r,o;he.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),em=h("$ZodCheckRegex",(e,t)=>{Lo.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),tm=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Zf),Lo.init(e,t)}),nm=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Bf),Lo.init(e,t)}),rm=h("$ZodCheckIncludes",(e,t)=>{he.init(e,t);let r=Kt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),om=h("$ZodCheckStartsWith",(e,t)=>{he.init(e,t);let r=new RegExp(`^${Kt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),im=h("$ZodCheckEndsWith",(e,t)=>{he.init(e,t);let r=new RegExp(`.*${Kt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function $k(e,t,r){e.issues.length&&t.issues.push(...wt(r,e.issues))}var am=h("$ZodCheckProperty",(e,t)=>{he.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>$k(n,r,t.property));$k(o,r,t.property)}}),lm=h("$ZodCheckMimeType",(e,t)=>{he.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),sm=h("$ZodCheckOverwrite",(e,t)=>{he.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Sa=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 o=t.split(`
|
|
8
|
+
`+i.stack}return{value:e,source:t,stack:n,digest:null}}function _d(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function ip(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Vz=typeof WeakMap=="function"?WeakMap:Map;function JS(e,t,r){r=Ln(-1,r),r.tag=3,r.payload={element:null};var o=t.value;return r.callback=function(){ds||(ds=!0,gp=o),ip(e,t)},r}function GS(e,t,r){r=Ln(-1,r),r.tag=3;var o=e.type.getDerivedStateFromError;if(typeof o=="function"){var n=t.value;r.payload=function(){return o(n)},r.callback=function(){ip(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){ip(e,t),typeof o!="function"&&(ur===null?ur=new Set([this]):ur.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}function ib(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new Vz;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(n.add(r),e=iI.bind(null,e,t,r),t.then(e,e))}function ab(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function lb(e,t,r,o,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ln(-1,1),t.tag=2,cr(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var Hz=Mn.ReactCurrentOwner,kt=!1;function ft(e,t,r,o){t.child=e===null?_S(t,null,r,o):Ro(t,e.child,r,o)}function sb(e,t,r,o,n){r=r.render;var i=t.ref;return wo(t,n),o=Jp(e,t,r,o,i,n),r=Gp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Wn(e,t,n)):(Ee&&r&&Dp(t),t.flags|=1,ft(e,t,o,n),t.child)}function cb(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!of(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=i,XS(e,t,i,o,n)):(e=Bl(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&n)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:oa,r(a,o)&&e.ref===t.ref)return Wn(e,t,n)}return t.flags|=1,e=pr(i,o),e.ref=t.ref,e.return=t,t.child=e}function XS(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(oa(i,o)&&e.ref===t.ref)if(kt=!1,t.pendingProps=o=i,(e.lanes&n)!==0)(e.flags&131072)!==0&&(kt=!0);else return t.lanes=e.lanes,Wn(e,t,n)}return ap(e,t,r,o,n)}function KS(e,t,r){var o=t.pendingProps,n=o.children,i=e!==null?e.memoizedState:null;if(o.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$e(bo,Rt),Rt|=r;else{if((r&1073741824)===0)return e=i!==null?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$e(bo,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},o=i!==null?i.baseLanes:r,$e(bo,Rt),Rt|=o}else i!==null?(o=i.baseLanes|r,t.memoizedState=null):o=r,$e(bo,Rt),Rt|=o;return ft(e,t,n,r),t.child}function YS(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function ap(e,t,r,o,n){var i=$t(r)?Wr:st.current;return i=Po(t,i),wo(t,n),r=Jp(e,t,r,o,i,n),o=Gp(),e!==null&&!kt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,Wn(e,t,n)):(Ee&&o&&Dp(t),t.flags|=1,ft(e,t,r,n),t.child)}function ub(e,t,r,o,n){if($t(r)){var i=!0;ts(t)}else i=!1;if(wo(t,n),t.stateNode===null)Wl(e,t),HS(t,r,o),op(t,r,o,n),o=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Gt(c):(c=$t(r)?Wr:st.current,c=Po(t,c));var d=r.getDerivedStateFromProps,p=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";p||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==o||s!==c)&&ob(t,a,o,c),er=!1;var f=t.memoizedState;a.state=f,as(t,o,a,n),s=t.memoizedState,l!==o||f!==s||_t.current||er?(typeof d=="function"&&(rp(t,r,d,o),s=t.memoizedState),(l=er||rb(t,r,l,o,f,s,c))?(p||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=s),a.props=o,a.state=s,a.context=c,o=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{a=t.stateNode,wS(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:tn(t.type,l),a.props=c,p=t.pendingProps,f=a.context,s=r.contextType,typeof s=="object"&&s!==null?s=Gt(s):(s=$t(r)?Wr:st.current,s=Po(t,s));var g=r.getDerivedStateFromProps;(d=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==p||f!==s)&&ob(t,a,o,s),er=!1,f=t.memoizedState,a.state=f,as(t,o,a,n);var x=t.memoizedState;l!==p||f!==x||_t.current||er?(typeof g=="function"&&(rp(t,r,g,o),x=t.memoizedState),(c=er||rb(t,r,c,o,f,x,s)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(o,x,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(o,x,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=x),a.props=o,a.state=x,a.context=s,o=c):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),o=!1)}return lp(e,t,r,o,i,n)}function lp(e,t,r,o,n,i){YS(e,t);var a=(t.flags&128)!==0;if(!o&&!a)return n&&Xx(t,r,!1),Wn(e,t,i);o=t.stateNode,Hz.current=t;var l=a&&typeof r.getDerivedStateFromError!="function"?null:o.render();return t.flags|=1,e!==null&&a?(t.child=Ro(t,e.child,null,i),t.child=Ro(t,null,l,i)):ft(e,t,l,i),t.memoizedState=o.state,n&&Xx(t,r,!0),t.child}function QS(e){var t=e.stateNode;t.pendingContext?Gx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Gx(e,t.context,!1),Zp(e,t.containerInfo)}function db(e,t,r,o,n){return Eo(),Lp(n),t.flags|=256,ft(e,t,r,o),t.child}var sp={dehydrated:null,treeContext:null,retryLane:0};function cp(e){return{baseLanes:e,cachePool:null,transitions:null}}function qS(e,t,r){var o=t.pendingProps,n=Ce.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(n&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),$e(Ce,n&1),e===null)return tp(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=o.children,e=o.fallback,i?(o=t.mode,i=t.child,a={mode:"hidden",children:a},(o&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ws(a,o,0,null),e=Fr(e,o,r,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=cp(r),t.memoizedState=sp,e):Yp(t,a));if(n=e.memoizedState,n!==null&&(l=n.dehydrated,l!==null))return Jz(e,t,a,o,l,n,r);if(i){i=o.fallback,a=t.mode,n=e.child,l=n.sibling;var s={mode:"hidden",children:o.children};return(a&1)===0&&t.child!==n?(o=t.child,o.childLanes=0,o.pendingProps=s,t.deletions=null):(o=pr(n,s),o.subtreeFlags=n.subtreeFlags&14680064),l!==null?i=pr(l,i):(i=Fr(i,a,r,null),i.flags|=2),i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,a=e.child.memoizedState,a=a===null?cp(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~r,t.memoizedState=sp,o}return i=e.child,e=i.sibling,o=pr(i,{mode:"visible",children:o.children}),(t.mode&1)===0&&(o.lanes=r),o.return=t,o.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Yp(e,t){return t=ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tl(e,t,r,o){return o!==null&&Lp(o),Ro(t,e.child,null,r),e=Yp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jz(e,t,r,o,n,i,a){if(r)return t.flags&256?(t.flags&=-257,o=_d(Error(R(422))),Tl(e,t,a,o)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=o.fallback,n=t.mode,o=ws({mode:"visible",children:o.children},n,0,null),i=Fr(i,n,a,null),i.flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,(t.mode&1)!==0&&Ro(t,e.child,null,a),t.child.memoizedState=cp(a),t.memoizedState=sp,i);if((t.mode&1)===0)return Tl(e,t,a,null);if(n.data==="$!"){if(o=n.nextSibling&&n.nextSibling.dataset,o)var l=o.dgst;return o=l,i=Error(R(419)),o=_d(i,o,void 0),Tl(e,t,a,o)}if(l=(a&e.childLanes)!==0,kt||l){if(o=Ye,o!==null){switch(a&-a){case 4:n=2;break;case 16:n=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(o.suspendedLanes|a))!==0?0:n,n!==0&&n!==i.retryLane&&(i.retryLane=n,Fn(e,n),an(o,e,n,-1))}return rf(),o=_d(Error(R(421))),Tl(e,t,a,o)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=aI.bind(null,e),n._reactRetry=t,null):(e=i.treeContext,Ct=sr(n.nextSibling),Tt=t,Ee=!0,rn=null,e!==null&&(Bt[Vt++]=Dn,Bt[Vt++]=Nn,Bt[Vt++]=Mr,Dn=e.id,Nn=e.overflow,Mr=t),t=Yp(t,o.children),t.flags|=4096,t)}function pb(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),np(e.return,t,r)}function $d(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function ek(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(ft(e,t,o.children,r),o=Ce.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pb(e,r,t);else if(e.tag===19)pb(e,r,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}o&=1}if($e(Ce,o),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&ls(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),$d(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&ls(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}$d(t,!0,r,null,i);break;case"together":$d(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Br|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,r=pr(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=pr(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Gz(e,t,r){switch(t.tag){case 3:QS(t),Eo();break;case 5:zS(t);break;case 1:$t(t.type)&&ts(t);break;case 4:Zp(t,t.stateNode.containerInfo);break;case 10:var o=t.type._context,n=t.memoizedProps.value;$e(os,o._currentValue),o._currentValue=n;break;case 13:if(o=t.memoizedState,o!==null)return o.dehydrated!==null?($e(Ce,Ce.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?qS(e,t,r):($e(Ce,Ce.current&1),e=Wn(e,t,r),e!==null?e.sibling:null);$e(Ce,Ce.current&1);break;case 19:if(o=(r&t.childLanes)!==0,(e.flags&128)!==0){if(o)return ek(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),$e(Ce,Ce.current),o)break;return null;case 22:case 23:return t.lanes=0,KS(e,t,r)}return Wn(e,t,r)}var tk,up,nk,rk;tk=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};up=function(){};nk=function(e,t,r,o){var n=e.memoizedProps;if(n!==o){e=t.stateNode,Ur(kn.current);var i=null;switch(r){case"input":n=Td(e,n),o=Td(e,o),i=[];break;case"select":n=je({},n,{value:void 0}),o=je({},o,{value:void 0}),i=[];break;case"textarea":n=Dd(e,n),o=Dd(e,o),i=[];break;default:typeof n.onClick!="function"&&typeof o.onClick=="function"&&(e.onclick=ql)}Ld(r,o);var a;r=null;for(c in n)if(!o.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var l=n[c];for(a in l)l.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Yi.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var s=o[c];if(l=n?.[c],o.hasOwnProperty(c)&&s!==l&&(s!=null||l!=null))if(c==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(r||(r={}),r[a]=s[a])}else r||(i||(i=[]),i.push(c,r)),r=s;else c==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(i=i||[]).push(c,s)):c==="children"?typeof s!="string"&&typeof s!="number"||(i=i||[]).push(c,""+s):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Yi.hasOwnProperty(c)?(s!=null&&c==="onScroll"&&we("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}r&&(i=i||[]).push("style",r);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};rk=function(e,t,r,o){r!==o&&(t.flags|=4)};function Di(e,t){if(!Ee)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&14680064,o|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function Xz(e,t,r){var o=t.pendingProps;switch(Np(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return $t(t.type)&&es(),at(t),null;case 3:return o=t.stateNode,Co(),ze(_t),ze(st),Vp(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Rl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rn!==null&&(hp(rn),rn=null))),up(e,t),at(t),null;case 5:Bp(t);var n=Ur(ca.current);if(r=t.type,e!==null&&t.stateNode!=null)nk(e,t,r,o,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(t.stateNode===null)throw Error(R(166));return at(t),null}if(e=Ur(kn.current),Rl(t)){o=t.stateNode,r=t.type;var i=t.memoizedProps;switch(o[bn]=t,o[la]=i,e=(t.mode&1)!==0,r){case"dialog":we("cancel",o),we("close",o);break;case"iframe":case"object":case"embed":we("load",o);break;case"video":case"audio":for(n=0;n<Wi.length;n++)we(Wi[n],o);break;case"source":we("error",o);break;case"img":case"image":case"link":we("error",o),we("load",o);break;case"details":we("toggle",o);break;case"input":bx(o,i),we("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},we("invalid",o);break;case"textarea":kx(o,i),we("invalid",o)}Ld(r,i),n=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?o.textContent!==l&&(i.suppressHydrationWarning!==!0&&El(o.textContent,l,e),n=["children",l]):typeof l=="number"&&o.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&El(o.textContent,l,e),n=["children",""+l]):Yi.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&we("scroll",o)}switch(r){case"input":yl(o),Sx(o,i,!0);break;case"textarea":yl(o),_x(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=ql)}o=n,t.updateQueue=o,o!==null&&(t.flags|=4)}else{a=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Cb(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof o.is=="string"?e=a.createElement(r,{is:o.is}):(e=a.createElement(r),r==="select"&&(a=e,o.multiple?a.multiple=!0:o.size&&(a.size=o.size))):e=a.createElementNS(e,r),e[bn]=t,e[la]=o,tk(e,t,!1,!1),t.stateNode=e;e:{switch(a=Ud(r,o),r){case"dialog":we("cancel",e),we("close",e),n=o;break;case"iframe":case"object":case"embed":we("load",e),n=o;break;case"video":case"audio":for(n=0;n<Wi.length;n++)we(Wi[n],e);n=o;break;case"source":we("error",e),n=o;break;case"img":case"image":case"link":we("error",e),we("load",e),n=o;break;case"details":we("toggle",e),n=o;break;case"input":bx(e,o),n=Td(e,o),we("invalid",e);break;case"option":n=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},n=je({},o,{value:void 0}),we("invalid",e);break;case"textarea":kx(e,o),n=Dd(e,o),we("invalid",e);break;default:n=o}Ld(r,n),l=n;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];i==="style"?Ob(e,s):i==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&Tb(e,s)):i==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&Qi(e,s):typeof s=="number"&&Qi(e,""+s):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Yi.hasOwnProperty(i)?s!=null&&i==="onScroll"&&we("scroll",e):s!=null&&Sp(e,i,s,a))}switch(r){case"input":yl(e),Sx(e,o,!1);break;case"textarea":yl(e),_x(e);break;case"option":o.value!=null&&e.setAttribute("value",""+fr(o.value));break;case"select":e.multiple=!!o.multiple,i=o.value,i!=null?So(e,!!o.multiple,i,!1):o.defaultValue!=null&&So(e,!!o.multiple,o.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=ql)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return at(t),null;case 6:if(e&&t.stateNode!=null)rk(e,t,e.memoizedProps,o);else{if(typeof o!="string"&&t.stateNode===null)throw Error(R(166));if(r=Ur(ca.current),Ur(kn.current),Rl(t)){if(o=t.stateNode,r=t.memoizedProps,o[bn]=t,(i=o.nodeValue!==r)&&(e=Tt,e!==null))switch(e.tag){case 3:El(o.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&El(o.nodeValue,r,(e.mode&1)!==0)}i&&(t.flags|=4)}else o=(r.nodeType===9?r:r.ownerDocument).createTextNode(o),o[bn]=t,t.stateNode=o}return at(t),null;case 13:if(ze(Ce),o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&Ct!==null&&(t.mode&1)!==0&&(t.flags&128)===0)SS(),Eo(),t.flags|=98560,i=!1;else if(i=Rl(t),o!==null&&o.dehydrated!==null){if(e===null){if(!i)throw Error(R(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(R(317));i[bn]=t}else Eo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),i=!1}else rn!==null&&(hp(rn),rn=null),i=!0;if(!i)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(o=o!==null,o!==(e!==null&&e.memoizedState!==null)&&o&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ce.current&1)!==0?He===0&&(He=3):rf())),t.updateQueue!==null&&(t.flags|=4),at(t),null);case 4:return Co(),up(e,t),e===null&&ia(t.stateNode.containerInfo),at(t),null;case 10:return Fp(t.type._context),at(t),null;case 17:return $t(t.type)&&es(),at(t),null;case 19:if(ze(Ce),i=t.memoizedState,i===null)return at(t),null;if(o=(t.flags&128)!==0,a=i.rendering,a===null)if(o)Di(i,!1);else{if(He!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=ls(e),a!==null){for(t.flags|=128,Di(i,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;r!==null;)i=r,e=o,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return $e(Ce,Ce.current&1|2),t.child}e=e.sibling}i.tail!==null&&Ae()>jo&&(t.flags|=128,o=!0,Di(i,!1),t.lanes=4194304)}else{if(!o)if(e=ls(a),e!==null){if(t.flags|=128,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Di(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ee)return at(t),null}else 2*Ae()-i.renderingStartTime>jo&&r!==1073741824&&(t.flags|=128,o=!0,Di(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ae(),t.sibling=null,r=Ce.current,$e(Ce,o?r&1|2:r&1),t):(at(t),null);case 22:case 23:return nf(),o=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==o&&(t.flags|=8192),o&&(t.mode&1)!==0?(Rt&1073741824)!==0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),null;case 24:return null;case 25:return null}throw Error(R(156,t.tag))}function Kz(e,t){switch(Np(t),t.tag){case 1:return $t(t.type)&&es(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),ze(_t),ze(st),Vp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Bp(t),null;case 13:if(ze(Ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Eo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ze(Ce),null;case 4:return Co(),null;case 10:return Fp(t.type._context),null;case 22:case 23:return nf(),null;case 24:return null;default:return null}}var jl=!1,lt=!1,Yz=typeof WeakSet=="function"?WeakSet:Set,B=null;function xo(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(o){Ne(e,t,o)}else r.current=null}function dp(e,t,r){try{r()}catch(o){Ne(e,t,o)}}var fb=!1;function Qz(e,t){if(Gd=Kl,e=sS(),Op(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,l=-1,s=-1,c=0,d=0,p=e,f=null;t:for(;;){for(var g;p!==r||n!==0&&p.nodeType!==3||(l=a+n),p!==i||o!==0&&p.nodeType!==3||(s=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(g=p.firstChild)!==null;)f=p,p=g;for(;;){if(p===e)break t;if(f===r&&++c===n&&(l=a),f===i&&++d===o&&(s=a),(g=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=g}r=l===-1||s===-1?null:{start:l,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(Xd={focusedElem:e,selectionRange:r},Kl=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var x=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(x!==null){var b=x.memoizedProps,w=x.memoizedState,v=t.stateNode,m=v.getSnapshotBeforeUpdate(t.elementType===t.type?b:tn(t.type,b),w);v.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(R(163))}}catch(S){Ne(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return x=fb,fb=!1,x}function Gi(e,t,r){var o=t.updateQueue;if(o=o!==null?o.lastEffect:null,o!==null){var n=o=o.next;do{if((n.tag&e)===e){var i=n.destroy;n.destroy=void 0,i!==void 0&&dp(t,r,i)}n=n.next}while(n!==o)}}function _s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var o=r.create;r.destroy=o()}r=r.next}while(r!==t)}}function pp(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function ok(e){var t=e.alternate;t!==null&&(e.alternate=null,ok(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[bn],delete t[la],delete t[Qd],delete t[Oz],delete t[Dz])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ik(e){return e.tag===5||e.tag===3||e.tag===4}function mb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ik(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.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 fp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ql));else if(o!==4&&(e=e.child,e!==null))for(fp(e,t,r),e=e.sibling;e!==null;)fp(e,t,r),e=e.sibling}function mp(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&(e=e.child,e!==null))for(mp(e,t,r),e=e.sibling;e!==null;)mp(e,t,r),e=e.sibling}var qe=null,nn=!1;function Qn(e,t,r){for(r=r.child;r!==null;)ak(e,t,r),r=r.sibling}function ak(e,t,r){if(Sn&&typeof Sn.onCommitFiberUnmount=="function")try{Sn.onCommitFiberUnmount(gs,r)}catch{}switch(r.tag){case 5:lt||xo(r,t);case 6:var o=qe,n=nn;qe=null,Qn(e,t,r),qe=o,nn=n,qe!==null&&(nn?(e=qe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):qe.removeChild(r.stateNode));break;case 18:qe!==null&&(nn?(e=qe,r=r.stateNode,e.nodeType===8?yd(e.parentNode,r):e.nodeType===1&&yd(e,r),na(e)):yd(qe,r.stateNode));break;case 4:o=qe,n=nn,qe=r.stateNode.containerInfo,nn=!0,Qn(e,t,r),qe=o,nn=n;break;case 0:case 11:case 14:case 15:if(!lt&&(o=r.updateQueue,o!==null&&(o=o.lastEffect,o!==null))){n=o=o.next;do{var i=n,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&dp(r,t,a),n=n.next}while(n!==o)}Qn(e,t,r);break;case 1:if(!lt&&(xo(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"))try{o.props=r.memoizedProps,o.state=r.memoizedState,o.componentWillUnmount()}catch(l){Ne(r,t,l)}Qn(e,t,r);break;case 21:Qn(e,t,r);break;case 22:r.mode&1?(lt=(o=lt)||r.memoizedState!==null,Qn(e,t,r),lt=o):Qn(e,t,r);break;default:Qn(e,t,r)}}function gb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Yz),t.forEach(function(o){var n=lI.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}}function en(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:qe=l.stateNode,nn=!1;break e;case 3:qe=l.stateNode.containerInfo,nn=!0;break e;case 4:qe=l.stateNode.containerInfo,nn=!0;break e}l=l.return}if(qe===null)throw Error(R(160));ak(i,a,n),qe=null,nn=!1;var s=n.alternate;s!==null&&(s.return=null),n.return=null}catch(c){Ne(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lk(t,e),t=t.sibling}function lk(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(en(t,e),hn(e),o&4){try{Gi(3,e,e.return),_s(3,e)}catch(b){Ne(e,e.return,b)}try{Gi(5,e,e.return)}catch(b){Ne(e,e.return,b)}}break;case 1:en(t,e),hn(e),o&512&&r!==null&&xo(r,r.return);break;case 5:if(en(t,e),hn(e),o&512&&r!==null&&xo(r,r.return),e.flags&32){var n=e.stateNode;try{Qi(n,"")}catch(b){Ne(e,e.return,b)}}if(o&4&&(n=e.stateNode,n!=null)){var i=e.memoizedProps,a=r!==null?r.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&Eb(n,i),Ud(l,a);var c=Ud(l,i);for(a=0;a<s.length;a+=2){var d=s[a],p=s[a+1];d==="style"?Ob(n,p):d==="dangerouslySetInnerHTML"?Tb(n,p):d==="children"?Qi(n,p):Sp(n,d,p,c)}switch(l){case"input":jd(n,i);break;case"textarea":Rb(n,i);break;case"select":var f=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!i.multiple;var g=i.value;g!=null?So(n,!!i.multiple,g,!1):f!==!!i.multiple&&(i.defaultValue!=null?So(n,!!i.multiple,i.defaultValue,!0):So(n,!!i.multiple,i.multiple?[]:"",!1))}n[la]=i}catch(b){Ne(e,e.return,b)}}break;case 6:if(en(t,e),hn(e),o&4){if(e.stateNode===null)throw Error(R(162));n=e.stateNode,i=e.memoizedProps;try{n.nodeValue=i}catch(b){Ne(e,e.return,b)}}break;case 3:if(en(t,e),hn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{na(t.containerInfo)}catch(b){Ne(e,e.return,b)}break;case 4:en(t,e),hn(e);break;case 13:en(t,e),hn(e),n=e.child,n.flags&8192&&(i=n.memoizedState!==null,n.stateNode.isHidden=i,!i||n.alternate!==null&&n.alternate.memoizedState!==null||(ef=Ae())),o&4&&gb(e);break;case 22:if(d=r!==null&&r.memoizedState!==null,e.mode&1?(lt=(c=lt)||d,en(t,e),lt=c):en(t,e),hn(e),o&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!d&&(e.mode&1)!==0)for(B=e,d=e.child;d!==null;){for(p=B=d;B!==null;){switch(f=B,g=f.child,f.tag){case 0:case 11:case 14:case 15:Gi(4,f,f.return);break;case 1:xo(f,f.return);var x=f.stateNode;if(typeof x.componentWillUnmount=="function"){o=f,r=f.return;try{t=o,x.props=t.memoizedProps,x.state=t.memoizedState,x.componentWillUnmount()}catch(b){Ne(o,r,b)}}break;case 5:xo(f,f.return);break;case 22:if(f.memoizedState!==null){yb(p);continue}}g!==null?(g.return=f,B=g):yb(p)}d=d.sibling}e:for(d=null,p=e;;){if(p.tag===5){if(d===null){d=p;try{n=p.stateNode,c?(i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=p.stateNode,s=p.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=jb("display",a))}catch(b){Ne(e,e.return,b)}}}else if(p.tag===6){if(d===null)try{p.stateNode.nodeValue=c?"":p.memoizedProps}catch(b){Ne(e,e.return,b)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:en(t,e),hn(e),o&4&&gb(e);break;case 21:break;default:en(t,e),hn(e)}}function hn(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(ik(r)){var o=r;break e}r=r.return}throw Error(R(160))}switch(o.tag){case 5:var n=o.stateNode;o.flags&32&&(Qi(n,""),o.flags&=-33);var i=mb(e);mp(e,i,n);break;case 3:case 4:var a=o.stateNode.containerInfo,l=mb(e);fp(e,l,a);break;default:throw Error(R(161))}}catch(s){Ne(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qz(e,t,r){B=e,sk(e,t,r)}function sk(e,t,r){for(var o=(e.mode&1)!==0;B!==null;){var n=B,i=n.child;if(n.tag===22&&o){var a=n.memoizedState!==null||jl;if(!a){var l=n.alternate,s=l!==null&&l.memoizedState!==null||lt;l=jl;var c=lt;if(jl=a,(lt=s)&&!c)for(B=n;B!==null;)a=B,s=a.child,a.tag===22&&a.memoizedState!==null?hb(n):s!==null?(s.return=a,B=s):hb(n);for(;i!==null;)B=i,sk(i,t,r),i=i.sibling;B=n,jl=l,lt=c}vb(e,t,r)}else(n.subtreeFlags&8772)!==0&&i!==null?(i.return=n,B=i):vb(e,t,r)}}function vb(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:lt||_s(5,t);break;case 1:var o=t.stateNode;if(t.flags&4&&!lt)if(r===null)o.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:tn(t.type,r.memoizedProps);o.componentDidUpdate(n,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&eb(t,i,o);break;case 3:var a=t.updateQueue;if(a!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}eb(t,a,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var d=c.memoizedState;if(d!==null){var p=d.dehydrated;p!==null&&na(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(R(163))}lt||t.flags&512&&pp(t)}catch(f){Ne(t,t.return,f)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function yb(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function hb(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{_s(4,t)}catch(s){Ne(t,r,s)}break;case 1:var o=t.stateNode;if(typeof o.componentDidMount=="function"){var n=t.return;try{o.componentDidMount()}catch(s){Ne(t,n,s)}}var i=t.return;try{pp(t)}catch(s){Ne(t,i,s)}break;case 5:var a=t.return;try{pp(t)}catch(s){Ne(t,a,s)}}}catch(s){Ne(t,t.return,s)}if(t===e){B=null;break}var l=t.sibling;if(l!==null){l.return=t.return,B=l;break}B=t.return}}var eI=Math.ceil,us=Mn.ReactCurrentDispatcher,Qp=Mn.ReactCurrentOwner,Jt=Mn.ReactCurrentBatchConfig,de=0,Ye=null,Fe=null,et=0,Rt=0,bo=vr(0),He=0,fa=null,Br=0,$s=0,qp=0,Xi=null,St=null,ef=0,jo=1/0,jn=null,ds=!1,gp=null,ur=null,Ol=!1,or=null,ps=0,Ki=0,vp=null,Ml=-1,Zl=0;function mt(){return(de&6)!==0?Ae():Ml!==-1?Ml:Ml=Ae()}function dr(e){return(e.mode&1)===0?1:(de&2)!==0&&et!==0?et&-et:Lz.transition!==null?(Zl===0&&(Zl=Hb()),Zl):(e=ge,e!==0||(e=window.event,e=e===void 0?16:qb(e.type)),e)}function an(e,t,r,o){if(50<Ki)throw Ki=0,vp=null,Error(R(185));ma(e,r,o),((de&2)===0||e!==Ye)&&(e===Ye&&((de&2)===0&&($s|=r),He===4&&nr(e,et)),wt(e,o),r===1&&de===0&&(t.mode&1)===0&&(jo=Ae()+500,bs&&yr()))}function wt(e,t){var r=e.callbackNode;A1(e,t);var o=Xl(e,e===Ye?et:0);if(o===0)r!==null&&zx(r),e.callbackNode=null,e.callbackPriority=0;else if(t=o&-o,e.callbackPriority!==t){if(r!=null&&zx(r),t===1)e.tag===0?Nz(xb.bind(null,e)):hS(xb.bind(null,e)),Tz(function(){(de&6)===0&&yr()}),r=null;else{switch(Jb(o)){case 1:r=zp;break;case 4:r=Bb;break;case 16:r=Gl;break;case 536870912:r=Vb;break;default:r=Gl}r=vk(r,ck.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function ck(e,t){if(Ml=-1,Zl=0,(de&6)!==0)throw Error(R(327));var r=e.callbackNode;if(zo()&&e.callbackNode!==r)return null;var o=Xl(e,e===Ye?et:0);if(o===0)return null;if((o&30)!==0||(o&e.expiredLanes)!==0||t)t=fs(e,o);else{t=o;var n=de;de|=2;var i=dk();(Ye!==e||et!==t)&&(jn=null,jo=Ae()+500,Ar(e,t));do try{rI();break}catch(l){uk(e,l)}while(!0);Ap(),us.current=i,de=n,Fe!==null?t=0:(Ye=null,et=0,t=He)}if(t!==0){if(t===2&&(n=Zd(e),n!==0&&(o=n,t=yp(e,n))),t===1)throw r=fa,Ar(e,0),nr(e,o),wt(e,Ae()),r;if(t===6)nr(e,o);else{if(n=e.current.alternate,(o&30)===0&&!tI(n)&&(t=fs(e,o),t===2&&(i=Zd(e),i!==0&&(o=i,t=yp(e,i))),t===1))throw r=fa,Ar(e,0),nr(e,o),wt(e,Ae()),r;switch(e.finishedWork=n,e.finishedLanes=o,t){case 0:case 1:throw Error(R(345));case 2:Dr(e,St,jn);break;case 3:if(nr(e,o),(o&130023424)===o&&(t=ef+500-Ae(),10<t)){if(Xl(e,0)!==0)break;if(n=e.suspendedLanes,(n&o)!==o){mt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Yd(Dr.bind(null,e,St,jn),t);break}Dr(e,St,jn);break;case 4:if(nr(e,o),(o&4194240)===o)break;for(t=e.eventTimes,n=-1;0<o;){var a=31-on(o);i=1<<a,a=t[a],a>n&&(n=a),o&=~i}if(o=n,o=Ae()-o,o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*eI(o/1960))-o,10<o){e.timeoutHandle=Yd(Dr.bind(null,e,St,jn),o);break}Dr(e,St,jn);break;case 5:Dr(e,St,jn);break;default:throw Error(R(329))}}}return wt(e,Ae()),e.callbackNode===r?ck.bind(null,e):null}function yp(e,t){var r=Xi;return e.current.memoizedState.isDehydrated&&(Ar(e,t).flags|=256),e=fs(e,t),e!==2&&(t=St,St=r,t!==null&&hp(t)),e}function hp(e){St===null?St=e:St.push.apply(St,e)}function tI(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!ln(i(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 nr(e,t){for(t&=~qp,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-on(t),o=1<<r;e[r]=-1,t&=~o}}function xb(e){if((de&6)!==0)throw Error(R(327));zo();var t=Xl(e,0);if((t&1)===0)return wt(e,Ae()),null;var r=fs(e,t);if(e.tag!==0&&r===2){var o=Zd(e);o!==0&&(t=o,r=yp(e,o))}if(r===1)throw r=fa,Ar(e,0),nr(e,t),wt(e,Ae()),r;if(r===6)throw Error(R(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dr(e,St,jn),wt(e,Ae()),null}function tf(e,t){var r=de;de|=1;try{return e(t)}finally{de=r,de===0&&(jo=Ae()+500,bs&&yr())}}function Vr(e){or!==null&&or.tag===0&&(de&6)===0&&zo();var t=de;de|=1;var r=Jt.transition,o=ge;try{if(Jt.transition=null,ge=1,e)return e()}finally{ge=o,Jt.transition=r,de=t,(de&6)===0&&yr()}}function nf(){Rt=bo.current,ze(bo)}function Ar(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Cz(r)),Fe!==null)for(r=Fe.return;r!==null;){var o=r;switch(Np(o),o.tag){case 1:o=o.type.childContextTypes,o!=null&&es();break;case 3:Co(),ze(_t),ze(st),Vp();break;case 5:Bp(o);break;case 4:Co();break;case 13:ze(Ce);break;case 19:ze(Ce);break;case 10:Fp(o.type._context);break;case 22:case 23:nf()}r=r.return}if(Ye=e,Fe=e=pr(e.current,null),et=Rt=t,He=0,fa=null,qp=$s=Br=0,St=Xi=null,Lr!==null){for(t=0;t<Lr.length;t++)if(r=Lr[t],o=r.interleaved,o!==null){r.interleaved=null;var n=o.next,i=r.pending;if(i!==null){var a=i.next;i.next=n,o.next=a}r.pending=o}Lr=null}return e}function uk(e,t){do{var r=Fe;try{if(Ap(),Al.current=cs,ss){for(var o=Te.memoizedState;o!==null;){var n=o.queue;n!==null&&(n.pending=null),o=o.next}ss=!1}if(Zr=0,Ke=Ve=Te=null,Ji=!1,ua=0,Qp.current=null,r===null||r.return===null){He=1,fa=t,Fe=null;break}e:{var i=e,a=r.return,l=r,s=t;if(t=et,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=s,d=l,p=d.tag;if((d.mode&1)===0&&(p===0||p===11||p===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=ab(a);if(g!==null){g.flags&=-257,lb(g,a,l,i,t),g.mode&1&&ib(i,c,t),t=g,s=c;var x=t.updateQueue;if(x===null){var b=new Set;b.add(s),t.updateQueue=b}else x.add(s);break e}else{if((t&1)===0){ib(i,c,t),rf();break e}s=Error(R(426))}}else if(Ee&&l.mode&1){var w=ab(a);if(w!==null){(w.flags&65536)===0&&(w.flags|=256),lb(w,a,l,i,t),Lp(To(s,l));break e}}i=s=To(s,l),He!==4&&(He=2),Xi===null?Xi=[i]:Xi.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var v=JS(i,s,t);qx(i,v);break e;case 1:l=s;var m=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(ur===null||!ur.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t;var S=GS(i,l,t);qx(i,S);break e}}i=i.return}while(i!==null)}fk(r)}catch(_){t=_,Fe===r&&r!==null&&(Fe=r=r.return);continue}break}while(!0)}function dk(){var e=us.current;return us.current=cs,e===null?cs:e}function rf(){(He===0||He===3||He===2)&&(He=4),Ye===null||(Br&268435455)===0&&($s&268435455)===0||nr(Ye,et)}function fs(e,t){var r=de;de|=2;var o=dk();(Ye!==e||et!==t)&&(jn=null,Ar(e,t));do try{nI();break}catch(n){uk(e,n)}while(!0);if(Ap(),de=r,us.current=o,Fe!==null)throw Error(R(261));return Ye=null,et=0,He}function nI(){for(;Fe!==null;)pk(Fe)}function rI(){for(;Fe!==null&&!R1();)pk(Fe)}function pk(e){var t=gk(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?fk(e):Fe=t,Qp.current=null}function fk(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Xz(r,t,Rt),r!==null){Fe=r;return}}else{if(r=Kz(r,t),r!==null){r.flags&=32767,Fe=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{He=6,Fe=null;return}}if(t=t.sibling,t!==null){Fe=t;return}Fe=t=e}while(t!==null);He===0&&(He=5)}function Dr(e,t,r){var o=ge,n=Jt.transition;try{Jt.transition=null,ge=1,oI(e,t,r,o)}finally{Jt.transition=n,ge=o}return null}function oI(e,t,r,o){do zo();while(or!==null);if((de&6)!==0)throw Error(R(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(R(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(F1(e,i),e===Ye&&(Fe=Ye=null,et=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ol||(Ol=!0,vk(Gl,function(){return zo(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Jt.transition,Jt.transition=null;var a=ge;ge=1;var l=de;de|=4,Qp.current=null,Qz(e,r),lk(r,e),zz(Xd),Kl=!!Gd,Xd=Gd=null,e.current=r,qz(r,e,n),C1(),de=l,ge=a,Jt.transition=i}else e.current=r;if(Ol&&(Ol=!1,or=e,ps=n),i=e.pendingLanes,i===0&&(ur=null),O1(r.stateNode,o),wt(e,Ae()),t!==null)for(o=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],o(n.value,{componentStack:n.stack,digest:n.digest});if(ds)throw ds=!1,e=gp,gp=null,e;return(ps&1)!==0&&e.tag!==0&&zo(),i=e.pendingLanes,(i&1)!==0?e===vp?Ki++:(Ki=0,vp=e):Ki=0,yr(),null}function zo(){if(or!==null){var e=Jb(ps),t=Jt.transition,r=ge;try{if(Jt.transition=null,ge=16>e?16:e,or===null)var o=!1;else{if(e=or,or=null,ps=0,(de&6)!==0)throw Error(R(331));var n=de;for(de|=4,B=e.current;B!==null;){var i=B,a=i.child;if((B.flags&16)!==0){var l=i.deletions;if(l!==null){for(var s=0;s<l.length;s++){var c=l[s];for(B=c;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:Gi(8,d,i)}var p=d.child;if(p!==null)p.return=d,B=p;else for(;B!==null;){d=B;var f=d.sibling,g=d.return;if(ok(d),d===c){B=null;break}if(f!==null){f.return=g,B=f;break}B=g}}}var x=i.alternate;if(x!==null){var b=x.child;if(b!==null){x.child=null;do{var w=b.sibling;b.sibling=null,b=w}while(b!==null)}}B=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,B=a;else e:for(;B!==null;){if(i=B,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:Gi(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,B=v;break e}B=i.return}}var m=e.current;for(B=m;B!==null;){a=B;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,B=y;else e:for(a=m;B!==null;){if(l=B,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:_s(9,l)}}catch(_){Ne(l,l.return,_)}if(l===a){B=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,B=S;break e}B=l.return}}if(de=n,yr(),Sn&&typeof Sn.onPostCommitFiberRoot=="function")try{Sn.onPostCommitFiberRoot(gs,e)}catch{}o=!0}return o}finally{ge=r,Jt.transition=t}}return!1}function bb(e,t,r){t=To(r,t),t=JS(e,t,1),e=cr(e,t,1),t=mt(),e!==null&&(ma(e,1,t),wt(e,t))}function Ne(e,t,r){if(e.tag===3)bb(e,e,r);else for(;t!==null;){if(t.tag===3){bb(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ur===null||!ur.has(o))){e=To(r,e),e=GS(t,e,1),t=cr(t,e,1),e=mt(),t!==null&&(ma(t,1,e),wt(t,e));break}}t=t.return}}function iI(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),t=mt(),e.pingedLanes|=e.suspendedLanes&r,Ye===e&&(et&r)===r&&(He===4||He===3&&(et&130023424)===et&&500>Ae()-ef?Ar(e,0):qp|=r),wt(e,t)}function mk(e,t){t===0&&((e.mode&1)===0?t=1:(t=bl,bl<<=1,(bl&130023424)===0&&(bl=4194304)));var r=mt();e=Fn(e,t),e!==null&&(ma(e,t,r),wt(e,r))}function aI(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),mk(e,r)}function lI(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(R(314))}o!==null&&o.delete(t),mk(e,r)}var gk;gk=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||_t.current)kt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return kt=!1,Gz(e,t,r);kt=(e.flags&131072)!==0}else kt=!1,Ee&&(t.flags&1048576)!==0&&xS(t,rs,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var n=Po(t,st.current);wo(t,r),n=Jp(null,t,o,e,n,r);var i=Gp();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,$t(o)?(i=!0,ts(t)):i=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Mp(t),n.updater=ks,t.stateNode=n,n._reactInternals=t,op(t,o,e,r),t=lp(null,t,o,!0,i,r)):(t.tag=0,Ee&&i&&Dp(t),ft(null,t,n,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,n=o._init,o=n(o._payload),t.type=o,n=t.tag=cI(o),e=tn(o,e),n){case 0:t=ap(null,t,o,e,r);break e;case 1:t=ub(null,t,o,e,r);break e;case 11:t=sb(null,t,o,e,r);break e;case 14:t=cb(null,t,o,tn(o.type,e),r);break e}throw Error(R(306,o,""))}return t;case 0:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),ap(e,t,o,n,r);case 1:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),ub(e,t,o,n,r);case 3:e:{if(QS(t),e===null)throw Error(R(387));o=t.pendingProps,i=t.memoizedState,n=i.element,wS(e,t),as(t,o,null,r);var a=t.memoizedState;if(o=a.element,i.isDehydrated)if(i={element:o,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){n=To(Error(R(423)),t),t=db(e,t,o,r,n);break e}else if(o!==n){n=To(Error(R(424)),t),t=db(e,t,o,r,n);break e}else for(Ct=sr(t.stateNode.containerInfo.firstChild),Tt=t,Ee=!0,rn=null,r=_S(t,null,o,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Eo(),o===n){t=Wn(e,t,r);break e}ft(e,t,o,r)}t=t.child}return t;case 5:return zS(t),e===null&&tp(t),o=t.type,n=t.pendingProps,i=e!==null?e.memoizedProps:null,a=n.children,Kd(o,n)?a=null:i!==null&&Kd(o,i)&&(t.flags|=32),YS(e,t),ft(e,t,a,r),t.child;case 6:return e===null&&tp(t),null;case 13:return qS(e,t,r);case 4:return Zp(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ro(t,null,o,r):ft(e,t,o,r),t.child;case 11:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),sb(e,t,o,n,r);case 7:return ft(e,t,t.pendingProps,r),t.child;case 8:return ft(e,t,t.pendingProps.children,r),t.child;case 12:return ft(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,n=t.pendingProps,i=t.memoizedProps,a=n.value,$e(os,o._currentValue),o._currentValue=a,i!==null)if(ln(i.value,a)){if(i.children===n.children&&!_t.current){t=Wn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var s=l.firstContext;s!==null;){if(s.context===o){if(i.tag===1){s=Ln(-1,r&-r),s.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var d=c.pending;d===null?s.next=s:(s.next=d.next,d.next=s),c.pending=s}}i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),np(i.return,r,t),l.lanes|=r;break}s=s.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(R(341));a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),np(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ft(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,o=t.pendingProps.children,wo(t,r),n=Gt(n),o=o(n),t.flags|=1,ft(e,t,o,r),t.child;case 14:return o=t.type,n=tn(o,t.pendingProps),n=tn(o.type,n),cb(e,t,o,n,r);case 15:return XS(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,n=t.pendingProps,n=t.elementType===o?n:tn(o,n),Wl(e,t),t.tag=1,$t(o)?(e=!0,ts(t)):e=!1,wo(t,r),HS(t,o,n),op(t,o,n,r),lp(null,t,o,!0,e,r);case 19:return ek(e,t,r);case 22:return KS(e,t,r)}throw Error(R(156,t.tag))};function vk(e,t){return Zb(e,t)}function sI(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ht(e,t,r,o){return new sI(e,t,r,o)}function of(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cI(e){if(typeof e=="function")return of(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_p)return 11;if(e===$p)return 14}return 2}function pr(e,t){var r=e.alternate;return r===null?(r=Ht(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Bl(e,t,r,o,n,i){var a=2;if(o=e,typeof e=="function")of(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case co:return Fr(r.children,n,i,t);case kp:a=8,n|=8;break;case Pd:return e=Ht(12,r,t,n|2),e.elementType=Pd,e.lanes=i,e;case Ed:return e=Ht(13,r,t,n),e.elementType=Ed,e.lanes=i,e;case Rd:return e=Ht(19,r,t,n),e.elementType=Rd,e.lanes=i,e;case zb:return ws(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $b:a=10;break e;case wb:a=9;break e;case _p:a=11;break e;case $p:a=14;break e;case qn:a=16,o=null;break e}throw Error(R(130,e==null?e:typeof e,""))}return t=Ht(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function Fr(e,t,r,o){return e=Ht(7,e,o,t),e.lanes=r,e}function ws(e,t,r,o){return e=Ht(22,e,o,t),e.elementType=zb,e.lanes=r,e.stateNode={isHidden:!1},e}function wd(e,t,r){return e=Ht(6,e,null,t),e.lanes=r,e}function zd(e,t,r){return t=Ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uI(e,t,r,o,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=cd(0),this.expirationTimes=cd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=cd(0),this.identifierPrefix=o,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function af(e,t,r,o,n,i,a,l,s){return e=new uI(e,t,r,l,s),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ht(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:o,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Mp(i),e}function dI(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:so,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}function yk(e){if(!e)return mr;e=e._reactInternals;e:{if(Jr(e)!==e||e.tag!==1)throw Error(R(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if($t(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(R(171))}if(e.tag===1){var r=e.type;if($t(r))return yS(e,r,t)}return t}function hk(e,t,r,o,n,i,a,l,s){return e=af(r,o,!0,e,n,i,a,l,s),e.context=yk(null),r=e.current,o=mt(),n=dr(r),i=Ln(o,n),i.callback=t??null,cr(r,i,n),e.current.lanes=n,ma(e,n,o),wt(e,o),e}function zs(e,t,r,o){var n=t.current,i=mt(),a=dr(n);return r=yk(r),t.context===null?t.context=r:t.pendingContext=r,t=Ln(i,a),t.payload={element:e},o=o===void 0?null:o,o!==null&&(t.callback=o),e=cr(n,t,a),e!==null&&(an(e,n,a,i),Ul(e,n,a)),a}function ms(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Sb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function lf(e,t){Sb(e,t),(e=e.alternate)&&Sb(e,t)}function pI(){return null}var xk=typeof reportError=="function"?reportError:function(e){console.error(e)};function sf(e){this._internalRoot=e}Is.prototype.render=sf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));zs(e,t,null,null)};Is.prototype.unmount=sf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vr(function(){zs(null,e,null,null)}),t[An]=null}};function Is(e){this._internalRoot=e}Is.prototype.unstable_scheduleHydration=function(e){if(e){var t=Kb();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tr.length&&t!==0&&t<tr[r].priority;r++);tr.splice(r,0,e),r===0&&Qb(e)}};function cf(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ps(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kb(){}function fI(e,t,r,o,n){if(n){if(typeof o=="function"){var i=o;o=function(){var c=ms(a);i.call(c)}}var a=hk(t,o,e,0,null,!1,!1,"",kb);return e._reactRootContainer=a,e[An]=a.current,ia(e.nodeType===8?e.parentNode:e),Vr(),a}for(;n=e.lastChild;)e.removeChild(n);if(typeof o=="function"){var l=o;o=function(){var c=ms(s);l.call(c)}}var s=af(e,0,!1,null,null,!1,!1,"",kb);return e._reactRootContainer=s,e[An]=s.current,ia(e.nodeType===8?e.parentNode:e),Vr(function(){zs(t,s,r,o)}),s}function Es(e,t,r,o,n){var i=r._reactRootContainer;if(i){var a=i;if(typeof n=="function"){var l=n;n=function(){var s=ms(a);l.call(s)}}zs(t,a,e,n)}else a=fI(r,t,e,n,o);return ms(a)}Gb=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Fi(t.pendingLanes);r!==0&&(Ip(t,r|1),wt(t,Ae()),(de&6)===0&&(jo=Ae()+500,yr()))}break;case 13:Vr(function(){var o=Fn(e,1);if(o!==null){var n=mt();an(o,e,1,n)}}),lf(e,1)}};Pp=function(e){if(e.tag===13){var t=Fn(e,134217728);if(t!==null){var r=mt();an(t,e,134217728,r)}lf(e,134217728)}};Xb=function(e){if(e.tag===13){var t=dr(e),r=Fn(e,t);if(r!==null){var o=mt();an(r,e,t,o)}lf(e,t)}};Kb=function(){return ge};Yb=function(e,t){var r=ge;try{return ge=e,t()}finally{ge=r}};Fd=function(e,t,r){switch(t){case"input":if(jd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=xs(o);if(!n)throw Error(R(90));Pb(o),jd(o,n)}}}break;case"textarea":Rb(e,r);break;case"select":t=r.value,t!=null&&So(e,!!r.multiple,t,!1)}};Lb=tf;Ub=Vr;var mI={usingClientEntryPoint:!1,Events:[va,mo,xs,Db,Nb,tf]},Ni={findFiberByHostInstance:Nr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},gI={bundleType:Ni.bundleType,version:Ni.version,rendererPackageName:Ni.rendererPackageName,rendererConfig:Ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Mn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wb(e),e===null?null:e.stateNode},findFiberByHostInstance:Ni.findFiberByHostInstance||pI,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Li=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Li.isDisabled&&Li.supportsFiber))try{gs=Li.inject(gI),Sn=Li}catch{}var Li;Dt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mI;Dt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cf(t))throw Error(R(200));return dI(e,t,null,r)};Dt.createRoot=function(e,t){if(!cf(e))throw Error(R(299));var r=!1,o="",n=xk;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=af(e,1,!1,null,null,r,!1,o,n),e[An]=t.current,ia(e.nodeType===8?e.parentNode:e),new sf(t)};Dt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=Wb(t),e=e===null?null:e.stateNode,e};Dt.flushSync=function(e){return Vr(e)};Dt.hydrate=function(e,t,r){if(!Ps(t))throw Error(R(200));return Es(null,e,t,!0,r)};Dt.hydrateRoot=function(e,t,r){if(!cf(e))throw Error(R(405));var o=r!=null&&r.hydratedSources||null,n=!1,i="",a=xk;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),t=hk(t,null,e,1,r??null,n,!1,i,a),e[An]=t.current,ia(e),o)for(e=0;e<o.length;e++)r=o[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new Is(t)};Dt.render=function(e,t,r){if(!Ps(t))throw Error(R(200));return Es(null,e,t,!1,r)};Dt.unmountComponentAtNode=function(e){if(!Ps(e))throw Error(R(40));return e._reactRootContainer?(Vr(function(){Es(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0):!1};Dt.unstable_batchedUpdates=tf;Dt.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Ps(r))throw Error(R(200));if(e==null||e._reactInternals===void 0)throw Error(R(38));return Es(e,t,r,!1,o)};Dt.version="18.3.1-next-f1338f8080-20240426"});var _k=Cn((Fj,kk)=>{"use strict";function Sk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sk)}catch(e){console.error(e)}}Sk(),kk.exports=bk()});var wk=Cn(uf=>{"use strict";var $k=_k();uf.createRoot=$k.createRoot,uf.hydrateRoot=$k.hydrateRoot;var Wj});var Ik=Cn(Rs=>{"use strict";var vI=ke(),yI=Symbol.for("react.element"),hI=Symbol.for("react.fragment"),xI=Object.prototype.hasOwnProperty,bI=vI.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,SI={key:!0,ref:!0,__self:!0,__source:!0};function zk(e,t,r){var o,n={},i=null,a=null;r!==void 0&&(i=""+r),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(o in t)xI.call(t,o)&&!SI.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)n[o]===void 0&&(n[o]=t[o]);return{$$typeof:yI,type:e,key:i,ref:a,props:n,_owner:bI.current}}Rs.Fragment=hI;Rs.jsx=zk;Rs.jsxs=zk});var K=Cn((Bj,Pk)=>{"use strict";Pk.exports=Ik()});var Vw=A(ke(),1),Hw=A(wk(),1);var Ge=A(ke(),1);var Ek=A(ke(),1),pe=A(K(),1);function F({children:e,variant:t="primary",size:r="md",disabled:o=!1,iconLeft:n,iconRight:i,onClick:a,type:l="button",style:s,...c}){let d={sm:{height:32,padding:"0 12px",font:"var(--text-sm)",gap:6},md:{height:40,padding:"0 16px",font:"var(--text-sm)",gap:8},lg:{height:48,padding:"0 22px",font:"var(--text-base)",gap:8}},p=d[r]??d.md,f={primary:{background:"var(--honey)",color:"var(--honey-on)",border:"1px solid transparent"},secondary:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-strong)"},ghost:{background:"transparent",color:"var(--text-secondary)",border:"1px solid transparent"},pollinate:{background:"var(--pollinate)",color:"#FFFFFF",border:"1px solid transparent"},danger:{background:"var(--severity-critical-bg)",color:"var(--severity-critical)",border:"1px solid var(--severity-critical)"}},g=f[t]??f.primary,x={display:"inline-flex",alignItems:"center",justifyContent:"center",gap:p.gap,height:p.height,padding:p.padding,fontFamily:"var(--font-sans)",fontSize:p.font,fontWeight:600,letterSpacing:"-0.01em",lineHeight:1,borderRadius:"var(--radius-md)",cursor:o?"not-allowed":"pointer",opacity:o?.45:1,transition:"background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out)",whiteSpace:"nowrap",userSelect:"none",...g,...s},b={primary:"var(--honey-hover)",secondary:"var(--bg-subtle)",ghost:"var(--bg-elevated)",pollinate:"var(--pollinate-hover)",danger:"var(--severity-critical-bg)"};return(0,pe.jsxs)("button",{type:l,disabled:o,onClick:a,style:x,onMouseEnter:S=>{o||(S.currentTarget.style.background=b[t]??b.primary)},onMouseLeave:S=>{o||(S.currentTarget.style.background=String(g.background))},onMouseDown:S=>{o||(S.currentTarget.style.transform="translateY(1px)")},onMouseUp:S=>{o||(S.currentTarget.style.transform="none")},...c,children:[n,e,i]})}function q({children:e,tone:t="neutral",mono:r=!1,dot:o=!1,style:n}){let i={neutral:{bg:"var(--bg-subtle)",fg:"var(--text-secondary)",bd:"var(--border-strong)"},honey:{bg:"var(--honey-subtle)",fg:"var(--honey)",bd:"var(--honey-border)"},verified:{bg:"var(--severity-success-bg)",fg:"var(--verified)",bd:"var(--verified)"},pollinate:{bg:"var(--pollinate-subtle)",fg:"var(--pollinate)",bd:"var(--pollinate-border)"},info:{bg:"var(--severity-info-bg)",fg:"var(--severity-info)",bd:"var(--severity-info)"},warning:{bg:"var(--severity-warning-bg)",fg:"var(--severity-warning)",bd:"var(--severity-warning)"},critical:{bg:"var(--severity-critical-bg)",fg:"var(--severity-critical)",bd:"var(--severity-critical)"}},a=i[t]??i.neutral;return(0,pe.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6,height:22,padding:"0 9px",background:a.bg,color:a.fg,border:`1px solid ${a.bd}`,borderRadius:"var(--radius-full)",fontFamily:r?"var(--font-mono)":"var(--font-sans)",fontSize:"var(--text-xs)",fontWeight:600,letterSpacing:r?"0.02em":"0",lineHeight:1,whiteSpace:"nowrap",...n},children:[o&&(0,pe.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",background:a.fg,flex:"none"}}),e]})}function sn({value:e,defaultValue:t,onChange:r,placeholder:o,mono:n=!1,size:i="md",disabled:a=!1,iconLeft:l,type:s="text",style:c,...d}){let[p,f]=Ek.default.useState(!1),x={sm:32,md:40,lg:48}[i]??40;return(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,height:x,padding:"0 12px",background:"var(--bg-surface)",border:`1px solid ${p?"var(--honey)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",boxShadow:p?"0 0 0 3px var(--honey-subtle)":"none",transition:"border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out)",opacity:a?.5:1,...c},children:[l&&(0,pe.jsx)("span",{style:{display:"inline-flex",color:"var(--text-tertiary)",flex:"none"},children:l}),(0,pe.jsx)("input",{type:s,value:e,defaultValue:t,onChange:r,placeholder:o,disabled:a,onFocus:()=>f(!0),onBlur:()=>f(!1),style:{flex:1,minWidth:0,background:"transparent",border:"none",outline:"none",color:"var(--text-primary)",fontFamily:n?"var(--font-mono)":"var(--font-sans)",fontSize:n?"var(--text-sm)":"var(--text-base)",letterSpacing:n?"0.01em":"0"},...d})]})}function Kt({label:e,value:t,unit:r,delta:o,accent:n="honey",style:i}){let a={honey:"var(--honey)",pollinate:"var(--pollinate)",verified:"var(--verified)",neutral:"var(--text-primary)"},l=a[n]??a.honey,s=typeof o=="number"?o>=0:null;return(0,pe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",...i},children:[(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:l,letterSpacing:"-0.01em"},children:t}),r&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",color:"var(--text-tertiary)"},children:r})]}),o!=null&&(0,pe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:s?"var(--verified)":"var(--severity-critical)"},children:[s?"\u25B2":"\u25BC"," ",Math.abs(o)," this week"]})]})}function Cs({memoryKey:e,snippet:t,source:r,score:o,scope:n="personal",verified:i=!1,pollinating:a=!1,kind:l,secondary:s=!1,style:c}){let d=a?"var(--pollinate)":i?"var(--verified)":"var(--honey)";return(0,pe.jsxs)("div",{style:{display:"flex",gap:14,padding:16,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",transition:"border-color var(--dur-base) var(--ease-out)",opacity:s?.72:1,...c},children:[(0,pe.jsx)("div",{style:{flex:"none",paddingTop:2},children:(0,pe.jsx)("div",{style:{width:34,height:38,clipPath:"polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%)",background:d,opacity:a?.9:1,animation:a?"hc-pollinate-pulse var(--dur-pollinate) var(--ease-in-out) infinite alternate":"none"}})}),(0,pe.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:7},children:[(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)",fontWeight:600,color:d,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e}),i&&!a&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)",flex:"none"},children:"\u2713 verified"}),(s||l==="session")&&!a&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",flex:"none"},children:"session"}),a&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--pollinate)",flex:"none"},children:"pollinating\u2026"})]}),(0,pe.jsx)("div",{style:{fontSize:"var(--text-sm)",lineHeight:"20px",color:"var(--text-primary)"},children:t}),(0,pe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginTop:1},children:[r&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:220},children:r}),(0,pe.jsx)("span",{style:{flex:1}}),(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:n}),typeof o=="number"&&(0,pe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,fontWeight:600,color:"var(--text-secondary)"},children:o.toFixed(2)})]})]}),(0,pe.jsx)("style",{children:"@keyframes hc-pollinate-pulse { from { opacity: .5 } to { opacity: 1 } }"})]})}var dt=A(ke(),1);var _u=A(ke(),1);var Gr=A(ke(),1);var ha=A(K(),1);function df({wire:e,onBuilt:t}){let[r,o]=Gr.default.useState(!1),[n,i]=Gr.default.useState(!1),a=Gr.default.useRef(!1),l=Gr.default.useRef(!0);Gr.default.useEffect(()=>(l.current=!0,()=>{l.current=!1}),[]);let s=Gr.default.useCallback(async()=>{if(a.current)return;a.current=!0,o(!0),i(!1);let c=!1;try{let d=await e.buildGraph();c=d.built,d.built&&await t()}catch{}finally{a.current=!1,l.current&&(o(!1),i(!c))}},[e,t]);return(0,ha.jsxs)("div",{"data-testid":"build-graph",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:8},children:[(0,ha.jsx)(F,{variant:"primary",onClick:()=>{s()},disabled:r,"data-testid":"build-graph-button",children:r?"Building\u2026":"Build graph"}),n&&(0,ha.jsx)("span",{"data-testid":"build-graph-error",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--severity-critical)"},children:"Build failed \u2014 the daemon could not build the graph. Try again."})]})}function kI(e,t){let r=new Map,o=e.length,n=Math.ceil(Math.sqrt(o)),i=Math.ceil(o/n),a=Math.max(1,t.width-56),l=Math.max(1,t.height-56),s=n>1?a/(n-1):0,c=i>1?l/(i-1):0;for(let d=0;d<o;d++){let p=e[d];if(p===void 0)continue;let f=d%n,g=Math.floor(d/n);r.set(p.id,{x:n>1?28+f*s:t.width/2,y:i>1?28+g*c:t.height/2})}return r}function Ts(e,t,r){let o=new Map,n=e.length;if(n===0)return o;let i=r.width/2,a=r.height/2;if(n===1){let c=e[0];return c!==void 0&&o.set(c.id,{x:i,y:a}),o}if(n>36)return kI(e,r);let l=Math.max(0,Math.min(i,a)-28),s=n-1;for(let c=0;c<n;c++){let d=e[c];if(d===void 0)continue;if(c===0){o.set(d.id,{x:i,y:a});continue}let p=-Math.PI/2+2*Math.PI*(c-1)/s;o.set(d.id,{x:i+l*Math.cos(p),y:a+l*Math.sin(p)})}return o}function Rk(e,t){let r=new Map,o=new Map,n=new Set,i=new Set,a=[],l=[];for(let s of t){if(s.from===e&&s.to!==e){let c=`${s.kind}\0${s.to}`;n.has(c)||(n.add(c),r.has(s.kind)||(r.set(s.kind,[]),a.push(s.kind)),r.get(s.kind)?.push(s.to))}if(s.to===e&&s.from!==e){let c=`${s.kind}\0${s.from}`;i.has(c)||(i.add(c),o.has(s.kind)||(o.set(s.kind,[]),l.push(s.kind)),o.get(s.kind)?.push(s.from))}}return{outgoing:a.map(s=>({kind:s,ids:r.get(s)??[]})),incoming:l.map(s=>({kind:s,ids:o.get(s)??[]}))}}var u={};Tn(u,{$brand:()=>ff,$input:()=>Og,$output:()=>jg,NEVER:()=>pf,TimePrecision:()=>Ug,ZodAny:()=>Iy,ZodArray:()=>Cy,ZodBase64:()=>iu,ZodBase64URL:()=>au,ZodBigInt:()=>pi,ZodBigIntFormat:()=>cu,ZodBoolean:()=>di,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>ou,ZodCUID:()=>Kc,ZodCUID2:()=>Yc,ZodCatch:()=>qy,ZodCodec:()=>Ka,ZodCustom:()=>Ya,ZodCustomStringFormat:()=>ci,ZodDate:()=>Va,ZodDefault:()=>Jy,ZodDiscriminatedUnion:()=>jy,ZodE164:()=>lu,ZodEmail:()=>Jc,ZodEmoji:()=>Gc,ZodEnum:()=>li,ZodError:()=>qE,ZodExactOptional:()=>By,ZodFile:()=>My,ZodFirstPartyTypeKind:()=>ph,ZodFunction:()=>ch,ZodGUID:()=>Fa,ZodIPv4:()=>tu,ZodIPv6:()=>nu,ZodISODate:()=>Wc,ZodISODateTime:()=>Fc,ZodISODuration:()=>Zc,ZodISOTime:()=>Mc,ZodIntersection:()=>Oy,ZodIssueCode:()=>tR,ZodJWT:()=>su,ZodKSUID:()=>eu,ZodLazy:()=>ah,ZodLiteral:()=>Wy,ZodMAC:()=>by,ZodMap:()=>Ay,ZodNaN:()=>th,ZodNanoID:()=>Xc,ZodNever:()=>Ey,ZodNonOptional:()=>gu,ZodNull:()=>wy,ZodNullable:()=>Hy,ZodNumber:()=>ui,ZodNumberFormat:()=>ro,ZodObject:()=>Ja,ZodOptional:()=>mu,ZodPipe:()=>Xa,ZodPrefault:()=>Xy,ZodPreprocess:()=>nh,ZodPromise:()=>sh,ZodReadonly:()=>rh,ZodRealError:()=>Pt,ZodRecord:()=>ai,ZodSet:()=>Fy,ZodString:()=>si,ZodStringFormat:()=>he,ZodSuccess:()=>Qy,ZodSymbol:()=>_y,ZodTemplateLiteral:()=>ih,ZodTransform:()=>Zy,ZodTuple:()=>Ny,ZodType:()=>ne,ZodULID:()=>Qc,ZodURL:()=>Ba,ZodUUID:()=>zn,ZodUndefined:()=>$y,ZodUnion:()=>Ga,ZodUnknown:()=>Py,ZodVoid:()=>Ry,ZodXID:()=>qc,ZodXor:()=>Ty,_ZodString:()=>Hc,_default:()=>Gy,_function:()=>h0,any:()=>X$,array:()=>Ha,base64:()=>T$,base64url:()=>j$,bigint:()=>B$,boolean:()=>ky,catch:()=>eh,check:()=>x0,cidrv4:()=>R$,cidrv6:()=>C$,clone:()=>vt,codec:()=>m0,coerce:()=>fh,config:()=>Le,core:()=>Vn,cuid:()=>k$,cuid2:()=>_$,custom:()=>b0,date:()=>Y$,decode:()=>fy,decodeAsync:()=>gy,describe:()=>S0,discriminatedUnion:()=>r0,e164:()=>O$,email:()=>p$,emoji:()=>b$,encode:()=>py,encodeAsync:()=>my,endsWith:()=>Ko,enum:()=>pu,exactOptional:()=>Vy,file:()=>u0,flattenError:()=>za,float32:()=>F$,float64:()=>W$,formatError:()=>Ia,fromJSONSchema:()=>P0,function:()=>h0,getErrorMap:()=>rR,globalRegistry:()=>nt,gt:()=>$n,gte:()=>ht,guid:()=>f$,hash:()=>A$,hex:()=>U$,hostname:()=>L$,httpUrl:()=>x$,includes:()=>Go,instanceof:()=>_0,int:()=>Bc,int32:()=>M$,int64:()=>V$,intersection:()=>Dy,invertCodec:()=>g0,ipv4:()=>I$,ipv6:()=>E$,iso:()=>ii,json:()=>w0,jwt:()=>D$,keyof:()=>Q$,ksuid:()=>z$,lazy:()=>lh,length:()=>to,literal:()=>c0,locales:()=>Da,looseObject:()=>t0,looseRecord:()=>i0,lowercase:()=>Ho,lt:()=>_n,lte:()=>Lt,mac:()=>P$,map:()=>a0,maxLength:()=>eo,maxSize:()=>$r,meta:()=>k0,mime:()=>Yo,minLength:()=>Bn,minSize:()=>wn,multipleOf:()=>_r,nan:()=>f0,nanoid:()=>S$,nativeEnum:()=>s0,negative:()=>Rc,never:()=>uu,nonnegative:()=>Tc,nonoptional:()=>Yy,nonpositive:()=>Cc,normalize:()=>Qo,null:()=>zy,nullable:()=>Ma,nullish:()=>d0,number:()=>Sy,object:()=>q$,optional:()=>Wa,overwrite:()=>un,parse:()=>sy,parseAsync:()=>cy,partialRecord:()=>o0,pipe:()=>Vc,positive:()=>Ec,prefault:()=>Ky,preprocess:()=>z0,prettifyError:()=>zf,promise:()=>y0,property:()=>jc,readonly:()=>oh,record:()=>Uy,refine:()=>uh,regex:()=>Vo,regexes:()=>Nt,registry:()=>sc,safeDecode:()=>yy,safeDecodeAsync:()=>xy,safeEncode:()=>vy,safeEncodeAsync:()=>hy,safeParse:()=>uy,safeParseAsync:()=>dy,set:()=>l0,setErrorMap:()=>nR,size:()=>qr,slugify:()=>ni,startsWith:()=>Xo,strictObject:()=>e0,string:()=>Aa,stringFormat:()=>N$,stringbool:()=>$0,success:()=>p0,superRefine:()=>dh,symbol:()=>J$,templateLiteral:()=>v0,toJSONSchema:()=>Lc,toLowerCase:()=>ei,toUpperCase:()=>ti,transform:()=>fu,treeifyError:()=>wf,trim:()=>qo,tuple:()=>Ly,uint32:()=>Z$,uint64:()=>H$,ulid:()=>$$,undefined:()=>G$,union:()=>du,unknown:()=>no,uppercase:()=>Jo,url:()=>h$,util:()=>P,uuid:()=>m$,uuidv4:()=>g$,uuidv6:()=>v$,uuidv7:()=>y$,void:()=>K$,xid:()=>w$,xor:()=>n0});var Vn={};Tn(Vn,{$ZodAny:()=>tg,$ZodArray:()=>ag,$ZodAsyncError:()=>cn,$ZodBase64:()=>Vm,$ZodBase64URL:()=>Hm,$ZodBigInt:()=>ec,$ZodBigIntFormat:()=>Ym,$ZodBoolean:()=>Ca,$ZodCIDRv4:()=>Mm,$ZodCIDRv6:()=>Zm,$ZodCUID:()=>Rm,$ZodCUID2:()=>Cm,$ZodCatch:()=>$g,$ZodCheck:()=>be,$ZodCheckBigIntFormat:()=>am,$ZodCheckEndsWith:()=>hm,$ZodCheckGreaterThan:()=>Gs,$ZodCheckIncludes:()=>vm,$ZodCheckLengthEquals:()=>pm,$ZodCheckLessThan:()=>Js,$ZodCheckLowerCase:()=>mm,$ZodCheckMaxLength:()=>um,$ZodCheckMaxSize:()=>lm,$ZodCheckMimeType:()=>bm,$ZodCheckMinLength:()=>dm,$ZodCheckMinSize:()=>sm,$ZodCheckMultipleOf:()=>om,$ZodCheckNumberFormat:()=>im,$ZodCheckOverwrite:()=>Sm,$ZodCheckProperty:()=>xm,$ZodCheckRegex:()=>fm,$ZodCheckSizeEquals:()=>cm,$ZodCheckStartsWith:()=>ym,$ZodCheckStringFormat:()=>Zo,$ZodCheckUpperCase:()=>gm,$ZodCodec:()=>ja,$ZodCustom:()=>Tg,$ZodCustomStringFormat:()=>Xm,$ZodDate:()=>ig,$ZodDefault:()=>bg,$ZodDiscriminatedUnion:()=>cg,$ZodE164:()=>Jm,$ZodEmail:()=>zm,$ZodEmoji:()=>Pm,$ZodEncodeError:()=>hr,$ZodEnum:()=>mg,$ZodError:()=>wa,$ZodExactOptional:()=>hg,$ZodFile:()=>vg,$ZodFunction:()=>Eg,$ZodGUID:()=>$m,$ZodIPv4:()=>Am,$ZodIPv6:()=>Fm,$ZodISODate:()=>Nm,$ZodISODateTime:()=>Dm,$ZodISODuration:()=>Um,$ZodISOTime:()=>Lm,$ZodIntersection:()=>ug,$ZodJWT:()=>Gm,$ZodKSUID:()=>Om,$ZodLazy:()=>Cg,$ZodLiteral:()=>gg,$ZodMAC:()=>Wm,$ZodMap:()=>pg,$ZodNaN:()=>wg,$ZodNanoID:()=>Em,$ZodNever:()=>rg,$ZodNonOptional:()=>kg,$ZodNull:()=>eg,$ZodNullable:()=>xg,$ZodNumber:()=>qs,$ZodNumberFormat:()=>Km,$ZodObject:()=>l_,$ZodObjectJIT:()=>lg,$ZodOptional:()=>nc,$ZodPipe:()=>rc,$ZodPrefault:()=>Sg,$ZodPreprocess:()=>zg,$ZodPromise:()=>Rg,$ZodReadonly:()=>Ig,$ZodRealError:()=>It,$ZodRecord:()=>dg,$ZodRegistry:()=>lc,$ZodSet:()=>fg,$ZodString:()=>Qr,$ZodStringFormat:()=>ye,$ZodSuccess:()=>_g,$ZodSymbol:()=>Qm,$ZodTemplateLiteral:()=>Pg,$ZodTransform:()=>yg,$ZodTuple:()=>tc,$ZodType:()=>ee,$ZodULID:()=>Tm,$ZodURL:()=>Im,$ZodUUID:()=>wm,$ZodUndefined:()=>qm,$ZodUnion:()=>Ta,$ZodUnknown:()=>ng,$ZodVoid:()=>og,$ZodXID:()=>jm,$ZodXor:()=>sg,$brand:()=>ff,$constructor:()=>h,$input:()=>Og,$output:()=>jg,Doc:()=>Ra,JSONSchema:()=>c$,JSONSchemaGenerator:()=>Uc,NEVER:()=>pf,TimePrecision:()=>Ug,_any:()=>iv,_array:()=>pv,_base64:()=>wc,_base64url:()=>zc,_bigint:()=>Qg,_boolean:()=>Kg,_catch:()=>VE,_check:()=>s$,_cidrv4:()=>_c,_cidrv6:()=>$c,_coercedBigint:()=>qg,_coercedBoolean:()=>Yg,_coercedDate:()=>uv,_coercedNumber:()=>Bg,_coercedString:()=>Ng,_cuid:()=>vc,_cuid2:()=>yc,_custom:()=>mv,_date:()=>cv,_decode:()=>Us,_decodeAsync:()=>Fs,_default:()=>ME,_discriminatedUnion:()=>RE,_e164:()=>Ic,_email:()=>cc,_emoji:()=>mc,_encode:()=>Ls,_encodeAsync:()=>As,_endsWith:()=>Ko,_enum:()=>NE,_file:()=>fv,_float32:()=>Hg,_float64:()=>Jg,_gt:()=>$n,_gte:()=>ht,_guid:()=>Na,_includes:()=>Go,_int:()=>Vg,_int32:()=>Gg,_int64:()=>ev,_intersection:()=>CE,_ipv4:()=>Sc,_ipv6:()=>kc,_isoDate:()=>Fg,_isoDateTime:()=>Ag,_isoDuration:()=>Mg,_isoTime:()=>Wg,_jwt:()=>Pc,_ksuid:()=>bc,_lazy:()=>XE,_length:()=>to,_literal:()=>UE,_lowercase:()=>Ho,_lt:()=>_n,_lte:()=>Lt,_mac:()=>Lg,_map:()=>OE,_max:()=>Lt,_maxLength:()=>eo,_maxSize:()=>$r,_mime:()=>Yo,_min:()=>ht,_minLength:()=>Bn,_minSize:()=>wn,_multipleOf:()=>_r,_nan:()=>dv,_nanoid:()=>gc,_nativeEnum:()=>LE,_negative:()=>Rc,_never:()=>lv,_nonnegative:()=>Tc,_nonoptional:()=>ZE,_nonpositive:()=>Cc,_normalize:()=>Qo,_null:()=>ov,_nullable:()=>WE,_number:()=>Zg,_optional:()=>FE,_overwrite:()=>un,_parse:()=>Ao,_parseAsync:()=>Fo,_pipe:()=>HE,_positive:()=>Ec,_promise:()=>KE,_property:()=>jc,_readonly:()=>JE,_record:()=>jE,_refine:()=>gv,_regex:()=>Vo,_safeDecode:()=>Ms,_safeDecodeAsync:()=>Bs,_safeEncode:()=>Ws,_safeEncodeAsync:()=>Zs,_safeParse:()=>Wo,_safeParseAsync:()=>Mo,_set:()=>DE,_size:()=>qr,_slugify:()=>ni,_startsWith:()=>Xo,_string:()=>Dg,_stringFormat:()=>ri,_stringbool:()=>xv,_success:()=>BE,_superRefine:()=>vv,_symbol:()=>nv,_templateLiteral:()=>GE,_toLowerCase:()=>ei,_toUpperCase:()=>ti,_transform:()=>AE,_trim:()=>qo,_tuple:()=>TE,_uint32:()=>Xg,_uint64:()=>tv,_ulid:()=>hc,_undefined:()=>rv,_union:()=>PE,_unknown:()=>av,_uppercase:()=>Jo,_url:()=>La,_uuid:()=>uc,_uuidv4:()=>dc,_uuidv6:()=>pc,_uuidv7:()=>fc,_void:()=>sv,_xid:()=>xc,_xor:()=>EE,clone:()=>vt,config:()=>Le,createStandardJSONSchemaMethod:()=>oi,createToJSONSchemaMethod:()=>bv,decode:()=>KI,decodeAsync:()=>QI,describe:()=>yv,encode:()=>XI,encodeAsync:()=>YI,extractDefs:()=>zr,finalize:()=>Ir,flattenError:()=>za,formatError:()=>Ia,globalConfig:()=>Xr,globalRegistry:()=>nt,initializeContext:()=>wr,isValidBase64:()=>Bm,isValidBase64URL:()=>r_,isValidJWT:()=>o_,locales:()=>Da,meta:()=>hv,parse:()=>Ds,parseAsync:()=>Ns,prettifyError:()=>zf,process:()=>fe,regexes:()=>Nt,registry:()=>sc,safeDecode:()=>eP,safeDecodeAsync:()=>nP,safeEncode:()=>qI,safeEncodeAsync:()=>tP,safeParse:()=>If,safeParseAsync:()=>Pf,toDotPath:()=>Nk,toJSONSchema:()=>Lc,treeifyError:()=>wf,util:()=>P,version:()=>km});var Ck,pf=Object.freeze({status:"aborted"});function h(e,t,r){function o(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let c=a.prototype,d=Object.keys(c);for(let p=0;p<d.length;p++){let f=d[p];f in l||(l[f]=c[f].bind(l))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(l){var s;let c=r?.Parent?new i:this;o(c,l),(s=c._zod).deferred??(s.deferred=[]);for(let d of c._zod.deferred)d();return c}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}var ff=Symbol("zod_brand"),cn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},hr=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Ck=globalThis).__zod_globalConfig??(Ck.__zod_globalConfig={});var Xr=globalThis.__zod_globalConfig;function Le(e){return e&&Object.assign(Xr,e),Xr}var P={};Tn(P,{BIGINT_FORMAT_RANGES:()=>_f,Class:()=>gf,NUMBER_FORMAT_RANGES:()=>kf,aborted:()=>kr,allowsEval:()=>hf,assert:()=>II,assertEqual:()=>_I,assertIs:()=>wI,assertNever:()=>zI,assertNotEqual:()=>$I,assignProp:()=>br,base64ToUint8Array:()=>jk,base64urlToUint8Array:()=>BI,cached:()=>Lo,captureStackTrace:()=>Os,cleanEnum:()=>ZI,cleanRegex:()=>Sa,clone:()=>vt,cloneDef:()=>EI,createTransparentProxy:()=>DI,defineLazy:()=>ae,esc:()=>js,escapeRegex:()=>Yt,explicitlyAborted:()=>$f,extend:()=>UI,finalizeIssue:()=>yt,floatSafeRemainder:()=>vf,getElementAtPath:()=>RI,getEnumValues:()=>ba,getLengthableOrigin:()=>$a,getParsedType:()=>OI,getSizableOrigin:()=>_a,hexToUint8Array:()=>HI,isObject:()=>Kr,isPlainObject:()=>Sr,issue:()=>Uo,joinValues:()=>k,jsonStringifyReplacer:()=>No,merge:()=>FI,mergeDefs:()=>Zn,normalizeParams:()=>T,nullish:()=>xr,numKeys:()=>jI,objectClone:()=>PI,omit:()=>LI,optionalKeys:()=>Sf,parsedType:()=>I,partial:()=>WI,pick:()=>NI,prefixIssues:()=>zt,primitiveTypes:()=>bf,promiseAllObject:()=>CI,propertyKeyTypes:()=>ka,randomString:()=>TI,required:()=>MI,safeExtend:()=>AI,shallowClone:()=>xf,slugify:()=>yf,stringifyPrimitive:()=>z,uint8ArrayToBase64:()=>Ok,uint8ArrayToBase64url:()=>VI,uint8ArrayToHex:()=>JI,unwrapMessage:()=>xa});function _I(e){return e}function $I(e){return e}function wI(e){}function zI(e){throw new Error("Unexpected value in exhaustive check")}function II(e){}function ba(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function k(e,t="|"){return e.map(r=>z(r)).join(t)}function No(e,t){return typeof t=="bigint"?t.toString():t}function Lo(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function xr(e){return e==null}function Sa(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function vf(e,t){let r=e/t,o=Math.round(r),n=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-o)<n?0:r-o}var Tk=Symbol("evaluating");function ae(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Tk)return o===void 0&&(o=Tk,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function PI(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function br(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function Zn(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function EI(e){return Zn(e._zod.def)}function RI(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function CI(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function TI(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function js(e){return JSON.stringify(e)}function yf(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Os="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Kr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var hf=Lo(()=>{if(Xr.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Sr(e){if(Kr(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Kr(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function xf(e){return Sr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function jI(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}var OI=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}`)}},ka=new Set(["string","number","symbol"]),bf=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Yt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function vt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function T(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 DI(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function z(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Sf(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var kf={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]},_f={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function NI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=Zn(e._zod.def,{get shape(){let a={};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return br(this,"shape",a),a},checks:[]});return vt(e,i)}function LI(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=Zn(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return br(this,"shape",a),a},checks:[]});return vt(e,i)}function UI(e,t){if(!Sr(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=Zn(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return br(this,"shape",i),i}});return vt(e,n)}function AI(e,t){if(!Sr(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=Zn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return br(this,"shape",o),o}});return vt(e,r)}function FI(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let r=Zn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return br(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return vt(e,r)}function WI(e,t,r){let n=t._zod.def.checks;if(n&&n.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,s={...l};if(r)for(let c in r){if(!(c in l))throw new Error(`Unrecognized key: "${c}"`);r[c]&&(s[c]=e?new e({type:"optional",innerType:l[c]}):l[c])}else for(let c in l)s[c]=e?new e({type:"optional",innerType:l[c]}):l[c];return br(this,"shape",s),s},checks:[]});return vt(t,a)}function MI(e,t,r){let o=Zn(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return br(this,"shape",i),i}});return vt(t,o)}function kr(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function $f(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue===!1)return!0;return!1}function zt(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function xa(e){return typeof e=="string"?e:e?.message}function yt(e,t,r){let o=e.message?e.message:xa(e.inst?._zod.def?.error?.(e))??xa(t?.error?.(e))??xa(r.customError?.(e))??xa(r.localeError?.(e))??"Invalid input",{inst:n,continue:i,input:a,...l}=e;return l.path??(l.path=[]),l.message=o,t?.reportInput&&(l.input=a),l}function _a(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function $a(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function I(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 r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function Uo(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function ZI(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function jk(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function Ok(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function BI(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return jk(t+r)}function VI(e){return Ok(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function HI(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function JI(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var gf=class{constructor(...t){}};var Dk=(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,No,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},wa=h("$ZodError",Dk),It=h("$ZodError",Dk,{Parent:Error});function za(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function Ia(e,t=r=>r.message){let r={_errors:[]},o=(n,i=[])=>{for(let a of n.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(l=>o({issues:l},[...i,...a.path]));else if(a.code==="invalid_key")o({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")o({issues:a.issues},[...i,...a.path]);else{let l=[...i,...a.path];if(l.length===0)r._errors.push(t(a));else{let s=r,c=0;for(;c<l.length;){let d=l[c];c===l.length-1?(s[d]=s[d]||{_errors:[]},s[d]._errors.push(t(a))):s[d]=s[d]||{_errors:[]},s=s[d],c++}}}};return o(e),r}function wf(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,l;for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>o({issues:c},[...i,...s.path]));else if(s.code==="invalid_key")o({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")o({issues:s.issues},[...i,...s.path]);else{let c=[...i,...s.path];if(c.length===0){r.errors.push(t(s));continue}let d=r,p=0;for(;p<c.length;){let f=c[p],g=p===c.length-1;typeof f=="string"?(d.properties??(d.properties={}),(a=d.properties)[f]??(a[f]={errors:[]}),d=d.properties[f]):(d.items??(d.items=[]),(l=d.items)[f]??(l[f]={errors:[]}),d=d.items[f]),g&&d.errors.push(t(s)),p++}}};return o(e),r}function Nk(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function zf(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Nk(o.path)}`);return t.join(`
|
|
9
|
+
`)}var Ao=e=>(t,r,o,n)=>{let i=o?{...o,async:!1}:{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new cn;if(a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>yt(s,i,Le())));throw Os(l,n?.callee),l}return a.value},Ds=Ao(It),Fo=e=>async(t,r,o,n)=>{let i=o?{...o,async:!0}:{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new(n?.Err??e)(a.issues.map(s=>yt(s,i,Le())));throw Os(l,n?.callee),l}return a.value},Ns=Fo(It),Wo=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new cn;return i.issues.length?{success:!1,error:new(e??wa)(i.issues.map(a=>yt(a,n,Le())))}:{success:!0,data:i.value}},If=Wo(It),Mo=e=>async(t,r,o)=>{let n=o?{...o,async:!0}:{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>yt(a,n,Le())))}:{success:!0,data:i.value}},Pf=Mo(It),Ls=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Ao(e)(t,r,n)},XI=Ls(It),Us=e=>(t,r,o)=>Ao(e)(t,r,o),KI=Us(It),As=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Fo(e)(t,r,n)},YI=As(It),Fs=e=>async(t,r,o)=>Fo(e)(t,r,o),QI=Fs(It),Ws=e=>(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Wo(e)(t,r,n)},qI=Ws(It),Ms=e=>(t,r,o)=>Wo(e)(t,r,o),eP=Ms(It),Zs=e=>async(t,r,o)=>{let n=o?{...o,direction:"backward"}:{direction:"backward"};return Mo(e)(t,r,n)},tP=Zs(It),Bs=e=>async(t,r,o)=>Mo(e)(t,r,o),nP=Bs(It);var Nt={};Tn(Nt,{base64:()=>Bf,base64url:()=>Vs,bigint:()=>Yf,boolean:()=>qf,browserEmail:()=>uP,cidrv4:()=>Mf,cidrv6:()=>Zf,cuid:()=>Ef,cuid2:()=>Rf,date:()=>Jf,datetime:()=>Xf,domain:()=>fP,duration:()=>Df,e164:()=>Hf,email:()=>Lf,emoji:()=>Uf,extendedDuration:()=>rP,guid:()=>Nf,hex:()=>mP,hostname:()=>pP,html5Email:()=>lP,httpProtocol:()=>Vf,idnEmail:()=>cP,integer:()=>Qf,ipv4:()=>Af,ipv6:()=>Ff,ksuid:()=>jf,lowercase:()=>nm,mac:()=>Wf,md5_base64:()=>vP,md5_base64url:()=>yP,md5_hex:()=>gP,nanoid:()=>Of,null:()=>em,number:()=>Hs,rfc5322Email:()=>sP,sha1_base64:()=>xP,sha1_base64url:()=>bP,sha1_hex:()=>hP,sha256_base64:()=>kP,sha256_base64url:()=>_P,sha256_hex:()=>SP,sha384_base64:()=>wP,sha384_base64url:()=>zP,sha384_hex:()=>$P,sha512_base64:()=>PP,sha512_base64url:()=>EP,sha512_hex:()=>IP,string:()=>Kf,time:()=>Gf,ulid:()=>Cf,undefined:()=>tm,unicodeEmail:()=>Lk,uppercase:()=>rm,uuid:()=>Yr,uuid4:()=>oP,uuid6:()=>iP,uuid7:()=>aP,xid:()=>Tf});var Ef=/^[cC][0-9a-z]{6,}$/,Rf=/^[0-9a-z]+$/,Cf=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Tf=/^[0-9a-vA-V]{20}$/,jf=/^[A-Za-z0-9]{27}$/,Of=/^[a-zA-Z0-9_-]{21}$/,Df=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rP=/^[-+]?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)?)??$/,Nf=/^([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})$/,Yr=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)$/,oP=Yr(4),iP=Yr(6),aP=Yr(7),Lf=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lP=/^[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])?)*$/,sP=/^(([^<>()\[\]\\.,;:\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,}))$/,Lk=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,cP=Lk,uP=/^[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])?)*$/,dP="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Uf(){return new RegExp(dP,"u")}var Af=/^(?:(?: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])$/,Ff=/^(([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}|:))$/,Wf=e=>{let t=Yt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Mf=/^((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])$/,Zf=/^(([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])$/,Bf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Vs=/^[A-Za-z0-9_-]*$/,pP=/^(?=.{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])?)*\.?$/,fP=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Vf=/^https?$/,Hf=/^\+[1-9]\d{6,14}$/,Uk="(?:(?:\\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])))",Jf=new RegExp(`^${Uk}$`);function Ak(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 Gf(e){return new RegExp(`^${Ak(e)}$`)}function Xf(e){let t=Ak({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Uk}T(?:${o})$`)}var Kf=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Yf=/^-?\d+n?$/,Qf=/^-?\d+$/,Hs=/^-?\d+(?:\.\d+)?$/,qf=/^(?:true|false)$/i,em=/^null$/i;var tm=/^undefined$/i;var nm=/^[^A-Z]*$/,rm=/^[^a-z]*$/,mP=/^[0-9a-fA-F]*$/;function Pa(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Ea(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var gP=/^[0-9a-fA-F]{32}$/,vP=Pa(22,"=="),yP=Ea(22),hP=/^[0-9a-fA-F]{40}$/,xP=Pa(27,"="),bP=Ea(27),SP=/^[0-9a-fA-F]{64}$/,kP=Pa(43,"="),_P=Ea(43),$P=/^[0-9a-fA-F]{96}$/,wP=Pa(64,""),zP=Ea(64),IP=/^[0-9a-fA-F]{128}$/,PP=Pa(86,"=="),EP=Ea(86);var be=h("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),Wk={number:"number",bigint:"bigint",object:"date"},Js=h("$ZodCheckLessThan",(e,t)=>{be.init(e,t);let r=Wk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Gs=h("$ZodCheckGreaterThan",(e,t)=>{be.init(e,t);let r=Wk[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),om=h("$ZodCheckMultipleOf",(e,t)=>{be.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):vf(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),im=h("$ZodCheckNumberFormat",(e,t)=>{be.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=kf[t.format];e._zod.onattach.push(a=>{let l=a._zod.bag;l.format=t.format,l.minimum=n,l.maximum=i,r&&(l.pattern=Qf)}),e._zod.check=a=>{let l=a.value;if(r){if(!Number.isInteger(l)){a.issues.push({expected:o,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:o,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:o,inclusive:!0,continue:!t.abort});return}}l<n&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),l>i&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),am=h("$ZodCheckBigIntFormat",(e,t)=>{be.init(e,t);let[r,o]=_f[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),lm=h("$ZodCheckMaxSize",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:_a(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),sm=h("$ZodCheckMinSize",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:_a(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),cm=h("$ZodCheckSizeEquals",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:_a(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),um=h("$ZodCheckMaxLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=$a(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),dm=h("$ZodCheckMinLength",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=$a(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),pm=h("$ZodCheckLengthEquals",(e,t)=>{var r;be.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!xr(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=$a(n),l=i>t.length;o.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Zo=h("$ZodCheckStringFormat",(e,t)=>{var r,o;be.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),fm=h("$ZodCheckRegex",(e,t)=>{Zo.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),mm=h("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=nm),Zo.init(e,t)}),gm=h("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=rm),Zo.init(e,t)}),vm=h("$ZodCheckIncludes",(e,t)=>{be.init(e,t);let r=Yt(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ym=h("$ZodCheckStartsWith",(e,t)=>{be.init(e,t);let r=new RegExp(`^${Yt(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),hm=h("$ZodCheckEndsWith",(e,t)=>{be.init(e,t);let r=new RegExp(`.*${Yt(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function Fk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues))}var xm=h("$ZodCheckProperty",(e,t)=>{be.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>Fk(n,r,t.property));Fk(o,r,t.property)}}),bm=h("$ZodCheckMimeType",(e,t)=>{be.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),Sm=h("$ZodCheckOverwrite",(e,t)=>{be.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Ra=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 o=t.split(`
|
|
10
10
|
`).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
|
|
11
|
-
`))}};var cm={major:4,minor:4,patch:3};var Y=h("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=cm;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,s)=>{let c=gr(a),u;for(let p of l){if(p._zod.def.when){if(df(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,g=p._zod.check(a);if(g instanceof Promise&&s?.async===!1)throw new ln;if(u||g instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(c||(c=gr(a,f)))});else{if(a.issues.length===f)continue;c||(c=gr(a,f))}}return u?u.then(()=>a):a},i=(a,l,s)=>{if(gr(a))return a.aborted=!0,a;let c=n(l,o,s);if(c instanceof Promise){if(s.async===!1)throw new ln;return c.then(u=>e._zod.parse(u,s))}return e._zod.parse(c,s)};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(u=>i(u,a,l)):i(c,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new ln;return s.then(c=>n(c,o,l))}return n(s,o,l)}}ie(e,"~standard",()=>({validate:n=>{try{let i=mf(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return gf(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Hr=h("$ZodString",(e,t)=>{Y.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Lf(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ve=h("$ZodStringFormat",(e,t)=>{Lo.init(e,t),Hr.init(e,t)}),dm=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_f),ve.init(e,t)}),pm=h("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Vr(o))}else t.pattern??(t.pattern=Vr());ve.init(e,t)}),fm=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=$f),ve.init(e,t)}),mm=h("$ZodURL",(e,t)=>{ve.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===jf.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),gm=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=wf()),ve.init(e,t)}),vm=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=bf),ve.init(e,t)}),ym=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=vf),ve.init(e,t)}),hm=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=yf),ve.init(e,t)}),xm=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=hf),ve.init(e,t)}),Sm=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=xf),ve.init(e,t)}),bm=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Sf),ve.init(e,t)}),km=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Df(t)),ve.init(e,t)}),_m=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Of),ve.init(e,t)}),$m=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Nf(t)),ve.init(e,t)}),wm=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=kf),ve.init(e,t)}),zm=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=zf),ve.init(e,t),e._zod.bag.format="ipv4"}),Im=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=If),ve.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Pm=h("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Pf(t.delimiter)),ve.init(e,t),e._zod.bag.format="mac"}),Em=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ef),ve.init(e,t)}),Rm=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Rf),ve.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Cm(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var jm=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Cf),ve.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Cm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function Wk(e){if(!Ns.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Cm(r)}var Tm=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Ns),ve.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Wk(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Om=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Tf),ve.init(e,t)});function Mk(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Nm=h("$ZodJWT",(e,t)=>{ve.init(e,t),e._zod.check=r=>{Mk(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Dm=h("$ZodCustomStringFormat",(e,t)=>{ve.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Zs=h("$ZodNumber",(e,t)=>{Y.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ds,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Lm=h("$ZodNumberFormat",(e,t)=>{Hf.init(e,t),Zs.init(e,t)}),ba=h("$ZodBoolean",(e,t)=>{Y.init(e,t),e._zod.pattern=Ff,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),Bs=h("$ZodBigInt",(e,t)=>{Y.init(e,t),e._zod.pattern=Uf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Um=h("$ZodBigIntFormat",(e,t)=>{Jf.init(e,t),Bs.init(e,t)}),Am=h("$ZodSymbol",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),Fm=h("$ZodUndefined",(e,t)=>{Y.init(e,t),e._zod.pattern=Mf,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Wm=h("$ZodNull",(e,t)=>{Y.init(e,t),e._zod.pattern=Wf,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Mm=h("$ZodAny",(e,t)=>{Y.init(e,t),e._zod.parse=r=>r}),Zm=h("$ZodUnknown",(e,t)=>{Y.init(e,t),e._zod.parse=r=>r}),Bm=h("$ZodNever",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Vm=h("$ZodVoid",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Hm=h("$ZodDate",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Ik(e,t,r){e.issues.length&&t.issues.push(...wt(r,e.issues)),t.value[r]=e.value}var Jm=h("$ZodArray",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Ik(c,r,a))):Ik(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Ms(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...wt(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function Zk(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=sf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function Bk(e,t,r,o,n,i){let a=[],l=n.keySet,s=n.catchall._zod,c=s.def.type,u=s.optin==="optional",p=s.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let g=s.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(x=>Ms(x,r,f,t,u,p))):Ms(g,r,f,t,u,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var Vk=h("$ZodObject",(e,t)=>{if(Y.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let o=Co(()=>Zk(t));ie(e._zod,"propValues",()=>{let l=t.shape,s={};for(let c in l){let u=l[c]._zod;if(u.values){s[c]??(s[c]=new Set);for(let p of u.values)s[c].add(p)}}return s});let n=Br,i=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=o.value);let c=l.value;if(!n(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let u=[],p=a.shape;for(let f of a.keys){let g=p[f],x=g._zod.optin==="optional",b=g._zod.optout==="optional",w=g._zod.run({value:c[f],issues:[]},s);w instanceof Promise?u.push(w.then(v=>Ms(v,l,f,c,x,b))):Ms(w,l,f,c,x,b)}return i?Bk(u,c,l,s,o.value,e):u.length?Promise.all(u).then(()=>l):l}}),Gm=h("$ZodObjectJIT",(e,t)=>{Vk.init(e,t);let r=e._zod.parse,o=Co(()=>Zk(t)),n=f=>{let g=new Sa(["shape","payload","ctx"]),x=o.value,b=y=>{let S=_s(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};g.write("const input = payload.value;");let w=Object.create(null),v=0;for(let y of x.keys)w[y]=`key_${v++}`;g.write("const newResult = {};");for(let y of x.keys){let S=w[y],_=_s(y),E=f[y],T=E?._zod?.optin==="optional",A=E?._zod?.optout==="optional";g.write(`const ${S} = ${b(y)};`),T&&A?g.write(`
|
|
11
|
+
`))}};var km={major:4,minor:4,patch:3};var ee=h("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=km;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,l,s)=>{let c=kr(a),d;for(let p of l){if(p._zod.def.when){if($f(a)||!p._zod.def.when(a))continue}else if(c)continue;let f=a.issues.length,g=p._zod.check(a);if(g instanceof Promise&&s?.async===!1)throw new cn;if(d||g instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await g,a.issues.length!==f&&(c||(c=kr(a,f)))});else{if(a.issues.length===f)continue;c||(c=kr(a,f))}}return d?d.then(()=>a):a},i=(a,l,s)=>{if(kr(a))return a.aborted=!0,a;let c=n(l,o,s);if(c instanceof Promise){if(s.async===!1)throw new cn;return c.then(d=>e._zod.parse(d,s))}return e._zod.parse(c,s)};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(d=>i(d,a,l)):i(c,a,l)}let s=e._zod.parse(a,l);if(s instanceof Promise){if(l.async===!1)throw new cn;return s.then(c=>n(c,o,l))}return n(s,o,l)}}ae(e,"~standard",()=>({validate:n=>{try{let i=If(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return Pf(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Qr=h("$ZodString",(e,t)=>{ee.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Kf(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),ye=h("$ZodStringFormat",(e,t)=>{Zo.init(e,t),Qr.init(e,t)}),$m=h("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Nf),ye.init(e,t)}),wm=h("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Yr(o))}else t.pattern??(t.pattern=Yr());ye.init(e,t)}),zm=h("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Lf),ye.init(e,t)}),Im=h("$ZodURL",(e,t)=>{ye.init(e,t),e._zod.check=r=>{try{let o=r.value.trim();if(!t.normalize&&t.protocol?.source===Vf.source&&!/^https?:\/\//i.test(o)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!t.abort});return}let n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),Pm=h("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Uf()),ye.init(e,t)}),Em=h("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Of),ye.init(e,t)}),Rm=h("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ef),ye.init(e,t)}),Cm=h("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Rf),ye.init(e,t)}),Tm=h("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Cf),ye.init(e,t)}),jm=h("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Tf),ye.init(e,t)}),Om=h("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jf),ye.init(e,t)}),Dm=h("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Xf(t)),ye.init(e,t)}),Nm=h("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Jf),ye.init(e,t)}),Lm=h("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Gf(t)),ye.init(e,t)}),Um=h("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Df),ye.init(e,t)}),Am=h("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Af),ye.init(e,t),e._zod.bag.format="ipv4"}),Fm=h("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Ff),ye.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Wm=h("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Wf(t.delimiter)),ye.init(e,t),e._zod.bag.format="mac"}),Mm=h("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Mf),ye.init(e,t)}),Zm=h("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Zf),ye.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function Bm(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Vm=h("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Bf),ye.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Bm(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function r_(e){if(!Vs.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Bm(r)}var Hm=h("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Vs),ye.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{r_(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Jm=h("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Hf),ye.init(e,t)});function o_(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}var Gm=h("$ZodJWT",(e,t)=>{ye.init(e,t),e._zod.check=r=>{o_(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Xm=h("$ZodCustomStringFormat",(e,t)=>{ye.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),qs=h("$ZodNumber",(e,t)=>{ee.init(e,t),e._zod.pattern=e._zod.bag.pattern??Hs,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Km=h("$ZodNumberFormat",(e,t)=>{im.init(e,t),qs.init(e,t)}),Ca=h("$ZodBoolean",(e,t)=>{ee.init(e,t),e._zod.pattern=qf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),ec=h("$ZodBigInt",(e,t)=>{ee.init(e,t),e._zod.pattern=Yf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Ym=h("$ZodBigIntFormat",(e,t)=>{am.init(e,t),ec.init(e,t)}),Qm=h("$ZodSymbol",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),qm=h("$ZodUndefined",(e,t)=>{ee.init(e,t),e._zod.pattern=tm,e._zod.values=new Set([void 0]),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),eg=h("$ZodNull",(e,t)=>{ee.init(e,t),e._zod.pattern=em,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),tg=h("$ZodAny",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),ng=h("$ZodUnknown",(e,t)=>{ee.init(e,t),e._zod.parse=r=>r}),rg=h("$ZodNever",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),og=h("$ZodVoid",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),ig=h("$ZodDate",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});function Zk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues)),t.value[r]=e.value}var ag=h("$ZodArray",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let l=n[a],s=t.element._zod.run({value:l,issues:[]},o);s instanceof Promise?i.push(s.then(c=>Zk(c,r,a))):Zk(s,r,a)}return i.length?Promise.all(i).then(()=>r):r}});function Qs(e,t,r,o,n,i){let a=r in o;if(e.issues.length){if(n&&i&&!a)return;t.issues.push(...zt(r,e.issues))}if(!a&&!n){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(t.value[r]=void 0):t.value[r]=e.value}function i_(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=Sf(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function a_(e,t,r,o,n,i){let a=[],l=n.keySet,s=n.catchall._zod,c=s.def.type,d=s.optin==="optional",p=s.optout==="optional";for(let f in t){if(f==="__proto__"||l.has(f))continue;if(c==="never"){a.push(f);continue}let g=s.run({value:t[f],issues:[]},o);g instanceof Promise?e.push(g.then(x=>Qs(x,r,f,t,d,p))):Qs(g,r,f,t,d,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}var l_=h("$ZodObject",(e,t)=>{if(ee.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let o=Lo(()=>i_(t));ae(e._zod,"propValues",()=>{let l=t.shape,s={};for(let c in l){let d=l[c]._zod;if(d.values){s[c]??(s[c]=new Set);for(let p of d.values)s[c].add(p)}}return s});let n=Kr,i=t.catchall,a;e._zod.parse=(l,s)=>{a??(a=o.value);let c=l.value;if(!n(c))return l.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),l;l.value={};let d=[],p=a.shape;for(let f of a.keys){let g=p[f],x=g._zod.optin==="optional",b=g._zod.optout==="optional",w=g._zod.run({value:c[f],issues:[]},s);w instanceof Promise?d.push(w.then(v=>Qs(v,l,f,c,x,b))):Qs(w,l,f,c,x,b)}return i?a_(d,c,l,s,o.value,e):d.length?Promise.all(d).then(()=>l):l}}),lg=h("$ZodObjectJIT",(e,t)=>{l_.init(e,t);let r=e._zod.parse,o=Lo(()=>i_(t)),n=f=>{let g=new Ra(["shape","payload","ctx"]),x=o.value,b=y=>{let S=js(y);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};g.write("const input = payload.value;");let w=Object.create(null),v=0;for(let y of x.keys)w[y]=`key_${v++}`;g.write("const newResult = {};");for(let y of x.keys){let S=w[y],_=js(y),E=f[y],O=E?._zod?.optin==="optional",W=E?._zod?.optout==="optional";g.write(`const ${S} = ${b(y)};`),O&&W?g.write(`
|
|
12
12
|
if (${S}.issues.length) {
|
|
13
13
|
if (${_} in input) {
|
|
14
14
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
@@ -26,7 +26,7 @@ Error generating stack: `+i.message+`
|
|
|
26
26
|
newResult[${_}] = ${S}.value;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
`):
|
|
29
|
+
`):O?g.write(`
|
|
30
30
|
if (${S}.issues.length) {
|
|
31
31
|
payload.issues = payload.issues.concat(${S}.issues.map(iss => ({
|
|
32
32
|
...iss,
|
|
@@ -67,9 +67,9 @@ Error generating stack: `+i.message+`
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
`)}g.write("payload.value = newResult;"),g.write("return payload;");let m=g.compile();return(y,S)=>m(f,y,S)},i,a=Br,l=!Zr.jitless,c=l&&of.value,u=t.catchall,p;e._zod.parse=(f,g)=>{p??(p=o.value);let x=f.value;return a(x)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),f=i(f,g),u?Bk([],x,f,g,p,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function Pk(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!gr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>vt(a,o,De())))}),t)}var ka=h("$ZodUnion",(e,t)=>{Y.init(e,t),ie(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ie(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ie(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ie(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>da(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Pk(l,o,e,n)):Pk(a,o,e,n)}});function Ek(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>vt(a,o,De())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var Xm=h("$ZodXor",(e,t)=>{ka.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>Ek(l,o,e,n)):Ek(a,o,e,n)}}),Km=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ka.init(e,t);let r=e._zod.parse;ie(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){n[l]||(n[l]=new Set);for(let c of s)n[l].add(c)}}return n});let o=Co(()=>{let n=t.options,i=new Map;for(let a of n){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 s of l){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Br(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),Ym=h("$ZodIntersection",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Rk(r,s,c)):Rk(r,i,a)}});function um(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(mr(e)&&mr(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=um(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=um(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Rk(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),gr(e))return e;let a=um(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var Vs=h("$ZodTuple",(e,t)=>{Y.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=Ck(r,"optin"),s=Ck(r,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let u=0;u<r.length;u++){let p=r[u]._zod.run({value:i[u],issues:[]},n);p instanceof Promise?a.push(p.then(f=>{c[u]=f})):c[u]=p}if(t.rest){let u=r.length-1,p=i.slice(r.length);for(let f of p){u++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(x=>jk(x,o,u))):jk(g,o,u)}}return a.length?Promise.all(a).then(()=>Tk(c,o,r,i,s)):Tk(c,o,r,i,s)}});function Ck(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function jk(e,t,r){e.issues.length&&t.issues.push(...wt(r,e.issues)),t.value[r]=e.value}function Tk(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=n){t.value.length=i;break}t.issues.push(...wt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var Qm=h("$ZodRecord",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!mr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.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 u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(g=>vt(g,o,De())),input:c,path:[c],inst:e});continue}let p=u.value,f=t.valueType._zod.run({value:n[c],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&r.issues.push(...wt(c,g.issues)),r.value[p]=g.value})):(f.issues.length&&r.issues.push(...wt(c,f.issues)),r.value[p]=f.value)}let s;for(let c in n)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Ds.test(l)&&s.issues.length){let p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>vt(p,o,De())),input:l,path:[l],inst:e});continue}let u=t.valueType._zod.run({value:n[l],issues:[]},o);u instanceof Promise?i.push(u.then(p=>{p.issues.length&&r.issues.push(...wt(l,p.issues)),r.value[s.value]=p.value})):(u.issues.length&&r.issues.push(...wt(l,u.issues)),r.value[s.value]=u.value)}}return i.length?Promise.all(i).then(()=>r):r}}),qm=h("$ZodMap",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let s=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([u,p])=>{Ok(u,p,r,a,n,e,o)})):Ok(s,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Ok(e,t,r,o,n,i,a){e.issues.length&&(pa.has(typeof o)?r.issues.push(...wt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>vt(l,a,De()))})),t.issues.length&&(pa.has(typeof o)?r.issues.push(...wt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>vt(l,a,De()))})),r.value.set(e.value,t.value)}var eg=h("$ZodSet",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>Nk(s,r))):Nk(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function Nk(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var tg=h("$ZodEnum",(e,t)=>{Y.init(e,t);let r=ua(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>pa.has(typeof n)).map(n=>typeof n=="string"?Kt(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),ng=h("$ZodLiteral",(e,t)=>{if(Y.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Kt(o):o?Kt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),rg=h("$ZodFile",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),og=h("$ZodTransform",(e,t)=>{Y.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new dr(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new ln;return r.value=n,r.fallback=!0,r}});function Dk(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Hs=h("$ZodOptional",(e,t)=>{Y.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ie(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${da(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>Dk(a,n)):Dk(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),ig=h("$ZodExactOptional",(e,t)=>{Hs.init(e,t),ie(e._zod,"values",()=>t.innerType._zod.values),ie(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),ag=h("$ZodNullable",(e,t)=>{Y.init(e,t),ie(e._zod,"optin",()=>t.innerType._zod.optin),ie(e._zod,"optout",()=>t.innerType._zod.optout),ie(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${da(r.source)}|null)$`):void 0}),ie(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),lg=h("$ZodDefault",(e,t)=>{Y.init(e,t),e._zod.optin="optional",ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Lk(i,t)):Lk(n,t)}});function Lk(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var sg=h("$ZodPrefault",(e,t)=>{Y.init(e,t),e._zod.optin="optional",ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),cg=h("$ZodNonOptional",(e,t)=>{Y.init(e,t),ie(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>Uk(i,e)):Uk(n,e)}});function Uk(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 ug=h("$ZodSuccess",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new dr("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),dg=h("$ZodCatch",(e,t)=>{Y.init(e,t),e._zod.optin="optional",ie(e._zod,"optout",()=>t.innerType._zod.optout),ie(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>vt(a,o,De()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>vt(i,o,De()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),pg=h("$ZodNaN",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Js=h("$ZodPipe",(e,t)=>{Y.init(e,t),ie(e._zod,"values",()=>t.in._zod.values),ie(e._zod,"optin",()=>t.in._zod.optin),ie(e._zod,"optout",()=>t.out._zod.optout),ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>As(a,t.in,o)):As(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>As(i,t.out,o)):As(n,t.out,o)}});function As(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var _a=h("$ZodCodec",(e,t)=>{Y.init(e,t),ie(e._zod,"values",()=>t.in._zod.values),ie(e._zod,"optin",()=>t.in._zod.optin),ie(e._zod,"optout",()=>t.out._zod.optout),ie(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Fs(a,t,o)):Fs(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Fs(a,t,o)):Fs(i,t,o)}}});function Fs(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>Ws(e,i,t.out,r)):Ws(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Ws(e,i,t.in,r)):Ws(e,n,t.in,r)}}function Ws(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var fg=h("$ZodPreprocess",(e,t)=>{Js.init(e,t)}),mg=h("$ZodReadonly",(e,t)=>{Y.init(e,t),ie(e._zod,"propValues",()=>t.innerType._zod.propValues),ie(e._zod,"values",()=>t.innerType._zod.values),ie(e._zod,"optin",()=>t.innerType?._zod?.optin),ie(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(Ak):Ak(n)}});function Ak(e){return e.value=Object.freeze(e.value),e}var gg=h("$ZodTemplateLiteral",(e,t)=>{Y.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||lf.has(typeof o))r.push(Kt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),vg=h("$ZodFunction",(e,t)=>(Y.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?ws(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?ws(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await zs(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await zs(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Vs({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),yg=h("$ZodPromise",(e,t)=>{Y.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),hg=h("$ZodLazy",(e,t)=>{Y.init(e,t),ie(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ie(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ie(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ie(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ie(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),xg=h("$ZodCustom",(e,t)=>{he.init(e,t),Y.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>Fk(i,r,o,e));Fk(n,r,o,e)}});function Fk(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(jo(n))}}var wa={};wn(wa,{ar:()=>Hk,az:()=>Jk,be:()=>Xk,bg:()=>Kk,ca:()=>Yk,cs:()=>Qk,da:()=>qk,de:()=>e_,el:()=>t_,en:()=>Gs,eo:()=>n_,es:()=>r_,fa:()=>o_,fi:()=>i_,fr:()=>a_,frCA:()=>l_,he:()=>s_,hr:()=>c_,hu:()=>u_,hy:()=>p_,id:()=>f_,is:()=>m_,it:()=>g_,ja:()=>v_,ka:()=>y_,kh:()=>h_,km:()=>Xs,ko:()=>x_,lt:()=>b_,mk:()=>k_,ms:()=>__,nl:()=>$_,no:()=>w_,ota:()=>z_,pl:()=>P_,ps:()=>I_,pt:()=>E_,ro:()=>R_,ru:()=>j_,sl:()=>T_,sv:()=>O_,ta:()=>N_,th:()=>D_,tr:()=>L_,ua:()=>U_,uk:()=>Ks,ur:()=>A_,uz:()=>F_,vi:()=>W_,yo:()=>B_,zhCN:()=>M_,zhTW:()=>Z_});var aP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.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 ${z(n.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: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${n.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function Hk(){return{localeError:aP()}}var lP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function Jk(){return{localeError:lP()}}function Gk(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var sP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=Gk(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${s}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=Gk(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function Xk(){return{localeError:sP()}}var cP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function Kk(){return{localeError:cP()}}var uP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function Yk(){return{localeError:uP()}}var dP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function Qk(){return{localeError:dP()}}var pP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function qk(){return{localeError:pP()}}var fP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function e_(){return{localeError:fP()}}var mP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.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 ${n.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 ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.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 ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.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 ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function t_(){return{localeError:mP()}}var gP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function Gs(){return{localeError:gP()}}var vP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function n_(){return{localeError:vP()}}var yP=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function r_(){return{localeError:yP()}}var hP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.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 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function o_(){return{localeError:hP()}}var xP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.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 i_(){return{localeError:xP()}}var SP=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function a_(){return{localeError:SP()}}var bP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function l_(){return{localeError:bP()}}var kP=()=>{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"}},r=c=>c?e[c]:void 0,o=c=>{let u=r(c);return u?u.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(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"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let u=c.expected,p=s[u??""]??o(u),f=I(c.input),g=s[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 ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}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 ${z(c.values[0])}`;let u=c.values.map(g=>z(g));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 ${u[0]} \u05D0\u05D5 ${u[1]}`;let p=u[u.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 ${u.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let u=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${u?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let x=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: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=c.inclusive?`${c.maximum} ${u?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${u?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=c.inclusive?"<=":"<",g=i(c.origin??"value");return u?.unit?`${u.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()} ${u.unit}`:`${u?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()}`}case"too_small":{let u=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${u?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${u?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let x=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: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let w=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let b=c.inclusive?`${c.minimum} ${u?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${u?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=c.inclusive?">=":">",g=i(c.origin??"value");return u?.unit?`${u.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()} ${u.unit}`:`${u?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()}`}case"invalid_format":{let u=c;if(u.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${u.prefix}"`;if(u.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${u.suffix}"`;if(u.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${u.includes}"`;if(u.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 ${u.pattern}`;let p=l[u.format],f=p?.label??u.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \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 ${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"}: ${k(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${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function s_(){return{localeError:kP()}}var _P=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${z(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function c_(){return{localeError:_P()}}var $P=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function u_(){return{localeError:$P()}}function d_(e,t,r){return Math.abs(e)===1?t:r}function Uo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var wP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=d_(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 ${Uo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${s}`}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 ${Uo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=d_(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 ${Uo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${s}`}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 ${Uo(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Uo(n.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 ${Uo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function p_(){return{localeError:wP()}}var zP=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function f_(){return{localeError:zP()}}var IP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function m_(){return{localeError:IP()}}var PP=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function g_(){return{localeError:PP()}}var EP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function v_(){return{localeError:EP()}}var RP=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"-\u10D8\u10D7`:i.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 "${i.suffix}"-\u10D8\u10D7`:i.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 "${i.includes}"-\u10E1`:i.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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function y_(){return{localeError:RP()}}var CP=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.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 ${n.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 ${n.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 Xs(){return{localeError:CP()}}function h_(){return Xs()}var jP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function x_(){return{localeError:jP()}}var $a=e=>e.charAt(0).toUpperCase()+e.slice(1);function S_(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var TP=()=>{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(n,i,a,l){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,S_(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${$a(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${$a(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,S_(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${$a(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${$a(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${$a(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function b_(){return{localeError:TP()}}var OP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function k_(){return{localeError:OP()}}var NP=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function __(){return{localeError:NP()}}var DP=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function $_(){return{localeError:DP()}}var LP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function w_(){return{localeError:LP()}}var UP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function z_(){return{localeError:UP()}}var AP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function I_(){return{localeError:AP()}}var FP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function P_(){return{localeError:FP()}}var WP=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function E_(){return{localeError:WP()}}var MP=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${z(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function R_(){return{localeError:MP()}}function C_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var ZP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=C_(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${s}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=C_(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${s}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 j_(){return{localeError:ZP()}}var BP=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function T_(){return{localeError:BP()}}var VP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function O_(){return{localeError:VP()}}var HP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${i}${n.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 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 N_(){return{localeError:HP()}}var JP=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.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 ${n.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: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function D_(){return{localeError:JP()}}var GP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function L_(){return{localeError:GP()}}var XP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 Ks(){return{localeError:XP()}}function U_(){return Ks()}var KP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function A_(){return{localeError:KP()}}var YP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function F_(){return{localeError:YP()}}var QP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function W_(){return{localeError:QP()}}var qP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function M_(){return{localeError:qP()}}var eE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function Z_(){return{localeError:eE()}}var tE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function B_(){return{localeError:tE()}}var V_,Sg=Symbol("ZodOutput"),bg=Symbol("ZodInput"),Ys=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Qs(){return new Ys}(V_=globalThis).__zod_globalRegistry??(V_.__zod_globalRegistry=Qs());var et=globalThis.__zod_globalRegistry;function kg(e,t){return new e({type:"string",...C(t)})}function _g(e,t){return new e({type:"string",coerce:!0,...C(t)})}function qs(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...C(t)})}function za(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...C(t)})}function ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...C(t)})}function tc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...C(t)})}function nc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...C(t)})}function rc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...C(t)})}function Ia(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...C(t)})}function oc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...C(t)})}function ic(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...C(t)})}function ac(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...C(t)})}function lc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...C(t)})}function sc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...C(t)})}function cc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...C(t)})}function uc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...C(t)})}function dc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...C(t)})}function pc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...C(t)})}function $g(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...C(t)})}function fc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...C(t)})}function mc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...C(t)})}function gc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...C(t)})}function vc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...C(t)})}function yc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...C(t)})}function hc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...C(t)})}var wg={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function zg(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...C(t)})}function Ig(e,t){return new e({type:"string",format:"date",check:"string_format",...C(t)})}function Pg(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...C(t)})}function Eg(e,t){return new e({type:"string",format:"duration",check:"string_format",...C(t)})}function Rg(e,t){return new e({type:"number",checks:[],...C(t)})}function Cg(e,t){return new e({type:"number",coerce:!0,checks:[],...C(t)})}function jg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...C(t)})}function Tg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...C(t)})}function Og(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...C(t)})}function Ng(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...C(t)})}function Dg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...C(t)})}function Lg(e,t){return new e({type:"boolean",...C(t)})}function Ug(e,t){return new e({type:"boolean",coerce:!0,...C(t)})}function Ag(e,t){return new e({type:"bigint",...C(t)})}function Fg(e,t){return new e({type:"bigint",coerce:!0,...C(t)})}function Wg(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...C(t)})}function Mg(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...C(t)})}function Zg(e,t){return new e({type:"symbol",...C(t)})}function Bg(e,t){return new e({type:"undefined",...C(t)})}function Vg(e,t){return new e({type:"null",...C(t)})}function Hg(e){return new e({type:"any"})}function Jg(e){return new e({type:"unknown"})}function Gg(e,t){return new e({type:"never",...C(t)})}function Xg(e,t){return new e({type:"void",...C(t)})}function Kg(e,t){return new e({type:"date",...C(t)})}function Yg(e,t){return new e({type:"date",coerce:!0,...C(t)})}function Qg(e,t){return new e({type:"nan",...C(t)})}function xn(e,t){return new Ls({check:"less_than",...C(t),value:e,inclusive:!1})}function Dt(e,t){return new Ls({check:"less_than",...C(t),value:e,inclusive:!0})}function Sn(e,t){return new Us({check:"greater_than",...C(t),value:e,inclusive:!1})}function yt(e,t){return new Us({check:"greater_than",...C(t),value:e,inclusive:!0})}function xc(e){return Sn(0,e)}function Sc(e){return xn(0,e)}function bc(e){return Dt(0,e)}function kc(e){return yt(0,e)}function vr(e,t){return new Vf({check:"multiple_of",...C(t),value:e})}function yr(e,t){return new Gf({check:"max_size",...C(t),maximum:e})}function bn(e,t){return new Xf({check:"min_size",...C(t),minimum:e})}function Jr(e,t){return new Kf({check:"size_equals",...C(t),size:e})}function Gr(e,t){return new Yf({check:"max_length",...C(t),maximum:e})}function Ln(e,t){return new Qf({check:"min_length",...C(t),minimum:e})}function Xr(e,t){return new qf({check:"length_equals",...C(t),length:e})}function Ao(e,t){return new em({check:"string_format",format:"regex",...C(t),pattern:e})}function Fo(e){return new tm({check:"string_format",format:"lowercase",...C(e)})}function Wo(e){return new nm({check:"string_format",format:"uppercase",...C(e)})}function Mo(e,t){return new rm({check:"string_format",format:"includes",...C(t),includes:e})}function Zo(e,t){return new om({check:"string_format",format:"starts_with",...C(t),prefix:e})}function Bo(e,t){return new im({check:"string_format",format:"ends_with",...C(t),suffix:e})}function _c(e,t,r){return new am({check:"property",property:e,schema:t,...C(r)})}function Vo(e,t){return new lm({check:"mime_type",mime:e,...C(t)})}function sn(e){return new sm({check:"overwrite",tx:e})}function Ho(e){return sn(t=>t.normalize(e))}function Jo(){return sn(e=>e.trim())}function Go(){return sn(e=>e.toLowerCase())}function Xo(){return sn(e=>e.toUpperCase())}function Ko(){return sn(e=>rf(e))}function qg(e,t,r){return new e({type:"array",element:t,...C(r)})}function rE(e,t,r){return new e({type:"union",options:t,...C(r)})}function oE(e,t,r){return new e({type:"union",options:t,inclusive:!1,...C(r)})}function iE(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...C(o)})}function aE(e,t,r){return new e({type:"intersection",left:t,right:r})}function lE(e,t,r,o){let n=r instanceof Y,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...C(i)})}function sE(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...C(o)})}function cE(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...C(o)})}function uE(e,t,r){return new e({type:"set",valueType:t,...C(r)})}function dE(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...C(r)})}function pE(e,t,r){return new e({type:"enum",entries:t,...C(r)})}function fE(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...C(r)})}function ev(e,t){return new e({type:"file",...C(t)})}function mE(e,t){return new e({type:"transform",transform:t})}function gE(e,t){return new e({type:"optional",innerType:t})}function vE(e,t){return new e({type:"nullable",innerType:t})}function yE(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():af(r)}})}function hE(e,t,r){return new e({type:"nonoptional",innerType:t,...C(r)})}function xE(e,t){return new e({type:"success",innerType:t})}function SE(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function bE(e,t,r){return new e({type:"pipe",in:t,out:r})}function kE(e,t){return new e({type:"readonly",innerType:t})}function _E(e,t,r){return new e({type:"template_literal",parts:t,...C(r)})}function $E(e,t){return new e({type:"lazy",getter:t})}function wE(e,t){return new e({type:"promise",innerType:t})}function tv(e,t,r){let o=C(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function nv(e,t,r){return new e({type:"custom",check:"custom",fn:t,...C(r)})}function rv(e,t){let r=H_(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(jo(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(jo(i))}},e(o.value,o)),t);return r}function H_(e,t){let r=new he({check:"custom",...C(t)});return r._zod.check=e,r}function ov(e){let t=new he({check:"describe"});return t._zod.onattach=[r=>{let o=et.get(r)??{};et.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function iv(e){let t=new he({check:"meta"});return t._zod.onattach=[r=>{let o=et.get(r)??{};et.add(r,{...o,...e})}],t._zod.check=()=>{},t}function av(e,t){let r=C(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??_a,s=e.Boolean??ba,c=e.String??Hr,u=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),f=new l({type:"pipe",in:u,out:p,transform:((g,x)=>{let b=g;return r.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function Yo(e,t,r,o={}){let n=C(o),i={...C(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function hr(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??et,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 pe(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let u={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,u);else{let f=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,f,u)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),pe(p,t,u),t.seen.get(p).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&ht(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function xr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.get(l);if(s&&s!==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.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(x=>x);if(p)return{ref:f(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${f("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,u=a[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=n(a);l.def={...l.schema},c&&(l.defId=c);let u=l.schema;for(let p in u)delete u[p];u.$ref=s};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>
|
|
70
|
+
`)}g.write("payload.value = newResult;"),g.write("return payload;");let m=g.compile();return(y,S)=>m(f,y,S)},i,a=Kr,l=!Xr.jitless,c=l&&hf.value,d=t.catchall,p;e._zod.parse=(f,g)=>{p??(p=o.value);let x=f.value;return a(x)?l&&c&&g?.async===!1&&g.jitless!==!0?(i||(i=n(t.shape)),f=i(f,g),d?a_([],x,f,g,p,e):f):r(f,g):(f.issues.push({expected:"object",code:"invalid_type",input:x,inst:e}),f)}});function Bk(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!kr(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>yt(a,o,Le())))}),t)}var Ta=h("$ZodUnion",(e,t)=>{ee.init(e,t),ae(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),ae(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),ae(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),ae(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){let o=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${o.map(n=>Sa(n.source)).join("|")})$`)}});let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);if(s instanceof Promise)a.push(s),i=!0;else{if(s.issues.length===0)return s;a.push(s)}}return i?Promise.all(a).then(l=>Bk(l,o,e,n)):Bk(a,o,e,n)}});function Vk(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>yt(a,o,Le())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}var sg=h("$ZodXor",(e,t)=>{Ta.init(e,t),t.inclusive=!1;let r=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(o,n)=>{if(r)return r(o,n);let i=!1,a=[];for(let l of t.options){let s=l._zod.run({value:o.value,issues:[]},n);s instanceof Promise?(a.push(s),i=!0):a.push(s)}return i?Promise.all(a).then(l=>Vk(l,o,e,n)):Vk(a,o,e,n)}}),cg=h("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Ta.init(e,t);let r=e._zod.parse;ae(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[l,s]of Object.entries(a)){n[l]||(n[l]=new Set);for(let c of s)n[l].add(c)}}return n});let o=Lo(()=>{let n=t.options,i=new Map;for(let a of n){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 s of l){if(i.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);i.set(s,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Kr(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let l=o.value.get(a?.[t.discriminator]);return l?l._zod.run(n,i):t.unionFallback||i.direction==="backward"?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(o.value.keys()),input:a,path:[t.discriminator],inst:e}),n)}}),ug=h("$ZodIntersection",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([s,c])=>Hk(r,s,c)):Hk(r,i,a)}});function _m(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(Sr(e)&&Sr(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=_m(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=_m(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function Hk(e,t,r){let o=new Map,n;for(let l of t.issues)if(l.code==="unrecognized_keys"){n??(n=l);for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).l=!0}else e.issues.push(l);for(let l of r.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)o.has(s)||o.set(s,{}),o.get(s).r=!0;else e.issues.push(l);let i=[...o].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(i.length&&n&&e.issues.push({...n,keys:i}),kr(e))return e;let a=_m(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}var tc=h("$ZodTuple",(e,t)=>{ee.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],l=Jk(r,"optin"),s=Jk(r,"optout");if(!t.rest){if(i.length<l)return o.issues.push({code:"too_small",minimum:l,inclusive:!0,input:i,inst:e,origin:"array"}),o;i.length>r.length&&o.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:i,inst:e,origin:"array"})}let c=new Array(r.length);for(let d=0;d<r.length;d++){let p=r[d]._zod.run({value:i[d],issues:[]},n);p instanceof Promise?a.push(p.then(f=>{c[d]=f})):c[d]=p}if(t.rest){let d=r.length-1,p=i.slice(r.length);for(let f of p){d++;let g=t.rest._zod.run({value:f,issues:[]},n);g instanceof Promise?a.push(g.then(x=>Gk(x,o,d))):Gk(g,o,d)}}return a.length?Promise.all(a).then(()=>Xk(c,o,r,i,s)):Xk(c,o,r,i,s)}});function Jk(e,t){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[t]!=="optional")return r+1;return 0}function Gk(e,t,r){e.issues.length&&t.issues.push(...zt(r,e.issues)),t.value[r]=e.value}function Xk(e,t,r,o,n){for(let i=0;i<r.length;i++){let a=e[i],l=i<o.length;if(a.issues.length){if(!l&&i>=n){t.value.length=i;break}t.issues.push(...zt(i,a.issues))}t.value[i]=a.value}for(let i=t.value.length-1;i>=o.length&&(r[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var dg=h("$ZodRecord",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Sr(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.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 d=t.keyType._zod.run({value:c,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(g=>yt(g,o,Le())),input:c,path:[c],inst:e});continue}let p=d.value,f=t.valueType._zod.run({value:n[c],issues:[]},o);f instanceof Promise?i.push(f.then(g=>{g.issues.length&&r.issues.push(...zt(c,g.issues)),r.value[p]=g.value})):(f.issues.length&&r.issues.push(...zt(c,f.issues)),r.value[p]=f.value)}let s;for(let c in n)l.has(c)||(s=s??[],s.push(c));s&&s.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:s})}else{r.value={};for(let l of Reflect.ownKeys(n)){if(l==="__proto__"||!Object.prototype.propertyIsEnumerable.call(n,l))continue;let s=t.keyType._zod.run({value:l,issues:[]},o);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&Hs.test(l)&&s.issues.length){let p=t.keyType._zod.run({value:Number(l),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(s=p)}if(s.issues.length){t.mode==="loose"?r.value[l]=n[l]:r.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(p=>yt(p,o,Le())),input:l,path:[l],inst:e});continue}let d=t.valueType._zod.run({value:n[l],issues:[]},o);d instanceof Promise?i.push(d.then(p=>{p.issues.length&&r.issues.push(...zt(l,p.issues)),r.value[s.value]=p.value})):(d.issues.length&&r.issues.push(...zt(l,d.issues)),r.value[s.value]=d.value)}}return i.length?Promise.all(i).then(()=>r):r}}),pg=h("$ZodMap",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,l]of n){let s=t.keyType._zod.run({value:a,issues:[]},o),c=t.valueType._zod.run({value:l,issues:[]},o);s instanceof Promise||c instanceof Promise?i.push(Promise.all([s,c]).then(([d,p])=>{Kk(d,p,r,a,n,e,o)})):Kk(s,c,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});function Kk(e,t,r,o,n,i,a){e.issues.length&&(ka.has(typeof o)?r.issues.push(...zt(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(l=>yt(l,a,Le()))})),t.issues.length&&(ka.has(typeof o)?r.issues.push(...zt(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(l=>yt(l,a,Le()))})),r.value.set(e.value,t.value)}var fg=h("$ZodSet",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let l=t.valueType._zod.run({value:a,issues:[]},o);l instanceof Promise?i.push(l.then(s=>Yk(s,r))):Yk(l,r)}return i.length?Promise.all(i).then(()=>r):r}});function Yk(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var mg=h("$ZodEnum",(e,t)=>{ee.init(e,t);let r=ba(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>ka.has(typeof n)).map(n=>typeof n=="string"?Yt(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),gg=h("$ZodLiteral",(e,t)=>{if(ee.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Yt(o):o?Yt(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),vg=h("$ZodFile",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),yg=h("$ZodTransform",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r.fallback=!0,r));if(n instanceof Promise)throw new cn;return r.value=n,r.fallback=!0,r}});function Qk(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var nc=h("$ZodOptional",(e,t)=>{ee.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Sa(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=r.value,i=t.innerType._zod.run(r,o);return i instanceof Promise?i.then(a=>Qk(a,n)):Qk(i,n)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),hg=h("$ZodExactOptional",(e,t)=>{nc.init(e,t),ae(e._zod,"values",()=>t.innerType._zod.values),ae(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),xg=h("$ZodNullable",(e,t)=>{ee.init(e,t),ae(e._zod,"optin",()=>t.innerType._zod.optin),ae(e._zod,"optout",()=>t.innerType._zod.optout),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Sa(r.source)}|null)$`):void 0}),ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),bg=h("$ZodDefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>qk(i,t)):qk(n,t)}});function qk(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Sg=h("$ZodPrefault",(e,t)=>{ee.init(e,t),e._zod.optin="optional",ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),kg=h("$ZodNonOptional",(e,t)=>{ee.init(e,t),ae(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>e_(i,e)):e_(n,e)}});function e_(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 _g=h("$ZodSuccess",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),$g=h("$ZodCatch",(e,t)=>{ee.init(e,t),e._zod.optin="optional",ae(e._zod,"optout",()=>t.innerType._zod.optout),ae(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>yt(a,o,Le()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>yt(i,o,Le()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),wg=h("$ZodNaN",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),rc=h("$ZodPipe",(e,t)=>{ee.init(e,t),ae(e._zod,"values",()=>t.in._zod.values),ae(e._zod,"optin",()=>t.in._zod.optin),ae(e._zod,"optout",()=>t.out._zod.optout),ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Xs(a,t.in,o)):Xs(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>Xs(i,t.out,o)):Xs(n,t.out,o)}});function Xs(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}var ja=h("$ZodCodec",(e,t)=>{ee.init(e,t),ae(e._zod,"values",()=>t.in._zod.values),ae(e._zod,"optin",()=>t.in._zod.optin),ae(e._zod,"optout",()=>t.out._zod.optout),ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>Ks(a,t,o)):Ks(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>Ks(a,t,o)):Ks(i,t,o)}}});function Ks(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>Ys(e,i,t.out,r)):Ys(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>Ys(e,i,t.in,r)):Ys(e,n,t.in,r)}}function Ys(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}var zg=h("$ZodPreprocess",(e,t)=>{rc.init(e,t)}),Ig=h("$ZodReadonly",(e,t)=>{ee.init(e,t),ae(e._zod,"propValues",()=>t.innerType._zod.propValues),ae(e._zod,"values",()=>t.innerType._zod.values),ae(e._zod,"optin",()=>t.innerType?._zod?.optin),ae(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(t_):t_(n)}});function t_(e){return e.value=Object.freeze(e.value),e}var Pg=h("$ZodTemplateLiteral",(e,t)=>{ee.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||bf.has(typeof o))r.push(Yt(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Eg=h("$ZodFunction",(e,t)=>(ee.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Ds(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Ds(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Ns(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Ns(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new tc({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Rg=h("$ZodPromise",(e,t)=>{ee.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),Cg=h("$ZodLazy",(e,t)=>{ee.init(e,t),ae(e._zod,"innerType",()=>{let r=t;return r._cachedInner||(r._cachedInner=t.getter()),r._cachedInner}),ae(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),ae(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),ae(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),ae(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),Tg=h("$ZodCustom",(e,t)=>{be.init(e,t),ee.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>n_(i,r,o,e));n_(n,r,o,e)}});function n_(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Uo(n))}}var Da={};Tn(Da,{ar:()=>s_,az:()=>c_,be:()=>d_,bg:()=>p_,ca:()=>f_,cs:()=>m_,da:()=>g_,de:()=>v_,el:()=>y_,en:()=>oc,eo:()=>h_,es:()=>x_,fa:()=>b_,fi:()=>S_,fr:()=>k_,frCA:()=>__,he:()=>$_,hr:()=>w_,hu:()=>z_,hy:()=>P_,id:()=>E_,is:()=>R_,it:()=>C_,ja:()=>T_,ka:()=>j_,kh:()=>O_,km:()=>ic,ko:()=>D_,lt:()=>L_,mk:()=>U_,ms:()=>A_,nl:()=>F_,no:()=>W_,ota:()=>M_,pl:()=>B_,ps:()=>Z_,pt:()=>V_,ro:()=>H_,ru:()=>G_,sl:()=>X_,sv:()=>K_,ta:()=>Y_,th:()=>Q_,tr:()=>q_,ua:()=>e$,uk:()=>ac,ur:()=>t$,uz:()=>n$,vi:()=>r$,yo:()=>a$,zhCN:()=>o$,zhTW:()=>i$});var CP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return n.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 ${z(n.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: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.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 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${n.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.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 ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function s_(){return{localeError:CP()}}var TP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${l}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${z(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function c_(){return{localeError:TP()}}function u_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var jP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.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 ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=u_(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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${s}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=u_(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 ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function d_(){return{localeError:jP()}}var OP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.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 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.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 "${i.prefix}"`;if(i.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 "${i.suffix}"`;if(i.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 "${i.includes}"`;if(i.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 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function p_(){return{localeError:OP()}}var DP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${l}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${z(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}};function f_(){return{localeError:DP()}}var NP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${l}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${z(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}};function m_(){return{localeError:NP()}}var LP=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${l}`:`Ugyldigt input: forventede ${i}, fik ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${z(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For stor: forventede ${l??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`For lille: forventede ${l} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${l} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}};function g_(){return{localeError:LP()}}var UP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${l}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${z(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}};function v_(){return{localeError:UP()}}var AP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return typeof n.expected=="string"&&/^[A-Z]/.test(n.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 ${n.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 ${i}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.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 ${n.origin??"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${i}${n.minimum.toString()} ${a.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${n.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${n.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${n.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${n.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 ${n.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function y_(){return{localeError:AP()}}var FP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Invalid input: expected ${i}, received ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return n.options&&Array.isArray(n.options)&&n.options.length>0?`Invalid discriminator value. Expected ${n.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}};function oc(){return{localeError:FP()}}var WP=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${l}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${z(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}};function h_(){return{localeError:WP()}}var MP=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${z(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}};function x_(){return{localeError:MP()}}var ZP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.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 ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${z(n.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 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.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 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.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 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function b_(){return{localeError:ZP()}}var BP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${l}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${z(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.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 S_(){return{localeError:BP()}}var VP=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${l} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${z(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${o[n.origin]??"valeur"} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${o[n.origin]??"valeur"} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function k_(){return{localeError:VP()}}var HP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${l}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${z(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}};function __(){return{localeError:HP()}}var JP=()=>{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"}},r=c=>c?e[c]:void 0,o=c=>{let d=r(c);return d?d.label:c??e.unknown.label},n=c=>`\u05D4${o(c)}`,i=c=>(r(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"}},s={nan:"NaN"};return c=>{switch(c.code){case"invalid_type":{let d=c.expected,p=s[d??""]??o(d),f=I(c.input),g=s[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 ${g}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${g}`}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 ${z(c.values[0])}`;let d=c.values.map(g=>z(g));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 ${d[0]} \u05D0\u05D5 ${d[1]}`;let p=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 ${p}`}case"too_big":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.maximum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(c.origin==="number"){let x=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: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=c.inclusive?`${c.maximum} ${d?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${c.maximum} ${d?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=c.inclusive?"<=":"<",g=i(c.origin??"value");return d?.unit?`${d.longLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()} ${d.unit}`:`${d?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.maximum.toString()}`}case"too_small":{let d=a(c.origin),p=n(c.origin??"value");if(c.origin==="string")return`${d?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${c.minimum.toString()} ${d?.unit??""} ${c.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(c.origin==="number"){let x=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: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${x}`}if(c.origin==="array"||c.origin==="set"){let x=c.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(c.minimum===1&&c.inclusive){let w=(c.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${w}`}let b=c.inclusive?`${c.minimum} ${d?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${c.minimum} ${d?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${x} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let f=c.inclusive?">=":">",g=i(c.origin??"value");return d?.unit?`${d.shortLabel} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()} ${d.unit}`:`${d?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${g} ${f}${c.minimum.toString()}`}case"invalid_format":{let d=c;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 p=l[d.format],f=p?.label??d.format,x=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \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 ${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"}: ${k(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${n(c.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function $_(){return{localeError:JP()}}var GP=()=>{let e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function t(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${n.expected}, a primljeno je ${l}`:`Neispravan unos: o\u010Dekuje se ${i}, a primljeno je ${l}`}case"invalid_value":return n.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${z(n.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Preveliko: o\u010Dekivano da ${l??"vrijednost"} ima ${i}${n.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: o\u010Dekivano da ${l??"vrijednost"} bude ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=o[n.origin]??n.origin;return a?`Premalo: o\u010Dekivano da ${l} ima ${i}${n.minimum.toString()} ${a.unit}`:`Premalo: o\u010Dekivano da ${l} bude ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${i.prefix}"`:i.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${i.suffix}"`:i.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${i.includes}"`:i.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${i.pattern}`:`Neispravna ${r[i.format]??n.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${n.divisor}`;case"unrecognized_keys":return`Neprepoznat${n.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${o[n.origin]??n.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${o[n.origin]??n.origin}`;default:return"Neispravan unos"}}};function w_(){return{localeError:GP()}}var XP=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${z(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function z_(){return{localeError:XP()}}function I_(e,t,r){return Math.abs(e)===1?t:r}function Bo(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}var KP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=I_(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 ${Bo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${s}`}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 ${Bo(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=I_(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 ${Bo(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${s}`}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 ${Bo(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.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 ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.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 ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Bo(n.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 ${Bo(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function P_(){return{localeError:KP()}}var YP=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${z(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}};function E_(){return{localeError:YP()}}var QP=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${z(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}};function R_(){return{localeError:QP()}}var qP=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${l}`:`Input non valido: atteso ${i}, ricevuto ${l}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${z(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Input non valido: ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}};function C_(){return{localeError:qP()}}var eE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.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: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${z(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.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${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function T_(){return{localeError:eE()}}var tE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.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 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"-\u10D8\u10D7`:i.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 "${i.suffix}"-\u10D8\u10D7`:i.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 "${i.includes}"-\u10E1`:i.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 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.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 ${n.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${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.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 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function j_(){return{localeError:tE()}}var nE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.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 ${n.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 ${n.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 ic(){return{localeError:nE()}}function O_(){return ic()}var rE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${z(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(n.origin),s=l?.unit??"\uC694\uC18C";return l?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${s} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function D_(){return{localeError:rE()}}var Oa=e=>e.charAt(0).toUpperCase()+e.slice(1);function N_(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}var oE=()=>{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(n,i,a,l){let s=e[n]??null;return s===null?s:{unit:s.unit[i],verb:s.verb[l][a?"inclusive":"notInclusive"]}}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${z(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,N_(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${Oa(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${Oa(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,N_(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${Oa(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let l=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${Oa(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${Oa(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function L_(){return{localeError:oE()}}var iE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.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 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.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 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`Invalid ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`${n.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"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.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 ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function U_(){return{localeError:iE()}}var aE=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${l}`:`Input tidak sah: dijangka ${i}, diterima ${l}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${z(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}};function A_(){return{localeError:aE()}}var lE=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${i}, ontving ${l}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${z(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),l=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),l=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${l}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}};function F_(){return{localeError:lE()}}var sE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${l}`:`Ugyldig input: forventet ${i}, fikk ${l}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${z(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}};function W_(){return{localeError:sE()}}var cE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${z(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function M_(){return{localeError:cE()}}var uE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.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 ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${z(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.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 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function Z_(){return{localeError:uE()}}var dE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${l}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${z(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function B_(){return{localeError:dE()}}var pE=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${l}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${z(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}};function V_(){return{localeError:pE()}}var fE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return`Intrare invalid\u0103: a\u0219teptat ${i}, primit ${l}`}case"invalid_value":return n.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${z(n.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: a\u0219teptat ca ${n.origin??"valoarea"} s\u0103 fie ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Prea mic: a\u0219teptat ca ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Prea mic: a\u0219teptat ca ${n.origin} s\u0103 fie ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${i.prefix}"`:i.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${i.suffix}"`:i.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${i.includes}"`:i.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${i.pattern}`:`Format invalid: ${r[i.format]??n.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${n.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(n.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${n.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${n.origin}`;default:return"Intrare invalid\u0103"}}};function H_(){return{localeError:fE()}}function J_(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}var mE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.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 ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let l=Number(n.maximum),s=J_(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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${s}`}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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let l=Number(n.minimum),s=J_(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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${s}`}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 ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.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 ${n.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 G_(){return{localeError:mE()}}var gE=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${l}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${z(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}};function X_(){return{localeError:gE()}}var vE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${l}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${z(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function K_(){return{localeError:vE()}}var yE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.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 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${i}${n.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 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.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 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.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${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.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`${n.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 Y_(){return{localeError:yE()}}var hE=()=>{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(n){return e[n]??null}let r={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"},o={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 n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.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 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.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 ${n.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: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.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 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function Q_(){return{localeError:hE()}}var xE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${l}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${z(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function q_(){return{localeError:xE()}}var bE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.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 ${n.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 ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return n.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 ${z(n.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 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.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 ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.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 ${n.origin} ${a.verb} ${i}${n.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 ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.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 "${i.suffix}"`:i.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 "${i.includes}"`:i.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 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.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 ${n.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 ac(){return{localeError:bE()}}function e$(){return ac()}var SE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.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: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${z(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.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: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.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${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function t$(){return{localeError:SE()}}var kE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${l}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${z(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function n$(){return{localeError:kE()}}var _E=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${z(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.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 ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function r$(){return{localeError:_E()}}var $E=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${z(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function o$(){return{localeError:$E()}}var wE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${z(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function i$(){return{localeError:wE()}}var zE=()=>{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(n){return e[n]??null}let r={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"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=I(n.input),l=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${z(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.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 "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.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 ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.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 ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function a$(){return{localeError:zE()}}var l$,jg=Symbol("ZodOutput"),Og=Symbol("ZodInput"),lc=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function sc(){return new lc}(l$=globalThis).__zod_globalRegistry??(l$.__zod_globalRegistry=sc());var nt=globalThis.__zod_globalRegistry;function Dg(e,t){return new e({type:"string",...T(t)})}function Ng(e,t){return new e({type:"string",coerce:!0,...T(t)})}function cc(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...T(t)})}function Na(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...T(t)})}function uc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...T(t)})}function dc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...T(t)})}function pc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...T(t)})}function fc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...T(t)})}function La(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...T(t)})}function mc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...T(t)})}function gc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...T(t)})}function vc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...T(t)})}function yc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...T(t)})}function hc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...T(t)})}function xc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...T(t)})}function bc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...T(t)})}function Sc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...T(t)})}function kc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...T(t)})}function Lg(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...T(t)})}function _c(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...T(t)})}function $c(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...T(t)})}function wc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...T(t)})}function zc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...T(t)})}function Ic(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...T(t)})}function Pc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...T(t)})}var Ug={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Ag(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...T(t)})}function Fg(e,t){return new e({type:"string",format:"date",check:"string_format",...T(t)})}function Wg(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...T(t)})}function Mg(e,t){return new e({type:"string",format:"duration",check:"string_format",...T(t)})}function Zg(e,t){return new e({type:"number",checks:[],...T(t)})}function Bg(e,t){return new e({type:"number",coerce:!0,checks:[],...T(t)})}function Vg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...T(t)})}function Hg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...T(t)})}function Jg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...T(t)})}function Gg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...T(t)})}function Xg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...T(t)})}function Kg(e,t){return new e({type:"boolean",...T(t)})}function Yg(e,t){return new e({type:"boolean",coerce:!0,...T(t)})}function Qg(e,t){return new e({type:"bigint",...T(t)})}function qg(e,t){return new e({type:"bigint",coerce:!0,...T(t)})}function ev(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...T(t)})}function tv(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...T(t)})}function nv(e,t){return new e({type:"symbol",...T(t)})}function rv(e,t){return new e({type:"undefined",...T(t)})}function ov(e,t){return new e({type:"null",...T(t)})}function iv(e){return new e({type:"any"})}function av(e){return new e({type:"unknown"})}function lv(e,t){return new e({type:"never",...T(t)})}function sv(e,t){return new e({type:"void",...T(t)})}function cv(e,t){return new e({type:"date",...T(t)})}function uv(e,t){return new e({type:"date",coerce:!0,...T(t)})}function dv(e,t){return new e({type:"nan",...T(t)})}function _n(e,t){return new Js({check:"less_than",...T(t),value:e,inclusive:!1})}function Lt(e,t){return new Js({check:"less_than",...T(t),value:e,inclusive:!0})}function $n(e,t){return new Gs({check:"greater_than",...T(t),value:e,inclusive:!1})}function ht(e,t){return new Gs({check:"greater_than",...T(t),value:e,inclusive:!0})}function Ec(e){return $n(0,e)}function Rc(e){return _n(0,e)}function Cc(e){return Lt(0,e)}function Tc(e){return ht(0,e)}function _r(e,t){return new om({check:"multiple_of",...T(t),value:e})}function $r(e,t){return new lm({check:"max_size",...T(t),maximum:e})}function wn(e,t){return new sm({check:"min_size",...T(t),minimum:e})}function qr(e,t){return new cm({check:"size_equals",...T(t),size:e})}function eo(e,t){return new um({check:"max_length",...T(t),maximum:e})}function Bn(e,t){return new dm({check:"min_length",...T(t),minimum:e})}function to(e,t){return new pm({check:"length_equals",...T(t),length:e})}function Vo(e,t){return new fm({check:"string_format",format:"regex",...T(t),pattern:e})}function Ho(e){return new mm({check:"string_format",format:"lowercase",...T(e)})}function Jo(e){return new gm({check:"string_format",format:"uppercase",...T(e)})}function Go(e,t){return new vm({check:"string_format",format:"includes",...T(t),includes:e})}function Xo(e,t){return new ym({check:"string_format",format:"starts_with",...T(t),prefix:e})}function Ko(e,t){return new hm({check:"string_format",format:"ends_with",...T(t),suffix:e})}function jc(e,t,r){return new xm({check:"property",property:e,schema:t,...T(r)})}function Yo(e,t){return new bm({check:"mime_type",mime:e,...T(t)})}function un(e){return new Sm({check:"overwrite",tx:e})}function Qo(e){return un(t=>t.normalize(e))}function qo(){return un(e=>e.trim())}function ei(){return un(e=>e.toLowerCase())}function ti(){return un(e=>e.toUpperCase())}function ni(){return un(e=>yf(e))}function pv(e,t,r){return new e({type:"array",element:t,...T(r)})}function PE(e,t,r){return new e({type:"union",options:t,...T(r)})}function EE(e,t,r){return new e({type:"union",options:t,inclusive:!1,...T(r)})}function RE(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...T(o)})}function CE(e,t,r){return new e({type:"intersection",left:t,right:r})}function TE(e,t,r,o){let n=r instanceof ee,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...T(i)})}function jE(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...T(o)})}function OE(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...T(o)})}function DE(e,t,r){return new e({type:"set",valueType:t,...T(r)})}function NE(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...T(r)})}function LE(e,t,r){return new e({type:"enum",entries:t,...T(r)})}function UE(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...T(r)})}function fv(e,t){return new e({type:"file",...T(t)})}function AE(e,t){return new e({type:"transform",transform:t})}function FE(e,t){return new e({type:"optional",innerType:t})}function WE(e,t){return new e({type:"nullable",innerType:t})}function ME(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():xf(r)}})}function ZE(e,t,r){return new e({type:"nonoptional",innerType:t,...T(r)})}function BE(e,t){return new e({type:"success",innerType:t})}function VE(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function HE(e,t,r){return new e({type:"pipe",in:t,out:r})}function JE(e,t){return new e({type:"readonly",innerType:t})}function GE(e,t,r){return new e({type:"template_literal",parts:t,...T(r)})}function XE(e,t){return new e({type:"lazy",getter:t})}function KE(e,t){return new e({type:"promise",innerType:t})}function mv(e,t,r){let o=T(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function gv(e,t,r){return new e({type:"custom",check:"custom",fn:t,...T(r)})}function vv(e,t){let r=s$(o=>(o.addIssue=n=>{if(typeof n=="string")o.issues.push(Uo(n,o.value,r._zod.def));else{let i=n;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=o.value),i.inst??(i.inst=r),i.continue??(i.continue=!r._zod.def.abort),o.issues.push(Uo(i))}},e(o.value,o)),t);return r}function s$(e,t){let r=new be({check:"custom",...T(t)});return r._zod.check=e,r}function yv(e){let t=new be({check:"describe"});return t._zod.onattach=[r=>{let o=nt.get(r)??{};nt.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function hv(e){let t=new be({check:"meta"});return t._zod.onattach=[r=>{let o=nt.get(r)??{};nt.add(r,{...o,...e})}],t._zod.check=()=>{},t}function xv(e,t){let r=T(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(g=>typeof g=="string"?g.toLowerCase():g),n=n.map(g=>typeof g=="string"?g.toLowerCase():g));let i=new Set(o),a=new Set(n),l=e.Codec??ja,s=e.Boolean??Ca,c=e.String??Qr,d=new c({type:"string",error:r.error}),p=new s({type:"boolean",error:r.error}),f=new l({type:"pipe",in:d,out:p,transform:((g,x)=>{let b=g;return r.case!=="sensitive"&&(b=b.toLowerCase()),i.has(b)?!0:a.has(b)?!1:(x.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:x.value,inst:f,continue:!1}),{})}),reverseTransform:((g,x)=>g===!0?o[0]||"true":n[0]||"false"),error:r.error});return f}function ri(e,t,r,o={}){let n=T(o),i={...T(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:l=>r.test(l),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}function wr(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 fe(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{let d={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,d);else{let f=a.schema,g=t.processors[n.type];if(!g)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);g(e,t,f,d)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),fe(p,t,d),t.seen.get(p).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(a.schema,s),t.io==="input"&&xt(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&"_prefault"in a.schema&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function zr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let l=e.metadataRegistry.get(a[0])?.id;if(l){let s=o.get(l);if(s&&s!==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.`);o.set(l,a[0])}}let n=a=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,f=e.external.uri??(x=>x);if(p)return{ref:f(p)};let g=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=g,{defId:g,ref:`${f("__shared")}#/${l}/${g}`}}if(a[1]===r)return{ref:"#"};let c=`#/${l}/`,d=a[1].schema.id??`__schema${e.counter++}`;return{defId:d,ref:c+d}},i=a=>{if(a[1].schema.$ref)return;let l=a[1],{ref:s,defId:c}=n(a);l.def={...l.schema},c&&(l.defId=c);let d=l.schema;for(let p in d)delete d[p];d.$ref=s};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>
|
|
71
71
|
|
|
72
|
-
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]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Sr(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,u={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),x=g.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(x)):Object.assign(c,x),Object.assign(c,u),l._zod.parent===p)for(let w in c)w==="$ref"||w==="allOf"||w in u||delete c[w];if(x.$ref&&g.def)for(let w in c)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(c[w])===JSON.stringify(g.def[w])&&delete c[w]}let f=l._zod.parent;if(f&&f!==p){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let x in c)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(c[x])===JSON.stringify(g.def[x])&&delete c[x]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(l)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let s=l[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:Qo(t,"input",e.processors),output:Qo(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function ht(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return ht(o.element,r);if(o.type==="set")return ht(o.valueType,r);if(o.type==="lazy")return ht(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return ht(o.innerType,r);if(o.type==="intersection")return ht(o.left,r)||ht(o.right,r);if(o.type==="record"||o.type==="map")return ht(o.keyType,r)||ht(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ht(o.in,r)||ht(o.out,r);if(o.type==="object"){for(let n in o.shape)if(ht(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(ht(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(ht(n,r))return!0;return!!(o.rest&&ht(o.rest,r))}return!1}var lv=(e,t={})=>r=>{let o=hr({...r,processors:t});return pe(e,o),xr(o,e),Sr(o,e)},Qo=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=hr({...n??{},target:i,io:t,processors:r});return pe(e,a),xr(a,e),Sr(a,e)};var zE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},sv=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=zE[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){let u=[...s];u.length===1?n.pattern=u[0].source:u.length>1&&(n.allOf=[...u.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},cv=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number";let p=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";p?g?(n.minimum=u,n.exclusiveMinimum=!0):n.exclusiveMinimum=u:typeof i=="number"&&(n.minimum=i),f?g?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof s=="number"&&(n.multipleOf=s)},uv=(e,t,r,o)=>{r.type="boolean"},dv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},pv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},fv=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},mv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},gv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},vv=(e,t,r,o)=>{r.not={}},yv=(e,t,r,o)=>{},hv=(e,t,r,o)=>{},xv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},Sv=(e,t,r,o)=>{let n=e._zod.def,i=ua(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},bv=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.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");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},kv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},_v=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},$v=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(n,i)},wv=(e,t,r,o)=>{r.type="boolean"},zv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Iv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Pv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Ev=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Rv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Cv=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=pe(i.element,t,{...o,path:[...o.path,"items"]})},jv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=pe(a[c],t,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let u=i.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));s.size>0&&(n.required=Array.from(s)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=pe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},wc=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,s)=>pe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},Tv=(e,t,r,o)=>{let n=e._zod.def,i=pe(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=pe(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},Ov=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((f,g)=>pe(f,t,{...o,path:[...o.path,a,g]})),c=i.rest?pe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=s,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:s},c&&n.items.anyOf.push(c),n.minItems=s.length,c||(n.maxItems=s.length)):(n.items=s,c&&(n.additionalItems=c));let{minimum:u,maximum:p}=e._zod.bag;typeof u=="number"&&(n.minItems=u),typeof p=="number"&&(n.maxItems=p)},Nv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let u=pe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of s)n.patternProperties[p.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=pe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=pe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let u=[...c].filter(p=>typeof p=="string"||typeof p=="number");u.length>0&&(n.required=u)}},Dv=(e,t,r,o)=>{let n=e._zod.def,i=pe(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Lv=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Uv=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Av=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},Fv=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},Wv=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;pe(a,t,o);let l=t.seen.get(e);l.ref=a},Mv=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},Zv=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},zc=(e,t,r,o)=>{let n=e._zod.def;pe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Bv=(e,t,r,o)=>{let n=e._zod.innerType;pe(n,t,o);let i=t.seen.get(e);i.ref=n},$c={string:sv,number:cv,boolean:uv,bigint:dv,symbol:pv,null:fv,undefined:mv,void:gv,never:vv,any:yv,unknown:hv,date:xv,enum:Sv,literal:bv,nan:kv,template_literal:_v,file:$v,success:wv,custom:zv,function:Iv,transform:Pv,map:Ev,set:Rv,array:Cv,object:jv,union:wc,intersection:Tv,tuple:Ov,record:Nv,nullable:Dv,nonoptional:Lv,default:Uv,prefault:Av,catch:Fv,pipe:Wv,readonly:Mv,promise:Zv,optional:zc,lazy:Bv};function Ic(e,t){if("_idmap"in e){let o=e,n=hr({...t,processors:$c}),i={};for(let s of o._idmap.entries()){let[c,u]=s;pe(u,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let s of o._idmap.entries()){let[c,u]=s;xr(n,u),a[c]=Sr(n,u)}if(Object.keys(i).length>0){let s=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=hr({...t,processors:$c});return pe(e,r),xr(r,e),Sr(r,e)}var Pc=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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=hr({processors:$c,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return pe(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),xr(this.ctx,t);let o=Sr(this.ctx,t),{"~standard":n,...i}=o;return i}};var J_={};var Pa={};wn(Pa,{ZodAny:()=>my,ZodArray:()=>hy,ZodBase64:()=>Xc,ZodBase64URL:()=>Kc,ZodBigInt:()=>ai,ZodBigIntFormat:()=>qc,ZodBoolean:()=>ii,ZodCIDRv4:()=>Jc,ZodCIDRv6:()=>Gc,ZodCUID:()=>Fc,ZodCUID2:()=>Wc,ZodCatch:()=>Fy,ZodCodec:()=>Fa,ZodCustom:()=>Wa,ZodCustomStringFormat:()=>ri,ZodDate:()=>Na,ZodDefault:()=>Oy,ZodDiscriminatedUnion:()=>Sy,ZodE164:()=>Yc,ZodEmail:()=>Lc,ZodEmoji:()=>Uc,ZodEnum:()=>ti,ZodExactOptional:()=>Cy,ZodFile:()=>Ey,ZodFunction:()=>Ky,ZodGUID:()=>Ra,ZodIPv4:()=>Vc,ZodIPv6:()=>Hc,ZodIntersection:()=>by,ZodJWT:()=>Qc,ZodKSUID:()=>Bc,ZodLazy:()=>Jy,ZodLiteral:()=>Py,ZodMAC:()=>ly,ZodMap:()=>zy,ZodNaN:()=>My,ZodNanoID:()=>Ac,ZodNever:()=>vy,ZodNonOptional:()=>iu,ZodNull:()=>py,ZodNullable:()=>Ty,ZodNumber:()=>oi,ZodNumberFormat:()=>Yr,ZodObject:()=>La,ZodOptional:()=>ou,ZodPipe:()=>Aa,ZodPrefault:()=>Dy,ZodPreprocess:()=>Zy,ZodPromise:()=>Xy,ZodReadonly:()=>By,ZodRecord:()=>ei,ZodSet:()=>Iy,ZodString:()=>ni,ZodStringFormat:()=>ye,ZodSuccess:()=>Ay,ZodSymbol:()=>uy,ZodTemplateLiteral:()=>Hy,ZodTransform:()=>Ry,ZodTuple:()=>_y,ZodType:()=>ee,ZodULID:()=>Mc,ZodURL:()=>Oa,ZodUUID:()=>kn,ZodUndefined:()=>dy,ZodUnion:()=>Ua,ZodUnknown:()=>gy,ZodVoid:()=>yy,ZodXID:()=>Zc,ZodXor:()=>xy,_ZodString:()=>Dc,_default:()=>Ny,_function:()=>n0,any:()=>T$,array:()=>Da,base64:()=>v$,base64url:()=>y$,bigint:()=>P$,boolean:()=>cy,catch:()=>Wy,check:()=>r0,cidrv4:()=>m$,cidrv6:()=>g$,codec:()=>Q$,cuid:()=>a$,cuid2:()=>l$,custom:()=>o0,date:()=>N$,describe:()=>i0,discriminatedUnion:()=>W$,e164:()=>h$,email:()=>K_,emoji:()=>o$,enum:()=>nu,exactOptional:()=>jy,file:()=>G$,float32:()=>$$,float64:()=>w$,function:()=>n0,guid:()=>Y_,hash:()=>_$,hex:()=>k$,hostname:()=>b$,httpUrl:()=>r$,instanceof:()=>l0,int:()=>Oc,int32:()=>z$,int64:()=>E$,intersection:()=>ky,invertCodec:()=>q$,ipv4:()=>d$,ipv6:()=>f$,json:()=>c0,jwt:()=>x$,keyof:()=>D$,ksuid:()=>u$,lazy:()=>Gy,literal:()=>J$,looseObject:()=>A$,looseRecord:()=>Z$,mac:()=>p$,map:()=>B$,meta:()=>a0,nan:()=>Y$,nanoid:()=>i$,nativeEnum:()=>H$,never:()=>eu,nonoptional:()=>Uy,null:()=>fy,nullable:()=>ja,nullish:()=>X$,number:()=>sy,object:()=>L$,optional:()=>Ca,partialRecord:()=>M$,pipe:()=>Nc,prefault:()=>Ly,preprocess:()=>u0,promise:()=>t0,readonly:()=>Vy,record:()=>wy,refine:()=>Yy,set:()=>V$,strictObject:()=>U$,string:()=>Ea,stringFormat:()=>S$,stringbool:()=>s0,success:()=>K$,superRefine:()=>Qy,symbol:()=>C$,templateLiteral:()=>e0,transform:()=>ru,tuple:()=>$y,uint32:()=>I$,uint64:()=>R$,ulid:()=>s$,undefined:()=>j$,union:()=>tu,unknown:()=>Kr,url:()=>n$,uuid:()=>Q_,uuidv4:()=>q_,uuidv6:()=>e$,uuidv7:()=>t$,void:()=>O$,xid:()=>c$,xor:()=>F$});var Ec={};wn(Ec,{endsWith:()=>Bo,gt:()=>Sn,gte:()=>yt,includes:()=>Mo,length:()=>Xr,lowercase:()=>Fo,lt:()=>xn,lte:()=>Dt,maxLength:()=>Gr,maxSize:()=>yr,mime:()=>Vo,minLength:()=>Ln,minSize:()=>bn,multipleOf:()=>vr,negative:()=>Sc,nonnegative:()=>kc,nonpositive:()=>bc,normalize:()=>Ho,overwrite:()=>sn,positive:()=>xc,property:()=>_c,regex:()=>Ao,size:()=>Jr,slugify:()=>Ko,startsWith:()=>Zo,toLowerCase:()=>Go,toUpperCase:()=>Xo,trim:()=>Jo,uppercase:()=>Wo});var qo={};wn(qo,{ZodISODate:()=>Cc,ZodISODateTime:()=>Rc,ZodISODuration:()=>Tc,ZodISOTime:()=>jc,date:()=>Hv,datetime:()=>Vv,duration:()=>Gv,time:()=>Jv});var Rc=h("ZodISODateTime",(e,t)=>{km.init(e,t),ye.init(e,t)});function Vv(e){return zg(Rc,e)}var Cc=h("ZodISODate",(e,t)=>{_m.init(e,t),ye.init(e,t)});function Hv(e){return Ig(Cc,e)}var jc=h("ZodISOTime",(e,t)=>{$m.init(e,t),ye.init(e,t)});function Jv(e){return Pg(jc,e)}var Tc=h("ZodISODuration",(e,t)=>{wm.init(e,t),ye.init(e,t)});function Gv(e){return Eg(Tc,e)}var G_=(e,t)=>{ga.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ya(e,r)},flatten:{value:r=>va(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Ro,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Ro,2)}},isEmpty:{get(){return e.issues.length===0}}})},PE=h("ZodError",G_),It=h("ZodError",G_,{Parent:Error});var Xv=To(It),Kv=Oo(It),Yv=No(It),Qv=Do(It),qv=Is(It),ey=Ps(It),ty=Es(It),ny=Rs(It),ry=Cs(It),oy=js(It),iy=Ts(It),ay=Os(It);var X_=new WeakMap;function Ta(e,t,r){let o=Object.getPrototypeOf(e),n=X_.get(o);if(n||(n=new Set,X_.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var ee=h("ZodType",(e,t)=>(Y.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Qo(e,"input"),output:Qo(e,"output")}}),e.toJSONSchema=lv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>Xv(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Yv(e,r,o),e.parseAsync=async(r,o)=>Kv(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Qv(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>qv(e,r,o),e.decode=(r,o)=>ey(e,r,o),e.encodeAsync=async(r,o)=>ty(e,r,o),e.decodeAsync=async(r,o)=>ny(e,r,o),e.safeEncode=(r,o)=>ry(e,r,o),e.safeDecode=(r,o)=>oy(e,r,o),e.safeEncodeAsync=async(r,o)=>iy(e,r,o),e.safeDecodeAsync=async(r,o)=>ay(e,r,o),Ta(e,"ZodType",{check(...r){let o=this.def;return this.clone(P.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return gt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(Yy(r,o))},superRefine(r,o){return this.check(Qy(r,o))},overwrite(r){return this.check(sn(r))},optional(){return Ca(this)},exactOptional(){return jy(this)},nullable(){return ja(this)},nullish(){return Ca(ja(this))},nonoptional(r){return Uy(this,r)},array(){return Da(this)},or(r){return tu([this,r])},and(r){return ky(this,r)},transform(r){return Nc(this,ru(r))},default(r){return Ny(this,r)},prefault(r){return Ly(this,r)},catch(r){return Wy(this,r)},pipe(r){return Nc(this,r)},readonly(){return Vy(this)},describe(r){let o=this.clone();return et.add(o,{description:r}),o},meta(...r){if(r.length===0)return et.get(this);let o=this.clone();return et.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return et.get(e)?.description},configurable:!0}),e)),Dc=h("_ZodString",(e,t)=>{Hr.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,i)=>sv(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Ta(e,"_ZodString",{regex(...o){return this.check(Ao(...o))},includes(...o){return this.check(Mo(...o))},startsWith(...o){return this.check(Zo(...o))},endsWith(...o){return this.check(Bo(...o))},min(...o){return this.check(Ln(...o))},max(...o){return this.check(Gr(...o))},length(...o){return this.check(Xr(...o))},nonempty(...o){return this.check(Ln(1,...o))},lowercase(o){return this.check(Fo(o))},uppercase(o){return this.check(Wo(o))},trim(){return this.check(Jo())},normalize(...o){return this.check(Ho(...o))},toLowerCase(){return this.check(Go())},toUpperCase(){return this.check(Xo())},slugify(){return this.check(Ko())}})}),ni=h("ZodString",(e,t)=>{Hr.init(e,t),Dc.init(e,t),e.email=r=>e.check(qs(Lc,r)),e.url=r=>e.check(Ia(Oa,r)),e.jwt=r=>e.check(hc(Qc,r)),e.emoji=r=>e.check(oc(Uc,r)),e.guid=r=>e.check(za(Ra,r)),e.uuid=r=>e.check(ec(kn,r)),e.uuidv4=r=>e.check(tc(kn,r)),e.uuidv6=r=>e.check(nc(kn,r)),e.uuidv7=r=>e.check(rc(kn,r)),e.nanoid=r=>e.check(ic(Ac,r)),e.guid=r=>e.check(za(Ra,r)),e.cuid=r=>e.check(ac(Fc,r)),e.cuid2=r=>e.check(lc(Wc,r)),e.ulid=r=>e.check(sc(Mc,r)),e.base64=r=>e.check(gc(Xc,r)),e.base64url=r=>e.check(vc(Kc,r)),e.xid=r=>e.check(cc(Zc,r)),e.ksuid=r=>e.check(uc(Bc,r)),e.ipv4=r=>e.check(dc(Vc,r)),e.ipv6=r=>e.check(pc(Hc,r)),e.cidrv4=r=>e.check(fc(Jc,r)),e.cidrv6=r=>e.check(mc(Gc,r)),e.e164=r=>e.check(yc(Yc,r)),e.datetime=r=>e.check(Vv(r)),e.date=r=>e.check(Hv(r)),e.time=r=>e.check(Jv(r)),e.duration=r=>e.check(Gv(r))});function Ea(e){return kg(ni,e)}var ye=h("ZodStringFormat",(e,t)=>{ve.init(e,t),Dc.init(e,t)}),Lc=h("ZodEmail",(e,t)=>{fm.init(e,t),ye.init(e,t)});function K_(e){return qs(Lc,e)}var Ra=h("ZodGUID",(e,t)=>{dm.init(e,t),ye.init(e,t)});function Y_(e){return za(Ra,e)}var kn=h("ZodUUID",(e,t)=>{pm.init(e,t),ye.init(e,t)});function Q_(e){return ec(kn,e)}function q_(e){return tc(kn,e)}function e$(e){return nc(kn,e)}function t$(e){return rc(kn,e)}var Oa=h("ZodURL",(e,t)=>{mm.init(e,t),ye.init(e,t)});function n$(e){return Ia(Oa,e)}function r$(e){return Ia(Oa,{protocol:Nt.httpProtocol,hostname:Nt.domain,...P.normalizeParams(e)})}var Uc=h("ZodEmoji",(e,t)=>{gm.init(e,t),ye.init(e,t)});function o$(e){return oc(Uc,e)}var Ac=h("ZodNanoID",(e,t)=>{vm.init(e,t),ye.init(e,t)});function i$(e){return ic(Ac,e)}var Fc=h("ZodCUID",(e,t)=>{ym.init(e,t),ye.init(e,t)});function a$(e){return ac(Fc,e)}var Wc=h("ZodCUID2",(e,t)=>{hm.init(e,t),ye.init(e,t)});function l$(e){return lc(Wc,e)}var Mc=h("ZodULID",(e,t)=>{xm.init(e,t),ye.init(e,t)});function s$(e){return sc(Mc,e)}var Zc=h("ZodXID",(e,t)=>{Sm.init(e,t),ye.init(e,t)});function c$(e){return cc(Zc,e)}var Bc=h("ZodKSUID",(e,t)=>{bm.init(e,t),ye.init(e,t)});function u$(e){return uc(Bc,e)}var Vc=h("ZodIPv4",(e,t)=>{zm.init(e,t),ye.init(e,t)});function d$(e){return dc(Vc,e)}var ly=h("ZodMAC",(e,t)=>{Pm.init(e,t),ye.init(e,t)});function p$(e){return $g(ly,e)}var Hc=h("ZodIPv6",(e,t)=>{Im.init(e,t),ye.init(e,t)});function f$(e){return pc(Hc,e)}var Jc=h("ZodCIDRv4",(e,t)=>{Em.init(e,t),ye.init(e,t)});function m$(e){return fc(Jc,e)}var Gc=h("ZodCIDRv6",(e,t)=>{Rm.init(e,t),ye.init(e,t)});function g$(e){return mc(Gc,e)}var Xc=h("ZodBase64",(e,t)=>{jm.init(e,t),ye.init(e,t)});function v$(e){return gc(Xc,e)}var Kc=h("ZodBase64URL",(e,t)=>{Tm.init(e,t),ye.init(e,t)});function y$(e){return vc(Kc,e)}var Yc=h("ZodE164",(e,t)=>{Om.init(e,t),ye.init(e,t)});function h$(e){return yc(Yc,e)}var Qc=h("ZodJWT",(e,t)=>{Nm.init(e,t),ye.init(e,t)});function x$(e){return hc(Qc,e)}var ri=h("ZodCustomStringFormat",(e,t)=>{Dm.init(e,t),ye.init(e,t)});function S$(e,t,r={}){return Yo(ri,e,t,r)}function b$(e){return Yo(ri,"hostname",Nt.hostname,e)}function k$(e){return Yo(ri,"hex",Nt.hex,e)}function _$(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Nt[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Yo(ri,o,n,t)}var oi=h("ZodNumber",(e,t)=>{Zs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,i)=>cv(e,o,n,i),Ta(e,"ZodNumber",{gt(o,n){return this.check(Sn(o,n))},gte(o,n){return this.check(yt(o,n))},min(o,n){return this.check(yt(o,n))},lt(o,n){return this.check(xn(o,n))},lte(o,n){return this.check(Dt(o,n))},max(o,n){return this.check(Dt(o,n))},int(o){return this.check(Oc(o))},safe(o){return this.check(Oc(o))},positive(o){return this.check(Sn(0,o))},nonnegative(o){return this.check(yt(0,o))},negative(o){return this.check(xn(0,o))},nonpositive(o){return this.check(Dt(0,o))},multipleOf(o,n){return this.check(vr(o,n))},step(o,n){return this.check(vr(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function sy(e){return Rg(oi,e)}var Yr=h("ZodNumberFormat",(e,t)=>{Lm.init(e,t),oi.init(e,t)});function Oc(e){return jg(Yr,e)}function $$(e){return Tg(Yr,e)}function w$(e){return Og(Yr,e)}function z$(e){return Ng(Yr,e)}function I$(e){return Dg(Yr,e)}var ii=h("ZodBoolean",(e,t)=>{ba.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>uv(e,r,o,n)});function cy(e){return Lg(ii,e)}var ai=h("ZodBigInt",(e,t)=>{Bs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,i)=>dv(e,o,n,i),e.gte=(o,n)=>e.check(yt(o,n)),e.min=(o,n)=>e.check(yt(o,n)),e.gt=(o,n)=>e.check(Sn(o,n)),e.gte=(o,n)=>e.check(yt(o,n)),e.min=(o,n)=>e.check(yt(o,n)),e.lt=(o,n)=>e.check(xn(o,n)),e.lte=(o,n)=>e.check(Dt(o,n)),e.max=(o,n)=>e.check(Dt(o,n)),e.positive=o=>e.check(Sn(BigInt(0),o)),e.negative=o=>e.check(xn(BigInt(0),o)),e.nonpositive=o=>e.check(Dt(BigInt(0),o)),e.nonnegative=o=>e.check(yt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(vr(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function P$(e){return Ag(ai,e)}var qc=h("ZodBigIntFormat",(e,t)=>{Um.init(e,t),ai.init(e,t)});function E$(e){return Wg(qc,e)}function R$(e){return Mg(qc,e)}var uy=h("ZodSymbol",(e,t)=>{Am.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>pv(e,r,o,n)});function C$(e){return Zg(uy,e)}var dy=h("ZodUndefined",(e,t)=>{Fm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>mv(e,r,o,n)});function j$(e){return Bg(dy,e)}var py=h("ZodNull",(e,t)=>{Wm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>fv(e,r,o,n)});function fy(e){return Vg(py,e)}var my=h("ZodAny",(e,t)=>{Mm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>yv(e,r,o,n)});function T$(){return Hg(my)}var gy=h("ZodUnknown",(e,t)=>{Zm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>hv(e,r,o,n)});function Kr(){return Jg(gy)}var vy=h("ZodNever",(e,t)=>{Bm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>vv(e,r,o,n)});function eu(e){return Gg(vy,e)}var yy=h("ZodVoid",(e,t)=>{Vm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>gv(e,r,o,n)});function O$(e){return Xg(yy,e)}var Na=h("ZodDate",(e,t)=>{Hm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,i)=>xv(e,o,n,i),e.min=(o,n)=>e.check(yt(o,n)),e.max=(o,n)=>e.check(Dt(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function N$(e){return Kg(Na,e)}var hy=h("ZodArray",(e,t)=>{Jm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cv(e,r,o,n),e.element=t.element,Ta(e,"ZodArray",{min(r,o){return this.check(Ln(r,o))},nonempty(r){return this.check(Ln(1,r))},max(r,o){return this.check(Gr(r,o))},length(r,o){return this.check(Xr(r,o))},unwrap(){return this.element}})});function Da(e,t){return qg(hy,e,t)}function D$(e){let t=e._zod.def.shape;return nu(Object.keys(t))}var La=h("ZodObject",(e,t)=>{Gm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>jv(e,r,o,n),P.defineLazy(e,"shape",()=>t.shape),Ta(e,"ZodObject",{keyof(){return nu(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Kr()})},loose(){return this.clone({...this._zod.def,catchall:Kr()})},strict(){return this.clone({...this._zod.def,catchall:eu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return P.extend(this,r)},safeExtend(r){return P.safeExtend(this,r)},merge(r){return P.merge(this,r)},pick(r){return P.pick(this,r)},omit(r){return P.omit(this,r)},partial(...r){return P.partial(ou,this,r[0])},required(...r){return P.required(iu,this,r[0])}})});function L$(e,t){let r={type:"object",shape:e??{},...P.normalizeParams(t)};return new La(r)}function U$(e,t){return new La({type:"object",shape:e,catchall:eu(),...P.normalizeParams(t)})}function A$(e,t){return new La({type:"object",shape:e,catchall:Kr(),...P.normalizeParams(t)})}var Ua=h("ZodUnion",(e,t)=>{ka.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wc(e,r,o,n),e.options=t.options});function tu(e,t){return new Ua({type:"union",options:e,...P.normalizeParams(t)})}var xy=h("ZodXor",(e,t)=>{Ua.init(e,t),Xm.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wc(e,r,o,n),e.options=t.options});function F$(e,t){return new xy({type:"union",options:e,inclusive:!1,...P.normalizeParams(t)})}var Sy=h("ZodDiscriminatedUnion",(e,t)=>{Ua.init(e,t),Km.init(e,t)});function W$(e,t,r){return new Sy({type:"union",options:t,discriminator:e,...P.normalizeParams(r)})}var by=h("ZodIntersection",(e,t)=>{Ym.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Tv(e,r,o,n)});function ky(e,t){return new by({type:"intersection",left:e,right:t})}var _y=h("ZodTuple",(e,t)=>{Vs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ov(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function $y(e,t,r){let o=t instanceof Y,n=o?r:t,i=o?t:null;return new _y({type:"tuple",items:e,rest:i,...P.normalizeParams(n)})}var ei=h("ZodRecord",(e,t)=>{Qm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function wy(e,t,r){return!t||!t._zod?new ei({type:"record",keyType:Ea(),valueType:e,...P.normalizeParams(t)}):new ei({type:"record",keyType:e,valueType:t,...P.normalizeParams(r)})}function M$(e,t,r){let o=gt(e);return o._zod.values=void 0,new ei({type:"record",keyType:o,valueType:t,...P.normalizeParams(r)})}function Z$(e,t,r){return new ei({type:"record",keyType:e,valueType:t,mode:"loose",...P.normalizeParams(r)})}var zy=h("ZodMap",(e,t)=>{qm.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ev(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(bn(...r)),e.nonempty=r=>e.check(bn(1,r)),e.max=(...r)=>e.check(yr(...r)),e.size=(...r)=>e.check(Jr(...r))});function B$(e,t,r){return new zy({type:"map",keyType:e,valueType:t,...P.normalizeParams(r)})}var Iy=h("ZodSet",(e,t)=>{eg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rv(e,r,o,n),e.min=(...r)=>e.check(bn(...r)),e.nonempty=r=>e.check(bn(1,r)),e.max=(...r)=>e.check(yr(...r)),e.size=(...r)=>e.check(Jr(...r))});function V$(e,t){return new Iy({type:"set",valueType:e,...P.normalizeParams(t)})}var ti=h("ZodEnum",(e,t)=>{tg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Sv(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ti({...t,checks:[],...P.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new ti({...t,checks:[],...P.normalizeParams(n),entries:i})}});function nu(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new ti({type:"enum",entries:r,...P.normalizeParams(t)})}function H$(e,t){return new ti({type:"enum",entries:e,...P.normalizeParams(t)})}var Py=h("ZodLiteral",(e,t)=>{ng.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>bv(e,r,o,n),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 J$(e,t){return new Py({type:"literal",values:Array.isArray(e)?e:[e],...P.normalizeParams(t)})}var Ey=h("ZodFile",(e,t)=>{rg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$v(e,r,o,n),e.min=(r,o)=>e.check(bn(r,o)),e.max=(r,o)=>e.check(yr(r,o)),e.mime=(r,o)=>e.check(Vo(Array.isArray(r)?r:[r],o))});function G$(e){return ev(Ey,e)}var Ry=h("ZodTransform",(e,t)=>{og.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pv(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new dr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(P.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(P.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function ru(e){return new Ry({type:"transform",transform:e})}var ou=h("ZodOptional",(e,t)=>{Hs.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ca(e){return new ou({type:"optional",innerType:e})}var Cy=h("ZodExactOptional",(e,t)=>{ig.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function jy(e){return new Cy({type:"optional",innerType:e})}var Ty=h("ZodNullable",(e,t)=>{ag.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function ja(e){return new Ty({type:"nullable",innerType:e})}function X$(e){return Ca(ja(e))}var Oy=h("ZodDefault",(e,t)=>{lg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Ny(e,t){return new Oy({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():P.shallowClone(t)}})}var Dy=h("ZodPrefault",(e,t)=>{sg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Av(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ly(e,t){return new Dy({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():P.shallowClone(t)}})}var iu=h("ZodNonOptional",(e,t)=>{cg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Uy(e,t){return new iu({type:"nonoptional",innerType:e,...P.normalizeParams(t)})}var Ay=h("ZodSuccess",(e,t)=>{ug.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function K$(e){return new Ay({type:"success",innerType:e})}var Fy=h("ZodCatch",(e,t)=>{dg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wy(e,t){return new Fy({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var My=h("ZodNaN",(e,t)=>{pg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>kv(e,r,o,n)});function Y$(e){return Qg(My,e)}var Aa=h("ZodPipe",(e,t)=>{Js.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Wv(e,r,o,n),e.in=t.in,e.out=t.out});function Nc(e,t){return new Aa({type:"pipe",in:e,out:t})}var Fa=h("ZodCodec",(e,t)=>{Aa.init(e,t),_a.init(e,t)});function Q$(e,t,r){return new Fa({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function q$(e){let t=e._zod.def;return new Fa({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Zy=h("ZodPreprocess",(e,t)=>{Aa.init(e,t),fg.init(e,t)}),By=h("ZodReadonly",(e,t)=>{mg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Vy(e){return new By({type:"readonly",innerType:e})}var Hy=h("ZodTemplateLiteral",(e,t)=>{gg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_v(e,r,o,n)});function e0(e,t){return new Hy({type:"template_literal",parts:e,...P.normalizeParams(t)})}var Jy=h("ZodLazy",(e,t)=>{hg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bv(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Gy(e){return new Jy({type:"lazy",getter:e})}var Xy=h("ZodPromise",(e,t)=>{yg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function t0(e){return new Xy({type:"promise",innerType:e})}var Ky=h("ZodFunction",(e,t)=>{vg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iv(e,r,o,n)});function n0(e){return new Ky({type:"function",input:Array.isArray(e?.input)?$y(e?.input):e?.input??Da(Kr()),output:e?.output??Kr()})}var Wa=h("ZodCustom",(e,t)=>{xg.init(e,t),ee.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zv(e,r,o,n)});function r0(e){let t=new he({check:"custom"});return t._zod.check=e,t}function o0(e,t){return tv(Wa,e??(()=>!0),t)}function Yy(e,t={}){return nv(Wa,e,t)}function Qy(e,t){return rv(e,t)}var i0=ov,a0=iv;function l0(e,t={}){let r=new Wa({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...P.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var s0=(...e)=>av({Codec:Fa,Boolean:ii,String:ni},...e);function c0(e){let t=Gy(()=>tu([Ea(e),sy(),cy(),fy(),Da(t),wy(Ea(),t)]));return t}function u0(e,t){return new Zy({type:"pipe",in:ru(e),out:t})}var RE={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 CE(e){De({customError:e})}function jE(){return De().customError}var qy;qy||(qy={});var D={...Pa,...Ec,iso:qo},TE=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 OE(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function NE(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function d0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return D.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=NE(n,t),a=lt(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return D.null();if(n.length===0)return D.never();if(n.length===1)return D.literal(n[0]);if(n.every(a=>typeof a=="string"))return D.enum(n);let i=n.map(a=>D.literal(a));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return d0(a,t)});return n.length===0?D.never():n.length===1?n[0]:D.union(n)}if(!r)return D.any();let o;switch(r){case"string":{let n=D.string();if(e.format){let i=e.format;i==="email"?n=n.check(D.email()):i==="uri"||i==="uri-reference"?n=n.check(D.url()):i==="uuid"||i==="guid"?n=n.check(D.uuid()):i==="date-time"?n=n.check(D.iso.datetime()):i==="date"?n=n.check(D.iso.date()):i==="time"?n=n.check(D.iso.time()):i==="duration"?n=n.check(D.iso.duration()):i==="ipv4"?n=n.check(D.ipv4()):i==="ipv6"?n=n.check(D.ipv6()):i==="mac"?n=n.check(D.mac()):i==="cidr"?n=n.check(D.cidrv4()):i==="cidr-v6"?n=n.check(D.cidrv6()):i==="base64"?n=n.check(D.base64()):i==="base64url"?n=n.check(D.base64url()):i==="e164"?n=n.check(D.e164()):i==="jwt"?n=n.check(D.jwt()):i==="emoji"?n=n.check(D.emoji()):i==="nanoid"?n=n.check(D.nanoid()):i==="cuid"?n=n.check(D.cuid()):i==="cuid2"?n=n.check(D.cuid2()):i==="ulid"?n=n.check(D.ulid()):i==="xid"?n=n.check(D.xid()):i==="ksuid"&&(n=n.check(D.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=D.boolean();break}case"null":{o=D.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let u=lt(c,t);n[s]=a.has(s)?u:u.optional()}if(e.propertyNames){let s=lt(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?lt(e.additionalProperties,t):D.any();if(Object.keys(n).length===0){o=D.record(s,c);break}let u=D.object(n).passthrough(),p=D.looseRecord(s,c);o=D.intersection(u,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),u=[];for(let f of c){let g=lt(s[f],t),x=D.string().regex(new RegExp(f));u.push(D.looseRecord(x,g))}let p=[];if(Object.keys(n).length>0&&p.push(D.object(n).passthrough()),p.push(...u),p.length===0)o=D.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=D.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)f=D.intersection(f,p[g]);o=f}break}let l=D.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(lt(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(s=>lt(s,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?lt(i,t):void 0;l?o=D.tuple(a).rest(l):o=D.tuple(a),typeof e.minItems=="number"&&(o=o.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>lt(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?lt(e.additionalItems,t):void 0;l?o=D.tuple(a).rest(l):o=D.tuple(a),typeof e.minItems=="number"&&(o=o.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let a=lt(i,t),l=D.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=D.array(D.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function lt(e,t){if(typeof e=="boolean")return e?D.any():D.never();let r=d0(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>lt(c,t)),s=D.union(l);r=o?D.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>lt(c,t)),s=D.xor(l);r=o?D.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:D.any();else{let l=o?r:lt(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=D.intersection(l,lt(e.allOf[c],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=D.nullable(r)),e.readOnly===!0&&(r=D.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))TE.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function p0(e,t){if(typeof e=="boolean")return e?D.any():D.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=OE(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??et};return lt(r,i)}var eh={};wn(eh,{bigint:()=>AE,boolean:()=>UE,date:()=>FE,number:()=>LE,string:()=>DE});function DE(e){return _g(ni,e)}function LE(e){return Cg(oi,e)}function UE(e){return Ug(ii,e)}function AE(e){return Fg(ai,e)}function FE(e){return Yg(Na,e)}De(Gs());var X=Object.freeze({kpis:"/api/diagnostics/kpis",sessions:"/api/diagnostics/sessions",settings:"/api/diagnostics/settings",rules:"/api/diagnostics/rules",skills:"/api/diagnostics/skills",graph:"/api/graph",graphBuild:"/api/graph/build",memoryGraph:"/api/diagnostics/memory-graph",recall:"/api/memories/recall",memories:"/api/memories",compact:"/api/diagnostics/compact",lifecycleConflicts:"/api/memories/conflicts",lifecycleStaleRefs:"/api/memories/stale-refs",lifecycleHistory:"/api/memories/history",calibration:"/api/memories/calibration",logs:"/api/logs",logsStream:"/api/logs/stream",harnesses:"/api/diagnostics/harnesses",assets:"/api/diagnostics/assets",syncAction:"/api/diagnostics/sync",health:"/health",pollinate:"/api/diagnostics/pollinate",vaultSettings:"/api/settings",secrets:"/api/secrets",authStatus:"/api/auth/status",setupState:"/setup/state",setupLogin:"/setup/login",setupMigrate:"/setup/migrate-from-hivemind",setupMigrateRollback:"/setup/migrate-from-hivemind/rollback",scopeOrgs:"/api/diagnostics/scope/orgs",scopeWorkspaces:"/api/diagnostics/scope/workspaces",scopeProjects:"/api/diagnostics/scope/projects",fsBrowse:"/api/diagnostics/fs/browse",projectsBind:"/api/diagnostics/projects/bind",projectsBindExisting:"/api/diagnostics/projects/bind-existing",projectsUnbind:"/api/diagnostics/projects/unbind",scopeOrgSwitch:"/api/diagnostics/scope/org-switch",scopeWorkspaceSwitch:"/api/diagnostics/scope/workspace-switch"}),WE="x-honeycomb-project";function au(e){return e!==void 0&&e!==""?{[WE]:e}:{}}var ME=50,ZE=d.object({memoryCount:d.number().catch(0),sessionCount:d.number().catch(0),turnCount:d.number().catch(0),estimatedSavings:d.number().catch(0),teamSkillCount:d.number().catch(0)}),S0=d.object({sessionId:d.string().catch(""),project:d.string().catch(""),startedAt:d.string().catch(""),eventCount:d.number().catch(0),status:d.string().catch("captured")}),BE=d.object({sessions:d.array(S0).catch([])}),VE=d.object({orgId:d.string().catch(""),orgName:d.string().catch(""),workspace:d.string().catch(""),settings:d.record(d.string(),d.string()).catch({})}),HE=d.object({id:d.string().catch(""),label:d.string().catch(""),kind:d.string().catch("")}),JE=d.object({from:d.string().catch(""),to:d.string().catch(""),kind:d.string().catch("")}),GE=d.object({totalNodes:d.number().catch(0),totalEdges:d.number().catch(0),shownNodes:d.number().catch(0),shownEdges:d.number().catch(0),truncated:d.boolean().catch(!1)}),f0=d.object({built:d.boolean().catch(!1),nodes:d.array(HE).catch([]),edges:d.array(JE).catch([]),meta:GE.optional().catch(void 0)}),XE=d.object({id:d.string().catch(""),title:d.string().catch(""),active:d.boolean().catch(!1)}),KE=d.object({rules:d.array(XE).catch([])}),YE=d.object({name:d.string().catch(""),scope:d.string().catch(""),syncState:d.string().catch("pending")}),QE=d.object({skills:d.array(YE).catch([])}),m0=d.object({assetType:d.enum(["skill","agent"]).catch("skill"),name:d.string().catch(""),description:d.string().catch(""),state:d.enum(["local","pulled","shared"]).catch("local"),scope:d.string().catch(""),sourceHarness:d.string().catch(""),tier:d.string().catch(""),style:d.string().catch(""),version:d.number().catch(0),honeycombId:d.string().catch(""),authoredByMe:d.boolean().catch(!1)}),qE=d.object({skills:d.array(m0).catch([]),agents:d.array(m0).catch([])}),e4=d.object({ok:d.boolean().catch(!1),action:d.enum(["promote","pull","demote","enable","disable"]).catch("promote"),assetType:d.enum(["skill","agent"]).catch("skill"),honeycombId:d.string().catch(""),state:d.enum(["local","pulled","shared",""]).catch(""),version:d.number().catch(0)}),lu=Object.freeze({skills:[],agents:[]}),t4=d.object({source:d.string().catch(""),id:d.string().catch(""),text:d.string().catch(""),score:d.number().catch(0),kind:d.enum(["memory","session"]).catch("memory"),secondary:d.boolean().catch(!1)}),n4=d.object({hits:d.array(t4).catch([]),sources:d.array(d.string()).catch([]),degraded:d.boolean().catch(!0)}),b0=d.object({id:d.string().catch(""),type:d.string().catch(""),content:d.string().catch(""),confidence:d.number().catch(0),agentId:d.string().catch(""),createdAt:d.string().catch(""),updatedAt:d.string().catch(""),visibility:d.string().catch(""),sourceType:d.string().catch(""),sourceId:d.string().catch(""),version:d.number().catch(0),hasEmbedding:d.boolean().catch(!1)}),r4=d.object({memories:d.array(b0).catch([])}),o4=d.object({memory:b0}),i4=d.object({id:d.string().nullable().catch(null),action:d.string().catch("")}),g0=d.object({id:d.string().nullable().catch(null),action:d.string().catch(""),audited:d.boolean().catch(!1)}),a4=d.object({table:d.string().catch(""),keysScanned:d.number().catch(0),keysCompacted:d.number().catch(0),rowsReaped:d.number().catch(0),keysSkipped:d.number().catch(0),errored:d.number().catch(0)}),l4=d.object({ok:d.boolean().catch(!1),summaries:d.array(a4).catch([]),skippedTables:d.array(d.string()).catch([])}),s4=d.object({id:d.string().catch(""),memoryAId:d.string().catch(""),memoryBId:d.string().catch(""),verdict:d.string().catch("review"),winnerId:d.string().nullable().catch(null),status:d.string().catch("open"),contraScore:d.number().catch(0)}),c4=d.object({conflicts:d.array(s4).catch([]),status:d.string().catch("open")}),u4=d.object({memoryId:d.string().catch(""),refStatus:d.string().catch("stale"),staleRefs:d.array(d.string()).catch([]),verifiedAt:d.string().nullable().catch(null)}),d4=d.object({staleRefs:d.array(u4).catch([])}),p4=d.object({id:d.string().catch(""),memoryId:d.string().catch(""),actor:d.string().catch("pipeline"),operation:d.string().catch(""),reason:d.string().catch(""),confidence:d.number().catch(0),timestamp:d.string().catch("")}),f4=d.object({history:d.array(p4).catch([]),type:d.string().catch("lifecycle")}),m4=d.object({lower:d.number().catch(0),upper:d.number().catch(0),meanConfidence:d.number().catch(0),accuracy:d.number().catch(0),count:d.number().catch(0)}),g4=d.object({ece:d.number().catch(0),brier:d.number().catch(0),nSamples:d.number().catch(0),fitAt:d.string().nullable().catch(null),identity:d.boolean().catch(!0),reliabilityDiagram:d.array(m4).catch([])}),su=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),nh=d.object({time:d.string().catch(""),method:d.string().catch(""),path:d.string().catch(""),status:d.number().catch(0),durationMs:d.number().optional(),mode:d.string().optional(),org:d.string().optional(),workspace:d.string().optional()}),v4=d.object({records:d.array(nh).catch([]),count:d.number().catch(0)}),y4=d.object({records:d.array(nh).catch([]),count:d.number().catch(0),nextCursor:d.string().nullable().catch(null),persistent:d.boolean().catch(!1)}),h4=d.object({sessions:d.array(S0).catch([]),nextCursor:d.string().nullable().catch(null)}),x4=d.object({kind:d.string().catch(""),binary:d.string().catch(""),fallbackBin:d.string().optional()}),S4=d.object({bin:d.string().catch(""),args:d.array(d.string()).catch([]),fallbackBin:d.string().optional()}),b4=d.object({name:d.string().catch(""),runtimePath:d.string().catch(""),contextChannel:d.string().catch(""),hostCli:S4.catch({bin:"",args:[]}),lifecycleEvents:d.array(d.string()).catch([]),agents:x4.optional(),workspaceRoots:d.boolean().optional(),mcpRegistration:d.boolean().optional(),contractedTools:d.boolean().optional(),agentsMdContext:d.boolean().optional(),userVisibleLogin:d.boolean().optional()}),k4=d.object({name:d.string().catch(""),installed:d.boolean().catch(!1),active:d.boolean().catch(!1),lastSeen:d.string().nullable().catch(null),turnsCaptured:d.number().catch(0),runtimePath:d.string().catch(""),capabilities:b4.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),_4=d.object({harnesses:d.array(k4).catch([])}),$4=d.object({triggered:d.boolean().catch(!1),status:d.string().catch("skipped"),reason:d.string().optional()}),w4=d.object({built:d.boolean().catch(!1),nodeCount:d.number().catch(0),edgeCount:d.number().catch(0),fileCount:d.number().catch(0)}),th=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),z4=12e4,I4=d.object({storage:d.enum(["reachable","unreachable"]).catch("reachable"),embeddings:d.enum(["on","off"]).catch("on"),schema:d.enum(["ok","missing_table"]).catch("ok")}),P4=d.object({status:d.string().catch("ok"),reasons:I4.optional()}),E4=d.object({id:d.string().catch(""),label:d.string().catch(""),models:d.array(d.string()).catch([]),openEnded:d.boolean().catch(!1)}),R4=d.union([d.string(),d.number(),d.boolean()]).catch(""),C4=d.object({settings:d.record(d.string(),R4).catch({}),catalog:d.array(E4).catch([])}),j4=d.object({names:d.array(d.string()).catch([])}),Ma=Object.freeze({settings:{},catalog:[]}),T4=d.object({connected:d.boolean().catch(!1),orgId:d.string().catch(""),orgName:d.string().catch(""),workspace:d.string().catch(""),agentId:d.string().catch(""),source:d.enum(["env","file","none"]).catch("none"),savedAt:d.string().catch(""),expiresAt:d.number().optional()}),rh=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),O4=d.object({deeplake:d.boolean().catch(!1),honeycomb:d.boolean().catch(!1),hivemind:d.boolean().catch(!1)}),N4=d.object({enabled:d.boolean().catch(!1),live:d.boolean().catch(!1),warm:d.boolean().catch(!1)}),D4=d.object({credentials:O4.catch({deeplake:!1,honeycomb:!1,hivemind:!1}),phase:d.enum(["fresh","installed","linking","linked","migrating","migrated"]).catch("fresh"),priorTool:d.object({hivemind:d.enum(["absent","present","migrated"]).catch("absent")}).catch({hivemind:"absent"}),firstTimeSetupComplete:d.boolean().catch(!1),authenticated:d.boolean().catch(!1),warmup:N4.catch({enabled:!1,live:!1,warm:!1}),migration:d.object({phase:d.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),startedAt:d.string().catch(""),backupPath:d.string().optional()}).optional()}),oh=Object.freeze({credentials:{deeplake:!1,honeycomb:!1,hivemind:!1},phase:"fresh",priorTool:{hivemind:"absent"},firstTimeSetupComplete:!1,authenticated:!1,warmup:{enabled:!1,live:!1,warm:!1}}),L4=d.object({user_code:d.string().catch(""),verification_uri:d.string().catch(""),verification_uri_complete:d.string().optional()}),U4=d.object({ok:d.boolean().catch(!1),phase:d.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),message:d.string().catch(""),backupPath:d.string().optional(),needsLogin:d.boolean().optional(),migrated:d.boolean().optional()}),A4=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),F4=d.object({ok:d.boolean().catch(!1),phase:d.literal("rolled_back").catch("rolled_back"),message:d.string().catch("")}),W4=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),M4=d.object({id:d.string().catch(""),name:d.string().catch("")}),Z4=d.object({orgs:d.array(M4).catch([])}),B4=d.object({id:d.string().catch(""),name:d.string().catch("")}),V4=d.object({workspaces:d.array(B4).catch([]),org:d.string().catch(""),reminted:d.boolean().catch(!1)}),H4=d.object({projectId:d.string().catch(""),name:d.string().catch(""),boundLocally:d.boolean().catch(!1),boundPaths:d.array(d.string()).catch([]),remote:d.string().catch(""),memoryCount:d.number().catch(0),sessionCount:d.number().catch(0),lastCapture:d.string().nullable().catch(null)}),J4=d.object({projects:d.array(H4).catch([]),org:d.string().catch(""),workspace:d.string().catch("")}),G4=d.object({name:d.string().catch(""),path:d.string().catch(""),isGitRepo:d.boolean().catch(!1)}),X4=d.object({path:d.string().catch(""),root:d.string().catch(""),parent:d.string().nullable().catch(null),children:d.array(G4).catch([]),error:d.string().optional()}),ih=Object.freeze({path:"",root:"",parent:null,children:[]}),v0=d.object({bound:d.boolean().catch(!1),path:d.string().catch(""),projectId:d.string().catch(""),error:d.string().optional()}),y0=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),K4=d.object({unbound:d.boolean().catch(!1),path:d.string().catch("")}),Y4=Object.freeze({unbound:!1,path:""}),Q4=d.object({switched:d.boolean().catch(!1),org:d.string().catch(""),orgName:d.string().optional(),reminted:d.boolean().catch(!1),error:d.string().optional()}),q4=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),eR=d.object({switched:d.boolean().catch(!1),workspace:d.string().catch(""),error:d.string().optional()}),tR=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),An=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function ke(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...An,...o}});if(!n.ok)return null;let i=await n.json(),a=r.safeParse(i);return a.success?a.data:null}catch{return null}}async function Lt(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...An},body:JSON.stringify(r)});if(!n.ok)return null;let i=o.safeParse(await n.json());return i.success?i.data:null}catch{return null}}function nR(e){return e==="memories"?"team":e==="memory"?"org":"session"}var h0=280;function rR(e){if(typeof e!="object"||e===null)return"";let t=e;for(let r of["file_path","path","command","pattern","query","url","prompt","description"]){let o=t[r];if(typeof o=="string"&&o.trim()!=="")return o.trim()}return""}function oR(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=l=>typeof l=="string"?l.trim():"",n=o(r.kind)||o(r.type),i=o(r.tool)||o(r.tool_name),a=o(r.text)||o(r.prompt)||o(r.message);if(n.startsWith("assistant")&&a!=="")return`assistant: ${a}`;if(n.startsWith("user")&&a!=="")return`user: ${a}`;if(i!==""||n==="tool_call"){let l=rR(r.input??r.tool_input),s=i!==""?i:"tool";return l!==""?`${s} \xB7 ${l}`:s}return a!==""?a:null}function iR(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=oR(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=h0?o:`${o.slice(0,h0-1).trimEnd()}\u2026`}var ah={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},lh={orgId:"",orgName:"",workspace:"",settings:{}},li={built:!1,nodes:[],edges:[]},cu=1500,x0=5e3;function sh(e,t){let r=e.nodes.length>t,o=e.edges.length>x0;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(l=>l.id)),a=[];for(let l of e.edges)if(!(!i.has(l.from)||!i.has(l.to))&&(a.push(l),a.length>=x0))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var ch=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),aR=Object.freeze({sessions:[],nextCursor:null});function lR(e){let t=[],r=(o,n)=>{n===void 0||n===""||t.push(`${o}=${encodeURIComponent(String(n))}`)};return r("since",e.since),r("until",e.until),r("status",e.status),r("path",e.path),r("org",e.org),r("limit",e.limit),r("cursor",e.cursor),t.length>0?`?${t.join("&")}`:""}function uu(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(){return await ke(r,o(X.kpis),ZE)??ah},async sessions(){return(await ke(r,o(X.sessions),BE))?.sessions??[]},async settings(){return await ke(r,o(X.settings),VE)??lh},async rules(){return(await ke(r,o(X.rules),KE))?.rules??[]},async skills(){return(await ke(r,o(X.skills),QE))?.skills??[]},async graph(n){return await ke(r,o(X.graph),f0,au(n))??li},async memoryGraph(n){return await ke(r,o(X.memoryGraph),f0,au(n))??li},async recall(n,i){try{let a=await r(o(X.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...An,...au(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let l=n4.safeParse(await a.json());return l.success?{memories:l.data.hits.map((c,u)=>({memoryKey:c.id!==""?c.id:`hit-${u+1}`,snippet:iR(c.text,c.kind),source:c.source,score:c.score,scope:nR(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:l.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=ME,i){return(await ke(r,o(`${X.memories}?limit=${n}`),r4,au(i)))?.memories??[]},async getMemory(n){return(await ke(r,o(`${X.memories}/${encodeURIComponent(n)}`),o4))?.memory??null},async addMemory(n){let i={content:n.content};return n.type!==void 0&&(i.type=n.type),n.agentId!==void 0&&(i.agentId=n.agentId),Lt(r,o(X.memories),i,i4)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),Lt(r,o(`${X.memories}/${encodeURIComponent(n)}/modify`),a,g0)},async forgetMemory(n,i){return Lt(r,o(`${X.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},g0)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return Lt(r,o(X.compact),i,l4)},async lifecycleConflicts(n="open"){return(await ke(r,o(`${X.lifecycleConflicts}?status=${encodeURIComponent(n)}`),c4))?.conflicts??[]},async resolveConflict(n,i){try{let a={verdict:i.verdict};return i.winnerId!==void 0&&i.winnerId!==""&&(a.winnerId=i.winnerId),i.reason!==void 0&&i.reason!==""&&(a.reason=i.reason),(await r(o(`${X.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...An},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await ke(r,o(X.lifecycleStaleRefs),d4))?.staleRefs??[]},async lifecycleHistory(){return(await ke(r,o(`${X.lifecycleHistory}?type=lifecycle`),f4))?.history??[]},async calibration(){return await ke(r,o(X.calibration),g4)??su},async logs(n=40){return(await ke(r,o(`${X.logs}?limit=${n}`),v4))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a;try{a=new i(o(X.logsStream))}catch{return()=>{}}let l=s=>{let c=sR(s.data);c!==null&&n(c)};return a.addEventListener("log",l),()=>{try{a.removeEventListener("log",l),a.close()}catch{}}},async logsHistory(n={}){let i=lR(n);return await ke(r,o(`${X.logs}/history${i}`),y4)??ch},async turnsHistory(n={}){let i=[];n.limit!==void 0&&i.push(`limit=${encodeURIComponent(String(n.limit))}`),n.cursor!==void 0&&n.cursor!==""&&i.push(`cursor=${encodeURIComponent(n.cursor)}`);let a=i.length>0?`?${i.join("&")}`:"";return await ke(r,o(`${X.sessions}${a}`),h4)??aR},async harnesses(){return(await ke(r,o(X.harnesses),_4))?.harnesses??[]},async assetsView(){return await ke(r,o(X.assets),qE)??lu},async syncAction(n,i){let a={assetType:i.assetType,name:i.name};return i.native!==void 0&&(a.native=i.native),i.honeycombId!==void 0&&i.honeycombId!==""&&(a.honeycombId=i.honeycombId),i.harness!==void 0&&i.harness!==""&&(a.harness=i.harness),Lt(r,o(`${X.syncAction}/${n}`),a,e4)},async health(){try{let n=await r(o(X.health),{headers:{accept:"application/json",...An}}),i=n.ok,a=null;try{let l=await n.json(),s=P4.safeParse(l);a=s.success?s.data.reasons??null:null}catch{a=null}return{up:i,reasons:a}}catch{return{up:!1,reasons:null}}},async pollinate(){try{let n=await r(o(X.pollinate),{method:"POST",headers:{...An}}),i=$4.safeParse(await n.json());return i.success?i.data:{triggered:!1,status:"skipped",reason:"unavailable"}}catch{return{triggered:!1,status:"skipped",reason:"unavailable"}}},async buildGraph(){let n=new AbortController,i=setTimeout(()=>n.abort(),z4);try{let a=await r(o(X.graphBuild),{method:"POST",headers:{accept:"application/json",...An},signal:n.signal});if(!a.ok)return th;let l=w4.safeParse(await a.json());return l.success?l.data:th}catch{return th}finally{clearTimeout(i)}},async vaultSettings(){return await ke(r,o(X.vaultSettings),C4)??Ma},async setSetting(n,i){try{return(await r(o(`${X.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...An},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await ke(r,o(X.secrets),j4))?.names??[]},async setSecret(n,i){try{return(await r(o(`${X.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...An},body:JSON.stringify({value:i})})).ok}catch{return!1}},async authStatus(){return await ke(r,o(X.authStatus),T4)??rh},async setupState(){return await ke(r,o(X.setupState),D4)??oh},async setupLogin(){return Lt(r,o(X.setupLogin),{},L4)},async migrateFromHivemind(){return await Lt(r,o(X.setupMigrate),{},U4)??A4},async rollbackMigration(){return await Lt(r,o(X.setupMigrateRollback),{},F4)??W4},async scopeOrgs(){return(await ke(r,o(X.scopeOrgs),Z4))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await ke(r,o(`${X.scopeWorkspaces}${i}`),V4)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await ke(r,o(`${X.scopeProjects}${i}`),J4))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await ke(r,o(`${X.fsBrowse}${i}`),X4)??ih},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await Lt(r,o(X.projectsBind),i,v0)??y0},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await Lt(r,o(X.projectsBindExisting),i,v0)??y0},async unbindProject(n){return await Lt(r,o(X.projectsUnbind),{path:n.path},K4)??Y4},async switchOrg(n){return await Lt(r,o(X.scopeOrgSwitch),{org:n},Q4)??q4},async switchWorkspace(n){return await Lt(r,o(X.scopeWorkspaceSwitch),{workspace:n},eR)??tR}}}function sR(e){if(typeof e!="string")return null;try{let t=nh.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function br(e){let t=(e.time||"").slice(11,19)||(e.time||"").slice(0,8),r=e.status>0?` ${e.status}`:"";return`${t} ${e.method} ${e.path}${r}`.trimEnd()}var k0="/api/diagnostics/sync/";function du(e){return(e.path??"").startsWith(k0)}function _0(e){let t=(e.path??"").slice(k0.length).split("/")[0]??"";switch(t){case"promote":return"published";case"pull":return"pulled";case"demote":return"tombstoned";case"enable":return"enabled";case"disable":return"disabled";default:return t}}var L=M(Q(),1);function ce({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,L.jsxs)("section",{style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden",display:"flex",flexDirection:"column",...n},children:[(0,L.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,L.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,L.jsx)("span",{style:{flex:1}}),r]}),(0,L.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function dh({children:e}){return(0,L.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var Ba={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},Va="var(--text-tertiary)",Za=5;function $0({label:e,onClick:t,disabled:r}){return(0,L.jsx)("button",{type:"button",onClick:t,disabled:r,style:{width:22,height:22,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1,cursor:r?"default":"pointer",opacity:r?.4:1},children:e})}function z0({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/Za)),[o,n]=pu.default.useState(0),i=Math.min(o,r-1),a=i*Za,l=e.slice(a,a+Za),s=t===0?0:a+1,c=Math.min(a+Za,t),u=t>Za?(0,L.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,L.jsx)($0,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,L.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[s,"\u2013",c," of ",t]}),(0,L.jsx)($0,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,L.jsx)(ce,{title:"Turns",eyebrow:`${t} captured`,right:u,children:t===0?(0,L.jsx)(dh,{children:"No turns captured yet."}):(0,L.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:l.map((p,f)=>(0,L.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"84px 1fr auto auto",alignItems:"center",gap:12,padding:"10px 6px",borderTop:f===0?"none":"1px solid var(--border-subtle)"},children:[(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,L.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,L.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,L.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,L.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,L.jsx)(ne,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function I0({rules:e}){return(0,L.jsx)(ce,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,L.jsx)(dh,{children:"No rules defined."}):(0,L.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,L.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,L.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,L.jsx)("span",{style:{flex:1}}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var ph={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function P0({skills:e}){return(0,L.jsx)(ce,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,L.jsx)(dh,{children:"No skills synced."}):(0,L.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,L.jsx)("span",{style:{flex:1}}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,L.jsx)(ne,{tone:ph[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var fu={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},mu="var(--text-tertiary)";function kr({lines:e}){return(0,L.jsx)(ce,{title:"Live log",right:(0,L.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,L.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,L.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,L.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,L.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var cn=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode"}),gu=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY"});function w0({value:e,onChange:t,options:r,ariaLabel:o}){return(0,L.jsx)("select",{"aria-label":o,value:e,onChange:n=>t(n.target.value),style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:180},children:r.map(n=>(0,L.jsx)("option",{value:n.value,children:n.label},n.value))})}function uR({on:e,onToggle:t,ariaLabel:r}){return(0,L.jsxs)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r,onClick:t,style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"0 14px",background:e?"var(--pollinate-subtle)":"var(--bg-elevated)",border:`1px solid ${e?"var(--pollinate-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:e?"var(--pollinate)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:[(0,L.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function uh({label:e,hint:t,children:r}){return(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,L.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,L.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,L.jsx)("span",{style:{flex:1}}),r]})}function vu({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[cn.activeProvider]??""),i=String(t[cn.activeModel]??""),a=t[cn.pollinatingEnabled]===!0||t[cn.pollinatingEnabled]==="true",l=e.find(b=>b.id===n),[s,c]=pu.default.useState(i);pu.default.useEffect(()=>c(i),[i]);let u=[{value:"",label:"\u2014 select \u2014"},...e.map(b=>({value:b.id,label:b.label||b.id}))],p=[{value:"",label:"\u2014 select \u2014"},...(l?.models??[]).map(b=>({value:b,label:b}))],f=b=>{o(cn.activeProvider,b)},g=b=>{b.length!==0&&o(cn.activeModel,b)},x=()=>{let b=s.trim();b.length>0&&b!==i&&o(cn.activeModel,b)};return(0,L.jsx)(ce,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,L.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,L.jsxs)(uh,{label:"Provider",hint:"inference provider",children:[(0,L.jsx)(w0,{ariaLabel:"provider",value:n,onChange:f,options:u}),n.length>0&&(0,L.jsx)(dR,{provider:n,secretNames:r})]}),(0,L.jsx)(uh,{label:"Model",hint:l?.openEnded?"free-form id":"from catalog",children:l===void 0?(0,L.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):l.openEnded?(0,L.jsx)("input",{"aria-label":"model",type:"text",value:s,placeholder:"vendor/model",onChange:b=>c(b.target.value),onBlur:x,onKeyDown:b=>{b.key==="Enter"&&x()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:200}}):(0,L.jsx)(w0,{ariaLabel:"model",value:i,onChange:g,options:p})}),(0,L.jsx)(uh,{label:"Pollinating",hint:"background consolidation",children:(0,L.jsx)(uR,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(cn.pollinatingEnabled,!a)}})})]})})}function dR({provider:e,secretNames:t}){let r=gu[e],o=r!==void 0&&t.includes(r);return(0,L.jsx)(ne,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function E0({url:e,onRetry:t}){return(0,L.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",background:"var(--severity-critical-bg)",border:"1px solid var(--severity-critical)",borderRadius:"var(--radius-lg)"},children:[(0,L.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,L.jsxs)("div",{style:{flex:1},children:[(0,L.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,L.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,L.jsx)("button",{onClick:t,style:{height:34,padding:"0 16px",background:"transparent",border:"1px solid var(--severity-critical)",color:"var(--severity-critical)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Retry"})]})}var xe=M(Ie(),1);var A0=M(Ie(),1);var Ha=M(Ie(),1);var yu=M(Ie(),1),Fn=M(Q(),1),hu=1180;function st({title:e,eyebrow:t,right:r,children:o}){return(0,Fn.jsxs)("div",{style:{maxWidth:hu,margin:"0 auto",width:"100%"},children:[(0,Fn.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,Fn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,Fn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,Fn.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,Fn.jsx)("span",{style:{flex:1}}),r]}),(0,Fn.jsx)("div",{children:o})]})}function fh(e,t){let r=yu.default.useRef(e);yu.default.useEffect(()=>{r.current=e},[e]),yu.default.useEffect(()=>{let o=!0,n=async()=>{o&&await r.current()};n();let i=setInterval(()=>{n()},t);return()=>{o=!1,clearInterval(i)}},[t])}var xu=M(Ie(),1);function R0(e){let r=(e.startsWith("#")?e.slice(1):e).trim();return r===""?"/":r}function Su(){let[e,t]=xu.default.useState(()=>typeof window>"u"?"/":R0(window.location.hash));xu.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(R0(window.location.hash));return o(),window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]);let r=xu.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("#")?o:`#${o}`;window.location.hash=n},[]);return{route:e,navigate:r}}var O=M(Q(),1),pR=5e3,fR=2500,C0=12,j0="/harnesses/";function mR(e){if(!e.startsWith(j0))return null;let t=e.slice(j0.length).split("/")[0]??"";return t===""?null:t}function mh({name:e}){return(0,O.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:Ba[e]??Va}})}function bu(e){return e.installed?e.active?"active":"idle":"not installed"}var O0={active:"verified",idle:"neutral","not installed":"neutral"};function si(e,t=Date.now()){if(e===null||e==="")return"never";let r=Date.parse(e);if(!Number.isFinite(r))return e;let o=Math.max(0,t-r),n=Math.floor(o/1e3);if(n<60)return`${n}s ago`;let i=Math.floor(n/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}var N0={active:"active",idle:"idle","not installed":"not installed"};function gR({h:e,onOpen:t}){let r=bu(e),o=r==="not installed";return(0,O.jsxs)("button",{type:"button","data-testid":`harness-card-${e.name}`,"data-harness":e.name,onClick:()=>t(e.name),style:{display:"flex",flexDirection:"column",gap:12,padding:16,textAlign:"left",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",cursor:"pointer",opacity:o?.6:1},children:[(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,O.jsx)(mh,{name:e.name}),(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,O.jsx)("span",{style:{flex:1}}),(0,O.jsx)(ne,{tone:O0[r],mono:!0,dot:!0,children:N0[r]})]}),(0,O.jsx)(Xt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,O.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",si(e.lastSeen)]})]})}function T0({on:e}){return(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function vR({harnesses:e,onOpen:t}){return(0,O.jsx)(ce,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,O.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,O.jsx)("div",{role:"row",style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,padding:"6px 6px",borderBottom:"1px solid var(--border-subtle)"},children:["harness","installed","active","last seen","turns"].map(r=>(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.map(r=>(0,O.jsxs)("div",{role:"row","data-testid":`harness-row-${r.name}`,"data-harness":r.name,onClick:()=>t(r.name),style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,alignItems:"center",padding:"9px 6px",cursor:"pointer",borderTop:"1px solid var(--border-subtle)",opacity:r.installed?1:.6},children:[(0,O.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,O.jsx)(mh,{name:r.name}),(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,O.jsx)(T0,{on:r.installed}),(0,O.jsx)(T0,{on:r.active}),(0,O.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:si(r.lastSeen)}),(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function yR({harnesses:e,onOpen:t}){return(0,O.jsx)(st,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,O.jsx)(ce,{title:"Harnesses",children:(0,O.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,O.jsx)(gR,{h:r,onOpen:t},r.name))}),(0,O.jsx)(vR,{harnesses:e,onOpen:t})]})})}function Ut({label:e,children:t}){return(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,O.jsx)("span",{style:{flex:1}}),(0,O.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right"},children:t})]})}function hR({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(ce,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,O.jsx)(Ut,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,O.jsx)(Ut,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,O.jsx)(Ut,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,O.jsx)(Ut,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,O.jsx)(Ut,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,O.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,O.jsxs)(ce,{title:"Agents",eyebrow:"cursor-agent",children:[(0,O.jsx)(Ut,{label:"agent kind",children:e.agents.kind}),(0,O.jsx)(Ut,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,O.jsx)(Ut,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,O.jsx)(Ut,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,O.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,O.jsx)(ce,{title:"MCP",eyebrow:"registered",children:(0,O.jsx)(Ut,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,O.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,O.jsx)(ce,{title:"Contracted tools",eyebrow:"registered",children:(0,O.jsx)(Ut,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,O.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,O.jsx)(ce,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,O.jsx)(Ut,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,O.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,O.jsx)(ce,{title:"Context surface",eyebrow:"login line",children:(0,O.jsx)(Ut,{label:"injection",children:"user-visible login line"})})})]})}function xR(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function SR({name:e,status:t,lines:r,onBack:o}){let n=(0,O.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"\u2039 Harnesses"});if(t===null)return(0,O.jsx)(st,{title:e,eyebrow:"harness",right:n,children:(0,O.jsx)(ce,{title:"Unknown harness",children:(0,O.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,O.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--text-secondary)"},children:e})," \u2014 it is not one of the six canonical harnesses."]})})});let i=bu(t);return(0,O.jsxs)(st,{title:e,eyebrow:"harness",right:n,children:[(0,O.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,O.jsx)(mh,{name:e}),(0,O.jsx)(ne,{tone:O0[i],mono:!0,dot:!0,children:N0[i]}),(0,O.jsx)("span",{style:{flex:1}}),(0,O.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",si(t.lastSeen)]})]}),(0,O.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,O.jsx)(Xt,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,O.jsx)(Xt,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,O.jsx)(Xt,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,O.jsx)(hR,{cap:t.capabilities}),(0,O.jsx)(kr,{lines:r})]})}function D0({wire:e}){let{route:t,navigate:r}=Su(),o=mR(t),[n,i]=Ha.default.useState([]),[a,l]=Ha.default.useState([]);fh(async()=>i(await e.harnesses()),pR),fh(async()=>{if(o===null){l([]);return}let u=await e.logs(C0*4),p=xR(u,o);l(p.slice(-C0).reverse().map(br))},fR);let s=Ha.default.useCallback(u=>r(`/harnesses/${u}`),[r]),c=Ha.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let u=n.find(p=>p.name===o)??null;return(0,O.jsx)(SR,{name:o,status:u,lines:a,onBack:c})}return(0,O.jsx)(yR,{harnesses:n,onOpen:s})}function L0(e){return Array.isArray(e)?e.map(t=>t!==null&&typeof t=="object"&&"name"in t?String(t.name):"").filter(t=>t!=="").map(t=>({route:`/harnesses/${t}`,label:t})):[]}var Fe=M(Q(),1),U0={active:"verified",idle:"neutral"};function bR({h:e}){let r=bu(e)==="active"?U0.active:U0.idle;return(0,Fe.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${si(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,Fe.jsxs)(ne,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,Fe.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:Ba[e.name]??Va}}),e.name]})})}function kR({h:e}){return(0,Fe.jsxs)("div",{"data-testid":`harness-tile-${e.name}`,"data-harness":e.name,style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,Fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,Fe.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:Ba[e.name]??Va}}),(0,Fe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,Fe.jsx)(Xt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,Fe.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",si(e.lastSeen)]})]})}function F0({harnesses:e,streamLines:t}){let r=A0.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,Fe.jsx)(ce,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,Fe.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,Fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,Fe.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,Fe.jsx)(bR,{h:o},o.name))}),(0,Fe.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,Fe.jsx)(kR,{h:o},o.name))})]})}),(0,Fe.jsx)(kr,{lines:t})]})}var te=M(Q(),1),_R=2500,$R=5e3,wR=5e3,ku=8,zR=5;function IR(){return new Date().toTimeString().slice(0,8)}function PR({query:e,setQuery:t,onRecall:r,busy:o}){return(0,te.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,te.jsx)("div",{style:{flex:1},children:(0,te.jsx)(an,{mono:!0,size:"lg",value:e,placeholder:"recall\u2026 e.g. how do we deploy",onChange:n=>t(n.target.value),onKeyDown:n=>{n.key==="Enter"&&r()}})}),(0,te.jsx)(U,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function ER(){return(0,te.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,te.jsx)(ne,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var RR=[{key:"storage",label:"storage",degraded:e=>e.storage==="unreachable"},{key:"embeddings",label:"semantic",degraded:e=>e.embeddings==="off"},{key:"schema",label:"schema",degraded:e=>e.schema==="missing_table"}];function CR({reasons:e}){return e===null?null:(0,te.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,te.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),RR.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,te.jsxs)(ne,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function W0({wire:e,pollinating:t=!1}){let[r,o]=xe.default.useState(null),[n,i]=xe.default.useState(ah),[a,l]=xe.default.useState([]),[s,c]=xe.default.useState([]),[u,p]=xe.default.useState([]),[f,g]=xe.default.useState(Ma),[x,b]=xe.default.useState([]),[w,v]=xe.default.useState([]),[m,y]=xe.default.useState("how do we deploy"),[S,_]=xe.default.useState([]),[E,T]=xe.default.useState(!1),[A,J]=xe.default.useState(!1),[W,Me]=xe.default.useState(0),[xt,Mn]=xe.default.useState(!1),[Ge,Zn]=xe.default.useState([]),[_n,wr]=xe.default.useState([]),pn=xe.default.useCallback(Ee=>{wr(ze=>[`${IR()} ${Ee}`,...ze].slice(0,ku))},[]),oe=xe.default.useCallback(async()=>{let[Ee,ze,Pt,K,ge,Ze]=await Promise.all([e.kpis(),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);i(Ee),l(ze),c(Pt),p(K),g(ge),b(Ze)},[e]),ae=xe.default.useCallback(async(Ee,ze)=>{let Pt=await e.setSetting(Ee,ze),[K,ge]=await Promise.all([e.vaultSettings(),e.secretNames()]);return g(K),b(ge),Pt},[e]);xe.default.useEffect(()=>{oe()},[oe]),xe.default.useEffect(()=>{let Ee=!0,ze=async()=>{let K=await e.logs(ku);Ee&&Zn(K.slice(-ku).reverse().map(br))};ze();let Pt=setInterval(()=>{ze()},_R);return()=>{Ee=!1,clearInterval(Pt)}},[e]),xe.default.useEffect(()=>{let Ee=!0,ze=async()=>{let{reasons:K}=await e.health();Ee&&o(K)};ze();let Pt=setInterval(()=>{ze()},$R);return()=>{Ee=!1,clearInterval(Pt)}},[e]),xe.default.useEffect(()=>{let Ee=!0,ze=async()=>{let K=await e.harnesses();Ee&&v(K)};ze();let Pt=setInterval(()=>{ze()},wR);return()=>{Ee=!1,clearInterval(Pt)}},[e]);let we=xe.default.useCallback(async()=>{let Ee=m.trim();if(Ee===""||E)return;T(!0);let{memories:ze,degraded:Pt}=await e.recall(Ee);_(ze),J(!0),Mn(Pt),Me(ge=>ge+1);let K=ze.length>0?` \xB7 ${ze[0]?.score.toFixed(2)} top`:"";pn(`recall "${Ee}" \u2192 ${ze.length} hits${K}`),T(!1)},[m,E,e,pn]),Wt=xe.default.useMemo(()=>[..._n,...Ge].slice(0,ku),[_n,Ge]),mi=xe.default.useMemo(()=>Ge.slice(0,zR),[Ge]);return(0,te.jsxs)(te.Fragment,{children:[(0,te.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,te.jsx)(CR,{reasons:r}),(0,te.jsxs)("div",{className:"kpirow",children:[(0,te.jsx)(Xt,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,te.jsx)(Xt,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,te.jsx)(Xt,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,te.jsx)(Xt,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,te.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,te.jsx)(PR,{query:m,setQuery:y,onRecall:we,busy:E}),A&&xt&&(0,te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,te.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,te.jsx)(ER,{})]}),(0,te.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?A&&(0,te.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((Ee,ze)=>(0,te.jsx)("div",{className:"mem-enter",style:{animationDelay:`${ze*55}ms`},children:(0,te.jsx)(bs,{...Ee,pollinating:t&&ze===1})},Ee.memoryKey))},W)]}),(0,te.jsxs)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:[(0,te.jsx)("div",{style:{marginBottom:16},children:(0,te.jsx)(F0,{harnesses:w,streamLines:mi})}),(0,te.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,te.jsxs)("div",{className:"col",children:[(0,te.jsx)(z0,{sessions:a}),(0,te.jsx)(I0,{rules:s})]}),(0,te.jsxs)("div",{className:"col",children:[(0,te.jsx)(vu,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:ae}),(0,te.jsx)(P0,{skills:u})]})]}),(0,te.jsx)(kr,{lines:Wt})]})]})}var Te=M(Ie(),1);var Le=M(Ie(),1),He=M(Q(),1),yh=Object.freeze({org:"local",workspace:"default"}),M0="honeycomb.dashboard.scope",Z0=Le.default.createContext({scope:yh,setScope:()=>{}});function Wn(){return Le.default.useContext(Z0)}var jR=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),B0=Le.default.createContext(jR);function hh(){return Le.default.useContext(B0)}function TR(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(M0);if(e===null||e==="")return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let r=t,o=typeof r.org=="string"?r.org:"",n=typeof r.workspace=="string"?r.workspace:"";if(o===""||n==="")return null;let i=typeof r.project=="string"&&r.project!==""?r.project:void 0;return i!==void 0?{org:o,workspace:n,project:i}:{org:o,workspace:n}}catch{return null}}function OR(e){try{if(typeof localStorage>"u")return;localStorage.setItem(M0,JSON.stringify(e))}catch{}}function V0({wire:e,children:t}){let r=Le.default.useMemo(()=>TR(),[]),[o,n]=Le.default.useState(r??yh),[i,a]=Le.default.useState([]),[l,s]=Le.default.useState([]),[c,u]=Le.default.useState([]),[p,f]=Le.default.useState(!1),[g,x]=Le.default.useState(!1),[b,w]=Le.default.useState(null),v=Le.default.useCallback(J=>{n(J),OR(J)},[]),m=Le.default.useCallback(J=>v(J),[v]),y=Le.default.useCallback(async()=>{let J=await e.scopeProjects();u(J),f(!0)},[e]);Le.default.useEffect(()=>{let J=!0;return(async()=>{let W=await e.scopeOrgs();J&&a(W)})(),(async()=>{let W=await e.scopeWorkspaces();J&&s(W.workspaces)})(),y(),()=>{J=!1}},[e,y]);let S=Le.default.useCallback(J=>{x(!0),w({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let W=await e.switchOrg(J);if(!W.switched){w({kind:"error",message:W.error!==void 0&&W.error!==""?`could not switch: ${W.error}`:"could not switch org"});return}v({org:W.org,workspace:yh.workspace,project:void 0});let Me=await e.scopeWorkspaces(W.org);s(Me.workspaces),u([]),f(!0),w({kind:"persisted",message:W.reminted?`switched to ${W.orgName??W.org} \xB7 re-minted`:`switched to ${W.orgName??W.org}`})}finally{x(!1)}})()},[e,v]),_=Le.default.useCallback(J=>{w({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let W=await e.switchWorkspace(J);if(!W.switched){w({kind:"error",message:W.error!==void 0&&W.error!==""?`could not switch: ${W.error}`:"could not switch workspace"});return}v({org:o.org,workspace:W.workspace,project:void 0}),await y(),w({kind:"persisted",message:`switched to ${W.workspace}`})})()},[e,v,o.org,y]),E=Le.default.useCallback(J=>{v({org:o.org,workspace:o.workspace,...J!==void 0?{project:J}:{}}),w({kind:"view",message:J!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),T=Le.default.useMemo(()=>({scope:o,setScope:m}),[o,m]),A=Le.default.useMemo(()=>({orgs:i,workspaces:l,projects:c,projectsHydrated:p,loadingWorkspaces:g,switchFeedback:b,selectOrg:S,selectWorkspace:_,selectProject:E}),[i,l,c,p,g,b,S,_,E]);return(0,He.jsx)(Z0.Provider,{value:T,children:(0,He.jsx)(B0.Provider,{value:A,children:t})})}var NR={width:"100%",height:30,padding:"0 8px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"};function gh({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,He.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,He.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,He.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...NR,opacity:o?.6:1},children:i})]})}var DR="__unsorted__",vh="";function H0({collapsed:e}){let{scope:t}=Wn(),r=hh();return e?null:(0,He.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,He.jsxs)(gh,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,He.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,He.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,He.jsxs)(gh,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,He.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,He.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,He.jsxs)(gh,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??vh,onChange:o=>r.selectProject(o===vh?void 0:o),children:[(0,He.jsx)("option",{value:vh,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,He.jsx)("option",{value:o.projectId,children:o.projectId===DR?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,He.jsx)("span",{"data-testid":"project-view-hint",style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",lineHeight:1.4},children:"Filters what you VIEW. To set where Honeycomb captures, bind a folder in Projects."}),r.switchFeedback!==null&&(0,He.jsxs)("span",{"data-testid":"switch-feedback","data-kind":r.switchFeedback.kind,style:{fontFamily:"var(--font-mono)",fontSize:10,color:r.switchFeedback.kind==="error"?"var(--severity-critical)":r.switchFeedback.kind==="persisted"?"var(--verified)":"var(--text-tertiary)"},children:[r.switchFeedback.pending===!0?"\u27F3 ":r.switchFeedback.kind==="persisted"?"\u2713 ":"",r.switchFeedback.message]})]})}var xh=M(Ie(),1);var At=M(Ie(),1);var re=M(Q(),1),LR="honeycomb project bind";function J0(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function UR({child:e,onDescend:t}){return(0,re.jsxs)("button",{type:"button","data-testid":"browse-row","data-path":e.path,onClick:()=>t(e.path),style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,re.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none",color:"var(--text-tertiary)"},children:(0,re.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),(0,re.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:13,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.name}),e.isGitRepo&&(0,re.jsx)(ne,{tone:"honey",mono:!0,children:"git"})]})}function _u({wire:e,onBound:t,onCancel:r}){let[o,n]=At.default.useState(ih),[i,a]=At.default.useState(!1),[l,s]=At.default.useState(null),[c,u]=At.default.useState(""),[p,f]=At.default.useState(!1),[g,x]=At.default.useState(""),b=At.default.useRef(!1),w=At.default.useCallback(async E=>{let T=await e.fsBrowse(E);n(T),a(!0)},[e]);At.default.useEffect(()=>{w(void 0)},[w]);let v=i&&o.path===""&&o.children.length===0,m=o.error!==void 0&&o.error!=="",y=At.default.useCallback(()=>{o.path!==""&&(s({path:o.path,isGitRepo:!1}),u(J0(o.path)),x(""))},[o.path]),S=At.default.useCallback(E=>{s({path:E.path,isGitRepo:E.isGitRepo}),u(J0(E.path)),x("")},[]),_=At.default.useCallback(async()=>{if(l===null||b.current)return;b.current=!0,f(!0),x("");let E=await e.bindProject({path:l.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),b.current=!1,E.bound){t(E);return}x(E.error!==void 0&&E.error!==""?E.error:"Could not bind that folder.")},[l,c,e,t]);return(0,re.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,re.jsxs)("div",{"data-testid":"picker-unavailable",style:{display:"flex",flexDirection:"column",gap:8,padding:"16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,re.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,re.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,re.jsx)("code",{style:{color:"var(--honey)"},children:LR})]}),r!==void 0&&(0,re.jsx)("div",{children:(0,re.jsx)(U,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,re.jsx)("span",{"data-testid":"picker-path",style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.path!==""?o.path:"loading\u2026"}),(0,re.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>{w(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,re.jsx)(U,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,re.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,re.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:m?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(E=>(0,re.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,re.jsx)("div",{style:{flex:1,minWidth:0},children:(0,re.jsx)(UR,{child:E,onDescend:T=>{w(T)}})}),(0,re.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>S(E),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},E.path)):(0,re.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),l!==null&&(0,re.jsxs)("div",{"data-testid":"picker-confirm",style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:l.path}),l.isGitRepo&&(0,re.jsx)(ne,{tone:"honey",mono:!0,children:"git"})]}),(0,re.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,re.jsx)(an,{mono:!0,value:c,placeholder:"project name",onChange:E=>u(E.target.value),"data-testid":"picker-name"})]}),(0,re.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,re.jsx)(U,{variant:"primary",onClick:()=>{_()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,re.jsx)(U,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),g!==""&&(0,re.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})]})})}var Ft=M(Q(),1);function ci({surface:e}){return(0,Ft.jsxs)("div",{"data-testid":"needs-project-selection",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:320,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Ft.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,Ft.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:["Pick a project in the scope switcher (top of the sidebar) to view its ",e,"."]})]})}function G0({wire:e,navigate:t}){let[r,o]=xh.default.useState(!1),n=xh.default.useCallback(i=>{t(Sh)},[t]);return(0,Ft.jsxs)("div",{"data-testid":"first-run-bind",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Ft.jsx)("img",{src:"assets/honeycomb-memory-cluster.svg",width:48,height:48,alt:""}),(0,Ft.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,Ft.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,Ft.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)",lineHeight:1.5},children:"Pick a folder to start \u2014 point Honeycomb at the repo or folder you want it to remember, and it begins capturing there."})]}),r?(0,Ft.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,Ft.jsx)(_u,{wire:e,onBound:n,onCancel:()=>o(!1)})}):(0,Ft.jsx)(U,{variant:"primary",size:"lg",onClick:()=>o(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var F=M(Q(),1),AR=8e3,ui={width:1600,height:1e3},kh=.25,_h=4,$u=1.15,bh={scale:1,tx:0,ty:0};function $h(e,t,r){return Math.min(r,Math.max(t,e))}function FR(e){let t=ui.width/e.scale,r=ui.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function WR(e){let t=new Set,r=[];for(let o of e.nodes)t.has(o.kind)||(t.add(o.kind),r.push(o.kind));return r}function MR(e,t){if(t.size===0)return e;let r=e.nodes.filter(i=>!t.has(i.kind)),o=new Set(r.map(i=>i.id)),n=e.edges.filter(i=>o.has(i.from)&&o.has(i.to));return{built:e.built,nodes:r,edges:n}}function ZR(e,t){let r=t.trim().toLowerCase();return r===""?null:e.nodes.find(n=>n.id.toLowerCase().includes(r)||n.label.toLowerCase().includes(r))?.id??null}function BR(e,t){let r=ui.width/t,o=ui.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function VR({kind:e,count:t,hidden:r,onToggle:o}){let n=fu[e]??mu;return(0,F.jsxs)("button",{type:"button",role:"switch","aria-checked":!r,"data-testid":`kind-toggle-${e}`,"data-hidden":r,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:7,height:28,padding:"0 11px",background:r?"var(--bg-elevated)":"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-full)",color:r?"var(--text-tertiary)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",opacity:r?.55:1},children:[(0,F.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,F.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function X0({kind:e,labels:t}){return(0,F.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[e||"\u2014"," \xB7 ",t.length]}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function HR({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=mk(e.id,t.edges),i=s=>t.nodes.find(c=>c.id===s)?.label||s,a=s=>s.map(i),l=o.length>0||n.length>0;return(0,F.jsxs)("aside",{"data-testid":"graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,F.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:fu[e.kind]??mu,flex:"none"}}),(0,F.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsx)(ne,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,F.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!l&&(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,F.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,F.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(s=>(0,F.jsx)(X0,{kind:s.kind,labels:a(s.ids)},`out-${s.kind}`))]}),n.length>0&&(0,F.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,F.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(s=>(0,F.jsx)(X0,{kind:s.kind,labels:a(s.ids)},`in-${s.kind}`))]}),(0,F.jsx)("div",{"data-testid":"calls-caveat",style:{marginTop:"auto",padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:(0,F.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",lineHeight:"16px"},children:["Cross-file ",(0,F.jsx)("code",{style:{color:"var(--text-secondary)"},children:"calls"})," resolve only for relative named/namespace imports \u2014 an empty incoming list is not proof of dead code."]})}),(0,F.jsx)("button",{type:"button",onClick:r,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start"},children:"clear selection"})]})}function JR({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=Te.default.useMemo(()=>ks(e.nodes,e.edges,ui),[e]),l=Te.default.useRef(null),s=f=>{l.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let g=l.current;if(g===null)return;let x=(f.clientX-g.x)/r.scale,b=(f.clientY-g.y)/r.scale;i({scale:r.scale,tx:g.tx-x,ty:g.ty-b})},u=()=>{l.current=null},p=f=>{let g=f.deltaY<0?$u:1/$u,x=$h(r.scale*g,kh,_h);i({scale:x,tx:r.tx,ty:r.ty})};return(0,F.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:FR(r),onPointerDown:s,onPointerMove:c,onPointerUp:u,onPointerLeave:u,onWheel:p,onClick:n,style:{width:"100%",height:"100%",display:"block",cursor:"grab",touchAction:"none",background:"var(--bg-canvas)"},children:[e.edges.map((f,g)=>{let x=a.get(f.from),b=a.get(f.to);return x===void 0||b===void 0?null:(0,F.jsx)("line",{x1:x.x,y1:x.y,x2:b.x,y2:b.y,stroke:"var(--border-strong)",strokeWidth:1.5},g)}),e.nodes.map(f=>{let g=a.get(f.id);if(g===void 0)return null;let x=f.id===t;return(0,F.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:b=>{b.stopPropagation(),o(f.id)},children:[x&&(0,F.jsx)("circle",{cx:g.x,cy:g.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,F.jsx)("circle",{cx:g.x,cy:g.y,r:x?12:9,fill:fu[f.kind]??mu}),(0,F.jsx)("text",{x:g.x+15,y:g.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function GR({source:e,wire:t,onBuilt:r}){return(0,F.jsx)("div",{"data-testid":"graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:e==="codebase"?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No graph built for this workspace."}),(0,F.jsx)(Yp,{wire:t,onBuilt:r})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,F.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"The knowledge graph is populated automatically as memories and entities accrue."})]})})}function K0({label:e,ariaLabel:t,onClick:r}){return(0,F.jsx)("button",{type:"button","aria-label":t,onClick:r,style:{width:30,height:30,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:14,lineHeight:1,cursor:"pointer"},children:e})}function XR({source:e,onPick:t}){let r=(o,n)=>{let i=e===o;return(0,F.jsx)("button",{type:"button",role:"tab","aria-selected":i,"data-testid":`source-${o}`,onClick:()=>t(o),style:{height:30,padding:"0 14px",background:i?"var(--honey-subtle)":"transparent",border:`1px solid ${i?"var(--honey-border)":"var(--border-default)"}`,color:i?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:n})};return(0,F.jsxs)("div",{role:"tablist","aria-label":"graph source",style:{display:"inline-flex",gap:0,borderRadius:"var(--radius-md)",overflow:"hidden"},children:[r("codebase","Codebase"),r("memory","Memory")]})}function Y0({wire:e}){let{scope:t}=Wn(),r=t.project,[o,n]=Te.default.useState("codebase"),[i,a]=Te.default.useState(li),[l,s]=Te.default.useState(null),[c,u]=Te.default.useState(new Set),[p,f]=Te.default.useState(""),[g,x]=Te.default.useState(bh),[b,w]=Te.default.useState(0);Te.default.useEffect(()=>{if(r===void 0){a(li);return}let oe=!0,ae=async()=>{let Wt=o==="memory"?await e.memoryGraph(r):await e.graph(r);oe&&a(Wt)};ae();let we=setInterval(()=>{ae()},AR);return()=>{oe=!1,clearInterval(we)}},[e,o,b,r]);let v=Te.default.useCallback(()=>w(oe=>oe+1),[]),m=Te.default.useCallback(oe=>{n(oe),a(li),s(null),u(new Set),f(""),x(bh)},[]),y=Te.default.useMemo(()=>WR(i),[i]),S=Te.default.useMemo(()=>MR(i,c),[i,c]),{graph:_,capped:E}=Te.default.useMemo(()=>sh(S,cu),[S]),T=i.meta?.truncated??!1,A=T||E,J=l!==null?_.nodes.find(oe=>oe.id===l)??null:null,W=Te.default.useCallback(oe=>{u(ae=>{let we=new Set(ae);return we.has(oe)?we.delete(oe):we.add(oe),we})},[]),Me=Te.default.useCallback(oe=>{f(oe);let ae=ZR(_,oe);if(ae===null)return;s(ae);let Wt=ks(_.nodes,_.edges,ui).get(ae);Wt!==void 0&&x(BR(Wt,Math.max(g.scale,1.4)))},[_,g.scale]),xt=Te.default.useCallback(()=>x(bh),[]),Mn=Te.default.useCallback(()=>x(oe=>({...oe,scale:$h(oe.scale*$u,kh,_h)})),[]),Ge=Te.default.useCallback(()=>x(oe=>({...oe,scale:$h(oe.scale/$u,kh,_h)})),[]),Zn=Te.default.useCallback(oe=>s(ae=>ae===oe?null:oe),[]),_n=Te.default.useCallback(()=>s(null),[]),wr=`${o} \xB7 ${_.nodes.length} nodes \xB7 ${_.edges.length} edges`;return(0,F.jsx)(st,{title:"Graph",eyebrow:r===void 0?"graph":wr,right:(0,F.jsx)(XR,{source:o,onPick:m}),children:r===void 0?(0,F.jsx)(ci,{surface:"codebase & memory graph"}):i.built?(0,F.jsxs)(F.Fragment,{children:[A&&(0,F.jsxs)("div",{"data-testid":"graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,marginBottom:14,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,F.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),T?`Showing the ${(i.meta?.shownNodes??i.nodes.length).toLocaleString()} most-connected of ${(i.meta?.totalNodes??i.nodes.length).toLocaleString()} nodes. Use search and kind filters to focus.`:`Rendering is capped at ${cu.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,F.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:p,placeholder:"search id or label\u2026",onChange:oe=>Me(oe.target.value),style:{height:30,padding:"0 12px",minWidth:220,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,F.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:y.map(oe=>{let ae=i.nodes.filter(we=>we.kind===oe).length;return(0,F.jsx)(VR,{kind:oe,count:ae,hidden:c.has(oe),onToggle:()=>W(oe)},oe)})}),(0,F.jsx)("span",{style:{flex:1}}),(0,F.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,F.jsx)(K0,{label:"\u2212",ariaLabel:"zoom out",onClick:Ge}),(0,F.jsx)(K0,{label:"+",ariaLabel:"zoom in",onClick:Mn}),(0,F.jsx)("button",{type:"button","data-testid":"fit-view",onClick:xt,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,F.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,F.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,F.jsx)(JR,{graph:_,selected:J?.id??null,transform:g,onSelect:Zn,onClear:_n,onPanZoom:x})}),J!==null&&(0,F.jsx)(HR,{node:J,graph:i,onClear:_n})]})]}):(0,F.jsx)(GR,{source:o,wire:e,onBuilt:v})})}var Oe=M(Ie(),1);var N=M(Q(),1),Q0=30,KR=50,q0=50;function YR(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function QR(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function nw({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,N.jsxs)("div",{"data-testid":"log-row",style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:QR(e.time)}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:e.path,children:e.path}),(0,N.jsx)(ne,{tone:YR(r),mono:!0,children:r>0?r:"\u2014"}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:48},children:typeof n=="number"?`${Math.round(n)}ms`:""}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function qR(){let e=(t,r="left")=>(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,N.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"4px 6px 8px"},children:[e("time"),e("method"),e("path"),e("status"),e("dur","right"),e("org","right")]})}var di={since:"",until:"",status:"",path:"",org:""};function ew(e){let t={limit:KR};return e.since!==""&&(t.since=e.since),e.until!==""&&(t.until=e.until),e.status!==""&&(t.status=e.status),e.path!==""&&(t.path=e.path),e.org!==""&&(t.org=e.org),t}function Ja({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,N.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,N.jsx)(an,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function eC({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,N.jsx)(ce,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,N.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,N.jsx)(Ja,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,N.jsx)(Ja,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,N.jsx)(Ja,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,N.jsx)(Ja,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,N.jsx)(Ja,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,N.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,N.jsx)(U,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,N.jsx)(U,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function tC(e,t){let r=[t,...e];return r.length>Q0?r.slice(0,Q0):r}function nC({records:e,open:t,onToggle:r}){return(0,N.jsx)(ce,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,N.jsx)("button",{type:"button","data-testid":"live-toggle","aria-expanded":t,onClick:r,style:{background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:11,padding:"4px 10px",cursor:"pointer"},children:t?"collapse":"expand"}),children:t?e.length===0?(0,N.jsx)("div",{"data-testid":"live-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"waiting for daemon activity\u2026"}):(0,N.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,N.jsx)(nw,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,N.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function rC({page:e,loading:t,error:r,onLoadMore:o}){return(0,N.jsx)(ce,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,N.jsx)("div",{"data-testid":"history-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load log history."}):t&&e.records.length===0?(0,N.jsx)("div",{"data-testid":"history-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.persistent?e.records.length===0?(0,N.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(qR,{}),(0,N.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,N.jsx)(nw,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,N.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,N.jsx)(U,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,N.jsx)("div",{"data-testid":"history-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Durable log history is unavailable on this daemon. Live tail above still streams current activity."})})}function Ga({label:e,children:t}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function oC({turn:e,onBack:t}){return(0,N.jsx)(ce,{title:"Turn detail",eyebrow:e.sessionId,right:(0,N.jsx)(U,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,N.jsxs)("div",{"data-testid":"turn-detail",children:[(0,N.jsx)(Ga,{label:"turn id",children:e.sessionId||"\u2014"}),(0,N.jsx)(Ga,{label:"project",children:e.project||"\u2014"}),(0,N.jsx)(Ga,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,N.jsx)(Ga,{label:"event count",children:e.eventCount}),(0,N.jsx)(Ga,{label:"status",children:(0,N.jsx)(ne,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function iC({turn:e,onOpen:t}){return(0,N.jsxs)("button",{type:"button","data-testid":`turn-row-${e.sessionId}`,onClick:()=>t(e),style:{display:"grid",gridTemplateColumns:"96px 1fr auto auto",alignItems:"center",gap:12,width:"100%",padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",background:"transparent",border:"none",borderTopColor:"var(--border-subtle)",cursor:"pointer",textAlign:"left"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,N.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,N.jsx)(ne,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function aC({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,N.jsx)(ce,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,N.jsx)("div",{"data-testid":"turns-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load turns."}):t&&e.length===0?(0,N.jsx)("div",{"data-testid":"turns-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.length===0?(0,N.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{"data-testid":"turns-list",children:e.map((a,l)=>(0,N.jsx)(iC,{turn:a,onOpen:n},a.sessionId||l))}),o&&(0,N.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,N.jsx)(U,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function tw({label:e,active:t,onClick:r,testid:o}){return(0,N.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:e})}function rw({wire:e,daemonUp:t}){let[r,o]=Oe.default.useState("requests"),[n,i]=Oe.default.useState(ch),[a,l]=Oe.default.useState(di),[s,c]=Oe.default.useState(di),[u,p]=Oe.default.useState(!1),[f,g]=Oe.default.useState(!1),[x,b]=Oe.default.useState([]),[w,v]=Oe.default.useState(!0),[m,y]=Oe.default.useState([]),[S,_]=Oe.default.useState(null),[E,T]=Oe.default.useState(!1),[A,J]=Oe.default.useState(!1),[W,Me]=Oe.default.useState(null),xt=Oe.default.useCallback(async ae=>{p(!0),g(!1);try{let we=await e.logsHistory(ew(ae));i(we)}catch{g(!0)}finally{p(!1)}},[e]),Mn=Oe.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let ae=await e.logsHistory({...ew(a),cursor:n.nextCursor});i(we=>({records:[...we.records,...ae.records],count:we.count+ae.count,nextCursor:ae.nextCursor,persistent:ae.persistent}))}catch{g(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),Ge=Oe.default.useCallback(async()=>{T(!0),J(!1);try{let ae=await e.turnsHistory({limit:q0});y(ae.sessions),_(ae.nextCursor)}catch{J(!0)}finally{T(!1)}},[e]),Zn=Oe.default.useCallback(async()=>{if(S!==null){T(!0);try{let ae=await e.turnsHistory({limit:q0,cursor:S});y(we=>[...we,...ae.sessions]),_(ae.nextCursor)}catch{J(!0)}finally{T(!1)}}},[e,S]);Oe.default.useEffect(()=>{xt(di),Ge()},[xt,Ge]),Oe.default.useEffect(()=>{let ae=!0,we=e.logsStream(Wt=>{ae&&b(mi=>tC(mi,Wt))});return()=>{ae=!1,we()}},[e]);let _n=Oe.default.useCallback(()=>{l(s),xt(s)},[s,xt]),wr=Oe.default.useCallback(()=>{c(di),l(di),xt(di)},[xt]),pn=Oe.default.useCallback((ae,we)=>{c(Wt=>({...Wt,[ae]:we}))},[]);return(0,N.jsx)(st,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,N.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,N.jsx)(tw,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,N.jsx)(tw,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,N.jsx)(nC,{records:x,open:w,onToggle:()=>v(ae=>!ae)}),(0,N.jsx)(eC,{draft:s,onChangeField:pn,onApply:_n,onClear:wr}),(0,N.jsx)(rC,{page:n,loading:u,error:f,onLoadMore:()=>{Mn()}})]}):W!==null?(0,N.jsx)(oC,{turn:W,onBack:()=>Me(null)}):(0,N.jsx)(aC,{turns:m,loading:E,error:A,hasMore:S!==null,onOpen:ae=>Me(ae),onLoadMore:()=>{Zn()}})})}var q=M(Ie(),1);var un=M(Ie(),1);var H=M(Q(),1),lC=6,sC=150;function cC(e){return new Promise(t=>setTimeout(t,e))}async function wu(e,t,r,...o){let n=e[t];if(typeof n!="function")return r;try{return await n.apply(e,o)??r}catch{return r}}var uC={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function _r({label:e,value:t}){return(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function dC(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function pC(e){let t=(r,o)=>r===void 0||!Number.isFinite(r)?o:Math.min(1,Math.max(0,r));return t(e.freshness,1)*t(e.calibrationConfidence,1)*(1-t(e.staleness,0))*t(e.kappa,1)}function fC(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function mC({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,H.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,H.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,H.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,H.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var gC=["review","supersede","keep-both"];function vC({conflict:e,onResolve:t}){let[r,o]=un.default.useState("review"),[n,i]=un.default.useState(e.memoryAId),[a,l]=un.default.useState(!1),s=async()=>{a||(l(!0),await t(e.id,r,r==="supersede"?n:""),l(!1))};return(0,H.jsxs)("div",{"data-testid":"conflict-row","data-conflict-id":e.id,style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,H.jsx)(ne,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,H.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,H.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,H.jsx)("select",{"aria-label":"verdict",value:r,onChange:c=>o(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:gC.map(c=>(0,H.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,H.jsxs)("select",{"aria-label":"winner",value:n,onChange:c=>i(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12,maxWidth:180},children:[(0,H.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,H.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,H.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>{s()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function ow({wire:e}){let[t,r]=un.default.useState([]),[o,n]=un.default.useState([]),[i,a]=un.default.useState(su),[l,s]=un.default.useState(!1),c=un.default.useCallback(async()=>{let w=await wu(e,"lifecycleConflicts",[],"open");return r(w),w},[e]);un.default.useEffect(()=>{let w=!0;return(async()=>{let[v,m,y]=await Promise.all([wu(e,"lifecycleConflicts",[],"open"),wu(e,"lifecycleStaleRefs",[]),wu(e,"calibration",su)]);w&&(r(v),n(m),a(y),s(!0))})(),()=>{w=!1}},[e]);let u=un.default.useCallback(async(w,v,m)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(w,{verdict:v,...m!==""?{winnerId:m}:{}}):!1)){await c();return}for(let S=0;S<lC;S+=1){if(!(await c()).some(E=>E.id===w))return;await cC(sC)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,g=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,b=pC({freshness:p,calibrationConfidence:g,staleness:f,kappa:x});return(0,H.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...uC,display:"flex",flexDirection:"column",gap:16},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,H.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,H.jsx)(ne,{tone:dC(b),mono:!0,dot:!0,children:(0,H.jsxs)("span",{"data-testid":"health-badge",children:["H ",b.toFixed(2)]})})]}),(0,H.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,H.jsx)(_r,{label:"freshness",value:fC(p)}),(0,H.jsx)(_r,{label:"calibrated confidence",value:i.identity?"\u2014":g.toFixed(2)}),(0,H.jsx)(_r,{label:"open conflicts",value:String(t.length)}),(0,H.jsx)(_r,{label:"stale refs",value:String(o.length)}),(0,H.jsx)(_r,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,H.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),l?t.length===0?(0,H.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(w=>(0,H.jsx)(vC,{conflict:w,onResolve:u},w.id)):(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,H.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),l?o.length===0?(0,H.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(w=>(0,H.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,H.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:w.memoryId}),(0,H.jsx)("span",{style:{color:"var(--text-tertiary)"},children:w.staleRefs.length>0?w.staleRefs.join(", "):"(refs unrecorded)"})]},w.memoryId)):(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,H.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,H.jsx)("span",{"data-testid":"calibration-dormant",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"calibration dormant \u2014 confidence weighting (c) stays 0 until the curve is fit."}):(0,H.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,H.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,H.jsx)(_r,{label:"ECE",value:i.ece.toFixed(3)}),(0,H.jsx)(_r,{label:"Brier",value:i.brier.toFixed(3)}),(0,H.jsx)(_r,{label:"samples",value:String(i.nSamples)})]}),(0,H.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(w=>(0,H.jsx)(mC,{lower:w.lower,upper:w.upper,accuracy:w.accuracy},`${w.lower}-${w.upper}`))})]})]})]})}var iw=["fact","convention","preference","decision","gotcha","reference"],zu="fact",wh=Object.freeze({fact:"A stable, verifiable truth about the system, codebase, or domain.",convention:"How things are done here: idioms, standards, patterns to follow by default.",preference:"The user/team's stated way of working; corrections and do/don't guidance.",decision:"An architectural or design choice and its rationale; don't relitigate it.",gotcha:"A non-obvious trap, failure mode, or constraint to watch out for.",reference:"A pointer to an external resource (URL, dashboard, ticket, doc)."});var $=M(Q(),1),aw=50,yC=2500,hC=12,xC=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],SC=5,bC=150;function kC(e){return new Promise(t=>setTimeout(t,e))}function _C(e){return xC.some(t=>e.startsWith(t))}function pi({label:e,value:t}){return t===""?null:(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",minWidth:84,textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t})]})}var Xa={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function $C({record:e,onOpen:t}){return(0,$.jsxs)("button",{type:"button","data-testid":"memory-row","data-memory-id":e.id,onClick:()=>t(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",textAlign:"left",padding:"11px 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:160},children:e.id}),(0,$.jsx)("span",{style:{flex:1,fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.content}),(0,$.jsx)(ne,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function wC({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=q.default.useState(!1),[a,l]=q.default.useState(e.content),[s,c]=q.default.useState(""),[u,p]=q.default.useState(!1),[f,g]=q.default.useState(""),[x,b]=q.default.useState(!1);q.default.useEffect(()=>{l(e.content),c(""),i(!1),b(!1)},[e.id,e.content,e.version]);let w=s.trim()==="",v=a.trim()==="",m=async()=>{if(u||v||w)return;p(!0),g("");let S=await r(e.id,a,s);p(!1),i(!1),c(""),g(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(u)return;p(!0),g("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&g("Forget failed \u2014 the memory is unchanged.")};return(0,$.jsxs)("div",{"data-testid":"memory-detail",style:{...Xa,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:e.id}),(0,$.jsx)(ne,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(ne,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(U,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>l(S.target.value),rows:5,style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}):(0,$.jsx)("div",{"data-testid":"memory-content",style:{fontSize:14,lineHeight:"21px",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,$.jsx)(pi,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(pi,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(pi,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(pi,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(pi,{label:"created",value:e.createdAt}),(0,$.jsx)(pi,{label:"updated",value:e.updatedAt})]}),(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Edits append a new version; the prior is kept in history."}),n?(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)(an,{mono:!0,"aria-label":"edit reason",value:s,placeholder:"reason (required) \u2014 why is this changing?",onChange:S=>c(S.target.value)}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(U,{variant:"primary",onClick:()=>{m()},disabled:u||v||w,children:u?"\u2026":"Save new version"}),(0,$.jsx)(U,{variant:"ghost",onClick:()=>i(!1),disabled:u,children:"Cancel"}),w&&(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"a reason is required to save"})]})]}):(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(U,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(U,{variant:"danger",onClick:()=>{y()},disabled:u,children:u?"\u2026":"Confirm forget"}),(0,$.jsx)(U,{variant:"ghost",onClick:()=>b(!1),disabled:u,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Forget soft-deletes this memory (a tombstone version)."})]}):(0,$.jsx)(U,{variant:"ghost",onClick:()=>b(!0),children:"Forget"})]}),f!==""&&(0,$.jsx)("div",{"data-testid":"detail-note",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:f})]})}var zC={height:40,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)"};function IC({onAdd:e}){let[t,r]=q.default.useState(""),[o,n]=q.default.useState(zu),[i,a]=q.default.useState(!1),[l,s]=q.default.useState(""),c=t.trim()==="",u=async()=>{if(i||c)return;a(!0),s("");let p=await e(t,o);if(a(!1),p===null){s("Add failed \u2014 nothing was stored.");return}r(""),n(zu),s(p)};return(0,$.jsxs)("div",{style:{...Xa,display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Add a memory"}),(0,$.jsx)("textarea",{"aria-label":"new content",value:t,onChange:p=>r(p.target.value),rows:3,placeholder:"a fact to remember \u2014 e.g. we deploy via `just release`",style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)("select",{"aria-label":"memory type","data-testid":"add-type",value:o,onChange:p=>n(p.target.value),title:wh[o],style:{...zC,width:180,cursor:"pointer"},children:iw.map(p=>(0,$.jsx)("option",{value:p,title:wh[p],children:p===zu?`${p} (default)`:p},p))}),(0,$.jsx)(U,{variant:"primary",onClick:()=>{u()},disabled:i||c,children:i?"\u2026":"Add memory"}),l!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:l})]})]})}function PC(e){if(e.errored>0)return`${e.table}: attempted, not completed`;let t=[`${e.keysCompacted} keys`,`${e.rowsReaped} rows reaped`];return e.keysSkipped>0&&t.push(`${e.keysSkipped} keys deferred`),`${e.table}: ${t.join(" \xB7 ")}`}function EC({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,l]=q.default.useState(!1),[s,c]=q.default.useState(!1),[u,p]=q.default.useState(null),[f,g]=q.default.useState(!1),[x,b]=q.default.useState(""),w=async()=>{if(s)return;l(!1),c(!0);let m=await t();c(!1),p(m)},v=async()=>{if(f)return;g(!0),b("");let m=await r();g(!1),m.triggered?b(m.status==="running"?"already running":"consolidating\u2026"):b(`skipped \xB7 ${m.reason??"unavailable"}`)};return(0,$.jsxs)("div",{style:{...Xa,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Lifecycle"}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(U,{variant:"danger",onClick:()=>{w()},disabled:s,children:s?"\u2026":"Confirm compact"}),(0,$.jsx)(U,{variant:"ghost",onClick:()=>l(!1),disabled:s,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Compaction prunes old memory versions across version-bumped tables. Continue?"})]}):(0,$.jsx)(U,{variant:"secondary",onClick:()=>l(!0),disabled:s,children:"Compact"})}),u!==null&&(0,$.jsxs)("div",{"data-testid":"compact-summary",style:{display:"flex",flexDirection:"column",gap:3},children:[u.summaries.length===0&&u.skippedTables.length===0?(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"nothing reaped this pass"}):u.summaries.map(m=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:m.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:PC(m)},m.table)),u.skippedTables.length>0&&(0,$.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["skipped (absent): ",u.skippedTables.join(", ")]})]})]}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)(U,{variant:"pollinate",onClick:()=>{v()},disabled:f||e,children:f||e?"pollinating\u2026":"Pollinate now"}),x!==""&&(0,$.jsx)("span",{"data-testid":"pollinate-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:x})]}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(U,{variant:n?"secondary":"ghost",onClick:i,children:n?"Stop watch":"Watch"}),n&&(0,$.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,$.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"memory routes"})]})]}),n&&(0,$.jsx)("div",{"data-testid":"watch-feed",style:{display:"flex",flexDirection:"column",gap:5},children:o.length===0?(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for memory activity\u2026"}):o.map((m,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:m},y))})]})]})}function lw({wire:e,pollinating:t=!1}){let{scope:r}=Wn(),o=r.project,[n,i]=q.default.useState([]),[a,l]=q.default.useState(aw),[s,c]=q.default.useState(!1),[u,p]=q.default.useState(""),[f,g]=q.default.useState([]),[x,b]=q.default.useState(!1),[w,v]=q.default.useState(!1),[m,y]=q.default.useState(!1),[S,_]=q.default.useState(null),[E,T]=q.default.useState(null),[A,J]=q.default.useState(!1),[W,Me]=q.default.useState(!1),[xt,Mn]=q.default.useState([]),Ge=q.default.useCallback(async K=>{if(o===void 0)return i([]),c(!0),[];let ge=await e.listMemories(K,o);return i(ge),c(!0),ge},[e,o]);q.default.useEffect(()=>{Ge(a)},[Ge,a]),q.default.useEffect(()=>{if(!W)return;let K=!0,ge=async()=>{let gi=await e.logs(40);if(!K)return;let Ya=gi.filter(zr=>_C(zr.path)).slice(-hC).reverse().map(br);Mn(Ya)};ge();let Ze=setInterval(()=>{ge()},yC);return()=>{K=!1,clearInterval(Ze)}},[W,e]);let Zn=q.default.useCallback(async()=>{let K=u.trim();if(K===""){v(!1),g([]);return}b(!0);let{memories:ge,degraded:Ze}=await e.recall(K,o);g(ge),y(Ze),v(!0),b(!1)},[u,e,o]),_n=q.default.useCallback(()=>{p(""),v(!1),g([])},[]),wr=q.default.useCallback(async K=>{_(K),T(null),J(!1);let ge=await e.getMemory(K);if(ge===null){J(!0);return}T(ge)},[e]),pn=q.default.useCallback(()=>{_(null),T(null),J(!1)},[]),oe=q.default.useCallback(async(K,ge)=>{let Ze=null;for(let gi=0;gi<SC;gi+=1){if(Ze=await e.getMemory(K),Ze!==null&&ge(Ze))return Ze;await kC(bC)}return Ze},[e]),ae=q.default.useCallback(async(K,ge,Ze)=>{if(await e.modifyMemory(K,{content:ge,reason:Ze})===null){let zr=await e.getMemory(K);return zr!==null&&T(zr),null}let Ya=await oe(K,zr=>zr.content===ge||zr.version>0);return Ya!==null&&T(Ya),Ge(a),"saved \xB7 new version"},[e,oe,Ge,a]),we=q.default.useCallback(async(K,ge)=>await e.forgetMemory(K,{reason:ge})===null?null:(pn(),Ge(a),"forgotten"),[e,pn,Ge,a]),Wt=q.default.useCallback(async(K,ge)=>{let Ze=await e.addMemory({content:K,...ge!==""?{type:ge}:{}});return Ze===null?null:(await Ge(a),Ze.id!==null?`stored \xB7 ${Ze.id}`:`stored \xB7 ${Ze.action||"ok"}`)},[e,Ge,a]),mi=q.default.useCallback(()=>e.compact(),[e]),Ee=q.default.useCallback(()=>e.pollinate(),[e]),ze=q.default.useCallback(()=>{Me(K=>!K),Mn([])},[]),Pt=S!==null;return(0,$.jsx)(st,{eyebrow:"memories",title:"Memories",right:(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:o===void 0?"no project":`${n.length} kept`}),children:o===void 0?(0,$.jsx)(ci,{surface:"memories"}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:16},children:[(0,$.jsx)("div",{style:{flex:1},children:(0,$.jsx)(an,{mono:!0,size:"lg",value:u,placeholder:"search memories\u2026 e.g. how do we deploy",onChange:K=>p(K.target.value),onKeyDown:K=>{K.key==="Enter"&&Zn()}})}),(0,$.jsx)(U,{variant:"primary",size:"lg",onClick:()=>{Zn()},disabled:x,children:x?"\u2026":"Search"}),w&&(0,$.jsx)(U,{variant:"ghost",size:"lg",onClick:_n,children:"Clear"})]}),w&&m&&(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,$.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",children:(0,$.jsx)(ne,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),Pt?A?(0,$.jsxs)("div",{"data-testid":"memory-forgotten",style:{...Xa,display:"flex",flexDirection:"column",gap:12},children:[(0,$.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"This memory was forgotten (or its id is unknown)."}),(0,$.jsx)("div",{children:(0,$.jsx)(U,{variant:"ghost",size:"sm",onClick:pn,children:"\u2190 back"})})]}):E!==null?(0,$.jsx)(wC,{record:E,onClose:pn,onEdit:ae,onForget:we}):(0,$.jsx)("div",{style:{...Xa,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[w?(0,$.jsx)("div",{"data-testid":"search-results",style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:f.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):f.map((K,ge)=>(0,$.jsx)(bs,{...K,pollinating:t&&ge===1},K.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:s?n.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories yet."}):(0,$.jsxs)($.Fragment,{children:[n.map(K=>(0,$.jsx)($C,{record:K,onOpen:wr},K.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>l(K=>K+aw),children:"Load more"})})]}):(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,$.jsx)(IC,{onAdd:Wt}),(0,$.jsx)(ow,{wire:e}),(0,$.jsx)(EC,{pollinating:t,onCompact:mi,onPollinate:Ee,watchLines:xt,watching:W,onToggleWatch:ze})]})]})]})})}var fe=M(Ie(),1);var j=M(Q(),1),Pu="__unsorted__",zh={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Ih(){return(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function RC(e){if(e===null||e==="")return(0,j.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,j.jsx)(Ih,{}):new Date(t).toLocaleString()}function CC({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=fe.default.useState(!1),[a,l]=fe.default.useState(null),[s,c]=fe.default.useState(!1),[u,p]=fe.default.useState(""),f=fe.default.useRef(!1),g=async()=>{if(a===null||f.current)return;f.current=!0,c(!0),p("");let x=await t.unbindProject({path:a});if(c(!1),f.current=!1,x.unbound){i(!1),l(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,j.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...zh,display:"flex",flexDirection:"column",gap:10},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,j.jsx)(ne,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,j.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,j.jsx)(Iu,{label:"bound path",value:(0,j.jsx)(jC,{paths:e.boundPaths})}),(0,j.jsx)(Iu,{label:"git remote",value:e.remote!==""?e.remote:(0,j.jsx)(Ih,{})}),(0,j.jsx)(Iu,{label:"last capture",value:RC(e.lastCapture)}),(0,j.jsx)(Iu,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,j.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Pick the folder to release. Unbind removes this device\u2019s binding (capture stops there); the project and its memories are kept."}),(0,j.jsx)(cw,{wire:t,onSelect:l,selected:a}),(0,j.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,j.jsx)(U,{variant:"danger",size:"sm",onClick:()=>{g()},disabled:s||a===null,"data-testid":"project-unbind-confirm",children:s?"\u2026":"Unbind this folder"}),u!==""&&(0,j.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:u})]})]})]})}function jC({paths:e}){return e.length===0?(0,j.jsx)(Ih,{}):(0,j.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,j.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Iu({label:e,value:t}){return(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function TC({inbox:e}){return(0,j.jsxs)("div",{"data-testid":"inbox-row",style:{...zh,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,j.jsx)(ne,{tone:"neutral",mono:!0,children:Pu}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function OC({onNew:e,onImport:t}){let[r,o]=fe.default.useState(!1);return(0,j.jsxs)("div",{style:{position:"relative"},children:[(0,j.jsx)(U,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,j.jsxs)("div",{"data-testid":"add-menu",style:{position:"absolute",right:0,top:38,zIndex:5,display:"flex",flexDirection:"column",minWidth:180,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md, 0 6px 24px rgba(0,0,0,0.18))",overflow:"hidden"},children:[(0,j.jsx)(sw,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,j.jsx)(sw,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function sw({label:e,hint:t,onClick:r,testId:o}){return(0,j.jsxs)("button",{type:"button","data-testid":o,onClick:r,style:{display:"flex",flexDirection:"column",gap:2,width:"100%",textAlign:"left",padding:"9px 12px",background:"transparent",border:"none",borderBottom:"1px solid var(--border-subtle)",cursor:"pointer"},children:[(0,j.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function NC({wire:e,onClose:t,onImported:r}){let[o,n]=fe.default.useState([]),[i,a]=fe.default.useState(!1),[l,s]=fe.default.useState(null),[c,u]=fe.default.useState(null),[p,f]=fe.default.useState(!1),[g,x]=fe.default.useState(""),b=fe.default.useRef(!1);fe.default.useEffect(()=>{let v=!0;return(async()=>{let m=await e.scopeProjects({unbound:!0});v&&(n(m.filter(y=>y.projectId!==Pu)),a(!0))})(),()=>{v=!1}},[e]);let w=fe.default.useCallback(async()=>{if(l===null||c===null||b.current)return;b.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:l});if(f(!1),b.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[l,c,e,r]);return(0,j.jsx)(DC,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"projects in this workspace not yet on this device"}),i?o.length===0?(0,j.jsx)("span",{"data-testid":"import-empty",style:{fontSize:13,color:"var(--text-tertiary)"},children:"Every registry project is already bound on this device. Nothing to import."}):(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,j.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>s(v.projectId),"aria-pressed":l===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:l===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${l===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:l===v.projectId?"var(--honey)":"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600},children:v.name!==""?v.name:v.projectId},v.projectId))}):(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),l!==null&&(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:["pick this device\u2019s folder for ",(0,j.jsx)("span",{style:{color:"var(--honey)"},children:l})]}),(0,j.jsx)(cw,{wire:e,onSelect:u,selected:c})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,j.jsx)(U,{variant:"primary",onClick:()=>{w()},disabled:p||l===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,j.jsx)(U,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),g!==""&&(0,j.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})})}function cw({wire:e,onSelect:t,selected:r}){let[o,n]=fe.default.useState(""),[i,a]=fe.default.useState(null),[l,s]=fe.default.useState([]),[c,u]=fe.default.useState(!1),p=fe.default.useCallback(async f=>{let g=await e.fsBrowse(f);n(g.path),a(g.parent),s(g.children),u(!0)},[e]);return fe.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&l.length===0?(0,j.jsxs)("span",{"data-testid":"folderselect-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["The folder browser isn\u2019t available \u2014 bind from your terminal: ",(0,j.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,j.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o!==""?o:"loading\u2026"}),(0,j.jsx)(U,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,j.jsx)(U,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:l.map(f=>(0,j.jsxs)("button",{type:"button","data-testid":"folderselect-row",onClick:()=>{p(f.path)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"8px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13},children:[(0,j.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,j.jsx)(ne,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,j.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function DC({title:e,onClose:t,testId:r,children:o}){return(0,j.jsx)("div",{"data-testid":r,role:"dialog","aria-modal":"true","aria-label":e,onClick:t,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",background:"rgba(0,0,0,0.45)"},children:(0,j.jsxs)("div",{onClick:n=>n.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"80vh",overflowY:"auto",padding:20,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,j.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsx)(U,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function uw({wire:e}){let{scope:t,setScope:r}=Wn(),[o,n]=fe.default.useState([]),[i,a]=fe.default.useState(!1),[l,s]=fe.default.useState("none"),c=fe.default.useCallback(async()=>{let b=await e.scopeProjects();n(b),a(!0)},[e]);fe.default.useEffect(()=>{c()},[c]);let u=o.filter(b=>b.boundLocally&&b.projectId!==Pu),p=o.find(b=>b.projectId===Pu),f=fe.default.useCallback(b=>{r({org:t.org,workspace:t.workspace,project:b})},[r,t.org,t.workspace]),g=fe.default.useCallback(b=>{s("none"),c()},[c]),x=fe.default.useCallback(b=>{s("none"),c()},[c]);return(0,j.jsxs)(st,{eyebrow:"projects",title:"Projects",right:(0,j.jsx)(OC,{onNew:()=>s("new"),onImport:()=>s("import")}),children:[l==="new"&&(0,j.jsxs)("div",{style:{...zh,marginBottom:16},children:[(0,j.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,j.jsx)(_u,{wire:e,onBound:g,onCancel:()=>s("none")})]}),l==="import"&&(0,j.jsx)(NC,{wire:e,onClose:()=>s("none"),onImported:x}),(0,j.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?u.length===0?(0,j.jsxs)("div",{"data-testid":"projects-empty",style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No active projects on this device yet. Use ",(0,j.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):u.map(b=>(0,j.jsx)(CC,{project:b,wire:e,onOpen:f,onUnbound:()=>{c()}},b.projectId)):(0,j.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,j.jsx)(TC,{inbox:p})]})]})}var ct=M(Ie(),1);var dw=Object.freeze([{symbol:"a",configPath:"memory.lifecycle.activationExponent",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_EXPONENT",defaultValue:"1",effect:"exponent on the activation/freshness term A^a"},{symbol:"c",configPath:"memory.lifecycle.confidenceExponent",envOverride:"HONEYCOMB_LIFECYCLE_CONFIDENCE_EXPONENT",defaultValue:"0",effect:"exponent on the calibrated-confidence term C^c (dormant until calibrated)"},{symbol:"s",configPath:"memory.lifecycle.stalenessExponent",envOverride:"HONEYCOMB_LIFECYCLE_STALENESS_EXPONENT",defaultValue:"0",effect:"exponent on the staleness term (1 \u2212 \u03C3)^s (0 under observe)"},{symbol:"h(memories)",configPath:"memory.lifecycle.halfLifeDaysByClass.memories",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORIES_DAYS",defaultValue:"180 d",effect:"shapes A for distilled facts (slower decay)"},{symbol:"h(memory)",configPath:"memory.lifecycle.halfLifeDaysByClass.memory",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORY_DAYS",defaultValue:"45 d",effect:"shapes A for session summaries"},{symbol:"h(sessions)",configPath:"memory.lifecycle.halfLifeDaysByClass.sessions",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_SESSIONS_DAYS",defaultValue:"10 d",effect:"shapes A for raw dialogue (fastest decay)"},{symbol:"d",configPath:"memory.lifecycle.actrDecay",envOverride:"HONEYCOMB_LIFECYCLE_ACTR_DECAY",defaultValue:"0.5",effect:"ACT-R decay shaping A (Stage 2)"},{symbol:"A_min",configPath:"memory.lifecycle.activationFloor",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_FLOOR",defaultValue:"0.05",effect:"clamps A so a cold memory keeps a sliver of salience"},{symbol:"h_verify",configPath:"memory.lifecycle.verificationHalfLifeDays",envOverride:"HONEYCOMB_LIFECYCLE_VERIFICATION_HALFLIFE_DAYS",defaultValue:"14 d",effect:"shapes \u03C3 via the verification-freshness factor v(m,t)"},{symbol:"\u03B8_detect",configPath:"memory.lifecycle.contradictionThreshold",envOverride:"HONEYCOMB_LIFECYCLE_CONTRADICTION_THRESHOLD",defaultValue:"0.6",effect:"gates conflict detection (Contra > \u03B8_detect)"},{symbol:"\u03B3",configPath:"memory.lifecycle.corroborationWeight",envOverride:"HONEYCOMB_LIFECYCLE_CORROBORATION_WEIGHT",defaultValue:"0.5",effect:"shapes the conflict vote weight w_i"},{symbol:"\u03C4_supersede",configPath:"memory.lifecycle.supersedeMargin",envOverride:"HONEYCOMB_LIFECYCLE_SUPERSEDE_MARGIN",defaultValue:"0.5",effect:"conflict verdict cut (margin \u2265 \u03C4_supersede \u2192 supersede)"},{symbol:"\u03C4_review",configPath:"memory.lifecycle.reviewMargin",envOverride:"HONEYCOMB_LIFECYCLE_REVIEW_MARGIN",defaultValue:"0.15",effect:"conflict verdict cut (\u03C4_review \u2264 margin < \u03C4_supersede \u2192 review)"},{symbol:"\u03C1",configPath:"memory.lifecycle.openConflictSuppression",envOverride:"HONEYCOMB_LIFECYCLE_OPEN_CONFLICT_SUPPRESSION",defaultValue:"0",effect:"\u03BA for the open-conflict loser (0 fully suppress, reversible)"},{symbol:"auto-resolve",configPath:"memory.lifecycle.conflictAutoResolve",envOverride:"HONEYCOMB_LIFECYCLE_CONFLICT_AUTORESOLVE",defaultValue:"false",effect:"when off, conflicts are detected + queued only (human-in-the-loop)"},{symbol:"posture",configPath:"memory.lifecycle.staleRefPosture",envOverride:"HONEYCOMB_LIFECYCLE_STALEREF_POSTURE",defaultValue:"observe",effect:"observe (s = 0, inert) vs execute (s > 0, demote)"}]);var B=M(Q(),1),LC=5e3;function Qr({label:e,children:t}){return(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,B.jsx)("span",{style:{flex:1}}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function UC(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function AC(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function FC(){return(0,B.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,B.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Connect to DeepLake from your terminal, then this page reflects it:"}),(0,B.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:"honeycomb login"}),(0,B.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"or, headless (CI / a server):"}),(0,B.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:"HONEYCOMB_TOKEN=\u2026 honeycomb \u2026"})]})}function WC({wire:e}){let[t,r]=ct.default.useState(rh),[o,n]=ct.default.useState(!0),i=ct.default.useCallback(async()=>{let a=await e.authStatus();r(a),n(!1)},[e]);return ct.default.useEffect(()=>{let a=!0,l=async()=>{a&&await i()};l();let s=setInterval(()=>{l()},LC),c=()=>{l()};return typeof window<"u"&&window.addEventListener("focus",c),()=>{a=!1,clearInterval(s),typeof window<"u"&&window.removeEventListener("focus",c)}},[i]),(0,B.jsx)(ce,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,B.jsx)(ne,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,B.jsx)("div",{"data-testid":"auth-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):t.connected?(0,B.jsxs)("div",{"data-testid":"auth-connected",children:[(0,B.jsx)(Qr,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,B.jsx)(Qr,{label:"org id",children:t.orgId||"\u2014"}),(0,B.jsx)(Qr,{label:"workspace",children:t.workspace||"\u2014"}),(0,B.jsx)(Qr,{label:"agent",children:t.agentId||"\u2014"}),(0,B.jsx)(Qr,{label:"source",children:UC(t.source)}),(0,B.jsx)(Qr,{label:"last login",children:t.savedAt||"unknown"}),(0,B.jsx)(Qr,{label:"token expiry",children:AC(t.expiresAt)})]}):(0,B.jsxs)("div",{"data-testid":"auth-disconnected",children:[(0,B.jsx)("div",{style:{padding:"8px 6px",fontSize:14,color:"var(--text-primary)"},children:"Not connected to DeepLake."}),(0,B.jsx)(FC,{})]})})}var MC=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function ZC({id:e,label:t,present:r,onSave:o}){let[n,i]=ct.default.useState(""),[a,l]=ct.default.useState(!1),[s,c]=ct.default.useState(!1),u=ct.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}l(!0),c(!1);let f=await o(e,p);l(!1),f?i(""):c(!0)},[n,e,o]);return(0,B.jsxs)("div",{"data-testid":`provider-row-${e}`,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,B.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,B.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,B.jsx)(an,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),s&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&u()},"data-testid":`provider-input-${e}`})}),(0,B.jsx)(U,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{u()},children:a?"saving\u2026":"Save key"}),(0,B.jsx)(ne,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),s&&(0,B.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function BC({wire:e,secretNames:t,onSaved:r}){let o=ct.default.useCallback(async(n,i)=>{let a=gu[n];if(a===void 0)return!1;let l=await e.setSecret(a,i);return l&&r(),l},[e,r]);return(0,B.jsx)(ce,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,B.jsx)("div",{"data-testid":"provider-keys",children:MC.map(n=>{let i=gu[n.id]??"",a=i!==""&&t.includes(i);return(0,B.jsx)(ZC,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var VC=[{value:"",label:"default (semantic when embeddings on)"},{value:"keyword",label:"keyword \u2014 lexical only"},{value:"semantic",label:"semantic \u2014 vector (fallback when off)"},{value:"hybrid",label:"hybrid \u2014 both arms"}];function HC({value:e,onChange:t}){return(0,B.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,B.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,B.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,B.jsx)("span",{style:{flex:1}}),(0,B.jsx)("select",{"aria-label":"search mode",value:e,onChange:r=>t(r.target.value),"data-testid":"recall-mode-select",style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:220},children:VC.map(r=>(0,B.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function JC({settings:e,catalog:t,secretNames:r,onSave:o}){let n=String(e[cn.recallMode]??"");return(0,B.jsx)(ce,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,B.jsxs)("div",{"data-testid":"search-inference",children:[(0,B.jsx)(HC,{value:n,onChange:i=>{o(cn.recallMode,i)}}),(0,B.jsx)("div",{style:{marginTop:8},children:(0,B.jsx)(vu,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function GC({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,B.jsxs)("div",{"data-testid":"lifecycle-flag","data-config-path":t,style:{display:"flex",flexDirection:"column",gap:2,padding:"8px 0",borderBottom:"1px solid var(--border-subtle)"},children:[(0,B.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,B.jsx)(ne,{tone:"honey",mono:!0,children:e}),(0,B.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,B.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,B.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,B.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function XC(){return(0,B.jsx)(ce,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,B.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,B.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",marginBottom:8},children:"Precedence: HONEYCOMB_LIFECYCLE_* env > agent.yaml memory.lifecycle.* > the documented default. Defaults are non-destructive \u2014 a = 1, c = 0, s = 0 (posture observe), auto-resolve off."}),dw.map(e=>(0,B.jsx)(GC,{...e},e.configPath))]})})}function pw({wire:e}){let[t,r]=ct.default.useState(Ma),[o,n]=ct.default.useState([]),i=ct.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=ct.default.useCallback(async()=>{n(await e.secretNames())},[e]);ct.default.useEffect(()=>{i(),a()},[i,a]);let l=ct.default.useCallback(async(s,c)=>{let u=await e.setSetting(s,c);return await i(),u},[e,i]);return(0,B.jsx)(st,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,B.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,B.jsx)(WC,{wire:e}),(0,B.jsx)(BC,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,B.jsx)(JC,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:l}),(0,B.jsx)(XC,{})]})})}var dn=M(Ie(),1);var V=M(Q(),1),KC=5e3,Ka=12;function Eu(e,t){return`${e}:${t}`}function fi({label:e,children:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function mw({state:e}){let t=ph[e]??"neutral";return(0,V.jsx)(ne,{tone:t,mono:!0,dot:!0,children:e})}function YC({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,V.jsx)(U,{variant:"primary",size:"sm",disabled:o,"data-testid":`promote-${e.assetType}-${e.name}`,onClick:()=>r("promote",e),children:n("promote","Promote")}),e.state==="shared"&&(0,V.jsx)(U,{variant:"secondary",size:"sm",disabled:o,"data-testid":`pull-${e.assetType}-${e.name}`,onClick:()=>r("pull",e),children:n("pull","Pull")}),e.state==="shared"&&(0,V.jsx)(U,{variant:"ghost",size:"sm",disabled:o,"data-testid":`enable-${e.assetType}-${e.name}`,onClick:()=>r("enable",e),children:n("enable","Enable")}),(e.state==="shared"||e.state==="pulled")&&(0,V.jsx)(U,{variant:"danger",size:"sm",disabled:o||!e.authoredByMe,title:e.authoredByMe?"Demote (tombstone) this asset":"Only the author can demote this asset","data-testid":`demote-${e.assetType}-${e.name}`,onClick:()=>r("demote",e),children:n("demote","Demote")}),(e.state==="local"||e.state==="pulled")&&(0,V.jsx)(U,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function QC({row:e}){return(0,V.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,V.jsxs)(ce,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,V.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,V.jsx)(fi,{label:"state",children:(0,V.jsx)(mw,{state:e.state})}),(0,V.jsx)(fi,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,V.jsx)(fi,{label:"scope",children:e.scope||"\u2014"}),(0,V.jsx)(fi,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,V.jsx)(fi,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,V.jsx)(fi,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function qC({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,V.jsxs)("button",{type:"button","data-testid":`row-${e.assetType}-${e.name}`,onClick:()=>o(e),style:{display:"flex",alignItems:"center",gap:8,background:"transparent",border:"none",padding:0,cursor:"pointer",minWidth:0,flex:"1 1 200px",textAlign:"left"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,V.jsx)(mw,{state:e.state}),e.version>0&&(0,V.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,V.jsx)(YC,{row:e,flight:r,onAction:n})]}),t&&(0,V.jsx)(QC,{row:e})]})}function ej({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,V.jsx)(ce,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,V.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,V.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(l=>(0,V.jsx)(qC,{row:l,open:r===Eu(e,l.name),flight:o[Eu(e,l.name)],onToggle:n,onAction:i},`${l.assetType}:${l.name}`))})})}function Ph({label:e,value:t,tone:r}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,V.jsx)(ne,{tone:r,mono:!0,children:t}),(0,V.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function tj(e){let t=0,r=0,o=0;for(let n of[...e.skills,...e.agents])n.state==="shared"?t++:n.state==="local"?r++:n.state==="pulled"&&o++;return{shared:t,local:r,pulled:o}}function nj({view:e}){let t=tj(e);return(0,V.jsx)(ce,{title:"Sync state",eyebrow:"per scope",children:(0,V.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,V.jsx)(Ph,{label:"shared with team",value:t.shared,tone:"verified"}),(0,V.jsx)(Ph,{label:"local only",value:t.local,tone:"neutral"}),(0,V.jsx)(Ph,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function rj(e){return e.filter(du).slice(-Ka).reverse().map(t=>{let r=br(t),o=_0(t);return o!==""?`${r} \xB7 ${o}`:r})}function oj(e,t){if(!du(t))return e;let r=[...e,t];return r.length>Ka?r.slice(-Ka):r}function gw({wire:e}){let{scope:t}=Wn(),r=t.project,[o,n]=dn.default.useState(lu),[i,a]=dn.default.useState([]),[l,s]=dn.default.useState("skill"),[c,u]=dn.default.useState(null),[p,f]=dn.default.useState({});dn.default.useEffect(()=>{if(r===void 0){n(lu);return}let v=!0,m=async()=>{let S=await e.assetsView();v&&n(S)};m();let y=setInterval(()=>{m()},KC);return()=>{v=!1,clearInterval(y)}},[e,r]),dn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(Ka*6);v&&a(y.filter(du).slice(-Ka))})();let m=e.logsStream(y=>{v&&a(S=>oj(S,y))});return()=>{v=!1,m()}},[e]);let g=dn.default.useMemo(()=>rj(i),[i]),x=dn.default.useCallback(v=>{let m=Eu(v.assetType,v.name);u(y=>y===m?null:m)},[]),b=dn.default.useCallback((v,m)=>{let y=Eu(m.assetType,m.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:m.assetType,name:m.name,honeycombId:m.honeycombId!==""?m.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let _={...S};return delete _[y],_})}})()},[e]),w=l==="skill"?o.skills:o.agents;return(0,V.jsx)(st,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,V.jsx)(ci,{surface:"sync state"}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(nj,{view:o}),(0,V.jsx)("div",{style:{height:16}}),(0,V.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,V.jsx)(fw,{label:"Skills",active:l==="skill",count:o.skills.length,onClick:()=>s("skill")}),(0,V.jsx)(fw,{label:"Agents",active:l==="agent",count:o.agents.length,onClick:()=>s("agent")})]}),(0,V.jsx)(ej,{kind:l,rows:w,openKey:c,inFlight:p,onToggle:x,onAction:b}),(0,V.jsx)("div",{style:{height:16}}),(0,V.jsx)(kr,{lines:g})]})})}function fw({label:e,active:t,count:r,onClick:o}){return(0,V.jsxs)("button",{type:"button","data-testid":`tab-${e.toLowerCase()}`,"aria-pressed":t,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:[e,(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var ue=M(Q(),1);function $r({children:e}){return(0,ue.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:e})}var ij=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,ue.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,ue.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,ue.jsx)("rect",{x:14,y:14,width:7,height:7})]}),aj=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,ue.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,ue.jsx)("path",{d:"M13 15h4"})]}),lj=(0,ue.jsx)($r,{children:(0,ue.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),sj=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,ue.jsx)("path",{d:"M12 8v8"})]}),cj=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,ue.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,ue.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,ue.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),uj=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,ue.jsx)("path",{d:"M21 4v4h-4"})]}),dj=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,ue.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),pj=(0,ue.jsxs)($r,{children:[(0,ue.jsx)("circle",{cx:12,cy:12,r:3}),(0,ue.jsx)("path",{d:"M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"})]}),Sh="/projects",Ru=[{route:"/",label:"Dashboard",icon:ij,component:W0},{route:Sh,label:"Projects",icon:lj,component:uw},{route:"/harnesses",label:"Harnesses",icon:aj,component:D0,dynamic:{resolve:L0}},{route:"/memories",label:"Memories",icon:sj,component:lw},{route:"/graph",label:"Graph",icon:cj,component:Y0},{route:"/sync",label:"Sync",icon:uj,component:gw},{route:"/logs",label:"Logs",icon:dj,component:rw},{route:"/settings",label:"Settings",icon:pj,component:pw}],vD=Ru[0];function vw(e,t=Ru){let r=t.find(n=>n.route===e);if(r!==void 0)return r;let o=t.find(n=>n.route!=="/"&&e.startsWith(`${n.route}/`));return o!==void 0?o:t.find(n=>n.route==="/")??t[0]}var We=M(Q(),1),fj=220,mj=56;function gj(e,t){let r=e.find(i=>i.route===t);if(r!==void 0)return r.route;let o=e.find(i=>i.route!=="/"&&t.startsWith(`${i.route}/`));return o!==void 0?o.route:e.find(i=>i.route==="/")?.route??e[0]?.route??"/"}function vj({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,We.jsxs)("button",{type:"button",onClick:()=>o(e.route),"aria-current":t?"page":void 0,title:r?e.label:void 0,"data-route":e.route,"data-active":t?"true":"false",style:{display:"flex",alignItems:"center",gap:10,width:"100%",height:38,padding:r?"0":"0 12px",justifyContent:r?"center":"flex-start",background:t?"var(--honey-subtle)":"transparent",color:t?"var(--honey)":"var(--text-secondary)",border:`1px solid ${t?"var(--honey-border)":"transparent"}`,borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,letterSpacing:"0.01em",cursor:"pointer",whiteSpace:"nowrap",transition:"background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out)"},children:[(0,We.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,We.jsx)("span",{children:e.label})]})}function yj({daemonUp:e,collapsed:t}){return(0,We.jsxs)("div",{title:"daemon health","data-testid":"daemon-health-pill",style:{display:"flex",alignItems:"center",gap:8,height:36,padding:t?"0":"0 12px",justifyContent:t?"center":"flex-start",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,We.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,We.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function yw({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:l}){let s=gj(e,t);return(0,We.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?mj:fj,flex:"none",minHeight:"100vh",boxSizing:"border-box",padding:a?"20px 8px":"22px 14px",background:"var(--bg-surface)",borderRight:"1px solid var(--border-default)"},children:[(0,We.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,We.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,We.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,We.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,We.jsx)(H0,{collapsed:a}),(0,We.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,We.jsx)(vj,{entry:c,active:c.route===s,collapsed:a,onNavigate:r},c.route))}),(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,We.jsx)(yj,{daemonUp:o,collapsed:a}),(0,We.jsx)(U,{variant:"ghost",size:"sm",onClick:l,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var tt=M(Q(),1),hj=5e3,xj=900;function Sj({route:e,pageProps:t,navigate:r}){let o=vw(e),n=o.component,{projects:i,projectsHydrated:a}=hh();ut.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let l=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),s=o.route==="/"&&a&&!l;return(0,tt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,tt.jsx)("div",{style:{maxWidth:hu,margin:"0 auto"},children:s?(0,tt.jsx)(G0,{wire:t.wire,navigate:r}):(0,tt.jsx)(n,{...t})})})}function hw({client:e,assetBase:t="assets"}={}){let r=ut.default.useMemo(()=>e??uu(),[e]),{route:o,navigate:n}=Su(),[i,a]=ut.default.useState(!0),[l,s]=ut.default.useState(lh),[c,u]=ut.default.useState(!1),[p,f]=ut.default.useState(!1),g=l.settings.port?`http://127.0.0.1:${l.settings.port}`:"http://127.0.0.1:3850",x=ut.default.useCallback(async()=>{s(await r.settings())},[r]);ut.default.useEffect(()=>{x()},[x]);let b=ut.default.useRef(null);ut.default.useEffect(()=>{let _=!0,E=async()=>{let{up:A}=await r.health();_&&(a(A),A&&b.current===!1&&x(),b.current=A)};E();let T=setInterval(()=>{E()},hj);return()=>{_=!1,clearInterval(T)}},[r,x]),ut.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let _=window.matchMedia(`(max-width: ${xj}px)`),E=A=>{A&&f(!0)};E(_.matches);let T=A=>E(A.matches);return _.addEventListener("change",T),()=>_.removeEventListener("change",T)},[]);let w=ut.default.useRef(!1),v=ut.default.useRef(null);ut.default.useEffect(()=>()=>{v.current!==null&&clearTimeout(v.current)},[]);let m=ut.default.useCallback(async()=>{if(w.current)return;w.current=!0,u(!0),(await r.pollinate()).triggered?v.current=setTimeout(()=>{u(!1),w.current=!1},4200):(u(!1),w.current=!1)},[r]),y=`${l.orgName||l.orgId||"local"} \xB7 ${l.workspace||"default"}`;return(0,tt.jsx)(V0,{wire:r,children:(0,tt.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,tt.jsx)(yw,{entries:Ru,activeRoute:o,onNavigate:n,daemonUp:i,identity:y,assetBase:t,collapsed:p,onToggleCollapsed:()=>f(_=>!_)}),(0,tt.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,tt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,tt.jsx)("span",{style:{flex:1}}),(0,tt.jsx)(U,{variant:"pollinate",onClick:()=>{m()},disabled:c,children:c?"pollinating\u2026":"Pollinate now"})]}),i?(0,tt.jsx)(Sj,{route:o,pageProps:{wire:r,daemonUp:i,assetBase:t,pollinating:c},navigate:n}):(0,tt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,tt.jsx)("div",{style:{maxWidth:hu,margin:"0 auto"},children:(0,tt.jsx)(E0,{url:g,onRetry:()=>{r.health().then(({up:_})=>{a(_),_&&x()})}})})})]})]})})}var G=M(Q(),1),bj=2500,kj=new Set(["backup","uninstall","link"]);function _j(e){return e.migration!==void 0&&kj.has(e.migration.phase)}function $j(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function wj({wire:e,assetBase:t,state:r}){let[o,n]=Je.default.useState(null),[i,a]=Je.default.useState(!1),[l,s]=Je.default.useState(!1),c=Je.default.useRef(!1),u=Je.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),s(!1);let f=await e.setupLogin();if(f===null){s(!0),a(!1),c.current=!1;return}n(f)},[e]),p=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,G.jsxs)("div",{"data-testid":"guided-setup",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,G.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,G.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Let\u2019s connect your account"}),(0,G.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:p?"We found a previous Hivemind setup. Link your account to bring your memory online.":"Honeycomb keeps one shared memory for all your coding agents. Link your account to get started."})]}),o===null?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(U,{variant:"primary",size:"lg",onClick:()=>{u()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),l&&(0,G.jsxs)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:["Could not start setup. Retry, or run ",(0,G.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,G.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,G.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,G.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,G.jsx)("a",{href:o.verification_uri_complete??o.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)"},children:"Open the verification page"}),(0,G.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]})]})}function zj({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Je.default.useState(!1),[i,a]=Je.default.useState(!1),[l,s]=Je.default.useState(null),c=Je.default.useRef(!1),u=Je.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(s(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,G.jsxs)("div",{"data-testid":"coexistence-warning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,G.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,G.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"We found an existing Hivemind setup"}),(0,G.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["Running Hivemind and Honeycomb on the same machine isn\u2019t supported \u2014 they share one memory and would collide. ",(0,G.jsx)("strong",{children:"Proceed with Honeycomb"})," will back up your Hivemind config, uninstall Hivemind, and reuse your existing DeepLake login (so you likely won\u2019t even need to sign in again)."]})]}),l!==null&&l.ok===!1?(0,G.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,G.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l.message}),l.backupPath!==void 0&&(0,G.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,G.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:l.backupPath})]}),(0,G.jsx)(U,{variant:"primary",size:"lg",onClick:()=>{u()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,G.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,G.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,G.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,G.jsx)(U,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,G.jsx)(U,{variant:"danger",size:"md",onClick:()=>{u()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,G.jsx)(U,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function Ij({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Je.default.useState(""),[a,l]=Je.default.useState(null),s=r.migration?.phase??"backup",c=r.migration?.backupPath,u=Je.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(l(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Je.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();l(f.message),i("")},[e]);return(0,G.jsxs)("div",{"data-testid":"migration-interrupted",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,G.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,G.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,G.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,G.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["A previous switch to Honeycomb didn\u2019t finish (it stopped at the ",(0,G.jsx)("code",{children:s})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,G.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,G.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,G.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,G.jsx)(U,{variant:"primary",size:"md",onClick:()=>{u()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,G.jsx)(U,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,G.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function xw({client:e,assetBase:t="assets"}={}){let r=Je.default.useMemo(()=>e??uu(),[e]),[o,n]=Je.default.useState(oh),[i,a]=Je.default.useState(!1);return Je.default.useEffect(()=>{if(o.authenticated)return;let l=!0,s=async()=>{let u=await r.setupState();l&&n(u)};s();let c=setInterval(()=>{s()},bj);return()=>{l=!1,clearInterval(c)}},[r,o.authenticated]),o.authenticated?(0,G.jsx)(hw,{...{client:r,assetBase:t}}):_j(o)&&!i?(0,G.jsx)(Ij,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):$j(o)&&!i?(0,G.jsx)(zj,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,G.jsx)(wj,{wire:r,assetBase:t,state:o})}var Eh=M(Q(),1);function Pj(){let e=document.getElementById("root");if(e===null)return;let t=e.getAttribute("data-asset-base")??"assets",r=/^[A-Za-z0-9._/-]*$/.test(t)?t:"assets";(0,bw.createRoot)(e).render((0,Eh.jsx)(Sw.default.StrictMode,{children:(0,Eh.jsx)(xw,{assetBase:r})}))}Pj();
|
|
72
|
+
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]){i(a);continue}if(e.external){let c=e.external.registry.get(a[0])?.id;if(t!==a[0]&&c){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(l.cycle){i(a);continue}if(l.count>1&&e.reused==="ref"){i(a);continue}}}function Ir(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=l=>{let s=e.seen.get(l);if(s.ref===null)return;let c=s.def??s.schema,d={...c},p=s.ref;if(s.ref=null,p){o(p);let g=e.seen.get(p),x=g.schema;if(x.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(x)):Object.assign(c,x),Object.assign(c,d),l._zod.parent===p)for(let w in c)w==="$ref"||w==="allOf"||w in d||delete c[w];if(x.$ref&&g.def)for(let w in c)w==="$ref"||w==="allOf"||w in g.def&&JSON.stringify(c[w])===JSON.stringify(g.def[w])&&delete c[w]}let f=l._zod.parent;if(f&&f!==p){o(f);let g=e.seen.get(f);if(g?.schema.$ref&&(c.$ref=g.schema.$ref,g.def))for(let x in c)x==="$ref"||x==="allOf"||x in g.def&&JSON.stringify(c[x])===JSON.stringify(g.def[x])&&delete c[x]}e.override({zodSchema:l,jsonSchema:c,path:s.path??[]})};for(let l of[...e.seen.entries()].reverse())o(l[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$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");n.$id=e.external.uri(l)}Object.assign(n,r.def??r.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&n.id===i&&delete n.id;let a=e.external?.defs??{};for(let l of e.seen.entries()){let s=l[1];s.def&&s.defId&&(s.def.id===s.defId&&delete s.def.id,a[s.defId]=s.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?n.$defs=a:n.definitions=a);try{let l=JSON.parse(JSON.stringify(n));return Object.defineProperty(l,"~standard",{value:{...t["~standard"],jsonSchema:{input:oi(t,"input",e.processors),output:oi(t,"output",e.processors)}},enumerable:!1,writable:!1}),l}catch{throw new Error("Error converting schema to JSON.")}}function xt(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return xt(o.element,r);if(o.type==="set")return xt(o.valueType,r);if(o.type==="lazy")return xt(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return xt(o.innerType,r);if(o.type==="intersection")return xt(o.left,r)||xt(o.right,r);if(o.type==="record"||o.type==="map")return xt(o.keyType,r)||xt(o.valueType,r);if(o.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:xt(o.in,r)||xt(o.out,r);if(o.type==="object"){for(let n in o.shape)if(xt(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(xt(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(xt(n,r))return!0;return!!(o.rest&&xt(o.rest,r))}return!1}var bv=(e,t={})=>r=>{let o=wr({...r,processors:t});return fe(e,o),zr(o,e),Ir(o,e)},oi=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=wr({...n??{},target:i,io:t,processors:r});return fe(e,a),zr(a,e),Ir(a,e)};var YE={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Sv=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:l,patterns:s,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),l&&(n.format=YE[l]??l,n.format===""&&delete n.format,l==="time"&&delete n.format),c&&(n.contentEncoding=c),s&&s.size>0){let d=[...s];d.length===1?n.pattern=d[0].source:d.length>1&&(n.allOf=[...d.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},kv=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:l,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:d}=e._zod.bag;typeof l=="string"&&l.includes("int")?n.type="integer":n.type="number";let p=typeof d=="number"&&d>=(i??Number.NEGATIVE_INFINITY),f=typeof c=="number"&&c<=(a??Number.POSITIVE_INFINITY),g=t.target==="draft-04"||t.target==="openapi-3.0";p?g?(n.minimum=d,n.exclusiveMinimum=!0):n.exclusiveMinimum=d:typeof i=="number"&&(n.minimum=i),f?g?(n.maximum=c,n.exclusiveMaximum=!0):n.exclusiveMaximum=c:typeof a=="number"&&(n.maximum=a),typeof s=="number"&&(n.multipleOf=s)},_v=(e,t,r,o)=>{r.type="boolean"},$v=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},wv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},zv=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Iv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Pv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Ev=(e,t,r,o)=>{r.not={}},Rv=(e,t,r,o)=>{},Cv=(e,t,r,o)=>{},Tv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},jv=(e,t,r,o)=>{let n=e._zod.def,i=ba(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},Ov=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.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");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},Dv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},Nv=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},Lv=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:l,mime:s}=e._zod.bag;a!==void 0&&(i.minLength=a),l!==void 0&&(i.maxLength=l),s?s.length===1?(i.contentMediaType=s[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=s.map(c=>({contentMediaType:c}))):Object.assign(n,i)},Uv=(e,t,r,o)=>{r.type="boolean"},Av=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Fv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},Wv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Mv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},Zv=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},Bv=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof l=="number"&&(n.maxItems=l),n.type="array",n.items=fe(i.element,t,{...o,path:[...o.path,"items"]})},Vv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let c in a)n.properties[c]=fe(a[c],t,{...o,path:[...o.path,"properties",c]});let l=new Set(Object.keys(a)),s=new Set([...l].filter(c=>{let d=i.shape[c]._zod;return t.io==="input"?d.optin===void 0:d.optout===void 0}));s.size>0&&(n.required=Array.from(s)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=fe(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},Dc=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((l,s)=>fe(l,t,{...o,path:[...o.path,i?"oneOf":"anyOf",s]}));i?r.oneOf=a:r.anyOf=a},Hv=(e,t,r,o)=>{let n=e._zod.def,i=fe(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=fe(n.right,t,{...o,path:[...o.path,"allOf",1]}),l=c=>"allOf"in c&&Object.keys(c).length===1,s=[...l(i)?i.allOf:[i],...l(a)?a.allOf:[a]];r.allOf=s},Jv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=i.items.map((f,g)=>fe(f,t,{...o,path:[...o.path,a,g]})),c=i.rest?fe(i.rest,t,{...o,path:[...o.path,l,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=s,c&&(n.items=c)):t.target==="openapi-3.0"?(n.items={anyOf:s},c&&n.items.anyOf.push(c),n.minItems=s.length,c||(n.maxItems=s.length)):(n.items=s,c&&(n.additionalItems=c));let{minimum:d,maximum:p}=e._zod.bag;typeof d=="number"&&(n.minItems=d),typeof p=="number"&&(n.maxItems=p)},Gv=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,s=a._zod.bag?.patterns;if(i.mode==="loose"&&s&&s.size>0){let d=fe(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of s)n.patternProperties[p.source]=d}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=fe(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=fe(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let c=a._zod.values;if(c){let d=[...c].filter(p=>typeof p=="string"||typeof p=="number");d.length>0&&(n.required=d)}},Xv=(e,t,r,o)=>{let n=e._zod.def,i=fe(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},Kv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Yv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},Qv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},qv=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},ey=(e,t,r,o)=>{let n=e._zod.def,i=n.in._zod.traits.has("$ZodTransform"),a=t.io==="input"?i?n.out:n.in:n.out;fe(a,t,o);let l=t.seen.get(e);l.ref=a},ty=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},ny=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},Nc=(e,t,r,o)=>{let n=e._zod.def;fe(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},ry=(e,t,r,o)=>{let n=e._zod.innerType;fe(n,t,o);let i=t.seen.get(e);i.ref=n},Oc={string:Sv,number:kv,boolean:_v,bigint:$v,symbol:wv,null:zv,undefined:Iv,void:Pv,never:Ev,any:Rv,unknown:Cv,date:Tv,enum:jv,literal:Ov,nan:Dv,template_literal:Nv,file:Lv,success:Uv,custom:Av,function:Fv,transform:Wv,map:Mv,set:Zv,array:Bv,object:Vv,union:Dc,intersection:Hv,tuple:Jv,record:Gv,nullable:Xv,nonoptional:Kv,default:Yv,prefault:Qv,catch:qv,pipe:ey,readonly:ty,promise:ny,optional:Nc,lazy:ry};function Lc(e,t){if("_idmap"in e){let o=e,n=wr({...t,processors:Oc}),i={};for(let s of o._idmap.entries()){let[c,d]=s;fe(d,n)}let a={},l={registry:o,uri:t?.uri,defs:i};n.external=l;for(let s of o._idmap.entries()){let[c,d]=s;zr(n,d),a[c]=Ir(n,d)}if(Object.keys(i).length>0){let s=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[s]:i}}return{schemas:a}}let r=wr({...t,processors:Oc});return fe(e,r),zr(r,e),Ir(r,e)}var Uc=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 r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=wr({processors:Oc,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return fe(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),zr(this.ctx,t);let o=Ir(this.ctx,t),{"~standard":n,...i}=o;return i}};var c$={};var Ua={};Tn(Ua,{ZodAny:()=>Iy,ZodArray:()=>Cy,ZodBase64:()=>iu,ZodBase64URL:()=>au,ZodBigInt:()=>pi,ZodBigIntFormat:()=>cu,ZodBoolean:()=>di,ZodCIDRv4:()=>ru,ZodCIDRv6:()=>ou,ZodCUID:()=>Kc,ZodCUID2:()=>Yc,ZodCatch:()=>qy,ZodCodec:()=>Ka,ZodCustom:()=>Ya,ZodCustomStringFormat:()=>ci,ZodDate:()=>Va,ZodDefault:()=>Jy,ZodDiscriminatedUnion:()=>jy,ZodE164:()=>lu,ZodEmail:()=>Jc,ZodEmoji:()=>Gc,ZodEnum:()=>li,ZodExactOptional:()=>By,ZodFile:()=>My,ZodFunction:()=>ch,ZodGUID:()=>Fa,ZodIPv4:()=>tu,ZodIPv6:()=>nu,ZodIntersection:()=>Oy,ZodJWT:()=>su,ZodKSUID:()=>eu,ZodLazy:()=>ah,ZodLiteral:()=>Wy,ZodMAC:()=>by,ZodMap:()=>Ay,ZodNaN:()=>th,ZodNanoID:()=>Xc,ZodNever:()=>Ey,ZodNonOptional:()=>gu,ZodNull:()=>wy,ZodNullable:()=>Hy,ZodNumber:()=>ui,ZodNumberFormat:()=>ro,ZodObject:()=>Ja,ZodOptional:()=>mu,ZodPipe:()=>Xa,ZodPrefault:()=>Xy,ZodPreprocess:()=>nh,ZodPromise:()=>sh,ZodReadonly:()=>rh,ZodRecord:()=>ai,ZodSet:()=>Fy,ZodString:()=>si,ZodStringFormat:()=>he,ZodSuccess:()=>Qy,ZodSymbol:()=>_y,ZodTemplateLiteral:()=>ih,ZodTransform:()=>Zy,ZodTuple:()=>Ny,ZodType:()=>ne,ZodULID:()=>Qc,ZodURL:()=>Ba,ZodUUID:()=>zn,ZodUndefined:()=>$y,ZodUnion:()=>Ga,ZodUnknown:()=>Py,ZodVoid:()=>Ry,ZodXID:()=>qc,ZodXor:()=>Ty,_ZodString:()=>Hc,_default:()=>Gy,_function:()=>h0,any:()=>X$,array:()=>Ha,base64:()=>T$,base64url:()=>j$,bigint:()=>B$,boolean:()=>ky,catch:()=>eh,check:()=>x0,cidrv4:()=>R$,cidrv6:()=>C$,codec:()=>m0,cuid:()=>k$,cuid2:()=>_$,custom:()=>b0,date:()=>Y$,describe:()=>S0,discriminatedUnion:()=>r0,e164:()=>O$,email:()=>p$,emoji:()=>b$,enum:()=>pu,exactOptional:()=>Vy,file:()=>u0,float32:()=>F$,float64:()=>W$,function:()=>h0,guid:()=>f$,hash:()=>A$,hex:()=>U$,hostname:()=>L$,httpUrl:()=>x$,instanceof:()=>_0,int:()=>Bc,int32:()=>M$,int64:()=>V$,intersection:()=>Dy,invertCodec:()=>g0,ipv4:()=>I$,ipv6:()=>E$,json:()=>w0,jwt:()=>D$,keyof:()=>Q$,ksuid:()=>z$,lazy:()=>lh,literal:()=>c0,looseObject:()=>t0,looseRecord:()=>i0,mac:()=>P$,map:()=>a0,meta:()=>k0,nan:()=>f0,nanoid:()=>S$,nativeEnum:()=>s0,never:()=>uu,nonoptional:()=>Yy,null:()=>zy,nullable:()=>Ma,nullish:()=>d0,number:()=>Sy,object:()=>q$,optional:()=>Wa,partialRecord:()=>o0,pipe:()=>Vc,prefault:()=>Ky,preprocess:()=>z0,promise:()=>y0,readonly:()=>oh,record:()=>Uy,refine:()=>uh,set:()=>l0,strictObject:()=>e0,string:()=>Aa,stringFormat:()=>N$,stringbool:()=>$0,success:()=>p0,superRefine:()=>dh,symbol:()=>J$,templateLiteral:()=>v0,transform:()=>fu,tuple:()=>Ly,uint32:()=>Z$,uint64:()=>H$,ulid:()=>$$,undefined:()=>G$,union:()=>du,unknown:()=>no,url:()=>h$,uuid:()=>m$,uuidv4:()=>g$,uuidv6:()=>v$,uuidv7:()=>y$,void:()=>K$,xid:()=>w$,xor:()=>n0});var Ac={};Tn(Ac,{endsWith:()=>Ko,gt:()=>$n,gte:()=>ht,includes:()=>Go,length:()=>to,lowercase:()=>Ho,lt:()=>_n,lte:()=>Lt,maxLength:()=>eo,maxSize:()=>$r,mime:()=>Yo,minLength:()=>Bn,minSize:()=>wn,multipleOf:()=>_r,negative:()=>Rc,nonnegative:()=>Tc,nonpositive:()=>Cc,normalize:()=>Qo,overwrite:()=>un,positive:()=>Ec,property:()=>jc,regex:()=>Vo,size:()=>qr,slugify:()=>ni,startsWith:()=>Xo,toLowerCase:()=>ei,toUpperCase:()=>ti,trim:()=>qo,uppercase:()=>Jo});var ii={};Tn(ii,{ZodISODate:()=>Wc,ZodISODateTime:()=>Fc,ZodISODuration:()=>Zc,ZodISOTime:()=>Mc,date:()=>iy,datetime:()=>oy,duration:()=>ly,time:()=>ay});var Fc=h("ZodISODateTime",(e,t)=>{Dm.init(e,t),he.init(e,t)});function oy(e){return Ag(Fc,e)}var Wc=h("ZodISODate",(e,t)=>{Nm.init(e,t),he.init(e,t)});function iy(e){return Fg(Wc,e)}var Mc=h("ZodISOTime",(e,t)=>{Lm.init(e,t),he.init(e,t)});function ay(e){return Wg(Mc,e)}var Zc=h("ZodISODuration",(e,t)=>{Um.init(e,t),he.init(e,t)});function ly(e){return Mg(Zc,e)}var u$=(e,t)=>{wa.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>Ia(e,r)},flatten:{value:r=>za(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,No,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,No,2)}},isEmpty:{get(){return e.issues.length===0}}})},qE=h("ZodError",u$),Pt=h("ZodError",u$,{Parent:Error});var sy=Ao(Pt),cy=Fo(Pt),uy=Wo(Pt),dy=Mo(Pt),py=Ls(Pt),fy=Us(Pt),my=As(Pt),gy=Fs(Pt),vy=Ws(Pt),yy=Ms(Pt),hy=Zs(Pt),xy=Bs(Pt);var d$=new WeakMap;function Za(e,t,r){let o=Object.getPrototypeOf(e),n=d$.get(o);if(n||(n=new Set,d$.set(o,n)),!n.has(t)){n.add(t);for(let i in r){let a=r[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,get(){let l=a.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l}),l},set(l){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:l})}})}}}var ne=h("ZodType",(e,t)=>(ee.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:oi(e,"input"),output:oi(e,"output")}}),e.toJSONSchema=bv(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(r,o)=>sy(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>uy(e,r,o),e.parseAsync=async(r,o)=>cy(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>dy(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>py(e,r,o),e.decode=(r,o)=>fy(e,r,o),e.encodeAsync=async(r,o)=>my(e,r,o),e.decodeAsync=async(r,o)=>gy(e,r,o),e.safeEncode=(r,o)=>vy(e,r,o),e.safeDecode=(r,o)=>yy(e,r,o),e.safeEncodeAsync=async(r,o)=>hy(e,r,o),e.safeDecodeAsync=async(r,o)=>xy(e,r,o),Za(e,"ZodType",{check(...r){let o=this.def;return this.clone(P.mergeDefs(o,{checks:[...o.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,o){return vt(this,r,o)},brand(){return this},register(r,o){return r.add(this,o),this},refine(r,o){return this.check(uh(r,o))},superRefine(r,o){return this.check(dh(r,o))},overwrite(r){return this.check(un(r))},optional(){return Wa(this)},exactOptional(){return Vy(this)},nullable(){return Ma(this)},nullish(){return Wa(Ma(this))},nonoptional(r){return Yy(this,r)},array(){return Ha(this)},or(r){return du([this,r])},and(r){return Dy(this,r)},transform(r){return Vc(this,fu(r))},default(r){return Gy(this,r)},prefault(r){return Ky(this,r)},catch(r){return eh(this,r)},pipe(r){return Vc(this,r)},readonly(){return oh(this)},describe(r){let o=this.clone();return nt.add(o,{description:r}),o},meta(...r){if(r.length===0)return nt.get(this);let o=this.clone();return nt.add(o,r[0]),o},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){return nt.get(e)?.description},configurable:!0}),e)),Hc=h("_ZodString",(e,t)=>{Qr.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Sv(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,Za(e,"_ZodString",{regex(...o){return this.check(Vo(...o))},includes(...o){return this.check(Go(...o))},startsWith(...o){return this.check(Xo(...o))},endsWith(...o){return this.check(Ko(...o))},min(...o){return this.check(Bn(...o))},max(...o){return this.check(eo(...o))},length(...o){return this.check(to(...o))},nonempty(...o){return this.check(Bn(1,...o))},lowercase(o){return this.check(Ho(o))},uppercase(o){return this.check(Jo(o))},trim(){return this.check(qo())},normalize(...o){return this.check(Qo(...o))},toLowerCase(){return this.check(ei())},toUpperCase(){return this.check(ti())},slugify(){return this.check(ni())}})}),si=h("ZodString",(e,t)=>{Qr.init(e,t),Hc.init(e,t),e.email=r=>e.check(cc(Jc,r)),e.url=r=>e.check(La(Ba,r)),e.jwt=r=>e.check(Pc(su,r)),e.emoji=r=>e.check(mc(Gc,r)),e.guid=r=>e.check(Na(Fa,r)),e.uuid=r=>e.check(uc(zn,r)),e.uuidv4=r=>e.check(dc(zn,r)),e.uuidv6=r=>e.check(pc(zn,r)),e.uuidv7=r=>e.check(fc(zn,r)),e.nanoid=r=>e.check(gc(Xc,r)),e.guid=r=>e.check(Na(Fa,r)),e.cuid=r=>e.check(vc(Kc,r)),e.cuid2=r=>e.check(yc(Yc,r)),e.ulid=r=>e.check(hc(Qc,r)),e.base64=r=>e.check(wc(iu,r)),e.base64url=r=>e.check(zc(au,r)),e.xid=r=>e.check(xc(qc,r)),e.ksuid=r=>e.check(bc(eu,r)),e.ipv4=r=>e.check(Sc(tu,r)),e.ipv6=r=>e.check(kc(nu,r)),e.cidrv4=r=>e.check(_c(ru,r)),e.cidrv6=r=>e.check($c(ou,r)),e.e164=r=>e.check(Ic(lu,r)),e.datetime=r=>e.check(oy(r)),e.date=r=>e.check(iy(r)),e.time=r=>e.check(ay(r)),e.duration=r=>e.check(ly(r))});function Aa(e){return Dg(si,e)}var he=h("ZodStringFormat",(e,t)=>{ye.init(e,t),Hc.init(e,t)}),Jc=h("ZodEmail",(e,t)=>{zm.init(e,t),he.init(e,t)});function p$(e){return cc(Jc,e)}var Fa=h("ZodGUID",(e,t)=>{$m.init(e,t),he.init(e,t)});function f$(e){return Na(Fa,e)}var zn=h("ZodUUID",(e,t)=>{wm.init(e,t),he.init(e,t)});function m$(e){return uc(zn,e)}function g$(e){return dc(zn,e)}function v$(e){return pc(zn,e)}function y$(e){return fc(zn,e)}var Ba=h("ZodURL",(e,t)=>{Im.init(e,t),he.init(e,t)});function h$(e){return La(Ba,e)}function x$(e){return La(Ba,{protocol:Nt.httpProtocol,hostname:Nt.domain,...P.normalizeParams(e)})}var Gc=h("ZodEmoji",(e,t)=>{Pm.init(e,t),he.init(e,t)});function b$(e){return mc(Gc,e)}var Xc=h("ZodNanoID",(e,t)=>{Em.init(e,t),he.init(e,t)});function S$(e){return gc(Xc,e)}var Kc=h("ZodCUID",(e,t)=>{Rm.init(e,t),he.init(e,t)});function k$(e){return vc(Kc,e)}var Yc=h("ZodCUID2",(e,t)=>{Cm.init(e,t),he.init(e,t)});function _$(e){return yc(Yc,e)}var Qc=h("ZodULID",(e,t)=>{Tm.init(e,t),he.init(e,t)});function $$(e){return hc(Qc,e)}var qc=h("ZodXID",(e,t)=>{jm.init(e,t),he.init(e,t)});function w$(e){return xc(qc,e)}var eu=h("ZodKSUID",(e,t)=>{Om.init(e,t),he.init(e,t)});function z$(e){return bc(eu,e)}var tu=h("ZodIPv4",(e,t)=>{Am.init(e,t),he.init(e,t)});function I$(e){return Sc(tu,e)}var by=h("ZodMAC",(e,t)=>{Wm.init(e,t),he.init(e,t)});function P$(e){return Lg(by,e)}var nu=h("ZodIPv6",(e,t)=>{Fm.init(e,t),he.init(e,t)});function E$(e){return kc(nu,e)}var ru=h("ZodCIDRv4",(e,t)=>{Mm.init(e,t),he.init(e,t)});function R$(e){return _c(ru,e)}var ou=h("ZodCIDRv6",(e,t)=>{Zm.init(e,t),he.init(e,t)});function C$(e){return $c(ou,e)}var iu=h("ZodBase64",(e,t)=>{Vm.init(e,t),he.init(e,t)});function T$(e){return wc(iu,e)}var au=h("ZodBase64URL",(e,t)=>{Hm.init(e,t),he.init(e,t)});function j$(e){return zc(au,e)}var lu=h("ZodE164",(e,t)=>{Jm.init(e,t),he.init(e,t)});function O$(e){return Ic(lu,e)}var su=h("ZodJWT",(e,t)=>{Gm.init(e,t),he.init(e,t)});function D$(e){return Pc(su,e)}var ci=h("ZodCustomStringFormat",(e,t)=>{Xm.init(e,t),he.init(e,t)});function N$(e,t,r={}){return ri(ci,e,t,r)}function L$(e){return ri(ci,"hostname",Nt.hostname,e)}function U$(e){return ri(ci,"hex",Nt.hex,e)}function A$(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Nt[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return ri(ci,o,n,t)}var ui=h("ZodNumber",(e,t)=>{qs.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>kv(e,o,n,i),Za(e,"ZodNumber",{gt(o,n){return this.check($n(o,n))},gte(o,n){return this.check(ht(o,n))},min(o,n){return this.check(ht(o,n))},lt(o,n){return this.check(_n(o,n))},lte(o,n){return this.check(Lt(o,n))},max(o,n){return this.check(Lt(o,n))},int(o){return this.check(Bc(o))},safe(o){return this.check(Bc(o))},positive(o){return this.check($n(0,o))},nonnegative(o){return this.check(ht(0,o))},negative(o){return this.check(_n(0,o))},nonpositive(o){return this.check(Lt(0,o))},multipleOf(o,n){return this.check(_r(o,n))},step(o,n){return this.check(_r(o,n))},finite(){return this}});let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function Sy(e){return Zg(ui,e)}var ro=h("ZodNumberFormat",(e,t)=>{Km.init(e,t),ui.init(e,t)});function Bc(e){return Vg(ro,e)}function F$(e){return Hg(ro,e)}function W$(e){return Jg(ro,e)}function M$(e){return Gg(ro,e)}function Z$(e){return Xg(ro,e)}var di=h("ZodBoolean",(e,t)=>{Ca.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_v(e,r,o,n)});function ky(e){return Kg(di,e)}var pi=h("ZodBigInt",(e,t)=>{ec.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>$v(e,o,n,i),e.gte=(o,n)=>e.check(ht(o,n)),e.min=(o,n)=>e.check(ht(o,n)),e.gt=(o,n)=>e.check($n(o,n)),e.gte=(o,n)=>e.check(ht(o,n)),e.min=(o,n)=>e.check(ht(o,n)),e.lt=(o,n)=>e.check(_n(o,n)),e.lte=(o,n)=>e.check(Lt(o,n)),e.max=(o,n)=>e.check(Lt(o,n)),e.positive=o=>e.check($n(BigInt(0),o)),e.negative=o=>e.check(_n(BigInt(0),o)),e.nonpositive=o=>e.check(Lt(BigInt(0),o)),e.nonnegative=o=>e.check(ht(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(_r(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function B$(e){return Qg(pi,e)}var cu=h("ZodBigIntFormat",(e,t)=>{Ym.init(e,t),pi.init(e,t)});function V$(e){return ev(cu,e)}function H$(e){return tv(cu,e)}var _y=h("ZodSymbol",(e,t)=>{Qm.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>wv(e,r,o,n)});function J$(e){return nv(_y,e)}var $y=h("ZodUndefined",(e,t)=>{qm.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Iv(e,r,o,n)});function G$(e){return rv($y,e)}var wy=h("ZodNull",(e,t)=>{eg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>zv(e,r,o,n)});function zy(e){return ov(wy,e)}var Iy=h("ZodAny",(e,t)=>{tg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Rv(e,r,o,n)});function X$(){return iv(Iy)}var Py=h("ZodUnknown",(e,t)=>{ng.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Cv(e,r,o,n)});function no(){return av(Py)}var Ey=h("ZodNever",(e,t)=>{rg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ev(e,r,o,n)});function uu(e){return lv(Ey,e)}var Ry=h("ZodVoid",(e,t)=>{og.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Pv(e,r,o,n)});function K$(e){return sv(Ry,e)}var Va=h("ZodDate",(e,t)=>{ig.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>Tv(e,o,n,i),e.min=(o,n)=>e.check(ht(o,n)),e.max=(o,n)=>e.check(Lt(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Y$(e){return cv(Va,e)}var Cy=h("ZodArray",(e,t)=>{ag.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Bv(e,r,o,n),e.element=t.element,Za(e,"ZodArray",{min(r,o){return this.check(Bn(r,o))},nonempty(r){return this.check(Bn(1,r))},max(r,o){return this.check(eo(r,o))},length(r,o){return this.check(to(r,o))},unwrap(){return this.element}})});function Ha(e,t){return pv(Cy,e,t)}function Q$(e){let t=e._zod.def.shape;return pu(Object.keys(t))}var Ja=h("ZodObject",(e,t)=>{lg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Vv(e,r,o,n),P.defineLazy(e,"shape",()=>t.shape),Za(e,"ZodObject",{keyof(){return pu(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:no()})},loose(){return this.clone({...this._zod.def,catchall:no()})},strict(){return this.clone({...this._zod.def,catchall:uu()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return P.extend(this,r)},safeExtend(r){return P.safeExtend(this,r)},merge(r){return P.merge(this,r)},pick(r){return P.pick(this,r)},omit(r){return P.omit(this,r)},partial(...r){return P.partial(mu,this,r[0])},required(...r){return P.required(gu,this,r[0])}})});function q$(e,t){let r={type:"object",shape:e??{},...P.normalizeParams(t)};return new Ja(r)}function e0(e,t){return new Ja({type:"object",shape:e,catchall:uu(),...P.normalizeParams(t)})}function t0(e,t){return new Ja({type:"object",shape:e,catchall:no(),...P.normalizeParams(t)})}var Ga=h("ZodUnion",(e,t)=>{Ta.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dc(e,r,o,n),e.options=t.options});function du(e,t){return new Ga({type:"union",options:e,...P.normalizeParams(t)})}var Ty=h("ZodXor",(e,t)=>{Ga.init(e,t),sg.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dc(e,r,o,n),e.options=t.options});function n0(e,t){return new Ty({type:"union",options:e,inclusive:!1,...P.normalizeParams(t)})}var jy=h("ZodDiscriminatedUnion",(e,t)=>{Ga.init(e,t),cg.init(e,t)});function r0(e,t,r){return new jy({type:"union",options:t,discriminator:e,...P.normalizeParams(r)})}var Oy=h("ZodIntersection",(e,t)=>{ug.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Hv(e,r,o,n)});function Dy(e,t){return new Oy({type:"intersection",left:e,right:t})}var Ny=h("ZodTuple",(e,t)=>{tc.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Jv(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Ly(e,t,r){let o=t instanceof ee,n=o?r:t,i=o?t:null;return new Ny({type:"tuple",items:e,rest:i,...P.normalizeParams(n)})}var ai=h("ZodRecord",(e,t)=>{dg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Uy(e,t,r){return!t||!t._zod?new ai({type:"record",keyType:Aa(),valueType:e,...P.normalizeParams(t)}):new ai({type:"record",keyType:e,valueType:t,...P.normalizeParams(r)})}function o0(e,t,r){let o=vt(e);return o._zod.values=void 0,new ai({type:"record",keyType:o,valueType:t,...P.normalizeParams(r)})}function i0(e,t,r){return new ai({type:"record",keyType:e,valueType:t,mode:"loose",...P.normalizeParams(r)})}var Ay=h("ZodMap",(e,t)=>{pg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Mv(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(wn(...r)),e.nonempty=r=>e.check(wn(1,r)),e.max=(...r)=>e.check($r(...r)),e.size=(...r)=>e.check(qr(...r))});function a0(e,t,r){return new Ay({type:"map",keyType:e,valueType:t,...P.normalizeParams(r)})}var Fy=h("ZodSet",(e,t)=>{fg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Zv(e,r,o,n),e.min=(...r)=>e.check(wn(...r)),e.nonempty=r=>e.check(wn(1,r)),e.max=(...r)=>e.check($r(...r)),e.size=(...r)=>e.check(qr(...r))});function l0(e,t){return new Fy({type:"set",valueType:e,...P.normalizeParams(t)})}var li=h("ZodEnum",(e,t)=>{mg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(o,n,i)=>jv(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new li({...t,checks:[],...P.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new li({...t,checks:[],...P.normalizeParams(n),entries:i})}});function pu(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new li({type:"enum",entries:r,...P.normalizeParams(t)})}function s0(e,t){return new li({type:"enum",entries:e,...P.normalizeParams(t)})}var Wy=h("ZodLiteral",(e,t)=>{gg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Ov(e,r,o,n),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 c0(e,t){return new Wy({type:"literal",values:Array.isArray(e)?e:[e],...P.normalizeParams(t)})}var My=h("ZodFile",(e,t)=>{vg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Lv(e,r,o,n),e.min=(r,o)=>e.check(wn(r,o)),e.max=(r,o)=>e.check($r(r,o)),e.mime=(r,o)=>e.check(Yo(Array.isArray(r)?r:[r],o))});function u0(e){return fv(My,e)}var Zy=h("ZodTransform",(e,t)=>{yg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Wv(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new hr(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(P.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(P.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r.fallback=!0,r)):(r.value=n,r.fallback=!0,r)}});function fu(e){return new Zy({type:"transform",transform:e})}var mu=h("ZodOptional",(e,t)=>{nc.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Wa(e){return new mu({type:"optional",innerType:e})}var By=h("ZodExactOptional",(e,t)=>{hg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nc(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Vy(e){return new By({type:"optional",innerType:e})}var Hy=h("ZodNullable",(e,t)=>{xg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Xv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ma(e){return new Hy({type:"nullable",innerType:e})}function d0(e){return Wa(Ma(e))}var Jy=h("ZodDefault",(e,t)=>{bg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Yv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Gy(e,t){return new Jy({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():P.shallowClone(t)}})}var Xy=h("ZodPrefault",(e,t)=>{Sg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Qv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Ky(e,t){return new Xy({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():P.shallowClone(t)}})}var gu=h("ZodNonOptional",(e,t)=>{kg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Kv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Yy(e,t){return new gu({type:"nonoptional",innerType:e,...P.normalizeParams(t)})}var Qy=h("ZodSuccess",(e,t)=>{_g.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Uv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function p0(e){return new Qy({type:"success",innerType:e})}var qy=h("ZodCatch",(e,t)=>{$g.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qv(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function eh(e,t){return new qy({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var th=h("ZodNaN",(e,t)=>{wg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Dv(e,r,o,n)});function f0(e){return dv(th,e)}var Xa=h("ZodPipe",(e,t)=>{rc.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ey(e,r,o,n),e.in=t.in,e.out=t.out});function Vc(e,t){return new Xa({type:"pipe",in:e,out:t})}var Ka=h("ZodCodec",(e,t)=>{Xa.init(e,t),ja.init(e,t)});function m0(e,t,r){return new Ka({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function g0(e){let t=e._zod.def;return new Ka({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var nh=h("ZodPreprocess",(e,t)=>{Xa.init(e,t),zg.init(e,t)}),rh=h("ZodReadonly",(e,t)=>{Ig.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ty(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function oh(e){return new rh({type:"readonly",innerType:e})}var ih=h("ZodTemplateLiteral",(e,t)=>{Pg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Nv(e,r,o,n)});function v0(e,t){return new ih({type:"template_literal",parts:e,...P.normalizeParams(t)})}var ah=h("ZodLazy",(e,t)=>{Cg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ry(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function lh(e){return new ah({type:"lazy",getter:e})}var sh=h("ZodPromise",(e,t)=>{Rg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>ny(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function y0(e){return new sh({type:"promise",innerType:e})}var ch=h("ZodFunction",(e,t)=>{Eg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Fv(e,r,o,n)});function h0(e){return new ch({type:"function",input:Array.isArray(e?.input)?Ly(e?.input):e?.input??Ha(no()),output:e?.output??no()})}var Ya=h("ZodCustom",(e,t)=>{Tg.init(e,t),ne.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Av(e,r,o,n)});function x0(e){let t=new be({check:"custom"});return t._zod.check=e,t}function b0(e,t){return mv(Ya,e??(()=>!0),t)}function uh(e,t={}){return gv(Ya,e,t)}function dh(e,t){return vv(e,t)}var S0=yv,k0=hv;function _0(e,t={}){let r=new Ya({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...P.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}var $0=(...e)=>xv({Codec:Ka,Boolean:di,String:si},...e);function w0(e){let t=lh(()=>du([Aa(e),Sy(),ky(),zy(),Ha(t),Uy(Aa(),t)]));return t}function z0(e,t){return new nh({type:"pipe",in:fu(e),out:t})}var tR={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 nR(e){Le({customError:e})}function rR(){return Le().customError}var ph;ph||(ph={});var L={...Ua,...Ac,iso:ii},oR=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 iR(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function aR(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function I0(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return L.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 n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return L.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=aR(n,t),a=ct(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return L.null();if(n.length===0)return L.never();if(n.length===1)return L.literal(n[0]);if(n.every(a=>typeof a=="string"))return L.enum(n);let i=n.map(a=>L.literal(a));return i.length<2?i[0]:L.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return L.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return I0(a,t)});return n.length===0?L.never():n.length===1?n[0]:L.union(n)}if(!r)return L.any();let o;switch(r){case"string":{let n=L.string();if(e.format){let i=e.format;i==="email"?n=n.check(L.email()):i==="uri"||i==="uri-reference"?n=n.check(L.url()):i==="uuid"||i==="guid"?n=n.check(L.uuid()):i==="date-time"?n=n.check(L.iso.datetime()):i==="date"?n=n.check(L.iso.date()):i==="time"?n=n.check(L.iso.time()):i==="duration"?n=n.check(L.iso.duration()):i==="ipv4"?n=n.check(L.ipv4()):i==="ipv6"?n=n.check(L.ipv6()):i==="mac"?n=n.check(L.mac()):i==="cidr"?n=n.check(L.cidrv4()):i==="cidr-v6"?n=n.check(L.cidrv6()):i==="base64"?n=n.check(L.base64()):i==="base64url"?n=n.check(L.base64url()):i==="e164"?n=n.check(L.e164()):i==="jwt"?n=n.check(L.jwt()):i==="emoji"?n=n.check(L.emoji()):i==="nanoid"?n=n.check(L.nanoid()):i==="cuid"?n=n.check(L.cuid()):i==="cuid2"?n=n.check(L.cuid2()):i==="ulid"?n=n.check(L.ulid()):i==="xid"?n=n.check(L.xid()):i==="ksuid"&&(n=n.check(L.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?L.number().int():L.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=L.boolean();break}case"null":{o=L.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[s,c]of Object.entries(i)){let d=ct(c,t);n[s]=a.has(s)?d:d.optional()}if(e.propertyNames){let s=ct(e.propertyNames,t),c=e.additionalProperties&&typeof e.additionalProperties=="object"?ct(e.additionalProperties,t):L.any();if(Object.keys(n).length===0){o=L.record(s,c);break}let d=L.object(n).passthrough(),p=L.looseRecord(s,c);o=L.intersection(d,p);break}if(e.patternProperties){let s=e.patternProperties,c=Object.keys(s),d=[];for(let f of c){let g=ct(s[f],t),x=L.string().regex(new RegExp(f));d.push(L.looseRecord(x,g))}let p=[];if(Object.keys(n).length>0&&p.push(L.object(n).passthrough()),p.push(...d),p.length===0)o=L.object({}).passthrough();else if(p.length===1)o=p[0];else{let f=L.intersection(p[0],p[1]);for(let g=2;g<p.length;g++)f=L.intersection(f,p[g]);o=f}break}let l=L.object(n);e.additionalProperties===!1?o=l.strict():typeof e.additionalProperties=="object"?o=l.catchall(ct(e.additionalProperties,t)):o=l.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(s=>ct(s,t)),l=i&&typeof i=="object"&&!Array.isArray(i)?ct(i,t):void 0;l?o=L.tuple(a).rest(l):o=L.tuple(a),typeof e.minItems=="number"&&(o=o.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(L.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(s=>ct(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?ct(e.additionalItems,t):void 0;l?o=L.tuple(a).rest(l):o=L.tuple(a),typeof e.minItems=="number"&&(o=o.check(L.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(L.maxLength(e.maxItems)))}else if(i!==void 0){let a=ct(i,t),l=L.array(a);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),o=l}else o=L.array(L.any());break}default:throw new Error(`Unsupported type: ${r}`)}return o}function ct(e,t){if(typeof e=="boolean")return e?L.any():L.never();let r=I0(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(c=>ct(c,t)),s=L.union(l);r=o?L.intersection(r,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(c=>ct(c,t)),s=L.xor(l);r=o?L.intersection(r,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:L.any();else{let l=o?r:ct(e.allOf[0],t),s=o?0:1;for(let c=s;c<e.allOf.length;c++)l=L.intersection(l,ct(e.allOf[c],t));r=l}e.nullable===!0&&t.version==="openapi-3.0"&&(r=L.nullable(r)),e.readOnly===!0&&(r=L.readonly(r)),e.default!==void 0&&(r=r.default(e.default));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of i)l in e&&(n[l]=e[l]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let l of a)l in e&&(n[l]=e[l]);for(let l of Object.keys(e))oR.has(l)||(n[l]=e[l]);return Object.keys(n).length>0&&t.registry.add(r,n),e.description&&(r=r.describe(e.description)),r}function P0(e,t){if(typeof e=="boolean")return e?L.any():L.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let o=iR(r,t?.defaultTarget),n=r.$defs||r.definitions||{},i={version:o,defs:n,refs:new Map,processing:new Set,rootSchema:r,registry:t?.registry??nt};return ct(r,i)}var fh={};Tn(fh,{bigint:()=>uR,boolean:()=>cR,date:()=>dR,number:()=>sR,string:()=>lR});function lR(e){return Ng(si,e)}function sR(e){return Bg(ui,e)}function cR(e){return Yg(di,e)}function uR(e){return qg(pi,e)}function dR(e){return uv(Va,e)}Le(oc());var BD=Object.freeze({kpis:{memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},sessions:{sessions:[]},settings:{orgId:"",orgName:"",workspace:"",settings:{}},graph:{built:!1,nodes:[],edges:[]},rules:{rules:[]},skillSync:{skills:[]}});var vu=Object.freeze({savings:{status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null},infra:{status:"absent",cents:0,costBasis:"none"},pollination:{status:"absent",cents:0,lines:[]},net:{status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"},rollups:[],perUserAvailable:!1,scopedAcrossDevices:!1,ratesAsOf:""}),yu=Object.freeze({status:"absent",series:[],startedAt:""});var Y=Object.freeze({kpis:"/api/diagnostics/kpis",sessions:"/api/diagnostics/sessions",settings:"/api/diagnostics/settings",rules:"/api/diagnostics/rules",skills:"/api/diagnostics/skills",graph:"/api/graph",graphBuild:"/api/graph/build",memoryGraph:"/api/diagnostics/memory-graph",recall:"/api/memories/recall",memories:"/api/memories",compact:"/api/diagnostics/compact",lifecycleConflicts:"/api/memories/conflicts",lifecycleStaleRefs:"/api/memories/stale-refs",lifecycleHistory:"/api/memories/history",calibration:"/api/memories/calibration",logs:"/api/logs",logsStream:"/api/logs/stream",harnesses:"/api/diagnostics/harnesses",assets:"/api/diagnostics/assets",syncAction:"/api/diagnostics/sync",health:"/health",pollinate:"/api/diagnostics/pollinate",vaultSettings:"/api/settings",secrets:"/api/secrets",authStatus:"/api/auth/status",setupState:"/setup/state",setupLogin:"/setup/login",setupMigrate:"/setup/migrate-from-hivemind",setupMigrateRollback:"/setup/migrate-from-hivemind/rollback",scopeOrgs:"/api/diagnostics/scope/orgs",scopeWorkspaces:"/api/diagnostics/scope/workspaces",scopeProjects:"/api/diagnostics/scope/projects",fsBrowse:"/api/diagnostics/fs/browse",projectsBind:"/api/diagnostics/projects/bind",projectsBindExisting:"/api/diagnostics/projects/bind-existing",projectsUnbind:"/api/diagnostics/projects/unbind",scopeOrgSwitch:"/api/diagnostics/scope/org-switch",scopeWorkspaceSwitch:"/api/diagnostics/scope/workspace-switch",roi:"/api/diagnostics/roi",roiTrend:"/api/diagnostics/roi/trend"}),pR="x-honeycomb-project";function fi(e){return e!==void 0&&e!==""?{[pR]:e}:{}}var fR=50,mR=u.object({memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),turnCount:u.number().catch(0),estimatedSavings:u.number().catch(0),teamSkillCount:u.number().catch(0)}),N0=u.object({sessionId:u.string().catch(""),project:u.string().catch(""),startedAt:u.string().catch(""),eventCount:u.number().catch(0),status:u.string().catch("captured")}),gR=u.object({sessions:u.array(N0).catch([])}),vR=u.object({orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),settings:u.record(u.string(),u.string()).catch({})}),yR=u.object({id:u.string().catch(""),label:u.string().catch(""),kind:u.string().catch("")}),hR=u.object({from:u.string().catch(""),to:u.string().catch(""),kind:u.string().catch("")}),xR=u.object({totalNodes:u.number().catch(0),totalEdges:u.number().catch(0),shownNodes:u.number().catch(0),shownEdges:u.number().catch(0),truncated:u.boolean().catch(!1)}),E0=u.object({built:u.boolean().catch(!1),nodes:u.array(yR).catch([]),edges:u.array(hR).catch([]),meta:xR.optional().catch(void 0)}),bR=u.object({id:u.string().catch(""),title:u.string().catch(""),active:u.boolean().catch(!1)}),SR=u.object({rules:u.array(bR).catch([])}),kR=u.object({name:u.string().catch(""),scope:u.string().catch(""),syncState:u.string().catch("pending")}),_R=u.object({skills:u.array(kR).catch([])}),In=u.number().int().catch(0),gh=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("absent"),L0=u.enum(["ok","partial","absent","unreachable","unauthenticated"]).catch("unreachable"),vh=u.enum(["measured","allocated","none"]).catch("none"),$R=u.object({kind:u.string().catch(""),assumptionText:u.string().catch(""),signedOff:u.boolean().catch(!1)}),wR=u.object({status:gh,measuredCents:In,modeledCents:In,assumption:$R.catch({kind:"",assumptionText:"",signedOff:!1}),blendedCentsPerMtok:u.number().int().nullable().catch(null)}),zR=u.object({status:L0,cents:In,costBasis:vh}),IR=u.object({label:u.string().catch(""),cents:In}),PR=u.object({status:L0,cents:In,lines:u.array(IR).catch([])}),ER=u.object({status:gh,computed:u.boolean().catch(!1),netCents:In,modeled:u.boolean().catch(!0),costBasis:vh}),RR=u.object({key:u.string().catch(""),label:u.string().catch(""),measuredSavingsCents:In,netCents:In,infraCostCents:In,costBasis:vh,sessions:u.number().int().catch(0)}),CR=u.object({dimension:u.enum(["org","team","agent","project"]).catch("org"),rows:u.array(RR).catch([]),mixedBasis:u.boolean().catch(!1)}),TR=u.object({savings:wR.catch({status:"absent",measuredCents:0,modeledCents:0,assumption:{kind:"",assumptionText:"",signedOff:!1},blendedCentsPerMtok:null}),infra:zR.catch({status:"unreachable",cents:0,costBasis:"none"}),pollination:PR.catch({status:"unreachable",cents:0,lines:[]}),net:ER.catch({status:"absent",computed:!1,netCents:0,modeled:!0,costBasis:"none"}),rollups:u.array(CR).catch([]),perUserAvailable:u.boolean().catch(!1),scopedAcrossDevices:u.boolean().catch(!1),ratesAsOf:u.string().catch("")}),jR=u.object({period:u.string().catch(""),cents:In}),OR=u.object({label:u.string().catch(""),modeled:u.boolean().catch(!1),points:u.array(jR).catch([])}),DR=u.object({status:gh,series:u.array(OR).catch([]),startedAt:u.string().catch("")}),R0=u.object({assetType:u.enum(["skill","agent"]).catch("skill"),name:u.string().catch(""),description:u.string().catch(""),state:u.enum(["local","pulled","shared"]).catch("local"),scope:u.string().catch(""),sourceHarness:u.string().catch(""),tier:u.string().catch(""),style:u.string().catch(""),version:u.number().catch(0),honeycombId:u.string().catch(""),authoredByMe:u.boolean().catch(!1)}),NR=u.object({skills:u.array(R0).catch([]),agents:u.array(R0).catch([])}),LR=u.object({ok:u.boolean().catch(!1),action:u.enum(["promote","pull","demote","enable","disable"]).catch("promote"),assetType:u.enum(["skill","agent"]).catch("skill"),honeycombId:u.string().catch(""),state:u.enum(["local","pulled","shared",""]).catch(""),version:u.number().catch(0)}),hu=Object.freeze({skills:[],agents:[]}),UR=u.object({source:u.string().catch(""),id:u.string().catch(""),text:u.string().catch(""),score:u.number().catch(0),kind:u.enum(["memory","session"]).catch("memory"),secondary:u.boolean().catch(!1)}),AR=u.object({hits:u.array(UR).catch([]),sources:u.array(u.string()).catch([]),degraded:u.boolean().catch(!0)}),U0=u.object({id:u.string().catch(""),type:u.string().catch(""),content:u.string().catch(""),confidence:u.number().catch(0),agentId:u.string().catch(""),createdAt:u.string().catch(""),updatedAt:u.string().catch(""),visibility:u.string().catch(""),sourceType:u.string().catch(""),sourceId:u.string().catch(""),version:u.number().catch(0),hasEmbedding:u.boolean().catch(!1)}),FR=u.object({memories:u.array(U0).catch([])}),WR=u.object({memory:U0}),MR=u.object({id:u.string().nullable().catch(null),action:u.string().catch("")}),C0=u.object({id:u.string().nullable().catch(null),action:u.string().catch(""),audited:u.boolean().catch(!1)}),ZR=u.object({table:u.string().catch(""),keysScanned:u.number().catch(0),keysCompacted:u.number().catch(0),rowsReaped:u.number().catch(0),keysSkipped:u.number().catch(0),errored:u.number().catch(0)}),BR=u.object({ok:u.boolean().catch(!1),summaries:u.array(ZR).catch([]),skippedTables:u.array(u.string()).catch([])}),VR=u.object({id:u.string().catch(""),memoryAId:u.string().catch(""),memoryBId:u.string().catch(""),verdict:u.string().catch("review"),winnerId:u.string().nullable().catch(null),status:u.string().catch("open"),contraScore:u.number().catch(0)}),HR=u.object({conflicts:u.array(VR).catch([]),status:u.string().catch("open")}),JR=u.object({memoryId:u.string().catch(""),refStatus:u.string().catch("stale"),staleRefs:u.array(u.string()).catch([]),verifiedAt:u.string().nullable().catch(null)}),GR=u.object({staleRefs:u.array(JR).catch([])}),XR=u.object({id:u.string().catch(""),memoryId:u.string().catch(""),actor:u.string().catch("pipeline"),operation:u.string().catch(""),reason:u.string().catch(""),confidence:u.number().catch(0),timestamp:u.string().catch("")}),KR=u.object({history:u.array(XR).catch([]),type:u.string().catch("lifecycle")}),YR=u.object({lower:u.number().catch(0),upper:u.number().catch(0),meanConfidence:u.number().catch(0),accuracy:u.number().catch(0),count:u.number().catch(0)}),QR=u.object({ece:u.number().catch(0),brier:u.number().catch(0),nSamples:u.number().catch(0),fitAt:u.string().nullable().catch(null),identity:u.boolean().catch(!0),reliabilityDiagram:u.array(YR).catch([])}),xu=Object.freeze({ece:0,brier:0,nSamples:0,fitAt:null,identity:!0,reliabilityDiagram:[]}),yh=u.object({time:u.string().catch(""),method:u.string().catch(""),path:u.string().catch(""),status:u.number().catch(0),durationMs:u.number().optional(),mode:u.string().optional(),org:u.string().optional(),workspace:u.string().optional()}),qR=u.object({records:u.array(yh).catch([]),count:u.number().catch(0)}),eC=u.object({records:u.array(yh).catch([]),count:u.number().catch(0),nextCursor:u.string().nullable().catch(null),persistent:u.boolean().catch(!1)}),tC=u.object({sessions:u.array(N0).catch([]),nextCursor:u.string().nullable().catch(null)}),nC=u.object({kind:u.string().catch(""),binary:u.string().catch(""),fallbackBin:u.string().optional()}),rC=u.object({bin:u.string().catch(""),args:u.array(u.string()).catch([]),fallbackBin:u.string().optional()}),oC=u.object({name:u.string().catch(""),runtimePath:u.string().catch(""),contextChannel:u.string().catch(""),hostCli:rC.catch({bin:"",args:[]}),lifecycleEvents:u.array(u.string()).catch([]),agents:nC.optional(),workspaceRoots:u.boolean().optional(),mcpRegistration:u.boolean().optional(),contractedTools:u.boolean().optional(),agentsMdContext:u.boolean().optional(),userVisibleLogin:u.boolean().optional()}),iC=u.object({name:u.string().catch(""),installed:u.boolean().catch(!1),active:u.boolean().catch(!1),lastSeen:u.string().nullable().catch(null),turnsCaptured:u.number().catch(0),runtimePath:u.string().catch(""),capabilities:oC.catch({name:"",runtimePath:"",contextChannel:"",hostCli:{bin:"",args:[]},lifecycleEvents:[]})}),aC=u.object({harnesses:u.array(iC).catch([])}),lC=u.object({triggered:u.boolean().catch(!1),status:u.string().catch("skipped"),reason:u.string().optional()}),sC=u.object({built:u.boolean().catch(!1),nodeCount:u.number().catch(0),edgeCount:u.number().catch(0),fileCount:u.number().catch(0)}),mh=Object.freeze({built:!1,nodeCount:0,edgeCount:0,fileCount:0}),cC=12e4,uC=u.object({storage:u.enum(["reachable","unreachable"]).catch("reachable"),embeddings:u.enum(["on","off"]).catch("on"),schema:u.enum(["ok","missing_table"]).catch("ok")}),dC=u.object({status:u.string().catch("ok"),reasons:uC.optional()}),pC=u.object({id:u.string().catch(""),label:u.string().catch(""),models:u.array(u.string()).catch([]),openEnded:u.boolean().catch(!1)}),fC=u.union([u.string(),u.number(),u.boolean()]).catch(""),mC=u.object({settings:u.record(u.string(),fC).catch({}),catalog:u.array(pC).catch([])}),gC=u.object({names:u.array(u.string()).catch([])}),Qa=Object.freeze({settings:{},catalog:[]}),vC=u.object({connected:u.boolean().catch(!1),orgId:u.string().catch(""),orgName:u.string().catch(""),workspace:u.string().catch(""),agentId:u.string().catch(""),source:u.enum(["env","file","none"]).catch("none"),savedAt:u.string().catch(""),expiresAt:u.number().optional()}),hh=Object.freeze({connected:!1,orgId:"",orgName:"",workspace:"",agentId:"",source:"none",savedAt:""}),yC=u.object({deeplake:u.boolean().catch(!1),honeycomb:u.boolean().catch(!1),hivemind:u.boolean().catch(!1)}),hC=u.object({enabled:u.boolean().catch(!1),live:u.boolean().catch(!1),warm:u.boolean().catch(!1)}),xC=u.object({credentials:yC.catch({deeplake:!1,honeycomb:!1,hivemind:!1}),phase:u.enum(["fresh","installed","linking","linked","migrating","migrated"]).catch("fresh"),priorTool:u.object({hivemind:u.enum(["absent","present","migrated"]).catch("absent")}).catch({hivemind:"absent"}),firstTimeSetupComplete:u.boolean().catch(!1),authenticated:u.boolean().catch(!1),warmup:hC.catch({enabled:!1,live:!1,warm:!1}),migration:u.object({phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),startedAt:u.string().catch(""),backupPath:u.string().optional()}).optional()}),xh=Object.freeze({credentials:{deeplake:!1,honeycomb:!1,hivemind:!1},phase:"fresh",priorTool:{hivemind:"absent"},firstTimeSetupComplete:!1,authenticated:!1,warmup:{enabled:!1,live:!1,warm:!1}}),bC=u.object({user_code:u.string().catch(""),verification_uri:u.string().catch(""),verification_uri_complete:u.string().optional()}),SC=u.object({ok:u.boolean().catch(!1),phase:u.enum(["backup","uninstall","link","done","rolled_back"]).catch("backup"),message:u.string().catch(""),backupPath:u.string().optional(),needsLogin:u.boolean().optional(),migrated:u.boolean().optional()}),kC=Object.freeze({ok:!1,phase:"backup",message:"Migration is unavailable right now. Retry, or run the uninstall + `honeycomb login` in your terminal."}),_C=u.object({ok:u.boolean().catch(!1),phase:u.literal("rolled_back").catch("rolled_back"),message:u.string().catch("")}),$C=Object.freeze({ok:!1,phase:"rolled_back",message:"Rollback is unavailable right now. Retry."}),wC=u.object({id:u.string().catch(""),name:u.string().catch("")}),zC=u.object({orgs:u.array(wC).catch([])}),IC=u.object({id:u.string().catch(""),name:u.string().catch("")}),PC=u.object({workspaces:u.array(IC).catch([]),org:u.string().catch(""),reminted:u.boolean().catch(!1)}),EC=u.object({projectId:u.string().catch(""),name:u.string().catch(""),boundLocally:u.boolean().catch(!1),boundPaths:u.array(u.string()).catch([]),remote:u.string().catch(""),memoryCount:u.number().catch(0),sessionCount:u.number().catch(0),lastCapture:u.string().nullable().catch(null)}),RC=u.object({projects:u.array(EC).catch([]),org:u.string().catch(""),workspace:u.string().catch("")}),CC=u.object({name:u.string().catch(""),path:u.string().catch(""),isGitRepo:u.boolean().catch(!1)}),TC=u.object({path:u.string().catch(""),root:u.string().catch(""),parent:u.string().nullable().catch(null),children:u.array(CC).catch([]),error:u.string().optional()}),bh=Object.freeze({path:"",root:"",parent:null,children:[]}),T0=u.object({bound:u.boolean().catch(!1),path:u.string().catch(""),projectId:u.string().catch(""),error:u.string().optional()}),j0=Object.freeze({bound:!1,path:"",projectId:"",error:"unavailable"}),jC=u.object({unbound:u.boolean().catch(!1),path:u.string().catch("")}),OC=Object.freeze({unbound:!1,path:""}),DC=u.object({switched:u.boolean().catch(!1),org:u.string().catch(""),orgName:u.string().optional(),reminted:u.boolean().catch(!1),error:u.string().optional()}),NC=Object.freeze({switched:!1,org:"",reminted:!1,error:"unavailable"}),LC=u.object({switched:u.boolean().catch(!1),workspace:u.string().catch(""),error:u.string().optional()}),UC=Object.freeze({switched:!1,workspace:"",error:"unavailable"}),Hn=Object.freeze({"x-honeycomb-runtime-path":"plugin","x-honeycomb-session":"dashboard-web"});async function xe(e,t,r,o={}){try{let n=await e(t,{headers:{accept:"application/json",...Hn,...o}});if(!n.ok)return null;let i=await n.json(),a=r.safeParse(i);return a.success?a.data:null}catch{return null}}async function Ut(e,t,r,o){try{let n=await e(t,{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify(r)});if(!n.ok)return null;let i=o.safeParse(await n.json());return i.success?i.data:null}catch{return null}}function AC(e){return e==="memories"?"team":e==="memory"?"org":"session"}var O0=280;function FC(e){if(typeof e!="object"||e===null)return"";let t=e;for(let r of["file_path","path","command","pattern","query","url","prompt","description"]){let o=t[r];if(typeof o=="string"&&o.trim()!=="")return o.trim()}return""}function WC(e){let t;try{t=JSON.parse(e)}catch{return null}if(typeof t!="object"||t===null)return null;let r=t,o=l=>typeof l=="string"?l.trim():"",n=o(r.kind)||o(r.type),i=o(r.tool)||o(r.tool_name),a=o(r.text)||o(r.prompt)||o(r.message);if(n.startsWith("assistant")&&a!=="")return`assistant: ${a}`;if(n.startsWith("user")&&a!=="")return`user: ${a}`;if(i!==""||n==="tool_call"){let l=FC(r.input??r.tool_input),s=i!==""?i:"tool";return l!==""?`${s} \xB7 ${l}`:s}return a!==""?a:null}function MC(e,t){let r=e.trim(),o=r;if(t==="session"||r.startsWith("{")||r.startsWith("[")){let n=WC(r);n!==null&&(o=n)}return o=o.replace(/\s+/g," ").trim(),o.length<=O0?o:`${o.slice(0,O0-1).trimEnd()}\u2026`}var Sh={memoryCount:0,sessionCount:0,turnCount:0,estimatedSavings:0,teamSkillCount:0},kh={orgId:"",orgName:"",workspace:"",settings:{}},mi={built:!1,nodes:[],edges:[]},bu=1500,D0=5e3;function _h(e,t){let r=e.nodes.length>t,o=e.edges.length>D0;if(!r&&!o)return{graph:e,capped:!1};let n=r?e.nodes.slice(0,t):e.nodes,i=new Set(n.map(l=>l.id)),a=[];for(let l of e.edges)if(!(!i.has(l.from)||!i.has(l.to))&&(a.push(l),a.length>=D0))break;return{graph:{...e,nodes:n,edges:a},capped:!0}}var $h=Object.freeze({records:[],count:0,nextCursor:null,persistent:!1}),ZC=Object.freeze({sessions:[],nextCursor:null});function BC(e){let t=[],r=(o,n)=>{n===void 0||n===""||t.push(`${o}=${encodeURIComponent(String(n))}`)};return r("since",e.since),r("until",e.until),r("status",e.status),r("path",e.path),r("org",e.org),r("limit",e.limit),r("cursor",e.cursor),t.length>0?`?${t.join("&")}`:""}function Su(e={}){let t=e.origin??"",r=e.fetchImpl??fetch,o=n=>`${t}${n}`;return{async kpis(){return await xe(r,o(Y.kpis),mR)??Sh},async sessions(){return(await xe(r,o(Y.sessions),gR))?.sessions??[]},async settings(){return await xe(r,o(Y.settings),vR)??kh},async rules(){return(await xe(r,o(Y.rules),SR))?.rules??[]},async skills(){return(await xe(r,o(Y.skills),_R))?.skills??[]},async graph(n){return await xe(r,o(Y.graph),E0,fi(n))??mi},async memoryGraph(n){return await xe(r,o(Y.memoryGraph),E0,fi(n))??mi},async roi(n){return await xe(r,o(Y.roi),TR,fi(n))??vu},async roiTrend(n,i){let a=n!==""?`?range=${encodeURIComponent(n)}`:"";return await xe(r,o(`${Y.roiTrend}${a}`),DR,fi(i))??yu},async recall(n,i){try{let a=await r(o(Y.recall),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn,...fi(i)},body:JSON.stringify({query:n})});if(!a.ok)return{memories:[],degraded:!0};let l=AR.safeParse(await a.json());return l.success?{memories:l.data.hits.map((c,d)=>({memoryKey:c.id!==""?c.id:`hit-${d+1}`,snippet:MC(c.text,c.kind),source:c.source,score:c.score,scope:AC(c.source),verified:c.source==="memories",kind:c.kind,secondary:c.secondary})),degraded:l.data.degraded}:{memories:[],degraded:!0}}catch{return{memories:[],degraded:!0}}},async listMemories(n=fR,i){return(await xe(r,o(`${Y.memories}?limit=${n}`),FR,fi(i)))?.memories??[]},async getMemory(n){return(await xe(r,o(`${Y.memories}/${encodeURIComponent(n)}`),WR))?.memory??null},async addMemory(n){let i={content:n.content};return n.type!==void 0&&(i.type=n.type),n.agentId!==void 0&&(i.agentId=n.agentId),Ut(r,o(Y.memories),i,MR)},async modifyMemory(n,i){let a={content:i.content,reason:i.reason};return i.agentId!==void 0&&(a.agentId=i.agentId),Ut(r,o(`${Y.memories}/${encodeURIComponent(n)}/modify`),a,C0)},async forgetMemory(n,i){return Ut(r,o(`${Y.memories}/${encodeURIComponent(n)}/forget`),{reason:i.reason},C0)},async compact(n){let i=n!==void 0&&n!==""?{table:n}:{};return Ut(r,o(Y.compact),i,BR)},async lifecycleConflicts(n="open"){return(await xe(r,o(`${Y.lifecycleConflicts}?status=${encodeURIComponent(n)}`),HR))?.conflicts??[]},async resolveConflict(n,i){try{let a={verdict:i.verdict};return i.winnerId!==void 0&&i.winnerId!==""&&(a.winnerId=i.winnerId),i.reason!==void 0&&i.reason!==""&&(a.reason=i.reason),(await r(o(`${Y.lifecycleConflicts}/${encodeURIComponent(n)}/resolve`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify(a)})).ok}catch{return!1}},async lifecycleStaleRefs(){return(await xe(r,o(Y.lifecycleStaleRefs),GR))?.staleRefs??[]},async lifecycleHistory(){return(await xe(r,o(`${Y.lifecycleHistory}?type=lifecycle`),KR))?.history??[]},async calibration(){return await xe(r,o(Y.calibration),QR)??xu},async logs(n=40){return(await xe(r,o(`${Y.logs}?limit=${n}`),qR))?.records??[]},logsStream(n){let i=globalThis.EventSource;if(i===void 0)return()=>{};let a;try{a=new i(o(Y.logsStream))}catch{return()=>{}}let l=s=>{let c=VC(s.data);c!==null&&n(c)};return a.addEventListener("log",l),()=>{try{a.removeEventListener("log",l),a.close()}catch{}}},async logsHistory(n={}){let i=BC(n);return await xe(r,o(`${Y.logs}/history${i}`),eC)??$h},async turnsHistory(n={}){let i=[];n.limit!==void 0&&i.push(`limit=${encodeURIComponent(String(n.limit))}`),n.cursor!==void 0&&n.cursor!==""&&i.push(`cursor=${encodeURIComponent(n.cursor)}`);let a=i.length>0?`?${i.join("&")}`:"";return await xe(r,o(`${Y.sessions}${a}`),tC)??ZC},async harnesses(){return(await xe(r,o(Y.harnesses),aC))?.harnesses??[]},async assetsView(){return await xe(r,o(Y.assets),NR)??hu},async syncAction(n,i){let a={assetType:i.assetType,name:i.name};return i.native!==void 0&&(a.native=i.native),i.honeycombId!==void 0&&i.honeycombId!==""&&(a.honeycombId=i.honeycombId),i.harness!==void 0&&i.harness!==""&&(a.harness=i.harness),Ut(r,o(`${Y.syncAction}/${n}`),a,LR)},async health(){try{let n=await r(o(Y.health),{headers:{accept:"application/json",...Hn}}),i=n.ok,a=null;try{let l=await n.json(),s=dC.safeParse(l);a=s.success?s.data.reasons??null:null}catch{a=null}return{up:i,reasons:a}}catch{return{up:!1,reasons:null}}},async pollinate(){try{let n=await r(o(Y.pollinate),{method:"POST",headers:{...Hn}}),i=lC.safeParse(await n.json());return i.success?i.data:{triggered:!1,status:"skipped",reason:"unavailable"}}catch{return{triggered:!1,status:"skipped",reason:"unavailable"}}},async buildGraph(){let n=new AbortController,i=setTimeout(()=>n.abort(),cC);try{let a=await r(o(Y.graphBuild),{method:"POST",headers:{accept:"application/json",...Hn},signal:n.signal});if(!a.ok)return mh;let l=sC.safeParse(await a.json());return l.success?l.data:mh}catch{return mh}finally{clearTimeout(i)}},async vaultSettings(){return await xe(r,o(Y.vaultSettings),mC)??Qa},async setSetting(n,i){try{return(await r(o(`${Y.vaultSettings}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async secretNames(){return(await xe(r,o(Y.secrets),gC))?.names??[]},async setSecret(n,i){try{return(await r(o(`${Y.secrets}/${encodeURIComponent(n)}`),{method:"POST",headers:{"content-type":"application/json",accept:"application/json",...Hn},body:JSON.stringify({value:i})})).ok}catch{return!1}},async authStatus(){return await xe(r,o(Y.authStatus),vC)??hh},async setupState(){return await xe(r,o(Y.setupState),xC)??xh},async setupLogin(){return Ut(r,o(Y.setupLogin),{},bC)},async migrateFromHivemind(){return await Ut(r,o(Y.setupMigrate),{},SC)??kC},async rollbackMigration(){return await Ut(r,o(Y.setupMigrateRollback),{},_C)??$C},async scopeOrgs(){return(await xe(r,o(Y.scopeOrgs),zC))?.orgs??[]},async scopeWorkspaces(n){let i=n!==void 0&&n!==""?`?org=${encodeURIComponent(n)}`:"";return await xe(r,o(`${Y.scopeWorkspaces}${i}`),PC)??{workspaces:[],org:n??"",reminted:!1}},async scopeProjects(n={}){let i=n.unbound===!0?"?unbound=1":"";return(await xe(r,o(`${Y.scopeProjects}${i}`),RC))?.projects??[]},async fsBrowse(n){let i=n!==void 0&&n!==""?`?path=${encodeURIComponent(n)}`:"";return await xe(r,o(`${Y.fsBrowse}${i}`),TC)??bh},async bindProject(n){let i={path:n.path};return n.name!==void 0&&n.name!==""&&(i.name=n.name),await Ut(r,o(Y.projectsBind),i,T0)??j0},async bindExistingProject(n){let i={path:n.path,projectId:n.projectId};return await Ut(r,o(Y.projectsBindExisting),i,T0)??j0},async unbindProject(n){return await Ut(r,o(Y.projectsUnbind),{path:n.path},jC)??OC},async switchOrg(n){return await Ut(r,o(Y.scopeOrgSwitch),{org:n},DC)??NC},async switchWorkspace(n){return await Ut(r,o(Y.scopeWorkspaceSwitch),{workspace:n},LC)??UC}}}function VC(e){if(typeof e!="string")return null;try{let t=yh.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function Pr(e){let t=(e.time||"").slice(11,19)||(e.time||"").slice(0,8),r=e.status>0?` ${e.status}`:"";return`${t} ${e.method} ${e.path}${r}`.trimEnd()}var A0="/api/diagnostics/sync/";function ku(e){return(e.path??"").startsWith(A0)}function F0(e){let t=(e.path??"").slice(A0.length).split("/")[0]??"";switch(t){case"promote":return"published";case"pull":return"pulled";case"demote":return"tombstoned";case"enable":return"enabled";case"disable":return"disabled";default:return t}}var U=A(K(),1);function le({title:e,eyebrow:t,right:r,children:o,style:n}){return(0,U.jsxs)("section",{style:{background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden",display:"flex",flexDirection:"column",...n},children:[(0,U.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:10,padding:"13px 16px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,U.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:600,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em"},children:e}),t&&(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t}),(0,U.jsx)("span",{style:{flex:1}}),r]}),(0,U.jsx)("div",{style:{padding:16,flex:1},children:o})]})}function zh({children:e}){return(0,U.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:e})}var el={cursor:"var(--severity-info)","claude-code":"var(--honey)",codex:"var(--pollinate)",openclaw:"var(--verified)",hermes:"var(--severity-warning)",pi:"var(--severity-critical)"},tl="var(--text-tertiary)",qa=5;function W0({label:e,onClick:t,disabled:r}){return(0,U.jsx)("button",{type:"button",onClick:t,disabled:r,style:{width:22,height:22,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,lineHeight:1,cursor:r?"default":"pointer",opacity:r?.4:1},children:e})}function Z0({sessions:e}){let t=e.length,r=Math.max(1,Math.ceil(t/qa)),[o,n]=_u.default.useState(0),i=Math.min(o,r-1),a=i*qa,l=e.slice(a,a+qa),s=t===0?0:a+1,c=Math.min(a+qa,t),d=t>qa?(0,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,U.jsx)(W0,{label:"\u2039",onClick:()=>n(p=>Math.max(0,p-1)),disabled:i===0}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap"},children:[s,"\u2013",c," of ",t]}),(0,U.jsx)(W0,{label:"\u203A",onClick:()=>n(p=>Math.min(r-1,p+1)),disabled:i>=r-1})]}):void 0;return(0,U.jsx)(le,{title:"Turns",eyebrow:`${t} captured`,right:d,children:t===0?(0,U.jsx)(zh,{children:"No turns captured yet."}):(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:l.map((p,f)=>(0,U.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"84px 1fr auto auto",alignItems:"center",gap:12,padding:"10px 6px",borderTop:f===0?"none":"1px solid var(--border-subtle)"},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:p.sessionId}),(0,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,U.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--text-tertiary)",flex:"none"}}),(0,U.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:p.project})]}),(0,U.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[p.startedAt,p.eventCount>0?` \xB7 ${p.eventCount}e`:""]}),(0,U.jsx)(q,{tone:p.status==="summarized"?"verified":"neutral",mono:!0,children:p.status})]},p.sessionId||f))})})}function B0({rules:e}){return(0,U.jsx)(le,{title:"Rules",eyebrow:"org-wide",children:e.length===0?(0,U.jsx)(zh,{children:"No rules defined."}):(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map((t,r)=>(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"9px 6px"},children:[(0,U.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:t.active?"var(--verified)":"var(--text-disabled)",flex:"none"}}),(0,U.jsx)("span",{style:{fontSize:14,color:t.active?"var(--text-primary)":"var(--text-tertiary)"},children:t.title}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.id})]},t.id||r))})})}var Ih={shared:"verified",synced:"verified",pulled:"honey",pending:"warning",local:"neutral"};function V0({skills:e}){return(0,U.jsx)(le,{title:"Skill-sync",eyebrow:`${e.length} skills`,children:e.length===0?(0,U.jsx)(zh,{children:"No skills synced."}):(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:e.map((t,r)=>(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.name}),(0,U.jsx)("span",{style:{flex:1}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t.scope}),(0,U.jsx)(q,{tone:Ih[t.syncState]??"neutral",mono:!0,dot:!0,children:t.syncState})]},t.name||r))})})}var $u={file:"var(--honey)",function:"var(--severity-info)",class:"var(--pollinate)"},wu="var(--text-tertiary)";function Er({lines:e}){return(0,U.jsx)(le,{title:"Live log",right:(0,U.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,U.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"streaming"})]}),children:(0,U.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:e.length===0?(0,U.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for daemon activity\u2026"}):e.map((t,r)=>(0,U.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:r===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:t},r))})})}var dn=Object.freeze({activeProvider:"activeProvider",activeModel:"activeModel",pollinatingEnabled:"pollinating.enabled",recallMode:"recallMode"}),zu=Object.freeze({anthropic:"ANTHROPIC_API_KEY",openai:"OPENAI_API_KEY",openrouter:"OPENROUTER_API_KEY",cohere:"COHERE_API_KEY"});function M0({value:e,onChange:t,options:r,ariaLabel:o}){return(0,U.jsx)("select",{"aria-label":o,value:e,onChange:n=>t(n.target.value),style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:180},children:r.map(n=>(0,U.jsx)("option",{value:n.value,children:n.label},n.value))})}function JC({on:e,onToggle:t,ariaLabel:r}){return(0,U.jsxs)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":r,onClick:t,style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"0 14px",background:e?"var(--pollinate-subtle)":"var(--bg-elevated)",border:`1px solid ${e?"var(--pollinate-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:e?"var(--pollinate)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:[(0,U.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",background:e?"var(--pollinate)":"var(--text-disabled)"}}),e?"on":"off"]})}function wh({label:e,hint:t,children:r}){return(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,U.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,U.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:e}),t&&(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:t})]}),(0,U.jsx)("span",{style:{flex:1}}),r]})}function Iu({catalog:e,settings:t,secretNames:r,onSave:o}){let n=String(t[dn.activeProvider]??""),i=String(t[dn.activeModel]??""),a=t[dn.pollinatingEnabled]===!0||t[dn.pollinatingEnabled]==="true",l=e.find(b=>b.id===n),[s,c]=_u.default.useState(i);_u.default.useEffect(()=>c(i),[i]);let d=[{value:"",label:"\u2014 select \u2014"},...e.map(b=>({value:b.id,label:b.label||b.id}))],p=[{value:"",label:"\u2014 select \u2014"},...(l?.models??[]).map(b=>({value:b,label:b}))],f=b=>{o(dn.activeProvider,b)},g=b=>{b.length!==0&&o(dn.activeModel,b)},x=()=>{let b=s.trim();b.length>0&&b!==i&&o(dn.activeModel,b)};return(0,U.jsx)(le,{title:"Settings",eyebrow:"provider \xB7 model \xB7 pollinating",children:(0,U.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,U.jsxs)(wh,{label:"Provider",hint:"inference provider",children:[(0,U.jsx)(M0,{ariaLabel:"provider",value:n,onChange:f,options:d}),n.length>0&&(0,U.jsx)(GC,{provider:n,secretNames:r})]}),(0,U.jsx)(wh,{label:"Model",hint:l?.openEnded?"free-form id":"from catalog",children:l===void 0?(0,U.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"pick a provider first"}):l.openEnded?(0,U.jsx)("input",{"aria-label":"model",type:"text",value:s,placeholder:"vendor/model",onChange:b=>c(b.target.value),onBlur:x,onKeyDown:b=>{b.key==="Enter"&&x()},style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:200}}):(0,U.jsx)(M0,{ariaLabel:"model",value:i,onChange:g,options:p})}),(0,U.jsx)(wh,{label:"Pollinating",hint:"background consolidation",children:(0,U.jsx)(JC,{ariaLabel:"pollinating",on:a,onToggle:()=>{o(dn.pollinatingEnabled,!a)}})})]})})}function GC({provider:e,secretNames:t}){let r=zu[e],o=r!==void 0&&t.includes(r);return(0,U.jsx)(q,{tone:o?"verified":"neutral",mono:!0,dot:!0,children:o?"key set \u2713":"not set"})}function H0({url:e,onRetry:t}){return(0,U.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:14,padding:"14px 18px",background:"var(--severity-critical-bg)",border:"1px solid var(--severity-critical)",borderRadius:"var(--radius-lg)"},children:[(0,U.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:"var(--severity-critical)",flex:"none"}}),(0,U.jsxs)("div",{style:{flex:1},children:[(0,U.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Daemon not reachable"}),(0,U.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:e})]}),(0,U.jsx)("button",{onClick:t,style:{height:34,padding:"0 16px",background:"transparent",border:"1px solid var(--severity-critical)",color:"var(--severity-critical)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:"Retry"})]})}var Se=A(ke(),1);var nw=A(ke(),1);var nl=A(ke(),1);var Pu=A(ke(),1),Jn=A(K(),1),Eu=1180;function Qe({title:e,eyebrow:t,right:r,children:o}){return(0,Jn.jsxs)("div",{style:{maxWidth:Eu,margin:"0 auto",width:"100%"},children:[(0,Jn.jsxs)("header",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:18},children:[(0,Jn.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:0},children:[t!==void 0&&t!==""&&(0,Jn.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:t}),(0,Jn.jsx)("h1",{style:{fontSize:"var(--text-lg)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.01em",lineHeight:1.1},children:e})]}),(0,Jn.jsx)("span",{style:{flex:1}}),r]}),(0,Jn.jsx)("div",{children:o})]})}function gi(e,t){let r=Pu.default.useRef(e);Pu.default.useEffect(()=>{r.current=e},[e]),Pu.default.useEffect(()=>{let o=!0,n=async()=>{o&&await r.current()};n();let i=setInterval(()=>{n()},t);return()=>{o=!1,clearInterval(i)}},[t])}var Ru=A(ke(),1);function J0(e){let r=(e.startsWith("#")?e.slice(1):e).trim();return r===""?"/":r}function Cu(){let[e,t]=Ru.default.useState(()=>typeof window>"u"?"/":J0(window.location.hash));Ru.default.useEffect(()=>{if(typeof window>"u")return;let o=()=>t(J0(window.location.hash));return o(),window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]);let r=Ru.default.useCallback(o=>{if(typeof window>"u")return;let n=o.startsWith("#")?o:`#${o}`;window.location.hash=n},[]);return{route:e,navigate:r}}var D=A(K(),1),XC=5e3,KC=2500,G0=12,X0="/harnesses/";function YC(e){if(!e.startsWith(X0))return null;let t=e.slice(X0.length).split("/")[0]??"";return t===""?null:t}function Ph({name:e}){return(0,D.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",flex:"none",background:el[e]??tl}})}function Tu(e){return e.installed?e.active?"active":"idle":"not installed"}var Y0={active:"verified",idle:"neutral","not installed":"neutral"};function vi(e,t=Date.now()){if(e===null||e==="")return"never";let r=Date.parse(e);if(!Number.isFinite(r))return e;let o=Math.max(0,t-r),n=Math.floor(o/1e3);if(n<60)return`${n}s ago`;let i=Math.floor(n/60);if(i<60)return`${i}m ago`;let a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}var Q0={active:"active",idle:"idle","not installed":"not installed"};function QC({h:e,onOpen:t}){let r=Tu(e),o=r==="not installed";return(0,D.jsxs)("button",{type:"button","data-testid":`harness-card-${e.name}`,"data-harness":e.name,onClick:()=>t(e.name),style:{display:"flex",flexDirection:"column",gap:12,padding:16,textAlign:"left",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",cursor:"pointer",opacity:o?.6:1},children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:9},children:[(0,D.jsx)(Ph,{name:e.name}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:e.name}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)(q,{tone:Y0[r],mono:!0,dot:!0,children:Q0[r]})]}),(0,D.jsx)(Kt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,D.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",vi(e.lastSeen)]})]})}function K0({on:e}){return(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:e?"var(--verified)":"var(--text-tertiary)"},children:e?"\u2713":"\u2014"})}function qC({harnesses:e,onOpen:t}){return(0,D.jsx)(le,{title:"Fleet",eyebrow:`${e.length} harnesses`,children:(0,D.jsxs)("div",{role:"table","aria-label":"installed/active matrix",style:{display:"flex",flexDirection:"column"},children:[(0,D.jsx)("div",{role:"row",style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,padding:"6px 6px",borderBottom:"1px solid var(--border-subtle)"},children:["harness","installed","active","last seen","turns"].map(r=>(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:r},r))}),e.map(r=>(0,D.jsxs)("div",{role:"row","data-testid":`harness-row-${r.name}`,"data-harness":r.name,onClick:()=>t(r.name),style:{display:"grid",gridTemplateColumns:"1.6fr 0.8fr 0.8fr 1.2fr 0.8fr",gap:10,alignItems:"center",padding:"9px 6px",cursor:"pointer",borderTop:"1px solid var(--border-subtle)",opacity:r.installed?1:.6},children:[(0,D.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,D.jsx)(Ph,{name:r.name}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)"},children:r.name})]}),(0,D.jsx)(K0,{on:r.installed}),(0,D.jsx)(K0,{on:r.active}),(0,D.jsx)("span",{title:r.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:vi(r.lastSeen)}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:r.turnsCaptured.toLocaleString()})]},r.name))]})})}function e4({harnesses:e,onOpen:t}){return(0,D.jsx)(Qe,{title:"Harnesses",eyebrow:`${e.length} \xB7 fleet`,children:e.length===0?(0,D.jsx)(le,{title:"Harnesses",children:(0,D.jsx)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harness telemetry yet."})}):(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(240px, 1fr))",gap:12,marginBottom:16},children:e.map(r=>(0,D.jsx)(QC,{h:r,onOpen:t},r.name))}),(0,D.jsx)(qC,{harnesses:e,onOpen:t})]})})}function At({label:e,children:t}){return(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right"},children:t})]})}function t4({cap:e}){let t=`${e.hostCli.bin}${e.hostCli.args.length>0?" "+e.hostCli.args.join(" "):""}`.trim();return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsxs)(le,{title:"Runtime",eyebrow:e.runtimePath||"\u2014",style:{marginBottom:16},children:[(0,D.jsx)(At,{label:"runtime path",children:e.runtimePath||"\u2014"}),(0,D.jsx)(At,{label:"context channel",children:e.contextChannel||"\u2014"}),(0,D.jsx)(At,{label:"host CLI",children:t||"\u2014"}),e.hostCli.fallbackBin!==void 0&&e.hostCli.fallbackBin!==""&&(0,D.jsx)(At,{label:"fallback CLI",children:e.hostCli.fallbackBin}),(0,D.jsx)(At,{label:"lifecycle events",children:e.lifecycleEvents.length>0?e.lifecycleEvents.join(", "):"\u2014"})]}),e.agents!==void 0&&(0,D.jsx)("div",{"data-testid":"cap-agents",style:{marginBottom:16},children:(0,D.jsxs)(le,{title:"Agents",eyebrow:"cursor-agent",children:[(0,D.jsx)(At,{label:"agent kind",children:e.agents.kind}),(0,D.jsx)(At,{label:"binary",children:e.agents.binary}),e.agents.fallbackBin!==void 0&&e.agents.fallbackBin!==""&&(0,D.jsx)(At,{label:"fallback",children:e.agents.fallbackBin}),e.workspaceRoots===!0&&(0,D.jsx)(At,{label:"workspace roots",children:"yes"})]})}),e.mcpRegistration===!0&&(0,D.jsx)("div",{"data-testid":"cap-mcp",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"MCP",eyebrow:"registered",children:(0,D.jsx)(At,{label:"honeycomb tools",children:"honeycomb_search \xB7 honeycomb_read \xB7 honeycomb_index"})})}),e.contractedTools===!0&&(0,D.jsx)("div",{"data-testid":"cap-contracted",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"Contracted tools",eyebrow:"registered",children:(0,D.jsx)(At,{label:"tool registration",children:"contracted (no pre-tool hook)"})})}),e.agentsMdContext===!0&&(0,D.jsx)("div",{"data-testid":"cap-agentsmd",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"Context surface",eyebrow:"AGENTS.md",children:(0,D.jsx)(At,{label:"injection",children:"static AGENTS.md block"})})}),e.userVisibleLogin===!0&&(0,D.jsx)("div",{"data-testid":"cap-login",style:{marginBottom:16},children:(0,D.jsx)(le,{title:"Context surface",eyebrow:"login line",children:(0,D.jsx)(At,{label:"injection",children:"user-visible login line"})})})]})}function n4(e,t){if(t==="")return[];let r=t.toLowerCase();return e.filter(o=>(o.path??"").toLowerCase().includes(r))}function r4({name:e,status:t,lines:r,onBack:o}){let n=(0,D.jsx)("button",{type:"button",onClick:o,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"\u2039 Harnesses"});if(t===null)return(0,D.jsx)(Qe,{title:e,eyebrow:"harness",right:n,children:(0,D.jsx)(le,{title:"Unknown harness",children:(0,D.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No telemetry for ",(0,D.jsx)("code",{style:{fontFamily:"var(--font-mono)",color:"var(--text-secondary)"},children:e})," \u2014 it is not one of the six canonical harnesses."]})})});let i=Tu(t);return(0,D.jsxs)(Qe,{title:e,eyebrow:"harness",right:n,children:[(0,D.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,D.jsx)(Ph,{name:e}),(0,D.jsx)(q,{tone:Y0[i],mono:!0,dot:!0,children:Q0[i]}),(0,D.jsx)("span",{style:{flex:1}}),(0,D.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},title:t.lastSeen??"never",children:["last seen ",vi(t.lastSeen)]})]}),(0,D.jsxs)("div",{className:"kpirow",style:{marginBottom:18},children:[(0,D.jsx)(Kt,{label:"Turns",value:t.turnsCaptured.toLocaleString(),accent:t.active?"verified":"neutral"}),(0,D.jsx)(Kt,{label:"Installed",value:t.installed?"yes":"no",accent:t.installed?"honey":"neutral"}),(0,D.jsx)(Kt,{label:"Runtime",value:t.runtimePath||"\u2014",accent:"pollinate"})]}),(0,D.jsx)(t4,{cap:t.capabilities}),(0,D.jsx)(Er,{lines:r})]})}function q0({wire:e}){let{route:t,navigate:r}=Cu(),o=YC(t),[n,i]=nl.default.useState([]),[a,l]=nl.default.useState([]);gi(async()=>i(await e.harnesses()),XC),gi(async()=>{if(o===null){l([]);return}let d=await e.logs(G0*4),p=n4(d,o);l(p.slice(-G0).reverse().map(Pr))},KC);let s=nl.default.useCallback(d=>r(`/harnesses/${d}`),[r]),c=nl.default.useCallback(()=>r("/harnesses"),[r]);if(o!==null){let d=n.find(p=>p.name===o)??null;return(0,D.jsx)(r4,{name:o,status:d,lines:a,onBack:c})}return(0,D.jsx)(e4,{harnesses:n,onOpen:s})}function ew(e){return Array.isArray(e)?e.map(t=>t!==null&&typeof t=="object"&&"name"in t?String(t.name):"").filter(t=>t!=="").map(t=>({route:`/harnesses/${t}`,label:t})):[]}var We=A(K(),1),tw={active:"verified",idle:"neutral"};function o4({h:e}){let r=Tu(e)==="active"?tw.active:tw.idle;return(0,We.jsx)("span",{"data-testid":`harness-chip-${e.name}`,"data-harness":e.name,title:`${e.name} \xB7 last seen ${vi(e.lastSeen)}`,style:{display:"inline-flex"},children:(0,We.jsxs)(q,{tone:r,mono:!0,dot:!0,style:{background:"transparent"},children:[(0,We.jsx)("span",{style:{width:6,height:6,borderRadius:"50%",flex:"none",background:el[e.name]??tl}}),e.name]})})}function i4({h:e}){return(0,We.jsxs)("div",{"data-testid":`harness-tile-${e.name}`,"data-harness":e.name,style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,We.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,We.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:el[e.name]??tl}}),(0,We.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e.name})]}),(0,We.jsx)(Kt,{label:"turns captured",value:e.turnsCaptured.toLocaleString(),accent:e.active?"verified":"neutral",style:{padding:0,background:"transparent",border:"none"}}),(0,We.jsxs)("span",{title:e.lastSeen??"never",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["last seen ",vi(e.lastSeen)]})]})}function rw({harnesses:e,streamLines:t}){let r=nw.default.useMemo(()=>e.filter(o=>o.installed),[e]);return(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,We.jsx)(le,{title:"Harnesses",eyebrow:`${r.length} wired in`,children:r.length===0?(0,We.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No harnesses wired in yet."}):(0,We.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,We.jsx)("div",{"data-testid":"harness-chips",style:{display:"flex",flexWrap:"wrap",gap:8},children:r.map(o=>(0,We.jsx)(o4,{h:o},o.name))}),(0,We.jsx)("div",{"data-testid":"harness-tiles",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12},children:r.map(o=>(0,We.jsx)(i4,{h:o},o.name))})]})}),(0,We.jsx)(Er,{lines:t})]})}var re=A(K(),1),a4=2500,l4=5e3,s4=5e3,ju=8,c4=5;function u4(){return new Date().toTimeString().slice(0,8)}function d4({query:e,setQuery:t,onRecall:r,busy:o}){return(0,re.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:18},children:[(0,re.jsx)("div",{style:{flex:1},children:(0,re.jsx)(sn,{mono:!0,size:"lg",value:e,placeholder:"recall\u2026 e.g. how do we deploy",onChange:n=>t(n.target.value),onKeyDown:n=>{n.key==="Enter"&&r()}})}),(0,re.jsx)(F,{variant:"primary",size:"lg",onClick:r,disabled:o,children:o?"\u2026":"Recall"})]})}function p4(){return(0,re.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",style:{display:"inline-flex"},children:(0,re.jsx)(q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})}var f4=[{key:"storage",label:"storage",degraded:e=>e.storage==="unreachable"},{key:"embeddings",label:"semantic",degraded:e=>e.embeddings==="off"},{key:"schema",label:"schema",degraded:e=>e.schema==="missing_table"}];function m4({reasons:e}){return e===null?null:(0,re.jsxs)("div",{"data-testid":"health-strip",style:{display:"flex",alignItems:"center",gap:8,marginBottom:18,flexWrap:"wrap"},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"subsystems"}),f4.map(t=>{let r=t.degraded(e),o=String(e[t.key]);return(0,re.jsxs)(q,{tone:r?"critical":"verified",mono:!0,dot:!0,children:[t.label,": ",o]},t.key)})]})}function ow({wire:e,pollinating:t=!1}){let[r,o]=Se.default.useState(null),[n,i]=Se.default.useState(Sh),[a,l]=Se.default.useState([]),[s,c]=Se.default.useState([]),[d,p]=Se.default.useState([]),[f,g]=Se.default.useState(Qa),[x,b]=Se.default.useState([]),[w,v]=Se.default.useState([]),[m,y]=Se.default.useState("how do we deploy"),[S,_]=Se.default.useState([]),[E,O]=Se.default.useState(!1),[W,G]=Se.default.useState(!1),[Z,Ze]=Se.default.useState(0),[bt,Xn]=Se.default.useState(!1),[Xe,Kn]=Se.default.useState([]),[Rn,Cr]=Se.default.useState([]),vn=Se.default.useCallback(Re=>{Cr(Pe=>[`${u4()} ${Re}`,...Pe].slice(0,ju))},[]),ie=Se.default.useCallback(async()=>{let[Re,Pe,Et,Q,ve,Be]=await Promise.all([e.kpis(),e.sessions(),e.rules(),e.skills(),e.vaultSettings(),e.secretNames()]);i(Re),l(Pe),c(Et),p(Q),g(ve),b(Be)},[e]),se=Se.default.useCallback(async(Re,Pe)=>{let Et=await e.setSetting(Re,Pe),[Q,ve]=await Promise.all([e.vaultSettings(),e.secretNames()]);return g(Q),b(ve),Et},[e]);Se.default.useEffect(()=>{ie()},[ie]),Se.default.useEffect(()=>{let Re=!0,Pe=async()=>{let Q=await e.logs(ju);Re&&Kn(Q.slice(-ju).reverse().map(Pr))};Pe();let Et=setInterval(()=>{Pe()},a4);return()=>{Re=!1,clearInterval(Et)}},[e]),Se.default.useEffect(()=>{let Re=!0,Pe=async()=>{let{reasons:Q}=await e.health();Re&&o(Q)};Pe();let Et=setInterval(()=>{Pe()},l4);return()=>{Re=!1,clearInterval(Et)}},[e]),Se.default.useEffect(()=>{let Re=!0,Pe=async()=>{let Q=await e.harnesses();Re&&v(Q)};Pe();let Et=setInterval(()=>{Pe()},s4);return()=>{Re=!1,clearInterval(Et)}},[e]);let Ie=Se.default.useCallback(async()=>{let Re=m.trim();if(Re===""||E)return;O(!0);let{memories:Pe,degraded:Et}=await e.recall(Re);_(Pe),G(!0),Xn(Et),Ze(ve=>ve+1);let Q=Pe.length>0?` \xB7 ${Pe[0]?.score.toFixed(2)} top`:"";vn(`recall "${Re}" \u2192 ${Pe.length} hits${Q}`),O(!1)},[m,E,e,vn]),Mt=Se.default.useMemo(()=>[...Rn,...Xe].slice(0,ju),[Rn,Xe]),$i=Se.default.useMemo(()=>Xe.slice(0,c4),[Xe]);return(0,re.jsxs)(re.Fragment,{children:[(0,re.jsxs)("section",{"data-area":"kpi-band","aria-label":"Key metrics",style:{marginBottom:22},children:[(0,re.jsx)(m4,{reasons:r}),(0,re.jsxs)("div",{className:"kpirow",children:[(0,re.jsx)(Kt,{label:"Memories",value:n.memoryCount.toLocaleString(),accent:"honey"}),(0,re.jsx)(Kt,{label:"Turns",value:n.turnCount||n.sessionCount,accent:"neutral"}),(0,re.jsx)(Kt,{label:"Est. savings",value:n.estimatedSavings.toLocaleString(),unit:"tok",accent:"verified"}),(0,re.jsx)(Kt,{label:"Team skills",value:n.teamSkillCount,accent:"pollinate"})]})]}),(0,re.jsxs)("section",{"data-area":"recall-area","aria-label":"Memory search",style:{marginBottom:22},children:[(0,re.jsx)(d4,{query:m,setQuery:y,onRecall:Ie,busy:E}),W&&bt&&(0,re.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,re.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,re.jsx)(p4,{})]}),(0,re.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:S.length===0?W&&(0,re.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):S.map((Re,Pe)=>(0,re.jsx)("div",{className:"mem-enter",style:{animationDelay:`${Pe*55}ms`},children:(0,re.jsx)(Cs,{...Re,pollinating:t&&Pe===1})},Re.memoryKey))},Z)]}),(0,re.jsxs)("section",{"data-area":"harness-area","aria-label":"Harnesses and activity",children:[(0,re.jsx)("div",{style:{marginBottom:16},children:(0,re.jsx)(rw,{harnesses:w,streamLines:$i})}),(0,re.jsxs)("div",{className:"grid2",style:{marginBottom:16},children:[(0,re.jsxs)("div",{className:"col",children:[(0,re.jsx)(Z0,{sessions:a}),(0,re.jsx)(B0,{rules:s})]}),(0,re.jsxs)("div",{className:"col",children:[(0,re.jsx)(Iu,{catalog:f.catalog,settings:f.settings,secretNames:x,onSave:se}),(0,re.jsx)(V0,{skills:d})]})]}),(0,re.jsx)(Er,{lines:Mt})]})]})}var Oe=A(ke(),1);var Ue=A(ke(),1),Je=A(K(),1),Ch=Object.freeze({org:"local",workspace:"default"}),iw="honeycomb.dashboard.scope",aw=Ue.default.createContext({scope:Ch,setScope:()=>{}});function pn(){return Ue.default.useContext(aw)}var g4=Object.freeze({orgs:[],workspaces:[],projects:[],projectsHydrated:!1,loadingWorkspaces:!1,switchFeedback:null,selectOrg:()=>{},selectWorkspace:()=>{},selectProject:()=>{}}),lw=Ue.default.createContext(g4);function Th(){return Ue.default.useContext(lw)}function v4(){try{if(typeof localStorage>"u")return null;let e=localStorage.getItem(iw);if(e===null||e==="")return null;let t=JSON.parse(e);if(typeof t!="object"||t===null)return null;let r=t,o=typeof r.org=="string"?r.org:"",n=typeof r.workspace=="string"?r.workspace:"";if(o===""||n==="")return null;let i=typeof r.project=="string"&&r.project!==""?r.project:void 0;return i!==void 0?{org:o,workspace:n,project:i}:{org:o,workspace:n}}catch{return null}}function y4(e){try{if(typeof localStorage>"u")return;localStorage.setItem(iw,JSON.stringify(e))}catch{}}function sw({wire:e,children:t}){let r=Ue.default.useMemo(()=>v4(),[]),[o,n]=Ue.default.useState(r??Ch),[i,a]=Ue.default.useState([]),[l,s]=Ue.default.useState([]),[c,d]=Ue.default.useState([]),[p,f]=Ue.default.useState(!1),[g,x]=Ue.default.useState(!1),[b,w]=Ue.default.useState(null),v=Ue.default.useCallback(G=>{n(G),y4(G)},[]),m=Ue.default.useCallback(G=>v(G),[v]),y=Ue.default.useCallback(async()=>{let G=await e.scopeProjects();d(G),f(!0)},[e]);Ue.default.useEffect(()=>{let G=!0;return(async()=>{let Z=await e.scopeOrgs();G&&a(Z)})(),(async()=>{let Z=await e.scopeWorkspaces();G&&s(Z.workspaces)})(),y(),()=>{G=!1}},[e,y]);let S=Ue.default.useCallback(G=>{x(!0),w({kind:"persisted",message:"switching org\u2026",pending:!0}),(async()=>{try{let Z=await e.switchOrg(G);if(!Z.switched){w({kind:"error",message:Z.error!==void 0&&Z.error!==""?`could not switch: ${Z.error}`:"could not switch org"});return}v({org:Z.org,workspace:Ch.workspace,project:void 0});let Ze=await e.scopeWorkspaces(Z.org);s(Ze.workspaces),d([]),f(!0),w({kind:"persisted",message:Z.reminted?`switched to ${Z.orgName??Z.org} \xB7 re-minted`:`switched to ${Z.orgName??Z.org}`})}finally{x(!1)}})()},[e,v]),_=Ue.default.useCallback(G=>{w({kind:"persisted",message:"switching workspace\u2026",pending:!0}),(async()=>{let Z=await e.switchWorkspace(G);if(!Z.switched){w({kind:"error",message:Z.error!==void 0&&Z.error!==""?`could not switch: ${Z.error}`:"could not switch workspace"});return}v({org:o.org,workspace:Z.workspace,project:void 0}),await y(),w({kind:"persisted",message:`switched to ${Z.workspace}`})})()},[e,v,o.org,y]),E=Ue.default.useCallback(G=>{v({org:o.org,workspace:o.workspace,...G!==void 0?{project:G}:{}}),w({kind:"view",message:G!==void 0?"view filter \u2014 capture is set by folder binding":"view cleared"})},[v,o.org,o.workspace]),O=Ue.default.useMemo(()=>({scope:o,setScope:m}),[o,m]),W=Ue.default.useMemo(()=>({orgs:i,workspaces:l,projects:c,projectsHydrated:p,loadingWorkspaces:g,switchFeedback:b,selectOrg:S,selectWorkspace:_,selectProject:E}),[i,l,c,p,g,b,S,_,E]);return(0,Je.jsx)(aw.Provider,{value:O,children:(0,Je.jsx)(lw.Provider,{value:W,children:t})})}var h4={width:"100%",height:30,padding:"0 8px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"};function Eh({label:e,testId:t,value:r,disabled:o,onChange:n,children:i}){return(0,Je.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:3},children:[(0,Je.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:e}),(0,Je.jsx)("select",{"data-testid":t,value:r,disabled:o,onChange:a=>n(a.target.value),style:{...h4,opacity:o?.6:1},children:i})]})}var x4="__unsorted__",Rh="";function cw({collapsed:e}){let{scope:t}=pn(),r=Th();return e?null:(0,Je.jsxs)("div",{"data-testid":"scope-switcher",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,Je.jsxs)(Eh,{label:"org",testId:"scope-org",value:t.org,onChange:r.selectOrg,children:[r.orgs.length===0&&(0,Je.jsx)("option",{value:t.org,children:t.org}),r.orgs.map(o=>(0,Je.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,Je.jsxs)(Eh,{label:"workspace",testId:"scope-workspace",value:t.workspace,disabled:r.loadingWorkspaces,onChange:r.selectWorkspace,children:[r.workspaces.length===0&&(0,Je.jsx)("option",{value:t.workspace,children:r.loadingWorkspaces?"loading\u2026":t.workspace}),r.workspaces.map(o=>(0,Je.jsx)("option",{value:o.id,children:o.name!==""?o.name:o.id},o.id))]}),(0,Je.jsxs)(Eh,{label:"project \xB7 view filter",testId:"scope-project",value:t.project??Rh,onChange:o=>r.selectProject(o===Rh?void 0:o),children:[(0,Je.jsx)("option",{value:Rh,children:"\u2014 select a project \u2014"}),r.projects.map(o=>(0,Je.jsx)("option",{value:o.projectId,children:o.projectId===x4?"(unsorted inbox)":o.name!==""?o.name:o.projectId},o.projectId))]}),(0,Je.jsx)("span",{"data-testid":"project-view-hint",style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",lineHeight:1.4},children:"Filters what you VIEW. To set where Honeycomb captures, bind a folder in Projects."}),r.switchFeedback!==null&&(0,Je.jsxs)("span",{"data-testid":"switch-feedback","data-kind":r.switchFeedback.kind,style:{fontFamily:"var(--font-mono)",fontSize:10,color:r.switchFeedback.kind==="error"?"var(--severity-critical)":r.switchFeedback.kind==="persisted"?"var(--verified)":"var(--text-tertiary)"},children:[r.switchFeedback.pending===!0?"\u27F3 ":r.switchFeedback.kind==="persisted"?"\u2713 ":"",r.switchFeedback.message]})]})}var jh=A(ke(),1);var Ft=A(ke(),1);var oe=A(K(),1),b4="honeycomb project bind";function uw(e){let r=e.replace(/[\\/]+$/,"").split(/[\\/]/);return r[r.length-1]??""}function S4({child:e,onDescend:t}){return(0,oe.jsxs)("button",{type:"button","data-testid":"browse-row","data-path":e.path,onClick:()=>t(e.path),style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,oe.jsx)("svg",{width:15,height:15,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none",color:"var(--text-tertiary)"},children:(0,oe.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),(0,oe.jsx)("span",{style:{flex:1,fontFamily:"var(--font-mono)",fontSize:13,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.name}),e.isGitRepo&&(0,oe.jsx)(q,{tone:"honey",mono:!0,children:"git"})]})}function Ou({wire:e,onBound:t,onCancel:r}){let[o,n]=Ft.default.useState(bh),[i,a]=Ft.default.useState(!1),[l,s]=Ft.default.useState(null),[c,d]=Ft.default.useState(""),[p,f]=Ft.default.useState(!1),[g,x]=Ft.default.useState(""),b=Ft.default.useRef(!1),w=Ft.default.useCallback(async E=>{let O=await e.fsBrowse(E);n(O),a(!0)},[e]);Ft.default.useEffect(()=>{w(void 0)},[w]);let v=i&&o.path===""&&o.children.length===0,m=o.error!==void 0&&o.error!=="",y=Ft.default.useCallback(()=>{o.path!==""&&(s({path:o.path,isGitRepo:!1}),d(uw(o.path)),x(""))},[o.path]),S=Ft.default.useCallback(E=>{s({path:E.path,isGitRepo:E.isGitRepo}),d(uw(E.path)),x("")},[]),_=Ft.default.useCallback(async()=>{if(l===null||b.current)return;b.current=!0,f(!0),x("");let E=await e.bindProject({path:l.path,...c.trim()!==""?{name:c.trim()}:{}});if(f(!1),b.current=!1,E.bound){t(E);return}x(E.error!==void 0&&E.error!==""?E.error:"Could not bind that folder.")},[l,c,e,t]);return(0,oe.jsx)("div",{"data-testid":"folder-picker",style:{display:"flex",flexDirection:"column",gap:14},children:v?(0,oe.jsxs)("div",{"data-testid":"picker-unavailable",style:{display:"flex",flexDirection:"column",gap:8,padding:"16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,oe.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)"},children:"The folder browser isn\u2019t available right now."}),(0,oe.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["Bind a folder from your terminal instead: ",(0,oe.jsx)("code",{style:{color:"var(--honey)"},children:b4})]}),r!==void 0&&(0,oe.jsx)("div",{children:(0,oe.jsx)(F,{variant:"ghost",size:"sm",onClick:r,children:"Close"})})]}):(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,oe.jsx)("span",{"data-testid":"picker-path",style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o.path!==""?o.path:"loading\u2026"}),(0,oe.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>{w(o.parent??void 0)},disabled:o.parent===null,title:o.parent===null?"at the allowed root":"up one level",children:"\u2191 up"}),(0,oe.jsx)(F,{variant:"secondary",size:"sm",onClick:y,disabled:o.path==="","data-testid":"select-current",children:"Use this folder"})]}),(0,oe.jsx)("div",{"data-testid":"browse-list",style:{display:"flex",flexDirection:"column",gap:6,maxHeight:280,overflowY:"auto"},children:i?o.children.length===0?(0,oe.jsx)("div",{style:{padding:"10px 4px",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:m?"This folder couldn\u2019t be read.":"No sub-folders here \u2014 use this folder, or go up."}):o.children.map(E=>(0,oe.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,oe.jsx)("div",{style:{flex:1,minWidth:0},children:(0,oe.jsx)(S4,{child:E,onDescend:O=>{w(O)}})}),(0,oe.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>S(E),"data-testid":"select-child",title:"select this folder to bind",children:"select"})]},E.path)):(0,oe.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),l!==null&&(0,oe.jsxs)("div",{"data-testid":"picker-confirm",style:{display:"flex",flexDirection:"column",gap:10,padding:14,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,oe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"folder"}),(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:l.path}),l.isGitRepo&&(0,oe.jsx)(q,{tone:"honey",mono:!0,children:"git"})]}),(0,oe.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4},children:[(0,oe.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"project name"}),(0,oe.jsx)(sn,{mono:!0,value:c,placeholder:"project name",onChange:E=>d(E.target.value),"data-testid":"picker-name"})]}),(0,oe.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,oe.jsx)(F,{variant:"primary",onClick:()=>{_()},disabled:p||c.trim()==="","data-testid":"picker-bind",children:p?"Binding\u2026":"Bind project"}),r!==void 0&&(0,oe.jsx)(F,{variant:"ghost",onClick:r,disabled:p,children:"Cancel"}),g!==""&&(0,oe.jsx)("span",{"data-testid":"picker-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})]})})}var Wt=A(K(),1);function yi({surface:e}){return(0,Wt.jsxs)("div",{"data-testid":"needs-project-selection",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:320,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Wt.jsx)("div",{style:{fontSize:15,color:"var(--text-secondary)"},children:"No project selected."}),(0,Wt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:["Pick a project in the scope switcher (top of the sidebar) to view its ",e,"."]})]})}function dw({wire:e,navigate:t,assetBase:r}){let[o,n]=jh.default.useState(!1),i=jh.default.useCallback(a=>{t(Oh)},[t]);return(0,Wt.jsxs)("div",{"data-testid":"first-run-bind",style:{display:"flex",flexDirection:"column",alignItems:"center",gap:16,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:[(0,Wt.jsx)("img",{src:`${r}/honeycomb-memory-cluster.svg`,width:48,height:48,alt:""}),(0,Wt.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:480},children:[(0,Wt.jsx)("div",{style:{fontSize:17,fontWeight:700,color:"var(--text-primary)",letterSpacing:"-0.02em"},children:"No active projects?"}),(0,Wt.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)",lineHeight:1.5},children:"Pick a folder to start \u2014 point Honeycomb at the repo or folder you want it to remember, and it begins capturing there."})]}),o?(0,Wt.jsx)("div",{style:{width:"100%",maxWidth:620,textAlign:"left"},children:(0,Wt.jsx)(Ou,{wire:e,onBound:i,onCancel:()=>n(!1)})}):(0,Wt.jsx)(F,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"first-run-pick",children:"Pick a folder to start"})]})}var M=A(K(),1),k4=8e3,hi={width:1600,height:1e3},Nh=.25,Lh=4,Du=1.15,Dh={scale:1,tx:0,ty:0};function Uh(e,t,r){return Math.min(r,Math.max(t,e))}function _4(e){let t=hi.width/e.scale,r=hi.height/e.scale;return`${e.tx} ${e.ty} ${t} ${r}`}function $4(e){let t=new Set,r=[];for(let o of e.nodes)t.has(o.kind)||(t.add(o.kind),r.push(o.kind));return r}function w4(e,t){if(t.size===0)return e;let r=e.nodes.filter(i=>!t.has(i.kind)),o=new Set(r.map(i=>i.id)),n=e.edges.filter(i=>o.has(i.from)&&o.has(i.to));return{built:e.built,nodes:r,edges:n}}function z4(e,t){let r=t.trim().toLowerCase();return r===""?null:e.nodes.find(n=>n.id.toLowerCase().includes(r)||n.label.toLowerCase().includes(r))?.id??null}function I4(e,t){let r=hi.width/t,o=hi.height/t;return{scale:t,tx:e.x-r/2,ty:e.y-o/2}}function P4({kind:e,count:t,hidden:r,onToggle:o}){let n=$u[e]??wu;return(0,M.jsxs)("button",{type:"button",role:"switch","aria-checked":!r,"data-testid":`kind-toggle-${e}`,"data-hidden":r,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:7,height:28,padding:"0 11px",background:r?"var(--bg-elevated)":"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-full)",color:r?"var(--text-tertiary)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",opacity:r?.55:1},children:[(0,M.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:n,flex:"none"}}),e||"node",(0,M.jsx)("span",{style:{color:"var(--text-tertiary)"},children:t})]})}function pw({kind:e,labels:t}){return(0,M.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:3,marginBottom:8},children:[(0,M.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:[e||"\u2014"," \xB7 ",t.length]}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-word"},children:t.join(", ")})]})}function E4({node:e,graph:t,onClear:r}){let{outgoing:o,incoming:n}=Rk(e.id,t.edges),i=s=>t.nodes.find(c=>c.id===s)?.label||s,a=s=>s.map(i),l=o.length>0||n.length>0;return(0,M.jsxs)("aside",{"data-testid":"graph-detail-panel",style:{width:320,flex:"none",alignSelf:"stretch",padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",display:"flex",flexDirection:"column",gap:10,overflow:"auto"},children:[(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,M.jsx)("span",{style:{width:9,height:9,borderRadius:"50%",background:$u[e.kind]??wu,flex:"none"}}),(0,M.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:0,wordBreak:"break-word"},children:e.label}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsx)(q,{tone:"neutral",mono:!0,children:e.kind||"node"})]}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",wordBreak:"break-all"},children:e.id}),(0,M.jsx)("div",{style:{height:1,background:"var(--border-subtle)",margin:"2px 0"}}),!l&&(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no neighbors"}),o.length>0&&(0,M.jsxs)("div",{"data-testid":"detail-outgoing",children:[(0,M.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Outgoing"}),o.map(s=>(0,M.jsx)(pw,{kind:s.kind,labels:a(s.ids)},`out-${s.kind}`))]}),n.length>0&&(0,M.jsxs)("div",{"data-testid":"detail-incoming",children:[(0,M.jsx)("div",{style:{fontSize:12,fontWeight:600,color:"var(--text-primary)",marginBottom:6},children:"Incoming"}),n.map(s=>(0,M.jsx)(pw,{kind:s.kind,labels:a(s.ids)},`in-${s.kind}`))]}),(0,M.jsx)("div",{"data-testid":"calls-caveat",style:{marginTop:"auto",padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)"},children:(0,M.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",lineHeight:"16px"},children:["Cross-file ",(0,M.jsx)("code",{style:{color:"var(--text-secondary)"},children:"calls"})," resolve only for relative named/namespace imports \u2014 an empty incoming list is not proof of dead code."]})}),(0,M.jsx)("button",{type:"button",onClick:r,style:{height:28,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer",alignSelf:"flex-start"},children:"clear selection"})]})}function R4({graph:e,selected:t,transform:r,onSelect:o,onClear:n,onPanZoom:i}){let a=Oe.default.useMemo(()=>Ts(e.nodes,e.edges,hi),[e]),l=Oe.default.useRef(null),s=f=>{l.current={x:f.clientX,y:f.clientY,tx:r.tx,ty:r.ty},f.currentTarget.setPointerCapture?.(f.pointerId)},c=f=>{let g=l.current;if(g===null)return;let x=(f.clientX-g.x)/r.scale,b=(f.clientY-g.y)/r.scale;i({scale:r.scale,tx:g.tx-x,ty:g.ty-b})},d=()=>{l.current=null},p=f=>{let g=f.deltaY<0?Du:1/Du,x=Uh(r.scale*g,Nh,Lh);i({scale:x,tx:r.tx,ty:r.ty})};return(0,M.jsxs)("svg",{"data-testid":"graph-canvas",viewBox:_4(r),onPointerDown:s,onPointerMove:c,onPointerUp:d,onPointerLeave:d,onWheel:p,onClick:n,style:{width:"100%",height:"100%",display:"block",cursor:"grab",touchAction:"none",background:"var(--bg-canvas)"},children:[e.edges.map((f,g)=>{let x=a.get(f.from),b=a.get(f.to);return x===void 0||b===void 0?null:(0,M.jsx)("line",{x1:x.x,y1:x.y,x2:b.x,y2:b.y,stroke:"var(--border-strong)",strokeWidth:1.5},g)}),e.nodes.map(f=>{let g=a.get(f.id);if(g===void 0)return null;let x=f.id===t;return(0,M.jsxs)("g",{role:"button",tabIndex:0,"aria-label":`node ${f.label}`,"aria-pressed":x,"data-node-id":f.id,style:{cursor:"pointer"},onClick:b=>{b.stopPropagation(),o(f.id)},children:[x&&(0,M.jsx)("circle",{cx:g.x,cy:g.y,r:16,fill:"none",stroke:"var(--honey)",strokeWidth:2}),(0,M.jsx)("circle",{cx:g.x,cy:g.y,r:x?12:9,fill:$u[f.kind]??wu}),(0,M.jsx)("text",{x:g.x+15,y:g.y+4,fontFamily:"var(--font-mono)",fontSize:13,fill:"var(--text-secondary)",children:f.label})]},f.id)})]})}function C4({source:e,wire:t,onBuilt:r}){return(0,M.jsx)("div",{"data-testid":"graph-empty-state",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:10,minHeight:360,padding:"48px 16px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",textAlign:"center"},children:e==="codebase"?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No graph built for this workspace."}),(0,M.jsx)(df,{wire:t,onBuilt:r})]}):(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)("div",{style:{fontSize:15,color:"var(--text-tertiary)"},children:"No memory graph yet for this workspace."}),(0,M.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",maxWidth:460},children:"The knowledge graph is populated automatically as memories and entities accrue."})]})})}function fw({label:e,ariaLabel:t,onClick:r}){return(0,M.jsx)("button",{type:"button","aria-label":t,onClick:r,style:{width:30,height:30,padding:0,background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:14,lineHeight:1,cursor:"pointer"},children:e})}function T4({source:e,onPick:t}){let r=(o,n)=>{let i=e===o;return(0,M.jsx)("button",{type:"button",role:"tab","aria-selected":i,"data-testid":`source-${o}`,onClick:()=>t(o),style:{height:30,padding:"0 14px",background:i?"var(--honey-subtle)":"transparent",border:`1px solid ${i?"var(--honey-border)":"var(--border-default)"}`,color:i?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,cursor:"pointer"},children:n})};return(0,M.jsxs)("div",{role:"tablist","aria-label":"graph source",style:{display:"inline-flex",gap:0,borderRadius:"var(--radius-md)",overflow:"hidden"},children:[r("codebase","Codebase"),r("memory","Memory")]})}function mw({wire:e}){let{scope:t}=pn(),r=t.project,[o,n]=Oe.default.useState("codebase"),[i,a]=Oe.default.useState(mi),[l,s]=Oe.default.useState(null),[c,d]=Oe.default.useState(new Set),[p,f]=Oe.default.useState(""),[g,x]=Oe.default.useState(Dh),[b,w]=Oe.default.useState(0);Oe.default.useEffect(()=>{if(r===void 0){a(mi);return}let ie=!0,se=async()=>{let Mt=o==="memory"?await e.memoryGraph(r):await e.graph(r);ie&&a(Mt)};se();let Ie=setInterval(()=>{se()},k4);return()=>{ie=!1,clearInterval(Ie)}},[e,o,b,r]);let v=Oe.default.useCallback(()=>w(ie=>ie+1),[]),m=Oe.default.useCallback(ie=>{n(ie),a(mi),s(null),d(new Set),f(""),x(Dh)},[]),y=Oe.default.useMemo(()=>$4(i),[i]),S=Oe.default.useMemo(()=>w4(i,c),[i,c]),{graph:_,capped:E}=Oe.default.useMemo(()=>_h(S,bu),[S]),O=i.meta?.truncated??!1,W=O||E,G=l!==null?_.nodes.find(ie=>ie.id===l)??null:null,Z=Oe.default.useCallback(ie=>{d(se=>{let Ie=new Set(se);return Ie.has(ie)?Ie.delete(ie):Ie.add(ie),Ie})},[]),Ze=Oe.default.useCallback(ie=>{f(ie);let se=z4(_,ie);if(se===null)return;s(se);let Mt=Ts(_.nodes,_.edges,hi).get(se);Mt!==void 0&&x(I4(Mt,Math.max(g.scale,1.4)))},[_,g.scale]),bt=Oe.default.useCallback(()=>x(Dh),[]),Xn=Oe.default.useCallback(()=>x(ie=>({...ie,scale:Uh(ie.scale*Du,Nh,Lh)})),[]),Xe=Oe.default.useCallback(()=>x(ie=>({...ie,scale:Uh(ie.scale/Du,Nh,Lh)})),[]),Kn=Oe.default.useCallback(ie=>s(se=>se===ie?null:ie),[]),Rn=Oe.default.useCallback(()=>s(null),[]),Cr=`${o} \xB7 ${_.nodes.length} nodes \xB7 ${_.edges.length} edges`;return(0,M.jsx)(Qe,{title:"Graph",eyebrow:r===void 0?"graph":Cr,right:(0,M.jsx)(T4,{source:o,onPick:m}),children:r===void 0?(0,M.jsx)(yi,{surface:"codebase & memory graph"}):i.built?(0,M.jsxs)(M.Fragment,{children:[W&&(0,M.jsxs)("div",{"data-testid":"graph-truncation-notice",style:{display:"flex",alignItems:"center",gap:8,marginBottom:14,padding:"9px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-subtle)",borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[(0,M.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--severity-warning)",flex:"none"}}),O?`Showing the ${(i.meta?.shownNodes??i.nodes.length).toLocaleString()} most-connected of ${(i.meta?.totalNodes??i.nodes.length).toLocaleString()} nodes. Use search and kind filters to focus.`:`Rendering is capped at ${bu.toLocaleString()} nodes. Use search and kind filters to focus.`]}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,marginBottom:14,flexWrap:"wrap"},children:[(0,M.jsx)("input",{"aria-label":"search nodes","data-testid":"graph-search",type:"text",value:p,placeholder:"search id or label\u2026",onChange:ie=>Ze(ie.target.value),style:{height:30,padding:"0 12px",minWidth:220,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13}}),(0,M.jsx)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:y.map(ie=>{let se=i.nodes.filter(Ie=>Ie.kind===ie).length;return(0,M.jsx)(P4,{kind:ie,count:se,hidden:c.has(ie),onToggle:()=>Z(ie)},ie)})}),(0,M.jsx)("span",{style:{flex:1}}),(0,M.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,M.jsx)(fw,{label:"\u2212",ariaLabel:"zoom out",onClick:Xe}),(0,M.jsx)(fw,{label:"+",ariaLabel:"zoom in",onClick:Xn}),(0,M.jsx)("button",{type:"button","data-testid":"fit-view",onClick:bt,style:{height:30,padding:"0 12px",background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:12,cursor:"pointer"},children:"fit"})]})]}),(0,M.jsxs)("div",{style:{display:"flex",gap:16,alignItems:"stretch"},children:[(0,M.jsx)("div",{style:{flex:1,minWidth:0,height:"70vh",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)",overflow:"hidden"},children:(0,M.jsx)(R4,{graph:_,selected:G?.id??null,transform:g,onSelect:Kn,onClear:Rn,onPanZoom:x})}),G!==null&&(0,M.jsx)(E4,{node:G,graph:i,onClear:Rn})]})]}):(0,M.jsx)(C4,{source:o,wire:e,onBuilt:v})})}var De=A(ke(),1);var N=A(K(),1),gw=30,j4=50,vw=50;function O4(e){return e>=500?"critical":e>=400?"warning":e>=200&&e<300?"verified":"neutral"}function D4(e){return(e||"").slice(11,19)||(e||"").slice(0,8)}function xw({record:e,live:t}){let r=e.status,o=e.org??"",n=e.durationMs;return(0,N.jsxs)("div",{"data-testid":"log-row",style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:t?"var(--text-primary)":"var(--text-tertiary)"},children:D4(e.time)}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:"var(--text-secondary)"},children:e.method}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},title:e.path,children:e.path}),(0,N.jsx)(q,{tone:O4(r),mono:!0,children:r>0?r:"\u2014"}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:48},children:typeof n=="number"?`${Math.round(n)}ms`:""}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textAlign:"right",minWidth:60},children:o})]})}function N4(){let e=(t,r="left")=>(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:r},children:t});return(0,N.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"76px 64px 1fr auto auto auto",alignItems:"center",gap:12,padding:"4px 6px 8px"},children:[e("time"),e("method"),e("path"),e("status"),e("dur","right"),e("org","right")]})}var xi={since:"",until:"",status:"",path:"",org:""};function yw(e){let t={limit:j4};return e.since!==""&&(t.since=e.since),e.until!==""&&(t.until=e.until),e.status!==""&&(t.status=e.status),e.path!==""&&(t.path=e.path),e.org!==""&&(t.org=e.org),t}function rl({label:e,value:t,placeholder:r,onChange:o,testid:n}){return(0,N.jsxs)("label",{style:{display:"flex",flexDirection:"column",gap:4,minWidth:130,flex:"1 1 130px"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)"},children:e}),(0,N.jsx)(sn,{mono:!0,size:"sm",value:t,placeholder:r,onChange:i=>o(i.target.value),"data-testid":n})]})}function L4({draft:e,onChangeField:t,onApply:r,onClear:o}){return(0,N.jsx)(le,{title:"Filters",eyebrow:"time \xB7 status \xB7 path \xB7 harness",children:(0,N.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:12,alignItems:"flex-end"},children:[(0,N.jsx)(rl,{label:"since (ISO)",value:e.since,placeholder:"2026-06-22T00:00:00Z",onChange:n=>t("since",n),testid:"filter-since"}),(0,N.jsx)(rl,{label:"until (ISO)",value:e.until,placeholder:"2026-06-22T23:59:59Z",onChange:n=>t("until",n),testid:"filter-until"}),(0,N.jsx)(rl,{label:"status / level",value:e.status,placeholder:"5xx or 404",onChange:n=>t("status",n),testid:"filter-status"}),(0,N.jsx)(rl,{label:"path",value:e.path,placeholder:"/api/memories",onChange:n=>t("path",n),testid:"filter-path"}),(0,N.jsx)(rl,{label:"harness / org",value:e.org,placeholder:"org id",onChange:n=>t("org",n),testid:"filter-org"}),(0,N.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,N.jsx)(F,{variant:"primary",size:"sm","data-testid":"filter-apply",onClick:r,children:"Apply"}),(0,N.jsx)(F,{variant:"ghost",size:"sm","data-testid":"filter-clear",onClick:o,children:"Clear"})]})]})})}function U4(e,t){let r=[t,...e];return r.length>gw?r.slice(0,gw):r}function A4({records:e,open:t,onToggle:r}){return(0,N.jsx)(le,{title:"Live tail",eyebrow:`${e.length} streaming`,right:(0,N.jsx)("button",{type:"button","data-testid":"live-toggle","aria-expanded":t,onClick:r,style:{background:"transparent",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-secondary)",fontFamily:"var(--font-mono)",fontSize:11,padding:"4px 10px",cursor:"pointer"},children:t?"collapse":"expand"}),children:t?e.length===0?(0,N.jsx)("div",{"data-testid":"live-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"waiting for daemon activity\u2026"}):(0,N.jsx)("div",{"data-testid":"live-list",children:e.map((o,n)=>(0,N.jsx)(xw,{record:o,live:!0},`${o.time}-${o.path}-${n}`))}):(0,N.jsx)("div",{style:{padding:"4px",fontSize:12,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"live tail collapsed"})})}function F4({page:e,loading:t,error:r,onLoadMore:o}){return(0,N.jsx)(le,{title:"History",eyebrow:e.persistent?`${e.count} on this page`:"history unavailable",children:r?(0,N.jsx)("div",{"data-testid":"history-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load log history."}):t&&e.records.length===0?(0,N.jsx)("div",{"data-testid":"history-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.persistent?e.records.length===0?(0,N.jsx)("div",{"data-testid":"history-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No logs match these filters."}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(N4,{}),(0,N.jsx)("div",{"data-testid":"history-list",children:e.records.map((n,i)=>(0,N.jsx)(xw,{record:n},`${n.time}-${n.path}-${n.status}-${i}`))}),e.nextCursor!==null&&(0,N.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,N.jsx)(F,{variant:"secondary",size:"sm",disabled:t,"data-testid":"history-load-more",onClick:o,children:t?"loading\u2026":"Load more"})})]}):(0,N.jsx)("div",{"data-testid":"history-unavailable",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"Durable log history is unavailable on this daemon. Live tail above still streams current activity."})})}function ol({label:e,children:t}){return(0,N.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,N.jsx)("span",{style:{flex:1}}),(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function W4({turn:e,onBack:t}){return(0,N.jsx)(le,{title:"Turn detail",eyebrow:e.sessionId,right:(0,N.jsx)(F,{variant:"ghost",size:"sm","data-testid":"turn-back",onClick:t,children:"\u2039 Back"}),children:(0,N.jsxs)("div",{"data-testid":"turn-detail",children:[(0,N.jsx)(ol,{label:"turn id",children:e.sessionId||"\u2014"}),(0,N.jsx)(ol,{label:"project",children:e.project||"\u2014"}),(0,N.jsx)(ol,{label:"timestamp",children:e.startedAt||"\u2014"}),(0,N.jsx)(ol,{label:"event count",children:e.eventCount}),(0,N.jsx)(ol,{label:"status",children:(0,N.jsx)(q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})})]})})}function M4({turn:e,onOpen:t}){return(0,N.jsxs)("button",{type:"button","data-testid":`turn-row-${e.sessionId}`,onClick:()=>t(e),style:{display:"grid",gridTemplateColumns:"96px 1fr auto auto",alignItems:"center",gap:12,width:"100%",padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",background:"transparent",border:"none",borderTopColor:"var(--border-subtle)",cursor:"pointer",textAlign:"left"},children:[(0,N.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.sessionId}),(0,N.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.project}),(0,N.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:[e.startedAt,e.eventCount>0?` \xB7 ${e.eventCount}e`:""]}),(0,N.jsx)(q,{tone:e.status==="summarized"?"verified":"neutral",mono:!0,children:e.status})]})}function Z4({turns:e,loading:t,error:r,hasMore:o,onOpen:n,onLoadMore:i}){return(0,N.jsx)(le,{title:"Turns",eyebrow:`${e.length} captured`,children:r?(0,N.jsx)("div",{"data-testid":"turns-error",style:{padding:"12px 4px",fontSize:13,color:"var(--severity-critical)",fontFamily:"var(--font-mono)"},children:"Could not load turns."}):t&&e.length===0?(0,N.jsx)("div",{"data-testid":"turns-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):e.length===0?(0,N.jsx)("div",{"data-testid":"turns-empty",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No turns captured yet."}):(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("div",{"data-testid":"turns-list",children:e.map((a,l)=>(0,N.jsx)(M4,{turn:a,onOpen:n},a.sessionId||l))}),o&&(0,N.jsx)("div",{style:{display:"flex",justifyContent:"center",marginTop:12},children:(0,N.jsx)(F,{variant:"secondary",size:"sm",disabled:t,"data-testid":"turns-load-more",onClick:i,children:t?"loading\u2026":"Load more"})})]})})}function hw({label:e,active:t,onClick:r,testid:o}){return(0,N.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:e})}function bw({wire:e,daemonUp:t}){let[r,o]=De.default.useState("requests"),[n,i]=De.default.useState($h),[a,l]=De.default.useState(xi),[s,c]=De.default.useState(xi),[d,p]=De.default.useState(!1),[f,g]=De.default.useState(!1),[x,b]=De.default.useState([]),[w,v]=De.default.useState(!0),[m,y]=De.default.useState([]),[S,_]=De.default.useState(null),[E,O]=De.default.useState(!1),[W,G]=De.default.useState(!1),[Z,Ze]=De.default.useState(null),bt=De.default.useCallback(async se=>{p(!0),g(!1);try{let Ie=await e.logsHistory(yw(se));i(Ie)}catch{g(!0)}finally{p(!1)}},[e]),Xn=De.default.useCallback(async()=>{if(n.nextCursor!==null){p(!0);try{let se=await e.logsHistory({...yw(a),cursor:n.nextCursor});i(Ie=>({records:[...Ie.records,...se.records],count:Ie.count+se.count,nextCursor:se.nextCursor,persistent:se.persistent}))}catch{g(!0)}finally{p(!1)}}},[e,a,n.nextCursor]),Xe=De.default.useCallback(async()=>{O(!0),G(!1);try{let se=await e.turnsHistory({limit:vw});y(se.sessions),_(se.nextCursor)}catch{G(!0)}finally{O(!1)}},[e]),Kn=De.default.useCallback(async()=>{if(S!==null){O(!0);try{let se=await e.turnsHistory({limit:vw,cursor:S});y(Ie=>[...Ie,...se.sessions]),_(se.nextCursor)}catch{G(!0)}finally{O(!1)}}},[e,S]);De.default.useEffect(()=>{bt(xi),Xe()},[bt,Xe]),De.default.useEffect(()=>{let se=!0,Ie=e.logsStream(Mt=>{se&&b($i=>U4($i,Mt))});return()=>{se=!1,Ie()}},[e]);let Rn=De.default.useCallback(()=>{l(s),bt(s)},[s,bt]),Cr=De.default.useCallback(()=>{c(xi),l(xi),bt(xi)},[bt]),vn=De.default.useCallback((se,Ie)=>{c(Mt=>({...Mt,[se]:Ie}))},[]);return(0,N.jsx)(Qe,{title:"Logs",eyebrow:t?"request log \xB7 turns":"daemon offline",right:(0,N.jsxs)("div",{style:{display:"flex",gap:8},children:[(0,N.jsx)(hw,{label:"Requests",active:r==="requests",onClick:()=>o("requests"),testid:"tab-requests"}),(0,N.jsx)(hw,{label:"Turns",active:r==="turns",onClick:()=>o("turns"),testid:"tab-turns"})]}),children:r==="requests"?(0,N.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,N.jsx)(A4,{records:x,open:w,onToggle:()=>v(se=>!se)}),(0,N.jsx)(L4,{draft:s,onChangeField:vn,onApply:Rn,onClear:Cr}),(0,N.jsx)(F4,{page:n,loading:d,error:f,onLoadMore:()=>{Xn()}})]}):Z!==null?(0,N.jsx)(W4,{turn:Z,onBack:()=>Ze(null)}):(0,N.jsx)(Z4,{turns:m,loading:E,error:W,hasMore:S!==null,onOpen:se=>Ze(se),onLoadMore:()=>{Kn()}})})}var te=A(ke(),1);var fn=A(ke(),1);var J=A(K(),1),B4=6,V4=150;function H4(e){return new Promise(t=>setTimeout(t,e))}async function Nu(e,t,r,...o){let n=e[t];if(typeof n!="function")return r;try{return await n.apply(e,o)??r}catch{return r}}var J4={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Rr({label:e,value:t}){return(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:96},children:[(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:e}),(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:16,fontWeight:600,color:"var(--text-primary)"},children:t})]})}function G4(e){return e>=.66?"verified":e>=.33?"honey":"warning"}function X4(e){let t=(r,o)=>r===void 0||!Number.isFinite(r)?o:Math.min(1,Math.max(0,r));return t(e.freshness,1)*t(e.calibrationConfidence,1)*(1-t(e.staleness,0))*t(e.kappa,1)}function K4(e){return e!==void 0&&Number.isFinite(e)?Math.min(1,Math.max(0,e)).toFixed(2):"\u2014"}function Y4({lower:e,upper:t,accuracy:r}){let o=Math.round(Math.min(1,Math.max(0,r))*100);return(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",minWidth:64},children:[e.toFixed(2),"\u2013",t.toFixed(2)]}),(0,J.jsx)("div",{style:{flex:1,height:8,background:"var(--bg-subtle)",borderRadius:4,overflow:"hidden"},children:(0,J.jsx)("div",{style:{width:`${o}%`,height:"100%",background:"var(--honey)"}})}),(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-secondary)",minWidth:32,textAlign:"right"},children:[o,"%"]})]})}var Q4=["review","supersede","keep-both"];function q4({conflict:e,onResolve:t}){let[r,o]=fn.default.useState("review"),[n,i]=fn.default.useState(e.memoryAId),[a,l]=fn.default.useState(!1),s=async()=>{a||(l(!0),await t(e.id,r,r==="supersede"?n:""),l(!1))};return(0,J.jsxs)("div",{"data-testid":"conflict-row","data-conflict-id":e.id,style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,J.jsx)(q,{tone:"warning",mono:!0,dot:!0,children:e.status||"open"}),(0,J.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:[e.memoryAId," \u21C4 ",e.memoryBId]})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,J.jsx)("select",{"aria-label":"verdict",value:r,onChange:c=>o(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12},children:Q4.map(c=>(0,J.jsx)("option",{value:c,children:c},c))}),r==="supersede"&&(0,J.jsxs)("select",{"aria-label":"winner",value:n,onChange:c=>i(c.target.value),style:{height:32,padding:"0 8px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:12,maxWidth:180},children:[(0,J.jsxs)("option",{value:e.memoryAId,children:["winner: ",e.memoryAId]}),(0,J.jsxs)("option",{value:e.memoryBId,children:["winner: ",e.memoryBId]})]}),(0,J.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>{s()},disabled:a,children:a?"\u2026":"Resolve"})]})]})}function Sw({wire:e}){let[t,r]=fn.default.useState([]),[o,n]=fn.default.useState([]),[i,a]=fn.default.useState(xu),[l,s]=fn.default.useState(!1),c=fn.default.useCallback(async()=>{let w=await Nu(e,"lifecycleConflicts",[],"open");return r(w),w},[e]);fn.default.useEffect(()=>{let w=!0;return(async()=>{let[v,m,y]=await Promise.all([Nu(e,"lifecycleConflicts",[],"open"),Nu(e,"lifecycleStaleRefs",[]),Nu(e,"calibration",xu)]);w&&(r(v),n(m),a(y),s(!0))})(),()=>{w=!1}},[e]);let d=fn.default.useCallback(async(w,v,m)=>{if(!(typeof e.resolveConflict=="function"?await e.resolveConflict(w,{verdict:v,...m!==""?{winnerId:m}:{}}):!1)){await c();return}for(let S=0;S<B4;S+=1){if(!(await c()).some(E=>E.id===w))return;await H4(V4)}},[e,c]),p=void 0,f=o.length>0?Math.min(1,o.length/Math.max(o.length,8)):0,g=i.identity?1:Math.max(0,1-i.ece),x=t.length>0?.5:1,b=X4({freshness:p,calibrationConfidence:g,staleness:f,kappa:x});return(0,J.jsxs)("div",{"data-testid":"lifecycle-panel",style:{...J4,display:"flex",flexDirection:"column",gap:16},children:[(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,J.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Memory health"}),(0,J.jsx)(q,{tone:G4(b),mono:!0,dot:!0,children:(0,J.jsxs)("span",{"data-testid":"health-badge",children:["H ",b.toFixed(2)]})})]}),(0,J.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,J.jsx)(Rr,{label:"freshness",value:K4(p)}),(0,J.jsx)(Rr,{label:"calibrated confidence",value:i.identity?"\u2014":g.toFixed(2)}),(0,J.jsx)(Rr,{label:"open conflicts",value:String(t.length)}),(0,J.jsx)(Rr,{label:"stale refs",value:String(o.length)}),(0,J.jsx)(Rr,{label:"ECE",value:i.identity?"dormant":i.ece.toFixed(3)})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Conflicts (",t.length,")"]}),l?t.length===0?(0,J.jsx)("span",{"data-testid":"conflicts-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no open conflicts."}):t.map(w=>(0,J.jsx)(q4,{conflict:w,onResolve:d},w.id)):(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[(0,J.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:["Stale references (",o.length,")"]}),l?o.length===0?(0,J.jsx)("span",{"data-testid":"stale-refs-empty",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"no stale references."}):o.map(w=>(0,J.jsxs)("div",{"data-testid":"stale-ref-row",style:{display:"flex",gap:8,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:[(0,J.jsx)("span",{style:{color:"var(--honey)",wordBreak:"break-all"},children:w.memoryId}),(0,J.jsx)("span",{style:{color:"var(--text-tertiary)"},children:w.staleRefs.length>0?w.staleRefs.join(", "):"(refs unrecorded)"})]},w.memoryId)):(0,J.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),(0,J.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.07em"},children:"Calibration"}),i.identity?(0,J.jsx)("span",{"data-testid":"calibration-dormant",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"calibration dormant \u2014 confidence weighting (c) stays 0 until the curve is fit."}):(0,J.jsxs)("div",{"data-testid":"calibration-view",style:{display:"flex",flexDirection:"column",gap:8},children:[(0,J.jsxs)("div",{style:{display:"flex",gap:18,flexWrap:"wrap"},children:[(0,J.jsx)(Rr,{label:"ECE",value:i.ece.toFixed(3)}),(0,J.jsx)(Rr,{label:"Brier",value:i.brier.toFixed(3)}),(0,J.jsx)(Rr,{label:"samples",value:String(i.nSamples)})]}),(0,J.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4},children:i.reliabilityDiagram.map(w=>(0,J.jsx)(Y4,{lower:w.lower,upper:w.upper,accuracy:w.accuracy},`${w.lower}-${w.upper}`))})]})]})]})}var kw=["fact","convention","preference","decision","gotcha","reference"],Lu="fact",Ah=Object.freeze({fact:"A stable, verifiable truth about the system, codebase, or domain.",convention:"How things are done here: idioms, standards, patterns to follow by default.",preference:"The user/team's stated way of working; corrections and do/don't guidance.",decision:"An architectural or design choice and its rationale; don't relitigate it.",gotcha:"A non-obvious trap, failure mode, or constraint to watch out for.",reference:"A pointer to an external resource (URL, dashboard, ticket, doc)."});var $=A(K(),1),_w=50,eT=2500,tT=12,nT=["/api/memories","/api/diagnostics/pollinate","/api/diagnostics/compact"],rT=5,oT=150;function iT(e){return new Promise(t=>setTimeout(t,e))}function aT(e){return nT.some(t=>e.startsWith(t))}function bi({label:e,value:t}){return t===""?null:(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",minWidth:84,textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t})]})}var il={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function lT({record:e,onOpen:t}){return(0,$.jsxs)("button",{type:"button","data-testid":"memory-row","data-memory-id":e.id,onClick:()=>t(e.id),style:{display:"flex",alignItems:"center",gap:12,width:"100%",textAlign:"left",padding:"11px 14px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)"},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:160},children:e.id}),(0,$.jsx)("span",{style:{flex:1,fontSize:13,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:e.content}),(0,$.jsx)(q,{tone:"neutral",mono:!0,children:e.type||"fact"})]})}function sT({record:e,onClose:t,onEdit:r,onForget:o}){let[n,i]=te.default.useState(!1),[a,l]=te.default.useState(e.content),[s,c]=te.default.useState(""),[d,p]=te.default.useState(!1),[f,g]=te.default.useState(""),[x,b]=te.default.useState(!1);te.default.useEffect(()=>{l(e.content),c(""),i(!1),b(!1)},[e.id,e.content,e.version]);let w=s.trim()==="",v=a.trim()==="",m=async()=>{if(d||v||w)return;p(!0),g("");let S=await r(e.id,a,s);p(!1),i(!1),c(""),g(S??"Save failed \u2014 the memory is unchanged.")},y=async()=>{if(d)return;p(!0),g("");let S=await o(e.id,"forgotten via dashboard");p(!1),S===null&&g("Forget failed \u2014 the memory is unchanged.")};return(0,$.jsxs)("div",{"data-testid":"memory-detail",style:{...il,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,color:"var(--honey)"},children:e.id}),(0,$.jsx)(q,{tone:"neutral",mono:!0,children:e.type||"fact"}),e.hasEmbedding&&(0,$.jsx)(q,{tone:"pollinate",mono:!0,dot:!0,children:"semantic"}),(0,$.jsx)("span",{style:{flex:1}}),(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:t,children:"\u2190 back"})]}),n?(0,$.jsx)("textarea",{"aria-label":"edit content",value:a,onChange:S=>l(S.target.value),rows:5,style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}):(0,$.jsx)("div",{"data-testid":"memory-content",style:{fontSize:14,lineHeight:"21px",color:"var(--text-primary)",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:e.content}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:5,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,$.jsx)(bi,{label:"scope",value:[e.visibility,e.agentId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(bi,{label:"source",value:[e.sourceType,e.sourceId].filter(S=>S!=="").join(" \xB7 ")}),(0,$.jsx)(bi,{label:"version",value:e.version>0?String(e.version):""}),(0,$.jsx)(bi,{label:"indexed",value:e.hasEmbedding?"yes (semantic)":"no (lexical only)"}),(0,$.jsx)(bi,{label:"created",value:e.createdAt}),(0,$.jsx)(bi,{label:"updated",value:e.updatedAt})]}),(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Edits append a new version; the prior is kept in history."}),n?(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)(sn,{mono:!0,"aria-label":"edit reason",value:s,placeholder:"reason (required) \u2014 why is this changing?",onChange:S=>c(S.target.value)}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:"primary",onClick:()=>{m()},disabled:d||v||w,children:d?"\u2026":"Save new version"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>i(!1),disabled:d,children:"Cancel"}),w&&(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"a reason is required to save"})]})]}):(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:"secondary",onClick:()=>i(!0),children:"Edit"}),x?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(F,{variant:"danger",onClick:()=>{y()},disabled:d,children:d?"\u2026":"Confirm forget"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>b(!1),disabled:d,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Forget soft-deletes this memory (a tombstone version)."})]}):(0,$.jsx)(F,{variant:"ghost",onClick:()=>b(!0),children:"Forget"})]}),f!==""&&(0,$.jsx)("div",{"data-testid":"detail-note",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:f})]})}var cT={height:40,padding:"0 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:"var(--text-sm)"};function uT({onAdd:e}){let[t,r]=te.default.useState(""),[o,n]=te.default.useState(Lu),[i,a]=te.default.useState(!1),[l,s]=te.default.useState(""),c=t.trim()==="",d=async()=>{if(i||c)return;a(!0),s("");let p=await e(t,o);if(a(!1),p===null){s("Add failed \u2014 nothing was stored.");return}r(""),n(Lu),s(p)};return(0,$.jsxs)("div",{style:{...il,display:"flex",flexDirection:"column",gap:10},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Add a memory"}),(0,$.jsx)("textarea",{"aria-label":"new content",value:t,onChange:p=>r(p.target.value),rows:3,placeholder:"a fact to remember \u2014 e.g. we deploy via `just release`",style:{width:"100%",resize:"vertical",padding:"10px 12px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-sans)",fontSize:14,lineHeight:"20px"}}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)("select",{"aria-label":"memory type","data-testid":"add-type",value:o,onChange:p=>n(p.target.value),title:Ah[o],style:{...cT,width:180,cursor:"pointer"},children:kw.map(p=>(0,$.jsx)("option",{value:p,title:Ah[p],children:p===Lu?`${p} (default)`:p},p))}),(0,$.jsx)(F,{variant:"primary",onClick:()=>{d()},disabled:i||c,children:i?"\u2026":"Add memory"}),l!==""&&(0,$.jsx)("span",{"data-testid":"add-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:l})]})]})}function dT(e){if(e.errored>0)return`${e.table}: attempted, not completed`;let t=[`${e.keysCompacted} keys`,`${e.rowsReaped} rows reaped`];return e.keysSkipped>0&&t.push(`${e.keysSkipped} keys deferred`),`${e.table}: ${t.join(" \xB7 ")}`}function pT({pollinating:e,onCompact:t,onPollinate:r,watchLines:o,watching:n,onToggleWatch:i}){let[a,l]=te.default.useState(!1),[s,c]=te.default.useState(!1),[d,p]=te.default.useState(null),[f,g]=te.default.useState(!1),[x,b]=te.default.useState(""),w=async()=>{if(s)return;l(!1),c(!0);let m=await t();c(!1),p(m)},v=async()=>{if(f)return;g(!0),b("");let m=await r();g(!1),m.triggered?b(m.status==="running"?"already running":"consolidating\u2026"):b(`skipped \xB7 ${m.reason??"unavailable"}`)};return(0,$.jsxs)("div",{style:{...il,display:"flex",flexDirection:"column",gap:14},children:[(0,$.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)"},children:"Lifecycle"}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsx)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:a?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(F,{variant:"danger",onClick:()=>{w()},disabled:s,children:s?"\u2026":"Confirm compact"}),(0,$.jsx)(F,{variant:"ghost",onClick:()=>l(!1),disabled:s,children:"Cancel"}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Compaction prunes old memory versions across version-bumped tables. Continue?"})]}):(0,$.jsx)(F,{variant:"secondary",onClick:()=>l(!0),disabled:s,children:"Compact"})}),d!==null&&(0,$.jsxs)("div",{"data-testid":"compact-summary",style:{display:"flex",flexDirection:"column",gap:3},children:[d.summaries.length===0&&d.skippedTables.length===0?(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"nothing reaped this pass"}):d.summaries.map(m=>(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:m.errored>0?"var(--severity-warning)":"var(--text-secondary)"},children:dT(m)},m.table)),d.skippedTables.length>0&&(0,$.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["skipped (absent): ",d.skippedTables.join(", ")]})]})]}),(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap"},children:[(0,$.jsx)(F,{variant:"pollinate",onClick:()=>{v()},disabled:f||e,children:f||e?"pollinating\u2026":"Pollinate now"}),x!==""&&(0,$.jsx)("span",{"data-testid":"pollinate-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:x})]}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,$.jsx)(F,{variant:n?"secondary":"ghost",onClick:i,children:n?"Stop watch":"Watch"}),n&&(0,$.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:6},children:[(0,$.jsx)("span",{style:{width:7,height:7,borderRadius:"50%",background:"var(--verified)"}}),(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"memory routes"})]})]}),n&&(0,$.jsx)("div",{"data-testid":"watch-feed",style:{display:"flex",flexDirection:"column",gap:5},children:o.length===0?(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"waiting for memory activity\u2026"}):o.map((m,y)=>(0,$.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:y===0?"var(--text-primary)":"var(--text-tertiary)",whiteSpace:"pre"},children:m},y))})]})]})}function $w({wire:e,pollinating:t=!1}){let{scope:r}=pn(),o=r.project,[n,i]=te.default.useState([]),[a,l]=te.default.useState(_w),[s,c]=te.default.useState(!1),[d,p]=te.default.useState(""),[f,g]=te.default.useState([]),[x,b]=te.default.useState(!1),[w,v]=te.default.useState(!1),[m,y]=te.default.useState(!1),[S,_]=te.default.useState(null),[E,O]=te.default.useState(null),[W,G]=te.default.useState(!1),[Z,Ze]=te.default.useState(!1),[bt,Xn]=te.default.useState([]),Xe=te.default.useCallback(async Q=>{if(o===void 0)return i([]),c(!0),[];let ve=await e.listMemories(Q,o);return i(ve),c(!0),ve},[e,o]);te.default.useEffect(()=>{Xe(a)},[Xe,a]),te.default.useEffect(()=>{if(!Z)return;let Q=!0,ve=async()=>{let wi=await e.logs(40);if(!Q)return;let ll=wi.filter(Tr=>aT(Tr.path)).slice(-tT).reverse().map(Pr);Xn(ll)};ve();let Be=setInterval(()=>{ve()},eT);return()=>{Q=!1,clearInterval(Be)}},[Z,e]);let Kn=te.default.useCallback(async()=>{let Q=d.trim();if(Q===""){v(!1),g([]);return}b(!0);let{memories:ve,degraded:Be}=await e.recall(Q,o);g(ve),y(Be),v(!0),b(!1)},[d,e,o]),Rn=te.default.useCallback(()=>{p(""),v(!1),g([])},[]),Cr=te.default.useCallback(async Q=>{_(Q),O(null),G(!1);let ve=await e.getMemory(Q);if(ve===null){G(!0);return}O(ve)},[e]),vn=te.default.useCallback(()=>{_(null),O(null),G(!1)},[]),ie=te.default.useCallback(async(Q,ve)=>{let Be=null;for(let wi=0;wi<rT;wi+=1){if(Be=await e.getMemory(Q),Be!==null&&ve(Be))return Be;await iT(oT)}return Be},[e]),se=te.default.useCallback(async(Q,ve,Be)=>{if(await e.modifyMemory(Q,{content:ve,reason:Be})===null){let Tr=await e.getMemory(Q);return Tr!==null&&O(Tr),null}let ll=await ie(Q,Tr=>Tr.content===ve||Tr.version>0);return ll!==null&&O(ll),Xe(a),"saved \xB7 new version"},[e,ie,Xe,a]),Ie=te.default.useCallback(async(Q,ve)=>await e.forgetMemory(Q,{reason:ve})===null?null:(vn(),Xe(a),"forgotten"),[e,vn,Xe,a]),Mt=te.default.useCallback(async(Q,ve)=>{let Be=await e.addMemory({content:Q,...ve!==""?{type:ve}:{}});return Be===null?null:(await Xe(a),Be.id!==null?`stored \xB7 ${Be.id}`:`stored \xB7 ${Be.action||"ok"}`)},[e,Xe,a]),$i=te.default.useCallback(()=>e.compact(),[e]),Re=te.default.useCallback(()=>e.pollinate(),[e]),Pe=te.default.useCallback(()=>{Ze(Q=>!Q),Xn([])},[]),Et=S!==null;return(0,$.jsx)(Qe,{eyebrow:"memories",title:"Memories",right:(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:o===void 0?"no project":`${n.length} kept`}),children:o===void 0?(0,$.jsx)(yi,{surface:"memories"}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{style:{display:"flex",gap:10,marginBottom:16},children:[(0,$.jsx)("div",{style:{flex:1},children:(0,$.jsx)(sn,{mono:!0,size:"lg",value:d,placeholder:"search memories\u2026 e.g. how do we deploy",onChange:Q=>p(Q.target.value),onKeyDown:Q=>{Q.key==="Enter"&&Kn()}})}),(0,$.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{Kn()},disabled:x,children:x?"\u2026":"Search"}),w&&(0,$.jsx)(F,{variant:"ghost",size:"lg",onClick:Rn,children:"Clear"})]}),w&&m&&(0,$.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:12},children:[(0,$.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.08em"},children:"recall"}),(0,$.jsx)("span",{title:"recall fell back to lexical (embeddings off) \u2014 semantic ranking unavailable",children:(0,$.jsx)(q,{tone:"warning",mono:!0,dot:!0,children:"lexical fallback"})})]}),Et?W?(0,$.jsxs)("div",{"data-testid":"memory-forgotten",style:{...il,display:"flex",flexDirection:"column",gap:12},children:[(0,$.jsx)("div",{style:{fontSize:14,color:"var(--text-secondary)"},children:"This memory was forgotten (or its id is unknown)."}),(0,$.jsx)("div",{children:(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:vn,children:"\u2190 back"})})]}):E!==null?(0,$.jsx)(sT,{record:E,onClose:vn,onEdit:se,onForget:Ie}):(0,$.jsx)("div",{style:{...il,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}):(0,$.jsxs)($.Fragment,{children:[w?(0,$.jsx)("div",{"data-testid":"search-results",style:{display:"flex",flexDirection:"column",gap:10,marginBottom:18},children:f.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories matched that query."}):f.map((Q,ve)=>(0,$.jsx)(Cs,{...Q,pollinating:t&&ve===1},Q.memoryKey))}):(0,$.jsx)("div",{"data-testid":"memory-list",style:{display:"flex",flexDirection:"column",gap:8,marginBottom:18},children:s?n.length===0?(0,$.jsx)("div",{style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:"No memories yet."}):(0,$.jsxs)($.Fragment,{children:[n.map(Q=>(0,$.jsx)(lT,{record:Q,onOpen:Cr},Q.id)),n.length>=a&&(0,$.jsx)("div",{style:{paddingTop:4},children:(0,$.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>l(Q=>Q+_w),children:"Load more"})})]}):(0,$.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})}),(0,$.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,$.jsx)(uT,{onAdd:Mt}),(0,$.jsx)(Sw,{wire:e}),(0,$.jsx)(pT,{pollinating:t,onCompact:$i,onPollinate:Re,watchLines:bt,watching:Z,onToggleWatch:Pe})]})]})]})})}var me=A(ke(),1);var j=A(K(),1),Au="__unsorted__",Fh={padding:16,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"};function Wh(){return(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"\u2014"})}function fT(e){if(e===null||e==="")return(0,j.jsx)("span",{style:{color:"var(--text-tertiary)"},children:"never"});let t=Date.parse(e);return Number.isNaN(t)?(0,j.jsx)(Wh,{}):new Date(t).toLocaleString()}function mT({project:e,wire:t,onOpen:r,onUnbound:o}){let[n,i]=me.default.useState(!1),[a,l]=me.default.useState(null),[s,c]=me.default.useState(!1),[d,p]=me.default.useState(""),f=me.default.useRef(!1),g=async()=>{if(a===null||f.current)return;f.current=!0,c(!0),p("");let x=await t.unbindProject({path:a});if(c(!1),f.current=!1,x.unbound){i(!1),l(null),o();return}p("No binding matched that folder \u2014 capture is unchanged.")};return(0,j.jsxs)("div",{"data-testid":"project-row","data-project-id":e.projectId,style:{...Fh,display:"flex",flexDirection:"column",gap:10},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--honey)"},children:e.name!==""?e.name:e.projectId}),(0,j.jsx)(q,{tone:"verified",mono:!0,dot:!0,children:"sourcing"}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>r(e.projectId),"data-testid":"project-open",children:"Open"}),(0,j.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>i(x=>!x),"data-testid":"project-unbind",children:n?"Cancel":"Unbind"})]}),(0,j.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:8,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,j.jsx)(Uu,{label:"bound path",value:(0,j.jsx)(gT,{paths:e.boundPaths})}),(0,j.jsx)(Uu,{label:"git remote",value:e.remote!==""?e.remote:(0,j.jsx)(Wh,{})}),(0,j.jsx)(Uu,{label:"last capture",value:fT(e.lastCapture)}),(0,j.jsx)(Uu,{label:"memories / sessions",value:`${e.memoryCount} / ${e.sessionCount}`})]}),n&&(0,j.jsxs)("div",{"data-testid":"project-unbind-panel",style:{display:"flex",flexDirection:"column",gap:10,paddingTop:4,borderTop:"1px solid var(--border-subtle)"},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"Pick the folder to release. Unbind removes this device\u2019s binding (capture stops there); the project and its memories are kept."}),(0,j.jsx)(zw,{wire:t,onSelect:l,selected:a}),(0,j.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,j.jsx)(F,{variant:"danger",size:"sm",onClick:()=>{g()},disabled:s||a===null,"data-testid":"project-unbind-confirm",children:s?"\u2026":"Unbind this folder"}),d!==""&&(0,j.jsx)("span",{"data-testid":"project-unbind-note",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-warning)"},children:d})]})]})]})}function gT({paths:e}){return e.length===0?(0,j.jsx)(Wh,{}):(0,j.jsx)("span",{style:{display:"flex",flexDirection:"column",gap:2},children:e.map(t=>(0,j.jsx)("span",{title:t,style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:t},t))})}function Uu({label:e,value:t}){return(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:e}),(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:t})]})}function vT({inbox:e}){return(0,j.jsxs)("div",{"data-testid":"inbox-row",style:{...Fh,display:"flex",alignItems:"center",gap:10,borderStyle:"dashed"},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:14,fontWeight:600,color:"var(--text-secondary)"},children:"(unsorted inbox)"}),(0,j.jsx)(q,{tone:"neutral",mono:!0,children:Au}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsxs)("span",{"data-testid":"inbox-size",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["size ",e.sessionCount]})]})}function yT({onNew:e,onImport:t}){let[r,o]=me.default.useState(!1);return(0,j.jsxs)("div",{style:{position:"relative"},children:[(0,j.jsx)(F,{variant:"primary",size:"sm",onClick:()=>o(n=>!n),"data-testid":"add-menu-toggle",children:"+ Add"}),r&&(0,j.jsxs)("div",{"data-testid":"add-menu",style:{position:"absolute",right:0,top:38,zIndex:5,display:"flex",flexDirection:"column",minWidth:180,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md, 0 6px 24px rgba(0,0,0,0.18))",overflow:"hidden"},children:[(0,j.jsx)(ww,{label:"New folder",hint:"pick a folder to bind",onClick:()=>{o(!1),e()},testId:"add-new"}),(0,j.jsx)(ww,{label:"Import existing",hint:"from the cloud registry",onClick:()=>{o(!1),t()},testId:"add-import"})]})]})}function ww({label:e,hint:t,onClick:r,testId:o}){return(0,j.jsxs)("button",{type:"button","data-testid":o,onClick:r,style:{display:"flex",flexDirection:"column",gap:2,width:"100%",textAlign:"left",padding:"9px 12px",background:"transparent",border:"none",borderBottom:"1px solid var(--border-subtle)",cursor:"pointer"},children:[(0,j.jsx)("span",{style:{fontSize:13,fontWeight:600,color:"var(--text-primary)"},children:e}),(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:t})]})}function hT({wire:e,onClose:t,onImported:r}){let[o,n]=me.default.useState([]),[i,a]=me.default.useState(!1),[l,s]=me.default.useState(null),[c,d]=me.default.useState(null),[p,f]=me.default.useState(!1),[g,x]=me.default.useState(""),b=me.default.useRef(!1);me.default.useEffect(()=>{let v=!0;return(async()=>{let m=await e.scopeProjects({unbound:!0});v&&(n(m.filter(y=>y.projectId!==Au)),a(!0))})(),()=>{v=!1}},[e]);let w=me.default.useCallback(async()=>{if(l===null||c===null||b.current)return;b.current=!0,f(!0),x("");let v=await e.bindExistingProject({path:c,projectId:l});if(f(!1),b.current=!1,v.bound){r(v);return}x(v.error!==void 0&&v.error!==""?v.error:"Could not import that project.")},[l,c,e,r]);return(0,j.jsx)(xT,{title:"Import project from cloud",onClose:t,testId:"import-modal",children:(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:14},children:[(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:"projects in this workspace not yet on this device"}),i?o.length===0?(0,j.jsx)("span",{"data-testid":"import-empty",style:{fontSize:13,color:"var(--text-tertiary)"},children:"Every registry project is already bound on this device. Nothing to import."}):(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:200,overflowY:"auto"},children:o.map(v=>(0,j.jsx)("button",{type:"button","data-testid":"import-project","data-project-id":v.projectId,onClick:()=>s(v.projectId),"aria-pressed":l===v.projectId,style:{display:"flex",alignItems:"center",gap:10,width:"100%",textAlign:"left",padding:"9px 12px",background:l===v.projectId?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${l===v.projectId?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-md)",cursor:"pointer",color:l===v.projectId?"var(--honey)":"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600},children:v.name!==""?v.name:v.projectId},v.projectId))}):(0,j.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"})]}),l!==null&&(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",textTransform:"uppercase",letterSpacing:"0.06em"},children:["pick this device\u2019s folder for ",(0,j.jsx)("span",{style:{color:"var(--honey)"},children:l})]}),(0,j.jsx)(zw,{wire:e,onSelect:d,selected:c})]}),(0,j.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"center"},children:[(0,j.jsx)(F,{variant:"primary",onClick:()=>{w()},disabled:p||l===null||c===null,"data-testid":"import-confirm",children:p?"Importing\u2026":"Import project"}),(0,j.jsx)(F,{variant:"ghost",onClick:t,disabled:p,children:"Cancel"}),g!==""&&(0,j.jsx)("span",{"data-testid":"import-error",style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:g})]})]})})}function zw({wire:e,onSelect:t,selected:r}){let[o,n]=me.default.useState(""),[i,a]=me.default.useState(null),[l,s]=me.default.useState([]),[c,d]=me.default.useState(!1),p=me.default.useCallback(async f=>{let g=await e.fsBrowse(f);n(g.path),a(g.parent),s(g.children),d(!0)},[e]);return me.default.useEffect(()=>{p(void 0)},[p]),c&&o===""&&l.length===0?(0,j.jsxs)("span",{"data-testid":"folderselect-unavailable",style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:["The folder browser isn\u2019t available \u2014 bind from your terminal: ",(0,j.jsx)("code",{style:{color:"var(--honey)"},children:"honeycomb project bind"})]}):(0,j.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,j.jsx)("span",{style:{flex:1,minWidth:0,fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:o!==""?o:"loading\u2026"}),(0,j.jsx)(F,{variant:"ghost",size:"sm",onClick:()=>{p(i??void 0)},disabled:i===null,children:"\u2191 up"}),(0,j.jsx)(F,{variant:"secondary",size:"sm",onClick:()=>t(o),disabled:o==="","data-testid":"folderselect-use",children:"Use this folder"})]}),(0,j.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:6,maxHeight:180,overflowY:"auto"},children:l.map(f=>(0,j.jsxs)("button",{type:"button","data-testid":"folderselect-row",onClick:()=>{p(f.path)},style:{display:"flex",alignItems:"center",gap:8,width:"100%",textAlign:"left",padding:"8px 12px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",cursor:"pointer",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13},children:[(0,j.jsx)("span",{style:{flex:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:f.name}),f.isGitRepo&&(0,j.jsx)(q,{tone:"honey",mono:!0,children:"git"})]},f.path))}),r!==null&&(0,j.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--verified)"},children:["selected: ",r]})]})}function xT({title:e,onClose:t,testId:r,children:o}){return(0,j.jsx)("div",{"data-testid":r,role:"dialog","aria-modal":"true","aria-label":e,onClick:t,style:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"flex-start",justifyContent:"center",padding:"64px 16px",background:"rgba(0,0,0,0.45)"},children:(0,j.jsxs)("div",{onClick:n=>n.stopPropagation(),style:{width:"100%",maxWidth:560,maxHeight:"80vh",overflowY:"auto",padding:20,background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,marginBottom:14},children:[(0,j.jsx)("h2",{style:{fontSize:"var(--text-base)",fontWeight:700,color:"var(--text-primary)",margin:0},children:e}),(0,j.jsx)("span",{style:{flex:1}}),(0,j.jsx)(F,{variant:"ghost",size:"sm",onClick:t,"aria-label":"close",children:"\u2715"})]}),o]})})}function Iw({wire:e}){let{scope:t,setScope:r}=pn(),[o,n]=me.default.useState([]),[i,a]=me.default.useState(!1),[l,s]=me.default.useState("none"),c=me.default.useCallback(async()=>{let b=await e.scopeProjects();n(b),a(!0)},[e]);me.default.useEffect(()=>{c()},[c]);let d=o.filter(b=>b.boundLocally&&b.projectId!==Au),p=o.find(b=>b.projectId===Au),f=me.default.useCallback(b=>{r({org:t.org,workspace:t.workspace,project:b})},[r,t.org,t.workspace]),g=me.default.useCallback(b=>{s("none"),c()},[c]),x=me.default.useCallback(b=>{s("none"),c()},[c]);return(0,j.jsxs)(Qe,{eyebrow:"projects",title:"Projects",right:(0,j.jsx)(yT,{onNew:()=>s("new"),onImport:()=>s("import")}),children:[l==="new"&&(0,j.jsxs)("div",{style:{...Fh,marginBottom:16},children:[(0,j.jsx)("div",{style:{fontSize:14,fontWeight:600,color:"var(--text-primary)",marginBottom:10},children:"Add a project"}),(0,j.jsx)(Ou,{wire:e,onBound:g,onCancel:()=>s("none")})]}),l==="import"&&(0,j.jsx)(hT,{wire:e,onClose:()=>s("none"),onImported:x}),(0,j.jsxs)("div",{"data-testid":"projects-list",style:{display:"flex",flexDirection:"column",gap:10},children:[i?d.length===0?(0,j.jsxs)("div",{"data-testid":"projects-empty",style:{padding:"10px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No active projects on this device yet. Use ",(0,j.jsx)("strong",{children:"+ Add"})," to bind a folder or import an existing project."]}):d.map(b=>(0,j.jsx)(mT,{project:b,wire:e,onOpen:f,onUnbound:()=>{c()}},b.projectId)):(0,j.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)"},children:"loading\u2026"}),p!==void 0&&(0,j.jsx)(vT,{inbox:p})]})]})}var Pn=A(ke(),1);var Fu=A(ke(),1),Qt=A(K(),1),Si={width:640,height:200},mn={top:12,right:12,bottom:18,left:12};function Pw(e,t){return e.includes("net")?"var(--honey)":e.includes("infra")||e.includes("cost")?"var(--severity-info)":t?"var(--severity-warning)":"var(--verified)"}function bT(e){let t=0,r=0;for(let o of e)for(let n of o.points)n.cents<t&&(t=n.cents),n.cents>r&&(r=n.cents);return r===t&&(r=t+1),{min:t,max:r}}function ST(e){let t=Si.height-mn.top-mn.bottom,r=(0-e.min)/(e.max-e.min);return mn.top+t-r*t}function kT(e,t){let r=e.points;if(r.length===0)return"";let o=Si.width-mn.left-mn.right,n=Si.height-mn.top-mn.bottom,i=r.length>1?o/(r.length-1):0,a=t.max-t.min;return r.map((l,s)=>{let c=mn.left+s*i,d=Math.max(0,Math.min(1,(l.cents-t.min)/a)),p=mn.top+n-d*n;return`${c.toFixed(1)},${p.toFixed(1)}`}).join(" ")}function _T(){try{return typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1}catch{return!1}}function Ew({trend:e}){let t=Fu.default.useMemo(()=>_T(),[]),[r,o]=Fu.default.useState(t);Fu.default.useEffect(()=>{if(t)return;let l=requestAnimationFrame(()=>o(!0));return()=>cancelAnimationFrame(l)},[t]);let n=e.series.some(l=>l.points.length>0);if(e.status==="absent"||!n)return(0,Qt.jsx)("div",{"data-testid":"roi-trend-empty",style:{padding:"28px 8px",textAlign:"center",fontSize:13,color:"var(--text-tertiary)"},children:e.startedAt!==""?`Savings tracked from ${e.startedAt}.`:"No trend history yet."});let i=bT(e.series),a=ST(i);return(0,Qt.jsxs)("div",{"data-testid":"roi-trend-chart",children:[(0,Qt.jsxs)("svg",{viewBox:`0 0 ${Si.width} ${Si.height}`,style:{width:"100%",height:200,display:"block"},role:"img","aria-label":"ROI trend over time",children:[(0,Qt.jsx)("line",{x1:mn.left,y1:a,x2:Si.width-mn.right,y2:a,stroke:"var(--border-subtle)",strokeWidth:"1"}),e.series.map(l=>{let s=kT(l,i);if(s==="")return null;let c=Pw(l.label,l.modeled);return(0,Qt.jsx)("polyline",{"data-testid":`roi-trend-series-${l.label}`,"data-modeled":l.modeled?"true":"false",points:s,fill:"none",stroke:c,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round",strokeDasharray:l.modeled?"5 4":void 0,style:{opacity:r?1:0,transition:t?void 0:"opacity var(--dur-base) var(--ease-out)"}},l.label)})]}),(0,Qt.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:14,marginTop:8},children:e.series.map(l=>(0,Qt.jsxs)("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:[(0,Qt.jsx)("svg",{width:22,height:8,"aria-hidden":"true",style:{flex:"none"},children:(0,Qt.jsx)("line",{x1:1,y1:4,x2:21,y2:4,stroke:Pw(l.label,l.modeled),strokeWidth:"2",strokeDasharray:l.modeled?"4 3":void 0})}),(0,Qt.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:[l.label,l.modeled?" (est.)":""]})]},l.label))})]})}var C=A(K(),1),$T="#/settings",wT=6e4,zT=15e3,IT="30d",PT=["7d","30d","90d"],Wu="\u2014";function En(e,t=!1){let r=e<0?"-":"",o=Math.abs(e)/100,n=`${r}$${o.toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}`;return t?`~${n} est.`:n}function ET(e){return e===null?Wu:`$${(e/100).toLocaleString(void 0,{minimumFractionDigits:2,maximumFractionDigits:2})}/Mtok`}function Rw(e){return e?"warning":"verified"}function RT(e){return e?"var(--text-secondary)":"var(--text-primary)"}function jw(e){return e<0?"var(--severity-critical)":"var(--verified)"}function Zh(e){return e==="allocated"}function CT(e){return e>0?"var(--severity-critical)":e<0?"var(--verified)":"var(--text-tertiary)"}function ki({children:e,color:t="var(--text-tertiary)"}){return(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:t},children:e})}function TT({assumption:e}){let[t,r]=Pn.default.useState(!1),o=e.assumptionText!==""?e.assumptionText:"Assumption not yet provided.";return(0,C.jsxs)("span",{style:{position:"relative",display:"inline-flex"},children:[(0,C.jsx)("button",{type:"button","data-testid":"assumption-info","aria-label":"modeled assumption","aria-expanded":t,onClick:()=>r(n=>!n),onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onFocus:()=>r(!0),onBlur:()=>r(!1),style:{width:16,height:16,padding:0,borderRadius:"var(--radius-full)",border:"1px solid var(--border-strong)",background:"transparent",color:"var(--text-tertiary)",fontFamily:"var(--font-mono)",fontSize:10,lineHeight:1,cursor:"pointer"},children:"i"}),t&&(0,C.jsxs)("span",{role:"tooltip","data-testid":"assumption-popover",style:{position:"absolute",top:22,left:0,zIndex:5,width:260,padding:"8px 10px",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-md)",fontSize:12,lineHeight:"16px",color:"var(--text-secondary)"},children:[o,!e.signedOff&&(0,C.jsx)("span",{style:{display:"block",marginTop:4,fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:"provisional \u2014 not yet signed off"})]})]})}function Cw({label:e,cents:t,modeled:r,dash:o,indent:n,tone:i,toneLabel:a,trailing:l,testid:s}){return(0,C.jsxs)("div",{"data-testid":s,style:{display:"flex",alignItems:"center",gap:10,padding:"10px 6px",paddingLeft:n?22:6,borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)("span",{style:{fontSize:14,color:n?"var(--text-secondary)":"var(--text-primary)"},children:e}),(0,C.jsx)(q,{tone:i,mono:!0,children:a}),l,(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":`${s}-figure`,"data-modeled":r?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:n?15:17,fontWeight:700,color:o?"var(--text-tertiary)":RT(r)},children:o?Wu:En(t,r)})]})}function Mh(e){return e==="absent"||e==="unreachable"||e==="unauthenticated"}function jT({net:e,onRetry:t,retrying:r}){let o=e.computed&&e.status==="ok",n=Zh(e.costBasis);return(0,C.jsx)(le,{title:"Net ROI",eyebrow:e.modeled?"saved \u2212 (infra + pollination) \xB7 est.":"saved \u2212 (infra + pollination)",children:(0,C.jsxs)("div",{"data-testid":"net-hero",style:{display:"flex",alignItems:"center",gap:16,padding:"14px 6px",flexWrap:"wrap"},children:[(0,C.jsx)("span",{"data-testid":"net-figure","data-computed":o?"true":"false",style:{fontFamily:"var(--font-mono)",fontSize:40,fontWeight:800,lineHeight:1,letterSpacing:"-0.02em",color:o?jw(e.netCents):"var(--text-tertiary)"},children:o?En(e.netCents,!0):Wu}),o?(0,C.jsx)(q,{tone:"warning",mono:!0,children:"est."}):e.status==="unreachable"?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(ki,{children:"net not computed - billing is unreachable"}),(0,C.jsx)(F,{variant:"ghost",size:"sm","data-testid":"net-retry",disabled:r,onClick:t,children:r?"retrying...":"Retry"})]}):(0,C.jsx)(ki,{children:"net not computed yet"}),o&&n&&(0,C.jsx)(ki,{children:"includes an allocated (estimated) infra share"})]})})}function OT(){return(0,C.jsx)("span",{"data-testid":"claude-code-only",style:{marginLeft:4,display:"inline-flex"},children:(0,C.jsx)(q,{tone:"info",children:"Claude Code only"})})}function DT({savings:e}){let t=Mh(e.status);return(0,C.jsx)(le,{title:"Savings",eyebrow:"measured cache \xB7 modeled memory injection",right:e.status==="partial"?(0,C.jsx)(OT,{}):void 0,children:(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[(0,C.jsx)(Cw,{testid:"savings-measured",label:"Measured cache savings",cents:e.measuredCents,modeled:!1,dash:t,tone:Rw(!1),toneLabel:"measured"}),(0,C.jsx)(Cw,{testid:"savings-modeled",label:"Modeled memory-injection savings",cents:e.modeledCents,modeled:!0,dash:t,indent:!0,tone:Rw(!0),toneLabel:"modeled",trailing:(0,C.jsx)(TT,{assumption:e.assumption})}),(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(ki,{children:"blended rate"}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{"data-testid":"blended-rate",style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:ET(e.blendedCentsPerMtok)})]})]})})}function Tw({label:e,cents:t,deltaCents:r,dash:o,testid:n}){return(0,C.jsxs)("div",{"data-testid":n,style:{display:"flex",flexDirection:"column",gap:8,padding:18,background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-lg)"},children:[(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-xs)",textTransform:"uppercase",letterSpacing:"0.08em",color:"var(--text-tertiary)"},children:e}),(0,C.jsx)("span",{"data-testid":`${n}-figure`,style:{fontFamily:"var(--font-mono)",fontSize:30,fontWeight:700,lineHeight:1,color:o?"var(--text-tertiary)":"var(--text-primary)",letterSpacing:"-0.01em"},children:o?Wu:En(t)}),!o&&r!==void 0&&r!==0&&(0,C.jsxs)("span",{"data-testid":`${n}-delta`,style:{fontFamily:"var(--font-mono)",fontSize:12,color:CT(r)},children:[r>0?"\u25B2":"\u25BC"," ",En(Math.abs(r))," vs prior period"]})]})}function NT({infraCents:e,infraDash:t,infraBasis:r,pollinationCents:o,pollinationDash:n,pollinationLines:i,infraDeltaCents:a}){return(0,C.jsxs)(le,{title:"Cost",eyebrow:"infra \xB7 pollination",children:[(0,C.jsxs)("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:12,marginBottom:6},children:[(0,C.jsx)(Tw,{testid:"infra-kpi",label:Zh(r)?"Infra (allocated, est.)":"Infra cost",cents:e,deltaCents:a,dash:t}),(0,C.jsx)(Tw,{testid:"pollination-kpi",label:"Pollination cost",cents:o,dash:n})]}),(0,C.jsx)("div",{"data-testid":"pollination-lines",children:n||i.length===0?(0,C.jsx)("div",{style:{padding:"10px 6px",fontSize:13,color:"var(--text-tertiary)"},children:n?"Pollination cost unavailable.":"No pollination contributors yet."}):i.map((l,s)=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsx)(ki,{children:l.label}),(0,C.jsx)("span",{style:{flex:1}}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-secondary)"},children:En(l.cents)})]},l.label||s))})]})}function Ow({label:e,active:t,onClick:r,testid:o}){return(0,C.jsx)("button",{type:"button","data-testid":o,"aria-pressed":t,onClick:r,style:{height:30,padding:"0 12px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:12,fontWeight:600,cursor:"pointer"},children:e})}var LT=["org","team","agent","project"];function UT({rollup:e,perUserAvailable:t}){return e.dimension==="agent"&&!t?(0,C.jsx)("div",{"data-testid":`rollup-${e.dimension}`,children:(0,C.jsx)("div",{"data-testid":"per-user-empty",style:{marginTop:10,padding:"10px 12px",background:"var(--severity-info-bg)",border:"1px solid var(--severity-info)",borderRadius:"var(--radius-md)"},children:(0,C.jsx)(ki,{color:"var(--severity-info)",children:"Per-user requires verified login - sign in to attribute ROI per person."})})}):(0,C.jsxs)("div",{"data-testid":`rollup-${e.dimension}`,children:[e.mixedBasis&&(0,C.jsx)("div",{"data-testid":"mixed-basis-caption",style:{padding:"8px 6px",marginBottom:4,fontSize:12,color:"var(--severity-warning)",fontFamily:"var(--font-mono)"},children:"mixed measured + allocated \u2014 rows are not summed into one net"}),e.rows.length===0?(0,C.jsxs)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e.dimension," rows yet."]}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,padding:"4px 6px 8px"},children:["","saved","infra","net"].map((r,o)=>(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:10,textTransform:"uppercase",letterSpacing:"0.06em",color:"var(--text-tertiary)",textAlign:o===0?"left":"right"},children:r},o))}),e.rows.map((r,o)=>{let n=Zh(r.costBasis);return(0,C.jsxs)("div",{"data-testid":`rollup-row-${e.dimension}-${r.key}`,style:{display:"grid",gridTemplateColumns:"1fr auto auto auto",gap:12,alignItems:"center",padding:"9px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,C.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:8,minWidth:0},children:[(0,C.jsx)("span",{style:{fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:r.label||r.key}),n&&(0,C.jsx)("span",{"data-testid":`rollup-allocated-${r.key}`,style:{display:"inline-flex"},children:(0,C.jsx)(q,{tone:"warning",mono:!0,children:"allocated est."})})]}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-primary)",textAlign:"right"},children:En(r.measuredSavingsCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:n?"var(--text-secondary)":"var(--text-primary)",textAlign:"right"},children:n?En(r.infraCostCents,!0):En(r.infraCostCents)}),(0,C.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,fontWeight:600,color:jw(r.netCents),textAlign:"right"},children:n?En(r.netCents,!0):En(r.netCents)})]},r.key||o)})]})]})}function AT({rollups:e,perUserAvailable:t}){let r=LT.filter(l=>e.some(s=>s.dimension===l)),[o,n]=Pn.default.useState(r[0]??"org"),i=r.includes(o)?o:r[0]??"org",a=e.find(l=>l.dimension===i);return(0,C.jsx)(le,{title:"Rollups",eyebrow:"org \xB7 team \xB7 agent \xB7 project",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:r.map(l=>(0,C.jsx)(Ow,{testid:`rollup-tab-${l}`,label:l,active:l===i,onClick:()=>n(l)},l))}),children:r.length===0||a===void 0?(0,C.jsx)("div",{style:{padding:"12px 6px",fontSize:13,color:"var(--text-tertiary)"},children:"No rollups yet."}):(0,C.jsx)(UT,{rollup:a,perUserAvailable:t})})}function FT(){return(0,C.jsx)(le,{title:"ROI ledger",eyebrow:"locked",children:(0,C.jsxs)("div",{"data-testid":"auth-gate",style:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:12,padding:"20px 8px"},children:[(0,C.jsx)("span",{"data-testid":"auth-redacted-status",style:{display:"inline-flex"},children:(0,C.jsx)(q,{tone:"neutral",mono:!0,dot:!0,children:"not connected"})}),(0,C.jsx)("span",{style:{fontSize:14,color:"var(--text-secondary)",maxWidth:460},children:"Connect Honeycomb to read the shared ROI ledger. The dashboard never holds your credentials \u2014 the daemon is the sole egress."}),(0,C.jsx)(F,{variant:"primary",size:"sm","data-testid":"auth-settings-cta",onClick:()=>{window.location.hash=$T},children:"Open Settings"})]})})}function Dw({wire:e}){let{scope:t}=pn(),r=t.project,[o,n]=Pn.default.useState(vu),[i,a]=Pn.default.useState(yu),[l,s]=Pn.default.useState(IT),[c,d]=Pn.default.useState(!1),p=Pn.default.useCallback(async()=>{let b=await e.roi(r);n(b)},[e,r]);gi(p,wT),gi(p,zT),Pn.default.useEffect(()=>{let b=!0;return(async()=>{let w=await e.roiTrend(l,r);b&&a(w)})(),()=>{b=!1}},[e,l,r]);let f=Pn.default.useCallback(async()=>{d(!0);try{await p();let b=await e.roiTrend(l,r);a(b)}finally{d(!1)}},[p,e,l,r]),g=o.savings.status==="unauthenticated"||o.net.status==="unauthenticated",x=o.scopedAcrossDevices?"across devices":"this device";return(0,C.jsx)(Qe,{title:"ROI",eyebrow:`net-roi ledger \xB7 ${x}`,children:g?(0,C.jsx)(FT,{}):(0,C.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,C.jsx)(jT,{net:o.net,onRetry:()=>{f()},retrying:c}),(0,C.jsx)(DT,{savings:o.savings}),(0,C.jsx)(NT,{infraCents:o.infra.cents,infraDash:Mh(o.infra.status),infraBasis:o.infra.costBasis,pollinationCents:o.pollination.cents,pollinationDash:Mh(o.pollination.status),pollinationLines:o.pollination.lines}),(0,C.jsx)(le,{title:"Trend",eyebrow:"measured (solid) \xB7 modeled (dashed)",right:(0,C.jsx)("div",{style:{display:"flex",gap:6},children:PT.map(b=>(0,C.jsx)(Ow,{testid:`trend-range-${b}`,label:b,active:b===l,onClick:()=>s(b)},b))}),children:(0,C.jsx)(Ew,{trend:i})}),(0,C.jsx)(AT,{rollups:o.rollups,perUserAvailable:o.perUserAvailable}),(0,C.jsxs)("div",{"data-testid":"assumption-footnote",style:{marginTop:4,padding:"12px 6px",borderTop:"1px solid var(--border-subtle)",fontSize:12,lineHeight:"18px",color:"var(--text-tertiary)"},children:[(0,C.jsx)("span",{style:{fontWeight:600,color:"var(--text-secondary)"},children:"Modeled estimate assumption: "}),o.savings.assumption.assumptionText!==""?o.savings.assumption.assumptionText:"Assumption not yet provided.",o.ratesAsOf!==""&&(0,C.jsxs)("span",{style:{marginLeft:8,fontFamily:"var(--font-mono)"},children:["\xB7 rates as of ",o.ratesAsOf]})]})]})})}var ut=A(ke(),1);var Nw=Object.freeze([{symbol:"a",configPath:"memory.lifecycle.activationExponent",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_EXPONENT",defaultValue:"1",effect:"exponent on the activation/freshness term A^a"},{symbol:"c",configPath:"memory.lifecycle.confidenceExponent",envOverride:"HONEYCOMB_LIFECYCLE_CONFIDENCE_EXPONENT",defaultValue:"0",effect:"exponent on the calibrated-confidence term C^c (dormant until calibrated)"},{symbol:"s",configPath:"memory.lifecycle.stalenessExponent",envOverride:"HONEYCOMB_LIFECYCLE_STALENESS_EXPONENT",defaultValue:"0",effect:"exponent on the staleness term (1 \u2212 \u03C3)^s (0 under observe)"},{symbol:"h(memories)",configPath:"memory.lifecycle.halfLifeDaysByClass.memories",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORIES_DAYS",defaultValue:"180 d",effect:"shapes A for distilled facts (slower decay)"},{symbol:"h(memory)",configPath:"memory.lifecycle.halfLifeDaysByClass.memory",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_MEMORY_DAYS",defaultValue:"45 d",effect:"shapes A for session summaries"},{symbol:"h(sessions)",configPath:"memory.lifecycle.halfLifeDaysByClass.sessions",envOverride:"HONEYCOMB_LIFECYCLE_HALFLIFE_SESSIONS_DAYS",defaultValue:"10 d",effect:"shapes A for raw dialogue (fastest decay)"},{symbol:"d",configPath:"memory.lifecycle.actrDecay",envOverride:"HONEYCOMB_LIFECYCLE_ACTR_DECAY",defaultValue:"0.5",effect:"ACT-R decay shaping A (Stage 2)"},{symbol:"A_min",configPath:"memory.lifecycle.activationFloor",envOverride:"HONEYCOMB_LIFECYCLE_ACTIVATION_FLOOR",defaultValue:"0.05",effect:"clamps A so a cold memory keeps a sliver of salience"},{symbol:"h_verify",configPath:"memory.lifecycle.verificationHalfLifeDays",envOverride:"HONEYCOMB_LIFECYCLE_VERIFICATION_HALFLIFE_DAYS",defaultValue:"14 d",effect:"shapes \u03C3 via the verification-freshness factor v(m,t)"},{symbol:"\u03B8_detect",configPath:"memory.lifecycle.contradictionThreshold",envOverride:"HONEYCOMB_LIFECYCLE_CONTRADICTION_THRESHOLD",defaultValue:"0.6",effect:"gates conflict detection (Contra > \u03B8_detect)"},{symbol:"\u03B3",configPath:"memory.lifecycle.corroborationWeight",envOverride:"HONEYCOMB_LIFECYCLE_CORROBORATION_WEIGHT",defaultValue:"0.5",effect:"shapes the conflict vote weight w_i"},{symbol:"\u03C4_supersede",configPath:"memory.lifecycle.supersedeMargin",envOverride:"HONEYCOMB_LIFECYCLE_SUPERSEDE_MARGIN",defaultValue:"0.5",effect:"conflict verdict cut (margin \u2265 \u03C4_supersede \u2192 supersede)"},{symbol:"\u03C4_review",configPath:"memory.lifecycle.reviewMargin",envOverride:"HONEYCOMB_LIFECYCLE_REVIEW_MARGIN",defaultValue:"0.15",effect:"conflict verdict cut (\u03C4_review \u2264 margin < \u03C4_supersede \u2192 review)"},{symbol:"\u03C1",configPath:"memory.lifecycle.openConflictSuppression",envOverride:"HONEYCOMB_LIFECYCLE_OPEN_CONFLICT_SUPPRESSION",defaultValue:"0",effect:"\u03BA for the open-conflict loser (0 fully suppress, reversible)"},{symbol:"auto-resolve",configPath:"memory.lifecycle.conflictAutoResolve",envOverride:"HONEYCOMB_LIFECYCLE_CONFLICT_AUTORESOLVE",defaultValue:"false",effect:"when off, conflicts are detected + queued only (human-in-the-loop)"},{symbol:"posture",configPath:"memory.lifecycle.staleRefPosture",envOverride:"HONEYCOMB_LIFECYCLE_STALEREF_POSTURE",defaultValue:"observe",effect:"observe (s = 0, inert) vs execute (s > 0, demote)"}]);var V=A(K(),1),WT=5e3;function oo({label:e,children:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:120},children:e}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function MT(e){return e==="env"?"via HONEYCOMB_TOKEN":e==="file"?"saved login (~/.deeplake)":"none"}function ZT(e){return typeof e!="number"||!Number.isFinite(e)?"expiry unknown":new Date(e*1e3).toISOString()}function BT(){return(0,V.jsxs)("div",{"data-testid":"auth-connect",style:{display:"flex",flexDirection:"column",gap:8,padding:"10px 6px"},children:[(0,V.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:"Connect to DeepLake from your terminal, then this page reflects it:"}),(0,V.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:"honeycomb login"}),(0,V.jsx)("span",{style:{fontSize:12,color:"var(--text-tertiary)"},children:"or, headless (CI / a server):"}),(0,V.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--honey)"},children:"HONEYCOMB_TOKEN=\u2026 honeycomb \u2026"})]})}function VT({wire:e}){let[t,r]=ut.default.useState(hh),[o,n]=ut.default.useState(!0),i=ut.default.useCallback(async()=>{let a=await e.authStatus();r(a),n(!1)},[e]);return ut.default.useEffect(()=>{let a=!0,l=async()=>{a&&await i()};l();let s=setInterval(()=>{l()},WT),c=()=>{l()};return typeof window<"u"&&window.addEventListener("focus",c),()=>{a=!1,clearInterval(s),typeof window<"u"&&window.removeEventListener("focus",c)}},[i]),(0,V.jsx)(le,{title:"DeepLake",eyebrow:"auth \xB7 org \xB7 workspace",right:(0,V.jsx)(q,{tone:t.connected?"verified":"neutral",mono:!0,dot:!0,children:t.connected?"connected":"not connected"}),children:o?(0,V.jsx)("div",{"data-testid":"auth-loading",style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)",fontFamily:"var(--font-mono)"},children:"loading\u2026"}):t.connected?(0,V.jsxs)("div",{"data-testid":"auth-connected",children:[(0,V.jsx)(oo,{label:"org",children:t.orgName||t.orgId||"\u2014"}),(0,V.jsx)(oo,{label:"org id",children:t.orgId||"\u2014"}),(0,V.jsx)(oo,{label:"workspace",children:t.workspace||"\u2014"}),(0,V.jsx)(oo,{label:"agent",children:t.agentId||"\u2014"}),(0,V.jsx)(oo,{label:"source",children:MT(t.source)}),(0,V.jsx)(oo,{label:"last login",children:t.savedAt||"unknown"}),(0,V.jsx)(oo,{label:"token expiry",children:ZT(t.expiresAt)})]}):(0,V.jsxs)("div",{"data-testid":"auth-disconnected",children:[(0,V.jsx)("div",{style:{padding:"8px 6px",fontSize:14,color:"var(--text-primary)"},children:"Not connected to DeepLake."}),(0,V.jsx)(BT,{})]})})}var HT=[{id:"anthropic",label:"Anthropic (Claude)"},{id:"openai",label:"OpenAI (ChatGPT)"},{id:"openrouter",label:"OpenRouter"},{id:"cohere",label:"Cohere"}];function JT({id:e,label:t,present:r,onSave:o}){let[n,i]=ut.default.useState(""),[a,l]=ut.default.useState(!1),[s,c]=ut.default.useState(!1),d=ut.default.useCallback(async()=>{let p=n;if(p.length===0){c(!0);return}l(!0),c(!1);let f=await o(e,p);l(!1),f?i(""):c(!0)},[n,e,o]);return(0,V.jsxs)("div",{"data-testid":`provider-row-${e}`,style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)",flexWrap:"wrap"},children:[(0,V.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)",minWidth:150},children:t}),(0,V.jsx)("div",{style:{flex:"1 1 220px",minWidth:180},children:(0,V.jsx)(sn,{type:"password",mono:!0,size:"sm",value:n,placeholder:r?"replace key\u2026":"paste key\u2026",onChange:p=>{i(p.target.value),s&&c(!1)},onKeyDown:p=>{p.key==="Enter"&&d()},"data-testid":`provider-input-${e}`})}),(0,V.jsx)(F,{variant:"primary",size:"sm",disabled:a,"data-testid":`provider-save-${e}`,onClick:()=>{d()},children:a?"saving\u2026":"Save key"}),(0,V.jsx)(q,{tone:r?"verified":"neutral",mono:!0,dot:!0,children:r?"key set \u2713":"not set"}),s&&(0,V.jsx)("span",{"data-testid":`provider-rejected-${e}`,style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--severity-critical)"},children:"not accepted"})]})}function GT({wire:e,secretNames:t,onSaved:r}){let o=ut.default.useCallback(async(n,i)=>{let a=zu[n];if(a===void 0)return!1;let l=await e.setSecret(a,i);return l&&r(),l},[e,r]);return(0,V.jsx)(le,{title:"Provider keys",eyebrow:"write-only \xB7 names-only presence",children:(0,V.jsx)("div",{"data-testid":"provider-keys",children:HT.map(n=>{let i=zu[n.id]??"",a=i!==""&&t.includes(i);return(0,V.jsx)(JT,{id:n.id,label:n.label,present:a,onSave:o},n.id)})})})}var XT=[{value:"",label:"default (semantic when embeddings on)"},{value:"keyword",label:"keyword \u2014 lexical only"},{value:"semantic",label:"semantic \u2014 vector (fallback when off)"},{value:"hybrid",label:"hybrid \u2014 both arms"}];function KT({value:e,onChange:t}){return(0,V.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"10px 6px",flexWrap:"wrap"},children:[(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:120},children:[(0,V.jsx)("span",{style:{fontSize:14,color:"var(--text-primary)"},children:"Search mode"}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"recall channels"})]}),(0,V.jsx)("span",{style:{flex:1}}),(0,V.jsx)("select",{"aria-label":"search mode",value:e,onChange:r=>t(r.target.value),"data-testid":"recall-mode-select",style:{height:36,padding:"0 10px",background:"var(--bg-surface)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)",color:"var(--text-primary)",fontFamily:"var(--font-mono)",fontSize:13,minWidth:220},children:XT.map(r=>(0,V.jsx)("option",{value:r.value,children:r.label},r.value))})]})}function YT({settings:e,catalog:t,secretNames:r,onSave:o}){let n=String(e[dn.recallMode]??"");return(0,V.jsx)(le,{title:"Search & inference",eyebrow:"recall mode \xB7 provider \xB7 model \xB7 pollinating",children:(0,V.jsxs)("div",{"data-testid":"search-inference",children:[(0,V.jsx)(KT,{value:n,onChange:i=>{o(dn.recallMode,i)}}),(0,V.jsx)("div",{style:{marginTop:8},children:(0,V.jsx)(Iu,{catalog:t,settings:e,secretNames:r,onSave:o})})]})})}function QT({symbol:e,configPath:t,envOverride:r,defaultValue:o,effect:n}){return(0,V.jsxs)("div",{"data-testid":"lifecycle-flag","data-config-path":t,style:{display:"flex",flexDirection:"column",gap:2,padding:"8px 0",borderBottom:"1px solid var(--border-subtle)"},children:[(0,V.jsxs)("div",{style:{display:"flex",gap:10,alignItems:"baseline",flexWrap:"wrap"},children:[(0,V.jsx)(q,{tone:"honey",mono:!0,children:e}),(0,V.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)",wordBreak:"break-all"},children:t}),(0,V.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["default: ",o]})]}),(0,V.jsx)("div",{style:{fontSize:12,color:"var(--text-tertiary)"},children:n}),(0,V.jsxs)("div",{style:{fontFamily:"var(--font-mono)",fontSize:10,color:"var(--text-tertiary)"},children:["env: ",r]})]})}function qT(){return(0,V.jsx)(le,{title:"Memory lifecycle",eyebrow:"memory.lifecycle.* \xB7 symbol \xB7 default \xB7 effect",children:(0,V.jsxs)("div",{"data-testid":"lifecycle-config-reference",style:{display:"flex",flexDirection:"column"},children:[(0,V.jsx)("div",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",marginBottom:8},children:"Precedence: HONEYCOMB_LIFECYCLE_* env > agent.yaml memory.lifecycle.* > the documented default. Defaults are non-destructive \u2014 a = 1, c = 0, s = 0 (posture observe), auto-resolve off."}),Nw.map(e=>(0,V.jsx)(QT,{...e},e.configPath))]})})}function Lw({wire:e}){let[t,r]=ut.default.useState(Qa),[o,n]=ut.default.useState([]),i=ut.default.useCallback(async()=>{r(await e.vaultSettings())},[e]),a=ut.default.useCallback(async()=>{n(await e.secretNames())},[e]);ut.default.useEffect(()=>{i(),a()},[i,a]);let l=ut.default.useCallback(async(s,c)=>{let d=await e.setSetting(s,c);return await i(),d},[e,i]);return(0,V.jsx)(Qe,{title:"Settings",eyebrow:"deeplake \xB7 provider keys \xB7 search mode",children:(0,V.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[(0,V.jsx)(VT,{wire:e}),(0,V.jsx)(GT,{wire:e,secretNames:o,onSaved:()=>{a()}}),(0,V.jsx)(YT,{settings:t.settings,catalog:t.catalog,secretNames:o,onSave:l}),(0,V.jsx)(qT,{})]})})}var gn=A(ke(),1);var H=A(K(),1),ej=5e3,al=12;function Mu(e,t){return`${e}:${t}`}function _i({label:e,children:t}){return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"8px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-tertiary)",minWidth:130},children:e}),(0,H.jsx)("span",{style:{flex:1}}),(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",textAlign:"right",wordBreak:"break-word"},children:t})]})}function Aw({state:e}){let t=Ih[e]??"neutral";return(0,H.jsx)(q,{tone:t,mono:!0,dot:!0,children:e})}function tj({row:e,flight:t,onAction:r}){let o=t!==void 0,n=(i,a)=>t===i?`${a}\u2026`:a;return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[e.state==="local"&&(0,H.jsx)(F,{variant:"primary",size:"sm",disabled:o,"data-testid":`promote-${e.assetType}-${e.name}`,onClick:()=>r("promote",e),children:n("promote","Promote")}),e.state==="shared"&&(0,H.jsx)(F,{variant:"secondary",size:"sm",disabled:o,"data-testid":`pull-${e.assetType}-${e.name}`,onClick:()=>r("pull",e),children:n("pull","Pull")}),e.state==="shared"&&(0,H.jsx)(F,{variant:"ghost",size:"sm",disabled:o,"data-testid":`enable-${e.assetType}-${e.name}`,onClick:()=>r("enable",e),children:n("enable","Enable")}),(e.state==="shared"||e.state==="pulled")&&(0,H.jsx)(F,{variant:"danger",size:"sm",disabled:o||!e.authoredByMe,title:e.authoredByMe?"Demote (tombstone) this asset":"Only the author can demote this asset","data-testid":`demote-${e.assetType}-${e.name}`,onClick:()=>r("demote",e),children:n("demote","Demote")}),(e.state==="local"||e.state==="pulled")&&(0,H.jsx)(F,{variant:"ghost",size:"sm",disabled:o,"data-testid":`disable-${e.assetType}-${e.name}`,onClick:()=>r("disable",e),children:n("disable","Disable")}),o&&(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:"in-flight\u2026"})]})}function nj({row:e}){return(0,H.jsx)("div",{"data-testid":`detail-${e.assetType}-${e.name}`,style:{marginTop:4},children:(0,H.jsxs)(le,{title:e.name,eyebrow:e.assetType,style:{marginBottom:4},children:[e.description!==""&&(0,H.jsx)("div",{style:{fontSize:13,color:"var(--text-secondary)",padding:"4px 6px 8px",lineHeight:"19px"},children:e.description}),(0,H.jsx)(_i,{label:"state",children:(0,H.jsx)(Aw,{state:e.state})}),(0,H.jsx)(_i,{label:"provenance",children:e.sourceHarness||"\u2014"}),(0,H.jsx)(_i,{label:"scope",children:e.scope||"\u2014"}),(0,H.jsx)(_i,{label:"source harness",children:e.sourceHarness||"\u2014"}),(0,H.jsx)(_i,{label:"tier / style",children:e.tier!==""?`${e.tier} / ${e.style}`:"\u2014"}),(0,H.jsx)(_i,{label:"version",children:e.version>0?`v${e.version}`:"\u2014"})]})})}function rj({row:e,open:t,flight:r,onToggle:o,onAction:n}){return(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:4,padding:"10px 6px",borderTop:"1px solid var(--border-subtle)"},children:[(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap"},children:[(0,H.jsxs)("button",{type:"button","data-testid":`row-${e.assetType}-${e.name}`,onClick:()=>o(e),style:{display:"flex",alignItems:"center",gap:8,background:"transparent",border:"none",padding:0,cursor:"pointer",minWidth:0,flex:"1 1 200px",textAlign:"left"},children:[(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:13,color:"var(--text-primary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.name}),(0,H.jsx)(Aw,{state:e.state}),e.version>0&&(0,H.jsxs)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:["v",e.version]})]}),(0,H.jsx)(tj,{row:e,flight:r,onAction:n})]}),t&&(0,H.jsx)(nj,{row:e})]})}function oj({kind:e,rows:t,openKey:r,inFlight:o,onToggle:n,onAction:i}){return(0,H.jsx)(le,{title:e==="skill"?"Skills":"Agents",eyebrow:`${t.length} ${e==="skill"?"skills":"agents"}`,children:t.length===0?(0,H.jsxs)("div",{style:{padding:"12px 4px",fontSize:13,color:"var(--text-tertiary)"},children:["No ",e==="skill"?"skills":"agents"," found."]}):(0,H.jsx)("div",{style:{display:"flex",flexDirection:"column"},children:t.map(l=>(0,H.jsx)(rj,{row:l,open:r===Mu(e,l.name),flight:o[Mu(e,l.name)],onToggle:n,onAction:i},`${l.assetType}:${l.name}`))})})}function Bh({label:e,value:t,tone:r}){return(0,H.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8,padding:"8px 6px"},children:[(0,H.jsx)(q,{tone:r,mono:!0,children:t}),(0,H.jsx)("span",{style:{fontSize:13,color:"var(--text-secondary)"},children:e})]})}function ij(e){let t=0,r=0,o=0;for(let n of[...e.skills,...e.agents])n.state==="shared"?t++:n.state==="local"?r++:n.state==="pulled"&&o++;return{shared:t,local:r,pulled:o}}function aj({view:e}){let t=ij(e);return(0,H.jsx)(le,{title:"Sync state",eyebrow:"per scope",children:(0,H.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:18},children:[(0,H.jsx)(Bh,{label:"shared with team",value:t.shared,tone:"verified"}),(0,H.jsx)(Bh,{label:"local only",value:t.local,tone:"neutral"}),(0,H.jsx)(Bh,{label:"pulled",value:t.pulled,tone:"honey"})]})})}function lj(e){return e.filter(ku).slice(-al).reverse().map(t=>{let r=Pr(t),o=F0(t);return o!==""?`${r} \xB7 ${o}`:r})}function sj(e,t){if(!ku(t))return e;let r=[...e,t];return r.length>al?r.slice(-al):r}function Fw({wire:e}){let{scope:t}=pn(),r=t.project,[o,n]=gn.default.useState(hu),[i,a]=gn.default.useState([]),[l,s]=gn.default.useState("skill"),[c,d]=gn.default.useState(null),[p,f]=gn.default.useState({});gn.default.useEffect(()=>{if(r===void 0){n(hu);return}let v=!0,m=async()=>{let S=await e.assetsView();v&&n(S)};m();let y=setInterval(()=>{m()},ej);return()=>{v=!1,clearInterval(y)}},[e,r]),gn.default.useEffect(()=>{let v=!0;(async()=>{let y=await e.logs(al*6);v&&a(y.filter(ku).slice(-al))})();let m=e.logsStream(y=>{v&&a(S=>sj(S,y))});return()=>{v=!1,m()}},[e]);let g=gn.default.useMemo(()=>lj(i),[i]),x=gn.default.useCallback(v=>{let m=Mu(v.assetType,v.name);d(y=>y===m?null:m)},[]),b=gn.default.useCallback((v,m)=>{let y=Mu(m.assetType,m.name);f(S=>({...S,[y]:v})),(async()=>{try{await e.syncAction(v,{assetType:m.assetType,name:m.name,honeycombId:m.honeycombId!==""?m.honeycombId:void 0}),n(await e.assetsView())}finally{f(S=>{let _={...S};return delete _[y],_})}})()},[e]),w=l==="skill"?o.skills:o.agents;return(0,H.jsx)(Qe,{title:"Sync",eyebrow:r===void 0?"sync":`${o.skills.length+o.agents.length} assets`,children:r===void 0?(0,H.jsx)(yi,{surface:"sync state"}):(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(aj,{view:o}),(0,H.jsx)("div",{style:{height:16}}),(0,H.jsxs)("div",{style:{display:"flex",gap:8,marginBottom:12},children:[(0,H.jsx)(Uw,{label:"Skills",active:l==="skill",count:o.skills.length,onClick:()=>s("skill")}),(0,H.jsx)(Uw,{label:"Agents",active:l==="agent",count:o.agents.length,onClick:()=>s("agent")})]}),(0,H.jsx)(oj,{kind:l,rows:w,openKey:c,inFlight:p,onToggle:x,onAction:b}),(0,H.jsx)("div",{style:{height:16}}),(0,H.jsx)(Er,{lines:g})]})})}function Uw({label:e,active:t,count:r,onClick:o}){return(0,H.jsxs)("button",{type:"button","data-testid":`tab-${e.toLowerCase()}`,"aria-pressed":t,onClick:o,style:{display:"inline-flex",alignItems:"center",gap:8,height:34,padding:"0 14px",background:t?"var(--honey-subtle)":"var(--bg-elevated)",border:`1px solid ${t?"var(--honey-border)":"var(--border-default)"}`,borderRadius:"var(--radius-full)",color:t?"var(--honey)":"var(--text-secondary)",fontFamily:"var(--font-sans)",fontSize:13,fontWeight:600,cursor:"pointer"},children:[e,(0,H.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)"},children:r})]})}var ue=A(K(),1);function Gn({children:e}){return(0,ue.jsx)("svg",{width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{flex:"none"},children:e})}var cj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("rect",{x:3,y:3,width:7,height:7}),(0,ue.jsx)("rect",{x:14,y:3,width:7,height:7}),(0,ue.jsx)("rect",{x:3,y:14,width:7,height:7}),(0,ue.jsx)("rect",{x:14,y:14,width:7,height:7})]}),uj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("rect",{x:3,y:4,width:18,height:16,rx:2}),(0,ue.jsx)("path",{d:"M7 9l3 3-3 3"}),(0,ue.jsx)("path",{d:"M13 15h4"})]}),dj=(0,ue.jsx)(Gn,{children:(0,ue.jsx)("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"})}),pj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("path",{d:"M12 3l7 4v8l-7 4-7-4V7z"}),(0,ue.jsx)("path",{d:"M12 8v8"})]}),fj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("circle",{cx:6,cy:6,r:2.5}),(0,ue.jsx)("circle",{cx:18,cy:9,r:2.5}),(0,ue.jsx)("circle",{cx:9,cy:18,r:2.5}),(0,ue.jsx)("path",{d:"M8 7.5l8 1.5M8 16l1-7.5"})]}),mj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("path",{d:"M21 12a9 9 0 1 1-3-6.7"}),(0,ue.jsx)("path",{d:"M21 4v4h-4"})]}),gj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("rect",{x:4,y:3,width:16,height:18,rx:2}),(0,ue.jsx)("path",{d:"M8 8h8M8 12h8M8 16h5"})]}),vj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("path",{d:"M4 19V5"}),(0,ue.jsx)("path",{d:"M4 19h16"}),(0,ue.jsx)("path",{d:"M7 15l4-5 3 3 5-7"})]}),yj=(0,ue.jsxs)(Gn,{children:[(0,ue.jsx)("circle",{cx:12,cy:12,r:3}),(0,ue.jsx)("path",{d:"M12 2v3M12 19v3M4.2 4.2l2.1 2.1M17.7 17.7l2.1 2.1M2 12h3M19 12h3M4.2 19.8l2.1-2.1M17.7 6.3l2.1-2.1"})]}),Oh="/projects",Zu=[{route:"/",label:"Dashboard",icon:cj,component:ow},{route:Oh,label:"Projects",icon:dj,component:Iw},{route:"/harnesses",label:"Harnesses",icon:uj,component:q0,dynamic:{resolve:ew}},{route:"/memories",label:"Memories",icon:pj,component:$w},{route:"/graph",label:"Graph",icon:fj,component:mw},{route:"/sync",label:"Sync",icon:mj,component:Fw},{route:"/logs",label:"Logs",icon:gj,component:bw},{route:"/roi",label:"ROI",icon:vj,component:Dw},{route:"/settings",label:"Settings",icon:yj,component:Lw}],j2=Zu[0];function Ww(e,t=Zu){let r=t.find(n=>n.route===e);if(r!==void 0)return r;let o=t.find(n=>n.route!=="/"&&e.startsWith(`${n.route}/`));return o!==void 0?o:t.find(n=>n.route==="/")??t[0]}var Me=A(K(),1),hj=220,xj=56;function bj(e,t){let r=e.find(i=>i.route===t);if(r!==void 0)return r.route;let o=e.find(i=>i.route!=="/"&&t.startsWith(`${i.route}/`));return o!==void 0?o.route:e.find(i=>i.route==="/")?.route??e[0]?.route??"/"}function Sj({entry:e,active:t,collapsed:r,onNavigate:o}){return(0,Me.jsxs)("button",{type:"button",onClick:()=>o(e.route),"aria-current":t?"page":void 0,title:r?e.label:void 0,"data-route":e.route,"data-active":t?"true":"false",style:{display:"flex",alignItems:"center",gap:10,width:"100%",height:38,padding:r?"0":"0 12px",justifyContent:r?"center":"flex-start",background:t?"var(--honey-subtle)":"transparent",color:t?"var(--honey)":"var(--text-secondary)",border:`1px solid ${t?"var(--honey-border)":"transparent"}`,borderRadius:"var(--radius-md)",fontFamily:"var(--font-mono)",fontSize:13,fontWeight:600,letterSpacing:"0.01em",cursor:"pointer",whiteSpace:"nowrap",transition:"background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out)"},children:[(0,Me.jsx)("span",{style:{display:"inline-flex",flex:"none"},children:e.icon}),!r&&(0,Me.jsx)("span",{children:e.label})]})}function kj({daemonUp:e,collapsed:t}){return(0,Me.jsxs)("div",{title:"daemon health","data-testid":"daemon-health-pill",style:{display:"flex",alignItems:"center",gap:8,height:36,padding:t?"0":"0 12px",justifyContent:t?"center":"flex-start",background:"var(--bg-elevated)",border:"1px solid var(--border-default)",borderRadius:"var(--radius-md)"},children:[(0,Me.jsx)("span",{style:{width:8,height:8,borderRadius:"50%",flex:"none",background:e?"var(--verified)":"var(--severity-critical)"}}),!t&&(0,Me.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:12,color:"var(--text-secondary)"},children:e?"daemon :3850":"offline"})]})}function Mw({entries:e,activeRoute:t,onNavigate:r,daemonUp:o,identity:n,assetBase:i,collapsed:a,onToggleCollapsed:l}){let s=bj(e,t);return(0,Me.jsxs)("nav",{"aria-label":"Dashboard navigation","data-collapsed":a?"true":"false",style:{display:"flex",flexDirection:"column",gap:18,width:a?xj:hj,flex:"none",minHeight:"100vh",boxSizing:"border-box",padding:a?"20px 8px":"22px 14px",background:"var(--bg-surface)",borderRight:"1px solid var(--border-default)"},children:[(0,Me.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,paddingLeft:a?0:2,justifyContent:a?"center":"flex-start"},children:[(0,Me.jsx)("img",{src:`${i}/honeycomb-memory-cluster.svg`,width:a?28:34,height:a?28:34,alt:"",style:{flex:"none"}}),!a&&(0,Me.jsxs)("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[(0,Me.jsx)("span",{style:{fontWeight:700,fontSize:19,letterSpacing:"-0.03em",color:"var(--text-primary)",lineHeight:1.1},children:"honeycomb"}),(0,Me.jsx)("span",{style:{fontFamily:"var(--font-mono)",fontSize:11,color:"var(--text-tertiary)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:n})]})]}),(0,Me.jsx)(cw,{collapsed:a}),(0,Me.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:4,flex:1},children:e.map(c=>(0,Me.jsx)(Sj,{entry:c,active:c.route===s,collapsed:a,onNavigate:r},c.route))}),(0,Me.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10},children:[(0,Me.jsx)(kj,{daemonUp:o,collapsed:a}),(0,Me.jsx)(F,{variant:"ghost",size:"sm",onClick:l,"aria-label":a?"expand sidebar":"collapse sidebar",title:a?"expand":"collapse",children:a?"\xBB":"\xAB collapse"})]})]})}var rt=A(K(),1),_j=5e3,$j=900;function wj({route:e,pageProps:t,navigate:r}){let o=Ww(e),n=o.component,{projects:i,projectsHydrated:a}=Th();dt.default.useEffect(()=>{typeof document<"u"&&(document.title=`honeycomb \xB7 ${o.label}`)},[o.label]);let l=i.some(c=>c.boundLocally&&c.projectId!=="__unsorted__"),s=o.route==="/"&&a&&!l;return(0,rt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,rt.jsx)("div",{style:{maxWidth:Eu,margin:"0 auto"},children:s?(0,rt.jsx)(dw,{wire:t.wire,navigate:r,assetBase:t.assetBase}):(0,rt.jsx)(n,{...t})})})}function Zw({client:e,assetBase:t="assets"}={}){let r=dt.default.useMemo(()=>e??Su(),[e]),{route:o,navigate:n}=Cu(),[i,a]=dt.default.useState(!0),[l,s]=dt.default.useState(kh),[c,d]=dt.default.useState(!1),[p,f]=dt.default.useState(!1),g=l.settings.port?`http://127.0.0.1:${l.settings.port}`:"http://127.0.0.1:3850",x=dt.default.useCallback(async()=>{s(await r.settings())},[r]);dt.default.useEffect(()=>{x()},[x]);let b=dt.default.useRef(null);dt.default.useEffect(()=>{let _=!0,E=async()=>{let{up:W}=await r.health();_&&(a(W),W&&b.current===!1&&x(),b.current=W)};E();let O=setInterval(()=>{E()},_j);return()=>{_=!1,clearInterval(O)}},[r,x]),dt.default.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let _=window.matchMedia(`(max-width: ${$j}px)`),E=W=>{W&&f(!0)};E(_.matches);let O=W=>E(W.matches);return _.addEventListener("change",O),()=>_.removeEventListener("change",O)},[]);let w=dt.default.useRef(!1),v=dt.default.useRef(null);dt.default.useEffect(()=>()=>{v.current!==null&&clearTimeout(v.current)},[]);let m=dt.default.useCallback(async()=>{if(w.current)return;w.current=!0,d(!0),(await r.pollinate()).triggered?v.current=setTimeout(()=>{d(!1),w.current=!1},4200):(d(!1),w.current=!1)},[r]),y=`${l.orgName||l.orgId||"local"} \xB7 ${l.workspace||"default"}`;return(0,rt.jsx)(sw,{wire:r,children:(0,rt.jsxs)("div",{style:{display:"flex",minHeight:"100vh",background:"var(--bg-canvas)"},children:[(0,rt.jsx)(Mw,{entries:Zu,activeRoute:o,onNavigate:n,daemonUp:i,identity:y,assetBase:t,collapsed:p,onToggleCollapsed:()=>f(_=>!_)}),(0,rt.jsxs)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column"},children:[(0,rt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:12,padding:"16px 28px",borderBottom:"1px solid var(--border-subtle)"},children:[(0,rt.jsx)("span",{style:{flex:1}}),(0,rt.jsx)(F,{variant:"pollinate",onClick:()=>{m()},disabled:c,children:c?"pollinating\u2026":"Pollinate now"})]}),i?(0,rt.jsx)(wj,{route:o,pageProps:{wire:r,daemonUp:i,assetBase:t,pollinating:c},navigate:n}):(0,rt.jsx)("div",{style:{flex:1,minWidth:0,padding:"28px 28px 48px"},children:(0,rt.jsx)("div",{style:{maxWidth:Eu,margin:"0 auto"},children:(0,rt.jsx)(H0,{url:g,onRetry:()=>{r.health().then(({up:_})=>{a(_),_&&x()})}})})})]})]})})}var X=A(K(),1),zj=2500,Ij=new Set(["backup","uninstall","link"]);function Pj(e){return e.migration!==void 0&&Ij.has(e.migration.phase)}function Ej(e){return e.priorTool.hivemind==="migrated"?!1:e.priorTool.hivemind==="present"||e.credentials.hivemind}function Rj({wire:e,assetBase:t,state:r}){let[o,n]=Ge.default.useState(null),[i,a]=Ge.default.useState(!1),[l,s]=Ge.default.useState(!1),c=Ge.default.useRef(!1),d=Ge.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0),s(!1);let f=await e.setupLogin();if(f===null){s(!0),a(!1),c.current=!1;return}n(f)},[e]),p=r.priorTool.hivemind==="present"||r.credentials.hivemind;return(0,X.jsxs)("div",{"data-testid":"guided-setup",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,X.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,X.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8,maxWidth:460},children:[(0,X.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Let\u2019s connect your account"}),(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:p?"We found a previous Hivemind setup. Link your account to bring your memory online.":"Honeycomb keeps one shared memory for all your coding agents. Link your account to get started."})]}),o===null?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Starting setup\u2026":"First time setup"}),l&&(0,X.jsxs)("p",{"data-testid":"setup-error",style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:["Could not start setup. Retry, or run ",(0,X.jsx)("code",{children:"honeycomb login"})," in your terminal."]})]}):(0,X.jsxs)("div",{"data-testid":"setup-grant",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"Enter this code to finish linking:"}),(0,X.jsx)("code",{style:{fontFamily:"var(--font-mono)",fontSize:"var(--text-lg)",color:"var(--honey)",letterSpacing:"0.08em"},children:o.user_code}),(0,X.jsx)("a",{href:o.verification_uri_complete??o.verification_uri,target:"_blank",rel:"noreferrer",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)"},children:"Open the verification page"}),(0,X.jsx)("span",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)"},children:"Waiting for you to finish in the browser\u2026"})]})]})}function Cj({wire:e,assetBase:t,onNeedsLogin:r}){let[o,n]=Ge.default.useState(!1),[i,a]=Ge.default.useState(!1),[l,s]=Ge.default.useState(null),c=Ge.default.useRef(!1),d=Ge.default.useCallback(async()=>{if(c.current)return;c.current=!0,a(!0);let p=await e.migrateFromHivemind();if(s(p),p.ok&&p.needsLogin===!0){r();return}p.ok||(a(!1),c.current=!1)},[e,r]);return(0,X.jsxs)("div",{"data-testid":"coexistence-warning",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,X.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,X.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,X.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"We found an existing Hivemind setup"}),(0,X.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["Running Hivemind and Honeycomb on the same machine isn\u2019t supported \u2014 they share one memory and would collide. ",(0,X.jsx)("strong",{children:"Proceed with Honeycomb"})," will back up your Hivemind config, uninstall Hivemind, and reuse your existing DeepLake login (so you likely won\u2019t even need to sign in again)."]})]}),l!==null&&l.ok===!1?(0,X.jsxs)("div",{"data-testid":"migration-error",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center",maxWidth:500},children:[(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--severity-critical)",margin:0},children:l.message}),l.backupPath!==void 0&&(0,X.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup saved at ",(0,X.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:l.backupPath})]}),(0,X.jsx)(F,{variant:"primary",size:"lg",onClick:()=>{d()},disabled:i,children:i?"Retrying\u2026":"Retry"})]}):o?(0,X.jsxs)("div",{"data-testid":"migration-confirm",style:{display:"flex",flexDirection:"column",gap:10,alignItems:"center"},children:[(0,X.jsx)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:"This backs up and removes your Hivemind setup. Continue?"}),(0,X.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,X.jsx)(F,{variant:"secondary",size:"md",onClick:()=>n(!1),disabled:i,children:"Cancel"}),(0,X.jsx)(F,{variant:"danger",size:"md",onClick:()=>{d()},disabled:i,"data-testid":"confirm-migrate-button",children:i?"Migrating\u2026":"Yes, proceed"})]})]}):(0,X.jsx)(F,{variant:"primary",size:"lg",onClick:()=>n(!0),"data-testid":"proceed-button",children:"Proceed with Honeycomb"})]})}function Tj({wire:e,assetBase:t,state:r,onNeedsLogin:o}){let[n,i]=Ge.default.useState(""),[a,l]=Ge.default.useState(null),s=r.migration?.phase??"backup",c=r.migration?.backupPath,d=Ge.default.useCallback(async()=>{i("resume");let f=await e.migrateFromHivemind();if(l(f.message),f.ok&&f.needsLogin===!0){o();return}f.ok||i("")},[e,o]),p=Ge.default.useCallback(async()=>{i("rollback");let f=await e.rollbackMigration();l(f.message),i("")},[e]);return(0,X.jsxs)("div",{"data-testid":"migration-interrupted",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:18,minHeight:"100vh",padding:"28px",background:"var(--bg-canvas)",textAlign:"center"},children:[(0,X.jsx)("img",{src:`${t}/honeycomb-memory-cluster.svg`,width:56,height:56,alt:""}),(0,X.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:10,maxWidth:500},children:[(0,X.jsx)("h1",{style:{fontSize:"var(--text-xl)",fontWeight:700,color:"var(--text-primary)",margin:0,letterSpacing:"-0.02em"},children:"Your migration was interrupted"}),(0,X.jsxs)("p",{style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0,lineHeight:1.5},children:["A previous switch to Honeycomb didn\u2019t finish (it stopped at the ",(0,X.jsx)("code",{children:s})," step). You can resume it, or roll back to restore your previous Hivemind setup."]}),c!==void 0&&(0,X.jsxs)("p",{style:{fontSize:"var(--text-xs)",color:"var(--text-tertiary)",margin:0},children:["Backup at ",(0,X.jsx)("code",{style:{fontFamily:"var(--font-mono)"},children:c})]})]}),(0,X.jsxs)("div",{style:{display:"flex",gap:10},children:[(0,X.jsx)(F,{variant:"primary",size:"md",onClick:()=>{d()},disabled:n!=="","data-testid":"resume-button",children:n==="resume"?"Resuming\u2026":"Resume"}),(0,X.jsx)(F,{variant:"secondary",size:"md",onClick:()=>{p()},disabled:n!=="","data-testid":"rollback-button",children:n==="rollback"?"Rolling back\u2026":"Roll back"})]}),a!==null&&(0,X.jsx)("p",{"data-testid":"migration-interrupted-message",style:{fontSize:"var(--text-sm)",color:"var(--text-secondary)",margin:0},children:a})]})}function Bw({client:e,assetBase:t="assets"}={}){let r=Ge.default.useMemo(()=>e??Su(),[e]),[o,n]=Ge.default.useState(xh),[i,a]=Ge.default.useState(!1);return Ge.default.useEffect(()=>{if(o.authenticated)return;let l=!0,s=async()=>{let d=await r.setupState();l&&n(d)};s();let c=setInterval(()=>{s()},zj);return()=>{l=!1,clearInterval(c)}},[r,o.authenticated]),o.authenticated?(0,X.jsx)(Zw,{...{client:r,assetBase:t}}):Pj(o)&&!i?(0,X.jsx)(Tj,{wire:r,assetBase:t,state:o,onNeedsLogin:()=>a(!0)}):Ej(o)&&!i?(0,X.jsx)(Cj,{wire:r,assetBase:t,onNeedsLogin:()=>a(!0)}):(0,X.jsx)(Rj,{wire:r,assetBase:t,state:o})}var Vh=A(K(),1);function jj(){let e=document.getElementById("root");if(e===null)return;let t=e.getAttribute("data-asset-base")??"assets",r=/^[A-Za-z0-9._/-]*$/.test(t)?t:"assets";(0,Hw.createRoot)(e).render((0,Vh.jsx)(Vw.default.StrictMode,{children:(0,Vh.jsx)(Bw,{assetBase:r})}))}jj();
|
|
73
73
|
/*! Bundled license information:
|
|
74
74
|
|
|
75
75
|
react/cjs/react.production.min.js:
|